/* ========================================
   我们的服务页面专用样式
   ======================================== */

/* 幻灯片容*/
.hero-slider {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
    margin-top: 0;
}

.slider-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.slider-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

/* 幻灯�?*/
.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 幻灯背景 */
.slide:nth-child(1) {
    background-image: url('/images/index1.jpg');
    background-color: #667eea; /* 图片加载失败时的备用颜色 */
}

/* 幻灯背景 */
.slide:nth-child(2) {
    background-image: url('/images/index2.jpg');
    background-color: #764ba2;
}

/* 幻灯背景 */
.slide:nth-child(3) {
    background-image: url('/images/index3.jpg');
    background-color: #667eea;
}

.slide.active {
    opacity: 1;
}

/* 幻灯片遮罩层（渐变效果） */
.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    
}

/* 幻灯片内?*/
.slide-content {
    position: relative;
    z-index: 2;
    max-width: 75vw;
    width: 75%;
    text-align: center;
    color: white;
    animation: fadeInUp 1s ease;
}

/* 幻灯片1 - 文字位置 */
.slide-1-content {
    text-align: right;
    padding-left: 10%;
}

/* 幻灯片2 - 文字位置 */
.slide-2-content {
    text-align: right;
    padding-left: 10%;
}

/* 幻灯片3 - 文字位置 */
.slide-3-content {
     text-align: right;
    padding-left: 10%;
}

/* ========== 入场动画定义 =========*/

/* 从左侧滑入 */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* 从右侧滑入 */
@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* 从下方淡入 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 缩放淡入 */
@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* 旋转淡入 */
@keyframes rotateIn {
    from {
        opacity: 0;
        transform: rotate(-10deg) scale(0.9);
    }
    to {
        opacity: 1;
        transform: rotate(0) scale(1);
    }
}

/* 弹跳淡入 */
@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        transform: scale(1);
    }
}

.slide-content h1 {
    font-size: 56px;
    font-weight: bold;
    margin-bottom: 20px;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
    /* 标题动画：从左侧滑入 */
    animation: slideInLeft 0.8s ease-out forwards;
}

.slide-content h2 {
    font-size: 42px;
    font-weight: bold;
    margin-bottom: 20px;
    color: #fff;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
    animation: slideInLeft 0.8s ease-out forwards;
}

.slide-content p {
    font-size: 22px;
    margin-bottom: 40px;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.2);
    /* 副标题动画：从下方淡入，延迟0.3秒 */
    animation: fadeInUp 0.8s ease-out 0.3s forwards;
    opacity: 0; /* 初始隐藏 */
}

.slide-content .cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: white;
    color: #667eea;
    text-decoration: none;
    border-radius: 30px;
    font-weight: bold;
    font-size: 18px;
    transition: all 0.3s;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    /* 按钮动画：缩放淡入，延迟0.6秒 */
    animation: scaleIn 0.6s ease-out 0.6s forwards;
    opacity: 0; /* 初始隐藏 */
}

.slide-content .cta-button:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* 左右箭头 */
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.3);
    color: white;
    border: none;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    font-size: 32px;
    cursor: pointer;
    transition: all 0.3s;
    z-index: 10;
}

.slider-arrow:hover {
    background: rgba(255, 255, 255, 0.5);
    transform: translateY(-50%) scale(1.1);
}

.slider-arrow.prev {
    left: 30px;
}

.slider-arrow.next {
    right: 30px;
}

/* 底部圆点指示�?*/
.slider-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
    z-index: 10;
}

.dot {
    width: 14px;
    height: 14px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.dot:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: scale(1.2);
}

.dot.active {
    background: white;
    border-color: #667eea;
    transform: scale(1.3);
}

/* 核心业务板块 */
.core-services-section {
    background: #f8f8f8;
    padding: 50px 0;
}

.core-services-container {
    max-width: 75vw;
    width: 75%;
    margin: 0 auto;
    padding: 0;
}

.core-services-header {
    text-align: center;
    margin-bottom: 40px;
}

.core-services-title {
    font-size: 36px;
    font-weight: 700;
    color: #ff6b00;
    margin: 0;
    line-height: 1.4;
}

.core-services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.core-service-card {
    background: white;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border-top: 3px solid #eee;
}

.core-service-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 107, 0, 0.15);
    border-top-color: #ff6b00;
}

.core-service-card.core-service-featured {
    background: linear-gradient(135deg, #ff6b00 0%, #f55a00 100%);
    border-top-color: #ff6b00;
}

.core-service-card.core-service-featured .core-service-name,
.core-service-card.core-service-featured .core-service-desc {
    color: white;
}

.core-service-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.95);
    color: #ff6b00;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 15px;
}

.core-service-icon {
    width: 45px;
    height: 45px;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.core-service-card.core-service-featured .core-service-icon svg path,
.core-service-card.core-service-featured .core-service-icon svg circle,
.core-service-card.core-service-featured .core-service-icon svg rect,
.core-service-card.core-service-featured .core-service-icon svg line {
    stroke: white;
    fill: white;
}

.core-service-name {
    font-size: 17px;
    font-weight: 600;
    color: #333;
    margin: 0 0 10px 0;
}

.core-service-desc {
    font-size: 13px;
    color: #666;
    line-height: 1.6;
    margin: 0;
}

.core-service-card.core-service-featured .core-service-desc {
    color: rgba(255, 255, 255, 0.92);
}

/* 移动端适配 */
@media (max-width: 768px) {
    .core-services-section {
        padding: 35px 0;
    }
    
    .core-services-container {
        width: 100%;
        max-width: 100%;
        padding: 0 8px;
    }
    
    .core-services-title {
        font-size: 20px;
        padding: 0 10px;
    }
    
    .core-services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .core-service-card {
        padding: 20px;
    }
    
    .core-service-name {
        font-size: 15px;
    }
    
    .core-service-desc {
        font-size: 12px;
    }
    
    .core-service-icon {
        width: 38px;
        height: 38px;
        margin-bottom: 14px;
    }
    
    .core-service-badge {
        font-size: 10px;
        padding: 2px 8px;
    }
}

/* 服务介绍区域 */
.services-intro {
    padding: 80px 0;
    background: #f8f9fa;
}

.services-intro-container {
    max-width: 75vw;
    width: 75%;
    margin: 0 auto;
    padding: 0 20px;
}

.services-intro-header {
    text-align: center;
    margin-bottom: 60px;
}

.services-intro-header h2 {
    font-size: 36px;
    color: #333;
    margin-bottom: 20px;
}

.services-intro-header p {
    font-size: 18px;
    color: #666;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
}

/* 服务卡片网格 */
.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.service-card {
    background: white;
    border-radius: 10px;
    padding: 40px 25px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.service-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 25px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-icon svg {
    width: 100%;
    height: 100%;
}

.service-card h3 {
    font-size: 22px;
    color: #333;
    margin-bottom: 20px;
}

.service-card ul {
    list-style: none;
    padding: 0;
    margin: 0 0 25px 0;
}

.service-card ul li {
    color: #666;
    font-size: 15px;
    line-height: 2;
    padding: 5px 0;
}

.service-card .btn-consult {
    display: inline-block;
    padding: 12px 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.3s;
}

.service-card .btn-consult:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

/* 服务详情区域 - 交替布局 */
.service-detail {
    padding: 100px 0;
    background: #ffffff;
}

.service-detail:nth-child(even) {
    background: #f8f9fa;
}

.service-detail:nth-child(odd) {
    background: #ffffff;
}

.service-detail-container {
    max-width: 75vw;
    width: 75%;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    gap: 80px;
}

.service-detail.reverse .service-detail-container {
    flex-direction: row-reverse;
}

.service-detail-image {
    flex: 1;
    min-height: 400px;
    background: transparent;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: none;
}

.service-detail-image svg {
    width: 500px;
    height: 500px;
}

.service-detail-content {
    flex: 1;
}

.service-detail-content h3 {
    font-size: 36px;
    color: #333;
    margin-bottom: 25px;
}

.service-detail-content p {
    font-size: 17px;
    color: #666;
    line-height: 1.8;
    margin-bottom: 25px;
}

.service-detail-content ul {
    list-style: none;
    padding: 0;
    margin: 0 0 35px 0;
}

.service-detail-content ul li {
    font-size: 16px;
    color: #666;
    line-height: 2.2;
    padding-left: 30px;
    position: relative;
}

.service-detail-content ul li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #667eea;
    font-weight: bold;
    font-size: 18px;
}

.service-detail-content .btn-learn-more {
    display: inline-block;
    padding: 14px 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s;
}

.service-detail-content .btn-learn-more:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

/* CTA 区域 */
.services-cta {
    padding: 80px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    text-align: center;
    color: white;
}

.services-cta h2 {
    font-size: 36px;
    margin-bottom: 20px;
}

.services-cta p {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.9;
}

.services-cta .services-intro-container {
    max-width: 75vw;
    width: 75%;
    margin: 0 auto;
    padding: 0 20px;
}

.services-cta .cta-button {
    display: inline-block;
    padding: 15px 45px;
    background: white;
    color: #667eea;
    text-decoration: none;
    border-radius: 30px;
    font-weight: bold;
    font-size: 18px;
    transition: all 0.3s;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.services-cta .cta-button:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* 入场动画特效 */
@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.service-detail-image {
    animation: scaleIn 0.8s ease-out;
}

.service-detail-content {
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.service-detail-content h3 {
    animation: fadeInUp 0.6s ease-out 0.3s both;
}

.service-detail-content p {
    animation: fadeInUp 0.6s ease-out 0.4s both;
}

.service-detail-content ul li {
    animation: fadeInUp 0.5s ease-out both;
}

.service-detail-content ul li:nth-child(1) {
    animation-delay: 0.5s;
}

.service-detail-content ul li:nth-child(2) {
    animation-delay: 0.6s;
}

.service-detail-content ul li:nth-child(3) {
    animation-delay: 0.7s;
}

.service-detail-content ul li:nth-child(4) {
    animation-delay: 0.8s;
}

.service-detail-content .btn-learn-more {
    animation: fadeInUp 0.6s ease-out 0.9s both;
}

/* 滚动触发动画 */
.service-detail {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.service-detail.visible {
    opacity: 1;
    transform: translateY(0);
}

.service-detail.visible .service-detail-image {
    animation: scaleIn 0.8s ease-out;
}

.service-detail.visible .service-detail-content h3 {
    animation: fadeInUp 0.6s ease-out 0.3s both;
}

.service-detail.visible .service-detail-content p {
    animation: fadeInUp 0.6s ease-out 0.4s both;
}

.service-detail.visible .service-detail-content ul li {
    animation: fadeInUp 0.5s ease-out both;
}

.service-detail.visible .service-detail-content ul li:nth-child(1) {
    animation-delay: 0.5s;
}

.service-detail.visible .service-detail-content ul li:nth-child(2) {
    animation-delay: 0.6s;
}

.service-detail.visible .service-detail-content ul li:nth-child(3) {
    animation-delay: 0.7s;
}

.service-detail.visible .service-detail-content ul li:nth-child(4) {
    animation-delay: 0.8s;
}

.service-detail.visible .service-detail-content .btn-learn-more {
    animation: fadeInUp 0.6s ease-out 0.9s both;
}

/* 响应式 */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .service-detail-container {
        gap: 40px;
    }
    
    .service-detail-image svg {
        width: 200px;
        height: 200px;
    }
}

@media (max-width: 768px) {
    .hero-slider {
        height: 400px;
    }
    
    .slide-content h1 {
        font-size: 28px;
    }
    
    .slide-content p {
        font-size: 14px;
    }
    
    .slider-arrow {
        width: 40px;
        height: 40px;
        font-size: 24px;
    }
    
    .slider-arrow.prev {
        left: 10px;
    }
    
    .slider-arrow.next {
        right: 10px;
    }
    
    .services-intro {
        padding: 50px 0;
    }
    
    .services-intro-header h2 {
        font-size: 28px;
    }
    
    .services-intro-header p {
        font-size: 16px;
    }
    
    .services-intro-container {
        max-width: 100%;
        width: 95%;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .service-detail {
        padding: 60px 0;
    }
    
    .service-detail-container {
        max-width: 100%;
        width: 95%;
        flex-direction: column !important;
        gap: 30px;
    }
    
    .service-detail-image {
        width: 100%;
        min-height: 250px;
    }
    
    .service-detail-image svg {
        width: 160px;
        height: 160px;
    }
    
    .service-detail-content h3 {
        font-size: 28px;
    }
    
    .services-cta {
        padding: 50px 0;
    }
    
    .services-cta h2 {
        font-size: 28px;
    }
    
    .services-cta p {
        font-size: 16px;
    }
    
    .services-cta .services-intro-container {
        max-width: 100%;
        width: 95%;
    }
}

/* ========================================
   工程案例展示样式
   ======================================== */

/* 工程案例区块 */
.service-projects-section {
    padding: 80px 0 !important;
    background: #fafafa !important;
    display: block !important;
}

.service-projects-container {
    max-width: 1400px !important;
    width: 75% !important;
    margin: 0 auto !important;
    padding: 0 20px !important;
}

.service-projects-header {
    text-align: center !important;
    margin-bottom: 55px !important;
}

.service-projects-title {
    font-size: 34px !important;
    font-weight: 700 !important;
    color: #222 !important;
    margin: 0 0 18px 0 !important;
    letter-spacing: 8px !important;
    position: relative !important;
    line-height: 1.4 !important;
}

.service-projects-title::after {
    content: '' !important;
    position: absolute !important;
    bottom: -8px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: 60px !important;
    height: 3px !important;
    background: linear-gradient(90deg, #ff6b00, #ff8c42) !important;
    border-radius: 2px !important;
}

.service-projects-subtitle {
    font-size: 16px !important;
    color: #666 !important;
    margin: 0 !important;
    letter-spacing: 1px !important;
    line-height: 1.6 !important;
}

/* 工程案例网格布局 - 电脑端4列 */
.service-projects-grid {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 25px !important;
    grid-auto-flow: row !important;
}

/* 工程案例卡片 */
.service-project-card {
    background: #fff !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08) !important;
    transition: all 0.35s ease !important;
    border: 1px solid transparent !important;
    display: flex !important;
    flex-direction: column !important;
}

.service-project-card:hover {
    transform: translateY(-8px) !important;
    box-shadow: 0 15px 40px rgba(255, 107, 0, 0.18) !important;
    border-color: rgba(255, 107, 0, 0.3) !important;
}

.service-project-link {
    display: flex !important;
    flex-direction: column !important;
    text-decoration: none !important;
    color: inherit !important;
    height: 100% !important;
}

.service-project-image {
    width: 100% !important;
    aspect-ratio: 1 / 1 !important;
    overflow: hidden !important;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: relative !important;
    flex-shrink: 0 !important;
}

.service-project-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    transition: transform 0.3s ease !important;
}

.service-project-card:hover .service-project-image img {
    transform: scale(1.08) !important;
}

.service-project-placeholder {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: #f5f5f5 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.service-project-name {
    padding: 20px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    color: #333 !important;
    text-align: center !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    flex-grow: 1 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* 工程案例响应式 */
@media (max-width: 1024px) {
    .service-projects-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 20px !important;
    }
}

@media (max-width: 768px) {
    .service-projects-section {
        padding: 50px 0 !important;
    }
    
    .service-projects-container {
        max-width: 100% !important;
        width: 95% !important;
    }
    
    .service-projects-header {
        margin-bottom: 40px !important;
    }
    
    .service-projects-title {
        font-size: 24px !important;
        letter-spacing: 4px !important;
    }
    
    .service-projects-title::after {
        width: 40px !important;
        bottom: -6px !important;
    }
    
    .service-projects-subtitle {
        font-size: 14px !important;
    }
    
    .service-projects-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px !important;
    }
    
    .service-project-name {
        padding: 15px !important;
        font-size: 14px !important;
    }
}

@media (max-width: 480px) {
    .service-projects-grid {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }
    
    .service-project-name {
        padding: 12px !important;
        font-size: 13px !important;
    }
}

/* ========================================
   服务项目交叉排版样式
   ======================================== */

/* 服务项目交叉排版区块 */
.service-alternate-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #fff 0%, #fafafa 50%, #fff 100%);
}

.service-alternate-container {
    max-width: 75vw;
    width: 75%;
    margin: 0 auto;
}

.service-alternate-header {
    text-align: center;
    margin-bottom: 60px;
}

.service-alternate-title {
    font-size: 32px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 15px 0;
}

.service-alternate-subtitle {
    font-size: 18px;
    color: #666;
    margin: 0;
}

.service-alternate-list {
    display: flex;
    flex-direction: column;
    gap: 60px;
}

/* 交叉排版项目项 */
.service-alternate-item {
    display: flex;
    align-items: center;
    gap: 60px;
    background: white;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.service-alternate-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(255, 107, 0, 0.1);
}

/* 左图右文布局 */
.service-alternate-item.image-left {
    flex-direction: row;
}

/* 右图左文布局 */
.service-alternate-item.image-right {
    flex-direction: row-reverse;
}

/* 图片区域 */
.service-alternate-image {
    flex: 1;
    max-width: 45%;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
}

.service-alternate-image img {
    width: 100%;
    height: 100%;
    min-height: 280px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.service-alternate-item:hover .service-alternate-image img {
    transform: scale(1.05);
}

.service-alternate-placeholder {
    width: 100%;
    min-height: 280px;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 文字内容区域 */
.service-alternate-content {
    flex: 1;
    max-width: 55%;
}

.service-alternate-name {
    font-size: 26px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 20px 0;
    line-height: 1.3;
}

.service-alternate-summary {
    font-size: 16px;
    color: #555;
    line-height: 1.8;
    margin: 0 0 30px 0;
}

/* 详情内容（电脑端最多10行） */
.service-alternate-detail {
    font-size: 15px;
    color: #555;
    line-height: 1.8;
    margin: 0 0 30px 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.service-alternate-detail p {
    margin: 0 0 10px 0;
}

.service-alternate-detail p:last-child {
    margin-bottom: 0;
}

/* 默认隐藏移动端详情 */
.service-detail-mobile {
    display: none;
}

/* 电脑端详情：限制10行 */
.service-detail-desktop {
    display: -webkit-box;
    -webkit-line-clamp: 10;
    line-clamp: 10;
    -webkit-box-orient: vertical;
    max-height: 32.4em;
}

/* 按钮组 */
.service-alternate-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    background: linear-gradient(135deg, #ff6b00, #ff8c33);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 107, 0, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 0, 0.4);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    background: white;
    color: #ff6b00;
    text-decoration: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid #ff6b00;
}

.btn-secondary:hover {
    background: #fff8f2;
    transform: translateY(-2px);
}

/* 响应式适配 */
@media (max-width: 1024px) {
    .service-alternate-item {
        gap: 40px;
        padding: 30px;
    }
    
    .service-alternate-name {
        font-size: 22px;
    }
}

@media (max-width: 768px) {
    .service-alternate-section {
        padding: 50px 0;
    }
    
    .service-alternate-container {
        max-width: 100%;
        width: 95%;
    }
    
    .service-alternate-title {
        font-size: 24px;
    }
    
    .service-alternate-subtitle {
        font-size: 15px;
    }
    
    .service-alternate-item {
        flex-direction: column !important;
        gap: 25px;
        padding: 25px;
    }
    
    .service-alternate-image {
        max-width: 100%;
        width: 100%;
    }
    
    .service-alternate-image img {
        min-height: 200px;
    }
    
    .service-alternate-placeholder {
        min-height: 200px;
    }
    
    .service-alternate-content {
        max-width: 100%;
        width: 100%;
    }
    
    .service-alternate-name {
        font-size: 20px;
    }
    
    .service-alternate-summary {
        font-size: 14px;
    }
    
    /* 移动端：隐藏电脑端详情，显示移动端详情（100字符） */
    .service-detail-desktop {
        display: none !important;
    }
    
    .service-detail-mobile {
        display: block !important;
        font-size: 13px;
        line-height: 1.7;
    }
    
    .btn-primary,
    .btn-secondary {
        padding: 12px 24px;
        font-size: 14px;
    }
    
    .service-alternate-buttons {
        justify-content: center;
    }
}
