/* ===================================================================
   ACICode AI · 全站样式  (亮色 / 科技感 / 大气 / 自适应 / 多语言)
   参考 evolink.ai 与 new-api 设计语言
   =================================================================== */
:root {
    /* 主色 */
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #4f46e5;   /* 链接 / 强调文字色（亮色下用较深靛蓝保证可读性）*/
    --accent: #0891b2;
    --accent2: #0d9488;
    --violet: #7c3aed;
    --pink: #db2777;

    /* 背景（亮色） */
    --bg: #ffffff;
    --bg1: #f5f7fc;
    --bg2: #eef1f8;
    --bg3: #e5eaf4;
    --card: rgba(255, 255, 255, 0.78);
    --glass: rgba(20, 30, 80, 0.025);

    /* 边框/文字 */
    --border: rgba(20, 30, 80, 0.10);
    --border-strong: rgba(20, 30, 80, 0.20);
    --text: #0e1428;
    --text2: #495067;
    --text3: #828ba3;

    /* 尺寸 */
    --nav-h: 66px;
    --radius: 18px;
    --radius-sm: 12px;
    --maxw: 1580px;

    /* 效果 */
    --shadow: 0 16px 44px -16px rgba(20, 30, 80, 0.22);
    --glow: 0 10px 50px -8px rgba(99, 102, 241, 0.30);
    --grad-brand: linear-gradient(120deg, var(--primary) 0%, var(--accent) 58%, var(--accent2) 100%);
    --grad-fill: linear-gradient(120deg, var(--primary) 0%, var(--violet) 100%);
    --transition: 0.25s cubic-bezier(.4, 0, .2, 1);
    /* 代码块固定使用深色（亮色站点中深色代码块是常见且美观的模式）*/
    --code-bg: #0f1320;
    --code-head: #171c2e;
    --code-border: #232a40;
    --mono: ui-monospace, 'SFMono-Regular', 'Cascadia Code', 'JetBrains Mono', Consolas, 'Liberation Mono', monospace;
    --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', 'Hiragino Sans GB', 'Source Han Sans CN', 'Noto Sans CJK SC', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    font-family: var(--sans);
    background: var(--bg);
    color: var(--text);
    line-height: 1.65;
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* 全局环境光背景 */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -2;
    background:
        radial-gradient(ellipse 70% 50% at 50% -10%, rgba(99, 102, 241, 0.10), transparent 60%),
        radial-gradient(ellipse 50% 40% at 100% 8%, rgba(8, 145, 178, 0.07), transparent 55%),
        radial-gradient(ellipse 60% 50% at 0% 55%, rgba(124, 58, 237, 0.05), transparent 55%);
    pointer-events: none;
}
body::after {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -2;
    background-image:
        linear-gradient(rgba(20, 30, 80, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(20, 30, 80, 0.045) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(ellipse 100% 80% at 50% 0%, black 15%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse 100% 80% at 50% 0%, black 15%, transparent 70%);
    pointer-events: none;
}

/* 滚动条 */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--bg1); }
::-webkit-scrollbar-thumb { background: #c5cce0; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary); }

/* ============ 顶部公告条 ============ */
.topbar {
    background: linear-gradient(90deg, rgba(99, 102, 241, 0.10), rgba(8, 145, 178, 0.08));
    border-bottom: 1px solid var(--border);
    font-size: 0.82rem;
    color: var(--text2);
    text-align: center;
    padding: 7px 16px;
    position: relative;
    z-index: 1001;
}
.topbar a { color: var(--primary-light); font-weight: 600; }
.topbar a:hover { text-decoration: underline; }

/* ============ 导航 ============ */
header.site-header {
    position: sticky;
    top: 0;
    height: var(--nav-h);
    background: rgba(255, 255, 255, 0.78);
    backdrop-filter: blur(18px) saturate(160%);
    -webkit-backdrop-filter: blur(18px) saturate(160%);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 max(4vw, 20px);
    z-index: 1000;
}
.logo-area { display: flex; align-items: center; gap: 11px; }
.logo-icon {
    width: 38px; height: 38px;
    background: var(--grad-fill);
    border-radius: 11px;
    display: flex; align-items: center; justify-content: center;
    font-size: 19px; color: #fff; font-weight: 900;
    box-shadow: 0 4px 18px rgba(99, 102, 241, 0.4);
    flex-shrink: 0;
}
.company-name {
    font-size: 1.22rem; font-weight: 800; letter-spacing: -0.2px;
    background: linear-gradient(90deg, var(--text) 30%, var(--primary));
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}

nav#main-nav { display: flex; align-items: center; gap: 2px; }
nav#main-nav a {
    color: var(--text2);
    font-size: 0.93rem; font-weight: 500;
    padding: 8px 15px; border-radius: 9px;
    transition: color var(--transition), background var(--transition);
}
nav#main-nav a:hover, nav#main-nav a.active { color: var(--text); background: rgba(99, 102, 241, 0.10); }

.nav-right { display: flex; align-items: center; gap: 10px; }

/* 语言切换 */
.lang-switch {
    display: inline-flex; align-items: center; gap: 5px;
    background: var(--glass); border: 1px solid var(--border);
    color: var(--text2); font-size: 0.85rem; font-weight: 600;
    padding: 7px 12px; border-radius: 9px; cursor: pointer;
    transition: all var(--transition);
}
.lang-switch:hover { border-color: var(--border-strong); color: var(--text); }
.lang-switch svg { width: 15px; height: 15px; }
.lang-switch .caret { width: 12px; height: 12px; opacity: .7; }

/* 语言下拉 */
.lang-dropdown { position: relative; }
.lang-menu {
    position: absolute; top: calc(100% + 8px); right: 0;
    min-width: 148px; background: #fff; border: 1px solid var(--border);
    border-radius: 12px; padding: 6px; box-shadow: var(--shadow);
    opacity: 0; transform: translateY(-6px); pointer-events: none;
    transition: all var(--transition); z-index: 1002;
}
.lang-dropdown.open .lang-menu { opacity: 1; transform: none; pointer-events: auto; }
.lang-menu a {
    display: block; padding: 9px 14px; border-radius: 8px;
    font-size: 0.9rem; color: var(--text2); cursor: pointer; transition: all var(--transition);
}
.lang-menu a:hover { background: rgba(99, 102, 241, 0.10); color: var(--text); }
.lang-menu a.active { color: var(--primary-dark); font-weight: 700; background: rgba(99, 102, 241, 0.08); }

.nav-cta {
    background: var(--grad-fill) !important;
    color: #fff !important;
    padding: 8px 18px !important; border-radius: 9px !important;
    font-weight: 600 !important;
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.4);
}
.nav-cta:hover { transform: translateY(-1px); filter: brightness(1.06); }

.menu-toggle {
    display: none; background: none; border: none; cursor: pointer;
    flex-direction: column; gap: 5px; padding: 6px;
}
.menu-toggle span { display: block; width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: var(--transition); }

/* ============ 通用区块 ============ */
.section { padding: clamp(60px, 9vw, 110px) max(4vw, 20px); position: relative; }
.wrap { max-width: var(--maxw); margin: 0 auto; }
.section-head { max-width: 760px; margin: 0 auto clamp(36px, 5vw, 60px); text-align: center; }
.section-head.left { margin-left: 0; text-align: left; }

.eyebrow {
    display: inline-flex; align-items: center; gap: 7px;
    font-family: var(--mono);
    font-size: 0.74rem; font-weight: 600; letter-spacing: 2px;
    text-transform: uppercase; color: var(--accent);
    margin-bottom: 16px;
}
.eyebrow::before { content: ''; width: 22px; height: 1px; background: var(--accent); opacity: 0.6; }

h1, h2, h3 { letter-spacing: -0.5px; line-height: 1.12; }
.section-title { font-size: clamp(1.7rem, 3.6vw, 2.7rem); font-weight: 800; margin-bottom: 16px; }
.section-sub { font-size: clamp(0.98rem, 1.6vw, 1.12rem); color: var(--text2); line-height: 1.7; }
.gt {
    background: var(--grad-brand);
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}

/* 按钮 */
.btn { display: inline-flex; align-items: center; gap: 8px; font-size: 0.97rem; font-weight: 600; padding: 13px 28px; border-radius: 11px; cursor: pointer; border: 1px solid transparent; transition: all var(--transition); white-space: nowrap; }
.btn-primary { background: var(--grad-fill); color: #fff; box-shadow: 0 6px 24px rgba(99, 102, 241, 0.35); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 36px rgba(99, 102, 241, 0.45); }
.btn-ghost { background: #fff; color: var(--text); border-color: var(--border-strong); }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary-dark); background: rgba(99, 102, 241, 0.06); }
.btn-sm { padding: 9px 18px; font-size: 0.88rem; }

main { min-height: 60vh; }

/* ============ HERO ============ */
.hero { padding: clamp(60px, 9vw, 120px) max(4vw, 20px) clamp(50px, 7vw, 90px); text-align: center; position: relative; }
.hero-inner { max-width: 920px; margin: 0 auto; position: relative; z-index: 1; }

.status-strip {
    display: inline-flex; align-items: center; gap: 18px; flex-wrap: wrap; justify-content: center;
    font-family: var(--mono); font-size: 0.78rem; color: var(--text2);
    background: var(--card); border: 1px solid var(--border);
    padding: 8px 18px; border-radius: 99px; margin-bottom: 26px;
    box-shadow: 0 4px 14px -8px rgba(20,30,80,0.15);
}
.status-strip .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent2); box-shadow: 0 0 8px var(--accent2); display: inline-block; margin-right: 6px; animation: pulse 2s infinite; }
.status-strip i { font-style: normal; color: var(--accent2); }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .4; } }

.hero-kicker {
    font-family: var(--mono); font-size: 0.78rem; letter-spacing: 3px; text-transform: uppercase;
    color: var(--primary-light); margin-bottom: 18px;
}
.hero h1 { font-size: clamp(2.3rem, 6vw, 4.2rem); font-weight: 850; margin-bottom: 22px; }
.hero p.lead { font-size: clamp(1.02rem, 2vw, 1.25rem); color: var(--text2); max-width: 660px; margin: 0 auto 38px; line-height: 1.7; }
.hero-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 26px; }
.hero-meta { display: flex; gap: 22px; justify-content: center; flex-wrap: wrap; font-size: 0.84rem; color: var(--text3); }
.hero-meta span { display: inline-flex; align-items: center; gap: 6px; }
.hero-meta span::before { content: '✓'; color: var(--accent2); font-weight: 700; }

/* 厂商滚动条 */
.brand-row { margin-top: 54px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.brand-chip {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--card); border: 1px solid var(--border);
    border-radius: 10px; padding: 9px 16px; font-size: 0.85rem; color: var(--text2); font-weight: 500;
    transition: all var(--transition);
    box-shadow: 0 2px 10px -6px rgba(20,30,80,0.12);
}
.brand-chip:hover { border-color: var(--border-strong); color: var(--text); transform: translateY(-2px); }
.brand-chip .b-dot { width: 9px; height: 9px; border-radius: 50%; }

/* ============ 统计条 ============ */
.stats { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: linear-gradient(180deg, var(--bg1), transparent); }
.stats-grid { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; padding: 40px max(4vw, 20px); }
.stat { text-align: center; }
.stat .num { font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 850; background: linear-gradient(135deg, var(--text), var(--primary)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.stat .lbl { font-size: 0.84rem; color: var(--text3); margin-top: 4px; }

/* ============ 卡片网格通用 ============ */
.grid { display: grid; gap: 20px; }
.cols-3 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.cols-4 { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.cols-2 { grid-template-columns: repeat(auto-fit, minmax(360px, 1fr)); }

.card {
    background: var(--card); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 28px;
    transition: all var(--transition); position: relative; overflow: hidden;
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 18px -12px rgba(20,30,80,0.12);
}
.card:hover { border-color: var(--border-strong); transform: translateY(-4px); box-shadow: var(--shadow); }
.card .num-tag { font-family: var(--mono); font-size: 0.74rem; color: var(--accent); letter-spacing: 1px; margin-bottom: 14px; }
.card h3 { font-size: 1.16rem; font-weight: 700; margin-bottom: 10px; }
.card p { font-size: 0.92rem; color: var(--text2); line-height: 1.7; }
.card .ico {
    width: 52px; height: 52px; border-radius: 13px; display: flex; align-items: center; justify-content: center;
    font-size: 24px; margin-bottom: 18px;
    background: rgba(99, 102, 241, 0.10); border: 1px solid rgba(99, 102, 241, 0.18);
}
.card .lnk { display: inline-flex; align-items: center; gap: 5px; margin-top: 16px; font-size: 0.86rem; font-weight: 600; color: var(--primary-light); }
.card .lnk:hover { gap: 9px; }

/* ============ 模型类型大卡 (image/video/llm/audio) ============ */
.type-card {
    display: flex; flex-direction: column;
    background: var(--card); border: 1px solid var(--border);
    border-radius: var(--radius); overflow: hidden; transition: all var(--transition);
    box-shadow: 0 4px 18px -12px rgba(20,30,80,0.12);
}
.type-card:hover { border-color: var(--border-strong); transform: translateY(-4px); box-shadow: var(--shadow); }
.type-card .thumb { aspect-ratio: 16 / 10; position: relative; overflow: hidden; background: var(--bg3); }
.type-card .thumb::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(8,11,22,0.45)); }
.type-card .thumb .badge { position: absolute; top: 14px; left: 14px; z-index: 2; font-family: var(--mono); font-size: 0.7rem; letter-spacing: 1px; background: rgba(8,11,22,0.55); border: 1px solid rgba(255,255,255,0.18); color: #fff; padding: 4px 10px; border-radius: 7px; }
.type-card .thumb .emoji { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 4rem; opacity: 0.95; }
.type-card .body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.type-card .body h3 { font-size: 1.2rem; margin-bottom: 10px; }
.type-card .body p { font-size: 0.9rem; color: var(--text2); line-height: 1.65; flex: 1; }
.type-card .body .lnk { margin-top: 16px; font-weight: 600; color: var(--primary-light); font-size: 0.88rem; display: inline-flex; gap: 5px; }
.type-card .body .lnk:hover { gap: 9px; }

/* ============ 模型库页面 ============ */
.filter-bar { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; margin-bottom: 36px; }
.filter-tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.filter-tab { padding: 8px 16px; background: #fff; border: 1px solid var(--border); border-radius: 9px; color: var(--text2); font-size: 0.88rem; cursor: pointer; transition: all var(--transition); }
.filter-tab:hover, .filter-tab.active { background: rgba(99, 102, 241, 0.12); border-color: var(--primary); color: var(--primary-dark); }
.filter-search { position: relative; }
.filter-search input { width: 280px; max-width: 70vw; padding: 10px 16px 10px 38px; background: #fff; border: 1px solid var(--border); border-radius: 9px; color: var(--text); font-size: 0.9rem; outline: none; transition: all var(--transition); }
.filter-search input:focus { border-color: var(--primary); }
.filter-search .si { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); opacity: .5; }

.model-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.mcard {
    background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 22px; transition: all var(--transition); position: relative; display: flex; flex-direction: column;
    box-shadow: 0 4px 18px -12px rgba(20,30,80,0.12);
}
.mcard:hover { border-color: var(--border-strong); transform: translateY(-3px); box-shadow: var(--shadow); }
.mcard-top { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.mcard-logo { width: 42px; height: 42px; border-radius: 11px; display: flex; align-items: center; justify-content: center; font-weight: 800; color: #fff; font-size: 17px; flex-shrink: 0; }
.mcard-name { font-size: 1.05rem; font-weight: 700; }
.mcard-vendor { font-size: 0.78rem; color: var(--text3); }
.mcard-badges { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.tag { font-size: 0.7rem; font-weight: 600; padding: 3px 9px; border-radius: 7px; }
.tag-type { background: rgba(99, 102, 241, 0.12); color: var(--primary-light); }
.tag-hot { background: linear-gradient(135deg, #f59e0b, #ef4444); color: #fff; }
.tag-preview { background: rgba(13, 148, 136, 0.12); color: var(--accent2); border: 1px solid rgba(13,148,136,0.28); }
.mcard p.desc { font-size: 0.86rem; color: var(--text2); line-height: 1.6; flex: 1; margin-bottom: 14px; }
.mcard-foot { display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--border); padding-top: 14px; }
.mcard-price { font-size: 0.82rem; color: var(--text3); }
.mcard-price b { color: var(--accent2); font-weight: 700; }
.mcard-foot .go { font-size: 0.84rem; font-weight: 600; color: var(--primary-light); display: inline-flex; gap: 4px; }
.mcard-foot .go:hover { gap: 8px; }

/* ============ 页面 HERO（子页面） ============ */
.page-hero { padding: clamp(50px, 7vw, 90px) max(4vw, 20px) clamp(30px, 4vw, 50px); text-align: center; }
.page-hero h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); font-weight: 850; margin-bottom: 16px; }
.page-hero p { font-size: 1.08rem; color: var(--text2); max-width: 680px; margin: 0 auto; line-height: 1.7; }

/* ============ 模型详情页 ============ */
.detail-wrap { max-width: var(--maxw); margin: 0 auto; padding: 30px max(4vw, 20px) 0; }
.detail-head { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: start; margin-bottom: 50px; }
.detail-info .mt-logo { width: 60px; height: 60px; border-radius: 15px; display: flex; align-items: center; justify-content: center; font-weight: 800; color: #fff; font-size: 24px; margin-bottom: 18px; }
.detail-info h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 850; margin-bottom: 14px; }
.detail-info .sub { color: var(--text2); line-height: 1.7; margin-bottom: 22px; }
.spec-list { display: flex; flex-direction: column; gap: 0; margin-bottom: 24px; }
.spec-row { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--border); font-size: 0.9rem; }
.spec-row .k { color: var(--text3); }
.spec-row .v { color: var(--text); font-weight: 600; text-align: right; }
.spec-row .v b { color: var(--accent2); }

.copy-id { display: inline-flex; align-items: center; gap: 8px; background: var(--bg2); border: 1px solid var(--border); border-radius: 9px; padding: 9px 14px; font-family: var(--mono); font-size: 0.85rem; color: var(--text); }
.copy-id button { background: none; border: none; cursor: pointer; color: var(--text3); font-size: 0.95rem; }
.copy-id button:hover { color: var(--accent2); }

/* ============ 沙盒/Playground ============ */
.sandbox { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: 0 6px 22px -14px rgba(20,30,80,0.18); }
.sandbox-head { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--border); background: var(--bg1); }
.sandbox-head .tt { font-weight: 700; font-size: 0.95rem; }
.sandbox-head .badge { font-family: var(--mono); font-size: 0.7rem; color: var(--accent); margin-left: auto; }
.sandbox-body { padding: 20px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 0.82rem; color: var(--text2); margin-bottom: 7px; font-weight: 600; }
.field textarea, .field input, .field select {
    width: 100%; background: #fff; border: 1px solid var(--border); border-radius: 10px;
    color: var(--text); padding: 11px 14px; font-size: 0.9rem; outline: none; transition: border var(--transition);
    font-family: inherit; resize: vertical;
}
.field textarea:focus, .field input:focus, .field select:focus { border-color: var(--primary); }
.field-row { display: flex; gap: 14px; flex-wrap: wrap; }
.field-row .field { flex: 1; min-width: 140px; }

/* 图片上传 */
.upload-zone {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
    border: 1.5px dashed var(--border-strong); border-radius: 12px;
    padding: 22px; cursor: pointer; color: var(--text3); font-size: 0.86rem;
    transition: all var(--transition); background: var(--bg1);
}
.upload-zone:hover { border-color: var(--primary); color: var(--primary-dark); background: rgba(99,102,241,0.05); }
.upload-zone .up-ico { font-size: 1.4rem; }
.up-thumbs { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.up-thumb { position: relative; width: 64px; height: 64px; border-radius: 9px; overflow: hidden; border: 1px solid var(--border); }
.up-thumb img { width: 100%; height: 100%; object-fit: cover; }
.up-thumb button { position: absolute; top: 2px; right: 2px; width: 18px; height: 18px; border-radius: 50%; border: none; background: rgba(8,11,22,0.7); color: #fff; cursor: pointer; font-size: 12px; line-height: 1; display: flex; align-items: center; justify-content: center; }
.up-thumb button:hover { background: #ef4444; }
.sandbox-out {
    margin-top: 16px; background: var(--code-bg); border: 1px solid var(--code-border); border-radius: 10px;
    padding: 16px; min-height: 120px; font-family: var(--mono); font-size: 0.85rem; color: #cbd5e1;
    white-space: pre-wrap; word-break: break-word; max-height: 420px; overflow: auto;
}
.sandbox-out .ph { color: #64748b; }
.sandbox-out img { border-radius: 10px; margin-top: 10px; border: 1px solid var(--code-border); }
.note { font-size: 0.8rem; color: var(--text3); margin-top: 10px; line-height: 1.6; }

/* 模式切换 */
.seg { display: inline-flex; background: var(--bg2); border: 1px solid var(--border); border-radius: 9px; padding: 3px; }
.seg button { background: none; border: none; color: var(--text2); padding: 7px 16px; border-radius: 7px; font-size: 0.84rem; cursor: pointer; transition: all var(--transition); font-weight: 600; }
.seg button.active { background: var(--grad-fill); color: #fff; }

/* ============ 代码块（固定深色） ============ */
.code-demo { background: var(--code-bg); border: 1px solid var(--code-border); border-radius: var(--radius); overflow: hidden; box-shadow: 0 10px 30px -16px rgba(20,30,80,0.3); }
.code-header { background: var(--code-head); padding: 11px 18px; display: flex; align-items: center; gap: 8px; border-bottom: 1px solid var(--code-border); }
.code-dot { width: 12px; height: 12px; border-radius: 50%; }
.code-dot.r { background: #ff5f57; } .code-dot.y { background: #febc2e; } .code-dot.g { background: #28c840; }
.code-lang { margin-left: auto; font-family: var(--mono); font-size: 0.74rem; color: #94a3b8; }
.code-body { padding: 20px 22px; font-family: var(--mono); font-size: 0.86rem; line-height: 1.75; color: #e2e8f0; overflow-x: auto; white-space: pre; }
.c-kw { color: #a5b4fc; } .c-str { color: #5eead4; } .c-key { color: #7dd3fc; } .c-num { color: #fb923c; } .c-cmt { color: #64748b; font-style: italic; }
.copy-code { position: absolute; top: 11px; right: 14px; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12); border-radius: 6px; color: #cbd5e1; cursor: pointer; font-size: 0.78rem; padding: 4px 10px; z-index: 2; }
.copy-code:hover { color: #fff; background: rgba(255,255,255,0.12); }

/* ============ 步骤 ============ */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; counter-reset: step; }
.step { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px 24px; position: relative; transition: all var(--transition); box-shadow: 0 4px 18px -12px rgba(20,30,80,0.12); }
.step:hover { border-color: var(--border-strong); transform: translateY(-3px); box-shadow: var(--shadow); }
.step .n { font-family: var(--mono); font-size: 2rem; font-weight: 800; background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; margin-bottom: 12px; }
.step h4 { font-size: 1.05rem; margin-bottom: 8px; }
.step p { font-size: 0.88rem; color: var(--text2); line-height: 1.6; }

/* ============ 定价 ============ */
.pricing-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; max-width: var(--maxw); margin: 0 auto; }
.price-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 34px 28px; position: relative; transition: all var(--transition); box-shadow: 0 4px 18px -12px rgba(20,30,80,0.12); }
.price-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.price-card.featured { border-color: var(--primary); background: linear-gradient(160deg, rgba(99,102,241,0.10), #fff); box-shadow: var(--glow); }
.price-badge { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--grad-fill); color: #fff; font-size: 0.74rem; font-weight: 700; padding: 5px 16px; border-radius: 99px; white-space: nowrap; }
.price-tier { font-family: var(--mono); font-size: 0.82rem; color: var(--text3); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 8px; }
.price-amt { font-size: 2.6rem; font-weight: 850; line-height: 1; margin-bottom: 8px; }
.price-amt span { font-size: 1rem; color: var(--text2); font-weight: 400; }
.price-card > p { font-size: 0.86rem; color: var(--text2); margin-bottom: 22px; }
.price-feats { list-style: none; margin: 0 0 26px; }
.price-feats li { font-size: 0.88rem; color: var(--text2); padding: 7px 0; border-bottom: 1px solid var(--border); display: flex; gap: 8px; }
.price-feats li::before { content: '✓'; color: var(--accent2); font-weight: 700; flex-shrink: 0; }

/* ============ FAQ ============ */
.faq-list { max-width: 1580px; margin: 0 auto; }
.faq-item { border: 1px solid var(--border); border-radius: var(--radius-sm); margin-bottom: 12px; background: var(--card); overflow: hidden; transition: border var(--transition); }
.faq-item.open { border-color: var(--border-strong); }
.faq-q { padding: 18px 22px; font-weight: 600; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; font-size: 0.97rem; }
.faq-q::after { content: '+'; font-size: 1.5rem; color: var(--primary-light); transition: transform var(--transition); flex-shrink: 0; }
.faq-item.open .faq-q::after { transform: rotate(45deg); }
.faq-a { padding: 0 22px; font-size: 0.9rem; color: var(--text2); line-height: 1.75; max-height: 0; overflow: hidden; transition: max-height 0.3s ease, padding 0.25s; }
.faq-item.open .faq-a { max-height: 400px; padding: 0 22px 20px; }

/* ============ CTA ============ */
.cta { text-align: center; position: relative; overflow: hidden; }
.cta-box { max-width: 820px; margin: 0 auto; background: linear-gradient(160deg, rgba(99,102,241,0.10), rgba(8,145,178,0.05)); border: 1px solid var(--border-strong); border-radius: 26px; padding: clamp(40px, 6vw, 70px); position: relative; }
.cta-box .kicker { font-family: var(--mono); font-size: 0.76rem; letter-spacing: 2px; color: var(--accent); text-transform: uppercase; margin-bottom: 14px; }
.cta-box h2 { font-size: clamp(1.7rem, 3.5vw, 2.6rem); font-weight: 850; margin-bottom: 14px; }
.cta-box p { color: var(--text2); margin-bottom: 30px; font-size: 1.05rem; }
.cta-box .hero-btns { margin-bottom: 22px; }

/* ============ FOOTER ============ */
.site-footer { background: var(--bg1); border-top: 1px solid var(--border); padding: 56px max(4vw, 20px) 26px; }
.footer-inner { max-width: var(--maxw); margin: 0 auto; display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 36px; padding-bottom: 36px; border-bottom: 1px solid var(--border); }
.footer-brand .footer-name { display: flex; align-items: center; gap: 9px; font-size: 1.1rem; font-weight: 800; margin: 12px 0 10px; }
.footer-brand p { font-size: 0.86rem; color: var(--text3); line-height: 1.6; max-width: 280px; }
.footer-brand .socials { display: flex; gap: 10px; margin-top: 16px; }
.footer-brand .socials a { width: 36px; height: 36px; border-radius: 9px; background: #fff; border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; color: var(--text2); transition: all var(--transition); }
.footer-brand .socials a:hover { border-color: var(--primary); color: var(--primary-dark); }
.footer-col h4 { font-size: 0.82rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 14px; color: var(--text); }
.footer-col a { display: block; font-size: 0.87rem; color: var(--text3); margin-bottom: 9px; transition: color var(--transition); }
.footer-col a:hover { color: var(--primary-light); }
.footer-bottom { max-width: var(--maxw); margin: 0 auto; padding-top: 22px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 0.82rem; color: var(--text3); }
.footer-bottom a { color: var(--text3); }
.footer-bottom a:hover { color: var(--text2); }

/* ============ 工具类 ============ */
.center { text-align: center; }
.mt-32 { margin-top: 32px; }
.hide { display: none !important; }
[data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
[data-reveal].in { opacity: 1; transform: none; }

/* ============ 兼容旧页面 (about/docs 内联结构) ============ */
.section-wrapper { max-width: var(--maxw); margin: 0 auto; }
.section-tag {
    display: inline-flex; align-items: center; gap: 6px;
    font-family: var(--mono); font-size: 0.74rem; font-weight: 600; letter-spacing: 2px;
    text-transform: uppercase; color: var(--accent); margin-bottom: 14px;
}
.section-desc { font-size: 1.02rem; color: var(--text2); line-height: 1.7; }
.section-title .g { background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

/* ============ 响应式 ============ */
@media (max-width: 1200px) {
    .pricing-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 1000px) {
    .footer-inner { grid-template-columns: 1fr 1fr 1fr; }
    .footer-brand { grid-column: 1 / -1; }
    .detail-head { grid-template-columns: 1fr; gap: 30px; }
}
@media (max-width: 560px) {
    .pricing-grid { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
    .menu-toggle { display: flex; }
    nav#main-nav {
        position: fixed; top: var(--nav-h); left: 0; right: 0;
        flex-direction: column; align-items: stretch;
        background: rgba(255, 255, 255, 0.98); backdrop-filter: blur(18px);
        padding: 14px max(4vw, 20px); gap: 4px; border-bottom: 1px solid var(--border);
        box-shadow: 0 16px 40px -20px rgba(20,30,80,0.25);
        transform: translateY(-10px); opacity: 0; pointer-events: none; transition: all var(--transition); z-index: 999;
        max-height: calc(100vh - var(--nav-h)); overflow-y: auto;
    }
    nav#main-nav.open { transform: none; opacity: 1; pointer-events: auto; }
    nav#main-nav a { padding: 12px 16px; font-size: 1rem; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
}
@media (max-width: 620px) {
    .footer-inner { grid-template-columns: 1fr 1fr; }
    .hero-btns .btn { width: 100%; justify-content: center; }
    .filter-search input { width: 100%; }
    .filter-search { width: 100%; }
}
@media (max-width: 440px) {
    .footer-inner { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: 1fr; }
}
