/* ============================================================
   设计语言对齐源站 api.ssstoken.net
   主色 teal 渐变 #14b8a6 → #0d9488 / 底色 #f9fafb + 青色网格
   卡片 16px 圆角 / system-ui 字体
   ============================================================ */
:root {
  --bg: #f9fafb;
  --card: #ffffff;
  --line: #e5e7eb;
  --line-soft: #f3f4f6;
  --text: #111827;
  --muted: #6b7280;
  --muted-2: #9ca3af;
  --teal: #14b8a6;
  --teal-dark: #0d9488;
  --teal-ink: #0f766e;
  --mint: #f0fdfa;
  --mint-line: #ccfbf1;
  --dark: #111827;
  --bad: #dc2626;
  --bad-bg: #fef2f2;
  --warn: #d97706;
  --warn-bg: #fffbeb;
  --radius: 16px;
  --shadow-card: 0 1px 2px rgba(16, 24, 40, .04), 0 8px 24px -16px rgba(16, 24, 40, .18);
  --shadow-teal: 0 4px 14px -6px rgba(20, 184, 166, .55);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  min-height: 100vh;
  background: linear-gradient(to bottom right, #f9fafb, rgba(240, 253, 250, .3), #f3f4f6) fixed;
  color: var(--text);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
/* 源站那层淡青网格 */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(rgba(20, 184, 166, .03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20, 184, 166, .03) 1px, transparent 1px);
  background-size: 40px 40px;
}
a { color: var(--teal-dark); text-decoration: none; }
a:hover { color: var(--teal-ink); }
h1, h2, h3 { margin: 0 0 .5em; line-height: 1.3; color: var(--text); letter-spacing: -.02em; }
h1 { font-size: 24px; font-weight: 700; }
h2 { font-size: 16px; font-weight: 650; }
h3 { font-size: 14px; font-weight: 650; }
p { margin: 0 0 .8em; }
code, pre, .mono { font-family: ui-monospace, SFMono-Regular, "SF Mono", Consolas, Menlo, monospace; }
pre {
  background: linear-gradient(145deg, #1e293b, #0f172a);
  color: #e2e8f0; padding: 18px 20px; border-radius: 12px;
  overflow-x: auto; font-size: 12.5px; line-height: 1.7; margin: 0;
}
code:not(pre code) {
  background: var(--mint); border: 1px solid var(--mint-line); color: var(--teal-ink);
  padding: 1px 6px; border-radius: 6px; font-size: 12.5px;
}

/* ---------------------------------------------------------------- 顶栏 */
.appbar {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid rgba(229, 231, 235, .8);
}
.appbar-in {
  max-width: 1120px; margin: 0 auto; height: 60px; padding: 0 24px;
  display: flex; align-items: center; gap: 26px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: -.02em; color: var(--text); }
.brand:hover { color: var(--text); text-decoration: none; }
.logo {
  width: 30px; height: 30px; border-radius: 9px; flex: 0 0 30px;
  background: linear-gradient(145deg, #1e293b, #0b1220);
  display: grid; place-items: center;
  box-shadow: 0 2px 6px rgba(15, 23, 42, .25);
}
.logo svg { width: 16px; height: 16px; display: block; }
.brand .name { font-size: 15px; }

.nav { display: flex; align-items: center; gap: 2px; flex: 1; }
.nav-link {
  padding: 6px 11px; border-radius: 9px; font-size: 13.5px; font-weight: 500;
  color: #4b5563; white-space: nowrap;
}
.nav-link:hover { background: var(--line-soft); color: var(--text); text-decoration: none; }
.nav-link.on { background: var(--mint); color: var(--teal-ink); font-weight: 600; }
.appbar-right { display: flex; align-items: center; gap: 10px; }
.balance-chip {
  display: flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px;
  border-radius: 9999px; background: var(--mint); border: 1px solid var(--mint-line);
  font-size: 12.5px; color: var(--teal-ink); font-weight: 600; white-space: nowrap;
}
.balance-chip i { font-style: normal; opacity: .7; font-weight: 500; }

/* ---------------------------------------------------------------- 布局 */
.main { position: relative; z-index: 1; max-width: 1120px; margin: 0 auto; padding: 28px 24px 40px; }
.topbar { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 22px; }
.topbar .sub { color: var(--muted); font-size: 13px; margin-top: 3px; }
.who { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.foot { position: relative; z-index: 1; text-align: center; color: var(--muted-2); font-size: 12px; padding: 20px 0 34px; }

/* ---------------------------------------------------------------- 卡片 */
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 24px; box-shadow: var(--shadow-card);
}
.card + .card { margin-top: 16px; }
.card-h { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; }
.card-h h2 { margin: 0; }
.grid { display: grid; gap: 16px; }
.grid > .card, .grid > .stat { margin-top: 0; }
.grid.c3 { grid-template-columns: repeat(3, 1fr); }
.grid.c2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 880px) {
  .grid.c3, .grid.c2 { grid-template-columns: 1fr; }
  .nav { display: none; }
}

.stat {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px 22px; box-shadow: var(--shadow-card);
}
.stat .k { font-size: 12.5px; color: var(--muted); margin-bottom: 8px; font-weight: 500; }
.stat .v { font-size: 26px; font-weight: 700; letter-spacing: -.03em; color: var(--text); }
.stat .h { font-size: 12px; color: var(--muted-2); margin-top: 6px; }

/* ---------------------------------------------------------------- 表格 */
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th {
  text-align: left; font-weight: 600; color: var(--muted); font-size: 12px;
  padding: 10px 12px; background: #fbfcfd; border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
th:first-child { border-top-left-radius: 10px; }
th:last-child { border-top-right-radius: 10px; }
td { padding: 12px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: #fbfefd; }
.num { text-align: right; font-variant-numeric: tabular-nums; }
.empty { text-align: center; color: var(--muted-2); padding: 40px 10px; font-size: 13px; }

/* ---------------------------------------------------------------- 表单 */
label { display: block; font-size: 13px; font-weight: 600; color: #374151; margin: 16px 0 7px; }
input[type=text], input[type=email], input[type=password], input[type=number],
select, textarea {
  width: 100%; height: 42px; padding: 0 13px; border: 1px solid var(--line);
  border-radius: 12px; font-size: 13.5px; font-family: inherit; background: #fff;
  color: var(--text); transition: border-color .15s, box-shadow .15s;
}
textarea { height: auto; min-height: 200px; padding: 12px 13px; line-height: 1.6; resize: vertical; }
input::placeholder, textarea::placeholder { color: var(--muted-2); }
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(20, 184, 166, .14);
}
.field { position: relative; }
.field .fi {
  position: absolute; left: 13px; top: 50%; transform: translateY(-50%);
  width: 16px; height: 16px; color: var(--muted-2); pointer-events: none;
}
.field input { padding-left: 38px; }

/* 按钮 */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  height: 40px; padding: 0 18px; border-radius: 12px; border: 1px solid transparent;
  background: linear-gradient(to right, var(--teal), var(--teal-dark));
  color: #fff; font-size: 13.5px; font-weight: 600; font-family: inherit;
  cursor: pointer; white-space: nowrap;
  box-shadow: var(--shadow-teal); transition: filter .15s, transform .05s;
}
.btn:hover { filter: brightness(1.05); color: #fff; text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn svg { width: 15px; height: 15px; }
.btn.ghost {
  background: #fff; border-color: var(--line); color: #374151; box-shadow: none;
}
.btn.ghost:hover { background: #fafafa; border-color: #d1d5db; color: var(--text); }
.btn.dark {
  background: var(--dark); color: #fff; border-radius: 9999px; box-shadow: none;
  height: 34px; padding: 0 16px; font-size: 13px;
}
.btn.dark:hover { background: #1f2937; }
.btn.danger { background: #fff; border-color: #fecaca; color: var(--bad); box-shadow: none; }
.btn.danger:hover { background: var(--bad-bg); }
.btn.sm { height: 32px; padding: 0 13px; font-size: 12.5px; border-radius: 10px; }
.btn.block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.row.end { justify-content: flex-end; }

/* ---------------------------------------------------------------- 徽章 */
.pill {
  display: inline-flex; align-items: center; gap: 4px; padding: 2px 10px;
  border-radius: 9999px; font-size: 11.5px; font-weight: 600;
  background: var(--mint); color: var(--teal-ink); border: 1px solid var(--mint-line);
  white-space: nowrap;
}
.pill.ok { background: var(--mint); color: var(--teal-ink); border-color: var(--mint-line); }
.pill.bad { background: var(--bad-bg); color: var(--bad); border-color: #fecaca; }
.pill.warn { background: var(--warn-bg); color: var(--warn); border-color: #fde68a; }
.pill.gray { background: #f9fafb; color: #4b5563; border-color: var(--line); }

.alert { padding: 12px 15px; border-radius: 12px; font-size: 13px; margin-bottom: 16px; display: flex; gap: 8px; }
.alert.ok { background: var(--mint); color: var(--teal-ink); border: 1px solid var(--mint-line); }
.alert.bad { background: var(--bad-bg); color: #991b1b; border: 1px solid #fecaca; }
.alert.info { background: #eff6ff; color: #1e40af; border: 1px solid #bfdbfe; }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.hint { font-size: 12.5px; color: var(--muted); margin-top: 10px; line-height: 1.8; }
.sep { height: 1px; background: var(--line-soft); margin: 18px 0; }

.keybox {
  display: flex; align-items: center; gap: 10px;
  background: linear-gradient(145deg, #1e293b, #0f172a); color: #5eead4;
  padding: 13px 16px; border-radius: 12px; font-family: ui-monospace, Consolas, monospace;
  font-size: 12.5px; overflow-x: auto; white-space: nowrap;
}
.keybox span { flex: 1; }

/* ---------------------------------------------------------------- 认证页 */
.auth-wrap {
  position: relative; z-index: 1; min-height: 100vh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 40px 24px;
}
.auth-logo {
  width: 62px; height: 62px; border-radius: 18px; display: grid; place-items: center;
  background: linear-gradient(145deg, #1e293b, #0b1220);
  box-shadow: 0 8px 22px -8px rgba(15, 23, 42, .55);
  margin-bottom: 14px;
}
.auth-logo svg { width: 30px; height: 30px; }
.auth-brand { font-size: 27px; font-weight: 700; letter-spacing: -.03em; color: var(--teal);
  background: linear-gradient(to right, var(--teal), var(--teal-dark));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.auth-tag { font-size: 13.5px; color: var(--muted); margin-top: 2px; margin-bottom: 22px; }
.auth {
  width: 100%; max-width: 390px; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 30px 30px 26px;
  box-shadow: 0 12px 40px -20px rgba(16, 24, 40, .3), 0 1px 2px rgba(16, 24, 40, .04);
}
.auth-title { text-align: center; font-size: 21px; font-weight: 700; letter-spacing: -.02em; }
.auth-sub { text-align: center; font-size: 13px; color: var(--muted); margin: 5px 0 4px; }
.auth .btn { width: 100%; margin-top: 22px; height: 44px; }
.auth .swap { text-align: center; font-size: 13px; color: var(--muted); margin-top: 18px; }
.auth-foot { color: var(--muted-2); font-size: 12px; margin-top: 26px; }

.bar { height: 7px; background: var(--line-soft); border-radius: 9999px; overflow: hidden; }
.bar > i { display: block; height: 100%; border-radius: 9999px;
  background: linear-gradient(to right, var(--teal), var(--teal-dark)); }

/* ---------------------------------------------------------------- 落地页 */
.hero { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center;
  padding: 54px 0 40px; }
@media (max-width: 880px) { .hero { grid-template-columns: 1fr; gap: 30px; padding: 34px 0 24px; } }
.hero h1 { font-size: 54px; font-weight: 800; letter-spacing: -.045em; line-height: 1.06; margin-bottom: 14px; }
.hero .lead { font-size: 16px; color: var(--muted); margin-bottom: 26px; }
.hero .cta { display: inline-flex; align-items: center; gap: 8px; height: 46px; padding: 0 24px;
  border-radius: 12px; background: linear-gradient(to right, var(--teal), var(--teal-dark));
  color: #fff; font-weight: 600; font-size: 14.5px; box-shadow: var(--shadow-teal); }
.hero .cta:hover { color:#fff; filter: brightness(1.05); text-decoration: none; }
.hero .cta svg { width: 16px; height: 16px; }

.terminal { background: linear-gradient(145deg, #1e293b, #0f172a); border-radius: 12px;
  box-shadow: 0 24px 50px -24px rgba(15,23,42,.55); overflow: hidden; }
.term-bar { display: flex; align-items: center; gap: 7px; padding: 11px 14px;
  border-bottom: 1px solid rgba(255,255,255,.06); position: relative; }
.term-bar i { width: 11px; height: 11px; border-radius: 9999px; display: block; }
.term-bar .r { background: #f87171; } .term-bar .y { background: #fbbf24; } .term-bar .g { background: #34d399; }
.term-bar span { position: absolute; left: 0; right: 0; text-align: center; color: #64748b;
  font-size: 11.5px; font-family: ui-monospace, Consolas, monospace; }
.term-body { padding: 18px 18px 20px; font-family: ui-monospace, Consolas, monospace;
  font-size: 12.5px; line-height: 2; }
.term-body .p { color: #34d399; } .term-body .c { color: #94a3b8; }
.term-body .k { color: #fbbf24; } .term-body .s { color: #5eead4; }
.term-body .d { color: #64748b; }

.badge-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin: 8px 0 40px; }
.badge-pill { display: inline-flex; align-items: center; gap: 7px; padding: 8px 16px;
  border-radius: 9999px; background: #fff; border: 1px solid var(--line);
  font-size: 13px; font-weight: 500; color: #374151; box-shadow: 0 1px 2px rgba(16,24,40,.03); }
.badge-pill svg { width: 15px; height: 15px; color: var(--teal-dark); }

.feats { margin-bottom: 46px; }
.feat { background: rgba(255,255,255,.6); backdrop-filter: blur(6px); border: 1px solid rgba(229,231,235,.7);
  border-radius: var(--radius); padding: 26px 24px; box-shadow: var(--shadow-card); }
.feat-icon { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center;
  margin-bottom: 16px; }
.feat-icon svg { width: 21px; height: 21px; color: #fff; }
.feat-icon.blue { background: linear-gradient(145deg, #3b82f6, #2563eb); }
.feat-icon.teal { background: linear-gradient(145deg, #14b8a6, #0d9488); }
.feat-icon.violet { background: linear-gradient(145deg, #a855f7, #7c3aed); }
.feat h3 { font-size: 15.5px; font-weight: 700; margin-bottom: 7px; }
.feat p { font-size: 13px; color: var(--muted); line-height: 1.75; margin: 0; }

.sec-title { text-align: center; font-size: 27px; font-weight: 700; letter-spacing: -.03em; margin-bottom: 6px; }
.sec-sub { text-align: center; color: var(--muted); font-size: 13.5px; margin-bottom: 26px; }
.chips { display: flex; flex-wrap: wrap; gap: 11px; justify-content: center; }
.chip { display: inline-flex; align-items: center; gap: 9px; padding: 9px 14px; background: #fff;
  border: 1px solid var(--mint-line); border-radius: 12px; font-size: 13px; font-weight: 550;
  color: var(--text); box-shadow: 0 1px 2px rgba(16,24,40,.03); }
.chip:hover { border-color: var(--teal); text-decoration: none; color: var(--text); }
.chip .ci { width: 22px; height: 22px; border-radius: 6px; display: grid; place-items: center;
  color: #fff; font-size: 11px; font-weight: 700; }
.chip .tag { font-size: 11px; color: var(--teal-ink); background: var(--mint); padding: 1px 7px;
  border-radius: 9999px; font-weight: 600; }
.chip.dim { opacity: .55; }
