/* ============================================================
   products.css · 产品总览页 + 单产品详情页 + News 页样式
   命名空间：.products-* / .product-* / .news-*
   ============================================================ */

/* ============================================================
   产品总览页（/products）
   ============================================================ */
.products-page {
    min-height: 100vh;
}

.products-hero {
    position: relative;
    padding: 5.5rem 2rem 3.5rem;
    text-align: center;
    overflow: hidden;
}
.products-hero-glow {
    position: absolute; inset: 0; pointer-events: none; z-index: 0;
    background:
        radial-gradient(ellipse 60% 50% at 50% 10%, rgba(0, 204, 128, 0.10), transparent 65%),
        radial-gradient(ellipse 50% 40% at 50% 95%, rgba(0, 102, 255, 0.06), transparent 65%);
}
.products-hero-inner {
    position: relative; z-index: 1;
    max-width: 920px; margin: 0 auto;
}
.products-h1 {
    font-size: 3rem; font-weight: 700;
    margin: 1.1rem 0 0.85rem;
    background: linear-gradient(135deg, #ffffff 0%, var(--primary-color) 60%, var(--secondary-color) 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
    letter-spacing: -0.02em; line-height: 1.15;
}
.products-h1-sub {
    font-size: 1.1rem; color: var(--text-secondary);
    margin: 0; line-height: 1.6;
}

.products-grid-section {
    padding: 2rem 2rem 6rem;
}
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    max-width: 1400px;
    margin: 0 auto;
}
.product-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: linear-gradient(165deg, rgba(255, 255, 255, 0.025) 0%, rgba(0, 0, 0, 0.18) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 2rem 1.6rem 1.8rem;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}
.product-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
    transition: background 0.3s ease;
}
.product-card:hover {
    transform: translateY(-6px);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 22px 56px -28px rgba(0, 0, 0, 0.7);
}
.product-card:hover::before {
    background: linear-gradient(90deg, transparent, rgba(0, 204, 128, 0.55), transparent);
}
.product-card.is-flagship {
    border-color: rgba(0, 204, 128, 0.3);
    background: linear-gradient(165deg, rgba(0, 204, 128, 0.05) 0%, rgba(0, 0, 0, 0.18) 100%);
}
.product-card.is-flagship::before {
    background: linear-gradient(90deg, transparent, rgba(0, 204, 128, 0.5), transparent);
}
.product-card.is-flagship:hover {
    border-color: rgba(0, 204, 128, 0.55);
    box-shadow: 0 22px 56px -28px rgba(0, 204, 128, 0.4);
}

.product-card-status {
    position: absolute; top: 1.4rem; right: 1.4rem;
}
.product-card-icon {
    width: 40px; height: 40px;
    color: var(--primary-color);
    margin-bottom: 1.1rem;
    opacity: 0.9;
}
.product-card-icon svg { width: 100%; height: 100%; display: block; }
.product-card-tag {
    display: inline-block;
    font-family: 'DM Mono', ui-monospace, monospace;
    font-size: 0.72rem; font-weight: 500; letter-spacing: 0.1em;
    color: var(--text-tertiary, #4a5060);
    text-transform: uppercase;
    margin-bottom: 0.4rem;
}
.product-card-title {
    font-size: 1.3rem; font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 0.7rem;
    line-height: 1.35;
}
.product-card-desc {
    font-size: 0.92rem; color: var(--text-secondary);
    line-height: 1.7;
    margin: 0 0 1.2rem;
}
.product-card-features {
    list-style: none; padding: 0; margin: 0 0 1.4rem;
    display: flex; flex-direction: column; gap: 0.35rem;
}
.product-card-features li {
    font-size: 0.85rem; color: var(--text-secondary);
    padding-left: 1rem; position: relative; line-height: 1.5;
}
.product-card-features li::before {
    content: ''; position: absolute; left: 0; top: 0.6em;
    width: 4px; height: 4px; border-radius: 50%;
    background: var(--primary-color); opacity: 0.6;
}
.product-card-cta {
    display: inline-flex; align-items: center; gap: 0.4rem;
    font-size: 0.9rem; font-weight: 500;
    color: var(--primary-color);
    margin-top: auto;
    align-self: flex-start;
    transition: gap 0.25s ease;
}
.product-card:hover .product-card-cta {
    gap: 0.65rem;
}
.product-card-cta .arrow {
    transition: transform 0.25s ease;
}
.product-card:hover .product-card-cta .arrow {
    transform: translateX(2px);
}

@media (max-width: 768px) {
    .products-h1 { font-size: 2.2rem; }
    .products-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   单产品详情页（/products/X）通用样式
   ============================================================ */
.product-page {
    min-height: 100vh;
}

/* Hero */
.product-hero {
    position: relative;
    padding: 5rem 2rem 4rem;
    overflow: hidden;
}
/* ---------------------------------------------------------------
   Hero Glow · 统一配色规则（v2 · 2026-05-31）
   设计原则：
     1. 5 个产品页保持视觉一致性 —— 品牌绿（primary）做 base、占主导
     2. 各产品的 accent 色（蓝/紫/amber/violet）仅作右下副光晕、克制点缀
     3. 统一 alpha 档位：base 0.08 / accent 0.06，避免某些产品页"满屏色彩"的失衡观感
     4. ellipse 尺寸略缩（55%×45% / 45%×35%），让色块更聚焦在 hero 内、不蔓延到下游 sections
   ----------------------------------------------------------------- */
/* ---------------------------------------------------------------
   Hero Glow · v5（终极版 · 2026-05-31 · 完全移除装饰）
   设计取舍：
     1. 之前 v1-v4 版本均有玩家反馈"颜色不一致"或"大色块"问题
     2. 真因：radial-gradient ellipse 在大 hero box 内即便 alpha 极低
        也可能被某些浏览器/显示器/缓存条件放大成视觉色块
     3. 彻底方案：删除 hero glow 装饰本身。HTML 上的 .product-hero-glow
        div 也已移除（5 个 product-*.html 同步清理）
     4. 5 个产品页 hero 现在全部为纯黑底（继承 body 黑色），零装饰、零歧义
   ----------------------------------------------------------------- */
/* .product-hero-glow 规则已删除 */
/* 保留空规则占位，避免任何遗漏的 HTML 引用导致 unstyled CSS 错误 */
.product-hero-glow { display: none; }
.product-hero-inner {
    position: relative; z-index: 1;
    max-width: 1100px; margin: 0 auto;
}
.product-hero-meta {
    display: flex; align-items: center; gap: 1rem;
    margin-bottom: 1.4rem;
}
.product-hero-tag {
    font-family: 'DM Mono', ui-monospace, monospace;
    font-size: 0.78rem; font-weight: 600; letter-spacing: 0.12em;
    color: var(--primary-color);
    text-transform: uppercase;
    padding: 0.3rem 0.85rem;
    border: 1px solid rgba(0, 204, 128, 0.32);
    border-radius: 999px;
    background: rgba(0, 204, 128, 0.06);
}
.product-h1 {
    font-size: 3.2rem; font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 1rem;
    letter-spacing: -0.02em; line-height: 1.15;
    max-width: 900px;
}
.product-h1-tagline {
    font-size: 1.2rem; font-weight: 400;
    color: var(--text-secondary);
    margin: 0 0 1.4rem;
    line-height: 1.5;
    letter-spacing: 0.01em;
    max-width: 820px;
}
.product-h1-desc {
    font-size: 1rem; color: var(--text-secondary);
    line-height: 1.85;
    margin: 0 0 2rem;
    max-width: 820px;
}
.product-hero-engines {
    display: flex; gap: 0.6rem; flex-wrap: wrap;
    margin-bottom: 2.2rem;
}
.product-hero-cta {
    display: flex; gap: 1rem; flex-wrap: wrap;
}

/* Section 通用容器 */
.product-section-inner {
    max-width: 1200px; margin: 0 auto;
}
.product-section-header {
    margin-bottom: 3rem;
}
.product-section-header-center {
    text-align: center;
    max-width: 720px;
    margin-left: auto; margin-right: auto;
}
.product-h2 {
    font-size: 2rem; font-weight: 600;
    color: var(--text-primary);
    margin: 0.85rem 0 0.75rem;
    line-height: 1.3; letter-spacing: -0.005em;
}
.product-h2-sub {
    font-size: 1rem; color: var(--text-secondary);
    margin: 0; line-height: 1.6;
}

/* Stats Section（部分产品页用，类似 about-stats） */
.product-stats-section {
    padding: 0 2rem 4rem;
}
.product-stats {
    list-style: none; max-width: 880px;
    margin: 0 auto; padding: 1.5rem 2rem;
    display: flex; align-items: center; justify-content: center;
    gap: 2rem; flex-wrap: wrap;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.02), rgba(0, 0, 0, 0.18));
}
.product-stat {
    display: flex; flex-direction: column;
    align-items: center; gap: 0.25rem;
    min-width: 130px;
}
.product-stat-num {
    font-size: 2rem; font-weight: 700;
    color: var(--primary-color);
    font-family: 'DM Mono', ui-monospace, monospace;
    line-height: 1; letter-spacing: -0.02em;
}
.product-stat-label {
    font-size: 0.85rem; color: var(--text-secondary);
    line-height: 1.4; text-align: center;
}
.product-stat-divider {
    width: 1px; height: 36px;
    background: rgba(255, 255, 255, 0.08);
    list-style: none;
}

/* Capability 卡片网格 */
.product-capabilities {
    padding: 4rem 2rem 5rem;
}
.capability-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}
.capability-card {
    background: linear-gradient(165deg, rgba(255, 255, 255, 0.025) 0%, rgba(0, 0, 0, 0.18) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 1.8rem 1.5rem;
    transition: transform 0.3s ease, border-color 0.3s ease;
}
.capability-card:hover {
    transform: translateY(-3px);
    border-color: rgba(0, 204, 128, 0.18);
}
.capability-icon {
    width: 36px; height: 36px;
    color: var(--primary-color);
    margin-bottom: 1.2rem;
    opacity: 0.92;
}
.capability-icon svg { width: 100%; height: 100%; display: block; }
.capability-title {
    font-size: 1.1rem; font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 0.7rem;
    line-height: 1.35;
}
.capability-desc {
    font-size: 0.92rem; color: var(--text-secondary);
    line-height: 1.7; margin: 0;
}

/* Showcase Feature（横向大卡） */
.product-showcase {
    padding: 4rem 2rem;
}
.showcase-feature {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    align-items: center;
    max-width: 1200px; margin: 0 auto;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.02), rgba(0, 0, 0, 0.2));
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
}
.showcase-feature-cover {
    position: relative;       /* ★ 关键修复：为内部 .news-card-cover-placeholder（absolute inset:0）提供定位锚
                                   否则 placeholder 会逃逸到 <body>，SVG 紫色装饰拉伸全屏 → 用户看到大色块 */
    border-radius: 12px; overflow: hidden;
    aspect-ratio: 16/9;
    background: rgba(255, 255, 255, 0.03);
}
.showcase-feature-cover .news-card-cover-placeholder {
    width: 100%; height: 100%;
}
.showcase-feature-text h3 {
    font-size: 1.6rem; font-weight: 600;
    color: var(--text-primary);
    margin: 0.85rem 0 1rem;
    line-height: 1.3;
}
.showcase-feature-text p {
    font-size: 1rem; color: var(--text-secondary);
    line-height: 1.75;
    margin: 0 0 1.5rem;
}

/* .product-eco 已废弃 · v9 · 2026-05-31：原 GI 产品页内嵌 Arm 联合实验室卡片移除，
   生态合作内容统一归属首页 home-ecosystem 与 about-eco-mini */

/* News section 通用 */
.product-news {
    padding: 4rem 2rem;
    background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.012) 50%, transparent);
}

/* ============================================================
   Cost & Benefit · 成本收益模块（product-pkg 专用 · 2026-05-31 v3）
   设计目标：把"技术语言"翻译成"业务语言"
     - 公式可视化：1000 万用户 × 1GB × 0.15-0.5 元 = 150-500 万元
     - 3 列收益场景卡：年度 / 项目全周期 / 玩家体验
   ============================================================ */
.product-cost-benefit {
    padding: 5rem 2rem 5rem;
    background:
        radial-gradient(ellipse 60% 40% at 50% 0%, rgba(0, 204, 128, 0.04), transparent 70%),
        linear-gradient(180deg, transparent 0%, rgba(0, 204, 128, 0.02) 50%, transparent 100%);
}
/* ── 公式卡 ───────────────────────────────────────────────── */
.cost-formula {
    max-width: 1100px;
    margin: 0 auto 3.5rem;
    padding: 2rem 2rem 1.6rem;
    background: linear-gradient(135deg, rgba(0, 204, 128, 0.06), rgba(0, 0, 0, 0.25));
    border: 1px solid rgba(0, 204, 128, 0.18);
    border-radius: 18px;
    box-shadow: 0 12px 36px -18px rgba(0, 204, 128, 0.18);
}
.cost-formula-row {
    display: flex; align-items: center; justify-content: center;
    gap: 1rem; flex-wrap: wrap;
}
.cost-formula-cell {
    display: flex; flex-direction: column; align-items: center;
    gap: 0.4rem; min-width: 130px;
    padding: 0.5rem 0.8rem;
}
.cost-cell-num {
    font-family: 'DM Mono', ui-monospace, monospace;
    font-size: 1.65rem; font-weight: 700;
    color: var(--text-primary);
    line-height: 1; letter-spacing: -0.02em;
}
.cost-cell-unit {
    font-size: 0.85rem; font-weight: 500;
    color: var(--text-secondary);
    margin-left: 0.18rem; letter-spacing: 0;
}
.cost-cell-label {
    font-size: 0.78rem; color: var(--text-secondary);
    text-align: center; line-height: 1.3;
}
.cost-formula-op {
    font-family: 'DM Mono', ui-monospace, monospace;
    font-size: 1.4rem; font-weight: 400;
    color: rgba(255, 255, 255, 0.35);
    align-self: flex-start;
    margin-top: 0.55rem;
}
.cost-formula-op-eq {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1.6rem;
}
/* 结果卡：高亮品牌绿 */
.cost-formula-cell-result {
    background: linear-gradient(135deg, rgba(0, 204, 128, 0.14), rgba(0, 204, 128, 0.04));
    border: 1px solid rgba(0, 204, 128, 0.32);
    border-radius: 12px;
    padding: 0.65rem 1rem;
    min-width: 160px;
}
.cost-formula-cell-result .cost-cell-num {
    color: var(--primary-color);
    font-size: 1.85rem;
}
.cost-formula-cell-result .cost-cell-unit {
    color: var(--primary-color); opacity: 0.85;
}
.cost-formula-cell-result .cost-cell-label {
    color: var(--text-primary); font-weight: 500;
}
.cost-formula-note {
    font-size: 0.78rem;
    color: var(--text-tertiary, #6a6f80);
    text-align: center;
    margin: 1.4rem 0 0;
    letter-spacing: 0.02em;
}

/* ── 收益场景卡（3 列） ───────────────────────────────────── */
.cost-scenario-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.4rem;
    max-width: 1200px;
    margin: 0 auto;
}
.cost-scenario-card {
    position: relative;
    padding: 2rem 1.6rem 1.8rem;
    background: linear-gradient(165deg, rgba(255, 255, 255, 0.025) 0%, rgba(0, 0, 0, 0.18) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    transition: transform 0.3s ease, border-color 0.3s ease;
}
.cost-scenario-card:hover {
    transform: translateY(-4px);
    border-color: rgba(0, 204, 128, 0.22);
}
/* 中间 feature 卡（项目全周期 · 亿元级）—— 视觉强调 */
.cost-scenario-card-feature {
    background: linear-gradient(165deg, rgba(0, 204, 128, 0.08) 0%, rgba(0, 0, 0, 0.2) 100%);
    border-color: rgba(0, 204, 128, 0.25);
}
.cost-scenario-card-feature::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0; height: 2px;
    background: linear-gradient(90deg, transparent, rgba(0, 204, 128, 0.6), transparent);
    border-radius: 14px 14px 0 0;
}

.cost-scenario-icon {
    width: 32px; height: 32px;
    color: var(--primary-color);
    margin-bottom: 1rem;
    opacity: 0.85;
}
.cost-scenario-icon svg { width: 100%; height: 100%; display: block; }
.cost-scenario-tag {
    display: inline-block;
    font-family: 'DM Mono', ui-monospace, monospace;
    font-size: 0.72rem; font-weight: 500;
    color: var(--text-tertiary, #5a6070);
    text-transform: uppercase; letter-spacing: 0.12em;
    margin-bottom: 0.5rem;
}
.cost-scenario-num {
    font-family: 'DM Mono', ui-monospace, monospace;
    font-size: 2.2rem; font-weight: 700;
    color: var(--primary-color);
    line-height: 1; letter-spacing: -0.02em;
    margin-bottom: 0.85rem;
}
.cost-scenario-desc {
    font-size: 0.92rem; color: var(--text-secondary);
    line-height: 1.7;
    margin: 0;
}
.cost-scenario-desc strong {
    color: var(--text-primary); font-weight: 600;
}

/* 移动端 */
@media (max-width: 768px) {
    .product-cost-benefit { padding: 3rem 1.25rem; }
    .cost-formula { padding: 1.4rem 1rem 1.2rem; }
    .cost-formula-row { gap: 0.4rem; }
    .cost-formula-cell { min-width: 100px; padding: 0.3rem 0.4rem; }
    .cost-cell-num { font-size: 1.2rem; }
    .cost-cell-unit { font-size: 0.7rem; }
    .cost-cell-label { font-size: 0.7rem; }
    .cost-formula-op { font-size: 1rem; margin-top: 0.4rem; }
    .cost-formula-op-eq { font-size: 1.2rem; }
    .cost-formula-cell-result .cost-cell-num { font-size: 1.4rem; }
    .cost-scenario-num { font-size: 1.7rem; }
}
.product-news-more {
    text-align: center;
    margin-top: 2.5rem;
}

/* CTA banner */
.product-cta-banner {
    padding: 4rem 2rem 6rem;
}

@media (max-width: 768px) {
    .product-hero { padding: 3.5rem 1.25rem 3rem; }
    .product-h1 { font-size: 2.2rem; }
    .product-h1-tagline { font-size: 1rem; }
    .product-h1-desc { font-size: 0.95rem; }
    .product-h2 { font-size: 1.5rem; }
    .product-section-inner { padding: 0 1.25rem; }
    .showcase-feature {
        grid-template-columns: 1fr;
    }
    .product-stats { gap: 1rem; padding: 1.2rem 1rem; }
    .product-stat { min-width: 100px; }
    .product-stat-num { font-size: 1.6rem; }
    .product-stat-divider { display: none; }
}

/* ============================================================
   News 卡片（来自 news-loader.js 渲染）
   ============================================================ */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}
.news-grid-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 1024px) { .news-grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .news-grid-3 { grid-template-columns: 1fr; } }

.news-card {
    display: flex;
    flex-direction: column;
    background: linear-gradient(165deg, rgba(255, 255, 255, 0.025) 0%, rgba(0, 0, 0, 0.2) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.news-card:hover {
    transform: translateY(-4px);
    border-color: rgba(0, 204, 128, 0.22);
    box-shadow: 0 22px 56px -28px rgba(0, 0, 0, 0.7);
}

.news-card-cover {
    position: relative;
    aspect-ratio: 16/9;
    background-color: #0d1428;
    overflow: hidden;
}
.news-card-cover-placeholder {
    position: absolute; inset: 0;
}
.news-card-cover-placeholder svg {
    width: 100%; height: 100%; display: block;
}
.news-card-body {
    padding: 1.2rem 1.4rem 1.4rem;
    display: flex; flex-direction: column;
    flex: 1;
}
.news-card-meta {
    display: flex; align-items: center; gap: 0.6rem;
    margin-bottom: 0.85rem;
    font-size: 0.78rem;
    flex-wrap: wrap;
}
.news-card-cat {
    display: inline-block;
    padding: 0.18rem 0.6rem;
    border-radius: 999px;
    font-weight: 500;
    letter-spacing: 0.04em;
    border: 1px solid;
    line-height: 1.5;
}
.news-card-cat-release {
    color: var(--primary-color);
    border-color: rgba(0, 204, 128, 0.4);
    background: rgba(0, 204, 128, 0.08);
}
.news-card-cat-tech {
    color: #8aa6ff;
    border-color: rgba(138, 166, 255, 0.4);
    background: rgba(138, 166, 255, 0.06);
}
.news-card-cat-case {
    color: #ffaf66;
    border-color: rgba(255, 175, 102, 0.4);
    background: rgba(255, 175, 102, 0.06);
}
.news-card-cat-academic {
    color: #b08dde;
    border-color: rgba(176, 141, 222, 0.35);
    background: rgba(176, 141, 222, 0.06);
}
.news-card-date {
    color: var(--text-tertiary, #4a5060);
    font-family: 'DM Mono', ui-monospace, monospace;
    font-size: 0.75rem;
}
.news-card-title {
    font-size: 1.05rem; font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 0.7rem;
    line-height: 1.4;
    /* 限 2 行省略 */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.news-card-excerpt {
    font-size: 0.88rem; color: var(--text-secondary);
    line-height: 1.65;
    margin: 0 0 1.1rem;
    /* 限 3 行省略 */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}
.news-card-link {
    display: inline-flex; align-items: center; gap: 0.4rem;
    font-size: 0.85rem; font-weight: 500;
    color: var(--primary-color);
    margin-top: auto;
    transition: gap 0.25s ease;
}
.news-card:hover .news-card-link { gap: 0.6rem; }
.news-card-link-icon {
    width: 12px; height: 12px;
    transition: transform 0.25s ease;
}
.news-card:hover .news-card-link-icon {
    transform: translate(2px, -2px);
}
/* ============================================================
   News Empty State · v2 升级版（带图标 + 标题 + 提示）
   适用：news.json articles 为空 / 产品页无关联文章 / 分类筛选无结果
   ============================================================ */
.news-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 1.5rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
    background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.012) 50%, transparent);
    border: 1px dashed rgba(255, 255, 255, 0.08);
    border-radius: 14px;
}
.news-empty-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 1.2rem;
    color: var(--primary-color);
    opacity: 0.45;
}
.news-empty-icon svg { width: 100%; height: 100%; display: block; }
.news-empty-title {
    font-size: 1.15rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.6rem;
    letter-spacing: 0.02em;
}
.news-empty-hint {
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 480px;
    margin: 0 auto;
}
/* 分类筛选无结果时的简化版（不重画图标，仅一行提示） */
.news-empty-inline {
    padding: 2.5rem 1rem;
}
.news-empty-inline .news-empty-icon { display: none; }
.news-empty-inline .news-empty-title { margin-bottom: 0; font-size: 1rem; font-weight: 400; color: var(--text-secondary); }

/* ============================================================
   Pinned 徽章 · 置顶标识（卡片右上角）
   ============================================================ */
.news-card-pinned {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    z-index: 2;
    display: inline-block;
    padding: 0.22rem 0.55rem;
    background: linear-gradient(135deg, rgba(0, 204, 128, 0.95), rgba(0, 204, 128, 0.7));
    color: #0a0e1c;
    font-family: 'DM Mono', ui-monospace, monospace;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border-radius: 4px;
    box-shadow: 0 2px 8px -2px rgba(0, 204, 128, 0.5);
    pointer-events: none;
}
.news-card.is-pinned { /* 可选的整卡 hover 强化效果 */ }
.news-card.is-pinned .news-card-cover { background-color: #0a1a14; }

/* ============================================================
   Type 徽章 · 区分 external（外链微信）vs internal（站内原创）
   ============================================================ */
.news-card-type {
    position: absolute;
    bottom: 0.75rem;
    left: 0.75rem;
    z-index: 2;
    display: inline-block;
    padding: 0.18rem 0.5rem;
    background: rgba(10, 14, 28, 0.75);
    backdrop-filter: blur(6px);
    color: #e6e7ea;
    font-family: 'DM Mono', ui-monospace, monospace;
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border: 1px solid rgba(0, 204, 128, 0.4);
    border-radius: 3px;
    pointer-events: none;
}
.news-card-type-internal .news-card-cover { /* 站内原创可微调（保留扩展点）*/ }

/* ============================================================
   News Article · 站内完整文章详情页（views/news-article.html）
   ============================================================ */
.news-article-page { color: var(--text-primary); }
.news-article-hero {
    padding: 4rem 2rem 1.5rem;
    background: linear-gradient(180deg, rgba(0, 204, 128, 0.04) 0%, transparent 80%);
}
.news-article-hero-inner {
    max-width: 820px;
    margin: 0 auto;
}
.news-article-back {
    display: inline-flex; align-items: center; gap: 0.4rem;
    background: none; border: none; padding: 0.4rem 0.6rem 0.4rem 0;
    color: var(--text-secondary); font-size: 0.92rem;
    cursor: pointer; margin-bottom: 1.6rem;
    transition: color 0.2s ease;
}
.news-article-back:hover { color: var(--primary-color); }
.news-article-back svg { width: 14px; height: 14px; }

.news-article-meta-row {
    display: flex; align-items: center; gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 1.2rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
}
.news-article-cat {
    font-family: 'DM Mono', ui-monospace, monospace;
    font-size: 0.72rem; font-weight: 600;
    padding: 0.22rem 0.6rem;
    border-radius: 4px;
    text-transform: uppercase; letter-spacing: 0.06em;
}
.news-article-author, .news-article-reading-time { opacity: 0.85; }

.news-article-title {
    font-size: 2.4rem; font-weight: 700;
    line-height: 1.25;
    color: var(--text-primary);
    margin: 0 0 1rem;
    letter-spacing: -0.01em;
}
.news-article-excerpt {
    font-size: 1.1rem; color: var(--text-secondary);
    line-height: 1.7;
    margin: 0 0 1.5rem;
    text-wrap: pretty;
}

.news-article-cover-section { padding: 1rem 2rem 2rem; }
.news-article-cover-inner { max-width: 1080px; margin: 0 auto; }
.news-article-cover {
    position: relative;
    aspect-ratio: 16/9;
    background-size: cover; background-position: center;
    background-color: #0d1428;
    border-radius: 16px; overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.06);
}
.news-article-cover.is-empty {
    background: linear-gradient(135deg, #0d1428 0%, #1a2540 50%, #0a0e1c 100%);
}

/* Body · marked 渲染目标，覆盖默认 markdown 样式 */
.news-article-body {
    max-width: 820px;
    margin: 2rem auto 4rem;
    padding: 0 2rem;
    font-size: 1.02rem;
    line-height: 1.85;
    color: var(--text-primary);
}
.news-article-body h1,
.news-article-body h2,
.news-article-body h3,
.news-article-body h4 {
    color: var(--text-primary);
    font-weight: 600;
    line-height: 1.35;
    margin: 2.2rem 0 0.9rem;
    letter-spacing: -0.005em;
}
.news-article-body h1 { font-size: 1.9rem; margin-top: 2.6rem; }
.news-article-body h2 { font-size: 1.55rem; padding-bottom: 0.4rem; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.news-article-body h3 { font-size: 1.25rem; }
.news-article-body h4 { font-size: 1.08rem; }
.news-article-body p { margin: 0 0 1.1rem; }
.news-article-body strong { color: var(--text-primary); font-weight: 600; }
.news-article-body em { color: var(--text-secondary); }
.news-article-body a {
    color: var(--primary-color);
    text-decoration: none;
    border-bottom: 1px solid rgba(0, 204, 128, 0.35);
    transition: border-color 0.2s ease;
}
.news-article-body a:hover { border-bottom-color: var(--primary-color); }
.news-article-body ul, .news-article-body ol {
    margin: 0 0 1.2rem; padding-left: 1.6rem;
}
.news-article-body li { margin-bottom: 0.45rem; }
.news-article-body blockquote {
    border-left: 3px solid var(--primary-color);
    background: rgba(0, 204, 128, 0.04);
    padding: 1rem 1.4rem;
    margin: 1.3rem 0;
    color: var(--text-secondary);
    border-radius: 0 8px 8px 0;
}
.news-article-body blockquote p:last-child { margin-bottom: 0; }
.news-article-body code {
    background: rgba(255, 255, 255, 0.06);
    padding: 0.12rem 0.4rem;
    border-radius: 4px;
    font-family: 'DM Mono', ui-monospace, monospace;
    font-size: 0.92em;
    color: #ffe4a3;
}
.news-article-body pre {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.06);
    padding: 1.1rem 1.3rem;
    border-radius: 10px;
    overflow-x: auto;
    margin: 1.3rem 0;
}
.news-article-body pre code {
    background: none; padding: 0; color: var(--text-primary);
    font-size: 0.9rem; line-height: 1.6;
}
.news-article-body img {
    display: block; max-width: 100%; height: auto;
    margin: 1.6rem auto; border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}
.news-article-body table {
    width: 100%; border-collapse: collapse; margin: 1.4rem 0;
    font-size: 0.95rem;
}
.news-article-body th, .news-article-body td {
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.6rem 0.9rem; text-align: left;
}
.news-article-body th { background: rgba(255, 255, 255, 0.03); font-weight: 600; }
.news-article-body hr { border: none; border-top: 1px solid rgba(255, 255, 255, 0.08); margin: 2.5rem 0; }
.news-article-loading, .news-article-error {
    text-align: center; padding: 3rem 1rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
}
.news-article-error { color: #ff8aa3; }

/* Footer */
.news-article-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 2.5rem 2rem 4rem;
    background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.012));
}
.news-article-footer-inner {
    max-width: 820px; margin: 0 auto;
    display: flex; align-items: center; justify-content: space-between;
    gap: 1rem; flex-wrap: wrap;
}
.news-article-related-products {
    display: flex; align-items: center; gap: 0.7rem; flex-wrap: wrap;
    font-size: 0.92rem; color: var(--text-secondary);
}
.news-article-related-label { color: var(--text-tertiary, #6a6f80); }
.news-article-related-link {
    color: var(--primary-color); text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease;
}
.news-article-related-link:hover { border-bottom-color: var(--primary-color); }

@media (max-width: 768px) {
    .news-article-hero { padding: 2.5rem 1.25rem 1rem; }
    .news-article-title { font-size: 1.8rem; }
    .news-article-excerpt { font-size: 1rem; }
    .news-article-body { padding: 0 1.25rem; font-size: 0.98rem; line-height: 1.8; }
    .news-article-body h1 { font-size: 1.55rem; }
    .news-article-body h2 { font-size: 1.3rem; }
    .news-article-footer { padding: 2rem 1.25rem 3rem; }
    .news-article-footer-inner { flex-direction: column; align-items: flex-start; }
}

/* Featured news card（特殊大卡） */
.news-card.is-featured {
    grid-column: 1 / -1;
    flex-direction: row;
    aspect-ratio: auto;
}
.news-card.is-featured .news-card-cover {
    flex: 1.2;
    aspect-ratio: auto;
    min-height: 280px;
}
.news-card.is-featured .news-card-body {
    flex: 1;
    padding: 2rem 2.4rem;
    justify-content: center;
}
.news-card.is-featured .news-card-title {
    font-size: 1.6rem;
    -webkit-line-clamp: 3;
}
.news-card.is-featured .news-card-excerpt {
    font-size: 1rem;
    -webkit-line-clamp: 4;
}
@media (max-width: 768px) {
    .news-card.is-featured {
        flex-direction: column;
    }
    .news-card.is-featured .news-card-cover {
        aspect-ratio: 16/9;
        min-height: 0;
    }
    .news-card.is-featured .news-card-body {
        padding: 1.4rem 1.4rem;
    }
    .news-card.is-featured .news-card-title { font-size: 1.25rem; }
}

/* ============================================================
   News 总览页（/news）
   ============================================================ */
.news-page {
    min-height: 100vh;
}
.news-hero {
    padding: 5rem 2rem 3rem;
    text-align: center;
}
.news-hero-inner {
    max-width: 720px; margin: 0 auto;
}
.news-h1 {
    font-size: 3rem; font-weight: 700;
    color: var(--text-primary);
    margin: 1rem 0 0.85rem;
    letter-spacing: -0.02em; line-height: 1.15;
}
.news-h1-sub {
    font-size: 1.05rem; color: var(--text-secondary);
    margin: 0; line-height: 1.6;
}

.news-filter-section {
    padding: 1rem 2rem 2.5rem;
}
.news-filter-inner {
    max-width: 1200px; margin: 0 auto;
}
.news-filter-tabs {
    display: flex; gap: 0.6rem; flex-wrap: wrap;
    justify-content: center;
}
.news-filter-tab {
    padding: 0.55rem 1.2rem;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    color: var(--text-secondary);
    font-size: 0.88rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.25s ease;
    font-family: inherit;
}
.news-filter-tab:hover {
    border-color: rgba(0, 204, 128, 0.3);
    color: var(--text-primary);
}
.news-filter-tab.is-active {
    background: rgba(0, 204, 128, 0.1);
    border-color: rgba(0, 204, 128, 0.45);
    color: var(--primary-color);
}

.news-featured-section {
    padding: 0 2rem 2rem;
}
.news-featured-inner {
    max-width: 1200px; margin: 0 auto;
}

.news-grid-section {
    padding: 0 2rem 6rem;
}
.news-grid-inner {
    max-width: 1200px; margin: 0 auto;
}

@media (max-width: 768px) {
    .news-h1 { font-size: 2rem; }
    .news-hero { padding: 3rem 1.25rem 2rem; }
}

/* ============================================================
   Hero Slogan（重设计：Slogan 在标题之上做 brand 锚定）
   ============================================================ */
.hero-slogan {
    display: inline-block;
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    color: var(--primary-color);
    margin-bottom: 1.4rem;
    padding: 0.4rem 1.2rem;
    border: 1px solid rgba(0, 204, 128, 0.32);
    border-radius: 999px;
    background: rgba(0, 204, 128, 0.06);
    text-transform: none;
    animation: fadeInUp 1s ease-out 0.1s;
    animation-fill-mode: both;
}
@media (max-width: 768px) {
    .hero-slogan { font-size: 0.85rem; padding: 0.3rem 0.95rem; }
}

/* ============================================================
   Nav Mega Menu（产品下拉）
   ============================================================ */
.nav-item-mega {
    position: relative;
}
/* ⚠ Hover 桥接：panel 与触发器之间有 12px+8px 的视觉间距，鼠标穿过时
   会触发 mouseleave 让 panel 消失。用透明 ::after 把 nav-item-mega
   的 hit area 向下延伸 22px，保证鼠标过 gap 时仍处于 hover 状态。 */
.nav-item-mega::after {
    content: '';
    position: absolute;
    top: 100%;
    left: -8px;
    right: -8px;
    height: 22px;
    /* 不能 visibility:hidden 否则不响应 hover；用透明背景即可 */
}
.nav-item-mega > a {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}
.nav-mega-arrow {
    font-size: 0.7em;
    opacity: 0.6;
    transition: transform 0.25s ease;
    margin-left: 0.1rem;
}
.nav-item-mega:hover .nav-mega-arrow {
    transform: rotate(180deg);
}

.nav-mega-panel {
    position: absolute;
    top: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    width: 460px;
    background: rgba(15, 18, 30, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 0.85rem;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.22s ease, transform 0.22s ease;
    z-index: 1500;
}
.nav-mega-panel::before {
    /* 顶部小箭头 */
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 12px;
    height: 12px;
    background: rgba(15, 18, 30, 0.96);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-left: 1px solid rgba(255, 255, 255, 0.08);
}
.nav-item-mega:hover .nav-mega-panel,
.nav-item-mega:focus-within .nav-mega-panel {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}
.nav-mega-item {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.65rem 0.85rem;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.22s ease;
    text-decoration: none;
    color: inherit;
}
.nav-mega-item:hover {
    background: rgba(255, 255, 255, 0.04);
}
.nav-mega-item-all {
    margin-top: 0.4rem;
    padding-top: 0.85rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 0;
    color: var(--primary-color);
}
.nav-mega-item-all:hover {
    background: rgba(0, 204, 128, 0.06);
}
.nav-mega-tag {
    font-family: 'DM Mono', ui-monospace, monospace;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: var(--primary-color);
    text-transform: uppercase;
    flex-shrink: 0;
    width: 72px;
    text-align: left;
}
.nav-mega-title {
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.2rem;
}
.nav-mega-status .pillar-status {
    font-size: 0.62rem;
    padding: 0.12rem 0.5rem;
}

@media (max-width: 768px) {
    /* 移动端：mega 直接退化为普通菜单（用户点击产品直接跳 /products，不展开） */
    .nav-mega-arrow,
    .nav-mega-panel { display: none; }
}

/* ============================================================
   Featured Case Section（首页旗舰案例）
   ============================================================ */
#featured-case-section {
    padding: 5rem 2rem 3rem;
}
.featured-case-inner {
    max-width: 1200px;
    margin: 0 auto;
}
.featured-case-mount {
    /* 容器接收 NewsLoader 渲染的单个大卡（is-featured） */
}

/* ============================================================
   News Preview Section（首页最新动态）
   ============================================================ */
#news-preview-section {
    padding: 4rem 2rem 5rem;
}
.news-preview-inner {
    max-width: 1200px;
    margin: 0 auto;
}
.section-header-with-action {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
    text-align: left;
}
.section-header-with-action > div {
    flex: 1;
    min-width: 280px;
}
.news-preview-more {
    flex-shrink: 0;
    align-self: center;
}
@media (max-width: 768px) {
    .section-header-with-action {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ============================================================
   Footer（站点页脚 · 多触点品牌 + Slogan）
   ============================================================ */
/* ════════════════════════════════════════════════════════════════════
   Footer · 极简款（品牌签名 + Slogan + 法律链接 + 版权）
   设计哲学：顶部 nav 已经是完整 sitemap，Footer 不再做导航复刻；
            参考 Apple/Linear/Vercel 的现代风格，专注品牌锚定与合规。
   ════════════════════════════════════════════════════════════════════ */
.site-footer {
    padding: 2.5rem 2rem 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.2));
    margin-top: 4rem;
}
.site-footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1.5rem;
}
.site-footer-brand {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}
.site-footer-logo {
    height: 32px;
    width: auto;        /* 保持图片原始宽高比，避免 icon 被横向压扁 */
    flex-shrink: 0;
}
.site-footer-brand-text {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    line-height: 1.2;
}
.site-footer-name {
    font-size: 1.1rem;
    font-weight: 600;
    background: linear-gradient(135deg, #ffffff 0%, var(--primary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.01em;
}
.site-footer-slogan {
    font-family: 'Outfit', sans-serif;
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    color: var(--primary-color);
}
.site-footer-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.45rem;
    text-align: right;
}
.site-footer-legal {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}
.site-footer-legal a {
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.22s ease;
    cursor: pointer;
}
.site-footer-legal a:hover {
    color: var(--primary-color);
}
.site-footer-sep {
    color: rgba(255, 255, 255, 0.18);
    font-size: 0.85rem;
    user-select: none;
}
.site-footer-copyright {
    font-size: 0.75rem;
    color: var(--text-tertiary, #4a5060);
    margin: 0;
    line-height: 1.5;
}

@media (max-width: 768px) {
    .site-footer { padding: 2rem 1.25rem 1.5rem; margin-top: 3rem; }
    .site-footer-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.25rem;
    }
    .site-footer-meta {
        align-items: flex-start;
        text-align: left;
        width: 100%;
    }
    .site-footer-legal {
        justify-content: flex-start;
    }
    .site-footer-copyright {
        font-size: 0.72rem;
    }
}

