/**
 * 产品页面专属样式
 * Products Page Styles
 */

/* ========================================
   Page Header (复用首页样式，补充定义)
   ======================================== */
.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;
}

.page-header-content h1 {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 20px;
    letter-spacing: 2px;
}

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

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

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

.breadcrumb i {
    font-size: 0.8rem;
}

/* ========================================
   Products Page Header
   ======================================== */
.products-categories-section {
    padding: 100px 0;
    background: var(--bg-white);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

/* ========================================
   Product Category Card
   ======================================== */
.product-category-card {
    background: var(--bg-white);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.product-category-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-color);
}

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

.category-image .image-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bg-white);
}

.category-image .image-placeholder i {
    font-size: 6rem;
    opacity: 0.3;
}

.category-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 51, 102, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.product-category-card:hover .category-overlay {
    opacity: 1;
}

.category-info {
    padding: 30px;
}

.category-info h3 {
    font-size: 1.4rem;
    color: var(--text-dark);
    margin-bottom: 15px;
    font-weight: 700;
}

.category-info p {
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 20px;
    font-size: 1rem;
}

.category-features {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 25px;
    padding: 20px;
    background: var(--bg-light);
    border-radius: var(--border-radius);
}

.category-features li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: var(--text-medium);
    font-size: 0.9rem;
    line-height: 1.5;
}

.category-features li i {
    color: var(--secondary-color);
    font-size: 0.85rem;
    margin-top: 3px;
}

.category-link {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.category-link:hover {
    gap: 12px;
    color: var(--primary-light);
}

/* ========================================
   Why Products Section
   ======================================== */
.why-products-section {
    padding: 100px 0;
    background: var(--bg-light);
}

.why-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.why-product-item {
    text-align: center;
    padding: 35px 25px;
    background: var(--bg-white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.why-product-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.why-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bg-white);
    font-size: 2.2rem;
}

.why-product-item h3 {
    font-size: 1.3rem;
    color: var(--text-dark);
    margin-bottom: 15px;
    font-weight: 700;
}

.why-product-item p {
    color: var(--text-light);
    line-height: 1.6;
}

/* ========================================
   Products CTA Section
   ======================================== */
.products-cta-section {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--secondary-hover) 100%);
    padding: 100px 0;
}

.products-cta-section .cta-content {
    text-align: center;
    color: var(--bg-white);
}

.products-cta-section .cta-content h2 {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.products-cta-section .cta-content p {
    font-size: 1.25rem;
    margin-bottom: 40px;
    opacity: 0.95;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* ========================================
   Product Detail Page Styles
   ======================================== */
.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-main-section {
    padding: 80px 0;
    background: var(--bg-white);
}

.product-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: start;
}

/* Product Gallery */
.product-gallery {
    position: sticky;
    top: 100px;
}

.main-image {
    margin-bottom: 20px;
}

.image-placeholder-large {
    width: 100%;
    height: 450px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: var(--border-radius-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--bg-white);
    box-shadow: var(--shadow-lg);
}

.image-placeholder-large i {
    font-size: 8rem;
    opacity: 0.3;
    margin-bottom: 20px;
}

.image-placeholder-large span {
    font-size: 1.2rem;
    font-weight: 600;
    opacity: 0.8;
}

.thumbnail-gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.thumbnail {
    aspect-ratio: 1;
    background: var(--bg-light);
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

.thumbnail i {
    font-size: 2rem;
    color: var(--text-muted);
}

.thumbnail:hover,
.thumbnail.active {
    border-color: var(--primary-color);
    background: var(--bg-white);
}

.thumbnail:hover i,
.thumbnail.active i {
    color: var(--primary-color);
}

/* Product Info Section */
.product-info-section {
    padding: 20px 0;
}

.product-title {
    font-size: 2.5rem;
    color: var(--text-dark);
    margin-bottom: 15px;
    font-weight: 700;
    line-height: 1.2;
}

.product-subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 30px;
    line-height: 1.6;
}

.product-highlights {
    display: flex;
    gap: 25px;
    margin-bottom: 35px;
    padding: 20px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.product-highlights .highlight-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-medium);
    font-weight: 500;
}

.product-highlights .highlight-item i {
    color: var(--secondary-color);
    font-size: 1.3rem;
}

.product-specs-brief {
    margin-bottom: 35px;
}

.spec-row {
    display: flex;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

.spec-row:last-child {
    border-bottom: none;
}

.spec-label {
    font-weight: 600;
    color: var(--text-dark);
    width: 180px;
    flex-shrink: 0;
}

.spec-value {
    color: var(--text-light);
    flex: 1;
}

.product-actions {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.action-btn {
    padding: 16px 32px;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
    text-decoration: none;
}

.action-btn.primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: var(--bg-white);
    box-shadow: var(--shadow-md);
}

.action-btn.primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.action-btn.secondary {
    background: var(--bg-white);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.action-btn.secondary:hover {
    background: var(--primary-color);
    color: var(--bg-white);
    transform: translateY(-3px);
}

.action-btn.whatsapp {
    background: #25D366;
    color: var(--bg-white);
}

.action-btn.whatsapp:hover {
    background: #128C7E;
    transform: translateY(-3px);
}

.product-download {
    padding: 25px;
    background: var(--bg-light);
    border-radius: var(--border-radius-lg);
}

.product-download p {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.download-link {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--primary-color);
    font-weight: 500;
    margin-bottom: 10px;
    transition: var(--transition);
}

.download-link:last-child {
    margin-bottom: 0;
}

.download-link:hover {
    gap: 15px;
    color: var(--primary-light);
}

.download-link i {
    font-size: 1.2rem;
}

/* ========================================
   Product Tabs Section
   ======================================== */
.product-tabs-section {
    padding: 80px 0;
    background: var(--bg-light);
}

.tabs-container {
    background: var(--bg-white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.tabs-header {
    display: flex;
    background: var(--bg-light);
    border-bottom: 2px solid var(--border-color);
}

.tab-btn {
    flex: 1;
    padding: 20px 25px;
    background: transparent;
    border: none;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-medium);
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}

.tab-btn:hover {
    background: var(--bg-white);
    color: var(--primary-color);
}

.tab-btn.active {
    color: var(--primary-color);
    background: var(--bg-white);
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--primary-color);
}

.tab-content {
    display: none;
    padding: 50px;
}

.tab-content.active {
    display: block;
}

.tab-content-inner h2 {
    font-size: 2rem;
    color: var(--text-dark);
    margin-bottom: 30px;
    font-weight: 700;
}

.tab-content-inner h3 {
    font-size: 1.4rem;
    color: var(--text-dark);
    margin: 35px 0 20px;
    font-weight: 600;
}

.tab-content-inner p {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 20px;
    font-size: 1.05rem;
}

/* Feature List */
.feature-list,
.process-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin: 25px 0;
}

.feature-list li,
.process-list li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    color: var(--text-medium);
    font-size: 1rem;
    line-height: 1.7;
}

.feature-list li i,
.process-list li i {
    color: var(--secondary-color);
    font-size: 1.2rem;
    margin-top: 3px;
}

/* Specs Table */
.specs-table-wrapper {
    overflow-x: auto;
    margin: 30px 0;
}

.specs-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-white);
}

.specs-table thead {
    background: var(--primary-color);
    color: var(--bg-white);
}

.specs-table th,
.specs-table td {
    padding: 18px 20px;
    text-align: left;
    border: 1px solid var(--border-color);
}

.specs-table th {
    font-weight: 700;
    font-size: 1rem;
}

.specs-table tbody tr:nth-child(even) {
    background: var(--bg-light);
}

.specs-table tbody tr:hover {
    background: rgba(0, 51, 102, 0.05);
}

.specs-note {
    margin-top: 30px;
    padding: 20px;
    background: rgba(243, 156, 18, 0.1);
    border-left: 4px solid var(--secondary-color);
    border-radius: var(--border-radius);
}

.specs-note p {
    margin: 0;
    color: var(--text-medium);
}

.specs-note i {
    color: var(--secondary-color);
    margin-right: 10px;
}

/* Applications Grid Detail */
.applications-grid-detail {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.app-detail-card {
    padding: 30px;
    background: var(--bg-light);
    border-radius: var(--border-radius-lg);
    transition: var(--transition);
}

.app-detail-card:hover {
    background: var(--bg-white);
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
}

.app-detail-card .app-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.app-detail-card h3 {
    font-size: 1.3rem;
    color: var(--text-dark);
    margin: 0 0 15px !important;
    font-weight: 700;
}

.app-detail-card ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 0;
}

.app-detail-card ul li {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
    padding-left: 20px;
    position: relative;
}

.app-detail-card ul li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

/* Packaging Content */
.packaging-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin-top: 30px;
}

.packaging-info,
.shipping-info {
    padding: 30px;
    background: var(--bg-light);
    border-radius: var(--border-radius-lg);
}

.packaging-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin: 20px 0;
}

.packaging-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: var(--text-medium);
    line-height: 1.7;
}

.packaging-list li i {
    color: var(--primary-color);
    font-size: 1.1rem;
    margin-top: 3px;
}

.shipping-methods {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 20px;
}

.shipping-method {
    display: flex;
    gap: 20px;
    padding: 20px;
    background: var(--bg-white);
    border-radius: var(--border-radius);
}

.shipping-method i {
    font-size: 2.5rem;
    color: var(--primary-color);
}

.shipping-method h4 {
    font-size: 1.2rem;
    color: var(--text-dark);
    margin-bottom: 8px;
    font-weight: 600;
}

.shipping-method p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

/* ========================================
   Related Products Section
   ======================================== */
.related-products-section {
    padding: 100px 0;
    background: var(--bg-white);
}

.related-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.related-product-card {
    padding: 30px;
    background: var(--bg-white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 1px solid var(--border-color);
    text-decoration: none;
}

.related-product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-color);
}

.related-image {
    width: 100%;
    height: 150px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bg-white);
    margin-bottom: 20px;
}

.related-image i {
    font-size: 4rem;
    opacity: 0.5;
}

.related-product-card h3 {
    font-size: 1.2rem;
    color: var(--text-dark);
    margin-bottom: 10px;
    font-weight: 700;
}

.related-product-card p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

/* ========================================
   Product CTA Section
   ======================================== */
.product-cta-section {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--secondary-hover) 100%);
    padding: 100px 0;
}

/* ========================================
   Responsive Design
   ======================================== */
@media (max-width: 1024px) {
    .product-detail-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .product-gallery {
        position: static;
    }

    .packaging-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: 1fr;
    }

    .why-products-grid {
        grid-template-columns: 1fr;
    }

    .product-highlights {
        flex-direction: column;
        gap: 15px;
    }

    .product-actions {
        flex-direction: column;
    }

    .action-btn {
        width: 100%;
        justify-content: center;
    }

    .tabs-header {
        flex-direction: column;
    }

    .tab-btn {
        border-bottom: 1px solid var(--border-color);
    }

    .tab-btn.active::after {
        display: none;
    }

    .tab-content {
        padding: 30px 20px;
    }

    .specs-table {
        font-size: 0.9rem;
    }

    .specs-table th,
    .specs-table td {
        padding: 12px 15px;
    }

    .applications-grid-detail {
        grid-template-columns: 1fr;
    }

    .related-products-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .product-title {
        font-size: 1.8rem;
    }

    .spec-row {
        flex-direction: column;
        gap: 5px;
    }

    .spec-label {
        width: 100%;
    }

    .image-placeholder-large {
        height: 300px;
    }

    .image-placeholder-large i {
        font-size: 5rem;
    }
}
