/**
 * 主营业务页面专属样式
 */

/* Page Hero */
.page-hero {
    position: relative;
    height: 360px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.page-hero-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
}

.page-hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.page-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 30, 80, 0.88) 0%, rgba(0, 60, 120, 0.75) 100%);
}

.page-hero-content {
    padding-top: 72px;
}

.page-hero-title {
    font-size: 40px;
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 12px;
}

.page-hero-subtitle {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.8);
}

/* Service List */
.section-service-list {
    padding: var(--section-padding) 0;
    background: var(--color-bg);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.product-card {
    background: var(--color-bg);
    border-radius: var(--radius-card);
    overflow: hidden;
    border: 1px solid var(--color-border);
    cursor: pointer;
    transition: all var(--transition-base);
}

.product-card:hover {
    transform: translateY(-6px);
    border-color: rgba(0, 102, 255, 0.25);
    box-shadow: var(--shadow-card-hover);
}

.product-card-image {
    height: 220px;
    overflow: hidden;
    position: relative;
}

.product-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.product-card:hover .product-card-image img {
    transform: scale(1.06);
}

/* Card Carousel */
.card-carousel {
    position: relative;
}

.card-carousel-track {
    position: relative;
    width: 100%;
    height: 100%;
}

.card-carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card-carousel-slide.active {
    opacity: 1;
}

.card-carousel-dots {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 2;
}

.card-carousel-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.2s ease;
}

.card-carousel-dot.active {
    background: #fff;
    width: 18px;
    border-radius: 3px;
}

.product-card-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
}

.product-card-title {
    font-size: 17px;
    font-weight: 600;
    color: var(--color-text);
}

.product-card-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--color-surface);
    color: var(--color-primary);
    transition: all var(--transition-base);
}

.product-card:hover .product-card-arrow {
    background: var(--color-primary);
    color: #FFFFFF;
}

/* Product Modal */
.product-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
}

.product-modal.active {
    opacity: 1;
    visibility: visible;
}

.product-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(4px);
}

.product-modal-container {
    position: relative;
    width: 90%;
    max-width: 1000px;
    height: 600px;
    background: var(--color-bg);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.2);
    transform: translateY(30px) scale(0.95);
    transition: transform var(--transition-base);
}

.product-modal.active .product-modal-container {
    transform: translateY(0) scale(1);
}

.product-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 10;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text);
    transition: all var(--transition-base);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.product-modal-close:hover {
    background: var(--color-primary);
    color: #FFFFFF;
    transform: rotate(90deg);
}

.product-modal-body {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    height: 100%;
    overflow: hidden;
}

.product-modal-main {
    display: flex;
    flex-direction: column;
    background: var(--color-surface);
    height: 100%;
    min-height: 0;
}

.product-modal-image {
    flex: 1;
    min-height: 0;
    overflow: hidden;
    position: relative;
    touch-action: pan-y;
    user-select: none;
    -webkit-user-select: none;
}

.product-modal-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity var(--transition-base);
    display: block;
}

.product-modal-image video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none;
}

.product-modal-image.has-video img {
    display: none;
}

.product-modal-image.has-video video {
    display: block;
}

.product-modal-image-title {
    padding: 14px 24px;
    font-size: 15px;
    font-weight: 500;
    color: var(--color-text);
    text-align: center;
    background: var(--color-bg);
    border-top: 1px solid var(--color-border);
    flex-shrink: 0;
}

.modal-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.modal-arrow:hover {
    background: #fff;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.modal-arrow:active {
    transform: translateY(-50%) scale(0.95);
}

.modal-arrow-left {
    left: 16px;
}

.modal-arrow-right {
    right: 16px;
}



.product-modal-sidebar {
    display: flex;
    flex-direction: column;
    padding: 32px 28px;
    height: 100%;
    overflow: hidden;
    box-sizing: border-box;
}

.product-modal-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--color-border);
}

.product-modal-thumbs {
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
    overflow-y: auto;
    margin-bottom: 20px;
    min-height: 0;
    padding-right: 4px;
}

.product-modal-thumb {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px;
    border-radius: 8px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition-base);
    background: var(--color-surface);
}

.product-modal-thumb:hover {
    border-color: rgba(0, 102, 255, 0.3);
    background: var(--color-bg);
}

.product-modal-thumb.active {
    border-color: var(--color-primary);
    background: var(--color-bg);
    box-shadow: 0 2px 8px rgba(0, 102, 255, 0.15);
}

.product-modal-thumb-image {
    width: 64px;
    height: 48px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
    position: relative;
    background: var(--color-surface-dark);
}

.product-modal-thumb-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumb-video-icon {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-surface-dark);
    color: var(--color-primary);
}

.product-modal-thumb-title {
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text);
    line-height: 1.4;
}

.product-modal-thumb.active .product-modal-thumb-title {
    color: var(--color-primary);
}

.product-modal-cta {
    flex-shrink: 0;
    width: 100%;
}

/* Services CTA */
.section-services-cta {
    padding: 80px 0;
    background: var(--color-primary-gradient);
    position: relative;
    overflow: hidden;
}

.section-services-cta::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.services-cta-content {
    text-align: center;
    position: relative;
    z-index: 1;
}

.services-cta-title {
    font-size: 32px;
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 12px;
}

.services-cta-subtitle {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 32px;
}

/* Responsive - Tablet */
@media (max-width: 992px) {
    .page-hero {
        height: 280px;
    }
    
    .page-hero-title {
        font-size: 32px;
    }
    
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .product-modal-container {
        height: 600px;
    }
    
    .product-modal-body {
        grid-template-columns: 1fr;
        grid-template-rows: 65% 35%;
    }
    
    .product-modal-main {
        height: 100%;
    }
    
    .product-modal-sidebar {
        height: 100%;
        padding: 20px 20px;
        overflow-y: auto;
    }
    
}

/* Responsive - Mobile */
@media (max-width: 768px) {
    .page-hero {
        height: 220px;
    }
    
    .page-hero-title {
        font-size: 28px;
    }
    
    .page-hero-subtitle {
        font-size: 16px;
    }
    
    .product-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .product-card-image {
        height: 180px;
    }
    
    .product-modal-container {
        width: 95%;
        height: 560px;
    }
    
    .product-modal-body {
        grid-template-columns: 1fr;
        grid-template-rows: 60% 40%;
    }
    
    .product-modal-main {
        height: 100%;
    }
    
    .product-modal-sidebar {
        height: 100%;
        padding: 16px 16px;
        overflow-y: auto;
    }
    
    .product-modal-title {
        font-size: 20px;
        margin-bottom: 12px;
        padding-bottom: 12px;
    }
    
    .product-modal-thumb-image {
        width: 52px;
        height: 40px;
    }
    
    .services-cta-title {
        font-size: 24px;
    }
}
