/* ================================
   sNIRII 系列专属样式
   说明：本文件依赖 root.css 中定义的全站颜色系统
   所有颜色变量均来自 root.css，保持全站一致性
================================ */

/* ================================
   sNIRII 专属主题色定义
   基于 NIR-II 近红外二区活体成像特性的配色方案
================================ */
.theme-snirii {
    /* 方案一：深红紫色系 - 体现 NIR-II 成像的伪彩色特征 */
    --theme-primary: #8B1538;        /* 深红色 - 体现近红外成像特性 */
    --theme-secondary: #B8336A;      /* 玫瑰紫 - 生物医学成像感 */
    --theme-accent: #C490D1;         /* 淡紫色 - 荧光成像特征 */
    --theme-dark: #5C0E23;           /* 暗红色 - 深层组织成像 */
    --theme-gradient: linear-gradient(135deg, #8B1538 0%, #B8336A 100%);
    --theme-gradient-alt: linear-gradient(135deg, #B8336A 0%, #C490D1 100%);
}

/* 备选方案：科技紫红色系 - 更现代的生物医学感 */
.theme-snirii-alt {
    --theme-primary: #6B1F5F;        /* 深紫红 - 科技感 */
    --theme-secondary: #8E44AD;      /* 紫罗兰 - 荧光成像 */
    --theme-accent: #E91E63;         /* 粉红色 - 活体成像 */
    --theme-dark: #4A0E40;           /* 深紫色 - 深层穿透 */
    --theme-gradient: linear-gradient(135deg, #6B1F5F 0%, #8E44AD 100%);
    --theme-gradient-alt: linear-gradient(135deg, #8E44AD 0%, #E91E63 100%);
}

/* ================================
   产品介绍区域
================================ */
.product-intro-section {
    background: linear-gradient(135deg, var(--bg-section) 0%, var(--bg-white) 100%);
    position: relative;
    overflow: hidden;
}

.product-intro-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 150px;
    background: var(--gradient-primary);
    opacity: 0.05;
    z-index: 1;
}

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

/* ================================
   标题区域
================================ */
.product-title {
    text-align: center;
    margin-bottom: 3rem;
}

.product-title h2 {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.product-subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* ================================
   英雄区域
================================ */
.product-hero {
    background: var(--gradient-hero);
    color: var(--text-white);
    padding: 60px 0 40px;
    position: relative;
    border-radius: var(--radius-md);
    margin-bottom: 2rem;
    overflow: hidden;
}

.product-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--primary-alpha-10);
    z-index: 1;
}

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

.product-hero h1 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.product-hero .lead {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.hero-features {
    font-size: 0.9rem;
}

.hero-features .fa-check-circle {
    color: var(--text-white);
    margin-right: 0.5rem;
}

/* sNIRII 主题色 */
.theme-snirii .product-hero,
.product-hero.snirii {
    background: var(--theme-gradient);
}

/* ================================
   特点网格布局
================================ */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.feature-card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    transition: var(--transition-normal);
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

.feature-icon {
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);  /* 使用全站默认渐变 */
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--text-white);
    margin-bottom: 1rem;
    box-shadow: var(--shadow-md);
}

.feature-title {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
}

.feature-desc {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 0;
}

.feature-desc strong {
    color: var(--primary-color);
    font-weight: 600;
}

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

.app-card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 1.2rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    transition: var(--transition-normal);
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.app-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

.app-icon {
    flex-shrink: 0;
    width: 45px;
    height: 45px;
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-white);
    font-size: 1.1rem;
}

.app-content h5 {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.app-content p {
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.5;
    margin-bottom: 0;
}

/* ================================
   技术优势卡片
================================ */
.advantage-card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 1.2rem;
    box-shadow: var(--shadow-sm);
    border-left: 3px solid var(--primary-color);
    height: 100%;
}

.advantage-card h5 {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 0.8rem;
}

.advantage-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 0;
}

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

.interface-badge {
    background: var(--primary-color);
    color: var(--text-white);
    padding: 0.3rem 0.6rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* ================================
   总结区域
================================ */
.summary-card {
    background: var(--gradient-primary);
    border-radius: var(--radius-md);
    padding: 2rem;
    color: var(--text-white);
    margin: 2rem 0;
    position: relative;
    overflow: hidden;
}

.summary-card::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -10%;
    width: 150px;
    height: 150px;
    background: var(--primary-alpha-10);
    border-radius: var(--radius-full);
}

.summary-text {
    position: relative;
    z-index: 2;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 0;
}

.summary-text strong {
    font-weight: 700;
}

/* ================================
   sNIRII 特殊标识
================================ */
.theme-snirii .snirii-badge,
.snirii-badge {
    background: var(--theme-gradient, linear-gradient(135deg, #8B1538 0%, #B8336A 100%));
    color: var(--text-white);
    padding: 4px 12px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 8px;
    box-shadow: 0 2px 4px rgba(139, 21, 56, 0.2);
}

/* NIR-II 波段标识 */
.theme-snirii .nir2-indicator,
.nir2-indicator {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--theme-primary, #8B1538);
    font-size: 13px;
    font-weight: 500;
}

.theme-snirii .nir2-indicator::before,
.nir2-indicator::before {
    content: "";
    width: 8px;
    height: 8px;
    background: var(--theme-secondary, #B8336A);
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 4px rgba(184, 51, 106, 0.4);
}

/* 制冷标识 */
.cooling-badge {
    background: var(--bg-hover);
    color: var(--primary-color);
    padding: 3px 8px;
    border-radius: var(--radius-sm);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

/* 国产标识 */
.domestic-badge {
    background: linear-gradient(135deg, var(--danger-color) 0%, #CC0000 100%);
    color: var(--text-white);
    padding: 2px 8px;
    border-radius: var(--radius-sm);
    font-size: 11px;
    font-weight: 600;
    position: absolute;
    top: 10px;
    right: 10px;
}

/* ================================
   应用主题色彩
================================ */
.theme-snirii .feature-icon,
.theme-snirii .app-icon {
    background: var(--theme-gradient);
}

.theme-snirii .feature-title,
.theme-snirii .app-content h5,
.theme-snirii .advantage-card h5 {
    color: var(--theme-primary);
}

.theme-snirii .interface-badge {
    background: var(--theme-primary);
}

.theme-snirii .summary-card {
    background: var(--theme-gradient);
}

/* ================================
   工具类
================================ */
.text-center { text-align: center; }
.text-primary { color: var(--primary-color); }
.me-1 { margin-right: 0.25rem; }
.me-2 { margin-right: 0.5rem; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mb-5 { margin-bottom: 3rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.mt-5 { margin-top: 3rem; }

.section-space-compact {
    padding: 50px 0;
}

/* ================================
   响应式设计
================================ */
@media (max-width: 768px) {
    .summary-card {
        text-align: center;
    }

    .product-hero {
        padding: 40px 0 30px;
    }

    .product-hero h1 {
        font-size: 1.5rem;
    }

    .product-title h2 {
        font-size: 1.6rem;
    }

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

    .feature-card {
        padding: 1.2rem;
    }

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

    .app-card {
        flex-direction: column;
        text-align: center;
        align-items: center;
        padding: 1rem;
    }

    .advantage-card {
        margin-bottom: 1rem;
    }

    .summary-card {
        padding: 1.5rem;
    }

    .summary-text {
        font-size: 1rem;
    }

    .snirii-badge {
        font-size: 11px;
        padding: 3px 8px;
    }

    .feature-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .app-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .section-space-compact {
        padding: 40px 0;
    }
}

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

    .product-hero {
        padding: 30px 0 20px;
        margin-bottom: 1.5rem;
    }

    .product-title {
        margin-bottom: 2rem;
    }

    .product-title h2 {
        font-size: 1.4rem;
    }

    .product-subtitle {
        font-size: 1rem;
    }

    .feature-card {
        padding: 1rem;
    }

    .app-card {
        padding: 0.8rem;
    }

    .advantage-card {
        padding: 1rem;
    }

    .summary-card {
        padding: 1.2rem;
    }

    .interface-badge {
        font-size: 0.75rem;
        padding: 0.25rem 0.5rem;
    }
}