/**
 * Product Page Init Styles
 * 通用产品页面样式文件
 * 适用于所有产品子页面的基础样式
 */

/* ================================
   产品页面英雄区域
================================ */
.product-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
}

.product-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.2);
    z-index: 1;
}

.product-hero .container {
    position: relative;
    z-index: 2;
}

/* 产品特定英雄背景 */
.product-hero.swir-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.product-hero.scmos-hero {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.product-hero.microscopy-hero {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.product-hero.astronomy-hero {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

/* ================================
   图标和特性展示
================================ */
.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--megamenu-primary-color), var(--megamenu-hover-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    margin: 0 auto 1.5rem;
    box-shadow: 0 8px 25px rgba(47, 128, 237, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-icon:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(47, 128, 237, 0.4);
}

/* 大号图标变体 */
.feature-icon.lg {
    width: 100px;
    height: 100px;
    font-size: 2.5rem;
}

/* 小号图标变体 */
.feature-icon.sm {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

/* ================================
   规格卡片
================================ */
.spec-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.spec-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.spec-card.compact {
    padding: 1.5rem;
}

.spec-card.highlight {
    border-left: 4px solid var(--megamenu-primary-color);
}

/* ================================
   规格表格
================================ */
.spec-table {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.spec-table table {
    margin: 0;
    border-collapse: collapse;
}

.spec-table thead {
    background: linear-gradient(135deg, var(--megamenu-primary-color), var(--megamenu-hover-color));
    color: white;
}

.spec-table thead th {
    padding: 1rem;
    font-weight: 600;
    text-align: center;
    border: none;
}

.spec-table tbody tr {
    transition: background-color 0.2s ease;
}

.spec-table tbody tr:nth-child(even) {
    background-color: #f8f9fa;
}

.spec-table tbody tr:hover {
    background-color: #e3f2fd;
}

.spec-table tbody td {
    padding: 1rem;
    text-align: center;
    border: none;
    border-bottom: 1px solid #dee2e6;
}

/* ================================
   应用场景网格
================================ */
.application-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.application-item {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-left: 4px solid var(--megamenu-primary-color);
    position: relative;
    overflow: hidden;
}

.application-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(135deg, var(--megamenu-primary-color), var(--megamenu-hover-color));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.application-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

.application-item:hover::before {
    transform: scaleX(1);
}

.application-item h5 {
    color: var(--nav-text);
    margin: 1rem 0 0.5rem;
}

/* ================================
   背景变体
================================ */
.gradient-bg {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.gradient-bg-alt {
    background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
}

.gradient-bg-cool {
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
}

/* ================================
   突出显示区域
================================ */
.highlight-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 15px;
    padding: 3rem 2rem;
    margin: 3rem 0;
    position: relative;
    overflow: hidden;
}

.highlight-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.highlight-section.cooling-highlight {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.highlight-section.performance-highlight {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.highlight-section.precision-highlight {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

/* ================================
   接口徽章
================================ */
.interface-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.interface-badges.center {
    justify-content: center;
}

.interface-badge {
    background: var(--megamenu-primary-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 500;
    display: inline-block;
    transition: all 0.3s ease;
}

.interface-badge:hover {
    background: var(--megamenu-hover-color);
    transform: translateY(-2px);
}

.interface-badge.large {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
}

.interface-badge.outline {
    background: transparent;
    border: 2px solid var(--megamenu-primary-color);
    color: var(--megamenu-primary-color);
}

.interface-badge.outline:hover {
    background: var(--megamenu-primary-color);
    color: white;
}

/* ================================
   数字高亮
================================ */
.highlight-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--megamenu-primary-color);
    display: block;
    line-height: 1;
    font-family: 'Arial', sans-serif;
}

.highlight-number.white {
    color: white;
}

.highlight-number.large {
    font-size: 3.5rem;
}

.highlight-number.small {
    font-size: 2rem;
}

/* ================================
   面包屑导航
================================ */
.product-breadcrumb {
    background-color: #fff;
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    height: 300px;
    display: flex;
    align-items: center;
    position: relative;
}

.product-breadcrumb::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.product-breadcrumb .container {
    position: relative;
    z-index: 2;
}

/* 产品特定面包屑背景 */
.product-breadcrumb.swir {
    background-image: var(--SWIR_ban);
}

.product-breadcrumb.scmos {
    background-image: var(--sCMOS_ban);
}

.product-breadcrumb.microscopy {
    background-image: var(--Microscopy_ban);
}

/* ================================
   特性列表
================================ */
.feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.feature-list li {
    padding: 0.75rem 0;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
}

.feature-list li:last-child {
    border-bottom: none;
}

.feature-list li i {
    color: var(--megamenu-primary-color);
    font-size: 1.2rem;
    margin-right: 1rem;
    width: 20px;
    text-align: center;
}

.feature-list.compact li {
    padding: 0.5rem 0;
}

/* ================================
   统计数据展示
================================ */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.stat-item {
    text-align: center;
    padding: 1.5rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-3px);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--megamenu-primary-color);
    display: block;
    line-height: 1;
}

.stat-label {
    color: #666;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

/* ================================
   CTA 区域
================================ */
.cta-section {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    padding: 4rem 2rem;
    border-radius: 15px;
    text-align: center;
    margin: 3rem 0;
}

.cta-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.cta-buttons .btn {
    min-width: 180px;
    padding: 0.75rem 1.5rem;
}

/* ================================
   响应式设计
================================ */
@media (max-width: 768px) {
    .product-hero {
        padding: 80px 0 60px;
    }

    .spec-card {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .highlight-section {
        padding: 2rem 1.5rem;
        margin: 2rem 0;
    }

    .highlight-number {
        font-size: 2rem;
    }

    .highlight-number.large {
        font-size: 2.5rem;
    }

    .feature-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }

    .application-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .application-item {
        padding: 1.25rem;
    }

    .interface-badges {
        justify-content: center;
    }

    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 1rem;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .cta-buttons .btn {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 576px) {
    .product-hero {
        padding: 60px 0 40px;
    }

    .spec-card {
        padding: 1.25rem;
    }

    .highlight-section {
        padding: 1.5rem 1rem;
    }

    .feature-icon {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }

    .application-item {
        padding: 1rem;
    }

    .interface-badge {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
}

/* ================================
   打印样式
================================ */
@media print {
    .product-hero,
    .cta-section {
        background: none !important;
        color: #000 !important;
    }

    .spec-card,
    .application-item {
        box-shadow: none !important;
        border: 1px solid #ddd !important;
    }

    .highlight-section {
        background: #f5f5f5 !important;
        color: #000 !important;
    }
}

/* ================================
   暗色主题支持（可选）
================================ */
@media (prefers-color-scheme: dark) {
    .spec-card {
        background: #1a1a1a;
        color: #e0e0e0;
        border-color: #333;
    }

    .application-item {
        background: #1a1a1a;
        color: #e0e0e0;
    }

    .spec-table tbody tr:nth-child(even) {
        background-color: #2a2a2a;
    }

    .spec-table tbody tr:hover {
        background-color: #333;
    }
}

/* ================================
   辅助工具类
================================ */
.product-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.section-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, #ddd, transparent);
    margin: 3rem 0;
}

.text-gradient {
    background: linear-gradient(135deg, var(--megamenu-primary-color), var(--megamenu-hover-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}