/**
 * 产品详情页专属样式补充
 * Product Detail Page Additional Styles
 */

/* ========================================
   Product Detail Page Header
   ======================================== */
.product-page-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    padding: 180px 0 80px;
    text-align: center;
    color: var(--bg-white);
    margin-top: 80px;
}

.product-page-header .page-header-content h1 {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.product-page-header .breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 1rem;
    opacity: 0.9;
    flex-wrap: wrap;
}

.product-page-header .breadcrumb a {
    color: var(--bg-white);
    transition: var(--transition);
}

.product-page-header .breadcrumb a:hover {
    color: var(--secondary-color);
}

.product-page-header .breadcrumb i {
    font-size: 0.75rem;
}

/* 产品详情页特殊样式已在 products-style.css 中定义 */

/* 额外的动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 缩略图动画 */
.thumbnail {
    animation: fadeInUp 0.5s ease backwards;
}

.thumbnail:nth-child(1) { animation-delay: 0.1s; }
.thumbnail:nth-child(2) { animation-delay: 0.2s; }
.thumbnail:nth-child(3) { animation-delay: 0.3s; }
.thumbnail:nth-child(4) { animation-delay: 0.4s; }

/* 产品卡片悬停效果增强 */
.related-product-card {
    position: relative;
    overflow: hidden;
}

.related-product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.related-product-card:hover::before {
    left: 100%;
}

/* 规格表响应式优化 */
@media (max-width: 640px) {
    .specs-table thead {
        display: none;
    }

    .specs-table,
    .specs-table tbody,
    .specs-table tr,
    .specs-table td {
        display: block;
        width: 100%;
    }

    .specs-table tr {
        margin-bottom: 15px;
        border: 1px solid var(--border-color);
        border-radius: var(--border-radius);
        padding: 15px;
        background: var(--bg-white);
    }

    .specs-table td {
        text-align: right;
        padding-left: 50%;
        position: relative;
    }

    .specs-table td::before {
        content: attr(data-label);
        position: absolute;
        left: 15px;
        width: calc(50% - 30px);
        white-space: nowrap;
        font-weight: 600;
        color: var(--text-dark);
    }
}

/* 打印样式 */
@media print {
    .navbar,
    .top-bar,
    .product-actions,
    .product-download,
    .related-products-section,
    .product-cta-section,
    .footer,
    .back-to-top {
        display: none !important;
    }

    .product-main-section,
    .product-tabs-section {
        padding: 20px 0;
    }

    .tabs-header {
        display: none;
    }

    .tab-content {
        display: block !important;
        padding: 20px 0;
    }

    .tab-content::before {
        content: attr(id);
        display: block;
        font-size: 1.5rem;
        font-weight: 700;
        margin-bottom: 15px;
        text-transform: capitalize;
    }
}
