/* 无限可能 · 用户端 —— iOS 风格玻璃拟态 */
:root {
  --blue: #0a84ff;
  --blue-deep: #0060df;
  --green: #30d158;
  --orange: #ff9f0a;
  --red: #ff453a;
  --purple: #bf5af2;
  --teal: #64d2ff;

  --bg: #eef1f8;
  --label: #0b0b0f;
  --label-2: rgba(60, 60, 67, .62);
  --label-3: rgba(60, 60, 67, .38);
  --sep: rgba(60, 60, 67, .14);
  --glass: rgba(255, 255, 255, .58);
  --glass-2: rgba(255, 255, 255, .78);
  --glass-edge: rgba(255, 255, 255, .72);
  --glass-shadow: 0 18px 48px -22px rgba(16, 24, 60, .42), 0 1px 0 rgba(255, 255, 255, .6) inset;
  --fill: rgba(120, 120, 128, .12);
  --fill-2: rgba(120, 120, 128, .08);
  --r-xl: 30px;
  --r-lg: 24px;
  --r-md: 18px;
  --r-sm: 12px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "PingFang SC", "Helvetica Neue", "Microsoft YaHei", system-ui, sans-serif;
  --mono: "SF Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #07070b;
    --label: #f5f5f7;
    --label-2: rgba(235, 235, 245, .62);
    --label-3: rgba(235, 235, 245, .34);
    --sep: rgba(235, 235, 245, .14);
    --glass: rgba(28, 28, 34, .58);
    --glass-2: rgba(34, 34, 42, .72);
    --glass-edge: rgba(255, 255, 255, .12);
    --glass-shadow: 0 24px 60px -30px rgba(0, 0, 0, .9), 0 1px 0 rgba(255, 255, 255, .06) inset;
    --fill: rgba(120, 120, 128, .26);
    --fill-2: rgba(120, 120, 128, .16);
  }
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  background: var(--bg);
  color: var(--label);
  font: 15px/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
  letter-spacing: -.01em;
  overflow-x: hidden;
}

/* 背景光晕 */
body::before {
  content: "";
  position: fixed;
  inset: -20vh -10vw;
  z-index: -1;
  background:
    radial-gradient(48vw 46vh at 12% 8%, rgba(10, 132, 255, .42), transparent 62%),
    radial-gradient(42vw 40vh at 88% 2%, rgba(191, 90, 242, .36), transparent 60%),
    radial-gradient(50vw 44vh at 70% 82%, rgba(100, 210, 255, .34), transparent 62%),
    radial-gradient(40vw 36vh at 22% 92%, rgba(48, 209, 88, .22), transparent 65%);
  filter: blur(18px) saturate(115%);
  animation: drift 26s ease-in-out infinite alternate;
}
@keyframes drift {
  from { transform: translate3d(-1.5%, -1%, 0) scale(1.02); }
  to { transform: translate3d(2%, 1.5%, 0) scale(1.06); }
}

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { margin: 0; line-height: 1.18; letter-spacing: -.022em; }
code, pre { font-family: var(--mono); }
.hidden { display: none !important; }
.muted { color: var(--label-2); }
.right { text-align: right; }
.num { font-variant-numeric: tabular-nums; }

/* ---------------- 玻璃容器 ---------------- */
.glass {
  background: var(--glass);
  border: 1px solid var(--glass-edge);
  border-radius: var(--r-lg);
  box-shadow: var(--glass-shadow);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
}

/* ---------------- 顶栏 ---------------- */
.nav {
  position: sticky; top: 12px; z-index: 40;
  max-width: 1120px; margin: 12px auto 0; padding: 10px 16px;
  display: flex; align-items: center; gap: 20px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .5);
  border: 1px solid var(--glass-edge);
  box-shadow: 0 12px 34px -22px rgba(16, 24, 60, .5);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
}
@media (prefers-color-scheme: dark) { .nav { background: rgba(24, 24, 30, .55); } }

.brand { display: flex; align-items: center; gap: 10px; color: var(--label); font-weight: 650; letter-spacing: -.02em; }
.brand .mark {
  width: 34px; height: 34px; border-radius: 12px; display: grid; place-items: center;
  background: linear-gradient(160deg, #0a84ff, #bf5af2 70%, #64d2ff);
  color: #fff; font-size: 20px; font-weight: 800;
  box-shadow: 0 8px 18px -8px rgba(10, 132, 255, .9), inset 0 1px 0 rgba(255, 255, 255, .5);
}
.brand small { display: block; font-size: 11px; font-weight: 500; color: var(--label-2); letter-spacing: .02em; }
.nav-links { display: flex; gap: 2px; }
.nav-links a { color: var(--label-2); font-size: 14px; padding: 7px 13px; border-radius: 999px; }
.nav-links a:hover { background: var(--fill-2); color: var(--label); text-decoration: none; }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 8px; }

/* ---------------- 按钮（iOS） ---------------- */
.btn {
  appearance: none; border: 0; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 9px 16px; border-radius: 999px;
  font: 500 14.5px/1.2 var(--font); letter-spacing: -.01em;
  background: var(--fill); color: var(--label);
  transition: transform .18s cubic-bezier(.2, .8, .2, 1), background .18s, box-shadow .18s;
}
.btn:hover { background: rgba(120, 120, 128, .18); }
.btn:active { transform: scale(.97); }
.btn-primary {
  background: linear-gradient(180deg, #2f96ff, var(--blue));
  color: #fff;
  box-shadow: 0 10px 22px -12px rgba(10, 132, 255, .95), inset 0 1px 0 rgba(255, 255, 255, .35);
}
.btn-primary:hover { background: linear-gradient(180deg, #3d9dff, #0a7bf0); }
.btn-tint { background: rgba(10, 132, 255, .14); color: var(--blue); }
.btn-tint:hover { background: rgba(10, 132, 255, .2); }
.btn-danger { background: rgba(255, 69, 58, .12); color: var(--red); }
.btn-ghost { background: transparent; color: var(--label-2); }
.btn-ghost:hover { background: var(--fill-2); color: var(--label); }
.btn-sm { padding: 6px 12px; font-size: 13px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }

/* ---------------- 首屏 ---------------- */
.hero { max-width: 1120px; margin: 34px auto 0; padding: 0 20px; }
.hero-card {
  position: relative; overflow: hidden;
  border-radius: var(--r-xl); padding: 46px 44px 42px;
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center;
  background: linear-gradient(150deg, rgba(255, 255, 255, .72), rgba(255, 255, 255, .38));
  border: 1px solid var(--glass-edge);
  box-shadow: var(--glass-shadow);
  backdrop-filter: blur(30px) saturate(180%);
  -webkit-backdrop-filter: blur(30px) saturate(180%);
}
@media (prefers-color-scheme: dark) {
  .hero-card { background: linear-gradient(150deg, rgba(32, 32, 40, .78), rgba(20, 20, 26, .5)); }
}
.hero-card::after {
  content: ""; position: absolute; width: 420px; height: 420px; right: -120px; top: -160px;
  background: radial-gradient(circle, rgba(191, 90, 242, .5), transparent 62%);
  filter: blur(10px); pointer-events: none;
}
.pill {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 5px 12px; border-radius: 999px; font-size: 12.5px;
  background: rgba(48, 209, 88, .14); color: #1c8b3d;
  border: 1px solid rgba(48, 209, 88, .22);
}
@media (prefers-color-scheme: dark) { .pill { color: #69e58c; } }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px rgba(48, 209, 88, .22); }
.hero h1 { font-size: clamp(32px, 4.4vw, 50px); margin: 16px 0 12px; letter-spacing: -.035em; }
.hero h1 .grad {
  background: linear-gradient(100deg, #0a84ff, #bf5af2 45%, #64d2ff 85%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p.lead { color: var(--label-2); font-size: 16px; margin: 0 0 24px; max-width: 34em; }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 28px; margin-top: 32px; }
.hero-stats b { display: block; font-size: 21px; letter-spacing: -.02em; }
.hero-stats span { font-size: 12.5px; color: var(--label-2); }

/* 代码卡片 */
.codecard {
  position: relative; z-index: 1;
  border-radius: var(--r-lg); padding: 16px 18px;
  background: rgba(16, 18, 28, .82);
  border: 1px solid rgba(255, 255, 255, .14);
  box-shadow: 0 26px 50px -30px rgba(0, 0, 0, .8), inset 0 1px 0 rgba(255, 255, 255, .1);
  backdrop-filter: blur(12px);
}
.codecard .bar { display: flex; gap: 6px; margin-bottom: 12px; }
.codecard .bar i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, .2); }
.codecard pre { margin: 0; font-size: 12.6px; line-height: 1.85; color: #d3dcff; overflow-x: auto; }
.codecard .k { color: #ff9ad5; }
.codecard .s { color: #7ef0a6; }
.codecard .c { color: #7c8aa8; }

/* ---------------- 区块 ---------------- */
.section { max-width: 1120px; margin: 0 auto; padding: 48px 20px 8px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 20px; padding: 0 4px; }
.section-head h2 { font-size: 27px; letter-spacing: -.03em; }
.section-head p { margin: 5px 0 0; color: var(--label-2); font-size: 14px; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature { padding: 20px; border-radius: var(--r-lg); }
.feature .ico {
  width: 40px; height: 40px; border-radius: 13px; display: grid; place-items: center; margin-bottom: 14px;
  background: linear-gradient(160deg, rgba(10, 132, 255, .18), rgba(191, 90, 242, .18));
  color: var(--blue); font-size: 18px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5);
}
.feature h3 { font-size: 16.5px; margin-bottom: 5px; }
.feature p { margin: 0; color: var(--label-2); font-size: 14px; }

/* ---------------- 列表 / 表格 ---------------- */
.table-wrap { overflow-x: auto; border-radius: var(--r-lg); }
table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
th, td { text-align: left; padding: 13px 18px; border-bottom: 1px solid var(--sep); }
th {
  font-size: 12px; font-weight: 600; color: var(--label-2);
  text-transform: uppercase; letter-spacing: .06em;
  background: var(--fill-2); backdrop-filter: blur(10px);
}
tr:last-child td { border-bottom: 0; }
tbody tr { transition: background .16s; }
tbody tr:hover { background: var(--fill-2); }

.tag {
  display: inline-flex; align-items: center; padding: 2px 10px; border-radius: 999px;
  font-size: 12px; font-weight: 550; letter-spacing: 0;
  background: rgba(10, 132, 255, .13); color: var(--blue);
}
.tag.ok { background: rgba(48, 209, 88, .16); color: #1e8f43; }
.tag.warn { background: rgba(255, 159, 10, .16); color: #b26a00; }
.tag.err { background: rgba(255, 69, 58, .14); color: var(--red); }
.tag.grey { background: var(--fill); color: var(--label-2); }
@media (prefers-color-scheme: dark) {
  .tag.ok { color: #69e58c; }
  .tag.warn { color: #ffc45c; }
}

/* ---------------- 登录 ---------------- */
.auth-shell { min-height: 72vh; display: grid; place-items: center; padding: 56px 20px; }
.auth-card { width: min(420px, 100%); padding: 28px; border-radius: var(--r-xl); }
.auth-card h2 { font-size: 25px; letter-spacing: -.03em; }
.auth-card .sub { color: var(--label-2); font-size: 13.5px; margin: 5px 0 20px; }

.seg {
  display: flex; gap: 2px; padding: 3px; border-radius: 12px;
  background: var(--fill); margin-bottom: 20px;
}
.seg button {
  flex: 1; border: 0; background: transparent; padding: 7px; border-radius: 10px;
  cursor: pointer; font: 500 14px var(--font); color: var(--label-2); transition: .18s;
}
.seg button.on {
  background: var(--glass-2); color: var(--label);
  box-shadow: 0 2px 8px rgba(0, 0, 0, .1), 0 0 0 .5px rgba(0, 0, 0, .04);
}

.field { margin-bottom: 13px; }
.field label { display: block; font-size: 12.5px; color: var(--label-2); margin: 0 0 6px 4px; }
.input {
  width: 100%; padding: 11px 14px; border-radius: 13px;
  border: 1px solid transparent; background: var(--fill-2);
  font: 400 15px var(--font); color: var(--label); outline: none;
  transition: .18s;
}
.input:focus { background: var(--glass-2); border-color: rgba(10, 132, 255, .55); box-shadow: 0 0 0 4px rgba(10, 132, 255, .14); }
textarea.input { min-height: 84px; resize: vertical; }
.form-msg { font-size: 13px; margin-top: 10px; min-height: 18px; }
.form-msg.err { color: var(--red); }
.form-msg.ok { color: #1e8f43; }

/* ---------------- 控制台 ---------------- */
.console { max-width: 1120px; margin: 0 auto; padding: 28px 20px 90px; }
.console-head { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.avatar {
  width: 52px; height: 52px; border-radius: 18px; display: grid; place-items: center;
  font-weight: 700; font-size: 20px; color: #fff;
  background: linear-gradient(160deg, #0a84ff, #bf5af2);
  box-shadow: 0 12px 24px -12px rgba(10, 132, 255, .8), inset 0 1px 0 rgba(255, 255, 255, .4);
}
.console-head h2 { font-size: 24px; letter-spacing: -.03em; }
.console-head .meta { color: var(--label-2); font-size: 13px; }
.balance {
  margin-left: auto; padding: 10px 18px; border-radius: var(--r-md);
  background: var(--glass); border: 1px solid var(--glass-edge);
  box-shadow: var(--glass-shadow); backdrop-filter: blur(22px) saturate(180%);
  text-align: right; min-width: 132px;
}
.balance span { font-size: 11.5px; color: var(--label-2); display: block; letter-spacing: .02em; }
.balance b { font-size: 23px; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }

.tabs {
  display: flex; gap: 2px; padding: 3px; margin-bottom: 20px;
  border-radius: 14px; background: var(--fill); width: fit-content; max-width: 100%;
  overflow-x: auto; scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tabs button {
  border: 0; background: transparent; padding: 8px 15px; border-radius: 11px;
  cursor: pointer; font: 500 14px var(--font); color: var(--label-2); white-space: nowrap; transition: .18s;
}
.tabs button.on { background: var(--glass-2); color: var(--label); box-shadow: 0 2px 10px rgba(0, 0, 0, .1); }

.panel { display: none; }
.panel.on { display: block; animation: fade .28s cubic-bezier(.2, .8, .2, 1); }
@keyframes fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 16px; }
.stat { padding: 16px 18px; border-radius: var(--r-md); }
.stat span { font-size: 12.5px; color: var(--label-2); }
.stat b { display: block; font-size: 24px; margin-top: 6px; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.stat b small { font-size: 12px; color: var(--label-2); font-weight: 500; margin-left: 3px; }

.two-col { display: grid; grid-template-columns: 1.55fr 1fr; gap: 16px; }
.chart-card { padding: 18px 20px; border-radius: var(--r-lg); }
.chart-card h3 { font-size: 14.5px; color: var(--label-2); margin-bottom: 12px; font-weight: 600; }
.chart { width: 100%; height: 168px; }
.chart .bar { fill: url(#barGrad); }
.chart .axis { stroke: var(--sep); }
.chart text { font-size: 10px; fill: var(--label-3); font-family: var(--mono); }

.card { border-radius: var(--r-lg); }
.keybox {
  display: flex; align-items: center; gap: 10px;
  background: rgba(12, 14, 22, .86); color: #9fe8ff;
  border-radius: 13px; padding: 12px 14px;
  font-family: var(--mono); font-size: 13px; overflow-x: auto;
  border: 1px solid rgba(255, 255, 255, .1);
}
.empty { text-align: center; color: var(--label-2); padding: 38px 12px; font-size: 14px; }

/* 开关 */
.switch { position: relative; display: inline-flex; width: 51px; height: 31px; flex: 0 0 auto; }
.switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.switch i {
  position: absolute; inset: 0; border-radius: 999px; background: var(--fill);
  transition: background .22s;
}
.switch i::after {
  content: ""; position: absolute; top: 2px; left: 2px; width: 27px; height: 27px;
  border-radius: 50%; background: #fff; box-shadow: 0 3px 8px rgba(0, 0, 0, .18);
  transition: transform .22s cubic-bezier(.2, .8, .2, 1);
}
.switch input:checked + i { background: var(--green); }
.switch input:checked + i::after { transform: translateX(20px); }

/* ---------------- 提示 ---------------- */
#toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); display: flex; flex-direction: column; gap: 8px; z-index: 90; align-items: center; }
.toast {
  padding: 11px 18px; border-radius: 999px; font-size: 13.5px; color: var(--label);
  background: var(--glass-2); border: 1px solid var(--glass-edge);
  box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .5); backdrop-filter: blur(24px) saturate(180%);
  animation: pop .26s cubic-bezier(.2, .9, .2, 1);
}
.toast.ok { border-color: rgba(48, 209, 88, .5); }
.toast.err { border-color: rgba(255, 69, 58, .5); }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.96); } to { opacity: 1; transform: none; } }

footer.site { max-width: 1120px; margin: 40px auto 0; padding: 24px 24px 40px; color: var(--label-2); font-size: 12.5px; }
footer.site .in { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid var(--sep); padding-top: 18px; }

@media (max-width: 960px) {
  .hero-card { grid-template-columns: 1fr; padding: 32px 24px; }
  .grid-3, .stat-row { grid-template-columns: 1fr 1fr; }
  .two-col { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .nav { margin: 8px 10px 0; }
}
@media (max-width: 620px) {
  .grid-3, .stat-row { grid-template-columns: 1fr; }
  .balance { margin-left: 0; width: 100%; text-align: left; }
}

/* ---------------- 可访问性与细节 ---------------- */
.skip {
  position: fixed; left: 12px; top: -60px; z-index: 200; padding: 10px 16px; border-radius: 12px;
  background: var(--blue); color: #fff; transition: top .2s;
}
.skip:focus { top: 12px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
:focus-visible { outline: 3px solid rgba(10, 132, 255, .6); outline-offset: 2px; border-radius: 10px; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

/* ---------------- 快速开始 ---------------- */
.qs { padding: 20px 22px; margin-bottom: 16px; border-color: rgba(10, 132, 255, .35); }
.qs-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.qs-head h3 { font-size: 17px; margin-bottom: 4px; }
.qs-head p { margin: 0; font-size: 13px; }
.qs-grid { display: grid; grid-template-columns: 1fr .8fr 1.2fr; gap: 16px; margin-top: 18px; }
.qs-item { display: flex; gap: 10px; }
.qs-item > b {
  flex: 0 0 22px; height: 22px; border-radius: 50%; display: grid; place-items: center;
  font-size: 12px; background: rgba(10, 132, 255, .16); color: var(--blue);
}
.qs-item h4 { font-size: 13.5px; margin-bottom: 2px; }
.qs-item .keybox { font-size: 12px; padding: 9px 11px; }
pre.mini {
  margin: 8px 0 0; padding: 10px 12px; border-radius: 12px; font-size: 11.5px; line-height: 1.6;
  background: rgba(12, 14, 22, .88); color: #cbd5ff; overflow-x: auto; max-height: 150px;
}
@media (max-width: 900px) { .qs-grid { grid-template-columns: 1fr; } }

/* ---------------- 提示条 ---------------- */
.banner {
  display: flex; align-items: center; gap: 14px; justify-content: space-between;
  padding: 14px 18px; margin-bottom: 16px; border-radius: 18px;
  border: 1px solid rgba(10, 132, 255, .35);
}
.banner.ok { border-color: rgba(48, 209, 88, .45); }
.banner.warn { border-color: rgba(255, 159, 10, .5); }
.banner.err { border-color: rgba(255, 69, 58, .5); }
.banner b { font-size: 14px; }

/* ---------------- 筛选栏 ---------------- */
.filter-bar { display: flex; align-items: center; gap: 10px; padding: 12px 16px; margin-bottom: 14px; flex-wrap: wrap; }
.filter-bar .spacer { flex: 1; }

/* ---------------- 调试台 ---------------- */
.play-card { display: flex; flex-direction: column; padding: 16px 18px; min-height: 460px; }
.play-bar { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.play-bar .spacer { flex: 1; }
.chat {
  flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 10px;
  padding: 6px 2px 10px; max-height: 46vh; min-height: 240px;
}
.bubble {
  max-width: 86%; padding: 10px 14px; border-radius: 18px; font-size: 14px; line-height: 1.6;
  white-space: pre-wrap; word-break: break-word; animation: fade .2s ease;
}
.bubble.user {
  align-self: flex-end; background: linear-gradient(180deg, #2f96ff, var(--blue)); color: #fff;
  border-bottom-right-radius: 6px;
}
.bubble.ai { align-self: flex-start; background: var(--fill-2); border: 1px solid var(--sep); border-bottom-left-radius: 6px; }
.bubble.sys { align-self: center; background: transparent; color: var(--label-2); font-size: 12.5px; text-align: center; }
.bubble.err { border-color: rgba(255, 69, 58, .4); color: var(--red); }
.play-input { display: flex; gap: 10px; align-items: flex-end; margin-top: 8px; }
.play-input textarea { flex: 1; min-height: 52px; max-height: 140px; }
.play-meta { font-size: 12px; margin-top: 8px; }
.play-side { padding: 20px; }
.play-side h3 { font-size: 15px; margin-bottom: 14px; }
.kv { display: flex; align-items: baseline; justify-content: space-between; padding: 9px 0; border-bottom: 1px solid var(--sep); font-size: 13.5px; }
.kv:last-of-type { border-bottom: 0; }
.kv b { font-size: 15px; font-variant-numeric: tabular-nums; }

/* ---------------- 密钥高级限制 ---------------- */
.adv { padding: 0 18px; margin-bottom: 16px; border-radius: 18px; }
.adv summary { cursor: pointer; padding: 14px 0; font-size: 13.5px; color: var(--label-2); }
.adv summary:hover { color: var(--label); }
.adv[open] { padding-bottom: 18px; }
.adv select[multiple] { height: auto; padding: 8px; }

/* ---------------- 手机端优化 ---------------- */
@media (max-width: 640px) {
  body { font-size: 15px; }
  .input, select.input, textarea.input { font-size: 16px; } /* 防 iOS 聚焦自动放大 */
  .btn { min-height: 40px; }
  .nav { top: 8px; margin: 8px 8px 0; padding: 8px 12px; border-radius: 22px; gap: 10px; }
  .brand small { display: none; }
  .hero { margin-top: 18px; padding: 0 12px; }
  .hero-card { padding: 24px 18px; border-radius: 22px; }
  .hero h1 { font-size: 30px; }
  .hero p.lead { font-size: 14.5px; }
  .hero-stats { gap: 18px; flex-wrap: wrap; }
  .section { padding: 32px 14px 4px; }
  .section-head h2 { font-size: 22px; }
  .console { padding: 18px 12px 70px; }
  .console-head h2 { font-size: 20px; }
  .avatar { width: 44px; height: 44px; border-radius: 15px; }
  .balance { width: 100%; margin-left: 0; display: flex; justify-content: space-between; align-items: center; }
  .tabs { position: sticky; top: 60px; z-index: 20; backdrop-filter: blur(14px); }
  .stat-row { grid-template-columns: 1fr 1fr; gap: 10px; }
  .stat b { font-size: 20px; }
  .two-col { gap: 12px; }
  .chart { height: 140px; }
  th, td { padding: 10px 12px; }
  .qs { padding: 16px; }
  .play-card { min-height: auto; padding: 12px; }
  .chat { max-height: 52vh; }
  .bubble { max-width: 92%; }
  .filter-bar .input { max-width: 100% !important; }
  dialog { width: calc(100vw - 16px); border-radius: 20px; }
  footer.site { padding: 18px 14px 30px; }
}

/* ---------------- 公告 ---------------- */
.notice-bar { max-width: 1100px; margin: 12px auto 0; padding: 0 16px; display: flex; flex-direction: column; gap: 8px; }
.notice { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 14px;
  background: rgba(10,132,255,.10); border: 1px solid rgba(10,132,255,.25); backdrop-filter: blur(12px); }
.notice.warn { background: rgba(255,159,10,.12); border-color: rgba(255,159,10,.32); }
.notice.important { background: rgba(255,69,58,.12); border-color: rgba(255,69,58,.34); }
.notice-body b { font-size: 13.5px; }
.notice-body div { font-size: 13px; color: var(--label-2); line-height: 1.65; margin-top: 2px; white-space: pre-line; }
.notice-x { margin-left: auto; background: none; border: 0; font-size: 19px; line-height: 1; color: var(--label-2); cursor: pointer; padding: 0 4px; }
.notice-x:hover { color: var(--label); }
@media (max-width: 640px) { .notice-bar { padding: 0 12px; } }

/* ---------------- 置顶公告弹窗 ---------------- */
.modal-mask { position: fixed; inset: 0; z-index: 120; display: flex; align-items: center; justify-content: center;
  background: rgba(8,12,24,.55); backdrop-filter: blur(8px); padding: 20px; }
.modal-card { width: min(460px, 100%); border-radius: 22px; padding: 22px 22px 18px;
  background: var(--glass-bg, rgba(255,255,255,.86)); border: 1px solid var(--glass-line, rgba(255,255,255,.6));
  box-shadow: 0 30px 80px rgba(0,0,0,.28); }
.modal-top { display: flex; align-items: center; margin-bottom: 8px; }
.modal-tag { font-size: 12px; padding: 3px 9px; border-radius: 999px; background: rgba(10,132,255,.14); color: #0a84ff; font-weight: 600; }
.modal-card h3 { font-size: 20px; margin: 6px 0 10px; }
.modal-body { font-size: 14px; line-height: 1.8; color: var(--label-2); white-space: pre-line; max-height: 46vh; overflow: auto; }
.modal-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 18px; }
.modal-mute { font-size: 12.5px; color: var(--label-2); display: flex; align-items: center; gap: 6px; cursor: pointer; }
.modal-mute input { width: 15px; height: 15px; accent-color: #0a84ff; }
