/* ============================================================
   SOIN AWE — 酷黑科技主题
   主色: #0a0d10 黑 | 辅助: #76B900 绿 (logo绿, NVIDIA风格)
   ============================================================ */
:root {
  --bg: #0a0d10;
  --bg-2: #0e1216;
  --card: #12161c;
  --card-2: #161b22;
  --border: #232a33;
  --border-2: #2d3641;
  --green: #76b900;
  --green-hi: #8fd400;
  --green-dim: rgba(118, 185, 0, 0.14);
  --green-glow: rgba(118, 185, 0, 0.35);
  --text: #e8edf2;
  --text-2: #98a4b1;
  --text-3: #626e7b;
  --danger: #e5484d;
  --warn: #f5a524;
  --radius: 12px;
  --radius-sm: 8px;
  --nav-h: 64px;
  --font: "Segoe UI", "PingFang SC", "Microsoft YaHei", "Noto Sans SC", -apple-system, sans-serif;
  --mono: "Cascadia Code", "JetBrains Mono", Consolas, "Courier New", monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scrollbar-gutter: stable; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
[v-cloak] { display: none; }

/* ---------- 科技背景 ---------- */
.tech-bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; background: var(--bg); }
.tech-bg::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(118,185,0,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(118,185,0,.035) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 20%, transparent 75%);
}
.tech-bg::after {
  content: ""; position: absolute; top: -260px; left: 50%; transform: translateX(-50%);
  width: 900px; height: 520px; border-radius: 50%;
  background: radial-gradient(ellipse, var(--green-glow) 0%, transparent 65%);
  opacity: .16; filter: blur(40px);
}

/* ---------- 导航栏 ---------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  height: var(--nav-h);
  background: rgba(10, 13, 16, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1280px; height: 100%; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; gap: 28px;
}
.nav-logo { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.nav-logo img { height: 34px; width: auto; display: block; }
.nav-logo .logo-mark { height: 34px; width: 34px; border-radius: 8px; background: #fff; display: flex; align-items: center; justify-content: center; }
.nav-logo .logo-mark img { height: 26px; }
.nav-links { display: flex; align-items: center; gap: 4px; flex: 1; }
.nav-link {
  padding: 8px 16px; border-radius: var(--radius-sm);
  color: var(--text-2); font-size: 14.5px; font-weight: 500;
  transition: all .18s;
}
.nav-link:hover { color: var(--text); background: var(--card-2); }
.nav-link.active { color: var(--green-hi); background: var(--green-dim); }
.nav-right { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }

/* 图标按钮 */
.icon-btn {
  width: 38px; height: 38px; border-radius: var(--radius-sm);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--text-2); cursor: pointer; border: 1px solid transparent;
  font-size: 20px; transition: all .18s; background: transparent; position: relative;
}
.icon-btn:hover { color: var(--text); background: var(--card-2); border-color: var(--border); }
.icon-btn .dot {
  position: absolute; top: 7px; right: 7px; width: 8px; height: 8px;
  background: var(--green); border-radius: 50%; border: 2px solid var(--bg);
}

/* 语言切换 */
.lang-switch { position: relative; }
.lang-btn {
  display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px;
  border-radius: var(--radius-sm); border: 1px solid var(--border);
  background: var(--card); color: var(--text-2); cursor: pointer;
  font-size: 13.5px; font-weight: 500; transition: all .18s;
}
.lang-btn:hover { color: var(--text); border-color: var(--border-2); }
.lang-menu {
  position: absolute; top: calc(100% + 8px); right: 0; min-width: 170px;
  background: var(--card-2); border: 1px solid var(--border-2); border-radius: var(--radius);
  box-shadow: 0 16px 48px rgba(0,0,0,.55); overflow: hidden; padding: 6px;
}
.lang-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 9px 12px; border-radius: 6px; cursor: pointer;
  color: var(--text-2); font-size: 14px; transition: all .15s;
}
.lang-item:hover { background: var(--card); color: var(--text); }
.lang-item.active { color: var(--green-hi); background: var(--green-dim); }
.lang-item .ti { font-size: 16px; }

/* 登录按钮 */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 0 22px; height: 40px; border-radius: var(--radius-sm);
  font-size: 14.5px; font-weight: 600; cursor: pointer; border: none;
  transition: all .18s; font-family: var(--font); white-space: nowrap;
}
.btn-primary {
  background: var(--green); color: #0b0f00;
  box-shadow: 0 0 0 0 var(--green-glow);
}
.btn-primary:hover { background: var(--green-hi); box-shadow: 0 0 24px var(--green-glow); }
.btn-primary:disabled { opacity: .55; cursor: not-allowed; box-shadow: none; }
.btn-ghost {
  background: transparent; color: var(--text-2);
  border: 1px solid var(--border-2);
}
.btn-ghost:hover { color: var(--green-hi); border-color: var(--green); background: var(--green-dim); }
.btn-block { width: 100%; }
.btn-lg { height: 46px; padding: 0 30px; font-size: 15.5px; }

/* 用户菜单 */
.user-menu { position: relative; }
.user-btn {
  display: flex; align-items: center; gap: 10px; padding: 5px 12px 5px 5px;
  border-radius: 20px; border: 1px solid var(--border); cursor: pointer;
  background: var(--card); color: var(--text); font-family: var(--font);
  transition: all .18s; height: 40px;
}
.user-btn:hover { border-color: var(--border-2); }
.avatar {
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--green-dim); color: var(--green-hi);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 13px; border: 1px solid rgba(118,185,0,.3);
}
.user-name { font-size: 13.5px; font-weight: 500; max-width: 130px; overflow: hidden; text-overflow: ellipsis; }
.dropdown {
  position: absolute; top: calc(100% + 8px); right: 0; min-width: 210px;
  background: var(--card-2); border: 1px solid var(--border-2); border-radius: var(--radius);
  box-shadow: 0 16px 48px rgba(0,0,0,.55); overflow: hidden; padding: 6px;
}
.dd-item {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px;
  border-radius: 6px; cursor: pointer; color: var(--text-2); font-size: 14px; transition: all .15s;
}
.dd-item:hover { background: var(--card); color: var(--text); }
.dd-item.danger:hover { color: var(--danger); background: rgba(229,72,77,.08); }
.dd-item .ti { font-size: 17px; }

/* 公告面板 */
.announce-panel {
  position: absolute; top: calc(100% + 10px); right: 0; width: 400px; max-width: calc(100vw - 40px);
  background: var(--card-2); border: 1px solid var(--border-2); border-radius: var(--radius);
  box-shadow: 0 20px 60px rgba(0,0,0,.6); overflow: hidden;
}
/* 公告面板: 手机端居中弹窗 (teleport 到 body, 避开导航 backdrop-filter) */
.announce-mask {
  position: fixed; inset: 0; background: rgba(0,0,0,.55); z-index: 205;
  animation: saFade .18s ease;
}
.announce-panel.is-modal {
  position: fixed; top: 50%; left: 50%; right: auto; transform: translate(-50%, -50%);
  width: calc(100vw - 32px); max-width: calc(100vw - 32px);
  max-height: 78vh; display: flex; flex-direction: column; z-index: 210;
  animation: saFade .18s ease;
}
.announce-panel.is-modal .announce-list { max-height: none; flex: 1; overflow-y: auto; }

/* 移动端汉堡菜单 */
.nav-menu-btn { display: none; }
.mobile-nav {
  display: none; position: absolute; top: 100%; left: 0; right: 0; z-index: 110;
  background: var(--card-2); border-bottom: 1px solid var(--border-2);
  box-shadow: 0 24px 48px rgba(0,0,0,.55); padding: 8px;
  animation: saNavDrop .18s ease;
}
.mobile-nav-link {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 16px; border-radius: var(--radius-sm);
  color: var(--text-2); font-size: 15px; font-weight: 500; transition: all .15s;
}
.mobile-nav-link .ti { font-size: 18px; }
.mobile-nav-link:active, .mobile-nav-link.active { color: var(--green-hi); background: var(--green-dim); }
@keyframes saFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes saNavDrop { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }
.announce-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px; border-bottom: 1px solid var(--border);
  font-weight: 600; font-size: 15px;
}
.announce-head .ti { color: var(--green-hi); margin-right: 8px; }
.announce-list { max-height: 420px; overflow-y: auto; }
.announce-item { padding: 14px 18px; border-bottom: 1px solid var(--border); }
.announce-item:last-child { border-bottom: none; }
.announce-item h4 { font-size: 14px; font-weight: 600; display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.announce-item h4 .ti { color: var(--green-hi); font-size: 15px; }
.announce-item p { font-size: 13px; color: var(--text-2); line-height: 1.55; }
.announce-content { font-size: 13px; color: var(--text-2); line-height: 1.6; word-break: break-word; }
.announce-content p { margin: 0 0 8px; font-size: 13px; line-height: 1.6; }
.announce-content p:last-child { margin-bottom: 0; }
.announce-content img { max-width: 100%; height: auto; border-radius: 8px; margin: 6px 0; }
.announce-content a { color: var(--green-hi); }
.announce-content ul, .announce-content ol { margin: 6px 0; padding-left: 20px; }
.announce-content blockquote { margin: 8px 0; padding: 4px 12px; border-left: 3px solid var(--green); color: var(--text-3); background: var(--card-2); border-radius: 0 6px 6px 0; }
.announce-content table { border-collapse: collapse; margin: 8px 0; font-size: 12.5px; }
.announce-content th, .announce-content td { border: 1px solid var(--border); padding: 5px 10px; }
.announce-content h2, .announce-content h3 { font-size: 14px; margin: 8px 0 4px; color: var(--text); }
.announce-content code { background: var(--card-2); border-radius: 4px; padding: 1px 5px; font-size: 12px; }
.announce-item time { font-size: 12px; color: var(--text-3); display: block; margin-top: 8px; }
.announce-empty { padding: 40px 20px; text-align: center; color: var(--text-3); font-size: 14px; }
.announce-empty .ti { font-size: 34px; display: block; margin: 0 auto 10px; }

/* ---------- 布局 ---------- */
/* width:100% 修复: .container 作为 .app-shell(flex) 子项时, 横向 auto margin 会禁用 stretch 导致按内容收缩 */
.container { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.page { padding: 48px 24px 80px; }
.footer {
  border-top: 1px solid var(--border); padding: 26px 0; margin-top: auto;
  color: var(--text-3); font-size: 13px; text-align: center;
}
.app-shell { min-height: 100vh; display: flex; flex-direction: column; }

/* ---------- Hero ---------- */
.hero { text-align: center; padding: 90px 0 70px; position: relative; }
.hero-tag {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 16px; border-radius: 20px;
  border: 1px solid rgba(118,185,0,.35); background: var(--green-dim);
  color: var(--green-hi); font-size: 12.5px; font-weight: 700; letter-spacing: 1.5px;
  margin-bottom: 28px;
}
.hero-tag .ti { font-size: 15px; }
.hero h1 {
  font-size: 52px; font-weight: 800; line-height: 1.38; letter-spacing: -1px;
  margin-bottom: 22px;
}
.hero h1 .green {
  background: linear-gradient(100deg, var(--green) 0%, var(--green-hi) 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.hero-desc {
  max-width: 640px; margin: 0 auto 38px; color: var(--text-2); font-size: 17px; line-height: 1.75;
}
.hero-actions { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }

/* 数据条 */
.stats-bar {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: var(--border); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden; max-width: 760px; margin: 0 auto;
}
.stat { background: var(--card); padding: 26px 16px; text-align: center; }
.stat b { display: block; font-size: 30px; font-weight: 800; color: var(--green-hi); font-variant-numeric: tabular-nums; }
.stat span { font-size: 13px; color: var(--text-3); margin-top: 4px; display: block; }

/* ---------- Section ---------- */
.section { padding: 70px 0; }
.section-head { text-align: center; margin-bottom: 46px; }
.section-head h2 { font-size: 32px; font-weight: 800; letter-spacing: -.5px; }
.section-head h2 .green { color: var(--green-hi); }
.section-head p { color: var(--text-2); margin-top: 10px; font-size: 15.5px; }

/* 特性卡片 */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 30px 26px; transition: all .22s; position: relative; overflow: hidden;
}
.feature-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--green), transparent);
  opacity: 0; transition: opacity .22s;
}
.feature-card:hover { transform: translateY(-4px); border-color: rgba(118,185,0,.4); box-shadow: 0 12px 40px rgba(0,0,0,.4); }
.feature-card:hover::before { opacity: 1; }
.f-icon {
  width: 48px; height: 48px; border-radius: 10px; margin-bottom: 18px;
  background: var(--green-dim); border: 1px solid rgba(118,185,0,.25);
  display: flex; align-items: center; justify-content: center;
  color: var(--green-hi); font-size: 24px;
}
.feature-card h3 { font-size: 17px; font-weight: 700; margin-bottom: 10px; }
.feature-card p { color: var(--text-2); font-size: 14px; line-height: 1.7; }

/* ---------- 认证页(登录/注册) ---------- */
.auth-wrap { flex: 1; display: flex; align-items: center; justify-content: center; padding: 60px 24px; }
.auth-card {
  width: 100%; max-width: 440px;
  background: var(--card); border: 1px solid var(--border);
  border-radius: 16px; padding: 40px 38px;
  box-shadow: 0 24px 80px rgba(0,0,0,.5); position: relative;
}
.auth-card::before {
  content: ""; position: absolute; top: -1px; left: 24px; right: 24px; height: 2px;
  background: linear-gradient(90deg, transparent, var(--green), transparent); border-radius: 2px;
}
.auth-brand { text-align: center; margin-bottom: 30px; }
.auth-brand img { height: 52px; margin-bottom: 14px; }
.auth-brand h1 { font-size: 22px; font-weight: 800; letter-spacing: .5px; }
.auth-brand p { color: var(--text-3); font-size: 13.5px; margin-top: 6px; }

.field { margin-bottom: 18px; }
.field label {
  display: block; font-size: 13.5px; font-weight: 600; color: var(--text-2);
  margin-bottom: 8px;
}
.field-input {
  position: relative; display: flex; align-items: center;
}
.field-input > .ti {
  position: absolute; left: 14px; font-size: 18px; color: var(--text-3);
  pointer-events: none; z-index: 1;
}
.field-input input {
  width: 100%; height: 46px; padding: 0 14px 0 44px;
  background: var(--bg-2); border: 1px solid var(--border);
  border-radius: var(--radius-sm); color: var(--text);
  font-size: 14.5px; font-family: var(--font); outline: none;
  transition: all .18s;
}
.field-input input::placeholder { color: var(--text-3); }
.field-input input:focus {
  border-color: var(--green); background: var(--card-2);
  box-shadow: 0 0 0 3px var(--green-dim);
}
.field-input .eye-btn {
  position: absolute; right: 8px; width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-3); cursor: pointer; border-radius: 6px; font-size: 17px;
}
.field-input .eye-btn:hover { color: var(--text-2); }

/* 表单提示 */
.form-msg {
  display: flex; align-items: center; gap: 8px;
  padding: 11px 14px; border-radius: var(--radius-sm);
  font-size: 13.5px; margin-bottom: 18px; line-height: 1.5;
}
.form-msg .ti { font-size: 17px; flex-shrink: 0; }
.form-msg.error { background: rgba(229,72,77,.09); border: 1px solid rgba(229,72,77,.35); color: #ff8589; }
.form-msg.success { background: var(--green-dim); border: 1px solid rgba(118,185,0,.4); color: var(--green-hi); }

.auth-foot { text-align: center; margin-top: 22px; font-size: 13.5px; color: var(--text-3); }
.auth-foot a { color: var(--green-hi); font-weight: 600; }
.auth-foot a:hover { text-decoration: underline; }

/* ---------- 用户中心 (设置/令牌/钱包) ---------- */
.uc-wrap { flex: 1; padding: 40px 0 80px; }
.uc-head { display: flex; align-items: center; gap: 14px; margin-bottom: 26px; }
.uc-head .uc-icon {
  width: 46px; height: 46px; border-radius: 12px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--green-dim); border: 1px solid rgba(118,185,0,.3);
  color: var(--green-hi); font-size: 22px;
}
.uc-head h1 { font-size: 23px; font-weight: 800; }
.uc-head p { color: var(--text-3); font-size: 13.5px; margin-top: 3px; }
.uc-card {
  background: var(--card); border: 1px solid var(--border); border-radius: 16px;
  padding: 26px 28px; margin-bottom: 20px;
}
.uc-card > h3 {
  font-size: 15px; font-weight: 700; margin-bottom: 18px;
  display: flex; align-items: center; gap: 9px;
}
.uc-card > h3 .ti { color: var(--green-hi); font-size: 17px; }
.kv-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.kv {
  background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 12px 16px;
}
.kv b { display: block; font-size: 12px; font-weight: 600; color: var(--text-3); margin-bottom: 5px; letter-spacing: .5px; }
.kv span { font-size: 14.5px; color: var(--text); word-break: break-all; }
.kv span.mono { font-family: var(--mono); color: var(--green-hi); }

/* 令牌表格 */
.tok-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.tok-table th {
  text-align: left; font-size: 12px; font-weight: 600; color: var(--text-3);
  padding: 10px 12px; border-bottom: 1px solid var(--border); letter-spacing: .5px;
}
.tok-table td { padding: 12px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.tok-table tr:last-child td { border-bottom: none; }
.tok-table .mono { font-family: var(--mono); font-size: 13px; color: var(--text-2); }
.tok-empty { padding: 40px 20px; text-align: center; color: var(--text-3); font-size: 14px; }
.tok-empty .ti { font-size: 32px; display: block; margin: 0 auto 10px; }
.tok-actions { display: flex; gap: 6px; justify-content: flex-end; }

/* 新令牌展示 (仅创建后显示一次) */
.tok-reveal {
  background: var(--bg-2); border: 1px solid rgba(118,185,0,.35); border-radius: var(--radius-sm);
  padding: 14px 16px; margin-bottom: 18px;
}
.tok-reveal p { font-size: 12.5px; color: var(--text-3); margin-bottom: 10px; line-height: 1.6; }
.tok-reveal .tok-value {
  display: flex; align-items: center; gap: 10px;
  background: #0b0e12; border: 1px solid var(--border); border-radius: 8px; padding: 10px 14px;
}
.tok-reveal code {
  font-family: var(--mono); font-size: 13px; color: var(--green-hi);
  word-break: break-all; flex: 1;
}

/* 钱包 */
.balance-box {
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
  background: linear-gradient(120deg, var(--green-dim), transparent 65%);
  border: 1px solid rgba(118,185,0,.3); border-radius: 12px; padding: 24px 26px;
}
.balance-num { font-size: 38px; font-weight: 800; color: var(--green-hi); font-family: var(--mono); line-height: 1.1; }
.balance-unit { font-size: 14px; color: var(--text-2); font-weight: 600; }
.uc-note {
  display: flex; align-items: center; gap: 10px; padding: 13px 16px;
  background: var(--bg-2); border: 1px dashed var(--border-2); border-radius: var(--radius-sm);
  color: var(--text-2); font-size: 13.5px;
}
.uc-note .ti { color: var(--green-hi); font-size: 17px; flex-shrink: 0; }

/* ---------- 模型页 ---------- */
.model-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); gap: 18px; }
.model-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px; cursor: pointer; transition: all .2s; position: relative;
}
.model-card:hover { border-color: rgba(118,185,0,.4); transform: translateY(-3px); box-shadow: 0 12px 36px rgba(0,0,0,.4); }
/* 未接入: 灰化 (降饱和度 + 透明度, 仍可点击查看详情) */
.model-card.disabled { filter: saturate(.25); opacity: .55; }
.model-card.disabled:hover { filter: saturate(.45); opacity: .85; border-color: var(--border-2); }

.model-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin-bottom: 12px; }
.model-head-left { display: flex; align-items: center; gap: 12px; min-width: 0; }
.model-head h3 { font-size: 15.5px; font-weight: 700; }
.model-head h3 small { display: block; font-size: 12px; color: var(--text-3); font-weight: 500; margin-top: 2px; }
.mvendor-logo {
  width: 36px; height: 36px; border-radius: 9px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 800; color: #fff;
  background: var(--vendor-color, #888);
  box-shadow: 0 2px 6px rgba(0,0,0,.25);
  overflow: hidden;
}
.mvendor-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.badge {
  font-size: 11.5px; font-weight: 700; padding: 4px 10px; border-radius: 20px; letter-spacing: .5px;
  flex-shrink: 0;
}
.badge.ok { background: var(--green-dim); color: var(--green-hi); border: 1px solid rgba(118,185,0,.4); }
.badge.soon { background: rgba(98,110,123,.15); color: var(--text-3); border: 1px solid var(--border-2); }
.model-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.model-meta .tag {
  font-size: 11.5px; color: var(--text-2); background: var(--bg-2);
  border: 1px solid var(--border); border-radius: 6px; padding: 3px 9px;
}
.model-meta .tag.cap { color: var(--green-hi); border-color: rgba(118,185,0,.25); background: var(--green-dim); }
.model-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; border-top: 1px solid var(--border); padding-top: 13px; margin-top: 2px; }
.model-foot-ctx { font-size: 12px; color: var(--text-3); display: flex; flex-direction: column; gap: 4px; }
.model-foot-ctx b { color: var(--text-2); font-weight: 700; }
.model-foot-ctx .billing-mode { font-size: 11px; }
.model-foot-ctx .billing-mode .ti { font-size: 12px; margin-right: 3px; color: var(--green-hi); }
.model-price-rows { display: flex; flex-direction: column; gap: 3px; text-align: right; min-width: 110px; }
.mp-row { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.mp-row span { font-size: 11px; color: var(--text-3); }
.mp-row b { font-size: 13px; color: var(--green-hi); font-variant-numeric: tabular-nums; font-weight: 700; }
.mp-sym { color: var(--text-3); font-weight: 500; margin-right: 1px; font-size: 11.5px; }

/* 工具栏 + 价格切换器 */
.models-toolbar { display: flex; gap: 16px; align-items: center; justify-content: center; margin: 0 auto 22px; flex-wrap: wrap; }
.price-toggle { display: flex; gap: 10px; align-items: center; }
.price-toggle-group { display: inline-flex; background: var(--card); border: 1px solid var(--border); border-radius: 8px; padding: 3px; gap: 2px; }
.pt-btn {
  padding: 6px 12px; font-size: 12px; font-weight: 600; color: var(--text-3);
  background: transparent; border: none; border-radius: 6px; cursor: pointer;
  font-family: var(--font); transition: all .15s;
}
.pt-btn:hover { color: var(--text-2); }
.pt-btn.active { background: var(--green-dim); color: var(--green-hi); }
.model-price-locked {
  display: flex; align-items: center; gap: 6px;
  font-size: 12px; color: var(--text-3);
  background: var(--bg-2); border: 1px dashed var(--border-2);
  padding: 4px 10px; border-radius: 6px;
}
.model-price-locked .ti { font-size: 14px; color: var(--green-hi); }
.model-price { display: flex; gap: 12px; }
.model-price div { flex: 1; }
.model-price span { display: block; font-size: 11.5px; color: var(--text-3); margin-bottom: 2px; }
.model-price b { font-size: 14px; color: var(--green-hi); font-variant-numeric: tabular-nums; }

/* 筛选 chips */
.filter-chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 22px; }
.filter-chip {
  padding: 8px 16px; font-size: 13px; font-weight: 600; color: var(--text-2);
  background: var(--card); border: 1px solid var(--border); border-radius: 999px;
  cursor: pointer; transition: all .15s; white-space: nowrap;
}
.filter-chip:hover { border-color: var(--border-2); color: var(--text); }
.filter-chip.active {
  color: var(--green-hi); background: var(--green-dim);
  border-color: rgba(118,185,0,.4);
}
.filter-chip .count { opacity: .65; font-size: 11.5px; margin-left: 5px; }
.filter-divider { width: 1px; background: var(--border); margin: 4px 6px; align-self: stretch; }

/* 模型详情 Modal */
.modal-mask {
  position: fixed; inset: 0; background: rgba(0,0,0,.65); z-index: 300;
  display: flex; align-items: flex-start; justify-content: center;
  padding: 40px 16px; overflow-y: auto; animation: saFade .18s ease;
}
.modal-card {
  width: 100%; max-width: 620px; background: var(--card-2);
  border: 1px solid var(--border-2); border-radius: 16px;
  box-shadow: 0 28px 80px rgba(0,0,0,.6); padding: 0;
  animation: saNavDrop .2s ease;
}
.modal-head {
  display: flex; align-items: center; gap: 16px; padding: 24px 28px;
  border-bottom: 1px solid var(--border);
}
.modal-head .mvendor-logo { width: 48px; height: 48px; border-radius: 12px; font-size: 17px; }
.modal-head h2 { font-size: 19px; font-weight: 800; }
.modal-head .vendor-link { display: block; font-size: 12.5px; color: var(--green-hi); margin-top: 4px; text-decoration: none; }
.modal-head .vendor-link:hover { text-decoration: underline; }
.modal-close {
  margin-left: auto; padding: 8px; border-radius: 8px;
  background: transparent; border: 1px solid var(--border); cursor: pointer;
  color: var(--text-3); transition: all .15s;
}
.modal-close:hover { color: var(--text); border-color: var(--border-2); }
.modal-body { padding: 24px 28px; }
.modal-desc { color: var(--text-2); font-size: 14.5px; line-height: 1.75; margin-bottom: 22px; }
.modal-kv-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin-bottom: 22px; }
.modal-kv { background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 12px 14px; }
.modal-kv b { display: block; font-size: 11.5px; color: var(--text-3); font-weight: 600; letter-spacing: .5px; margin-bottom: 4px; }
.modal-kv span { font-size: 14px; color: var(--text); word-break: break-all; }
.modal-kv span.mono { font-family: var(--mono); color: var(--green-hi); }
.modal-section-title { font-size: 13px; font-weight: 700; color: var(--text-3); margin-bottom: 10px; letter-spacing: .5px; text-transform: uppercase; }
.modal-caps { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 22px; }
.modal-price-block {
  background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 16px 18px; margin-bottom: 18px;
}
.modal-price-row { display: flex; justify-content: space-between; padding: 6px 0; }
.modal-price-row + .modal-price-row { border-top: 1px dashed var(--border); }
.modal-price-row span { color: var(--text-3); font-size: 13px; }
.modal-price-row b { font-size: 14.5px; color: var(--green-hi); font-variant-numeric: tabular-nums; }
.modal-locked {
  text-align: center; padding: 28px 20px; color: var(--text-2); font-size: 14px;
  background: var(--bg-2); border: 1px dashed var(--border-2); border-radius: var(--radius-sm); margin-bottom: 18px;
}
.modal-locked .ti { font-size: 28px; color: var(--green-hi); display: block; margin: 0 auto 10px; }
.modal-locked a { color: var(--green-hi); font-weight: 700; }
.modal-foot { padding: 18px 28px; border-top: 1px solid var(--border); display: flex; justify-content: flex-end; gap: 10px; }

/* ---------- 钱包页 ---------- */
.w-section { margin-bottom: 30px; }
.w-section-title {
  display: flex; align-items: center; gap: 9px;
  font-size: 15px; font-weight: 800; color: var(--text); margin-bottom: 16px;
}
.w-section-title > .ti { color: var(--green-hi); font-size: 18px; }
.w-section-title .w-sub { font-size: 12.5px; color: var(--text-3); font-weight: 500; margin-left: 8px; }

.w-stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; }
.w-stat {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 18px 20px;
}
.w-stat.hero {
  background: linear-gradient(135deg, rgba(118,185,0,.18), rgba(118,185,0,.06));
  border-color: rgba(118,185,0,.35);
  display: flex; flex-direction: column; gap: 6px;
}
.w-stat-label { font-size: 12px; color: var(--text-3); font-weight: 600; letter-spacing: .5px; }
.w-stat-num { font-size: 26px; font-weight: 800; color: var(--green-hi); font-variant-numeric: tabular-nums; line-height: 1.25; }
.w-stat-foot { font-size: 12px; color: var(--text-3); }
.w-stat.hero .w-stat-num { font-size: 32px; }

/* 充值方式 */
.w-recharge-offline {
  display: flex; align-items: center; gap: 12px;
  background: var(--bg-2); border: 1px dashed var(--border-2);
  border-radius: var(--radius); padding: 14px 18px; margin-bottom: 18px; color: var(--text-2); font-size: 13.5px;
}
.w-recharge-offline .ti { font-size: 22px; color: var(--text-3); flex-shrink: 0; }
.w-recharge-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 22px; }
.w-rch-card {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 18px 12px; transition: all .15s;
}
.w-rch-card.disabled { opacity: .45; filter: saturate(.3); }
.w-rch-icon { font-size: 30px; line-height: 1; }
.w-rch-name { font-size: 13.5px; font-weight: 700; color: var(--text); }
.w-rch-status { font-size: 11.5px; color: var(--text-3); }

/* 兑换码 */
.w-redeem-box {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px 22px;
}
.w-redeem-head {
  display: flex; align-items: center; gap: 9px;
  font-size: 14px; font-weight: 700; color: var(--text); margin-bottom: 14px;
}
.w-redeem-head .ti { color: var(--green-hi); font-size: 18px; }
.w-redeem-row { display: flex; gap: 10px; align-items: stretch; }

/* 邀请奖励 */
.w-invite-box {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px 22px; margin-top: 14px;
}
.w-invite-row { margin-bottom: 16px; }
.w-invite-row label { display: block; font-size: 13px; color: var(--text-2); font-weight: 600; margin-bottom: 8px; }
.w-invite-link-row { display: flex; gap: 8px; }
.w-invite-link-row input {
  flex: 1; background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 10px 14px; color: var(--text); font-size: 13px; font-family: var(--mono);
  outline: none;
}
.w-invite-rule {
  background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 14px 18px; margin-top: 6px;
}
.w-invite-rule-title {
  display: flex; align-items: center; gap: 7px;
  font-size: 13px; font-weight: 700; color: var(--green-hi); margin-bottom: 10px;
}
.w-invite-rule ul { margin: 0; padding-left: 18px; color: var(--text-2); font-size: 13px; line-height: 1.85; }
.w-invite-rule li + li { margin-top: 4px; }

@media (max-width: 560px) {
  .w-redeem-row { flex-direction: column; }
  .w-stat.hero .w-stat-num { font-size: 26px; }
}

/* ---------- 文档页 ---------- */
.docs-layout { display: grid; grid-template-columns: 260px 1fr; gap: 34px; align-items: start; }
/* 右侧内容列: 固定宽度 (1fr), 长代码行在代码块内部滚动, 不撑宽布局; 高度自适应 */
.docs-body { min-width: 0; }
.docs-toc {
  position: sticky; top: calc(var(--nav-h) + 24px);
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 14px; max-height: calc(100vh - var(--nav-h) - 48px); overflow-y: auto;
}
.docs-toc-title {
  font-size: 12px; font-weight: 700; color: var(--text-3); letter-spacing: 1px;
  text-transform: uppercase; padding: 4px 12px 10px;
}
.docs-cat { margin-bottom: 6px; }
.docs-cat-name {
  display: flex; align-items: center; gap: 8px; padding: 9px 12px;
  font-size: 13.5px; font-weight: 700; color: var(--text);
  cursor: pointer; user-select: none; border-radius: 8px; transition: background .15s;
}
.docs-cat-name:hover { background: var(--bg-2); }
.docs-cat-name .ti:first-child { color: var(--green-hi); font-size: 16px; }
.docs-cat-label { flex: 1; }
.docs-cat-chev { font-size: 15px; color: var(--text-3); transition: transform .2s ease; }
.docs-cat-chev.rot { transform: rotate(-90deg); }
.docs-toc a {
  display: flex; align-items: center; gap: 10px; padding: 8px 12px 8px 30px;
  border-radius: 8px; color: var(--text-2); font-size: 13.5px; font-weight: 500;
}
.docs-toc a .ti { font-size: 17px; }
.docs-toc a:hover, .docs-toc a.active { color: var(--green-hi); background: var(--green-dim); }
.docs-cat-empty { color: var(--text-3); font-size: 13px; padding: 6px 12px 10px 30px; }

/* 文档头部 */
.doc-head { margin-bottom: 26px; padding-bottom: 20px; border-bottom: 1px solid var(--border); }
.doc-head-cat {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 12.5px; font-weight: 700; color: var(--green-hi);
  background: var(--green-dim); border: 1px solid rgba(118,185,0,.25);
  padding: 4px 12px; border-radius: 999px; margin-bottom: 14px;
}
.doc-head-cat .ti { font-size: 14px; }
.doc-title { font-size: 26px; font-weight: 800; line-height: 1.35; margin-bottom: 10px; }
.doc-summary { color: var(--text-2); font-size: 14.5px; line-height: 1.8; margin-bottom: 12px; }
.doc-meta { color: var(--text-3); font-size: 12.5px; }

/* 富文本内容渲染 (unikeyx 分区编号风格) */
.doc-content { counter-reset: doch2; }
.doc-content h2 {
  font-size: 20px; font-weight: 800; margin: 34px 0 14px;
  display: flex; align-items: center; gap: 12px;
  counter-increment: doch2;
}
.doc-content h2::before {
  content: counter(doch2);
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%;
  background: var(--green-dim); border: 1px solid rgba(118,185,0,.3);
  color: var(--green-hi); font-size: 14px; font-weight: 800;
}
.doc-content h3 { font-size: 16px; font-weight: 700; margin: 24px 0 10px; color: var(--text); }
.doc-content p { color: var(--text-2); font-size: 14.5px; line-height: 1.85; margin-bottom: 12px; }
.doc-content strong { color: var(--text); }
.doc-content ol, .doc-content ul { margin: 0 0 14px 20px; color: var(--text-2); font-size: 14.5px; line-height: 2; }
.doc-content li::marker { color: var(--green-hi); }
.doc-content a { color: var(--green-hi); text-decoration: underline; }
.doc-content pre {
  background: #0b0e12; border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 16px 18px; overflow-x: auto; margin: 14px 0 20px;
  font-family: var(--mono); font-size: 13px; line-height: 1.75; color: #c8d2dc;
  white-space: pre;
}
.doc-content code {
  font-family: var(--mono); font-size: 13px; background: var(--card-2);
  border: 1px solid var(--border); border-radius: 5px; padding: 1px 6px; color: var(--green-hi);
}
.doc-content pre code { background: none; border: none; padding: 0; color: inherit; }
.doc-content table {
  width: 100%; border-collapse: collapse; margin: 14px 0 20px;
  font-size: 13.5px; border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden;
}
.doc-content th {
  background: var(--card-2); color: var(--text); font-weight: 700; text-align: left;
  padding: 10px 14px; border-bottom: 1px solid var(--border-2); white-space: nowrap;
}
.doc-content td {
  padding: 10px 14px; color: var(--text-2); border-bottom: 1px solid var(--border);
  vertical-align: top; line-height: 1.7;
}
.doc-content tr:last-child td { border-bottom: none; }
.doc-content blockquote {
  border-left: 3px solid var(--green); background: var(--card);
  padding: 12px 18px; margin: 14px 0; color: var(--text-2); font-size: 14px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.doc-content img { border-radius: var(--radius-sm); border: 1px solid var(--border); margin: 10px 0; }

.docs-body h2 {
  font-size: 24px; font-weight: 800; margin-bottom: 14px; padding-bottom: 12px;
  border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 10px;
}
.docs-body h2 .ti { color: var(--green-hi); font-size: 22px; }
.docs-body h3 { font-size: 17px; font-weight: 700; margin: 26px 0 10px; }
.docs-body p { color: var(--text-2); font-size: 14.5px; line-height: 1.8; margin-bottom: 12px; }
.docs-body ol, .docs-body ul { margin: 0 0 14px 20px; color: var(--text-2); font-size: 14.5px; line-height: 2; }
.code-block {
  background: #0b0e12; border: 1px solid var(--border); border-radius: var(--radius-sm);
  overflow: hidden; margin: 14px 0 20px;
}
.code-block pre {
  padding: 16px 18px; overflow-x: auto;
  font-family: var(--mono); font-size: 13px; line-height: 1.7; color: #c8d2dc;
}
.code-block .kw { color: var(--green-hi); }
.code-block .str { color: #e8c07d; }
.faq-item {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-sm);
  margin-bottom: 10px; overflow: hidden;
}
.faq-q {
  display: flex; align-items: center; gap: 10px; padding: 15px 18px;
  cursor: pointer; font-weight: 600; font-size: 14.5px; user-select: none;
}
.faq-q .ti { color: var(--green-hi); font-size: 18px; }
.faq-q .ti.chev { margin-left: auto; color: var(--text-3); transition: transform .2s; font-size: 16px; }
.faq-item.open .chev { transform: rotate(180deg); }
.faq-a { padding: 0 18px 15px 46px; color: var(--text-2); font-size: 14px; line-height: 1.7; }

/* ---------- 控制台占位 ---------- */
.console-wrap { flex: 1; display: flex; align-items: center; justify-content: center; padding: 80px 24px; }
.console-card {
  text-align: center; max-width: 520px;
  background: var(--card); border: 1px solid var(--border); border-radius: 16px;
  padding: 56px 40px;
}
.console-card .big-icon {
  width: 88px; height: 88px; margin: 0 auto 24px; border-radius: 20px;
  background: var(--green-dim); border: 1px solid rgba(118,185,0,.3);
  display: flex; align-items: center; justify-content: center;
  color: var(--green-hi); font-size: 44px;
}
.console-card h2 { font-size: 24px; font-weight: 800; margin-bottom: 12px; }
.console-card p { color: var(--text-2); font-size: 14.5px; margin-bottom: 28px; line-height: 1.7; }

/* ---------- 响应式 ---------- */
@media (max-width: 960px) {
  .grid-3 { grid-template-columns: 1fr; }
  .docs-layout { grid-template-columns: 1fr; }
  .docs-toc { position: static; }
  .hero h1 { font-size: 36px; }
  .stats-bar { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .nav-inner { gap: 14px; }
  .user-name { display: none; }
  .nav-menu-btn { display: inline-flex; }
  .mobile-nav { display: block; }
}
@media (max-width: 560px) {
  .auth-card { padding: 32px 24px; }
  .hero h1 { font-size: 29px; }
  .lang-btn span.lang-text { display: none; }
  .nav-inner { padding: 0 14px; }
  .nav .btn-primary { padding: 0 14px; }
  .user-btn { padding: 5px; border-radius: 50%; }
  .user-btn .ti-chevron-down { display: none; }
}
