/* ============================================================
   LiteLLM 门户设计系统（浅色企业云平台风）
   底色 白/浅灰 #f5f7fa · 品牌主色 天青 #00a884 · 终端/代码块深色
   ============================================================ */

:root {
    /* 浅色企业云平台风（白/浅灰底 + 天青品牌色） */
    --bg: #f5f7fa;
    --bg-soft: #eef2f6;
    --bg-card: #ffffff;
    --bg-card-hover: #f6fefb;
    --primary: #00a884;
    --primary-strong: #008f72;
    --primary-dim: rgba(0, 168, 132, 0.12);
    --primary-faint: rgba(0, 168, 132, 0.06);
    --line: rgba(0, 168, 132, 0.35);
    --line-soft: #e8edf1;
    --text: #1c2733;
    --text-2: #52636f;
    --text-3: #6b7a86;
    --danger: #e5484d;
    --warning: #d97706;
    --ok: #00a884;
    --mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
    --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
            "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    --radius: 14px;
    --radius-sm: 9px;
    --glow: 0 10px 30px rgba(0, 168, 132, 0.16);
    --glow-soft: 0 4px 14px rgba(0, 168, 132, 0.12);
    --shadow: 0 14px 40px rgba(28, 39, 51, 0.08);
    --nav-h: 62px;
    --maxw: 1180px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--sans);
    background: var(--bg);
    color: var(--text);
    font-size: 15px;
    line-height: 1.7;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* 浅色企业风：页面底色微渐变（浅天青→白→浅灰），无网格纹理 */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -2;
    background:
        radial-gradient(70vw 40vh at 15% -8%, rgba(0, 168, 132, 0.07), transparent 60%),
        radial-gradient(60vw 38vh at 90% 4%, rgba(0, 150, 170, 0.05), transparent 62%),
        linear-gradient(180deg, #f3faf8 0%, #f7f9fb 32%, #f5f7fa 100%);
}

@keyframes bg-drift {
    0%   { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(0, 0, 0); }
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
::selection { background: rgba(0, 168, 132, 0.18); color: var(--primary-strong); }

/* ---------------- 通用容器/排版 ---------------- */
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: 84px 0; position: relative; }
.section-tight { padding: 56px 0; }

.eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 12px; letter-spacing: 2.5px; text-transform: uppercase;
    color: var(--primary); font-weight: 600;
    padding: 5px 13px; border: 1px solid var(--line);
    border-radius: 999px; background: var(--primary-faint);
}
.eyebrow::before {
    content: ""; width: 6px; height: 6px; border-radius: 50%;
    background: var(--primary); box-shadow: 0 0 8px var(--primary);
}

.h-section {
    font-size: clamp(24px, 3.2vw, 34px); font-weight: 700;
    letter-spacing: .5px; margin: 18px 0 12px;
}
.p-section { color: var(--text-2); max-width: 720px; font-size: 15.5px; }
.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* ---------------- 顶部导航 ---------------- */
.site-nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    height: var(--nav-h);
    background: rgba(255, 255, 255, 0.86);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line-soft);
    box-shadow: 0 1px 12px rgba(28, 39, 51, 0.04);
}
.site-nav .container {
    height: 100%; display: flex; align-items: center; gap: 28px;
}
.nav-brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 17px; letter-spacing: .5px; }
.nav-brand .logo-mark {
    width: 30px; height: 30px; border-radius: 9px; position: relative;
    background: linear-gradient(135deg, rgba(0,212,170,.9), rgba(0,120,130,.55));
    box-shadow: var(--glow-soft);
}
.nav-brand .logo-mark::after {
    content: ""; position: absolute; inset: 7px;
    border: 1.5px solid #04231d; border-radius: 4px;
    border-top-color: transparent; border-right-color: transparent;
    transform: rotate(45deg);
}
.nav-brand .logo-sub { font-size: 11px; font-weight: 500; color: var(--text-3); letter-spacing: 2px; }

.nav-links { display: flex; gap: 4px; margin-left: 12px; }
.nav-links a {
    padding: 7px 14px; border-radius: 8px; font-size: 14px;
    color: var(--text-2); transition: all .18s ease;
}
.nav-links a:hover, .nav-links a.active { color: var(--primary); background: var(--primary-faint); }

.nav-spacer { flex: 1; }
.nav-actions { display: flex; align-items: center; gap: 10px; }

.lang-switch {
    display: inline-flex; border: 1px solid var(--line-soft); border-radius: 8px; overflow: hidden;
    background: #fff;
}
.lang-switch button {
    border: 0; background: transparent; color: var(--text-3); cursor: pointer;
    padding: 6px 11px; font-size: 12.5px; font-family: var(--sans); transition: all .18s;
}
.lang-switch button.on { background: var(--primary-dim); color: var(--primary); font-weight: 600; }

/* 移动端汉堡（桌面隐藏） */
.nav-burger { display: none; flex-direction: column; justify-content: center; gap: 5px;
    width: 38px; height: 36px; background: #fff; border: 1px solid #d8e0e6; border-radius: 9px;
    cursor: pointer; padding: 0 9px; }
.nav-burger span { display: block; height: 2px; background: var(--text); border-radius: 2px; transition: all .25s; }
.nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav-mobile { display: none; position: fixed; top: var(--nav-h); left: 0; right: 0; z-index: 99;
    background: #fff; border-bottom: 1px solid var(--line-soft); box-shadow: 0 16px 30px rgba(28,39,51,.1);
    padding: 8px 18px 14px; flex-direction: column; }
.nav-mobile.open { display: flex; }
.nav-mobile a { padding: 12px 6px; color: var(--text); font-size: 15px; border-bottom: 1px solid var(--line-soft); }
.nav-mobile a:last-child { border-bottom: 0; }
body.has-topbar .nav-mobile { top: calc(var(--nav-h) + 34px); }

/* ---------------- 按钮 ---------------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 11px 22px; border-radius: 10px; font-size: 14.5px; font-weight: 600;
    cursor: pointer; border: 1px solid transparent; transition: all .2s ease;
    font-family: var(--sans); white-space: nowrap;
}
.btn-primary {
    background: linear-gradient(135deg, #0fb98f, var(--primary));
    color: #fff; box-shadow: var(--glow-soft);
}
.btn-primary:hover { box-shadow: var(--glow); transform: translateY(-1px); color: #fff; }
.btn-ghost {
    background: #fff; color: var(--text);
    border-color: #d8e0e6;
}
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-faint); }
.btn-sm { padding: 7px 14px; font-size: 13px; border-radius: 8px; }

/* ---------------- 卡片 ---------------- */
.card {
    background: var(--bg-card);
    border: 1px solid var(--line-soft);
    border-radius: var(--radius);
    padding: 26px;
    transition: all .22s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(28, 39, 51, 0.04);
}
.card:hover {
    border-color: rgba(0, 168, 132, 0.4);
    background: var(--bg-card);
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}
.card .card-icon {
    width: 42px; height: 42px; border-radius: 11px;
    display: flex; align-items: center; justify-content: center;
    background: var(--primary-dim); color: var(--primary);
    font-size: 19px; margin-bottom: 16px;
    box-shadow: inset 0 0 0 1px var(--line);
}
.card h3 { font-size: 16.5px; font-weight: 600; margin-bottom: 8px; }
.card p { color: var(--text-2); font-size: 13.8px; line-height: 1.75; }

.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ---------------- 徽标/状态点 ---------------- */
.badge {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 12px; padding: 3px 10px; border-radius: 999px;
    border: 1px solid #dce4ea; color: var(--text-2);
    background: #f4f7f9;
}
.badge .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--text-3); }
.badge.ok { color: var(--ok); border-color: rgba(0,168,132,.35); background: rgba(0,168,132,.08); }
.badge.ok .dot { background: var(--ok); box-shadow: 0 0 8px var(--ok); animation: pulse 2.2s infinite; }
.badge.warn { color: var(--warning); border-color: rgba(217,119,6,.3); background: rgba(217,119,6,.08); }
.badge.warn .dot { background: var(--warning); }
.badge.bad { color: var(--danger); border-color: rgba(229,72,77,.3); background: rgba(229,72,77,.07); }
.badge.bad .dot { background: var(--danger); }

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: .45; transform: scale(.82); }
}

/* ---------------- 页脚 ---------------- */
.site-footer {
    border-top: 1px solid var(--line-soft);
    padding: 48px 0 34px;
    margin-top: 40px;
    background: #ffffff;
}
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 34px; }
.footer-brand p { color: var(--text-3); font-size: 13px; margin-top: 12px; max-width: 300px; }
.footer-col h4 { font-size: 13px; color: var(--text); margin-bottom: 14px; letter-spacing: 1px; }
.footer-col a { display: block; color: var(--text-3); font-size: 13.5px; padding: 5px 0; transition: color .18s; }
.footer-col a:hover { color: var(--primary); }
.footer-bottom {
    margin-top: 38px; padding-top: 20px; border-top: 1px solid var(--line-soft);
    display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
    color: var(--text-3); font-size: 12.5px;
}

/* ---------------- 页面通用头（内页） ---------------- */
.page-hero { padding: calc(var(--nav-h) + 64px) 0 40px; }
.page-hero h1 { font-size: clamp(28px, 4vw, 40px); font-weight: 700; margin: 16px 0 12px; }
.page-hero p { color: var(--text-2); max-width: 680px; }

/* ---------------- 表格/标签等小元件 ---------------- */
.tag {
    display: inline-block; font-family: var(--mono); font-size: 12px;
    padding: 2px 9px; border-radius: 6px; color: var(--primary-strong);
    background: var(--primary-faint); border: 1px solid rgba(0,168,132,.25);
}
.empty {
    text-align: center; color: var(--text-3); padding: 48px 20px;
    border: 1px dashed var(--line-soft); border-radius: var(--radius); font-size: 14px;
    background: #fff;
}

/* ============================================================
   首页 / 内页页面级样式
   ============================================================ */

/* ---------------- HERO ---------------- */
.hero {
    position: relative;
    padding: calc(var(--nav-h) + 92px) 0 90px;
    text-align: center;
    overflow: hidden;
}
.hero-inner { position: relative; z-index: 2; }
.hero-title {
    font-size: clamp(34px, 6.2vw, 64px);
    font-weight: 800;
    line-height: 1.16;
    letter-spacing: 1px;
    margin: 26px 0 22px;
}
.grad-text {
    background: linear-gradient(100deg, var(--primary-strong) 0%, #00b894 50%, #0e95b8 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero-desc {
    max-width: 720px; margin: 0 auto;
    color: var(--text-2); font-size: clamp(15px, 1.6vw, 17px); line-height: 1.9;
}
.hero-cta { margin-top: 34px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-stats {
    margin-top: 42px; display: flex; gap: 30px; justify-content: center; flex-wrap: wrap;
}
.hero-stats span { display: inline-flex; align-items: center; gap: 9px; color: var(--text-2); font-size: 13.5px; }
.hero-stats i {
    width: 7px; height: 7px; border-radius: 50%;
    background: var(--primary); box-shadow: 0 0 10px var(--primary);
}

/* hero 同心环装饰（细光、缓慢呼吸，不抢内容） */
.hero-ring { position: absolute; inset: 0; pointer-events: none; z-index: 1; }
.hero-ring .ring {
    position: absolute; left: 50%; top: 56%;
    border: 1px solid var(--line);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    opacity: .5;
}
.hero-ring .r1 { width: 420px; height: 420px; animation: ring-pulse 7s ease-in-out infinite; border-color: rgba(0,168,132,.25); }
.hero-ring .r2 { width: 640px; height: 640px; animation: ring-pulse 7s ease-in-out 1.2s infinite; border-color: rgba(0,168,132,.18); }
.hero-ring .r3 { width: 880px; height: 880px; animation: ring-pulse 7s ease-in-out 2.4s infinite; border-color: rgba(0,168,132,.12); }
@keyframes ring-pulse {
    0%, 100% { opacity: .12; transform: translate(-50%, -50%) scale(.98); }
    50% { opacity: .42; transform: translate(-50%, -50%) scale(1.02); }
}

/* ---------------- 实时状态 ---------------- */
.status-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.stat-card { text-align: center; padding: 24px 18px; }
.stat-v { font-size: 34px; font-weight: 700; color: var(--primary-strong); font-family: var(--mono); }
.stat-v .unit { font-size: 16px; color: var(--text-3); margin-left: 2px; }
.stat-v.warn { color: var(--warning); }
.stat-v.bad { color: var(--danger); }
.stat-l { font-size: 13px; color: var(--text-3); margin-top: 6px; }
.model-cloud { padding: 20px 24px; }
.model-cloud-tit { font-size: 13px; color: var(--text-3); margin-bottom: 13px; letter-spacing: 1px; }
.model-tags { display: flex; flex-wrap: wrap; gap: 9px; }
.model-tags .tag { font-size: 12.5px; padding: 4px 12px; transition: all .18s; }
.model-tags .tag:hover { background: var(--primary-dim); box-shadow: var(--glow-soft); border-color: var(--primary); }

/* ---------------- 模型广场 ---------------- */
.model-section { position: relative; }
.model-type { text-align: center; padding: 34px 22px; }
.model-type .mt-emoji { font-size: 34px; margin-bottom: 14px; display: block; }
.model-type p { color: var(--text-3); font-size: 12.5px; margin-top: 4px; }
.muted-note { text-align: center; color: var(--text-3); font-size: 13px; margin-top: 26px; }

/* ---------------- 区块标题行 ---------------- */
.section-head-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }

/* ---------------- 新闻列表 ---------------- */
.news-list { display: flex; flex-direction: column; gap: 12px; }
.news-item {
    display: flex; align-items: center; gap: 18px;
    padding: 19px 24px; border-radius: var(--radius);
    background: var(--bg-card); border: 1px solid var(--line-soft);
    transition: all .2s ease; box-shadow: 0 2px 10px rgba(28,39,51,.04);
}
.news-item:hover { border-color: rgba(0,168,132,.4); background: var(--bg-card); transform: translateX(4px); box-shadow: var(--shadow); }
.news-item .n-date {
    flex: 0 0 86px; text-align: center; font-family: var(--mono);
    color: var(--text-3); font-size: 12.5px; line-height: 1.5;
}
.news-item .n-date b { display: block; font-size: 22px; color: var(--primary-strong); font-weight: 700; }
.news-item .n-main { flex: 1; min-width: 0; }
.news-item .n-title { font-size: 15.5px; font-weight: 600; color: var(--text); display: flex; align-items: center; gap: 9px; }
.news-item:hover .n-title { color: var(--primary); }
.news-item .n-summary { color: var(--text-3); font-size: 13px; margin-top: 5px;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.news-item .n-arrow { color: var(--text-3); font-size: 18px; transition: transform .2s; }
.news-item:hover .n-arrow { color: var(--primary); transform: translateX(4px); }

/* ---------------- CTA ---------------- */
.cta-box {
    text-align: center; padding: 64px 30px;
    background:
        radial-gradient(70% 130% at 50% 0%, rgba(0,168,132,.10), transparent 70%),
        linear-gradient(180deg, #ffffff, #f2faf8);
    border-color: rgba(0,168,132,.3);
    box-shadow: var(--glow-soft);
}
.cta-box h2 { font-size: clamp(24px, 3.4vw, 34px); margin-bottom: 12px; }
.cta-box p { color: var(--text-2); margin-bottom: 28px; }

/* ---------------- 新闻内页 ---------------- */
.news-filter { display: flex; gap: 8px; margin: 26px 0 20px; }
.news-filter button {
    background: #fff; border: 1px solid #dce4ea; color: var(--text-2);
    padding: 7px 18px; border-radius: 999px; cursor: pointer; font-size: 13.5px; font-family: var(--sans);
    transition: all .18s;
}
.news-filter button.on { background: var(--primary-dim); border-color: var(--primary); color: var(--primary); font-weight: 600; }
.article-detail { max-width: 820px; }
.article-detail .article-meta { color: var(--text-3); font-size: 13px; margin: 14px 0 30px; display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }
.article-body { font-size: 15.5px; line-height: 2; color: var(--text-2); }
.article-body p { margin: 1em 0; }
.article-body h2, .article-body h3 { color: var(--text); margin: 1.6em 0 .7em; }
.article-body a { color: var(--primary); border-bottom: 1px solid var(--primary-dim); }
.article-body ul, .article-body ol { padding-left: 1.4em; margin: 1em 0; }
.article-body code { font-family: var(--mono); font-size: 13.5px; background: var(--primary-faint);
    border: 1px solid rgba(0,168,132,.2); border-radius: 5px; padding: 1px 7px; color: var(--primary-strong); }
.article-body pre { background: #0d1b22; border: 1px solid #1d3038; border-radius: 10px;
    padding: 16px 18px; overflow-x: auto; margin: 1.2em 0; }
.article-body pre code { background: none; border: 0; padding: 0; color: #9fe8da; }
.article-nav { display: flex; justify-content: space-between; gap: 14px; margin-top: 44px; padding-top: 22px;
    border-top: 1px solid var(--line-soft); font-size: 13.5px; }
.article-nav a { color: var(--text-2); }
.article-nav a:hover { color: var(--primary); }

/* ---------------- 文档页 ---------------- */
.docs-layout { display: grid; grid-template-columns: 230px 1fr; gap: 40px; padding-top: calc(var(--nav-h) + 40px); }
.docs-side { position: sticky; top: calc(var(--nav-h) + 24px); align-self: start; }
.docs-side a { display: block; padding: 8px 14px; border-radius: 8px; color: var(--text-2);
    font-size: 14px; border-left: 2px solid transparent; transition: all .18s; }
.docs-side a:hover, .docs-side a.on { color: var(--primary); background: var(--primary-faint);
    border-left-color: var(--primary); }
.docs-content { max-width: 860px; padding-bottom: 80px; }
.docs-content h2 { font-size: 24px; margin: 46px 0 14px; padding-top: 10px; scroll-margin-top: calc(var(--nav-h) + 16px); color: var(--text); }
.docs-content h2:first-child { margin-top: 0; }
.docs-content h3 { font-size: 17px; margin: 26px 0 10px; color: var(--text); }
.docs-content p { color: var(--text-2); margin: 10px 0; }
.docs-content ul { padding-left: 1.3em; color: var(--text-2); margin: 10px 0; }
.docs-content li { margin: 6px 0; }
.docs-content code { font-family: var(--mono); font-size: 13px; background: var(--primary-faint);
    border: 1px solid rgba(0,168,132,.2); border-radius: 5px; padding: 1px 7px; color: var(--primary-strong); }
.docs-content pre { background: #0d1b22; border: 1px solid #1d3038; border-radius: 11px;
    padding: 17px 19px; overflow-x: auto; margin: 14px 0; }
.docs-content pre code { background: none; border: 0; padding: 0; color: #9fe8da; font-size: 13px; line-height: 1.75; }
.docs-table { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: 13.5px; }
.docs-table th, .docs-table td { text-align: left; padding: 10px 13px; border-bottom: 1px solid var(--line-soft); }
.docs-table th { color: var(--primary-strong); font-weight: 600; font-size: 12.5px; letter-spacing: .5px; }
.docs-table td { color: var(--text-2); }
.docs-table td:first-child { font-family: var(--mono); color: var(--primary-strong); white-space: nowrap; }
.docs-callout { border: 1px solid rgba(0,168,132,.3); background: var(--primary-faint); border-radius: 11px;
    padding: 14px 18px; margin: 16px 0; color: var(--text-2); font-size: 13.8px; }
.docs-callout b { color: var(--primary); }

/* ============================================================
   云平台级：公告条 / 双栏 Hero / 终端 / 信任带 / 生态 / 步骤 / 架构 / FAQ
   ============================================================ */

/* 顶部公告条（固定在导航之上，导航下移） */
.topbar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 101;
    height: 34px; display: flex; align-items: center; justify-content: center; gap: 10px;
    font-size: 12.5px; color: #00745f;
    background: linear-gradient(90deg, rgba(0,168,132,.14), rgba(0,150,170,.10), rgba(0,168,132,.14));
    border-bottom: 1px solid rgba(0,168,132,.28);
}
.topbar a { color: var(--primary); font-weight: 600; }
body.has-topbar .site-nav { top: 34px; }
body.has-topbar .hero { padding-top: calc(var(--nav-h) + 34px + 80px); }
body.has-topbar .docs-layout { padding-top: calc(var(--nav-h) + 70px); }
body.has-topbar .page-hero { padding-top: calc(var(--nav-h) + 34px + 50px); }

/* 双栏 Hero */
.hero-split { text-align: left; }
.hero-split .hero-grid {
    position: relative; z-index: 2;
    display: grid; grid-template-columns: 1.05fr .95fr; gap: 54px; align-items: center;
}
.hero-split .hero-title { font-size: clamp(32px, 4.6vw, 54px); line-height: 1.14; }
.hero-split .hero-desc { margin: 0 0 28px; font-size: 16px; max-width: 560px; }
.hero-split .hero-cta { justify-content: flex-start; }
.hero-split .hero-stats { justify-content: flex-start; margin-top: 34px; }
.hero-proof { margin-top: 26px; font-size: 12.5px; color: var(--text-3); display: flex; gap: 18px; flex-wrap: wrap; }
.hero-proof span { display: inline-flex; align-items: center; gap: 6px; }
.hero-proof i { width: 6px; height: 6px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 8px var(--primary); }
.hero-split .hero-ring { display: none; }

/* 终端窗口 */
.terminal {
    border-radius: 14px; overflow: hidden;
    background: rgba(5, 10, 14, .86);
    border: 1px solid var(--line);
    box-shadow: 0 30px 80px rgba(0,0,0,.55), 0 0 0 1px rgba(255,255,255,.02), var(--glow);
    position: relative;
}
.terminal-bar {
    display: flex; align-items: center; gap: 8px;
    padding: 11px 15px; border-bottom: 1px solid var(--line-soft);
    background: rgba(255,255,255,.02);
}
.terminal-bar .dot { width: 11px; height: 11px; border-radius: 50%; }
.terminal-bar .dot.r { background: #ff5f57; }
.terminal-bar .dot.y { background: #febc2e; }
.terminal-bar .dot.g { background: #28c840; }
.terminal-bar .tt { margin-left: 8px; font-size: 12px; color: var(--text-3); font-family: var(--mono); }
.terminal-body {
    padding: 20px 20px 18px; font-family: var(--mono); font-size: 12.8px; line-height: 1.85;
    min-height: 318px; color: #9fe8da;
}
.terminal-body .ln-comment { color: #5b7a74; }
.terminal-body .ln-cmd { color: #e8fdf8; }
.terminal-body .ln-key { color: #ffd479; }
.terminal-body .ln-think { color: #7fd6ff; }
.terminal-body .ln-answer { color: #e8fdf8; }
.terminal-body .ln-ok { color: var(--primary); margin-top: 8px; display: block; }
.terminal-body .prompt { color: var(--primary); user-select: none; }
.caret { display: inline-block; width: 8px; height: 15px; background: var(--primary);
         vertical-align: -2px; margin-left: 2px; animation: caret-blink 1s steps(1) infinite; }
@keyframes caret-blink { 50% { opacity: 0; } }

/* hero 浮动状态卡 */
.hero-floats { position: relative; }
.float-card {
    position: absolute; z-index: 3;
    background: rgba(255,255,255,.95); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    border: 1px solid var(--line-soft); border-radius: 12px; padding: 11px 15px;
    font-size: 12.5px; color: var(--text-2); display: flex; align-items: center; gap: 9px;
    box-shadow: 0 14px 40px rgba(28,39,51,.16);
    animation: float-y 5.5s ease-in-out infinite;
}
.float-card .fdot { width: 8px; height: 8px; border-radius: 50%; background: var(--primary);
    box-shadow: 0 0 10px var(--primary); animation: pulse 2.2s infinite; flex: 0 0 auto; }
.float-card.f1 { top: -18px; right: -14px; }
.float-card.f2 { bottom: -16px; left: -20px; animation-delay: 1.6s; }
@keyframes float-y { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }

/* 信任数据带 */
.trust-band {
    border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft);
    background: #ffffff;
}
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.trust-item { padding: 34px 24px; text-align: center; position: relative; }
.trust-item + .trust-item::before {
    content: ""; position: absolute; left: 0; top: 26%; height: 48%;
    width: 1px; background: var(--line-soft);
}
.trust-item .tv { font-size: 32px; font-weight: 800; color: var(--primary-strong); font-family: var(--mono); letter-spacing: .5px; }
.trust-item .tv small { font-size: 15px; font-weight: 600; color: var(--primary); margin-left: 2px; }
.trust-item .tl { font-size: 13px; color: var(--text-3); margin-top: 7px; }
.trust-item .tn { font-size: 11.5px; color: var(--text-3); opacity: .7; margin-top: 3px; }

/* 生态兼容 */
.eco-logos { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 36px; }
.eco-pill {
    display: inline-flex; align-items: center; gap: 9px;
    padding: 11px 20px; border-radius: 999px;
    background: var(--bg-card); border: 1px solid var(--line-soft);
    color: var(--text-2); font-size: 13.5px; font-weight: 500;
    transition: all .2s;
}
.eco-pill:hover { border-color: var(--line); color: var(--primary); background: var(--primary-faint);
                 box-shadow: var(--glow-soft); transform: translateY(-2px); }
.eco-pill .eico { font-size: 15px; }

/* 三步接入 */
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 42px; }
.step-card { position: relative; padding: 30px 26px; }
.step-num {
    width: 38px; height: 38px; border-radius: 11px; display: flex; align-items: center; justify-content: center;
    font-family: var(--mono); font-weight: 700; font-size: 16px; color: var(--primary-strong);
    background: var(--primary-dim); border: 1px solid rgba(0,168,132,.3); margin-bottom: 16px;
}
.step-card h3 { font-size: 17px; margin-bottom: 8px; }
.step-card p { color: var(--text-2); font-size: 13.8px; }
.step-card .step-code {
    margin-top: 14px; font-family: var(--mono); font-size: 11.5px; color: #0e7d92;
    background: #f1f8f6; border: 1px solid rgba(0,168,132,.18); border-radius: 8px;
    padding: 10px 12px; white-space: pre-wrap; word-break: break-all;
}
.steps-arrow { display: none; }

/* 架构图 */
.arch-panel {
    margin-top: 44px; padding: 36px 30px;
    background:
        linear-gradient(rgba(0,168,132,.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0,168,132,.05) 1px, transparent 1px),
        #ffffff;
    background-size: 34px 34px, 34px 34px, auto;
    border: 1px solid var(--line-soft); border-radius: 18px;
    box-shadow: 0 2px 10px rgba(28,39,51,.04);
}
.arch-flow { display: grid; grid-template-columns: .9fr 2.1fr 1.1fr; gap: 26px; align-items: stretch; }
.arch-node {
    border: 1px solid #dde5eb; border-radius: 13px; padding: 18px 20px;
    background: #ffffff; text-align: center;
    display: flex; flex-direction: column; justify-content: center; gap: 6px;
}
.arch-node .an-tit { font-weight: 700; font-size: 14.5px; color: var(--text); }
.arch-node .an-sub { font-size: 11.5px; color: var(--text-3); }
.arch-node.app { border-color: rgba(14,149,184,.4); background: #f4fbfd; }
.arch-node.gw {
    border-color: var(--primary); box-shadow: var(--glow-soft);
    background: linear-gradient(160deg, rgba(0,168,132,.10), #ffffff);
}
.arch-node.gw .an-tit { color: var(--primary-strong); font-size: 15.5px; letter-spacing: 1px; }
.arch-gw-items { display: grid; grid-template-columns: 1fr; gap: 8px; margin-top: 8px; }
.arch-gw-items span {
    font-size: 12px; color: var(--text-2); padding: 7px 10px;
    border: 1px solid var(--line-soft); border-radius: 8px; background: #f7faf9;
}
.arch-upstreams { display: flex; flex-direction: column; gap: 10px; }
.arch-upstreams .arch-node { padding: 14px 16px; flex-direction: row; justify-content: flex-start; text-align: left; }
.arch-upstreams .uico { font-size: 18px; }
.arch-arrow { position: relative; }
.arch-arrow::after {
    content: "→"; position: absolute; right: -24px; top: 50%; transform: translateY(-50%);
    color: var(--primary); font-size: 22px; z-index: 2;
}

/* FAQ */
.faq-list { max-width: 820px; margin: 36px auto 0; display: flex; flex-direction: column; gap: 12px; }
.faq-item { border: 1px solid var(--line-soft); border-radius: 12px; background: var(--bg-card);
            overflow: hidden; transition: border-color .2s; }
.faq-item.open { border-color: var(--line); }
.faq-q { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 16px;
         padding: 18px 22px; background: none; border: 0; cursor: pointer; color: var(--text);
         font-size: 15px; font-weight: 600; font-family: var(--sans); text-align: left; }

/* 全局 Toast（scripts.js / doc.js 共用；浅底彩条品牌风） */
.toast {
    position: fixed; top: 76px; left: 50%; z-index: 9999;
    transform: translateX(-50%) translateY(-20px);
    min-width: 220px; max-width: 90vw;
    padding: 11px 20px; border-radius: 10px;
    background: var(--bg-card); color: var(--text);
    border: 1px solid var(--line-soft); border-left: 3px solid var(--primary);
    box-shadow: 0 10px 28px rgba(15, 40, 33, .14);
    font-size: 13.5px; line-height: 1.5; text-align: center;
    opacity: 0; transition: opacity .25s ease, transform .25s ease;
    pointer-events: none;
}
.toast.toast-success { border-left-color: #10b981; }
.toast.toast-error   { border-left-color: #ef4444; }
.toast.toast-warning { border-left-color: #f59e0b; }
.toast.toast-info    { border-left-color: #3b82f6; }
.faq-q .faq-icon { color: var(--primary); font-size: 20px; transition: transform .25s; flex: 0 0 auto; }
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-a p { padding: 0 22px; color: var(--text-2); font-size: 14px; line-height: 1.9; }
.faq-item.open .faq-a { max-height: 320px; }
.faq-item.open .faq-a p { padding-bottom: 20px; }

/* 滚动进入动画 */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* 云平台级响应式 */
@media (max-width: 960px) {
    .hero-split .hero-grid { grid-template-columns: 1fr; gap: 40px; }
    .trust-grid { grid-template-columns: repeat(2, 1fr); }
    .trust-item:nth-child(3)::before { display: none; }
    .steps-grid { grid-template-columns: 1fr; }
    .arch-flow { grid-template-columns: 1fr; gap: 16px; }
    .arch-arrow::after { content: "↓"; right: 50%; top: auto; bottom: -22px; transform: translateX(50%); }
    .float-card.f1 { right: 0; } .float-card.f2 { left: 0; }
}
@media (max-width: 640px) {
    .trust-grid { grid-template-columns: 1fr; }
    .trust-item + .trust-item::before { display: none; }
    .topbar { font-size: 11px; padding: 0 12px; }
    .float-card.f1 { top: -12px; right: 0; z-index: 4; }
    .float-card.f2 { bottom: -12px; left: 0; z-index: 4; }
}

/* ---------------- 响应式 ---------------- */
@media (max-width: 960px) {
    .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 26px; }
    .nav-links { display: none; }
    .nav-burger { display: flex; }
    .docs-layout { grid-template-columns: 1fr; gap: 20px; }
    .docs-side { position: static; display: flex; flex-wrap: wrap; gap: 4px; }
    .docs-side a { border-left: 0; }
}
@media (max-width: 640px) {
    .section { padding: 60px 0; }
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .container { padding: 0 18px; }
    .nav-actions .btn-ghost { display: none; }
}
