/* ==========================================================================
   NewBox 公开页面样式 —— 深色沉浸 · 电影感
   强调色：霓虹青绿 (Cyan/Teal)  #22d3ee / #2dd4bf
   ========================================================================== */

/* ---------- 设计令牌 ---------- */
:root {
    --bg: #030712;
    --bg-soft: #060b18;
    --bg-elevated: #0b1220;
    --surface: #0e1727;
    --surface-hover: #131e33;
    --border: rgba(148, 163, 184, 0.14);
    --border-strong: rgba(148, 163, 184, 0.28);

    --accent: #22d3ee;           /* 青 */
    --accent-2: #2dd4bf;         /* 青绿 */
    --accent-grad: linear-gradient(135deg, #22d3ee 0%, #2dd4bf 100%);

    --text: #e2e8f0;
    --text-muted: #94a3b8;
    --text-faint: #64748b;

    --radius: 1rem;
    --radius-sm: 0.625rem;
    --shadow-card: 0 10px 40px -12px rgba(0, 0, 0, 0.55);
    --shadow-accent: 0 12px 34px -10px rgba(34, 211, 238, 0.45);
    --transition: all 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Inter", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
    background-color: var(--bg);
    color: var(--text);
    -webkit-font-smoothing: antialiased;
    letter-spacing: 0.01em;
}

::selection {
    background: rgba(34, 211, 238, 0.28);
    color: #fff;
}

/* 自定义滚动条 */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #1e293b; border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background: #334155; }

/* ---------- 背景光晕（页面级氛围） ---------- */
.bg-aurora {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
    background:
        radial-gradient(1200px 700px at 80% -10%, rgba(34, 211, 238, 0.12), transparent 60%),
        radial-gradient(1000px 600px at 0% 30%, rgba(45, 212, 191, 0.06), transparent 55%),
        radial-gradient(900px 700px at 100% 80%, rgba(99, 102, 241, 0.07), transparent 60%);
}

/* ---------- 渐变文字 ---------- */
.text-gradient {
    background: var(--accent-grad);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

/* ---------- 按钮 ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8rem 1.9rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
    text-decoration: none;
    border: 1px solid transparent;
}
.btn-primary {
    background: var(--accent-grad);
    color: #04222b;
    box-shadow: var(--shadow-accent);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 42px -8px rgba(34, 211, 238, 0.55);
    filter: brightness(1.06);
}
.btn-ghost {
    background: transparent;
    color: var(--text);
    border-color: var(--border-strong);
    backdrop-filter: blur(4px);
}
.btn-ghost:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-2px);
}
.btn-lg { padding: 1rem 2.4rem; font-size: 1.05rem; }

/* ---------- 通用容器 ---------- */
.section-pad { padding: 5.5rem 1.5rem; }
.container-x { max-width: 76rem; margin: 0 auto; }

.section-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 0.9rem;
}
.section-eyebrow::before {
    content: "";
    width: 1.6rem;
    height: 2px;
    background: var(--accent-grad);
    border-radius: 2px;
}
.section-eyebrow-center {
    display: flex;
    justify-content: center;
}

/* ---------- 卡片 ---------- */
.card {
    background: linear-gradient(180deg, var(--surface) 0%, var(--bg-elevated) 100%);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}
.card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--accent-grad);
    opacity: 0;
    transition: var(--transition);
}
.card:hover {
    transform: translateY(-6px);
    border-color: var(--border-strong);
    box-shadow: var(--shadow-card);
}
.card:hover::before { opacity: 1; }

/* ---------- 滚动渐入动画 ---------- */
.reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform, opacity;
}
.reveal.revealed {
    opacity: 1;
    transform: none;
}
.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .reveal { opacity: 1; transform: none; transition: none; }
    .card, .btn { transition: none; }
    .card:hover { transform: none; }
}

/* ==========================================================================
   导航栏
   ========================================================================== */
.site-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    transition: var(--transition);
}
.site-nav .nav-inner {
    max-width: 76rem;
    margin: 0 auto;
    padding: 0.9rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.site-nav.is-scrolled {
    background: rgba(3, 7, 18, 0.72);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
}
.brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 700;
    font-size: 1.2rem;
    text-decoration: none;
    color: #fff;
}
.brand-mark {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: var(--accent-grad);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #04222b;
    font-weight: 800;
    font-size: 1.05rem;
    box-shadow: 0 0 20px rgba(34, 211, 238, 0.35);
}
.nav-links { display: flex; align-items: center; gap: 0.4rem; }
.nav-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
    padding: 0.5rem 0.85rem;
    border-radius: 0.6rem;
    transition: var(--transition);
    position: relative;
}
.nav-links a:hover { color: var(--text); }
.nav-links a.is-active { color: var(--accent); }
.nav-links a.is-active::after {
    content: "";
    position: absolute;
    left: 0.85rem;
    right: 0.85rem;
    bottom: 0.15rem;
    height: 2px;
    border-radius: 2px;
    background: var(--accent-grad);
}

/* 移动端菜单 */
.nav-toggle {
    display: none;
    background: transparent;
    border: 1px solid var(--border-strong);
    color: var(--text);
    width: 42px;
    height: 42px;
    border-radius: 0.6rem;
    cursor: pointer;
    align-items: center;
    justify-content: center;
}
.mobile-menu {
    display: none;
    background: rgba(6, 11, 24, 0.97);
    backdrop-filter: blur(16px);
    border-top: 1px solid var(--border);
    padding: 1rem 1.5rem 1.4rem;
    flex-direction: column;
    gap: 0.4rem;
}
.mobile-menu a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
    padding: 0.7rem 0.5rem;
    border-radius: 0.5rem;
    transition: var(--transition);
}
.mobile-menu a:hover { color: var(--accent); background: rgba(34, 211, 238, 0.06); }
.mobile-menu.open { display: flex; }

@media (max-width: 768px) {
    .nav-links { display: none; }
    .nav-toggle { display: inline-flex; }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
    position: relative;
    min-height: 92vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background:
        radial-gradient(900px 600px at 70% 20%, rgba(34, 211, 238, 0.16), transparent 55%),
        radial-gradient(700px 500px at 15% 80%, rgba(45, 212, 191, 0.10), transparent 55%),
        radial-gradient(600px 500px at 90% 90%, rgba(99, 102, 241, 0.08), transparent 55%);
}
.hero-inner {
    max-width: 76rem;
    margin: 0 auto;
    padding: 7rem 1.5rem 5rem;
    text-align: center;
    position: relative;
    z-index: 1;
}
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 1.1rem;
    border-radius: 999px;
    border: 1px solid rgba(34, 211, 238, 0.35);
    background: rgba(34, 211, 238, 0.08);
    color: var(--accent);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.6rem;
}
.hero-badge .dot {
    width: 7px; height: 7px; border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 0 rgba(34, 211, 238, 0.6);
    animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
    0% { box-shadow: 0 0 0 0 rgba(34, 211, 238, 0.5); }
    70% { box-shadow: 0 0 0 9px rgba(34, 211, 238, 0); }
    100% { box-shadow: 0 0 0 0 rgba(34, 211, 238, 0); }
}
.hero h1 {
    font-size: clamp(2.4rem, 6vw, 4.4rem);
    line-height: 1.08;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #fff;
    margin-bottom: 1.4rem;
}
.hero-sub {
    font-size: clamp(1.05rem, 2vw, 1.3rem);
    color: var(--text-muted);
    max-width: 42rem;
    margin: 0 auto 2.4rem;
    line-height: 1.7;
}
.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}
.hero-stats {
    margin-top: 3.5rem;
    display: flex;
    justify-content: center;
    gap: 0;
    flex-wrap: wrap;
    border-top: 1px solid var(--border);
}
.hero-stat {
    padding: 1.6rem 2.6rem;
    text-align: center;
}
.hero-stat .num {
    font-size: 1.9rem;
    font-weight: 800;
    color: #fff;
    font-variant-numeric: tabular-nums;
}
.hero-stat .num em { font-style: normal; color: var(--accent); }
.hero-stat .label {
    margin-top: 0.3rem;
    font-size: 0.85rem;
    color: var(--text-faint);
}

/* ---------- 功能特性 ---------- */
.feature-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: rgba(34, 211, 238, 0.1);
    border: 1px solid rgba(34, 211, 238, 0.25);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    margin-bottom: 1.1rem;
    transition: var(--transition);
}
.card:hover .feature-icon {
    background: var(--accent-grad);
    color: #04222b;
    box-shadow: var(--shadow-accent);
}
.feature-icon svg { width: 26px; height: 26px; }

/* ---------- 动态卡片 ---------- */
.news-item {
    display: block;
    text-decoration: none;
    padding: 1.4rem 1.6rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    transition: var(--transition);
}
.news-item:hover {
    border-color: var(--border-strong);
    transform: translateX(6px);
    box-shadow: var(--shadow-card);
}
.news-date {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 0.6rem;
    letter-spacing: 0.03em;
}
.news-item h3 {
    font-size: 1.12rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.4rem;
    transition: var(--transition);
}
.news-item:hover h3 { color: var(--accent); }
.news-item p { color: var(--text-muted); font-size: 0.92rem; line-height: 1.6; }

/* ---------- 页脚 ---------- */
.site-footer {
    border-top: 1px solid var(--border);
    background: var(--bg-soft);
}
.footer-grid {
    max-width: 76rem;
    margin: 0 auto;
    padding: 3.5rem 1.5rem 2.5rem;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2.5rem;
}
.footer-brand p { color: var(--text-faint); font-size: 0.92rem; line-height: 1.7; margin-top: 1rem; max-width: 20rem; }
.footer-col h4 { color: #fff; font-weight: 700; font-size: 0.95rem; margin-bottom: 1rem; }
.footer-col a {
    display: block;
    color: var(--text-faint);
    text-decoration: none;
    font-size: 0.9rem;
    padding: 0.3rem 0;
    transition: var(--transition);
}
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
    border-top: 1px solid var(--border);
    text-align: center;
    padding: 1.4rem 1.5rem;
    color: var(--text-faint);
    font-size: 0.82rem;
}
@media (max-width: 900px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
    .footer-grid { grid-template-columns: 1fr; gap: 1.8rem; }
}

/* ==========================================================================
   页面标题区（产品/动态共用）
   ========================================================================== */
.page-hero {
    padding: 9rem 1.5rem 3.5rem;
    text-align: center;
    position: relative;
    background:
        radial-gradient(700px 420px at 50% 0%, rgba(34, 211, 238, 0.13), transparent 60%);
}
.page-hero h1 {
    font-size: clamp(2rem, 4.5vw, 3.2rem);
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.02em;
}
.page-hero .lead { color: var(--text-muted); margin-top: 1rem; font-size: 1.1rem; }

/* ==========================================================================
   product 页
   ========================================================================== */
.product-hero {
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 3rem;
    align-items: center;
    padding: 8rem 1.5rem 3rem;
    max-width: 76rem;
    margin: 0 auto;
    position: relative;
}
.product-logo {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 1.5rem;
    background: linear-gradient(180deg, var(--surface) 0%, var(--bg-elevated) 100%);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: var(--shadow-card);
}
.product-logo img { width: 100%; height: 100%; object-fit: cover; }
.product-logo.placeholder { color: var(--text-faint); font-size: 1.1rem; }
.info-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 1rem 1.4rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: var(--transition);
    margin-bottom: 0.8rem;
}
.info-card:hover { border-color: var(--border-strong); background: var(--surface-hover); }
.info-card .k { color: var(--text-faint); font-size: 0.9rem; display: flex; align-items: center; gap: 0.6rem; }
.info-card .v { color: #fff; font-weight: 700; }
.info-card .v.accent { color: var(--accent); }
.info-card .info-ic { width: 18px; height: 18px; color: var(--accent); opacity: 0.85; }

@media (max-width: 860px) {
    .product-hero { grid-template-columns: 1fr; text-align: center; }
    .product-logo { max-width: 240px; margin: 0 auto; }
    .info-card { text-align: left; }
}

/* ==========================================================================
   prose（markdown 内容排版）
   ========================================================================== */
.prose {
    color: #cbd5e1;
    line-height: 1.8;
    font-size: 1.02rem;
}
.prose h1, .prose h2, .prose h3, .prose h4 {
    color: #fff;
    font-weight: 700;
    line-height: 1.3;
    margin: 2rem 0 1rem;
    letter-spacing: -0.01em;
}
.prose h1 { font-size: 2rem; }
.prose h2 { font-size: 1.55rem; padding-bottom: 0.5rem; border-bottom: 1px solid var(--border); }
.prose h3 { font-size: 1.25rem; }
.prose h4 { font-size: 1.05rem; }
.prose p { margin: 1rem 0; }
.prose a { color: var(--accent); text-decoration: none; border-bottom: 1px solid rgba(34, 211, 238, 0.3); transition: var(--transition); }
.prose a:hover { border-bottom-color: var(--accent); }
.prose strong { color: #fff; font-weight: 600; }
.prose ul, .prose ol { margin: 1rem 0; padding-left: 1.5rem; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li { margin: 0.4rem 0; }
.prose li::marker { color: var(--accent); }
.prose blockquote {
    border-left: 3px solid var(--accent);
    background: rgba(34, 211, 238, 0.06);
    padding: 1rem 1.3rem;
    margin: 1.2rem 0;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    color: var(--text-muted);
}
.prose code {
    background: rgba(148, 163, 184, 0.18);
    color: var(--accent);
    padding: 0.18rem 0.42rem;
    border-radius: 0.35rem;
    font-size: 0.9em;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.prose pre {
    background: #0a0f1c;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 1.25rem;
    margin: 1.3rem 0;
    overflow-x: auto;
}
.prose pre code {
    background: transparent;
    color: #cbd5e1;
    padding: 0;
    font-size: 0.9rem;
}
.prose table {
    width: 100%;
    max-width: 100%;
    border-collapse: collapse;
    margin: 1.3rem 0;
    font-size: 0.95rem;
}
.prose th, .prose td {
    border: 1px solid var(--border);
    padding: 0.65rem 0.9rem;
    text-align: left;
}
.prose th { background: var(--surface); color: #fff; font-weight: 600; }
.prose img { border-radius: var(--radius-sm); margin: 1.2rem 0; max-width: 100%; }
.prose hr { border: none; border-top: 1px solid var(--border); margin: 2rem 0; }

/* 文章内容居中排版（news_detail 等） */
.article-wrap { max-width: 46rem; margin: 0 auto; }
