/* ==========================================================================
   API Manager · Design System
   企业级接口平台：中性色底、单一强调色、细边框、克制动效
   ========================================================================== */

:root {
  /* 色彩 */
  --ink:        #0d1117;
  --ink-2:      #3d4757;
  --ink-3:      #6b7686;
  --ink-4:      #9aa4b2;
  --line:       #e3e8ef;
  --line-2:     #eef1f6;
  --bg:         #ffffff;
  --bg-2:       #f7f9fc;
  --bg-3:       #f1f4f9;
  --brand:      #1f5eff;
  --brand-2:    #1748c9;
  --brand-soft: #eef3ff;
  --ok:         #0e9f6e;
  --ok-soft:    #e6f7f0;
  --warn:       #b45309;
  --warn-soft:  #fdf3e3;
  --err:        #d92d20;
  --err-soft:   #fdeceb;

  /* 排版 */
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
          "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas,
          "Liberation Mono", monospace;

  /* 尺度 */
  --r-sm: 6px;
  --r:    10px;
  --r-lg: 14px;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, .05);
  --shadow:    0 1px 3px rgba(16, 24, 40, .08), 0 8px 24px -12px rgba(16, 24, 40, .12);
  --shadow-lg: 0 24px 60px -24px rgba(16, 24, 40, .25);
  --maxw: 1180px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 { margin: 0; font-weight: 650; letter-spacing: -.015em; color: var(--ink); }
p { margin: 0 0 12px; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-2); }
img { max-width: 100%; }
hr.line { border: 0; border-top: 1px solid var(--line-2); margin: 18px 0; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.main { min-height: 60vh; }

.muted { color: var(--ink-3); }
.small { font-size: 13px; }
.tiny { font-size: 12px; }
.center { text-align: center; }
.nowrap { white-space: nowrap; }
.money { font-variant-numeric: tabular-nums; color: var(--ink); }
.pos { color: var(--ok); }
.neg { color: var(--err); }
.link { font-size: 13px; font-weight: 500; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 38px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: var(--r-sm);
  background: var(--bg-3);
  color: var(--ink);
  font: 500 14px/1 var(--font);
  white-space: nowrap;
  cursor: pointer;
  transition: background .15s, border-color .15s, color .15s, box-shadow .15s;
}
.btn:hover { background: #e8edf5; color: var(--ink); }
.btn:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.btn-primary { background: var(--brand); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--brand-2); color: #fff; }
.btn-line { background: #fff; border-color: var(--line); color: var(--ink-2); }
.btn-line:hover { border-color: #cbd4e1; background: var(--bg-2); color: var(--ink); }
.btn-ghost { background: transparent; color: var(--ink-2); }
.btn-ghost:hover { background: var(--bg-3); }
.btn-danger { background: var(--err-soft); color: var(--err); }
.btn-danger:hover { background: #fbd9d6; color: #b42318; }
.btn-disabled, .btn[disabled] { opacity: .5; pointer-events: none; }
.btn-lg { height: 46px; padding: 0 22px; font-size: 15px; border-radius: 8px; }
.btn-sm { height: 32px; padding: 0 12px; font-size: 13px; }
.btn-xs { height: 26px; padding: 0 9px; font-size: 12px; border-radius: 5px; }
.btn-block { width: 100%; }

/* ---------- 徽标 ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 22px;
  padding: 0 8px;
  border-radius: 5px;
  font-size: 12px;
  font-weight: 500;
  background: var(--bg-3);
  color: var(--ink-2);
  white-space: nowrap;
}
.badge::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; opacity: .8; }
.badge-on   { background: var(--ok-soft);   color: #067647; }
.badge-off  { background: var(--bg-3);      color: var(--ink-3); }
.badge-warn { background: var(--warn-soft); color: var(--warn); }
.badge-err  { background: var(--err-soft);  color: var(--err); }
.badge-info { background: var(--brand-soft); color: var(--brand); }

/* 方法徽标 */
.m- { display: inline-block; min-width: 46px; padding: 1px 6px; border-radius: 4px;
      font: 600 11px/1.6 var(--mono); letter-spacing: .04em; text-align: center; }
.m-get    { background: #e8f7f0; color: #067647; }
.m-post   { background: #eaf0ff; color: #1849a9; }
.m-put    { background: #fdf3e3; color: #b54708; }
.m-patch  { background: #f4ecfd; color: #6941c6; }
.m-del    { background: var(--err-soft); color: var(--err); }

/* ---------- 提示条 ---------- */
.alert {
  display: block;
  padding: 12px 16px;
  margin: 0 0 18px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--ink-4);
  border-radius: var(--r-sm);
  background: var(--bg-2);
  font-size: 14px;
  color: var(--ink-2);
}
.alert-ok   { background: var(--ok-soft);   border-color: #b7e6d3; border-left-color: var(--ok);   color: #05603a; }
.alert-warn { background: var(--warn-soft); border-color: #f6dcb0; border-left-color: #d97706;     color: #93370d; }
.alert-err  { background: var(--err-soft);  border-color: #f7c9c4; border-left-color: var(--err);  color: #912018; }
.alert-info { background: var(--brand-soft); border-color: #cfdcff; border-left-color: var(--brand); color: #1849a9; }

/* ---------- 表单 ---------- */
.inp, select.inp, textarea.inp {
  width: 100%;
  height: 40px;
  box-sizing: border-box;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: #fff;
  color: var(--ink);
  font: 400 14px/1.4 var(--font);
  transition: border-color .15s, box-shadow .15s;
}
textarea.inp { height: auto; min-height: 110px; padding: 10px 12px; line-height: 1.6; resize: vertical; }
.inp::placeholder { color: var(--ink-4); }
.inp:focus, select.inp:focus, textarea.inp:focus {
  outline: 0;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(31, 94, 255, .12);
}
select.inp { appearance: none; padding-right: 34px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236b7686' stroke-width='1.6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; }
.field { display: block; }
.field > span, .field-label { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 500; color: var(--ink-2); }
.field .hint, .field > span i { font-style: normal; font-weight: 400; color: var(--ink-4); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid .span-2 { grid-column: 1 / -1; }
.checks { display: flex; flex-wrap: wrap; gap: 8px 16px; padding: 8px 0; }
.check { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: var(--ink-2); cursor: pointer; }
.check input { accent-color: var(--brand); width: 15px; height: 15px; }
.code-row { display: flex; gap: 8px; align-items: stretch; }
.code-row .inp { flex: 1; min-width: 0; }
.code-row .btn { white-space: nowrap; flex: none; }
.auth-aux { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 14px; }
.link-btn { background: none; border: 0; padding: 0; color: var(--brand); font-size: 13px; cursor: pointer; }
.link-btn:hover { text-decoration: underline; }
.field .hint { display: block; margin-top: 6px; font-size: 12px; font-weight: 400; color: var(--ink-4); }
.hint.ok { color: #0e9f6e; }
.hint.err { color: #d92d20; }
.inline { display: inline; }
.form-actions { display: flex; gap: 10px; align-items: center; margin-top: 8px; }

/* ---------- 卡片 ---------- */
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow-sm);
}
.card.pad { padding: 22px 24px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.h2 { font-size: 16px; font-weight: 620; }
.h3 { font-size: 14px; font-weight: 600; }
.panel-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 20px; margin-bottom: 20px; }
.grid { display: grid; gap: 20px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }

/* ---------- 表格 ---------- */
.tbl-wrap { width: 100%; overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  background: var(--bg-2);
  color: var(--ink-3);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .02em;
  text-align: left;
  white-space: nowrap;
}
.tbl td { padding: 12px; border-bottom: 1px solid var(--line-2); color: var(--ink-2); vertical-align: middle; }
.tbl tbody tr:hover { background: #fbfcfe; }
.tbl tbody tr:last-child td { border-bottom: 0; }
.tbl td b { color: var(--ink); font-weight: 600; }
.tbl .ops { white-space: nowrap; }
.tbl .ops > * + * { margin-left: 4px; }
.tbl.compact td, .tbl.compact th { padding: 8px 10px; }

.empty { padding: 44px 20px; text-align: center; color: var(--ink-3); }
.empty-ico { font-size: 26px; color: var(--ink-4); margin-bottom: 6px; }
.empty-t { font-size: 14px; color: var(--ink-2); margin: 0 0 4px; }
.empty p { font-size: 13px; color: var(--ink-3); margin: 0; }

/* ---------- 分页 ---------- */
.pager { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 16px 0 4px; }
.pager .pg {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 32px; height: 32px; padding: 0 10px;
  border: 1px solid var(--line); border-radius: var(--r-sm);
  background: #fff; color: var(--ink-2); font-size: 13px;
}
.pager a.pg:hover { border-color: #cbd4e1; background: var(--bg-2); }
.pager .pg.on { background: var(--brand); border-color: var(--brand); color: #fff; }
.pager .pg.disabled { color: var(--ink-4); background: var(--bg-2); }
.pager .pg.gap { border: 0; background: transparent; color: var(--ink-4); }
.pg-info { margin-left: auto; font-size: 12px; color: var(--ink-4); }

/* ---------- 代码 ---------- */
code, pre, .code { font-family: var(--mono); }
.code-inline {
  padding: 2px 6px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--bg-2);
  font-size: 12.5px;
  color: var(--ink-2);
}
pre.code, .code {
  margin: 0 0 12px;
  padding: 14px 16px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--bg-2);
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--ink-2);
}
pre.code code { color: inherit; }

/* ---------- 页头 ---------- */
.topbar {
  position: sticky; top: 0; z-index: 40;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, .86);
  backdrop-filter: saturate(180%) blur(12px);
}
.topbar-in { display: flex; align-items: center; gap: 32px; height: 62px; }
.brand { display: inline-flex; align-items: center; gap: 9px; color: var(--ink); font-weight: 650; }
.brand:hover { color: var(--ink); }
.brand-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 7px;
  background: var(--ink); color: #fff;
  font: 600 11px/1 var(--mono);
}
.brand-name { font-size: 15px; letter-spacing: -.01em; }
.mainnav { display: flex; gap: 4px; flex: 1; }
.mainnav a {
  padding: 7px 12px; border-radius: 6px;
  color: var(--ink-3); font-size: 14px; font-weight: 500;
}
.mainnav a:hover { color: var(--ink); background: var(--bg-3); }
.mainnav a.on { color: var(--ink); background: var(--bg-3); }
.topbar-act { display: flex; gap: 8px; align-items: center; margin-left: auto; }

/* 导航条：手机端收进汉堡菜单 */
.nav-burger {
  display: none; width: 34px; height: 34px; padding: 0;
  align-items: center; justify-content: center; flex-direction: column; gap: 4px;
  border: 1px solid var(--line); border-radius: 8px; background: #fff; cursor: pointer;
}
.nav-burger span { display: block; width: 15px; height: 1.5px; background: var(--ink-2); border-radius: 2px; }
.nav-burger[aria-expanded="true"] { background: var(--bg-3); }
.fnav { display: none; border-top: 1px solid var(--line); background: #fff; }
.fnav-in { display: flex; flex-direction: column; padding-top: 6px; padding-bottom: 8px; }
.fnav-in a { padding: 11px 2px; border-bottom: 1px solid var(--line-2); color: var(--ink-2); font-size: 14.5px; }
.fnav-in a:last-child { border-bottom: 0; }
.fnav-in a.on { color: var(--ink); font-weight: 600; }
.nav-user-name { max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.annbar { background: var(--ink); color: #dbe2ec; font-size: 13px; }
.annbar .wrap { display: flex; align-items: center; gap: 8px; height: 36px; }
.annbar .dot { width: 6px; height: 6px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 0 3px rgba(74, 222, 128, .18); }

/* ---------- 首屏 ---------- */
.hero { border-bottom: 1px solid var(--line); background:
  radial-gradient(1000px 420px at 78% -10%, #eaf0ff 0%, transparent 62%),
  linear-gradient(#fff, #fbfcfe); }
.hero-in { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; padding: 72px 24px 76px; }
.pill {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 5px 12px; margin-bottom: 22px;
  border: 1px solid var(--line); border-radius: 999px;
  background: #fff; color: var(--ink-2);
  font-size: 12.5px; font-weight: 500;
}
.hero h1 { font-size: 46px; line-height: 1.16; letter-spacing: -.03em; margin-bottom: 18px; }
.hero .lead { font-size: 16px; line-height: 1.75; color: var(--ink-3); max-width: 30em; margin-bottom: 26px; }
.hero-act { display: flex; gap: 10px; flex-wrap: wrap; }
.kpis { display: flex; gap: 34px; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); }
.kpis > div { display: flex; flex-direction: column; gap: 2px; }
.kpis b { font-size: 22px; font-weight: 650; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.kpis span { font-size: 12.5px; color: var(--ink-3); }

.hero-code {
  border: 1px solid #22303f; border-radius: 12px;
  background: #0d1117; box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.code-head { display: flex; align-items: center; gap: 6px; padding: 11px 14px; border-bottom: 1px solid #1c2733; }
.code-head .d { width: 10px; height: 10px; border-radius: 50%; }
.code-head .r { background: #ff5f57; } .code-head .y { background: #febc2e; } .code-head .g { background: #28c840; }
.code-title { margin-left: 8px; font: 500 11.5px var(--mono); color: #6e7b8c; }
.hero-code pre { margin: 0; padding: 20px; overflow-x: auto; font-size: 12.5px; line-height: 1.85; color: #c9d4e0; }
.hero-code .cm { color: #66788c; }
.hero-code .pr { color: #4ade80; }
.hero-code .st { color: #f0b46b; }
.hero-code .ky { color: #7aa2f7; }
.hero-code .nu { color: #c792ea; }

/* ---------- 区块 ---------- */
.sec { padding: 72px 24px; }
.sec-head { max-width: 620px; margin-bottom: 36px; }
.sec-head.center { max-width: none; margin-left: auto; margin-right: auto; text-align: center; }
.sec-head.center h2 { margin-bottom: 0; }
.sec-more { display: flex; justify-content: center; margin-top: 28px; }
.sec-head h2 { font-size: 28px; letter-spacing: -.02em; margin-bottom: 10px; }
.sec-head p { color: var(--ink-3); font-size: 15px; margin: 0; }
.sec.alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.feat { padding: 24px; border: 1px solid var(--line); border-radius: var(--r); background: #fff; }
.feat-ico {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; margin-bottom: 14px;
  border-radius: 8px; background: var(--brand-soft); color: var(--brand);
  font: 600 13px var(--mono);
}
.feat h3 { font-size: 15px; margin-bottom: 6px; }
.feat p { margin: 0; font-size: 13.5px; color: var(--ink-3); }

/* 接口卡片 */
.cat-block { margin-bottom: 40px; }
.cat-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 14px; }
.cat-head h3 { font-size: 15px; }
.cat-count { font-size: 12px; color: var(--ink-4); }
.api-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.api-card {
  display: block; padding: 18px;
  border: 1px solid var(--line); border-radius: var(--r);
  background: #fff; color: inherit;
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.api-card:hover { border-color: #c3cfe4; box-shadow: var(--shadow); transform: translateY(-1px); color: inherit; }
.api-card-top { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.api-card-name { font-size: 14.5px; font-weight: 600; }
.api-ver { margin-left: auto; font: 500 11px var(--mono); color: var(--ink-4); }
.api-card p { margin: 0 0 12px; font-size: 13px; color: var(--ink-3); line-height: 1.6;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.api-card-foot { display: flex; align-items: center; justify-content: space-between;
  padding-top: 12px; border-top: 1px solid var(--line-2); font-size: 12.5px; }
.api-card-foot .price { font-weight: 600; color: var(--ink); }

/* 套餐 */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; padding: 28px 24px;
  border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff; }
.plan-hot { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand), var(--shadow); }
.plan-tag { position: absolute; top: -10px; left: 24px; padding: 2px 9px; border-radius: 999px;
  background: var(--brand); color: #fff; font-size: 11.5px; font-weight: 600; }
.plan h3 { font-size: 15px; margin-bottom: 4px; }
.plan-price { display: flex; align-items: baseline; gap: 4px; margin: 10px 0 4px; }
.plan-price b { font-size: 34px; font-weight: 680; letter-spacing: -.03em; }
.plan-price span { font-size: 13px; color: var(--ink-3); }
.plan p { font-size: 13px; color: var(--ink-3); }
.plan ul { list-style: none; padding: 14px 0 0; margin: 14px 0 22px; border-top: 1px solid var(--line-2); flex: 1; }
.plan li { position: relative; padding-left: 20px; margin-bottom: 9px; font-size: 13.5px; color: var(--ink-2); }
.plan li::before { content: "✓"; position: absolute; left: 0; color: var(--ok); font-size: 12px; font-weight: 700; }

/* ---------- 登录 / 注册 ---------- */
.auth {
  min-height: calc(100vh - 62px);
  display: flex; align-items: center; justify-content: center;
  padding: 56px 24px; background: var(--bg-2);
}
.auth-card {
  width: 100%; max-width: 420px;
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  padding: 30px 28px; box-shadow: 0 24px 60px -40px rgba(16, 24, 40, .35);
}
.auth-card h1 { font-size: 22px; margin-bottom: 6px; letter-spacing: -.01em; }
.auth-card > p { color: var(--ink-3); font-size: 13.5px; margin-bottom: 22px; }
.auth-card .field { margin-bottom: 15px; }
.auth-card .check { margin: 4px 0 18px; }
.auth-foot { margin-top: 18px; font-size: 13px; color: var(--ink-3); text-align: center; }
.auth-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 9px 12px; margin: -6px 0 16px; border: 1px solid var(--line); border-radius: 9px;
  background: var(--bg-2); font-size: 13px; }
.auth-meta span { color: var(--ink-3); }
.auth-meta b { font-weight: 600; color: var(--ink); }
/* ---------- 登录页（单张卡片） ---------- */
.login-page {
  min-height: calc(100vh - 62px);
  display: flex; align-items: center; justify-content: center;
  padding: 48px 20px;
  background:
    radial-gradient(760px 380px at 50% -12%, #edf4ff 0%, rgba(237, 244, 255, 0) 70%),
    #f7f9fc;
}
.login-card {
  width: 100%; max-width: 400px;
  background: #fff; border: 1px solid #e7ecf4; border-radius: 18px;
  padding: 34px 30px 26px;
  box-shadow: 0 22px 54px -38px rgba(16, 24, 40, .45);
}
.login-head { display: flex; flex-direction: column; align-items: center; text-align: center; margin-bottom: 24px; }
.login-logo {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; margin-bottom: 12px;
  border-radius: 12px; background: var(--brand); color: #fff;
  font: 600 15px/1 var(--mono);
}
.login-head h1 { margin: 0 0 5px; font-size: 19px; letter-spacing: -.01em; }
.login-head p { margin: 0; font-size: 12.5px; color: var(--ink-3); }
.login-card .field { margin-bottom: 13px; }
.login-card .inp { height: 44px; border-radius: 10px; }
.login-card .btn-lg { height: 46px; border-radius: 10px; font-size: 15px; margin-top: 6px; }
.login-card .auth-or { margin: 18px 0 12px; }
.login-foot { margin-top: 18px; text-align: center; font-size: 13px; color: var(--ink-3); }
.login-foot a { color: var(--brand); font-weight: 500; }
.login-foot a:hover { text-decoration: underline; }
@media (max-width: 860px) {
  .login-page { padding: 22px 16px; align-items: flex-start; min-height: 0; }
  .login-card { padding: 26px 20px 22px; border-radius: 16px; max-width: 100%; }
  .login-card .inp { height: 46px; font-size: 16px; }
  .login-card .btn-lg { height: 48px; }
}

.auth-side { display: none; }
.auth-main { display: flex; align-items: center; justify-content: center; padding: 40px 24px; }

/* ---------- 文档 ---------- */
.doc-head { padding: 46px 24px 30px; border-bottom: 1px solid var(--line); background: var(--bg-2); }
.doc-head h1 { font-size: 30px; margin-bottom: 8px; }
.doc-head p { color: var(--ink-3); margin: 0; max-width: 60em; }
.doc-grid { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 44px; padding: 36px 24px 72px; align-items: start; }
.doc-side { position: sticky; top: 80px; }
.doc-side h4 { font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-4); margin: 0 0 10px; }
.doc-cat { margin-bottom: 22px; }
.doc-cat a { display: block; padding: 5px 10px; margin-left: -10px; border-radius: 5px;
  font-size: 13.5px; color: var(--ink-3); }
.doc-cat a:hover, .doc-cat a.on { background: var(--bg-3); color: var(--ink); }
.doc-detail { scroll-margin-top: 84px; padding-bottom: 36px; margin-bottom: 26px; border-bottom: 1px solid var(--line-2); }
.doc-detail h2 { font-size: 20px; margin-bottom: 6px; }
.doc-detail .req { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 12px 0 16px; }
.req code { padding: 5px 9px; border-radius: 5px; background: var(--bg-3); font-size: 12.5px; color: var(--ink-2); }
.doc-detail h3 { font-size: 13px; font-weight: 600; margin: 20px 0 8px; color: var(--ink-2); }

/* FAQ */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); padding: 16px 0; }
.faq summary { cursor: pointer; font-weight: 550; font-size: 14.5px; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; float: right; color: var(--ink-4); }
.faq details[open] summary::after { content: "−"; }
.faq p { margin: 10px 0 0; font-size: 14px; color: var(--ink-3); }

/* 公告 */
.news-list { display: grid; gap: 14px; }
.news-item { display: block; padding: 20px 22px; border: 1px solid var(--line); border-radius: var(--r);
  background: #fff; color: inherit; }
.news-item:hover { border-color: #c3cfe4; color: inherit; }
.news-item h3 { font-size: 15px; margin-bottom: 4px; }
.news-meta { display: flex; gap: 10px; align-items: center; font-size: 12px; color: var(--ink-4); margin-bottom: 8px; }
.news-item p { margin: 0; font-size: 13.5px; color: var(--ink-3); }
.prose p { margin: 0 0 12px; color: var(--ink-2); }
.prose h3 { margin: 22px 0 8px; font-size: 15px; }

/* ---------- 页脚 ---------- */
.foot { border-top: 1px solid var(--line); background: var(--bg-2); margin-top: 0; }
.foot-in { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; padding: 48px 24px 36px; }
.foot-brand { font-weight: 650; margin-bottom: 8px; }
.foot-col p { font-size: 13px; color: var(--ink-3); margin: 0; max-width: 26em; }
.foot-col h4 { font-size: 12px; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-4); margin: 0 0 12px; }
.foot-col a { display: block; font-size: 13.5px; color: var(--ink-2); margin-bottom: 8px; }
.foot-col a:hover { color: var(--brand); }
.foot-bot { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between;
  padding: 16px 24px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--ink-4); }

/* ---------- KPI / 进度 / 图表 ---------- */
.kpi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 20px; }
.kpi { padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--r); background: #fff; }
.kpi-l { font-size: 12.5px; color: var(--ink-3); margin-bottom: 6px; }
.kpi b { display: block; font-size: 26px; font-weight: 650; letter-spacing: -.025em; font-variant-numeric: tabular-nums; }
.kpi-s { margin-top: 4px; font-size: 12px; color: var(--ink-4); }

.progress { height: 6px; border-radius: 999px; background: var(--bg-3); overflow: hidden; }
.progress i { display: block; height: 100%; border-radius: 999px; background: var(--brand); transition: width .4s ease; }
.quota-num { font-size: 26px; font-weight: 650; letter-spacing: -.02em; margin-bottom: 8px; font-variant-numeric: tabular-nums; }
.quota-num span { font-size: 13px; font-weight: 400; color: var(--ink-4); margin-left: 6px; }

.bars { display: flex; align-items: flex-end; gap: 4px; padding-top: 18px; }
.bar-col { position: relative; flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; }
.bar-col .bar { width: 100%; max-width: 26px; background: #cfdcff; border-radius: 3px 3px 0 0; transition: background .15s; }
.bar-col:hover .bar { background: var(--brand); }
.bar-val { position: absolute; top: -16px; font-size: 10.5px; color: var(--ink-4); font-variant-numeric: tabular-nums; }
.bar-lab { margin-top: 6px; font-size: 10.5px; color: var(--ink-4); white-space: nowrap; }

/* 列表 */
.mini-list { list-style: none; margin: 0; padding: 0; }
.mini-list li { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line-2); font-size: 13px; }
.mini-list li:last-child { border-bottom: 0; }
.mini-list code { font-size: 12px; color: var(--ink-2); }
.mini-list .badge { margin-left: auto; }

.kv { display: grid; gap: 10px; }
.kv-row { display: flex; justify-content: space-between; gap: 16px; font-size: 13.5px; }
.kv-row > * { min-width: 0; }
.kv-row .kv code, .kv-row .kv b { word-break: break-all; overflow-wrap: anywhere; }
.kv-row span { color: var(--ink-3); }
.kv-row b { font-weight: 600; }

/* 过滤器 */
.filterbar { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; padding: 16px 18px;
  margin-bottom: 18px; border: 1px solid var(--line); border-radius: var(--r); background: var(--bg-2); }
.filterbar .field { min-width: 150px; }
.filterbar .inp { height: 34px; font-size: 13px; background: #fff; }
.filterbar .btn { height: 34px; }
.filterbar .grow { flex: 1; min-width: 200px; }

.seg { display: inline-flex; padding: 2px; border: 1px solid var(--line); border-radius: 7px; background: var(--bg-2); }
.seg-item { padding: 5px 12px; border-radius: 5px; font-size: 13px; color: var(--ink-3); }
.seg-item.on { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); font-weight: 500; }

.tabs { display: flex; gap: 22px; border-bottom: 1px solid var(--line); margin-bottom: 20px; }
.tab { padding: 10px 0; font-size: 14px; color: var(--ink-3); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tab.on { color: var(--ink); border-bottom-color: var(--brand); font-weight: 550; }

/* 页头面包屑 */
.page-head { padding: 40px 24px 28px; border-bottom: 1px solid var(--line); background: var(--bg-2); }
.page-head h1 { font-size: 26px; margin-bottom: 6px; }
.page-head p { margin: 0; color: var(--ink-3); font-size: 14px; }
.crumbs { font-size: 12.5px; color: var(--ink-4); margin-bottom: 8px; }
.crumbs a { color: var(--ink-3); }
.page { padding: 32px 24px 72px; }

.key-box { display: flex; gap: 8px; align-items: center; margin-top: 10px; flex-wrap: wrap; }
.key-box code { flex: 1; min-width: 240px; padding: 10px 12px; border: 1px dashed #b7e6d3;
  border-radius: var(--r-sm); background: #fff; font-size: 13px; word-break: break-all; }

/* ---------- 首页大图 hero ---------- */
.hhero {
  position: relative; overflow: hidden;
  background: #e9eefb center / cover no-repeat;
  border-bottom: 1px solid var(--line); text-align: center;
}
.hhero::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,.72), rgba(255,255,255,.9));
}
.hhero.has-img::before { background: linear-gradient(180deg, rgba(255,255,255,.16), rgba(255,255,255,.38)); }
.hhero-in { position: relative; z-index: 1; max-width: 980px; margin: 0 auto; padding: 58px 24px 52px; }
.hhero h1 { margin: 0 0 12px; font-size: 38px; letter-spacing: -.02em; }
.hhero-sub { margin: 0 auto 24px; max-width: 620px; font-size: 14.5px; line-height: 1.8; color: var(--ink-3); }
.hhero.has-img h1, .hhero.has-img .hhero-sub { color: #17202e; text-shadow: 0 1px 0 rgba(255,255,255,.65); }

.hsearch {
  display: flex; align-items: center; gap: 8px; max-width: 520px; margin: 0 auto 26px;
  height: 46px; padding: 0 15px; background: rgba(255,255,255,.94);
  border: 1px solid rgba(255,255,255,.75); border-radius: 999px;
  box-shadow: 0 12px 30px -20px rgba(16,24,40,.6);
}
.hsearch .ic { color: var(--ink-3); flex: none; }
.hsearch input { flex: 1; min-width: 0; border: 0; background: transparent; outline: none; font-size: 14px; color: #1f2733; }

.hstats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; max-width: 860px; margin: 0 auto; }
/* 磨砂玻璃小卡：数字在上、说明在下居中，右边一个蓝色线性图标，背景图透出来 */
.hstat {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  padding: 15px 52px 15px 16px;
  text-align: center; border-radius: 12px;
  background: rgba(255, 255, 255, .2);
  border: 1px solid rgba(255, 255, 255, .5);
  -webkit-backdrop-filter: blur(7px) saturate(150%);
  backdrop-filter: blur(7px) saturate(150%);
}
.hstat b { display: block; font-size: 22px; font-weight: 600; letter-spacing: -.01em; color: #101826; font-variant-numeric: tabular-nums; line-height: 1.25; }
.hstat span { display: block; margin-top: 2px; font-size: 12.5px; color: #46536a; }
.hstat > .ic {
  position: absolute; right: 15px; top: 50%; transform: translateY(-50%);
  width: 28px; height: 28px; color: var(--brand); stroke-width: 1.9; opacity: 1;
}
.hhero:not(.has-img) .hstat { background: rgba(255, 255, 255, .62); border-color: rgba(255, 255, 255, .9); }
.hhero.has-img .hstat b, .hhero.has-img .hstat span { text-shadow: 0 1px 2px rgba(255, 255, 255, .55); }

.hot-empty { padding: 34px 0; text-align: center; color: var(--ink-4); font-size: 13px; }

/* ---------- 头像（首字母 + 邮箱头像） ---------- */
.avatar, .nav-ava { position: relative; overflow: hidden; }
.avatar .ava-ch, .nav-ava .ava-ch { font-style: normal; line-height: 1; }
.avatar > img, .nav-ava > img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block;
}
.nav-ava {
  display: inline-flex; align-items: center; justify-content: center;
  width: 20px; height: 20px; margin-right: 6px; border-radius: 50%;
  background: var(--brand-soft); color: var(--brand); font-size: 11px; font-weight: 600;
}

/* ---------- 首页新版 ---------- */
.ic { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.hero2 { border-bottom: 1px solid var(--line); background: #fff; }
.hero2-in {
  display: grid; grid-template-columns: 1.06fr .94fr; gap: 48px; align-items: start;
  padding: 60px 24px 56px;
}
.hero2-txt, .quick { min-width: 0; }
.hero2 .tag {
  display: inline-flex; align-items: center; height: 26px; padding: 0 11px;
  border: 1px solid var(--line); border-radius: 999px; background: #fbfcfe;
  color: var(--ink-3); font-size: 12px;
}
.hero2 h1 { margin: 16px 0 14px; font-size: 40px; line-height: 1.2; letter-spacing: -.025em; }
.hero2 .lead { margin: 0 0 24px; max-width: 32em; font-size: 15.5px; line-height: 1.75; color: var(--ink-3); }
.hero2-meta {
  display: flex; flex-wrap: wrap; margin-top: 34px; padding-top: 20px;
  border-top: 1px solid var(--line-2);
}
.hero2-meta > div { flex: 1 1 0; min-width: 96px; padding-right: 14px; }
.hero2-meta b { display: block; font-size: 21px; font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.hero2-meta span { font-size: 12px; color: var(--ink-4); }

.quick {
  padding: 22px 22px 20px; border: 1px solid var(--line); border-radius: 14px;
  background: #fff; box-shadow: 0 26px 60px -46px rgba(16, 24, 40, .55);
}
.quick h3 { margin: 0 0 16px; font-size: 15px; letter-spacing: -.01em; }
.quick-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.quick-steps li { display: flex; gap: 10px; }
.quick-steps .n {
  flex: none; width: 22px; height: 22px; margin-top: 1px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--brand-soft); border: 1px solid #dbe6fb; color: var(--brand);
  font-size: 11px; font-weight: 600;
}
.quick-steps b { font-size: 13.5px; }
.quick-steps p { margin: 2px 0 0; font-size: 12.5px; line-height: 1.6; color: var(--ink-3); }
.quick-code {
  margin-top: 18px; padding: 12px 14px; overflow: auto;
  background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 10px;
}
.quick-code code { font: 11.5px/1.9 var(--mono); color: #334155; white-space: pre; }
.quick-code .c { color: var(--ink-4); }

.feat-ico { color: var(--brand); background: var(--brand-soft); }
.feat-ico .ic { width: 17px; height: 17px; }

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
  .hero-in { grid-template-columns: 1fr; gap: 40px; padding: 56px 24px 60px; }
  .hero2-in { grid-template-columns: 1fr; gap: 30px; padding: 46px 24px 44px; }
  .hero2 h1 { font-size: 34px; }
  .hero h1 { font-size: 38px; }
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .api-cards { grid-template-columns: repeat(2, 1fr); }
  .plans { grid-template-columns: 1fr; }
  .auth { grid-template-columns: 1fr; }
  .auth-side { display: none; }
  .doc-grid { grid-template-columns: 1fr; gap: 28px; }
  .doc-side { position: static; }
  .panel-grid { grid-template-columns: 1fr; }
}
/* 导航在窄屏（含平板竖屏）收进汉堡菜单，避免挤爆 */
@media (max-width: 900px) {
  .topbar-in { gap: 12px; height: 56px; }
  .mainnav { display: none; }
  .nav-burger { display: inline-flex; }
  .fnav:not([hidden]) { display: block; }
  .nav-logout { display: none; }
  .nav-user-name { display: none; }
  .topbar-in .brand-name { font-size: 14px; max-width: 46vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}

@media (max-width: 720px) {
  /* 详情里的 kv 组：手机上改成一行一个，别挤成竖排字 */
  .kv-row { flex-direction: column; align-items: stretch; gap: 12px; }
  .kv-row .kv { width: 100%; }
  .kv-row .kv label { display: block; font-size: 12px; color: var(--ink-4); margin-bottom: 3px; }
  .auth { padding: 24px 14px; align-items: flex-start; }
  .auth-card { padding: 22px 18px; border-radius: 14px; max-width: 100%; }
  .auth-card h1 { font-size: 20px; }
  .auth-card > p { margin-bottom: 18px; }
  .auth-card .inp, .auth-card select.inp { height: 46px; font-size: 16px; }
  .auth-card textarea.inp { font-size: 16px; }
  .auth-card .btn-lg { height: 48px; font-size: 15px; }
  .auth-card .field { margin-bottom: 13px; }
  .wrap, .sec, .doc-head, .doc-grid, .page, .page-head, .hero-in { padding-left: 18px; padding-right: 18px; }
  .hero h1 { font-size: 30px; }
  .hero2 h1 { font-size: 27px; }
  .hhero-in { padding: 40px 18px 36px; }
  .hhero h1 { font-size: 26px; }
  .hhero-sub { font-size: 13.5px; margin-bottom: 18px; }
  .hsearch { height: 42px; margin-bottom: 20px; }
  .hstats { grid-template-columns: 1fr 1fr; gap: 9px; }
  .hstat { padding: 11px 40px 11px 10px; border-radius: 10px; }
  .hstat b { font-size: 17px; }
  .hstat span { font-size: 11px; }
  .hstat > .ic { right: 10px; width: 24px; height: 24px; }
  .hero2 .lead { font-size: 14.5px; }
  .hero2-in { padding: 34px 18px 34px; }
  .hero2-meta { margin-top: 26px; gap: 12px 0; }
  .hero2-meta b { font-size: 18px; }
  .quick-code code { font-size: 10.5px; }
  .quick { padding: 18px; }
  .hero .lead { font-size: 15px; }
  .kpis { gap: 20px; flex-wrap: wrap; }
  .sec { padding-top: 48px; padding-bottom: 48px; }
  .sec-head h2 { font-size: 22px; }
  .api-cards { grid-template-columns: 1fr; }
  .g2, .g3, .g4 { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .span-2 { grid-column: auto; }
  .foot-in { grid-template-columns: 1fr; gap: 26px; padding: 36px 18px 26px; }
  .kpi-grid { grid-template-columns: 1fr 1fr; }
  .card.pad { padding: 18px; }
  .hero-code pre { font-size: 11.5px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

/* ---------- 补充组件 ---------- */
.narrow { max-width: 820px; margin: 0 auto; }
.h1 { font-size: 26px; letter-spacing: -.02em; margin-bottom: 6px; }
.small-b { font-size: 19px !important; }
.hero-txt { min-width: 0; }
.row-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; max-width: none; }
.row-head p { margin: 0; }
.cat-list { display: block; }
.quota { padding: 2px 0 4px; }

.steps { list-style: none; counter-reset: s; margin: 4px 0 18px; padding: 0; }
.steps li { position: relative; padding: 0 0 16px 34px; counter-increment: s; }
.steps li::before {
  content: counter(s, decimal-leading-zero);
  position: absolute; left: 0; top: 1px;
  width: 24px; height: 24px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); background: var(--bg-2);
  font: 600 10.5px var(--mono); color: var(--ink-3);
}
.steps li::after { content: ""; position: absolute; left: 12px; top: 28px; bottom: 4px; width: 1px; background: var(--line-2); }
.steps li:last-child::after { display: none; }
.steps b { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 2px; }
.steps span { font-size: 13px; color: var(--ink-3); }

.side-list { list-style: none; margin: 0; padding: 0; }
.side-list li { display: flex; align-items: center; gap: 8px; padding: 7px 0;
  border-bottom: 1px solid var(--line-2); font-size: 13px; }
.side-list li:last-child { border-bottom: 0; }
.side-list a { color: var(--ink-2); flex: 1; }
.side-list a:hover { color: var(--brand); }
.mini-method { font: 600 10px/1.6 var(--mono); letter-spacing: .04em; color: var(--ink-4); }
.doc-main { min-width: 0; }

.code-dist { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.code-dist li { display: flex; align-items: center; justify-content: space-between;
  padding: 8px 10px; border: 1px solid var(--line-2); border-radius: 6px; font-size: 12.5px; }
.code-dist b { font-family: var(--mono); font-weight: 600; }
.code-dist span { color: var(--ink-3); }

.err-txt { color: var(--err); font-size: 12px; border-bottom: 1px dotted var(--err); cursor: help; }

.key-reveal { border-left-width: 4px; }
.key-reveal b { display: block; margin-bottom: 4px; }

@media (max-width: 720px) {
  .row-head { flex-direction: column; align-items: flex-start; }
  .code-dist { grid-template-columns: 1fr; }
  .h1 { font-size: 21px; }
}

/* ---------- 工单 ---------- */
.thread { display: flex; flex-direction: column; gap: 12px; }
.msg {
  border: 1px solid #eef1f7; border-radius: 12px; padding: 11px 14px;
  background: #fbfcff; max-width: 94%;
}
.msg-user { align-self: flex-start; }
.msg-admin { align-self: flex-end; background: #f2f7ff; border-color: #dbe8ff; }
.msg-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 6px; font-size: 11.5px; color: var(--ink-4); }
.msg-h b { font-size: 12.5px; font-weight: 600; color: var(--ink-2); }
.msg-b { font-size: 13.5px; line-height: 1.72; color: var(--ink); word-break: break-word; }
.ticket-status-row {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  margin-top: 18px; padding-top: 14px; border-top: 1px solid #eef1f7;
}
.ticket-status-row .inline { margin: 0; display: flex; }

@media (max-width: 720px) {
  .msg { max-width: 100%; padding: 10px 12px; }
  .msg-b { font-size: 13px; }
  .ticket-tbl { table-layout: fixed; }
  .ticket-tbl th, .ticket-tbl td { padding: 9px 7px; font-size: 12px; word-break: break-word; box-sizing: border-box; }
  .ticket-tbl .c-cat, .ticket-tbl .c-prio, .ticket-tbl .c-time { display: none; }
  .ticket-tbl .t-main { width: 38%; }
  .ticket-tbl .t-user { width: 22%; }
  .ticket-tbl .t-status { width: 24%; }
  .ticket-tbl .t-ops { width: 16%; }
  .ticket-tbl .ops .btn { padding: 0 5px; font-size: 11px; }
  .ticket-tbl .t-user .tiny { display: none; }
  .ticket-tbl .t-user { line-height: 1.35; }
  .ticket-tbl .badge { white-space: nowrap; font-size: 11px; padding: 2px 7px; }
  .ticket-status-row .btn { flex: 1 1 auto; }
}

/* ---------------- 聚合登录（前台入口 / 绑定列表） ---------------- */
.auth-or { display: flex; align-items: center; gap: 10px; margin: 16px 0 12px; color: var(--ink-4); font-size: 12px; }
.auth-or::before, .auth-or::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.oauth-login { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.oauth-login-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 38px; border: 1px solid var(--line); border-radius: var(--r-sm);
  background: var(--bg); color: var(--ink-2); font-size: 13px; text-decoration: none;
  transition: border-color .15s, background .15s;
}
.oauth-login-btn:hover { border-color: #c9d3e3; background: var(--bg-2); }
.oauth-login-btn .ic { width: 16px; height: 16px; }

.oauth-binds { display: flex; flex-direction: column; gap: 8px; }
.oauth-bind {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r); background: var(--bg);
}
.oauth-bind.on { background: var(--bg-2); }
.oauth-bind-main { min-width: 0; overflow: hidden; }
.oauth-bind-main .small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.oauth-bind-main b { font-size: 13.5px; }
.oauth-bind form { margin: 0; flex: none; }

/* ---------- 圆角统一放大：框框不要那么方 ---------- */
:root { --r-sm: 9px; --r: 14px; --r-lg: 18px; }

.card, .feat, .news-item, .plan, .kpi, .editor, .api-card, .quick, .panel,
.alert, .tbl-wrap, .code, pre.code, .quota, .seg,
.cat-block, .doc-side, .empty { border-radius: 18px; }

.inp, select.inp, textarea.inp { border-radius: 12px; }
.btn { border-radius: 11px; }
.btn-sm { border-radius: 9px; }
.btn-lg { border-radius: 13px; }
.btn-xs { border-radius: 8px; }
.badge, .pill, .plan-tag { border-radius: 999px; }
.mainnav a { border-radius: 9px; }
.nav-burger { border-radius: 10px; }
.brand-mark { border-radius: 9px; }
.hstat { border-radius: 14px; }
.login-logo { border-radius: 14px; }
.auth-card, .login-card { border-radius: 22px; }
.code-head, .quick-code { border-radius: 12px; }
.m-, .req code { border-radius: 7px; }
.fnav-in a { border-radius: 0; }
@media (max-width: 720px) {
  .hstat { border-radius: 16px; }
  .card, .feat, .api-card, .login-card, .auth-card, .tbl-wrap { border-radius: 16px; }
  .inp, select.inp, textarea.inp { border-radius: 12px; }
  .btn { border-radius: 11px; }
  .btn-lg { border-radius: 13px; }
}

/* ---------- 六块数据卡：磨砂小卡，数字居中，蓝色图标在右 ---------- */
.hstats { gap: 12px; }
.hstat {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  padding: 15px 16px; text-align: center; border-radius: 18px;
  background: rgba(255, 255, 255, .22);
  border: 1px solid rgba(255, 255, 255, .55);
  -webkit-backdrop-filter: blur(9px) saturate(160%);
  backdrop-filter: blur(9px) saturate(160%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55), 0 8px 18px -16px rgba(16, 24, 40, .45);
}
.hstat b { font-size: 24px; line-height: 1.2; }
.hstat span { margin-top: 2px; font-size: 12.5px; }
.hstat > .ic {
  position: absolute; right: 13px; top: 50%; transform: translateY(-50%);
  width: 26px; height: 26px; flex: none;
  color: #2f6bff; stroke-width: 1.6; opacity: .92;
}
.hhero:not(.has-img) .hstat { background: rgba(255, 255, 255, .66); border-color: rgba(255, 255, 255, .92); }
@media (max-width: 720px) {
  .hstat { padding: 12px 12px 11px; border-radius: 16px; }
  .hstat b { font-size: 18px; }
  .hstat span { font-size: 11px; }
  .hstat > .ic { width: 21px; height: 21px; right: 10px; }
}

/* ---------- 滑块验证 ---------- */
.slider-cap { margin: 4px 0 14px; }
.slider-cap .sc-track {
  position: relative; height: 44px; overflow: hidden;
  border: 1px solid var(--line); border-radius: 12px; background: #f4f6fa;
}
.slider-cap .sc-fill { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: #e3ecff; }
.slider-cap .sc-text {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-size: 12.5px; color: var(--ink-4); pointer-events: none;
}
.slider-cap .sc-knob {
  position: absolute; left: 3px; top: 3px; width: 52px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid #d9e1ee; border-radius: 9px; background: #fff;
  color: var(--brand); font-size: 16px; line-height: 1; cursor: grab;
  touch-action: none; box-shadow: 0 1px 2px rgba(16, 24, 40, .07);
}
.slider-cap .sc-knob:active { cursor: grabbing; }
.slider-cap.ok .sc-track { border-color: #bfe6cf; background: #f2fbf6; }
.slider-cap.ok .sc-fill { background: #d9f3e4; }
.slider-cap.ok .sc-text { color: #0e9f6e; }
.slider-cap.ok .sc-knob { color: #0e9f6e; border-color: #bfe6cf; cursor: default; }

/* ---------- 首页搜索框也做成透明磨砂 ---------- */
.hsearch {
  background: rgba(255, 255, 255, .22);
  border: 1px solid rgba(255, 255, 255, .55);
  -webkit-backdrop-filter: blur(9px) saturate(160%);
  backdrop-filter: blur(9px) saturate(160%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55), 0 10px 24px -22px rgba(16, 24, 40, .5);
}
.hsearch input { color: #14202f; }
.hsearch input::placeholder { color: #4d5b71; opacity: 1; }
.hsearch .ic { color: #33507c; }
.hhero:not(.has-img) .hsearch { background: rgba(255, 255, 255, .72); border-color: rgba(255, 255, 255, .95); }

/* ---------- 去掉模糊：卡片和搜索框保留透明，但背后不糊 ---------- */
.hstat, .hsearch {
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
.hhero.has-img .hstat b, .hhero.has-img .hstat span { text-shadow: none; }
.hhero.has-img h1, .hhero.has-img .hhero-sub { text-shadow: none; }

/* ---------- 账号设置里的头像 ---------- */
.profile-head { display: flex; align-items: center; gap: 12px; margin: 2px 0 18px; }
.profile-ava { position: relative; overflow: hidden; width: 52px; height: 52px; border-radius: 50%; font-size: 20px; flex: none; }
.profile-head b { display: block; font-size: 15px; color: var(--ink); }
.profile-head span { font-size: 12.5px; }

/* ---------- 站点头像（左上角标记） ---------- */
.brand-mark.has-img, .a-brand .mark.has-img, .login-logo.has-img { position: relative; overflow: hidden; }
.brand-mark > img, .a-brand .mark > img, .login-logo > img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; display: block; border-radius: inherit;
}

/* 站点设置里的头像预览 */
.site-av-row { display: flex; align-items: center; gap: 10px; }
.site-av-row .inp { flex: 1; min-width: 0; }
.site-av-prev { flex: none; width: 34px; height: 34px; border-radius: 9px; overflow: hidden; border: 1px solid var(--line); display: inline-flex; }
.site-av-prev img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------- 接口文档：请求参数表格 ---------- */
.doc-param-wrap { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.doc-param-tbl { table-layout: fixed; }
.doc-param-tbl th, .doc-param-tbl td { border-bottom: 1px solid var(--line-2); vertical-align: top; }
.doc-param-tbl tr:last-child td { border-bottom: 0; }
.doc-param-tbl th:first-child, .doc-param-tbl td:first-child { width: 26%; }
.doc-param-tbl th:nth-child(2), .doc-param-tbl td:nth-child(2) { width: 20%; }
.doc-param-tbl th:nth-child(3), .doc-param-tbl td:nth-child(3) { width: 15%; }
.doc-param-tbl td code { word-break: break-all; }
@media (max-width: 720px) {
  .doc-param-tbl th, .doc-param-tbl td { padding: 9px 8px; font-size: 12px; }
  .doc-param-tbl th:first-child, .doc-param-tbl td:first-child { width: 29%; }
  .doc-param-tbl th:nth-child(2), .doc-param-tbl td:nth-child(2) { width: 21%; }
  .doc-param-tbl th:nth-child(3), .doc-param-tbl td:nth-child(3) { width: 16%; }
  .doc-param-tbl td code.code-inline { font-size: 11px; padding: 1px 4px; }
}

/* 文档里的表格：一格一格的边框 */
.doc-param-tbl { border-collapse: collapse; }
.doc-param-tbl th, .doc-param-tbl td { border: 1px solid var(--line); }
.doc-param-tbl thead th { background: var(--bg-2); }
.doc-param-tbl tr:last-child td { border-bottom: 1px solid var(--line); }
.doc-param-wrap .doc-param-tbl th:first-child,
.doc-param-wrap .doc-param-tbl td:first-child { border-left: 0; }
.doc-param-wrap .doc-param-tbl th:last-child,
.doc-param-wrap .doc-param-tbl td:last-child { border-right: 0; }
.doc-param-wrap .doc-param-tbl thead th { border-top: 0; }
.doc-param-wrap .doc-param-tbl tbody tr:last-child td { border-bottom: 0; }
/* 错误码表也一格一框 */
.code-table { border-collapse: collapse; }
.code-table th, .code-table td { border: 1px solid var(--line); }
.code-table thead th { background: var(--bg-2); }
/* 错误码表：状态码 + 中文说明，一条一排不换行 */
.code-table{table-layout:fixed}
.code-table th:nth-child(1), .code-table td:nth-child(1) { width: 62px; white-space: nowrap; text-align: center; font-weight: 600; }
.code-table td:nth-child(2) { white-space: nowrap; overflow: hidden; text-overflow: clip; font-weight: 400; }

@media (max-width: 640px) {
  .code-table th, .code-table td { padding: 8px 6px; font-size: 11.5px; line-height: 1.4; }
  .code-table th { font-size: 11px; }
  .code-table th:nth-child(1), .code-table td:nth-child(1) { width: 44px; }
}

/* ---------- 接口文档：在线调试 ---------- */
.debug-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 14px; }
.debug-grid .field { margin: 0; }
.debug-grid .field > span .req { font-style: normal; font-weight: 600; color: #d92d20; font-size: 11.5px; }
.debug-out { margin-top: 16px; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.debug-out-head { display: flex; align-items: center; gap: 10px; padding: 8px 12px; background: var(--bg-2); border-bottom: 1px solid var(--line-2); }
.debug-out pre.code { margin: 0; border: 0; border-radius: 0; max-height: 420px; overflow: auto; white-space: pre-wrap; word-break: break-word; }
.debug-out .badge.bad { color: #b42318; background: #fef3f2; border-color: #fecdca; }
.debug-out .badge.good { color: #0e9f6e; background: #ecfdf3; border-color: #bbf7d0; }
@media (max-width: 720px) {
  .debug-grid { grid-template-columns: 1fr; gap: 10px; }
}

/* ---------- 状态页：手机端每行一个接口，字段带小标题 ---------- */
@media (max-width: 640px) {
  .st-tbl thead { display: none; }
  .st-tbl tbody tr {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 10px 14px; padding: 14px 0; border-bottom: 1px solid var(--line);
  }
  .st-tbl tbody tr:last-child { border-bottom: 0; }
  .st-tbl tbody td { display: block; padding: 0; border: 0; text-align: left; font-size: 13px; }
  .st-tbl tbody td:first-child { grid-column: 1 / -1; }
  .st-tbl tbody td[data-l]::before {
    content: attr(data-l); display: block; margin-bottom: 2px;
    font-size: 11px; font-weight: 400; color: var(--ink-4);
  }
  .st-tbl.st-avail tbody tr { grid-template-columns: 1fr 1fr 1fr; }
}

/* 状态页：手机端三块数据卡并排一行，避免最后一块单独占半行 */
@media (max-width: 640px) {
  .kpi-grid.st-kpi { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
  .kpi-grid.st-kpi .kpi { padding: 13px 8px; }
  .kpi-grid.st-kpi .kpi-l { font-size: 11px; line-height: 1.3; margin-bottom: 4px; white-space: nowrap; }
  .kpi-grid.st-kpi .kpi b { font-size: 18px; letter-spacing: -.03em; white-space: nowrap; }
}

/* ---------- 前台背景音乐播放器 ---------- */
.mus {
  position: fixed; right: 14px; bottom: 16px; z-index: 70;
  display: flex; align-items: center; gap: 6px;
  padding: 6px 8px; border-radius: 999px;
  background: #fff; border: 1px solid var(--line);
  box-shadow: 0 6px 18px -12px rgba(16, 24, 40, .35);
}
.mus-btn { display: inline-flex; align-items: center; gap: 8px; border: 0; background: none; padding: 0 4px; cursor: pointer; color: var(--ink); }
.mus-ico {
  width: 26px; height: 26px; border-radius: 50%; flex: none;
  background: var(--brand-soft); color: var(--brand);
  display: inline-flex; align-items: center; justify-content: center; font-size: 13px;
}
.mus.on .mus-ico { background: var(--brand); color: #fff; animation: mus-spin 3s linear infinite; }
@keyframes mus-spin { to { transform: rotate(360deg); } }
.mus-name { font-size: 12.5px; max-width: 132px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mus-ctl { display: flex; gap: 2px; }
.mus-mini { width: 24px; height: 24px; border: 0; background: none; color: var(--ink-3); font-size: 16px; line-height: 1; cursor: pointer; border-radius: 6px; }
.mus-mini:hover { background: var(--bg-3); color: var(--ink); }
@media (max-width: 640px) {
  .mus { right: 10px; bottom: 12px; padding: 5px 6px; }
  .mus-name { max-width: 96px; font-size: 12px; }
}
