/* ==========================================
   产品矩阵子页面 - 样式
   ========================================== */

/* ---------- 页面头部 ---------- */
.page-hero {
    position: relative;
    height: 320px;
    background: #0f172a url('../media/hero-fallback.jpg') center/cover no-repeat;
    display: flex;
    align-items: center;
    text-align: center;
    color: #ffffff;
}

.page-hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
}

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

.page-hero h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 12px;
}

.page-hero p {
    font-size: 18px;
    opacity: 0.85;
}

/* ---------- 产品详情模块 ---------- */
.product-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 72px;
    align-items: center;
}

.product-detail-grid.reverse {
    direction: initial;
}

.product-detail-image img {
    width: 100%;
    border-radius: 16px;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    background: var(--color-bg-light);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

/* ---------- 团队介绍 ---------- */
.team-member-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 48px;
    align-items: center;
    margin-bottom: 64px;
}

.team-member-grid.reverse {
    grid-template-columns: 2fr 1fr;
}

.team-member-grid:last-child {
    margin-bottom: 0;
}

.team-member-photo {
    max-width: 320px;
    margin: 0 auto;
}

.team-member-photo img {
    width: 100%;
    border-radius: 16px;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    background: var(--color-bg-light);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.product-badge {
    display: inline-block;
    font-size: 13px;
    color: var(--color-primary);
    background: rgba(37, 99, 235, 0.08);
    padding: 6px 18px;
    border-radius: 20px;
    margin-bottom: 12px;
    font-weight: 500;
}

.product-detail-info h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--color-text);
}

.product-slogan {
    font-size: 18px;
    color: var(--color-primary);
    font-weight: 500;
    margin-bottom: 20px;
}

.product-detail-info > p {
    font-size: 16px;
    color: var(--color-text-light);
    line-height: 1.8;
    margin-bottom: 28px;
}

.product-features {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.product-features li {
    font-size: 14px;
    color: var(--color-text);
    padding-left: 24px;
    position: relative;
}

.product-features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 8px;
    height: 8px;
    background: var(--color-primary);
    border-radius: 50%;
}

/* ---------- 公司介绍（全幅背景图） ---------- */
.company-intro {
    position: relative;
}

.company-intro-bg {
    display: block;
    width: 100%;
    height: auto;
}

.company-intro-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-start;
    padding: calc(var(--nav-height) + 40px) 0 0;
    background:
        linear-gradient(90deg, rgba(15, 23, 42, 0.45) 0%, rgba(15, 23, 42, 0.2) 50%, rgba(15, 23, 42, 0.1) 100%),
        linear-gradient(180deg, rgba(15, 23, 42, 0.35) 0%, rgba(15, 23, 42, 0.2) 50%, rgba(15, 23, 42, 0.35) 100%);
}

.company-intro-overlay .container {
    width: 100%;
}

.company-intro-header {
    text-align: center;
    margin-bottom: 48px;
}

.company-intro-header h1 {
    font-size: 48px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 12px;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
}

.company-hero-sub {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5);
}

.company-intro-content {
    max-width: 500px;
    text-align: left;
    color: #ffffff;
}

.company-intro-content h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 12px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
}

.company-slogan {
    font-size: 18px;
    font-weight: 500;
    opacity: 0.9;
    margin-bottom: 32px;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.4);
}

.company-desc {
    font-size: 16px;
    line-height: 1.9;
    opacity: 0.85;
    max-width: 440px;
    margin: 0 0 16px;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.4);
}

/* ---------- 新闻列表 ---------- */
.news-list {
    max-width: 820px;
    margin: 0 auto;
}

.news-list-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    text-decoration: none;
    color: inherit;
    padding: 18px 0;
    border-bottom: 1px solid var(--color-border);
    transition: padding-left 0.2s;
}

.news-list-thumb {
    flex: 0 0 140px;
    width: 140px;
    height: 90px;
    border-radius: 10px;
    object-fit: contain;
    background: var(--color-bg-light);
}

/* 有缩略图时日期稍窄 */
.news-list-item:has(.news-list-thumb) .news-list-date {
    flex: 0 0 80px;
}

.news-list-item:first-child {
    border-top: 1px solid var(--color-border);
}

.news-list-item:hover {
    padding-left: 12px;
    border-bottom-color: var(--color-primary);
}

.news-list-item:hover h3 {
    color: var(--color-primary);
}

.news-list-date {
    flex: 0 0 90px;
    font-size: 13px;
    color: var(--color-text-light);
    padding-top: 2px;
    font-weight: 500;
}

.news-list-content {
    flex: 1;
    min-width: 0;
}

.news-list-content h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 6px;
    line-height: 1.5;
    transition: color 0.2s;
}

.news-list-content p {
    font-size: 14px;
    color: var(--color-text-light);
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 新闻正文 */
.news-article-title {
    font-size: 26px;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 10px;
    text-align: center;
    text-indent: 0;
}

.news-article-meta {
    font-size: 14px;
    color: var(--color-text-light);
    margin-bottom: 32px;
    text-align: center;
    text-indent: 0;
}

.news-article {
    font-size: 16px;
    line-height: 2;
    color: var(--color-text-light);
}

.news-article-cover {
    width: 100%;
    border-radius: 12px;
    margin-bottom: 20px;
    object-fit: contain;
    background: var(--color-bg-light);
}

.news-article p {
    margin-bottom: 20px;
    text-indent: 2em;
}

.news-article h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--color-text);
    margin: 32px 0 12px;
    text-indent: 0;
}

.news-article img {
    width: 100%;
    border-radius: 12px;
    margin: 20px 0;
}

/* ---------- 响应式 ---------- */
@media (max-width: 768px) {
    .page-hero {
        height: 220px;
    }

    .page-hero h1 {
        font-size: 32px;
    }

    .page-hero p {
        font-size: 15px;
    }

    .news-list-item {
        flex-wrap: wrap;
        gap: 10px;
    }
    .news-list-thumb {
        flex: 0 0 100%;
        width: 100%;
        height: auto;
        object-fit: contain;
    }
    .news-list-date {
        flex: auto;
    }

    .product-detail-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .product-detail-info h2 {
        font-size: 28px;
    }

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

    .team-member-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .prod-card-body {
        flex-direction: column;
        gap: 24px;
    }
    .prod-card-visual {
        flex: auto;
        max-width: 320px;
    }
    .prod-card-visual[style*="order: 2"] {
        order: 0 !important;
    }
    .prod-card-main[style*="order: 1"] {
        order: 0 !important;
    }
    .prod-card-sections {
        grid-template-columns: 1fr;
    }

    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }

    .team-member-grid.reverse {
        grid-template-columns: 1fr;
    }

    .team-member-photo {
        max-width: 240px;
    }

    .company-intro-header h1 {
        font-size: 28px;
    }

    .company-intro-content h2 {
        font-size: 22px;
    }

    .company-intro-overlay {
        padding: 60px 0;
    }
}

/* ---------- 六大特点 ---------- */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 48px;
}

.feature-item {
    text-align: center;
    padding: 28px 16px;
    border-radius: 14px;
    border: 1px solid var(--color-border);
    background: #ffffff;
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}

.feature-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 28px rgba(37, 99, 235, 0.08);
    border-color: rgba(37, 99, 235, 0.3);
}

.feature-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 14px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.06), rgba(37, 99, 235, 0.12));
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.feature-item:hover .feature-icon {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.12), rgba(37, 99, 235, 0.2));
}

.feature-icon svg {
    width: 28px;
    height: 28px;
}

.feature-item h4 {
    font-size: 15px;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 6px;
}

.feature-item p {
    font-size: 13px;
    color: var(--color-text-light);
    line-height: 1.5;
}

/* ---------- 产品图片占位 ---------- */
.section-placeholder {
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.04) 0%, rgba(37, 99, 235, 0.08) 100%);
    border: 2px dashed rgba(37, 99, 235, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: rgba(37, 99, 235, 0.35);
}

.section-placeholder-icon {
    font-size: 48px;
    margin-bottom: 12px;
}

.section-placeholder-text {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 6px;
    color: rgba(37, 99, 235, 0.5);
}

.section-placeholder-hint {
    font-size: 12px;
    color: rgba(37, 99, 235, 0.3);
}

/* ---------- 演示视频卡片 ---------- */
.demo-video-card {
    border-radius: 14px;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid var(--color-border);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
    transition: transform 0.3s, box-shadow 0.3s;
}

.demo-video-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.1);
}

.demo-video {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    background: #000;
}

.demo-video-label {
    padding: 16px 18px;
}

.demo-video-tag {
    display: inline-block;
    font-size: 11px;
    color: var(--color-primary);
    background: rgba(37, 99, 235, 0.08);
    padding: 3px 12px;
    border-radius: 12px;
    margin-bottom: 8px;
    font-weight: 600;
}

.demo-video-title {
    display: block;
    font-size: 16px;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 6px;
}

.demo-video-desc {
    font-size: 13px;
    color: var(--color-text-light);
    line-height: 1.6;
    margin: 0;
}

/* ---------- 产品总览卡片 ---------- */
.products-summary {
    max-width: 720px;
    margin: 0 auto 48px;
    text-align: center;
    font-size: 16px;
    line-height: 2;
    color: var(--color-text-light);
}
.products-summary strong { color: var(--color-text); }

.prod-card {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid var(--color-border);
    overflow: hidden;
    transition: box-shadow 0.3s;
}
.prod-card:hover { box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06); }

.prod-card-header {
    padding: 10px 28px;
    background: var(--c-light);
    border-bottom: 2px solid var(--c);
}
.prod-card-badge {
    font-size: 12px;
    font-weight: 700;
    color: var(--c);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.prod-card-body {
    display: flex;
    gap: 40px;
    padding: 32px 28px;
    align-items: flex-start;
}
.prod-card-visual { flex: 0 0 240px; }
.prod-card-visual img {
    width: 100%;
    border-radius: 12px;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    background: var(--color-bg-light);
}
.prod-card-main { flex: 1; min-width: 0; }
.prod-card-main h2 { font-size: 24px; font-weight: 700; margin-bottom: 6px; color: var(--color-text); }
.prod-card-pos {
    font-size: 15px;
    color: var(--color-text-light);
    line-height: 1.7;
    margin-bottom: 20px;
    font-style: italic;
}

.prod-card-sections { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.prod-section h4 {
    font-size: 13px; font-weight: 700; color: var(--color-text);
    margin-bottom: 10px; text-transform: uppercase; letter-spacing: 1px;
}
.prod-section ul { list-style: none; padding: 0; margin: 0; }
.prod-section ul li {
    position: relative; padding-left: 16px; margin-bottom: 8px;
    font-size: 13px; color: var(--color-text-light); line-height: 1.6;
}
.prod-section ul li::before {
    content: ''; position: absolute; left: 0; top: 8px;
    width: 6px; height: 6px; border-radius: 50%; background: var(--color-border);
}

.prod-combos { display: flex; flex-direction: column; gap: 8px; }
.prod-combo {
    font-size: 13px; color: var(--color-text-light); line-height: 1.6;
    padding: 8px 12px; background: var(--color-bg-light); border-radius: 8px;
    border-left: 3px solid var(--color-border);
}
.prod-combo i { font-style: normal; font-weight: 700; color: var(--color-text); }

/* 对比表列头颜色 */
.th-sentinel { border-bottom-color: #2563EB !important; }
.th-skyhawk { border-bottom-color: #059669 !important; }
.th-halberd { border-bottom-color: #DC2626 !important; }
.th-shield { border-bottom-color: #7C3AED !important; }
.th-forge { border-bottom-color: #D97706 !important; }
.compare-table thead th { border-bottom: 3px solid var(--color-border); }
.check { color: #059669; font-weight: 700; font-size: 16px; }

/* ---------- 图片轮播 ---------- */
.carousel {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: var(--color-bg-light);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    user-select: none;
}

.carousel-track {
    display: flex;
    transition: transform 0.4s ease;
}

.carousel-track img {
    min-width: 100%;
    width: 100%;
    max-height: 500px;
    object-fit: contain;
    display: block;
    background: var(--color-bg-light);
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.85);
    color: var(--color-text);
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, box-shadow 0.2s;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.carousel-btn:hover {
    background: #ffffff;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.carousel-prev { left: 12px; }
.carousel-next { right: 12px; }

.carousel-dots {
    position: absolute;
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 2;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.7);
    background: transparent;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
}

.carousel-dot.active {
    background: #ffffff;
    border-color: #ffffff;
}

@media (max-width: 480px) {
    .prod-card-body {
        padding: 20px 16px;
    }
}