@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("/assets/inter.3100e775e8.woff2") format("woff2"); }
@font-face { font-family: "AblateSC"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/noto-sans-sc-d-400.3fddc4b4c5.woff2") format("woff2"); unicode-range: U+300C-300D, U+4E0A-4E0B, U+4E2A, U+4E3A, U+4EAE, U+4EE5, U+4F1A, U+4FBF, U+4FDD, U+514D, U+5168, U+5171, U+52A8, U+5339, U+538B, U+53CD, U+53D8, U+53EA, U+547D, U+5524, U+590D, U+5957, U+5BBD, U+5C31, U+5C40, U+5C4F, U+5E03, U+5EFA, U+5F0F, U+5F15, U+5F3A, U+6253, U+62A2, U+6309, U+6362, U+6392, U+641C, U+6574, U+662F, U+66FF, U+679C, U+6807, U+6846, U+6A2A, U+6BB5, U+6BCF, U+6CA1, U+6D41, U+6D6E, U+6E05, U+7247, U+767D, U+76EE, U+7701, U+79FB, U+7A84, U+7AE0, U+7C7B, U+7D22, U+7ED3, U+800C, U+81EA, U+8272, U+8282, U+884C, U+89C6, U+8BA9, U+8BB0, U+8BCD, U+8D77, U+8F91, U+8FD9, U+903B, U+907F, U+90A3, U+914D, U+91CC, U+952E, U+95EA, U+9898, U+9AD8, U+9EC4; }
@font-face { font-family: "AblateSC"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/noto-sans-sc-a-400.ba06dc1969.woff2") format("woff2"); unicode-range: U+4E24, U+4E5F, U+4EBA, U+4EF6, U+505C, U+5148, U+518D, U+5206, U+5237, U+529F, U+5305, U+53D1, U+53F7, U+540E, U+542B, U+5668, U+573E, U+5740, U+5783, U+591A, U+592A, U+5931, U+5982, U+5B8C, U+5BC6, U+5C0F, U+5C11, U+5C1D, U+5E38, U+5F02, U+63A5, U+6548, U+6570, U+65B0, U+65E0, U+663E, U+6682, U+671F, U+672A, U+67E5, U+68C0, U+6BCD, U+6C42, U+7406, U+7591, U+76F4, U+793A, U+79D2, U+7A0D, U+7B26, U+7BB1, U+7E41, U+7EC4, U+7EDC, U+7F51, U+80FD, U+81F3, U+83B7, U+85CF, U+88AB, U+8BBE, U+8BC1, U+8BE5, U+8D25, U+8D85, U+8F6C, U+8F7D, U+8FC7, U+9001, U+901A, U+90AE, U+949F, U+95ED-95EE, U+9690, U+9700, U+9762, U+9891, U+9A8C; }
@font-face { font-family: "AblateSC"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/noto-sans-sc-acdh-400.3fc825284e.woff2") format("woff2"); unicode-range: U+B7, U+2014, U+2018-2019, U+201C-201D, U+2026, U+3001-3002, U+300A-300B, U+4E2D, U+4E3B, U+4E8E, U+4F4D, U+4F7F, U+5185, U+518C, U+5230, U+5236, U+52A1, U+5355, U+53F0, U+5411, U+5BB9, U+5BFC, U+5F55, U+6237, U+6301, U+63A7, U+652F, U+653F, U+6587, U+670D, U+673A, U+6761, U+6863, U+6B3E, U+6CE8, U+70B9, U+7528, U+767B, U+7684, U+7A7A, U+7B56, U+7CFB, U+7EBF, U+7F6E, U+8054, U+811A, U+822A, U+83DC, U+8981, U+8D26, U+8DF3, U+91CD, U+9875, U+9996, U+FF01, U+FF08-FF09, U+FF0C, U+FF1A-FF1B, U+FF1F; }
@font-face { font-family: "AblateSC"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/noto-sans-sc-ad-400.2ebd0efcab.woff2") format("woff2"); unicode-range: U+4E00, U+4E0D, U+5165, U+5173, U+52A0, U+53D6, U+53EF, U+540C, U+548C, U+5728, U+5730, U+5904, U+5B57, U+5DF2, U+6210, U+6216, U+6536, U+65F6, U+6709, U+6B21, U+6B63, U+770B, U+7801, U+81F4, U+8BD5, U+8BEF, U+8BF7, U+8F93, U+9519; }
@font-face { font-family: "AblateSC"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/noto-sans-sc-h-400.d75691e4d2.woff2") format("woff2"); unicode-range: U+578B, U+5B50, U+5C5E, U+5EA6, U+62D2, U+65B9, U+6743, U+6A21, U+79CD, U+7A0B, U+7EDD, U+8F74, U+91CF, U+95F4, U+968F; }
@font-face { font-family: "AblateSC"; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/noto-sans-sc-acdh-700.1eb28f78dd.woff2") format("woff2"); unicode-range: U+B7, U+2014, U+2018-2019, U+201C-201D, U+2026, U+3001-3002, U+300A-300B, U+FF01, U+FF08-FF09, U+FF0C, U+FF1A-FF1B, U+FF1F; }

:root {
  --bg: #08080a;
  --fg: #f4f4f5;
  --muted: #9a9aa2;
  --dim: #8a8a93;
  --line: rgba(255, 255, 255, .08);
  --accent: #f2f2f6;  /* 中性铂金：白底黑字，靠层次不靠色相 */
  --accent-2: #c9c9d6;
  --accent-ink: #0a0a0c;
  --accent-soft: rgba(255, 255, 255, .07);
  --accent-glow: rgba(255, 255, 255, .14);
  --font: "Inter", "AblateSC", -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", "PingFang SC", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  --mono: "SF Mono", ui-monospace, "JetBrains Mono", Menlo, Consolas, monospace;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; color-scheme: dark; }
body {
  background: var(--bg); color: var(--fg); font-family: var(--font);
  font-size: 15px; line-height: 1.6; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
.wrap { width: min(1240px, calc(100% - 80px)); margin: 0 auto; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 20;
  background: rgba(8, 8, 10, .6);
  backdrop-filter: saturate(160%) blur(24px); -webkit-backdrop-filter: saturate(160%) blur(24px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { height: 64px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 600; letter-spacing: -.01em; }
.brand img { display: block; border-radius: 6px; }
.menu { display: flex; align-items: center; gap: 2px; }
.menu a { padding: 6px 14px; font-size: 14px; color: var(--muted); transition: color .2s; }
.menu a:hover, .menu a.active { color: var(--fg); }
.menu .sep { width: 1px; height: 14px; background: rgba(255,255,255,.14); margin: 0 12px; }
.menu a.pill {
  margin-left: 8px; padding: 7px 18px; border-radius: 999px;
  background: var(--fg); color: #0a0a0a; font-weight: 500; transition: transform .2s, box-shadow .2s;
}
.menu a.pill:hover { color: #0a0a0a; transform: translateY(-1px); box-shadow: 0 6px 24px rgba(255,255,255,.18); }
.nav-toggle { display: none; width: 44px; height: 44px; background: none; border: 0; cursor: pointer; position: relative; }
.nav-toggle span { position: absolute; left: 12px; right: 12px; height: 1px; background: var(--fg); transition: .25s; }
.nav-toggle span:nth-child(1) { top: 18px; }
.nav-toggle span:nth-child(2) { top: 26px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { top: 22px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { top: 22px; transform: rotate(-45deg); }

/* ---------- 全站通知栏 ---------- */
.notice {
  background: linear-gradient(rgba(255,255,255,.075), rgba(255,255,255,.05));
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.notice[hidden] { display: none; }
.notice-in { display: flex; align-items: center; justify-content: center; padding: 10px 0; }
/* 圆点做成行内前置元素：多行时跟着第一行走，不会悬在两行中间 */
.notice-text { font-size: 13px; line-height: 1.55; color: rgba(244,244,245,.9); text-align: center; }
.notice-text::before {
  content: ""; display: inline-block; width: 5px; height: 5px; margin-right: 8px;
  border-radius: 50%; background: currentColor; opacity: .6; vertical-align: 2px;
}
@media (max-width: 560px) {
  .notice-in { padding: 9px 0; }
  .notice-text { font-size: 12.5px; line-height: 1.5; }
  .notice-text::before { margin-right: 7px; }
}
/* 通知栏占用了首屏高度：把这些“满屏”区块的高度扣掉，避免首屏被挤出一行 */
@media (min-width: 901px) {
  html.has-notice .hero { min-height: min(800px, calc(100vh - 64px - var(--notice-h, 0px))); }
}
html.has-notice .auth,
html.has-notice .state,
html.has-notice .dash { min-height: calc(100vh - 64px - var(--notice-h, 0px)); }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; }
.hero-bg {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(60% 70% at 78% 46%, rgba(255,255,255,.07), transparent 65%);
}
.hero-bg::after {            /* 极细网格，向边缘渐隐 */
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 80px 80px; background-position: center top; opacity: .8;
  -webkit-mask-image: radial-gradient(70% 70% at 70% 45%, #000 0%, transparent 75%);
          mask-image: radial-gradient(70% 70% at 70% 45%, #000 0%, transparent 75%);
}
.hero-inner {
  position: relative; display: grid; grid-template-columns: 1fr 1.05fr; align-items: center; gap: 24px;
  min-height: min(800px, calc(100vh - 64px)); padding: 60px 0 80px;
}
.hero-text h1 {
  font-size: clamp(56px, 8vw, 120px); font-weight: 600; line-height: 1; letter-spacing: -.06em;
  margin-left: -.05em;
  /* 纯色标题：早期做过金属渐变，后在上层取消，这里直接给最终值，不留被覆盖的死代码 */
  color: var(--fg);
}
.hero-text p {
  margin-top: 28px; font-size: 20px; line-height: 1.75; color: #c2c2ca;
}
.hero-text p span { display: block; }

.hero-visual { position: relative; justify-self: center; width: min(100%, 640px); aspect-ratio: 1; }
.hero-visual canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.halo {
  position: absolute; inset: 14%; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.10), transparent 62%); filter: blur(30px);
}
.ring { position: absolute; border-radius: 50%; border: 1px solid rgba(255,255,255,.07); }
.r1 { inset: 2%; border-color: rgba(255,255,255,.06); }
.no-gl::before {           /* WebGL 不可用时的静态兜底 */
  content: ""; position: absolute; inset: 24%; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #2a2a30, #0c0c0e 70%); border: 1px solid rgba(255,255,255,.14);
}

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .wrap { width: calc(100% - 40px); }
  .hero-inner { grid-template-columns: 1fr; min-height: 0; padding: 48px 0 40px; gap: 8px; }
  .hero-visual { width: min(112%, 460px); margin: 0 -6%; }
  .nav-toggle { display: block; margin-right: -12px; }
  .menu {
    display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    padding: 12px 20px 20px; background: rgba(8,8,10,.97); border-bottom: 1px solid var(--line);
  }
  .menu.open { display: flex; }
  .menu a { padding: 13px 0; font-size: 16px; }
  .menu .sep { display: none; }
  .menu a.pill { margin: 8px 0 0; text-align: center; padding: 13px; }
}

/* ---------- a11y ---------- */
.skip { position: absolute; left: 16px; top: -60px; z-index: 50; padding: 10px 16px; background: var(--fg); color: #0a0a0a; border-radius: 8px; transition: top .2s; }
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid #fff; outline-offset: 3px; border-radius: 4px; }
.menu a.pill:focus-visible, .btn:focus-visible { border-radius: 999px; }

/* 提交中：按钮有明确忙碌态（无文字跳动，仅降不透明度 + 光标） */
.btn[aria-busy="true"] { opacity: .72; cursor: progress; }

/* ---------- buttons ---------- */
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; }
.btn { display: inline-flex; align-items: center; justify-content: center; height: 50px; padding: 0 30px; border-radius: 999px; font-size: 16px; font-weight: 600; transition: transform .2s, box-shadow .2s, background .2s, border-color .2s; }
.btn-solid { background: var(--fg); color: #0a0a0a; }
.btn-solid:hover { transform: translateY(-1px); box-shadow: 0 8px 30px rgba(255,255,255,.2); }
.btn-line { border: 1px solid rgba(255,255,255,.4); color: var(--fg); }
.btn-line:hover { border-color: rgba(255,255,255,.55); background: rgba(255,255,255,.05); }


/* ---------- state / doc pages ---------- */
.state-links { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 22px; }
.state-links + .muted.small { margin-top: 18px; }
.state { min-height: calc(100vh - 64px); display: grid; place-items: center; text-align: center; padding: 80px 0; }
.state .tag { display: inline-block; padding: 4px 14px; margin-bottom: 24px; border: 1px solid var(--line); border-radius: 999px; font-size: 13px; color: var(--muted); letter-spacing: .06em; }
.state h1 { font-size: clamp(36px, 5vw, 56px); font-weight: 600; letter-spacing: -.04em; }
.state p { margin: 16px 0 32px; color: var(--muted); font-size: 17px; }
.doc { max-width: 760px; padding: 80px 0 120px; }
.doc h1 { font-size: clamp(34px, 4.6vw, 52px); font-weight: 600; letter-spacing: -.04em; }
.doc .meta { margin-top: 10px; color: var(--dim); font-size: 14px; }
.doc h2 { margin: 48px 0 12px; font-size: 20px; font-weight: 600; letter-spacing: -.02em; }
.doc p, .doc li { color: #c4c4cb; font-size: 16px; line-height: 1.9; }
.doc ul { padding-left: 22px; }
.doc li { margin: 6px 0; }
.doc a { color: var(--fg); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255,255,255,.35); }
.doc a:hover { text-decoration-color: #fff; }

@media (max-width: 560px) {
  .hero-text p { font-size: 17px; }
  .hero-text p span { display: inline; }
  /* 窄屏下 hero-meta 会换行，单独成行的 · 分隔符要收掉 */
  .hero-text .hero-meta span[aria-hidden] { display: none; }
  .hero-text .hero-meta { gap: 6px 12px; }
}
@media (max-width: 900px) {
  .cta .btn { flex: 1 1 140px; }
  .state { min-height: 60vh; }
}

/* ---------- auth ---------- */
.auth { min-height: calc(100vh - 64px); display: grid; place-items: center; padding: 56px 0 80px; }
.auth-card { width: min(100%, 420px); margin: 0 auto; padding: 36px 32px 30px; background: rgba(255,255,255,.025); border: 1px solid var(--line); border-radius: 18px; }
.auth-card h1 { font-size: 28px; font-weight: 600; letter-spacing: -.03em; }
.auth-card .sub { margin: 8px 0 26px; color: var(--muted); font-size: 14px; line-height: 1.7; }
.auth-card label { display: block; margin-bottom: 16px; font-size: 13px; color: var(--muted); }
.auth-card input { display: block; width: 100%; height: 46px; margin-top: 7px; padding: 0 14px; font: inherit; font-size: 15px; color: var(--fg); background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.12); border-radius: 10px; outline: none; transition: border-color .2s, background .2s; }
.auth-card input:focus { border-color: rgba(255,255,255,.5); background: rgba(255,255,255,.06); }
.auth-card .inline { display: flex; gap: 8px; margin-top: 7px; }
.auth-card .inline input { margin-top: 0; flex: 1; min-width: 0; }
.auth-card .ghost { flex: none; height: 46px; padding: 0 14px; font: inherit; font-size: 14px; color: var(--fg); background: transparent; border: 1px solid rgba(255,255,255,.22); border-radius: 10px; cursor: pointer; white-space: nowrap; transition: border-color .2s, background .2s; }
.auth-card .ghost:hover:not(:disabled) { border-color: rgba(255,255,255,.55); background: rgba(255,255,255,.05); }
.auth-card .ghost:disabled { color: var(--dim); cursor: default; }
.auth-card small { display: block; margin-top: 6px; font-size: 12px; color: var(--dim); }
.form-msg { min-height: 22px; margin: 2px 0 12px; font-size: 13px; line-height: 1.6; }
.form-msg.err { color: #ff8a8a; }
.form-msg.ok { color: #8ee0a8; }
.btn.block { width: 100%; cursor: pointer; border: 0; font-family: inherit; }
.btn.btn-line.block { border: 1px solid rgba(255,255,255,.4); background: transparent; }
.btn:disabled { opacity: .55; cursor: default; transform: none; box-shadow: none; }
.auth-card .alt { margin-top: 16px; text-align: center; font-size: 13px; color: var(--dim); }
.auth-card .alt a { color: var(--fg); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255,255,255,.35); }
.auth-card .alt a:hover { text-decoration-color: #fff; }
.menu a[hidden] { display: none; }
@media (max-width: 560px) { .auth-card { padding: 28px 22px 24px; border-radius: 16px; } }

/* ---------- console ---------- */
.dash { display: grid; grid-template-columns: 236px 1fr; min-height: calc(100vh - 64px); }
.dash[hidden] { display: none; }
.side { position: sticky; top: 64px; align-self: start; height: calc(100vh - 64px); display: flex; flex-direction: column; justify-content: space-between; padding: 20px 14px; border-right: 1px solid var(--line); background: rgba(255,255,255,.012); }
.side-nav { display: flex; flex-direction: column; gap: 4px; }
.side-nav a { display: flex; align-items: center; gap: 12px; height: 42px; padding: 0 14px; border-radius: 10px; font-size: 14px; color: var(--muted); transition: color .2s, background .2s; }
.side-nav a:hover { color: var(--fg); background: rgba(255,255,255,.04); }
.side-nav a[aria-current="page"] { color: var(--fg); background: rgba(255,255,255,.08); }
.side-nav svg { flex: none; opacity: .85; }
.side-foot { padding: 14px 8px 0; border-top: 1px solid var(--line); }
.side-foot .who { display: block; font-size: 12px; color: var(--dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-foot .out { margin-top: 8px; padding: 6px 0; font: inherit; font-size: 13px; color: var(--muted); background: none; border: 0; cursor: pointer; transition: color .2s; }
.side-foot .out:hover { color: var(--fg); }
.dash-main { min-width: 0; padding: 40px 48px 80px; }
.panel[hidden] { display: none; }
.panel h1 { font-size: 26px; font-weight: 600; letter-spacing: -.03em; }
.empty { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; margin-top: 28px; padding: 40px 32px; border: 1px dashed rgba(255,255,255,.14); border-radius: 16px; color: var(--muted); font-size: 14px; }
.empty .tag { padding: 3px 12px; border: 1px solid var(--line); border-radius: 999px; font-size: 12px; color: var(--dim); }
@media (max-width: 900px) {
  .dash { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .side { position: static; height: auto; padding: 10px 14px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .side-nav { flex-direction: row; gap: 2px; overflow-x: auto; scrollbar-width: none; }
  .side-nav a { flex: none; height: 40px; padding: 0 12px; gap: 8px; }
  .side-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 6px; padding: 8px 4px; border-top: 0; }
  .side-foot .out { margin: 0; }
  .dash-main { padding: 28px 20px 60px; }
  .empty { padding: 28px 22px; }
}
@media (max-width: 560px) {
  .side-nav { gap: 0; }
  .side-nav a { flex: 1 1 auto; justify-content: center; padding: 0 8px; gap: 6px; font-size: 13px; }
  .side-nav svg { width: 16px; height: 16px; }
}

/* ---------- console panels ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 24px; }
.stat { padding: 18px 20px; background: rgba(255,255,255,.025); border: 1px solid var(--line); border-radius: 14px; }
.stat span { display: block; font-size: 13px; color: var(--muted); }
.stat strong { display: block; margin-top: 8px; font-size: 24px; font-weight: 600; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.card { margin-top: 18px; padding: 22px 24px; background: rgba(255,255,255,.025); border: 1px solid var(--line); border-radius: 16px; }
.card.flush { padding: 0; overflow: hidden; }
.card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.card-head h2 { font-size: 15px; font-weight: 600; }
.hint, .muted { color: var(--muted); font-size: 13px; }
.muted.small { font-size: 12px; margin-top: 10px; line-height: 1.7; }
.muted.pad, .pad { padding: 28px 24px; }
.chart svg { display: block; max-width: 100%; height: 220px; }
.chart .grid { stroke: rgba(255,255,255,.07); stroke-width: 1; vector-effect: non-scaling-stroke; }
.chart .bar { fill: rgba(255,255,255,.82); }
.chart g:hover .bar { fill: #fff; }
.chart .lbl, .chart .val { fill: var(--muted); font-size: 11px; text-anchor: middle; font-family: var(--font); }
.chart .val { fill: var(--fg); }
.tscroll { overflow-x: auto; }
.tbl table { width: 100%; border-collapse: collapse; font-size: 13.5px; font-variant-numeric: tabular-nums; }
.tbl th { padding: 12px 16px; text-align: left; font-weight: 500; font-size: 12px; color: var(--dim); white-space: nowrap; border-bottom: 1px solid var(--line); }
.tbl td { padding: 13px 16px; color: #d4d4d8; white-space: nowrap; border-bottom: 1px solid rgba(255,255,255,.05); }
.tbl tr:last-child td { border-bottom: 0; }
.tbl .r { text-align: right; }
.tbl code, .kv code, .secret code { font-family: var(--mono); font-size: 12.5px; }
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 22px 0 14px; flex-wrap: wrap; }
.toolbar .muted { margin: 0; }
.sel { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); }
.sel select { height: 38px; padding: 0 12px; font: inherit; font-size: 13.5px; color: var(--fg); background: #111114; border: 1px solid rgba(255,255,255,.14); border-radius: 10px; outline: none; }
.sel select:focus { border-color: rgba(255,255,255,.5); }
.btn.sm { height: 38px; padding: 0 18px; font-size: 14px; border: 0; cursor: pointer; font-family: inherit; }
.ghost { height: 38px; padding: 0 16px; font: inherit; font-size: 13.5px; color: var(--fg); background: transparent; border: 1px solid rgba(255,255,255,.22); border-radius: 10px; cursor: pointer; transition: border-color .2s, background .2s; }
.ghost:hover:not(:disabled) { border-color: rgba(255,255,255,.55); background: rgba(255,255,255,.05); }
.ghost:disabled { color: var(--dim); cursor: default; opacity: .6; }
.kv { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.kv span { font-size: 13px; color: var(--muted); }
.kv code { padding: 6px 12px; background: rgba(255,255,255,.05); border: 1px solid var(--line); border-radius: 8px; word-break: break-all; }
.badge { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 12px; border: 1px solid var(--line); color: var(--muted); }
.badge.enabled { color: #8ee0a8; border-color: rgba(142,224,168,.3); }
.badge.exhausted, .badge.expired { color: #f3c77a; border-color: rgba(243,199,122,.3); }
.acts { display: flex; justify-content: flex-end; gap: 14px; }
.link { padding: 0; font: inherit; font-size: 13px; color: var(--muted); background: none; border: 0; cursor: pointer; transition: color .2s; }
.link:hover:not(:disabled) { color: var(--fg); }
.link.danger:hover:not(:disabled) { color: #ff8a8a; }
.modal { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 20px; background: rgba(0,0,0,.66); backdrop-filter: blur(4px); }
.modal[hidden] { display: none; }
.modal-box { width: min(100%, 460px); padding: 28px; background: #101013; border: 1px solid rgba(255,255,255,.14); border-radius: 18px; }
.modal-box h2 { font-size: 18px; font-weight: 600; margin-bottom: 16px; }
.modal-box label { display: block; font-size: 13px; color: var(--muted); }
.modal-box input { display: block; width: 100%; height: 44px; margin-top: 7px; padding: 0 14px; font: inherit; font-size: 15px; color: var(--fg); background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.12); border-radius: 10px; outline: none; }
.modal-box input:focus { border-color: rgba(255,255,255,.5); }
.modal-box [hidden] { display: none; }
.row-btns { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; }
.secret { margin-top: 14px; padding: 14px 16px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.14); border-radius: 10px; }
.secret code { display: block; word-break: break-all; color: #fff; user-select: all; line-height: 1.7; }
@media (max-width: 900px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .card { padding: 18px 16px; }
  .toolbar .btn { width: 100%; }
}

/* ---------- admin ---------- */
[data-admin] { display: none !important; }
html.is-admin [data-admin] { display: flex !important; }
html.is-admin .side-sep[data-admin] { display: block !important; }
.side-sep { margin: 14px 0 4px; padding: 10px 14px 0; border-top: 1px solid var(--line); }
.side-sep span { font-size: 11px; letter-spacing: .12em; color: var(--dim); }
.stats.three { grid-template-columns: repeat(3, 1fr); }
.stat strong.small { font-size: 16px; line-height: 1.7; }
.sel.grow { flex: 1 1 220px; }
.sel.grow input { flex: 1; min-width: 0; height: 38px; padding: 0 12px; font: inherit; font-size: 13.5px; color: var(--fg); background: #111114; border: 1px solid rgba(255,255,255,.14); border-radius: 10px; outline: none; }
.sel.grow input:focus { border-color: rgba(255,255,255,.5); }
.toolbar { gap: 14px; }
.badge.admin { margin-left: 8px; color: #9ec5ff; border-color: rgba(158,197,255,.35); }
.badge.disabled { color: #ff8a8a; border-color: rgba(255,138,138,.3); }
.modal-box.wide { width: min(100%, 560px); max-height: calc(100vh - 40px); overflow-y: auto; }
.modal-box h3 { margin: 22px 0 10px; font-size: 13px; font-weight: 600; color: var(--fg); }
.modal-box form + form, .modal-box .ugroup { padding-top: 4px; border-top: 1px solid var(--line); margin-top: 18px; }
.modal-box select { height: 44px; padding: 0 10px; font: inherit; font-size: 14px; color: var(--fg); background: #111114; border: 1px solid rgba(255,255,255,.14); border-radius: 10px; outline: none; }
.modal-box .inline3 { display: flex; gap: 8px; margin-bottom: 8px; }
.modal-box .inline3 input { margin-top: 0; flex: 1; min-width: 0; }
.modal-box .inline { display: flex; gap: 8px; }
.modal-box .inline input { margin-top: 0; flex: 1; min-width: 0; }
.modal-box form > input { margin-top: 0; }
.modal-box .form-msg { min-height: 20px; margin: 8px 0; }
.row-btns.left { justify-content: flex-start; flex-wrap: wrap; }
@media (max-width: 900px) {
  .side-sep { margin: 0 6px; padding: 0; border: 0; align-self: center; }
  .side-sep span { display: none; }
  .stats.three { grid-template-columns: 1fr; }
}

/* 弹窗更紧凑，并锁定背景滚动 */
.modal-box.wide { padding: 22px 24px; }
.modal-box.wide h2 { margin-bottom: 4px; }
.modal-box h3 { margin: 14px 0 8px; }
.modal-box form + form, .modal-box .ugroup { margin-top: 12px; }
.modal-box .form-msg { min-height: 0; margin: 6px 0 4px; }
.modal-box .form-msg:empty { display: none; }
.modal-box .row-btns { margin-top: 12px; }
body.noscroll { overflow: hidden; }

/* 管理员菜单项多时：标签不折行，行内可横向滑动 */
@media (max-width: 900px) {
  .side-nav a span { white-space: nowrap; }
  .side-nav { -webkit-overflow-scrolling: touch; }
}
@media (max-width: 560px) {
  .side-nav a { padding: 0 9px; gap: 5px; font-size: 12.5px; }
  .side-nav svg { width: 15px; height: 15px; }
}
.modal-box form > .btn { margin-top: 6px; }
.modal-box .inline .ghost { height: 44px; }

@media (max-width: 900px) {
  .dash { grid-template-columns: minmax(0, 1fr); }
  .side, .dash-main { min-width: 0; max-width: 100%; }
  .side-nav { max-width: 100%; }
}

/* Turnstile */
.ts-wrap { display: flex; justify-content: center; min-height: 92px; margin: 4px 0 6px; }
.cf-ts { max-width: 100%; }

/* ---------- docs ---------- */
.docs { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 64px; padding: 64px 0 120px; align-items: start; }
.toc { position: sticky; top: 88px; }
.toc-title { margin: 0 0 12px 16px; color: var(--dim); font-family: var(--mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; }
.toc nav { display: flex; flex-direction: column; gap: 2px; border-left: 1px solid var(--line); }
.toc a { padding: 7px 16px; margin-left: -1px; border-left: 1px solid transparent; font-size: 13.5px; color: var(--muted); transition: color .2s, border-color .2s, background .2s; }
.toc a:hover { color: var(--fg); background: rgba(255,255,255,.025); }
.toc a.on { color: var(--fg); border-left-color: var(--fg); }
.docs-body { max-width: 800px; min-width: 0; }
.docs-kicker { margin-bottom: 16px; color: var(--dim); font-family: var(--mono); font-size: 11px; letter-spacing: .13em; }
.docs-body h1 { font-size: clamp(34px, 4.4vw, 48px); font-weight: 600; letter-spacing: -.045em; line-height: 1.12; }
.docs-body .lead { max-width: 740px; margin-top: 18px; font-size: 16.5px; line-height: 1.85; color: var(--muted); }
.docs-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 24px; }
.docs-meta > span { padding: 4px 10px; color: #b8b8c0; background: rgba(255,255,255,.025); border: 1px solid var(--line); border-radius: 999px; font-family: var(--mono); font-size: 11px; }
.docs-meta > a { margin-left: auto; padding: 6px 12px; color: var(--fg); border: 1px solid rgba(255,255,255,.14); border-radius: 8px; font-size: 12.5px; text-decoration: none !important; }
.docs-meta > a:hover { background: rgba(255,255,255,.06); }
.docs-body section { scroll-margin-top: 88px; }
.docs-body h2 { margin: 64px 0 16px; padding-top: 32px; border-top: 1px solid var(--line); font-size: 24px; font-weight: 600; letter-spacing: -.025em; line-height: 1.35; }
.docs-body h3 { margin: 32px 0 10px; font-size: 16px; font-weight: 600; letter-spacing: -.01em; }
.docs-body h4 { margin: 22px 0 8px; font-size: 13.5px; font-weight: 600; color: var(--fg); letter-spacing: 0; }
.docs-body section:first-of-type h2 { border-top: 0; padding-top: 0; margin-top: 48px; }
.docs-body p, .docs-body li { color: #c4c4cb; font-size: 15.5px; line-height: 1.9; }
.docs-body p { margin: 10px 0; }
.docs-body ul, .docs-body ol { margin: 10px 0; padding-left: 22px; }
.docs-body li { margin: 6px 0; }
.docs-body li::marker { color: var(--dim); }
.docs-body a { color: var(--fg); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255,255,255,.35); }
.docs-body a:hover { text-decoration-color: #fff; }
.docs-body code { padding: 1px 6px; font-family: var(--mono); font-size: .88em; color: #e8e8ec; background: rgba(255,255,255,.07); border-radius: 5px; word-break: break-word; }
.docs-body .steps { padding-left: 22px; }
.code { position: relative; margin: 18px 0 24px; overflow: hidden; background: #0d0d10; border: 1px solid rgba(255,255,255,.11); border-radius: 12px; }
.code[hidden] { display: none; }
.code-head { display: flex; align-items: center; justify-content: space-between; min-height: 44px; padding: 6px 8px 6px 16px; background: rgba(255,255,255,.025); border-bottom: 1px solid var(--line); }
.code-lang { color: var(--dim); font-family: var(--mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; }
.code pre { margin: 0; padding: 18px 20px 20px; overflow-x: auto; }
.code pre code { padding: 0; font-size: 13px; line-height: 1.75; color: #dcdce2; background: none; white-space: pre; word-break: normal; }
.code .copy { flex: none; height: 28px; padding: 0 11px; font: inherit; font-size: 12px; color: var(--muted); background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.12); border-radius: 7px; cursor: pointer; transition: color .2s, background .2s; }
.code .copy:hover { color: var(--fg); background: rgba(255,255,255,.1); }
.tabs .code { margin-top: 0; border-top-left-radius: 0; border-top-right-radius: 0; }
.tab-bar { display: flex; gap: 2px; margin-top: 24px; padding: 6px 6px 0; background: #0d0d10; border: 1px solid rgba(255,255,255,.1); border-bottom: 0; border-radius: 12px 12px 0 0; }
.tab-bar button { padding: 8px 14px; font: inherit; font-size: 13px; color: var(--muted); background: none; border: 0; border-radius: 8px 8px 0 0; cursor: pointer; }
.tab-bar button[aria-selected="true"] { color: var(--fg); background: rgba(255,255,255,.07); }
.doc-table { margin: 18px 0 24px; overflow-x: auto; background: rgba(255,255,255,.012); border: 1px solid var(--line); border-radius: 12px; }
.doc-table table { width: 100%; border-collapse: collapse; font-size: 14px; }
.doc-table th { padding: 12px 16px; text-align: left; font-size: 11px; font-weight: 500; letter-spacing: .035em; color: var(--dim); white-space: nowrap; background: rgba(255,255,255,.025); border-bottom: 1px solid var(--line); }
.doc-table td { padding: 13px 16px; vertical-align: top; color: #c4c4cb; line-height: 1.7; border-bottom: 1px solid rgba(255,255,255,.05); }
.doc-table tbody tr { transition: background .15s; }
.doc-table tbody tr:hover { background: rgba(255,255,255,.018); }
.doc-table tr:last-child td { border-bottom: 0; }
.doc-table .r { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.doc-table td:first-child code { white-space: nowrap; }
@media (max-width: 900px) {
  .docs { grid-template-columns: minmax(0, 1fr); gap: 8px; padding-top: 24px; }
  .toc { position: sticky; top: 64px; z-index: 12; margin: 0 -20px 20px; padding: 0 12px; background: rgba(8,8,10,.94); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
  .toc-title { display: none; }
  .toc nav { flex-direction: row; gap: 0; overflow-x: auto; border-left: 0; border-bottom: 1px solid var(--line); scrollbar-width: none; }
  .toc a { flex: none; padding: 11px 14px; margin: 0 0 -1px; border-left: 0; border-bottom: 1px solid transparent; }
  .toc a.on { border-bottom-color: var(--fg); }
  /* 窄屏：搜索框单独一行，结果浮在正文上，不把目录挤走 */
  .toc-search { margin: 8px 0; }
  .toc-search input { height: 38px; }
  /* 窄屏结果浮在正文上，目录保持可见，避免展开/收起时页面跳动 */
  .toc.searching nav { display: flex; }
  .toc-results {
    position: absolute; left: 12px; right: 12px; top: 100%; z-index: 13;
    max-height: 60vh; padding: 6px; border-radius: 10px;
    background: #101013; border: 1px solid rgba(255,255,255,.12);
    box-shadow: 0 18px 40px -12px rgba(0,0,0,.8);
  }
  .toc-results .res { padding: 10px 12px; }
  .docs-body section { scroll-margin-top: 170px; }
  .docs-body h2 { margin-top: 52px; padding-top: 28px; font-size: 22px; }
  .docs-body section:first-of-type h2 { margin-top: 40px; }
  .docs-meta > a { margin-left: 0; }
}
@media (max-width: 560px) {
  .docs { padding-top: 18px; }
  .docs-kicker { margin-bottom: 12px; font-size: 10px; }
  .docs-body .lead { margin-top: 14px; font-size: 15.5px; }
  .docs-meta { margin-top: 20px; }
  .code { margin-left: -4px; margin-right: -4px; }
  .code pre { padding: 16px; }
  .code pre code { font-size: 12.5px; }
}

/* ---------- 商用级打磨 ---------- */
/* 占位符对比度（浏览器默认约 4.3:1，不达 AA） */
::placeholder { color: #8f8f98; opacity: 1; }
/* 选中文字 */
::selection { background: rgba(255,255,255,.28); color: #fff; }
/* 键盘焦点：输入框在聚焦态下也保留清晰轮廓 */
.auth-card input:focus-visible, .modal-box input:focus-visible, .sel select:focus-visible, .sel.grow input:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.btn:focus-visible, .ghost:focus-visible, .link:focus-visible, .tab-bar button:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
/* 触控目标不小于 44px（手机） */
@media (pointer: coarse) {
  .menu a, .toc a, .doc-aside a, .side-nav a, .link, .ghost, .tab-bar button, .code .copy, .auth-card .alt a { min-height: 44px; }
  .link { padding: 0 6px; }
  .code-head { min-height: 52px; }
  .code .copy { min-width: 54px; }
  .auth-card .alt a, .doc a { display: inline-flex; align-items: center; }
}
/* iOS 对 <16px 的输入框聚焦会自动放大页面 */
@media (max-width: 900px) {
  input, select, textarea { font-size: 16px !important; }
}
/* 尊重系统“减少动态效果” */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
/* 加载/空状态 */
.muted.pad { text-align: left; }
/* 可用模型 */
.inline-url { margin: 16px 0 6px; padding: 12px 16px; background: rgba(255,255,255,.025); border: 1px solid var(--line); border-radius: 12px; }
.inline-url code { flex: 1 1 220px; min-width: 0; }
.ghost.sm { height: 32px; padding: 0 12px; font-size: 12.5px; border-radius: 8px; }
/* 页脚 */
.site-foot { border-top: 1px solid var(--line); margin-top: 0; }
.site-foot-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px 32px; flex-wrap: wrap; padding: 22px 0 30px; font-size: 13px; color: var(--dim); }
.site-foot nav { display: flex; gap: 4px 20px; flex-wrap: wrap; }
.site-foot a { color: var(--muted); transition: color .2s; }
.site-foot a:hover { color: var(--fg); }
.site-foot a { padding: 4px 0; }

.badge { color: #a8a8b0; }
.docs-body a, .doc a, .muted a, .auth-card .alt a { text-decoration-color: rgba(255,255,255,.55); }

/* ---- 手机端：横向菜单的“可滑动”提示 + 触控目标 ---- */
@media (max-width: 900px) {
  .side { position: relative; }
  .side-nav { padding-right: 28px; }
  /* 右缘渐隐，提示还有更多菜单项 */
  .side::after { content: ""; position: absolute; top: 10px; right: 0; width: 36px; height: 40px; pointer-events: none;
    background: linear-gradient(90deg, rgba(8,8,10,0), #08080a 85%); }
  .side-nav a { scroll-margin-inline: 24px; }
  .inline-url .ghost.sm, .kv .ghost.sm { flex: 0 0 auto; }
  .inline-url code { flex: 1 1 100%; }
  .tbl .link { min-height: 44px; padding: 0 8px; display: inline-flex; align-items: center; }
  .side-foot .out { min-height: 40px; }
  .btn.sm, .ghost.sm { min-height: 40px; }
}

/* 导航登录态：由 <head> 里的同步脚本在首次绘制前设置 html.is-in，避免“登录/注册 → 账户”闪烁 */
.when-in { display: none !important; }
html.is-in .when-in { display: inline-block !important; }
html.is-in .when-out { display: none !important; }
@media (max-width: 900px) { html.is-in .when-in { display: block !important; } }

/* =====================================================================
   登录 / 注册 / 重置：两栏布局（左品牌 + 右表单）
   ===================================================================== */
.auth.split { padding: 48px 0 72px; }
.auth-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 460px); gap: clamp(32px, 6vw, 96px); align-items: center; width: min(1120px, calc(100% - 80px)); margin: 0 auto; }
.auth-brand { position: relative; isolation: isolate; align-self: stretch; display: flex; flex-direction: column; justify-content: center; gap: 28px; min-height: 480px; padding: 8px 0; }
.auth-title { font-size: clamp(32px, 3.6vw, 46px); line-height: 1.18; font-weight: 600; letter-spacing: -.045em; color: var(--fg); }
.auth-brand ul { list-style: none; display: grid; gap: 14px; max-width: 420px; }
.auth-brand li { display: flex; align-items: flex-start; gap: 12px; font-size: 15px; line-height: 1.7; color: #c4c4cb; }
.auth-brand li svg { flex: none; margin-top: 4px; padding: 3px; width: 22px; height: 22px; color: #fff; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); border-radius: 50%; }
.ab-orb { position: absolute; z-index: -1; left: -10%; bottom: -14%; width: 420px; height: 420px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, rgba(255,255,255,.10), rgba(255,255,255,.02) 45%, transparent 70%);
  -webkit-mask-image: radial-gradient(circle, #000 35%, transparent 72%); mask-image: radial-gradient(circle, #000 35%, transparent 72%); pointer-events: none; }
.ab-orb::before { content: ""; position: absolute; inset: 14%; border-radius: 50%; border: 1px solid rgba(255,255,255,.07); }
.ab-orb::after { content: ""; position: absolute; inset: 32%; border-radius: 50%; border: 1px solid rgba(255,255,255,.05); }

.auth.split .auth-card { width: 100%; margin: 0; padding: 40px 38px 32px; border-radius: 22px;
  background: linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.02));
  border: 1px solid rgba(255,255,255,.1);
  box-shadow: 0 1px 0 rgba(255,255,255,.06) inset, 0 40px 80px -40px rgba(0,0,0,.8); }
.auth.split .auth-card h1 { font-size: 30px; }
.auth.split .auth-card .sub { margin: 8px 0 28px; }
.field { margin-bottom: 18px; }
.field > label, .label-row > label { display: block; font-size: 13px; font-weight: 500; color: #b4b4bc; }
.label-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.mini { font-size: 12.5px; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255,255,255,.3); transition: color .2s; }
.mini:hover { color: var(--fg); }
.auth.split .auth-card input { height: 48px; margin-top: 8px; border-radius: 12px; background: rgba(0,0,0,.28); border-color: rgba(255,255,255,.12); }
.auth.split .auth-card input:hover { border-color: rgba(255,255,255,.22); }
.auth.split .auth-card input:focus { border-color: rgba(255,255,255,.6); background: rgba(0,0,0,.4); box-shadow: 0 0 0 4px rgba(255,255,255,.07); }
.auth.split .auth-card .inline { margin-top: 8px; }
.auth.split .auth-card .inline input { margin-top: 0; }
.auth.split .auth-card .ghost { height: 48px; border-radius: 12px; }
.auth.split .auth-card small { margin-top: 8px; }
.auth.split .btn.block { height: 50px; font-size: 15.5px; margin-top: 4px; }
.auth.split .auth-card .alt { margin-top: 20px; }
.legal { margin-top: 16px; text-align: center; font-size: 12.5px; line-height: 1.8; color: var(--dim); }
.legal a { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255,255,255,.3); }
.legal a:hover { color: var(--fg); }
/* 输入框错误态：由脚本在校验失败时加 aria-invalid */
.auth-card input[aria-invalid="true"] { border-color: rgba(255,138,138,.7); box-shadow: 0 0 0 4px rgba(255,138,138,.1); }
@media (max-width: 900px) {
  .auth.split { padding: 20px 0 56px; }
  .auth-grid { grid-template-columns: minmax(0, 1fr); width: calc(100% - 40px); gap: 28px; }
  .auth-brand { min-height: 0; gap: 14px; padding: 8px 0 0; }
  .auth-brand ul, .ab-orb { display: none; }
  .auth-title { font-size: 28px; }
  .auth.split .auth-card { padding: 28px 22px 24px; border-radius: 18px; }
}

/* =====================================================================
   调用记录：日期筛选
   ===================================================================== */
.filter-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 20px; margin: 22px 0 8px; }
.chips { display: inline-flex; padding: 4px; gap: 2px; background: rgba(255,255,255,.04); border: 1px solid var(--line); border-radius: 12px; }
.chip { height: 34px; padding: 0 14px; font: inherit; font-size: 13.5px; color: var(--muted); background: none; border: 0; border-radius: 9px; cursor: pointer; transition: color .2s, background .2s; white-space: nowrap; }
.chip:hover { color: var(--fg); }
.chip.on { color: #0a0a0a; background: var(--fg); font-weight: 500; }
.chip:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.dates { display: flex; align-items: flex-end; gap: 10px; flex-wrap: wrap; }
.date { display: grid; gap: 5px; font-size: 12px; color: var(--muted); }
.date input { height: 38px; padding: 0 10px; font: inherit; font-size: 13.5px; color: var(--fg); color-scheme: dark; background: #111114; border: 1px solid rgba(255,255,255,.14); border-radius: 10px; outline: none; transition: border-color .2s; }
.date input:hover { border-color: rgba(255,255,255,.28); }
.date input:focus-visible { border-color: rgba(255,255,255,.6); outline: 2px solid #fff; outline-offset: 2px; }
.dash-sep { align-self: flex-end; height: 38px; display: grid; place-items: center; color: var(--dim); }
.dates .ghost.sm { align-self: flex-end; height: 38px; }
[data-logmsg]:empty { display: none; }
@media (max-width: 900px) {
  .filter-bar { flex-direction: column; align-items: stretch; }
  .chips { width: 100%; }
  .chip { flex: 1; padding: 0 6px; min-height: 40px; }
  .dates { width: 100%; }
  .date { flex: 1 1 130px; }
  .date input { width: 100%; min-height: 44px; }
}

.chips { align-self: flex-end; }

/* ---- 登录/注册：第二轮打磨 ---- */
.auth.split { padding: 36px 0 56px; }
.auth-grid { align-items: start; }
.auth-brand { position: sticky; top: 104px; align-self: start; justify-content: flex-start; min-height: 0; gap: 26px; padding-top: 28px; }
.auth-title { font-size: clamp(34px, 3.8vw, 50px); }
.auth-brand li { color: #cfcfd6; }
.ab-orb { left: -18%; top: -6%; bottom: auto; width: 520px; height: 520px; opacity: .9; }  /* 放到标题后面，成为背景而不是被裁掉的角落 */

/* 卡片：更紧凑的竖向节奏，让主按钮在 ~860px 高度内可见 */
.auth.split .auth-card { padding: 32px 34px 26px; }
.auth.split .auth-card h1 { font-size: 28px; }
.auth.split .auth-card .sub { margin: 6px 0 22px; }
.field { margin-bottom: 14px; }
.auth.split .auth-card input { height: 46px; margin-top: 7px; }
.auth.split .auth-card .ghost { height: 46px; min-width: 96px; }          /* 获取验证码 / 显示 等宽，右缘对齐 */
.auth.split .auth-card small { margin-top: 6px; font-size: 12.5px; color: #a0a0a8; }
.auth.split .auth-card .sub { color: #a8a8b0; }
::placeholder { color: #94949d; }
.ts-wrap { margin: 6px 0 4px; min-height: 92px; }
.ts-wrap .cf-ts { width: 100%; display: flex; justify-content: center; }
.form-msg { min-height: 0; margin: 0 0 10px; }
.form-msg:empty { display: none; }
.auth.split .btn.block { height: 48px; margin-top: 2px; }
.auth.split .auth-card .alt { margin-top: 14px; }
.legal { margin-top: 12px; }
@media (max-width: 900px) { .auth-brand { position: static; padding-top: 0; } .auth.split .auth-card { padding: 26px 20px 22px; } }

/* Turnstile 固定 300px 宽：放进与输入框同宽、同圆角的容器里居中，视觉上与表单对齐 */
.ts-wrap { padding: 8px 0 12px; }
.ts-wrap .cf-ts { border-radius: 12px; overflow: hidden; width: 300px; max-width: 100%; margin: 0 auto; }
/* 左栏：圆环以标题为中心，成为背景而不是角落里的残片 */
.ab-orb { left: -14%; top: -2%; width: 560px; height: 560px; }
/* 卡片底部留白 */
.auth.split { padding-bottom: 72px; }
/* 两种右侧按钮同宽，右缘对齐 */
.auth.split .auth-card .ghost { min-width: 100px; }

/* 第三轮：左栏与卡片同高居中；标题字距；圆环以标题为中心 */
.auth-grid { align-items: center; }
.auth-brand { position: relative; top: auto; align-self: center; padding-top: 0; }
.auth-title { letter-spacing: -.02em; line-height: 1.22; }
.ab-orb { left: -18%; top: -34%; width: 600px; height: 600px; }
.ab-orb::before { border-color: rgba(255,255,255,.09); }
.ab-orb::after { border-color: rgba(255,255,255,.07); }
@media (max-width: 900px) { .auth-brand { align-self: start; } }
.legal a, .alt a { margin: 0 .15em; }
.menu a.active { color: var(--fg); }

/* 圆环：以标题为中心。.auth-brand 是纵向 flex，标题是第一个内容块；圆环绝对定位到品牌栏顶部后居中于标题 */
.ab-orb { top: 0; bottom: auto; left: 0; width: 560px; height: 560px; transform: translate(-22%, calc(-50% + 60px)); }
@media (max-width: 900px) { .ab-orb { display: none; } }

/* "忘记密码？"等行内小链接：加大点击区域但不改变版面 */
.mini { display: inline-flex; align-items: center; min-height: 28px; padding: 4px 2px; margin: -4px -2px; }
@media (pointer: coarse) { .mini { min-height: 44px; margin: -12px -2px; } }

@media (max-width: 900px) { .auth-title { font-size: 24px; line-height: 1.3; } }


/* =====================================================================
   控制台设计系统 v2
   令牌：表面层级 / 间距 / 圆角 / 字阶。所有控制台组件只使用这些值。
   ===================================================================== */
:root {
  --s-page: #08080a;
  --s-1: rgba(255,255,255,.028);     /* 卡片 */
  --s-2: rgba(255,255,255,.05);      /* 卡片内的次级块、表头 */
  --s-3: rgba(255,255,255,.08);      /* 悬停 / 选中 */
  --b-1: rgba(255,255,255,.09);      /* 常规描边 */
  --b-2: rgba(255,255,255,.16);      /* 强调描边 */
  --r-card: 18px; --r-ctl: 11px; --r-chip: 999px;
  --gap: 16px; --pad: 22px;
  --t-title: 28px; --t-h2: 15px; --t-body: 14px; --t-small: 12.5px;
  --ok: #7fe3a1; --warn: #f3c77a; --bad: #ff8a8a; --info: #9ec5ff;
  --ok-bg: rgba(127,227,161,.1); --warn-bg: rgba(243,199,122,.1); --bad-bg: rgba(255,138,138,.1); --info-bg: rgba(158,197,255,.1);
}

/* ---- 侧栏：左侧高亮条 + 账户块 ---- */
.side { background: linear-gradient(180deg, rgba(255,255,255,.02), transparent 40%); padding: 18px 12px; }
.side-nav { gap: 2px; }
.side-nav a { position: relative; height: 40px; border-radius: 10px; font-size: 14px; color: #a6a6ae; }
.side-nav a svg { opacity: .7; transition: opacity .2s; }
.side-nav a:hover { color: var(--fg); background: var(--s-2); }
.side-nav a:hover svg { opacity: 1; }
.side-nav a[aria-current="page"] { color: #fff; background: var(--s-3); font-weight: 500; }
.side-nav a[aria-current="page"] svg { opacity: 1; }
.side-nav a[aria-current="page"]::before { content: ""; position: absolute; left: -12px; top: 9px; bottom: 9px; width: 3px; border-radius: 0 3px 3px 0; background: #fff; }
.side-sep { margin: 16px 0 6px; padding: 14px 14px 0; }
.side-sep span { font-size: 11px; letter-spacing: .14em; color: #8f8f98; }
.side-foot { display: grid; gap: 10px; padding: 14px 6px 2px; }
.acct { display: flex; align-items: center; gap: 10px; min-width: 0; }
.acct .av { flex: none; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; font-size: 13px; font-weight: 600; color: #0a0a0a; background: linear-gradient(135deg, #fff, #b8b8c2); }
.acct .meta { min-width: 0; display: grid; gap: 1px; }
.acct .who { font-size: 12.5px; color: #d4d4d8; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acct .role { font-size: 11.5px; color: #8f8f98; }
.side-foot .out { display: inline-flex; align-items: center; gap: 8px; width: 100%; height: 36px; margin: 0; padding: 0 10px; font-size: 13px; color: #a6a6ae; border-radius: 9px; transition: color .2s, background .2s; }
.side-foot .out:hover { color: var(--fg); background: var(--s-2); }
.side-foot .out svg { opacity: .8; }

/* ---- 页头：标题 + 副标题 + 右侧操作 ---- */
.dash-main { padding: 36px 44px 88px; max-width: 1320px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; margin-bottom: 24px; }
.page-head h1 { font-size: var(--t-title); font-weight: 650; letter-spacing: -.035em; line-height: 1.2; }
.page-head p { margin-top: 6px; font-size: var(--t-body); color: #a6a6ae; line-height: 1.7; max-width: 62ch; }
.page-head p code, .callout code { font-family: var(--mono); font-size: .9em; padding: 1px 6px; background: var(--s-2); border-radius: 5px; color: #e8e8ec; }
.page-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.panel > h1:first-child { display: none; }          /* 旧标题由 .page-head 取代 */
.page-head p.one-line { max-width: none; white-space: nowrap; }
@media (max-width: 1100px) { .page-head p.one-line { white-space: normal; max-width: 62ch; } }

/* ---- 卡片 ---- */
.card { margin-top: var(--gap); padding: var(--pad); background: var(--s-1); border: 1px solid var(--b-1); border-radius: var(--r-card); box-shadow: 0 1px 0 rgba(255,255,255,.04) inset; }
.card.flush { padding: 0; overflow: hidden; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.card-head h2 { font-size: var(--t-h2); font-weight: 600; letter-spacing: -.01em; }
.card-head .hint { font-size: var(--t-small); color: #9a9aa2; }
.card.flush .card-head { margin: 0; padding: 16px var(--pad); border-bottom: 1px solid var(--b-1); }

/* ---- 统计卡 ---- */
.stats { gap: var(--gap); margin-top: 0; }
.stat { position: relative; display: grid; gap: 8px; padding: 18px 20px; border-radius: 16px; border: 1px solid var(--b-1); background: var(--s-1); overflow: hidden; }
.stat > span { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #a6a6ae; }
.stat > span svg { opacity: .75; }
.stat strong { margin: 0; font-size: 26px; font-weight: 650; letter-spacing: -.03em; line-height: 1.15; }
.stat strong small { margin-left: 4px; font-size: 13px; font-weight: 500; color: #8f8f98; letter-spacing: 0; }
.stat .sub { font-size: 12px; color: #8f8f98; }
.stat.primary { background: linear-gradient(135deg, rgba(255,255,255,.09), rgba(255,255,255,.025)); border-color: var(--b-2); }
.stat.primary::after { content: ""; position: absolute; right: -50px; top: -50px; width: 150px; height: 150px; border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,.12), transparent 65%); pointer-events: none; }
.stat.primary strong { font-size: 30px; }
.stat .link-btn { justify-self: start; margin-top: 2px; font-size: 12.5px; color: #d4d4d8; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255,255,255,.3); }

/* ---- 表格 ---- */
.tbl table { font-size: 13.5px; }
.tbl thead th { padding: 12px 16px; font-size: 12px; font-weight: 500; color: #9a9aa2; background: var(--s-1); border-bottom: 1px solid var(--b-1); letter-spacing: .01em; }
.tbl tbody td { padding: 14px 16px; color: #dcdce2; border-bottom: 1px solid rgba(255,255,255,.05); }
.tbl tbody tr { transition: background .15s; }
.tbl tbody tr:hover { background: rgba(255,255,255,.03); }
.tbl .mono, .tbl code { font-family: var(--mono); font-size: 12.5px; }
.tbl .dim, .num-zero { color: #8f8f98; }
.tbl th:first-child, .tbl td:first-child { padding-left: var(--pad); }
.tbl th:last-child, .tbl td:last-child { padding-right: var(--pad); }
.tbl .who-cell { display: flex; align-items: center; gap: 10px; min-width: 0; }
.tbl .mini-av { flex: none; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; font-size: 11.5px; font-weight: 600; color: #0a0a0a; background: linear-gradient(135deg, #e8e8ee, #9a9aa6); }
.tbl .you { margin-left: 6px; font-size: 11.5px; color: #8f8f98; }

/* 占比条 */
.share { display: grid; gap: 5px; min-width: 120px; }
.share .bar { height: 5px; border-radius: 3px; background: var(--s-2); overflow: hidden; }
.share .bar i { display: block; height: 100%; border-radius: 3px; background: linear-gradient(90deg, rgba(255,255,255,.55), #fff); }
.share span { font-size: 12px; color: #9a9aa2; font-variant-numeric: tabular-nums; }

/* ---- 徽章：圆点 + 淡底色 ---- */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px 3px 8px; border-radius: var(--r-chip); font-size: 12px; font-weight: 500; line-height: 1.5; border: 0; background: var(--s-2); color: #c4c4cb; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .9; }
.badge.enabled { color: var(--ok); background: var(--ok-bg); }
.badge.disabled { color: #b4b4bc; background: var(--s-2); }
.badge.exhausted, .badge.expired { color: var(--warn); background: var(--warn-bg); }
.badge.admin { margin-left: 0; color: var(--info); background: var(--info-bg); }
.badge.bad { color: var(--bad); background: var(--bad-bg); }
.st-cell { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.st-cell .msg { max-width: 300px; white-space: normal; line-height: 1.45; }
.badge.testing { color: var(--warn); background: var(--warn-bg); }
.badge.testing::before { animation: ts-blink 1s ease-in-out infinite; }
@keyframes ts-blink { 50% { opacity: .2; } }
.mname { display: flex; flex-direction: column; gap: 3px; white-space: normal; }
.badge.tag-add { color: var(--ok); background: var(--ok-bg); }
.badge.tag-sub { color: var(--warn); background: var(--warn-bg); }
.badge.tag-set { color: var(--info); background: var(--info-bg); }
.badge.tag-sys { color: #c4c4cb; background: var(--s-2); }
.badge.tag-bad { color: var(--bad); background: var(--bad-bg); }

/* ---- 按钮体系：主 / 次 / 文字 / 危险 ---- */
.btn.sm { height: 38px; padding: 0 16px; font-size: 13.5px; gap: 6px; }
.btn.sm svg { flex: none; }
.ghost { color: #e4e4e8; border-color: var(--b-2); border-radius: var(--r-ctl); }
.ghost.sm { height: 34px; padding: 0 12px; border-radius: 9px; }
.ghost:hover:not(:disabled) { background: var(--s-2); border-color: rgba(255,255,255,.34); }
.icon-btn { display: inline-grid; place-items: center; width: 34px; height: 34px; padding: 0; color: #b4b4bc; background: none; border: 1px solid transparent; border-radius: 9px; cursor: pointer; transition: color .2s, background .2s, border-color .2s; }
.icon-btn:hover:not(:disabled) { color: var(--fg); background: var(--s-2); border-color: var(--b-1); }
.icon-btn.danger:hover:not(:disabled) { color: var(--bad); background: var(--bad-bg); border-color: transparent; }
.icon-btn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.link { color: #c4c4cb; }
.link:hover:not(:disabled) { color: #fff; }
.acts { align-items: center; gap: 4px; }
.row-actions { display: inline-flex; gap: 4px; justify-content: flex-end; }

/* ---- 提示条 ---- */
.callout { display: flex; align-items: flex-start; gap: 12px; margin-top: var(--gap); padding: 14px 16px; font-size: 13.5px; line-height: 1.7; color: #cfcfd6; background: var(--s-1); border: 1px solid var(--b-1); border-radius: 14px; }
.callout svg { flex: none; margin-top: 3px; opacity: .85; }
.callout.warn { background: var(--warn-bg); border-color: rgba(243,199,122,.22); }
.callout.warn svg { color: var(--warn); opacity: 1; }
.callout b { font-weight: 600; color: #fff; }

/* ---- 工具条 / 筛选 / 搜索 ---- */
.toolbar { margin: 0 0 var(--gap); gap: 12px; }
.search { position: relative; flex: 1 1 260px; min-width: 200px; }
.search svg { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: #8f8f98; pointer-events: none; }
.search input { width: 100%; height: 40px; padding: 0 14px 0 38px; font: inherit; font-size: 14px; color: var(--fg); background: rgba(0,0,0,.28); border: 1px solid var(--b-2); border-radius: var(--r-ctl); outline: none; transition: border-color .2s, box-shadow .2s; }
.search input:hover { border-color: rgba(255,255,255,.28); }
.search input:focus { border-color: rgba(255,255,255,.6); box-shadow: 0 0 0 4px rgba(255,255,255,.06); }
.select-wrap { position: relative; }
.select-wrap select { appearance: none; -webkit-appearance: none; height: 40px; padding: 0 36px 0 14px; font: inherit; font-size: 14px; color: var(--fg); background: rgba(0,0,0,.28); border: 1px solid var(--b-2); border-radius: var(--r-ctl); outline: none; cursor: pointer; transition: border-color .2s; }
.select-wrap select:hover { border-color: rgba(255,255,255,.28); }
.select-wrap select:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.select-wrap::after { content: ""; position: absolute; right: 14px; top: 50%; width: 7px; height: 7px; margin-top: -6px; border-right: 1.5px solid #a6a6ae; border-bottom: 1.5px solid #a6a6ae; transform: rotate(45deg); pointer-events: none; }
.select-wrap option { background: #17171b; color: var(--fg); }
.filter-bar { margin: 0 0 var(--gap); }
.chips { background: var(--s-1); border: 1px solid var(--b-1); }
.chip.on { background: #fff; color: #0a0a0a; }

/* ---- 表尾分页（在卡片内） ---- */
.tfoot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px var(--pad); border-top: 1px solid var(--b-1); font-size: 13px; color: #9a9aa2; background: rgba(255,255,255,.012); }
.tfoot .pg { display: inline-flex; align-items: center; gap: 8px; }
.tfoot .ghost { height: 32px; padding: 0 12px; font-size: 13px; }
.tfoot[hidden] { display: none; }                               /* 旧的独立分页条由 .tfoot 取代 */

/* ---- 空状态 ---- */
.empty-state { display: grid; justify-items: center; gap: 10px; padding: 52px 24px; text-align: center; color: #a6a6ae; }
.empty-state .ic { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--s-2); color: #cfcfd6; border: 1px solid var(--b-1); }
.empty-state strong { font-size: 15px; font-weight: 600; color: #e4e4e8; }
.empty-state p { max-width: 42ch; font-size: 13.5px; line-height: 1.75; margin: 0; }
.empty-state .btn, .empty-state .ghost { margin-top: 6px; }
.skeleton { display: grid; gap: 10px; padding: 20px var(--pad); }
.skeleton i { display: block; height: 14px; border-radius: 7px; background: linear-gradient(90deg, var(--s-1), var(--s-3), var(--s-1)); background-size: 200% 100%; animation: sk 1.4s infinite linear; }
@keyframes sk { from { background-position: 200% 0; } to { background-position: -200% 0; } }

/* ---- 弹窗 ---- */
.modal { background: rgba(0,0,0,.62); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.modal-box { border-radius: 20px; border: 1px solid var(--b-2); background: #101013; box-shadow: 0 30px 80px -20px rgba(0,0,0,.8); }
.modal-box h2 { font-size: 19px; letter-spacing: -.02em; }
.modal-box h3 { font-size: 12.5px; font-weight: 600; letter-spacing: .02em; color: #a6a6ae; text-transform: none; }
.modal-box .head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.modal-box .x { margin: -6px -8px 0 0; }
.kvgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 14px 0 4px; }
.kvgrid > div { padding: 12px 14px; background: var(--s-1); border: 1px solid var(--b-1); border-radius: 12px; }
.kvgrid span { display: block; font-size: 12px; color: #9a9aa2; }
.kvgrid strong { display: block; margin-top: 3px; font-size: 17px; font-weight: 650; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.secret { background: var(--s-2); border-color: var(--b-2); border-radius: 12px; }
.row-btns .btn, .row-btns .ghost { min-width: 92px; }

/* ---- 响应式 ---- */
@media (max-width: 1100px) { .stats { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 900px) {
  .dash-main { padding: 22px 16px 64px; }
  .page-head { margin-bottom: 18px; }
  .page-head h1 { font-size: 24px; }
  .side { padding: 8px 12px 0; }
  .side-nav a[aria-current="page"]::before { display: none; }
  .side-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 4px; }
  .side-foot .out { width: auto; }
  .acct .meta .role { display: none; }
  .kvgrid { grid-template-columns: 1fr; }
  .tfoot { flex-wrap: wrap; }
  .search { flex-basis: 100%; }
  .toolbar .select-wrap, .toolbar .select-wrap select { width: 100%; }
}
@media (max-width: 560px) { .stats { grid-template-columns: 1fr 1fr; } .stat strong { font-size: 22px; } .stat.primary strong { font-size: 24px; } }
@media (prefers-reduced-motion: reduce) { .skeleton i { animation: none; } }

/* 辅助 */
.sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.who-cell { display: flex; align-items: center; gap: 10px; min-width: 0; }
.mini-av { flex: none; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; font-size: 11.5px; font-weight: 600; color: #0a0a0a; background: linear-gradient(135deg, #e8e8ee, #9a9aa6); }
.you { margin-left: 4px; font-size: 12px; color: #8f8f98; }
.kname { font-weight: 550; color: #fff; }
.dim { color: #8f8f98; }
.mono { font-family: var(--mono); font-size: 12.5px; background: none; padding: 0; color: #dcdce2; }
.stats.two { grid-template-columns: repeat(2, 1fr); margin-top: 0; }
.stat strong.small { font-size: 15px; line-height: 1.6; letter-spacing: -.01em; }
.stats.three { margin-top: 0; }
/* 图表 */
.chart { position: relative; }
.chart svg { display: block; max-width: 100%; height: 240px; overflow: visible; }
.chart .grid { stroke: rgba(255,255,255,.06); stroke-width: 1; shape-rendering: crispEdges; }
.chart .axis { stroke: rgba(255,255,255,.22); stroke-width: 1; shape-rendering: crispEdges; }
.chart .ytick { fill: #8f8f98; font-size: 11px; font-variant-numeric: tabular-nums; font-family: var(--font); }
.chart .lbl { fill: #b4b4bc; font-size: 11.5px; font-family: var(--font); }
.chart .lbl.now { fill: #fff; font-weight: 600; }
.chart .lbl2 { fill: #8f8f98; font-size: 10.5px; font-family: var(--font); }
.chart .hit { fill: transparent; }
.chart .bar { fill: rgba(255,255,255,.42); transition: fill .15s; }
.chart .col.now .bar { fill: #fff; }
.chart .zero { fill: rgba(255,255,255,.14); }
.chart .col:hover .bar, .chart .col:focus .bar { fill: #fff; }
.chart .col:hover .hit, .chart .col:focus .hit { fill: rgba(255,255,255,.035); }
.chart .col { outline: none; }
.chart .col:focus-visible .hit { stroke: #fff; stroke-width: 1.5; }
.chart-tip { position: absolute; z-index: 5; display: grid; gap: 2px; min-width: 150px; padding: 10px 12px; transform: translateX(-50%); pointer-events: none; font-size: 12.5px; line-height: 1.55; color: #d4d4d8; background: #17171b; border: 1px solid var(--b-2); border-radius: 11px; box-shadow: 0 12px 30px -8px rgba(0,0,0,.7); }
.chart-tip[hidden] { display: none; }
.chart-tip b { color: #fff; font-weight: 600; }
.chart-tip span { color: #a6a6ae; font-variant-numeric: tabular-nums; }
/* 表格里的占比、密钥名 */
.tbl td .share { margin: 0; }
.tbl th:empty { width: 1%; }
@media (max-width: 900px) { .chart svg { height: 210px; } .stats.two { grid-template-columns: 1fr; } }


/* ---- 评审后修正 ---- */
.chart { min-height: 240px; }                      /* 数据到达前也占位，避免版面跳动 */
.chart:empty::before { content: ""; display: block; height: 240px; border-radius: 12px; background: linear-gradient(90deg, var(--s-1), var(--s-3), var(--s-1)); background-size: 200% 100%; animation: sk 1.4s infinite linear; }
/* 侧栏：指示条贴着选中块，不再悬在视口边缘 */
.side-nav a[aria-current="page"]::before { left: 0; top: 10px; bottom: 10px; width: 3px; border-radius: 3px; }
.side-nav a { padding-left: 16px; }
.side-foot { padding-left: 6px; padding-right: 6px; }
.acct .who { max-width: 150px; }
.acct { padding: 0 4px; }
.side-foot .out { padding-left: 4px; gap: 10px; }
/* 统计卡：每张卡等高、标签/数值/说明三行严格对齐 */
.stat { grid-template-rows: auto auto auto; align-content: start; min-height: 108px; }
.stat > span:first-child { min-height: 20px; }
.stat .sub { min-height: 18px; }
/* 顶栏“账户”降级为描边，避免与页面主按钮抢焦点 */
.menu a.pill.when-in { background: transparent; color: var(--fg); border: 1px solid var(--b-2); }
.menu a.pill.when-in:hover { background: var(--s-2); color: #fff; box-shadow: none; transform: none; }
/* 标注可点击的内联链接、深色滚动条 */
.callout a:not(.btn), .page-head p a:not(.btn), .muted a:not(.btn) { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255,255,255,.4); color: #fff; }
html { scrollbar-color: rgba(255,255,255,.22) transparent; scrollbar-width: thin; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,.18); border-radius: 8px; border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,.3); }
::-webkit-scrollbar-track { background: transparent; }
.dash { min-height: calc(100vh - 64px); }
.side { height: calc(100vh - 64px); }


/* ---- 第二轮评审修正 ---- */
.btn-solid, .btn-solid:hover, .btn-solid svg { color: #0a0a0a; }          /* 主按钮文字始终是深色，任何上下文都不被覆盖 */
.page-actions .btn { text-decoration: none; }
/* 统计卡：数值行固定行高，所有卡的说明严格同一基线 */
.stat strong { line-height: 34px; height: 34px; }
.stat.primary strong { font-size: 30px; }
.stat > span:first-child { height: 20px; }
/* 光晕：改为明确的右上角渐变，不再像污点 */
.stat.primary::after { right: -30px; top: -30px; width: 120px; height: 120px; background: radial-gradient(circle at 30% 70%, rgba(255,255,255,.10), transparent 70%); }
/* 侧栏：指示条内缩，头像降亮度，邮箱完整可见（换行显示更长的域名） */
.side-nav a[aria-current="page"]::before { left: 5px; top: 11px; bottom: 11px; }
.side-nav a { padding-left: 18px; }
.acct .av { background: linear-gradient(135deg, #cfcfd8, #8d8d99); color: #111; }
.acct .who { max-width: none; white-space: normal; word-break: break-all; line-height: 1.35; }
.acct { align-items: flex-start; }
.acct .meta { gap: 2px; }
.side-foot .out { padding-left: 6px; }
.side-nav a svg, .side-foot .out svg { margin-left: 0; }
/* 图表：纵轴上限取“恰好够用”的整数；零值更明显；今天保留星期 */
.chart .zero { fill: rgba(255,255,255,.28); }
.chart .lbl2.now { fill: #fff; }
.chart .peak-dot { fill: #fff; }
/* 模型用量：占比百分比放到条的右侧，行更紧凑；名称略大 */
.share { grid-template-columns: 1fr auto; align-items: center; gap: 10px; min-width: 150px; }
.share .bar i { background: #fff; opacity: .85; }
.tbl .mono, .mono { font-size: 13px; }
/* 次要文字提亮到 AA */
.stat .sub, .card-head .hint, .lbl2, .chart .ytick, .side-sep span, .acct .role { color: #9c9ca5; }
.chart .ytick, .chart .lbl2 { fill: #9c9ca5; }
.chart .val { fill: #e4e4e8; font-size: 11.5px; font-weight: 600; font-variant-numeric: tabular-nums; font-family: var(--font); }


/* ---- 第三轮：版面高度与细节 ---- */
:root { --nav-h: 65px; }                                   /* 64px + 1px 下边框 */
.dash { min-height: calc(100vh - var(--nav-h)); min-height: calc(100dvh - var(--nav-h)); }
.side { top: var(--nav-h); height: calc(100vh - var(--nav-h)); height: calc(100dvh - var(--nav-h)); overflow-y: auto; }
.dash-main { padding-bottom: 96px; }
/* 侧栏邮箱：单行省略，完整内容放在 title；不再出现孤字 */
.acct .who { white-space: nowrap; word-break: normal; overflow: hidden; text-overflow: ellipsis; max-width: 148px; }
/* 图标按钮更醒目：默认就有淡边框和可见热区 */
.icon-btn { width: 36px; height: 36px; color: #c4c4cb; border-color: var(--b-1); background: var(--s-1); }
.icon-btn svg { width: 17px; height: 17px; }
.row-actions { gap: 6px; }
/* 次要信息比主信息更弱：日期/相对时间/费用 */
.tbl td.dim, .tbl td .dim { color: #9c9ca5; }
.tbl tbody td { color: #dcdce2; }
.tbl td:nth-child(n+4) { color: #c4c4cb; }
/* 警示条图标更大 */
.callout svg { width: 18px; height: 18px; margin-top: 2px; }
.card-head .hint { font-variant-numeric: tabular-nums; }
.card-head .hint[data-keycount] { color: #c4c4cb; font-weight: 500; }


/* ---- 第四轮：对齐与可访问性 ---- */
.sr-th { font-size: 0; color: transparent; }                  /* 表头视觉上留空，但读屏器能读到“操作” */
.you { color: #b4b4bc; font-size: 12.5px; }
/* 顶栏与控制台使用同一套横向边距：logo 对齐侧栏图标列，右侧按钮对齐内容区右缘 */
body:has(.dash) .nav .wrap { width: 100%; max-width: none; padding: 0 24px; }
body:has(.dash) .nav-inner { padding: 0; }
.dash-main { padding-right: 24px; }
@media (max-width: 900px) { body:has(.dash) .nav .wrap { padding: 0 20px; } .dash-main { padding-right: 16px; } }
/* 日期输入：固定使用中文区域设置的外观；原生控件无法完全本地化，故加一行格式提示 */
.date input { min-width: 140px; }
.dates::after { content: ""; }


/* ---- 移动端修正：侧栏在手机上是顶部横条，高度由内容决定（之前沿用了桌面的整屏高度） ---- */
@media (max-width: 900px) {
  .side { position: relative; top: auto; height: auto !important; min-height: 0; overflow: visible; }
  .dash { min-height: 0; }
  .side-nav { overflow-x: auto; }
  /* 左右两侧都做渐隐，提示可横向滑动 */
  .side::before { content: ""; position: absolute; top: 8px; left: 0; width: 20px; height: 40px; z-index: 2; pointer-events: none; background: linear-gradient(270deg, rgba(8,8,10,0), #08080a 85%); opacity: 0; transition: opacity .2s; }
  .side.scrolled::before { opacity: 1; }
  .acct .av { display: none; }
}
/* 头像字母：深色字 + 浅色渐变底，对比度充足；统一文字与背景 */
.mini-av { color: #111; background: linear-gradient(135deg, #f1f1f5, #c3c3cf); }
.acct .av { color: #111; }


/* ---- 弹窗收尾 ---- */
.modal-box .x { margin: -8px -10px 0 0; }
.modal-box select { height: 44px; padding: 0 34px 0 14px; color: var(--fg); background: rgba(0,0,0,.28); border: 1px solid var(--b-2); border-radius: var(--r-ctl); appearance: none; -webkit-appearance: none; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, #a6a6ae 50%), linear-gradient(135deg, #a6a6ae 50%, transparent 50%); background-position: calc(100% - 17px) 19px, calc(100% - 12px) 19px; background-size: 5px 5px; background-repeat: no-repeat; }
.modal-box select:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.modal-box input { background: rgba(0,0,0,.28); border-color: var(--b-2); border-radius: var(--r-ctl); }
.modal-box .btn.sm, .modal-box .ghost { border-radius: var(--r-ctl); }
.modal-box .btn-line { color: #e4e4e8; background: transparent; border: 1px solid var(--b-2); }
.modal-box .btn-line:hover { background: var(--s-2); border-color: rgba(255,255,255,.34); }
.modal-box form > .btn { margin-top: 10px; }
.modal-box form + form, .modal-box .ugroup { padding-top: 14px; margin-top: 16px; }
.modal-box .row-btns { margin-top: 16px; }
.modal-box .muted.small, .modal-box h3 { color: #a6a6ae; }
.ghost.danger-soft:hover:not(:disabled) { color: var(--bad); border-color: rgba(255,138,138,.45); background: var(--bad-bg); }


/* ---- 新用户引导 ---- */
.inline-link { margin-left: 4px; color: #fff; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255,255,255,.45); }
.inline-link[hidden] { display: none; }
.card.compact .chart { min-height: 0; }
.chart:has(.chart-empty)::before { display: none; }
.chart-empty { padding: 6px 0 2px; font-size: 13.5px; color: #a6a6ae; }
.chart:has(.chart-empty) { min-height: 0; }


/* ---- 宽屏居中：内容区在侧栏右侧的剩余空间里水平居中 ----
   之前只设了 max-width 没设自动外边距，屏幕 > 1556px 时内容贴着侧栏、右侧空出一大块。 */
.dash-main { width: 100%; max-width: 1240px; margin-inline: auto; }
@media (max-width: 900px) { .dash-main { max-width: none; margin-inline: 0; } }

/* 左右内边距相同，宽屏居中时两侧空白完全对称 */
.dash-main { padding-left: 40px; padding-right: 40px; }
@media (max-width: 900px) { .dash-main { padding-left: 16px; padding-right: 16px; } }


/* 内容区铺满侧栏右侧的全部宽度，不设最大宽度，不居中 */
.dash-main { max-width: none; width: auto; margin-inline: 0; padding-left: 40px; padding-right: 40px; }
@media (max-width: 900px) { .dash-main { padding-left: 16px; padding-right: 16px; } }


/* ---- 铺满后的版面微调：不限制整体宽度，只让局部组件不被拉得离谱 ---- */
/* 概览：图表与模型用量并排，各占一半以上；窄屏改为上下排 */
.split-2 { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: var(--gap); margin-top: var(--gap); align-items: stretch; }
.split-2 > .card { margin-top: 0; }
@media (max-width: 1180px) { .split-2 { grid-template-columns: minmax(0, 1fr); } .split-2 > .card { margin-top: 0; } }
/* 搜索框、接口地址行：固定一个合理宽度，靠左，旁边的控件紧挨着，不被拉成整条 */
.toolbar { justify-content: flex-start; }
.search { flex: 0 1 420px; min-width: 220px; }
.toolbar .select-wrap { flex: none; }
.inline-url { display: inline-flex; width: auto; max-width: 100%; }
.inline-url code { flex: 0 1 auto; }
/* 统计卡：宽屏下数值放大一档，利用多出的空间 */
@media (min-width: 1700px) { .stat strong { font-size: 30px; } .stat.primary strong { font-size: 34px; } .stat { padding: 20px 24px; } }
/* 空状态在半宽卡片里不再显得空旷 */
.split-2 .empty-state { padding: 44px 24px; }
.split-2 .chart-empty { padding: 36px 0; text-align: center; }
.split-2 .card.compact .chart { min-height: 0; }


/* 概览并排：表格需要更多宽度，比例改为 图表 5 : 表格 7；占比列收窄，避免出现横向滚动 */
.split-2 { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
@media (max-width: 1500px) { .split-2 { grid-template-columns: minmax(0, 1fr); } }
.split-2 .share { min-width: 0; gap: 8px; }
.split-2 .tbl th, .split-2 .tbl td { padding-left: 12px; padding-right: 12px; }
.split-2 .tbl th:first-child, .split-2 .tbl td:first-child { padding-left: var(--pad); }
.split-2 .tbl th:last-child, .split-2 .tbl td:last-child { padding-right: var(--pad); }
.split-2 .tbl .mono { white-space: nowrap; }


/* 占比条：占据该列全部宽度，条长随百分比变化才看得出差别 */
.tbl td:last-child .share, .tbl th:last-child + .x { width: 100%; }
.share { width: 100%; min-width: 120px; grid-template-columns: minmax(60px, 1fr) 40px; }
.share .bar { height: 7px; width: 100%; }
.share span { text-align: right; }
.tbl table { width: 100%; table-layout: auto; }
.split-2 .tbl td:last-child { width: 32%; }
/* 并排时右侧卡片内容撑满高度，不留大块空白 */
.split-2 > .card { display: flex; flex-direction: column; }
.split-2 > .card .tbl, .split-2 > .card .chart { flex: 1 1 auto; }


/* ---- 统一纵向节奏：任何两个相邻区块之间都是 var(--gap)；统计卡与其后的工具条同样如此 ---- */
/* 统计卡与下一区块之间可能夹一条行内错误提示（.inline-err，空时 display:none 但仍是兄弟节点），
   相邻选择器会被它打断，导致「用户」面板的搜索栏紧贴统计卡；两种结构都要覆盖。 */
.stats + .toolbar, .stats + .filter-bar, .stats + .card, .stats + .split-2, .stats + .callout,
.stats + .inline-err + .toolbar, .stats + .inline-err + .filter-bar, .stats + .inline-err + .card,
.stats + .inline-err + .split-2, .stats + .inline-err + .callout { margin-top: var(--gap); }
.stats + .inline-err { margin-top: var(--gap); }
.toolbar { margin-top: 0; }

/* 数据页筛选行：与上方三张统计卡严格同一三列栅格；搜索占第一列，两个下拉各占一列，宽度一致 */
.toolbar.filters-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); align-items: center; }
.toolbar.filters-2 { display: grid; grid-template-columns: minmax(0, 1fr) 220px; gap: var(--gap); align-items: center; }
.toolbar.filters-2 .search { flex: none; min-width: 0; width: 100%; }
.toolbar.filters-2 .select-wrap, .toolbar.filters-2 .select-wrap select { width: 100%; }
.toolbar.filters-3 .search { flex: none; min-width: 0; width: 100%; }
.toolbar.filters-3 .select-wrap, .toolbar.filters-3 .select-wrap select { width: 100%; }
@media (max-width: 900px) { .toolbar.filters-3, .toolbar.filters-2 { grid-template-columns: minmax(0, 1fr); } }

/* 三张统计卡的内部节奏一致：Tokens 卡数值较小，也固定同样的行高，说明文字保持同一基线 */
.stat strong.small { height: 34px; display: flex; align-items: center; font-size: 17px; line-height: 1.2; letter-spacing: -.01em; white-space: nowrap; }
@media (max-width: 1250px) { .stat strong.small { font-size: 15px; } }


/* ---- 表格列宽：数字列有统一的最小宽度，文字列（时间/用户/模型）按内容收缩，
   多出来的宽度平均分给各列，不再出现“数字列挤成一团、两侧留大片空白” ---- */
.tbl table { table-layout: auto; width: 100%; }
.tbl th.r, .tbl td.r { min-width: 104px; }                 /* 数字/金额列 */
.tbl td.r, .tbl th.r { padding-left: 20px; padding-right: 20px; }
.tbl th:first-child, .tbl td:first-child { white-space: nowrap; }
/* 明细类表格（调用记录、数据）：文字列不再吞掉全部剩余宽度 */
.tbl.wide th:not(.r), .tbl.wide td:not(.r) { width: auto; }
.tbl.wide table { min-width: 760px; }


/* 回归修复：窄桌面(<1500px)不要强制数字列/整表最小宽度，否则表格被撑出横向滚动条 */
@media (max-width: 1499px) {
  .tbl th.r, .tbl td.r { min-width: 0; padding-left: 14px; padding-right: 14px; }
  .tbl.wide table { min-width: 0; }
  .tbl th, .tbl td { padding-left: 14px; padding-right: 14px; }
  .tbl th:first-child, .tbl td:first-child { padding-left: var(--pad); }
  .tbl th:last-child, .tbl td:last-child { padding-right: var(--pad); }
}

/* 窄桌面：文字列(时间/用户/模型)允许收缩换行，不再要求一行放下，避免整表被撑出滚动条 */
@media (max-width: 1499px) {
  .tbl.wide td:not(.r) { white-space: normal; word-break: break-word; }
  .tbl.wide td .mono { white-space: normal; word-break: break-all; }
  .tbl.wide td:first-child { white-space: nowrap; }
}


/* ---- 数据/用户等页：页头与第一个区块的间距与其余区块一致（统一 16px），不再单独放大 ---- */
.page-head { margin-bottom: var(--gap); }
.mini-av.gone { color: #b4b4bc; background: var(--s-2); border: 1px dashed var(--b-2); }
/* 只有“主指标”卡带光晕；其余卡保持素色，避免权重不一致的错觉（数据页首卡仍是主指标，沿用） */

/* 1100px 左右的窄桌面：用户页允许“用户”列换行、其余列压缩，不出现横向滚动 */
@media (max-width: 1280px) {
  [data-ulist] td, [data-ulist] th { padding-left: 10px; padding-right: 10px; }
  [data-ulist] .who-cell > span:last-child { word-break: break-all; }
  [data-ulist] td:first-child { white-space: normal; }
}


/* 用户页第一列(邮箱)在窄桌面可以换行；覆盖前面通用的 first-child nowrap（选择器更具体） */
@media (max-width: 1280px) {
  .tbl[data-ulist] th:first-child, .tbl[data-ulist] td:first-child,
  [data-ulist] .tbl td:first-child, [data-ulist] td:first-child { white-space: normal !important; }
  [data-ulist] .who-cell { flex-wrap: nowrap; }
  [data-ulist] .who-cell > span:last-child { overflow-wrap: anywhere; min-width: 0; }
}

/* ---- 个人钱包页打磨 ---- */
.tp-bullets { display: grid; gap: 9px; margin-top: 16px; }
.tp-bullets > span { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; line-height: 1.6; color: #c9c9d2; }
.tp-bullets svg { flex: none; margin-top: 3px; opacity: .7; }
.toast { position: fixed; left: 50%; bottom: 30px; z-index: 70; max-width: min(92vw, 480px); padding: 13px 20px; border-radius: 14px; font-size: 13.5px; line-height: 1.6; color: var(--fg); background: rgba(26,26,30,.94); border: 1px solid rgba(255,255,255,.14); box-shadow: 0 14px 44px rgba(0,0,0,.55); opacity: 0; transform: translate(-50%, 8px); transition: opacity .28s, transform .28s; pointer-events: none; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.ok { border-color: rgba(142,224,168,.45); }
.toast.err { border-color: rgba(255,138,138,.45); }
.toast.warn { border-color: rgba(243,199,122,.45); }

/* =====================================================================
   中性铂金打磨层（accent = 近白，无彩色相）
   ===================================================================== */
:root { --accent-deep: #d8d8e2; --accent-line: rgba(255,255,255,.34); }

/* 主 CTA：品牌色实心；导航登录降级为描边，消除双白底竞争 */
.btn-solid { background: var(--accent); color: var(--accent-ink); box-shadow: 0 1px 0 rgba(255,255,255,.5) inset; }
.btn-solid:hover { transform: translateY(-1px); box-shadow: 0 10px 34px var(--accent-glow); }
.btn-solid:active { transform: translateY(0); }
.menu a.pill { background: transparent; color: var(--fg); border: 1px solid rgba(255,255,255,.28); font-weight: 450; }
.menu a.pill:hover { color: #0a0a0a; background: var(--fg); border-color: var(--fg); box-shadow: 0 6px 24px rgba(255,255,255,.14); transform: translateY(-1px); }
.menu a.pill.when-in { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.menu a.pill.when-in:hover { background: var(--accent-2); border-color: var(--accent-2); box-shadow: 0 6px 24px var(--accent-glow); }

/* Hero：纯色标题更耐看；文案与球体同基线（标题渐变已在基础规则里去掉） */
.hero-bg { background: radial-gradient(58% 66% at 78% 44%, rgba(255,255,255,.07), transparent 62%), radial-gradient(50% 55% at 80% 48%, rgba(255,255,255,.05), transparent 65%); }
.halo { background: radial-gradient(circle, rgba(255,255,255,.10), transparent 62%); }
.ring { border-color: rgba(255,255,255,.10); }

/* 焦点环：深色底上真正可见 */
:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 3px; }
.auth-card input:focus, .modal-box input:focus, .sel.grow input:focus, .date input:focus { border-color: var(--accent-line); background: rgba(255,255,255,.045); box-shadow: 0 0 0 3px rgba(255,255,255,.10); }
.chip:focus-visible, .btn:focus-visible, .menu a:focus-visible, a:focus-visible { outline-color: var(--accent-2); }

/* 圆角统一：控件 11px */
.auth-card input, .modal-box input, .sel.grow input, .date input { border-radius: 11px; }

/* 对比度：正文次要色整体提一档（AA） */
.doc p, .doc li { color: #cfcfd6; }
.auth-card .sub, .auth-card label { color: #a7a7b0; }
.auth-card input::placeholder { color: #8a8a93; }

/* 链接与行 hover 用品牌色 */
.doc a { text-decoration-color: var(--accent-line); color: #e9e9f0; }
.doc a:hover { text-decoration-color: var(--accent-2); color: #fff; }
.auth-card .alt a { color: #e9e9f0; text-decoration-color: var(--accent-line); }

/* 控制台侧栏/选中态引入品牌色（浅色点缀，不推翻灰阶体系） */
.side-nav a[aria-current="page"] { background: var(--accent-soft); color: var(--fg); }
.side-nav a[aria-current="page"]::before { content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 2.5px; border-radius: 2px; background: var(--accent); }
.side-nav a { position: relative; }
.chip.on { background: var(--accent); color: #0a0a0c; font-weight: 500; }
.toc a.on { color: #fff; border-left-color: var(--accent); }
.toc a.on { background: rgba(255,255,255,.06); border-radius: 0 8px 8px 0; }

/* docs 表格内模型名去掉 code 底块，只留等宽 */
.tbl code, .docs-body td code { background: none; border: 0; padding: 0; color: #e8e8ec; }

/* 密码可见切换：内嵌眼睛（输入框右侧绝对定位） */
.pw-wrap { position: relative; margin-top: 7px; }
.pw-wrap input { margin-top: 0; padding-right: 46px; }
.pw-wrap .eye { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; display: grid; place-items: center; padding: 0; background: none; border: 0; border-radius: 9px; color: var(--dim); cursor: pointer; transition: color .15s, background .15s; }
.pw-wrap .eye:hover { color: var(--fg); background: rgba(255,255,255,.06); }
.pw-wrap .eye svg { width: 19px; height: 19px; }
.pw-wrap .eye .i-off { display: none; }
.pw-wrap .eye[aria-pressed="true"] .i-on { display: none; }
.pw-wrap .eye[aria-pressed="true"] .i-off { display: block; }
.auth-card .inline { margin-top: 0; }

.eyebrow { font-size: 12.5px; font-weight: 600; letter-spacing: .16em; color: var(--accent-2); margin-bottom: 18px; }
.label-row { display: flex; align-items: baseline; justify-content: space-between; }
.mini { font-size: 12.5px; color: var(--dim); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255,255,255,.2); }
.mini:hover { color: #fff; text-decoration-color: var(--accent-line); }

/* --- 二轮打磨(评审反馈) --- */
.eyebrow { letter-spacing: .09em; }
.hero .ring { border-color: rgba(255,255,255,.10); }

.lang-sw { font-size: 13px; color: var(--muted); padding: 6px 10px; border: 1px solid transparent; border-radius: 8px; transition: color .15s, border-color .15s; }
.lang-sw:hover { color: var(--fg); border-color: var(--line); }


ol.steps { counter-reset: qs; }
ol.steps > li { color: #cfcfd6; }
ol.steps > li::marker { color: var(--accent-2); font-weight: 600; font-family: var(--mono); }


.menu .sep { background: rgba(255,255,255,.26); }






/* =====================================================================
   首页 Hero v2：克制构图 / 点云舞台 / 移动端首屏
   ===================================================================== */
.hero { isolation: isolate; }
.hero-bg {
  background:
    radial-gradient(52% 72% at 77% 43%, rgba(255,255,255,.085), transparent 64%),
    radial-gradient(42% 48% at 10% 12%, rgba(255,255,255,.025), transparent 72%);
}
.hero-bg::after {
  background-size: 72px 72px;
  opacity: .62;
  -webkit-mask-image: radial-gradient(64% 78% at 75% 46%, #000 0%, transparent 76%);
          mask-image: radial-gradient(64% 78% at 75% 46%, #000 0%, transparent 76%);
}
.hero-text { position: relative; z-index: 2; }
.hero-text .eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 6px 13px; margin-bottom: 28px;
  border: 1px solid rgba(255,255,255,.13); border-radius: 999px;
  background: rgba(255,255,255,.018);
  color: #e2e2e8; font-size: 12.5px; font-weight: 500; letter-spacing: .07em;
  box-shadow: 0 1px 0 rgba(255,255,255,.035) inset;
}
.hero-text .eyebrow::before {
  content: ""; width: 5px; height: 5px; border-radius: 50%;
  background: #e8e8ed; box-shadow: 0 0 10px rgba(255,255,255,.35);
}
.hero-text > p:not(.eyebrow):not(.hero-meta) {
  max-width: 34em; margin-top: 28px; color: #c6c6ce;
  font-size: 19px; line-height: 1.8; letter-spacing: .005em;
}
.hero-text .cta { margin-top: 34px; gap: 10px; }
.hero .btn {
  height: 48px; padding: 0 26px; border-radius: 10px;
  font-size: 16px; font-weight: 500; letter-spacing: .01em;
}
.hero .btn-solid { box-shadow: 0 1px 0 rgba(255,255,255,.6) inset; }
.hero .btn-solid:hover { box-shadow: 0 10px 32px rgba(255,255,255,.13); }
.hero .btn-line {
  border-color: rgba(255,255,255,.26); background: rgba(255,255,255,.025); color: #e2e2e8;
}
.hero .btn-line:hover { border-color: rgba(255,255,255,.34); background: rgba(255,255,255,.055); color: #fff; }
.hero-text .hero-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  margin-top: 22px; font-family: var(--mono); font-size: 12px;
  line-height: 1.7; letter-spacing: .025em; color: #a6a6af;
}
.hero-meta::before { content: ""; flex: 0 0 20px; width: 20px; height: 1px; background: rgba(255,255,255,.24); }
.hero-text .hero-meta span { display: inline; white-space: nowrap; }

/* 点云不需要卡片：环形刻度与柔光提供空间层次 */
.hero-visual { isolation: isolate; }
.hero-visual::before,
.hero-visual::after {
  content: ""; position: absolute; border-radius: 50%; pointer-events: none;
}
.hero-visual::before { inset: 7%; border: 1px solid rgba(255,255,255,.045); }
.hero-visual::after {
  inset: 19%; border: 1px dashed rgba(255,255,255,.035);
  transform: rotate(18deg);
}
.hero-visual canvas { z-index: 2; filter: contrast(1.08); }
.halo {
  inset: 5%; z-index: 0; filter: blur(38px);
  background: radial-gradient(circle at 45% 42%, rgba(255,255,255,.105), rgba(255,255,255,.025) 43%, transparent 68%);
}
.hero .ring.r1 { inset: 1%; border-color: rgba(255,255,255,.075); }
.hero .ring.r1::before,
.hero .ring.r1::after {
  content: ""; position: absolute; left: 50%; width: 1px; height: 9px;
  background: rgba(255,255,255,.2); transform: translateX(-50%);
}
.hero .ring.r1::before { top: -5px; }
.hero .ring.r1::after { bottom: -5px; }

@media (min-width: 901px) {
  .hero-inner {
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 12px;
    min-height: calc(100vh - 65px); min-height: calc(100svh - 65px);
    padding: 44px 0 64px;
  }
  .hero-text { padding-bottom: 8px; }
  .hero-text h1 {
    font-size: clamp(72px, 7.4vw, 112px); line-height: .94; letter-spacing: -.065em;
  }
  .hero-visual { width: min(100%, 680px); transform: translateX(2%); }
}

/* 入场只改变位移，不用透明度隐藏首屏；低性能/后台标签页也始终可读 */
@media (prefers-reduced-motion: no-preference) {
  .hero-text > * { transform: translateY(12px); animation: hero-in .8s cubic-bezier(.2,.7,.2,1) forwards; }
  .hero-text .eyebrow { animation-delay: .04s; }
  .hero-text h1 { animation-delay: .12s; }
  .hero-text > p:not(.hero-meta) { animation-delay: .22s; }
  .hero-text .cta { animation-delay: .32s; }
  .hero-meta { animation-delay: .42s; }
}
@keyframes hero-in { to { transform: none; } }

@media (max-width: 900px) {
  .hero { min-height: calc(100vh - 65px); min-height: calc(100svh - 65px); display: flex; }
  .hero-inner {
    grid-template-columns: minmax(0, 1fr); align-content: start; gap: 0;
    min-height: calc(100vh - 65px); min-height: calc(100svh - 65px);
    padding: 46px 0 32px;
  }
  .hero-text { max-width: 580px; }
  .hero-text .eyebrow { margin-bottom: 23px; }
  .hero-text h1 { font-size: clamp(58px, 12vw, 88px); line-height: .96; }
  .hero-text > p:not(.eyebrow):not(.hero-meta) { margin-top: 24px; font-size: 17px; line-height: 1.8; }
  .hero-text .cta { margin-top: 30px; }
  .hero-text .hero-meta { margin-top: 19px; }
  .hero-visual {
    position: absolute; z-index: 0; right: -24%; bottom: -8%;
    width: min(94vw, 520px); margin: 0; opacity: .48; pointer-events: none;
    -webkit-mask-image: linear-gradient(to top, #000 48%, rgba(0,0,0,.72) 72%, transparent 100%);
            mask-image: linear-gradient(to top, #000 48%, rgba(0,0,0,.72) 72%, transparent 100%);
  }
  .hero-bg::after { opacity: .4; -webkit-mask-image: linear-gradient(to top, #000, transparent 72%); mask-image: linear-gradient(to top, #000, transparent 72%); }
}

@media (max-width: 560px) {
  .hero-inner { padding-top: 40px; }
  .hero-text h1 { font-size: clamp(54px, 16vw, 72px); letter-spacing: -.06em; }
  .hero-text .eyebrow { padding: 6px 12px; font-size: 11.5px; }
  .hero .cta .btn { flex: 1 1 140px; }
  .hero-text .hero-meta { gap: 7px; font-size: 11.5px; }
  .hero-meta::before { flex-basis: 12px; width: 12px; }
  .hero-visual { right: -38%; bottom: -5%; width: 116vw; }
}
@media (max-width: 900px) and (max-height: 700px) {
  .hero-inner { padding-top: 30px; }
  .hero-text .eyebrow { margin-bottom: 18px; }
  .hero-text > p:not(.eyebrow):not(.hero-meta) { margin-top: 20px; }
  .hero-text .cta { margin-top: 24px; }
  .hero-visual { opacity: .3; }
}

/* =====================================================================
   登录/注册：与首页 Hero 同一语言（去金属渐变 + 入场节奏 + 微交互）
   ===================================================================== */
.auth-brand li { transition: color .2s; }
.auth-brand li:hover { color: #e6e6ec; }
.auth-brand li:hover svg { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.22); }
.auth-brand li svg { transition: background .2s, border-color .2s; }
@media (prefers-reduced-motion: no-preference) {
  .auth-grid > * { transform: translateY(14px); animation: hero-in .9s cubic-bezier(.2,.7,.2,1) forwards; }
  .auth-grid > .auth-brand { animation-delay: .05s; }
  .auth-grid > .auth-card { animation-delay: .18s; }
}
.auth-card .ghost:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 2px; }


/* =====================================================================
   公开页面 v2：首页 Hero / 文档 / 条款 / 使用政策
   目标：首屏不再多出 41px 滚动；文档与法律页两栏居中，右侧不留死白。
   ===================================================================== */

/* ---- 顶栏：当前页有明确标记（不只是颜色变白） ---- */
.menu a.active { position: relative; color: var(--fg); }
.menu a.active::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 2px;
  height: 1px; border-radius: 1px;
  background: linear-gradient(90deg, rgba(255,255,255,0), rgba(255,255,255,.75), rgba(255,255,255,0));
}
.menu a.pill.active::after { display: none; }

/* ---- 通知栏：更紧凑、文字更清楚 ---- */
.notice-in { padding: 9px 0; }
.notice-text { font-size: 12.5px; line-height: 1.55; color: rgba(244, 244, 245, .82); letter-spacing: .005em; }
.notice-text::before { opacity: .5; }

/* ---- 首页：首屏高度扣掉通知栏，整屏刚好一屏 ---- */
@media (min-width: 901px) {
  .hero,
  html.has-notice .hero { min-height: 0; }
  /* 首屏仍占满一屏，但底部留一点空隙：让下方「可用模型」的标题露出来，暗示可以往下看 */
  .hero-inner {
    min-height: calc(100vh - 65px - var(--notice-h, 0px) - 104px);
    min-height: calc(100svh - 65px - var(--notice-h, 0px) - 104px);
    padding: 28px 0 40px;
    grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
    gap: 8px;
  }
  .hero-text .eyebrow { margin-bottom: 26px; }
  .hero-text h1 { font-size: clamp(68px, 7vw, 108px); line-height: .95; letter-spacing: -.062em; }
  .hero-text > p:not(.eyebrow):not(.hero-meta) { max-width: 30em; margin-top: 24px; font-size: 18.5px; line-height: 1.78; color: #b6b6be; }
  .hero-text .cta { margin-top: 32px; }
  .hero-text .hero-meta { margin-top: 20px; }
  /* 视口矮时按高度收缩视觉球，避免把页脚顶出首屏 */
  .hero-visual { width: min(100%, 620px, calc(100svh - 220px - var(--notice-h, 0px))); }
}

/* 首页 Hero 细节：标题纯色（渐变已在上层取消，见「中性铂金打磨层」）、按钮主次更清楚、底部与页脚衔接 */
.hero-text h1 { text-shadow: 0 1px 0 rgba(255, 255, 255, .04); }
.hero .btn { border-radius: 12px; font-weight: 500; }
.hero .btn-solid { box-shadow: inset 0 1px 0 rgba(255,255,255,.7), 0 8px 26px -12px rgba(255,255,255,.5); }
.hero .btn-solid:hover { transform: none; background: #fff; box-shadow: inset 0 1px 0 #fff, 0 10px 30px -10px rgba(255,255,255,.45); }
.hero .btn-line { border-color: rgba(255,255,255,.2); background: rgba(255,255,255,.02); }
.hero .btn-line:hover { transform: none; border-color: rgba(255,255,255,.34); background: rgba(255,255,255,.06); }
.hero-meta { color: #9e9ea8; }
.hero-meta::before { background: rgba(255,255,255,.2); }
.hero-visual .halo { filter: blur(42px); }

/* ---- 页脚：一条实线 + 更舒展的节奏 ---- */
.site-foot { margin-top: 0; border-top-color: rgba(255,255,255,.1); background: rgba(255,255,255,.012); }
.site-foot-inner { padding: 24px 0 32px; font-size: 12.5px; color: #8f8f98; }
.site-foot nav { gap: 4px 22px; }
.site-foot a { color: #a2a2ab; }

/* ---- 文档页：两栏居中，正文列不再贴左留大白 ---- */
.docs {
  grid-template-columns: 190px minmax(0, 860px);
  justify-content: center;
  gap: 60px;
  padding: 56px 0 120px;
}
.docs-body { max-width: none; }
.toc { top: 92px; }
.toc-title { margin: 0 0 14px 15px; font-size: 9.5px; letter-spacing: .16em; color: #7f7f89; }
.toc nav { gap: 1px; border-left-color: rgba(255,255,255,.09); }
.toc a {
  padding: 8px 15px; font-size: 13px; color: #96969f; border-radius: 0 8px 8px 0;
}
.toc a:hover { color: #e8e8ec; background: rgba(255,255,255,.03); }
.toc a.on {
  color: #fff; border-left-color: rgba(255,255,255,.85);
  background: linear-gradient(90deg, rgba(255,255,255,.06), rgba(255,255,255,0));
  font-weight: 500;
}

/* ---- 文档搜索：输入框在目录顶部，结果就地替换目录 ---- */
.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.toc-search { position: relative; margin: 0 0 12px; }
.toc-search input {
  width: 100%; height: 34px; padding: 0 30px 0 30px;
  font: inherit; font-size: 12.5px; color: var(--fg);
  background: rgba(255,255,255,.035) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='13' height='13' viewBox='0 0 24 24' fill='none' stroke='%238a8a93' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-4.2-4.2'/%3E%3C/svg%3E") no-repeat 10px center;
  border: 1px solid rgba(255,255,255,.1); border-radius: 8px; outline: none;
  transition: border-color .2s, background-color .2s;
}
.toc-search input::placeholder { color: #8a8a93; }
.toc-search input:focus { border-color: rgba(255,255,255,.3); background-color: rgba(255,255,255,.06); }
.toc-search input::-webkit-search-cancel-button { display: none; }
.toc-search kbd {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  padding: 1px 5px; border: 1px solid rgba(255,255,255,.12); border-radius: 4px;
  font-family: var(--mono); font-size: 10px; line-height: 1.6; color: #8a8a93;
  pointer-events: none;
}
.toc-search input:focus + kbd, .toc-search input:not(:placeholder-shown) + kbd { opacity: 0; }

.toc-results { display: flex; flex-direction: column; gap: 2px; max-height: min(60vh, 460px); overflow-y: auto; }
.toc-results[hidden] { display: none; }
.toc.searching nav { display: none; }
.toc-results .res {
  display: block; padding: 8px 12px; border-radius: 8px; border-left: 2px solid transparent;
  text-decoration: none; transition: background .15s;
}
.toc-results .res:hover, .toc-results .res.on { background: rgba(255,255,255,.055); border-left-color: rgba(255,255,255,.7); }
.toc-results .res-title { display: block; font-size: 13px; color: #e6e6ec; }
.toc-results .res-snip {
  display: block; margin-top: 3px; font-size: 11.5px; line-height: 1.6; color: #8f8f99;
  overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.toc-results .res-count { margin-left: 6px; font-family: var(--mono); font-size: 10px; color: #8a8a93; }
.toc-results .res-empty { padding: 10px 12px; font-size: 12.5px; line-height: 1.7; color: #8f8f99; }
/* 高亮用中性色：整站是单色调，暖黄会像另一个品牌的 UI */
.toc-results mark, .docs-body mark.doc-hit {
  padding: 0 2px; border-radius: 3px; color: #fff; background: rgba(255,255,255,.2);
  box-shadow: inset 0 -1px 0 rgba(255,255,255,.55);
}
/* 搜索跳转后焦点交给章节标题（读屏会读出来）。标题横跨整栏，一圈描边太重，
   改成整节轻轻闪一下——位置提示更直观，也不破坏排版。 */
.docs-body h2:focus, .docs-body h2:focus-visible { outline: none; }
.docs-body section.doc-flash { animation: doc-flash 1.4s ease-out; }
@keyframes doc-flash {
  from { background: rgba(255,255,255,.05); box-shadow: 0 0 0 12px rgba(255,255,255,.05); }
  to { background: transparent; box-shadow: 0 0 0 12px transparent; }
}
@media (prefers-reduced-motion: reduce) {
  .docs-body section.doc-flash { animation: none; }
}

.docs-kicker { margin-bottom: 14px; font-size: 10.5px; letter-spacing: .16em; color: #82828c; }
.docs-body h1 { font-size: clamp(34px, 4vw, 46px); letter-spacing: -.042em; }
.docs-body .lead { margin-top: 16px; font-size: 16px; line-height: 1.9; color: #a8a8b1; }
.docs-meta { margin-top: 22px; gap: 8px; padding-bottom: 26px; border-bottom: 1px solid var(--line); }
/* 元信息标签做成“徽标”而不是按钮：无描边、低对比，避免和右侧实心 CTA 抢焦点 */
.docs-meta > span {
  padding: 3px 9px; color: #9a9aa4; background: rgba(255,255,255,.03);
  border-color: transparent; font-size: 10px; letter-spacing: .06em;
}
.docs-meta > a {
  margin-left: 4px;
  padding: 5px 12px 5px 13px; font-size: 12px; border-radius: 999px;
  color: #0a0a0c; font-weight: 550; border-color: transparent;
  background: linear-gradient(180deg, #fbfbfc, #e6e6ec);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.75);
  transition: background .18s, box-shadow .18s;
}
.docs-meta > a:hover { background: #fff; box-shadow: inset 0 1px 0 #fff, 0 4px 16px -6px rgba(255,255,255,.5); }
.docs-body section:first-of-type h2 { margin-top: 40px; }
.docs-body h2 {
  margin: 56px 0 14px; padding-top: 28px; font-size: 23px; letter-spacing: -.028em;
  border-top-color: rgba(255,255,255,.08);
}
.docs-body h3 { margin: 30px 0 9px; font-size: 15.5px; }
.docs-body p, .docs-body li { font-size: 15px; line-height: 1.95; color: #c0c0c8; }
.docs-body code {
  padding: 1.5px 6px; font-size: .87em; color: #ececf0;
  background: rgba(255,255,255,.075); border: 1px solid rgba(255,255,255,.055); border-radius: 5px;
}
.docs-body .steps > li { margin: 10px 0; }
.docs-body .steps > li::marker { color: #8a8a93; font-weight: 600; font-family: var(--mono); }

/* 代码块：表头更清楚，复制按钮有反馈，滚动条细化 */
.code { margin: 20px 0 26px; background: #0b0b0e; border-color: rgba(255,255,255,.1); border-radius: 12px; }
.code-head { min-height: 42px; padding: 6px 10px 6px 16px; background: rgba(255,255,255,.028); border-bottom-color: rgba(255,255,255,.075); }
.code-lang { color: #8b8b95; font-size: 9.5px; letter-spacing: .14em; }
.code pre { padding: 18px 20px 20px; }
.code pre::-webkit-scrollbar { height: 9px; }
.code pre::-webkit-scrollbar-thumb { background: rgba(255,255,255,.14); border-radius: 5px; }
.code pre code { font-size: 12.8px; line-height: 1.8; color: #d8d8df; }
.code .copy { height: 27px; font-size: 11.5px; border-radius: 7px; background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.13); }
.code .copy:hover { background: rgba(255,255,255,.11); border-color: rgba(255,255,255,.24); }
.tab-bar { padding: 6px 8px 0; background: #0b0b0e; border-color: rgba(255,255,255,.1); }
.tab-bar button { font-size: 12.5px; padding: 8px 13px; color: #93939c; }
.tab-bar button:hover { color: #e4e4e8; }
.tab-bar button[aria-selected="true"] { color: #fff; background: rgba(255,255,255,.08); }

/* ---- 条款 / 使用政策：左侧目录 + 正文，两栏居中 ---- */
.doc-shell {
  display: grid; grid-template-columns: 190px minmax(0, 720px);
  justify-content: center; gap: 60px;
  padding: 64px 0 120px; align-items: start;
}
.doc-aside { position: sticky; top: 92px; }
.doc-aside-title {
  margin: 0 0 14px 15px; color: #7f7f89;
  font-family: var(--mono); font-size: 9.5px; letter-spacing: .16em; text-transform: uppercase;
}
.doc-aside nav { display: flex; flex-direction: column; gap: 1px; border-left: 1px solid rgba(255,255,255,.09); }
.doc-aside a {
  padding: 8px 15px; margin-left: -1px; border-left: 1px solid transparent;
  font-size: 13px; color: #96969f; line-height: 1.5;
  transition: color .18s, border-color .18s, background .18s;
}
.doc-aside a:hover { color: #e8e8ec; background: rgba(255,255,255,.03); }
.doc-aside a.on {
  color: #fff; font-weight: 500;
  border-left: 2px solid #f2f2f5; padding-left: 14px;
  background: linear-gradient(90deg, rgba(255,255,255,.08), rgba(255,255,255,0));
}

.doc-shell .doc { max-width: none; padding: 0; }
.doc h1 { font-size: clamp(30px, 3.2vw, 40px); letter-spacing: -.038em; line-height: 1.2; }
.doc .meta {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 16px; padding: 4px 11px;
  font-family: var(--mono); font-size: 11px; letter-spacing: .02em; color: #9a9aa3;
  background: rgba(255,255,255,.03); border: 1px solid var(--line); border-radius: 999px;
}
.doc .meta::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: #8f8f98; }
.doc > h1 + .meta + h2 { margin-top: 40px; }
.doc h2 {
  margin: 44px 0 10px; padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.075);
  font-size: 19px; font-weight: 600; letter-spacing: -.022em; scroll-margin-top: 92px;
}
.doc p, .doc li { font-size: 15.5px; line-height: 1.95; color: #c0c0c8; }
.doc p + p { margin-top: 12px; }
.doc ul { padding-left: 20px; }
.doc li { margin: 8px 0; }
.doc li::marker { color: #7f7f89; }
.doc a { color: #eaeaf0; text-decoration-color: rgba(255,255,255,.4); }
.doc a:hover { text-decoration-color: #fff; }

/* ---- 移动端：目录变横向胶囊条，正文单列 ---- */
@media (max-width: 1100px) {
  .docs, .doc-shell { grid-template-columns: minmax(0, 1fr); gap: 10px; padding: 28px 0 80px; justify-content: stretch; }
  .docs-body, .doc-shell .doc { max-width: none; }
  .doc-aside {
    position: sticky; top: 64px; z-index: 12;
    margin: 0 -20px 12px; padding: 0 12px;
    background: rgba(8, 8, 10, .94);
    backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  }
  .doc-aside-title { display: none; }
  .doc-aside nav {
    flex-direction: row; gap: 0; overflow-x: auto; border-left: 0;
    border-bottom: 1px solid var(--line); scrollbar-width: none;
  }
  .doc-aside nav::-webkit-scrollbar { display: none; }
  .doc-aside a {
    flex: none; margin-left: 0; padding: 11px 13px; border-left: 0; border-bottom: 1px solid transparent;
    white-space: nowrap;
  }
  .doc-aside a.on { border-left-color: transparent; border-bottom-color: #fff; background: none; }
  .doc h2 { margin: 34px 0 10px; padding-top: 20px; }
}
@media (max-width: 900px) {
  .hero-inner { padding: 40px 0 34px; }
  .docs { padding-top: 22px; }
  .docs-meta { padding-bottom: 22px; }
}
@media (max-width: 560px) {
  .doc-shell { padding: 22px 0 72px; }
  .doc h1 { font-size: 28px; }
  .doc p, .doc li { font-size: 15px; line-height: 1.9; }
  .docs-body h2 { font-size: 21px; }
  .code pre code { font-size: 12px; }
  .site-foot-inner { padding: 20px 0 26px; }
}

