/* ========================================
   Product Detail Page / 产品详情页
   ======================================== */
.product-detail-section {
    padding: 40px 0 60px;
}

.product-detail-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: flex-start;
}

/* --- 产品图片轮播 --- */
.product-gallery {
    position: sticky;
    top: 100px;
}

.gallery-main {
    position: relative;
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 4 / 3;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-slider {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.gallery-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* mainSlide 默认可见，nextSlide 默认隐藏 */
#galleryMainSlide {
    opacity: 1;
    z-index: 2;
}

#galleryNextSlide {
    display: none;
    opacity: 0;
    z-index: 1;
}

.gallery-img-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    min-height: 200px;
    transition: opacity 0.3s ease;
}

.gallery-img-placeholder img,
.gallery-img-placeholder svg {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

/* 左右箭头 */
.gallery-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 44px;
    height: 44px;
    border: 1px solid var(--border-color);
    background: rgba(255,255,255,0.92);
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.25s, color 0.25s, border-color 0.25s, opacity 0.3s, box-shadow 0.25s;
    border-radius: 50%;
    backdrop-filter: blur(6px);
    opacity: 1;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    pointer-events: auto;
}

.gallery-arrow:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    box-shadow: 0 4px 14px rgba(26,115,232,0.35);
}

.gallery-arrow:active {
    transform: translateY(-50%) scale(0.93);
}

.gallery-arrow svg {
    display: block;
}

.gallery-prev { left: 14px; }
.gallery-next { right: 14px; }

/* === 淡入淡出动画 === */
/* mainSlide 淡出 */
#galleryMainSlide.fade-out {
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
    pointer-events: none;
}

/* nextSlide 淡入 */
#galleryNextSlide.fade-in {
    transition: opacity 0.4s ease;
    z-index: 2;
}

/* 分页指示 */
.gallery-pagination {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 8px;
    background: rgba(0,0,0,0.5);
    padding: 6px 14px;
    border-radius: 20px;
    pointer-events: auto;
}

.gallery-page {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: var(--transition);
}

.gallery-page.active {
    background: #fff;
    width: 20px;
    border-radius: 4px;
}

/* --- 缩略图列表（移至 gallery-main 外部） --- */
.gallery-thumbs-inline {
    display: flex;
    gap: 10px;
    margin-top: 16px;
    padding: 2px 0;
    overflow-x: auto;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.gallery-thumbs-inline::-webkit-scrollbar {
    display: none;
}

.gallery-thumbs-inline .gallery-thumb-item {
    width: 56px;
    height: 56px;
    flex-shrink: 0;
}

.gallery-thumb-item {
    border: 2px solid transparent;
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
    background: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.gallery-thumb-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gallery-thumb-item.active,
.gallery-thumb-item:hover {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(26,115,232,0.15);
}

.gallery-thumb-item svg {
    width: 36px;
    height: 36px;
}

/* --- 产品信息区 --- */
.product-detail-info {
    padding: 10px 0;
}

/* 面包屑类型标签 */
.detail-breadcrumb {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 12px;
    font-size: 13px;
    color: var(--text-light);
}

.detail-bc-type {
    color: var(--primary);
}

.detail-bc-type:hover {
    text-decoration: underline;
    cursor: pointer;
}

.detail-bc-sep {
    color: var(--border-color);
}

.detail-bc-current {
    color: var(--text-secondary);
}

.product-detail-name {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.3;
    margin-bottom: 20px;
    letter-spacing: 0.5px;
}

/* 价格 */
.product-detail-price {
    font-size: 28px;
    font-weight: 800;
    color: var(--accent-red);
    margin-bottom: 28px;
    padding: 18px 24px;
    background: linear-gradient(135deg, #fef2f2 0%, #fdf2f8 100%);
    border-radius: var(--radius-md);
    border-left: 4px solid var(--accent-red);
}

.product-detail-price .price-currency {
    font-size: 18px;
    font-weight: 600;
    margin-right: 2px;
}

/* 规格参数 */
.product-specs {
    margin-bottom: 24px;
    background: var(--bg-light);
    border-radius: var(--radius-md);
    padding: 4px 0;
}

.spec-item {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    font-size: 14px;
    border-bottom: 1px solid var(--border-color);
}

.spec-item:last-child {
    border-bottom: none;
}

.spec-label {
    flex-shrink: 0;
    width: 64px;
    color: var(--text-light);
    font-weight: 500;
}

.spec-value {
    color: var(--text-primary);
    font-weight: 500;
    line-height: 1.6;
}

/* 产品描述文字 */
.product-desc-text {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.9;
    margin-bottom: 28px;
    padding: 20px;
    background: #fafbfc;
    border-radius: var(--radius-md);
    border: 1px solid #f0f1f3;
}

/* 操作按钮区 */
.product-actions {
    display: flex;
    gap: 14px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}

.contact-phone {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--primary);
    color: #fff !important;
    padding: 14px 32px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    transition: var(--transition);
    flex-shrink: 0;
    text-decoration: none;
}

.contact-phone:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(26,115,232,0.4);
}

.phone-number {
    letter-spacing: 1px;
}

/* 底部服务特点 */
.detail-features {
    display: flex;
    gap: 16px;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
}

.detail-feature-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-light);
    white-space: nowrap;
}

.detail-feature-item svg {
    color: var(--primary);
    flex-shrink: 0;
}

/* 移动端箭头始终可见 */
@media (max-width: 768px) {
    .gallery-arrow {
        opacity: 0.85;
        width: 36px;
        height: 36px;
    }
    .gallery-arrow svg {
        width: 18px;
        height: 18px;
    }
}

/* --- 返回按钮 --- */
.gallery-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 20px;
    font-size: 13px;
    color: var(--text-light);
    text-decoration: none;
    transition: var(--transition);
}

.gallery-back-btn:hover {
    color: var(--primary);
}

/* --- 产品详情 Tab --- */
.product-detail-tabs {
    margin-top: 50px;
    border-top: 1px solid var(--border-color);
    padding-top: 30px;
}

.detail-tabs-nav {
    display: flex;
    border-bottom: 2px solid var(--bg-gray);
    margin-bottom: 30px;
}

.detail-tab {
    padding: 12px 28px;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-secondary);
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    margin-bottom: -2px;
}

.detail-tab.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.detail-tab-content {
    display: none;
}

.detail-tab-content.active {
    display: block;
}

.detail-description h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.detail-description p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 2;
    margin-bottom: 16px;
}

.detail-contact-card {
    background: var(--bg-light);
    border-radius: var(--radius-md);
    padding: 24px 30px;
    margin: 24px 0;
}

.detail-contact-card h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 14px;
}

.detail-contact-card ul {
    list-style: none;
}

.detail-contact-card li {
    font-size: 14px;
    color: var(--text-secondary);
    padding: 6px 0;
}

.ci-icon {
    margin-right: 4px;
}

.detail-coop {
    font-size: 15px;
    color: var(--text-primary);
    font-weight: 500;
}

/* 产品详情页响应式 */
@media (max-width: 992px) {
    .product-detail-layout {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .product-gallery {
        position: static;
    }

    .product-detail-name {
        font-size: 24px;
    }

    .product-detail-price {
        font-size: 24px;
    }

    .detail-features {
        flex-wrap: wrap;
    }
}

@media (max-width: 768px) {
    .product-detail-section {
        padding: 20px 0 40px;
    }

    .product-detail-layout {
        gap: 24px;
    }

    .product-detail-name {
        font-size: 22px;
        margin-bottom: 14px;
    }

    .product-detail-price {
        font-size: 22px;
        padding: 14px 18px;
        margin-bottom: 20px;
    }

    .spec-item {
        flex-direction: row;
        padding: 10px 16px;
    }

    .spec-label {
        width: 56px;
    }

    .product-actions {
        flex-direction: column;
    }

    .contact-phone,
    .btn-inquiry {
        justify-content: center;
        width: 100%;
        text-align: center;
    }

    .detail-features {
        flex-direction: column;
        gap: 10px;
    }

    .detail-tabs-nav {
        overflow-x: auto;
    }

    .detail-contact-card {
        padding: 16px 20px;
    }

    .gallery-thumbs-inline .gallery-thumb-item {
        width: 46px;
        height: 46px;
    }

    .gallery-pagination {
        bottom: 12px;
    }

    .product-desc-text {
        padding: 16px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .product-detail-name {
        font-size: 20px;
    }

    .product-detail-price {
        font-size: 20px;
        padding: 12px 16px;
    }

    .gallery-thumbs-inline .gallery-thumb-item {
        width: 40px;
        height: 40px;
    }

    .gallery-thumbs-inline {
        gap: 6px;
    }
}

/* ========================================
   Service Section / 服务体系
   ======================================== */
.service-section {
    padding: 70px 0;
}

.service-highlights {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-highlight-item {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    text-align: center;
    transition: var(--transition);
}

.service-highlight-item:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.service-hl-icon {
    color: var(--primary);
    margin-bottom: 20px;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    margin-right: auto;
}

.service-highlight-item h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.service-highlight-item p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.8;
}

@media (max-width: 992px) {
    .service-highlights {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
    .service-highlights .service-highlight-item:nth-child(3) {
        grid-column: span 2;
        max-width: 400px;
        justify-self: center;
    }
}

@media (max-width: 768px) {
    .service-section {
        padding: 50px 0;
    }
    .service-highlights {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .service-highlights .service-highlight-item:nth-child(3) {
        grid-column: span 1;
        max-width: none;
    }
}

@media (max-width: 480px) {
    .service-highlight-item {
        padding: 24px 16px;
    }
    .service-hl-icon {
        width: 60px;
        height: 60px;
    }
    .service-hl-icon svg {
        width: 30px;
        height: 30px;
    }
}
