/* 产品详情页样式 */

.breadcrumb-bar {
    background: #f5f7fa;
    padding: 14px 0;
    margin-top: 46px;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #888;
}

.breadcrumb a {
    color: #1565c0;
    text-decoration: none;
}

.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span { color: #888; }
.breadcrumb span:last-child { color: #333; font-weight: 500; }

/* 主区域 */
.product-detail-section {
    padding: 50px 0 80px;
}

/* 双栏布局 */
.detail-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin-bottom: 60px;
}

/* 图片区 */
.detail-gallery {
    position: sticky;
    top: 80px;
    height: fit-content;
}

.gallery-main {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: #f5f7fa;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.gallery-main:hover img { transform: scale(1.03); }

.gallery-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background: #1565c0;
    color: #fff;
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

.gallery-badge.hot {
    background: #e74c3c;
}

.gallery-thumbs {
    display: flex;
    gap: 10px;
    margin-top: 12px;
}

.gallery-thumb {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.3s;
}

.gallery-thumb.active { border-color: #1565c0; }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }

/* 产品信息 */
.detail-category-tag {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(21, 101, 192, 0.1);
    color: #1565c0;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 10px;
}

.detail-info h1 {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 8px;
}

.detail-subtitle {
    color: #666;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 24px;
}

.detail-specs {
    background: #f8fafc;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
}

.detail-specs h3, .detail-features h3 {
    font-size: 15px;
    font-weight: 600;
    color: #1565c0;
    margin-bottom: 12px;
}

.detail-specs table { width: 100%; border-collapse: collapse; }
.detail-specs tr { border-bottom: 1px solid #eee; }
.detail-specs tr:last-child { border-bottom: none; }
.detail-specs td { padding: 10px 0; font-size: 14px; }
.detail-specs td:first-child { color: #888; width: 100px; }
.detail-specs td:last-child { color: #333; font-weight: 500; }

.detail-features {
    margin-bottom: 20px;
}

.detail-features ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.detail-features li {
    padding: 8px 0;
    padding-left: 24px;
    position: relative;
    font-size: 15px;
    color: #555;
}

.detail-features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 15px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1565c0, #1976d2);
}

.detail-price-hint {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    background: #fff8e1;
    border: 1px solid #ffe082;
    border-radius: 10px;
    padding: 12px 16px;
    margin-bottom: 20px;
    font-size: 14px;
    color: #666;
}

.detail-price-hint svg {
    width: 18px;
    height: 18px;
    color: #f9a825;
    flex-shrink: 0;
    margin-top: 2px;
}

.detail-actions {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

.btn-xl {
    padding: 14px 28px;
    font-size: 15px;
    border-radius: 10px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-xl svg { width: 18px; height: 18px; }

.btn-primary {
    background: linear-gradient(135deg, #1565c0, #1976d2);
    color: #fff;
    border: none;
    text-decoration: none;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #0d47a1, #1565c0);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(21, 101, 192, 0.35);
}

.btn-outline {
    border: 2px solid #1565c0;
    color: #1565c0;
    text-decoration: none;
}

.btn-outline:hover {
    background: rgba(21, 101, 192, 0.08);
}

.detail-hotline {
    font-size: 14px;
    color: #888;
    text-align: center;
}

.detail-hotline a {
    color: #1565c0;
    font-weight: 600;
    text-decoration: none;
}

/* 下方内容区 */
.detail-description, .detail-applications, .detail-faq, .detail-related {
    margin-bottom: 50px;
}

.detail-description h2, .detail-applications h2,
.detail-faq h2, .detail-related h2 {
    font-size: 22px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #e8eef8;
    position: relative;
}

.detail-description h2::after, .detail-applications h2::after,
.detail-faq h2::after, .detail-related h2::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background: #1565c0;
}

.detail-description p {
    color: #555;
    line-height: 1.9;
    font-size: 15px;
    margin-bottom: 12px;
}

/* 应用场景 */
.app-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.app-item {
    background: #f5f7fa;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s;
}

.app-item:hover {
    background: #e3f2fd;
    transform: translateY(-3px);
}

.app-item-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 10px;
    background: linear-gradient(135deg, #1565c0, #1976d2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.app-item-icon svg { width: 24px; height: 24px; color: #fff; }
.app-item p { font-size: 14px; color: #555; font-weight: 500; margin: 0; }

/* 相关FAQ */
.detail-faq-list { display: flex; flex-direction: column; gap: 12px; }

.detail-faq-item {
    background: #fff;
    border: 1px solid #e8eef8;
    border-radius: 10px;
    padding: 16px 20px;
    cursor: pointer;
    transition: all 0.3s;
}

.detail-faq-item:hover {
    border-color: #1565c0;
    background: #f8faff;
}

.detail-faq-q {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 15px;
    font-weight: 500;
    color: #1a1a2e;
}

.detail-faq-q svg { width: 20px; height: 20px; color: #888; transition: transform 0.3s; }
.detail-faq-item.open .detail-faq-q svg { transform: rotate(180deg); }

.detail-faq-a {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.35s ease;
    color: #666;
    font-size: 14px;
    line-height: 1.7;
}

.detail-faq-a-inner {
    overflow: hidden;
    padding-top: 0;
    transition: padding-top 0.35s ease;
}

.detail-faq-item.open .detail-faq-a {
    grid-template-rows: 1fr;
}

.detail-faq-item.open .detail-faq-a-inner {
    padding-top: 12px;
}

/* 相关产品 */
.related-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.related-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    transition: all 0.3s;
    text-decoration: none;
}

.related-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(21, 101, 192, 0.15);
}

.related-card-img {
    height: 160px;
    background: #f5f7fa;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.related-card-img img { width: 100%; height: 100%; object-fit: cover; }

.related-card-info { padding: 14px; }
.related-card-info h4 { font-size: 15px; font-weight: 600; color: #1a1a2e; margin-bottom: 4px; }
.related-card-info p { font-size: 13px; color: #888; }

/* 底部CTA */
.detail-cta {
    background: linear-gradient(135deg, #0d47a1, #1565c0);
    padding: 60px 0;
    text-align: center;
    color: #fff;
}

.detail-cta h2 { font-size: 26px; font-weight: 700; margin-bottom: 8px; }
.detail-cta > .container > p { color: rgba(255,255,255,0.8); margin-bottom: 30px; }

.cta-btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

.btn-white {
    background: #fff;
    color: #1565c0;
    border: none;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
}

.btn-white svg { width: 18px; height: 18px; }
.btn-white:hover { background: #f0f0f0; transform: translateY(-2px); }

.btn-outline-white {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255,255,255,0.5);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
}

.btn-outline-white:hover {
    background: rgba(255,255,255,0.15);
    border-color: #fff;
}

/* 响应式 */
@media (max-width: 768px) {
    [data-animate].fadeInLeft {
        transform: translateX(0);
    }
    .product-detail-section {
        padding-top: 30px;
    }
    .detail-layout { 
        grid-template-columns: 1fr; 
        gap: 30px; 
        margin-bottom: 25px;
    }
    .detail-gallery { 
        position: static; 
        padding: 0 10px;
    }
    .gallery-main { 
        border-radius: 12px; 
        width: 100%;
        max-width: 100%;
    }
    .gallery-thumbs { 
        justify-content: center;
        gap: 8px;
    }
    .gallery-thumb { width: 60px; height: 60px; }
    .detail-info h1 { font-size: 22px; }
    .app-grid { grid-template-columns: repeat(2, 1fr); }
    .related-grid { grid-template-columns: repeat(2, 1fr); }
    .detail-actions { flex-direction: column; }
    .breadcrumb-bar { margin-top: 30px; padding: 10px 0; }
}
