/* ============================================================
   light 模板主题样式  ·  浅色科技蓝
   单文件 · 无第三方依赖 · 移动端自适应
   ============================================================ */

:root {
  --primary: #4f6ef7;
  --primary-dark: #3d5bf0;
  --primary-soft: #eef2ff;
  --grad: linear-gradient(135deg, #4f6ef7 0%, #6a8dff 100%);

  --bg: #f6f8fb;
  --card: #ffffff;
  --line: #e6eaf2;
  --line-strong: #d8dfeb;

  --text-1: #0f172a;
  --text-2: #475569;
  --text-3: #94a3b8;

  --green: #10b981;
  --green-soft: #ecfdf5;
  --amber: #f59e0b;
  --amber-soft: #fffbeb;
  --sky: #0ea5e9;
  --sky-soft: #f0f9ff;
  --red: #ef4444;
  --red-soft: #fef2f2;

  --radius: 14px;
  --radius-sm: 9px;
  --shadow-1: 0 1px 2px rgba(15, 23, 42, 0.04), 0 4px 16px rgba(15, 23, 42, 0.05);
  --shadow-2: 0 4px 12px rgba(79, 110, 247, 0.12), 0 16px 40px rgba(15, 23, 42, 0.10);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

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

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text-1);
  line-height: 1.65;
  font-size: 15px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: var(--primary); text-decoration: none; }
img, svg { vertical-align: middle; }
button { font-family: inherit; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.main-wrap { flex: 1; }

/* ---------------- 顶部导航 ---------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-1);
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.02em;
}

.logo-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--grad);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(79, 110, 247, 0.35);
  flex-shrink: 0;
}
.logo-mark svg { width: 18px; height: 18px; stroke: #fff; }

.nav-right { display: flex; align-items: center; gap: 10px; }

/* ---------------- 按钮 ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 9px 20px;
  border-radius: 10px;
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.22s ease;
  white-space: nowrap;
}
.btn svg { width: 15px; height: 15px; }

.btn-primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 4px 14px rgba(79, 110, 247, 0.35);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(79, 110, 247, 0.45);
  color: #fff;
}

.btn-ghost {
  background: #fff;
  color: var(--text-2);
  border-color: var(--line-strong);
}
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }

.btn-sm { padding: 6px 14px; font-size: 13px; border-radius: 8px; }

.btn-light {
  background: #fff;
  color: var(--primary);
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
}
.btn-light:hover { transform: translateY(-1px); color: var(--primary-dark); }

.btn-outline {
  background: rgba(255, 255, 255, 0.6);
  color: var(--text-1);
  border-color: rgba(15, 23, 42, 0.14);
}
.btn-outline:hover { border-color: var(--primary); color: var(--primary); background: #fff; }

/* ---------------- Hero ---------------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 84px 0 64px;
  background:
    radial-gradient(700px 340px at 12% -10%, rgba(79, 110, 247, 0.14), transparent 60%),
    radial-gradient(640px 320px at 88% -18%, rgba(14, 165, 233, 0.12), transparent 60%),
    linear-gradient(180deg, #fdfefe 0%, var(--bg) 100%);
}

.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.55;
  pointer-events: none;
  animation: blobFloat 14s ease-in-out infinite;
}
.hero-blob.b1 { width: 360px; height: 360px; background: #dbe5ff; top: -140px; left: -100px; }
.hero-blob.b2 { width: 300px; height: 300px; background: #d8f1ff; top: -80px; right: -80px; animation-delay: -7s; }

@keyframes blobFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(24px, 18px) scale(1.08); }
}

.hero-inner { position: relative; z-index: 1; text-align: center; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  box-shadow: var(--shadow-1);
  animation: fadeUp 0.6s ease both;
}
.hero-badge .dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px var(--green-soft);
}

.hero h1 {
  margin-top: 22px;
  font-size: clamp(30px, 5vw, 46px);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.25;
  animation: fadeUp 0.6s ease 0.08s both;
}
.hero h1 .grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  margin: 14px auto 0;
  max-width: 560px;
  color: var(--text-2);
  font-size: 16px;
  animation: fadeUp 0.6s ease 0.16s both;
}

/* 统计条 */
.stats-row {
  margin: 34px auto 0;
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  animation: fadeUp 0.6s ease 0.24s both;
}

.stat-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 26px;
  min-width: 138px;
  box-shadow: var(--shadow-1);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.stat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); }

.stat-num {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-variant-numeric: tabular-nums;
}
.stat-label { margin-top: 2px; font-size: 12.5px; color: var(--text-3); }

/* 搜索框 */
.search-box {
  margin: 34px auto 0;
  max-width: 620px;
  position: relative;
  animation: fadeUp 0.6s ease 0.32s both;
}
.search-box svg.search-ico {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: 19px; height: 19px;
  stroke: var(--text-3);
  pointer-events: none;
}
.search-box input {
  width: 100%;
  padding: 17px 52px 17px 50px;
  border: 1.5px solid var(--line-strong);
  border-radius: 16px;
  font-size: 15px;
  font-family: inherit;
  background: #fff;
  color: var(--text-1);
  box-shadow: var(--shadow-1);
  outline: none;
  transition: border-color 0.22s ease, box-shadow 0.22s ease;
}
.search-box input::placeholder { color: var(--text-3); }
.search-box input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(79, 110, 247, 0.14);
}
.search-box .search-clear {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px; height: 24px;
  border: none;
  border-radius: 50%;
  background: var(--bg);
  color: var(--text-3);
  font-size: 13px;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
}
.search-box .search-clear:hover { color: var(--text-1); }

/* ---------------- 公告条 ---------------- */
.notice-bar {
  margin: 26px auto 0;
  max-width: 860px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 18px;
  background: var(--sky-soft);
  border: 1px solid #dbeefe;
  border-radius: 12px;
  color: #0c6da0;
  font-size: 13.5px;
  animation: fadeUp 0.6s ease 0.4s both;
}
.notice-bar svg { width: 15px; height: 15px; stroke: var(--sky); flex-shrink: 0; }
.notice-bar .nb-text {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

/* ---------------- 区块标题 ---------------- */
.section { padding: 44px 0 72px; }
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 22px;
}
.section-head h2 { font-size: 21px; font-weight: 800; letter-spacing: -0.02em; }
.section-head .sec-count { font-size: 13px; color: var(--text-3); }

/* ---------------- 卡片网格 ---------------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 18px;
}

.api-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 20px 16px;
  color: var(--text-1);
  box-shadow: var(--shadow-1);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, opacity 0.3s ease;
  overflow: hidden;
}
.api-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--grad);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}
.api-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-2);
  border-color: rgba(79, 110, 247, 0.35);
  color: var(--text-1);
}
.api-card:hover::before { transform: scaleX(1); }

/* 徽章 */
.badge-row { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 13px; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2.5px 9px;
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  font-family: var(--mono), var(--font);
}
.badge:empty { display: none; }

.b-mode  { background: var(--green-soft); color: #059669; border: 1px solid #c7f0e0; }
.b-format{ background: var(--sky-soft);   color: #0284c7; border: 1px solid #d8effd; }
.b-free  { background: var(--green-soft); color: #059669; border: 1px solid #c7f0e0; }
.b-vip   { background: var(--amber-soft); color: #b45309; border: 1px solid #fde9c0; }
.b-off   { background: var(--red-soft);   color: var(--red); border: 1px solid #fcd4d4; display: none; }

.api-card.disabled { opacity: 0.62; }
.api-card.disabled .card-title,
.api-card.disabled .card-desc { text-decoration: line-through; text-decoration-color: rgba(239, 68, 68, 0.4); }
.api-card.disabled:hover { transform: none; box-shadow: var(--shadow-1); border-color: var(--line); }
.api-card.disabled:hover::before { transform: scaleX(0); }
.api-card.disabled .b-off { display: inline-flex; }
.api-card:not(.disabled) .b-off { display: none; }

/* 免费 / VIP 徽章按 data-pay 切换 */
.api-card[data-pay="1"] .b-free { display: none; }
.api-card:not([data-pay="1"]) .b-vip { display: none; }

.card-title {
  font-size: 16.5px;
  font-weight: 800;
  letter-spacing: -0.01em;
  transition: color 0.2s ease;
}
.api-card:hover .card-title { color: var(--primary); }

.card-desc {
  margin-top: 7px;
  color: var(--text-2);
  font-size: 13.5px;
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.card-foot {
  margin-top: 15px;
  padding-top: 13px;
  border-top: 1px dashed var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.card-calls {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: var(--text-3);
  font-variant-numeric: tabular-nums;
}
.card-calls svg { width: 14px; height: 14px; stroke: var(--primary); }
.card-go {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--primary);
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.card-go svg { width: 13px; height: 13px; stroke: var(--primary); }
.api-card:hover .card-go { opacity: 1; transform: translateX(0); }

/* 空状态 / 无结果 */
.empty-tip {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 0;
  color: var(--text-3);
  font-size: 14.5px;
}
.empty-tip svg { width: 44px; height: 44px; stroke: var(--line-strong); margin-bottom: 12px; }

/* ---------------- 滚动淡入动画 ---------------- */
.reveal { opacity: 0; transform: translateY(18px); }
.reveal.in {
  opacity: 1;
  transform: none;
  transition: opacity 0.55s ease, transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--d, 0ms);
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: none; }
}

/* ---------------- 面包屑 ---------------- */
.crumb {
  padding: 18px 0 0;
  font-size: 13.5px;
  color: var(--text-3);
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}
.crumb a { color: var(--text-3); transition: color 0.2s; }
.crumb a:hover { color: var(--primary); }
.crumb .sep { color: var(--line-strong); }
.crumb .cur { color: var(--text-2); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 60vw; }

/* 详情页主体底部留白（避免卡片与页脚粘连） */
.main-doc { padding-bottom: 64px; }

/* ---------------- 详情页头卡 ---------------- */
.doc-head {
  margin-top: 18px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 30px;
  box-shadow: var(--shadow-1);
  position: relative;
  overflow: hidden;
}
.doc-head::after {
  content: "";
  position: absolute;
  top: -60px; right: -60px;
  width: 200px; height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(79, 110, 247, 0.08), transparent 70%);
  pointer-events: none;
}

.doc-badges { display: flex; flex-wrap: wrap; gap: 7px; }
.badge-lg {
  padding: 4px 12px;
  border-radius: 8px;
  font-size: 12.5px;
}
.badge-lg.b-mode  { font-family: var(--mono), var(--font); }
.badge-lg.b-free, .badge-lg.b-vip, .badge-lg.b-off { font-family: var(--font); }

.doc-head h1 {
  margin-top: 14px;
  font-size: clamp(22px, 3.4vw, 30px);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.3;
}
.doc-desc { margin-top: 8px; color: var(--text-2); font-size: 14.5px; }

.doc-meta {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px dashed var(--line);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 12px;
}
.meta-item { min-width: 0; }
.meta-num {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--primary);
  font-variant-numeric: tabular-nums;
}
.meta-num.small { font-size: 15px; color: var(--text-1); }
.meta-label { margin-top: 1px; font-size: 12px; color: var(--text-3); }

/* ---------------- 接口地址 / 示例框 ---------------- */
.addr-block { margin-top: 18px; }
.addr-label {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-2);
  margin-bottom: 8px;
}
.addr-label svg { width: 14px; height: 14px; stroke: var(--primary); }

.addr-box {
  display: flex;
  align-items: stretch;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.addr-box:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(79, 110, 247, 0.12);
}
.addr-box code {
  flex: 1;
  padding: 12px 16px;
  font-family: var(--mono), var(--font);
  font-size: 13px;
  color: var(--text-2);
  word-break: break-all;
  min-width: 0;
  line-height: 1.6;
}
.addr-box code .key-hint { color: var(--red); font-weight: 700; }

.copy-btn {
  flex-shrink: 0;
  border: none;
  border-left: 1px solid var(--line);
  background: var(--primary-soft);
  color: var(--primary);
  padding: 0 18px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background 0.2s ease, color 0.2s ease;
}
.copy-btn svg { width: 14px; height: 14px; }
.copy-btn:hover { background: #e2e8ff; }
.copy-btn.done { background: var(--green-soft); color: #059669; border-left-color: #c7f0e0; }

/* ---------------- 标签页 ---------------- */
.doc-card {
  margin-top: 22px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-1);
  overflow: hidden;
}

.tabs {
  display: flex;
  gap: 2px;
  padding: 8px 12px 0;
  border-bottom: 1px solid var(--line);
  background: #fbfcfe;
  overflow-x: auto;
  scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tab-btn {
  position: relative;
  padding: 12px 20px;
  border: none;
  background: none;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-3);
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.2s ease;
}
.tab-btn::after {
  content: "";
  position: absolute;
  left: 16px; right: 16px; bottom: -1px;
  height: 2.5px;
  border-radius: 3px 3px 0 0;
  background: var(--primary);
  transform: scaleX(0);
  transition: transform 0.25s ease;
}
.tab-btn.active { color: var(--primary); }
.tab-btn.active::after { transform: scaleX(1); }
.tab-btn:hover { color: var(--text-1); }
.tab-btn.active:hover { color: var(--primary); }

.tab-pane { display: none; padding: 24px 26px 28px; animation: fadeUp 0.35s ease; }
.tab-pane.active { display: block; }

.pane-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14.5px;
  font-weight: 800;
  margin: 26px 0 12px;
}
.pane-title:first-child { margin-top: 0; }
.pane-title svg { width: 15px; height: 15px; stroke: var(--primary); }
.pane-title .req-star { color: var(--red); }

/* ---------------- 表格 ---------------- */
.table-wrap {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
table.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
  min-width: 480px;
}
.data-table th {
  text-align: left;
  padding: 11px 16px;
  background: #f8fafc;
  color: var(--text-2);
  font-weight: 700;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.data-table td {
  padding: 11px 16px;
  border-bottom: 1px solid var(--line);
  color: var(--text-2);
  vertical-align: top;
}
.data-table tr:last-child td { border-bottom: none; }
.data-table tbody tr { transition: background 0.15s ease; }
.data-table tbody tr:hover { background: #fafbff; }
.data-table td:first-child { font-family: var(--mono), var(--font); font-weight: 600; color: var(--text-1); white-space: nowrap; }
.data-table .t-req-yes { color: var(--red); font-weight: 700; }
.data-table .t-req-no { color: var(--text-3); }
.data-table tr.key-row td { color: var(--red); font-weight: 700; }
.table-empty { padding: 18px 16px; color: var(--text-3); font-size: 13.5px; text-align: center; }

/* ---------------- 代码块 ---------------- */
.code-box {
  position: relative;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: auto;
  max-height: 420px;
}
.code-box pre {
  padding: 16px 18px;
  font-family: var(--mono), var(--font);
  font-size: 12.8px;
  line-height: 1.75;
  color: #334155;
  white-space: pre;
  min-width: 0;
}
.code-box .code-copy {
  position: absolute;
  top: 10px; right: 10px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text-2);
  border-radius: 7px;
  padding: 4px 11px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  opacity: 0;
}
.code-box:hover .code-copy { opacity: 1; }
.code-box .code-copy:hover { color: var(--primary); border-color: var(--primary); }
.code-box .code-copy.done { color: #059669; border-color: #c7f0e0; background: var(--green-soft); }

/* ---------------- 页脚 ---------------- */
.site-footer {
  margin-top: auto;
  background: #fff;
  border-top: 1px solid var(--line);
  padding: 44px 0 0;
}
.foot-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 36px;
  padding-bottom: 34px;
}
.foot-brand .logo { margin-bottom: 12px; }
.foot-about { color: var(--text-2); font-size: 13.5px; max-width: 420px; }
.foot-about p { margin-bottom: 8px; }

.foot-col h4 {
  font-size: 13.5px;
  font-weight: 800;
  margin-bottom: 14px;
  color: var(--text-1);
}
.foot-col ul { list-style: none; }
.foot-col li { margin-bottom: 9px; }
.foot-col a {
  color: var(--text-2);
  font-size: 13.5px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s ease, transform 0.2s ease;
}
.foot-col a::before {
  content: "";
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--line-strong);
  transition: background 0.2s ease;
}
.foot-col a:hover { color: var(--primary); transform: translateX(2px); }
.foot-col a:hover::before { background: var(--primary); }

.foot-bottom {
  border-top: 1px solid var(--line);
  padding: 16px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: var(--text-3);
}
.foot-bottom a { color: var(--text-3); }
.foot-bottom a:hover { color: var(--primary); }
#runtime_span { font-variant-numeric: tabular-nums; }

/* ---------------- 弹窗（公告） ---------------- */
.modal-mask {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.25s ease;
}
.modal-mask.show { display: flex; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.modal-card {
  width: 460px;
  max-width: 100%;
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(15, 23, 42, 0.3);
  animation: modalIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes modalIn {
  from { opacity: 0; transform: translateY(26px) scale(0.97); }
  to   { opacity: 1; transform: none; }
}
.modal-head {
  padding: 22px 26px 0;
  display: flex;
  align-items: center;
  gap: 12px;
}
.modal-ico {
  width: 42px; height: 42px;
  border-radius: 12px;
  background: var(--primary-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.modal-ico svg { width: 21px; height: 21px; stroke: var(--primary); }
.modal-head h3 { font-size: 17px; font-weight: 800; }

.modal-body {
  padding: 16px 26px 24px;
  color: var(--text-2);
  font-size: 14px;
  line-height: 1.8;
  max-height: 50vh;
  overflow-y: auto;
  word-break: break-word;
}
.modal-foot { padding: 0 26px 24px; display: flex; justify-content: flex-end; }

/* ---------------- 登录 / 注册 弹窗 ---------------- */
.auth-modal-card {
  width: 430px;
  max-width: 100%;
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(15, 23, 42, 0.3);
  animation: modalIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.auth-head {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 10px 14px 0;
  border-bottom: 1px solid var(--line);
  background: #fbfcfe;
}
.auth-tab {
  position: relative;
  padding: 11px 20px;
  border: none;
  background: none;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--text-3);
  cursor: pointer;
  transition: color 0.2s ease;
}
.auth-tab::after {
  content: "";
  position: absolute;
  left: 14px; right: 14px; bottom: -1px;
  height: 2.5px;
  border-radius: 3px 3px 0 0;
  background: var(--primary);
  transform: scaleX(0);
  transition: transform 0.25s ease;
}
.auth-tab.active { color: var(--primary); }
.auth-tab.active::after { transform: scaleX(1); }
.auth-tab:hover { color: var(--text-1); }
.auth-tab.active:hover { color: var(--primary); }

.auth-close {
  margin-left: auto;
  width: 30px; height: 30px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  color: var(--text-3);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  margin-bottom: 6px;
}
.auth-close svg { width: 13px; height: 13px; }
.auth-close:hover { color: var(--text-1); border-color: var(--line-strong); background: var(--bg); }

.auth-body { padding: 22px 26px 26px; }

.auth-pane { display: none; }
.auth-pane.active { display: block; animation: fadeUp 0.3s ease; }

.auth-field { margin-bottom: 14px; }
.auth-field label {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-2);
  margin-bottom: 6px;
}
.auth-field label .auth-soft { color: var(--text-3); font-weight: 400; }
.auth-field input {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--line-strong);
  border-radius: 10px;
  font-size: 14px;
  font-family: inherit;
  background: #fff;
  color: var(--text-1);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.auth-field input::placeholder { color: var(--text-3); }
.auth-field input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(79, 110, 247, 0.13);
}

.auth-cap { display: flex; align-items: stretch; gap: 10px; }
.auth-cap input { flex: 1; min-width: 0; }
.auth-cap-img {
  width: 160px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f4f6fa;
  cursor: pointer;
  object-fit: cover;
  flex-shrink: 0;
}
.auth-cap-btn {
  flex-shrink: 0;
  padding: 0 16px;
  border: none;
  border-radius: 10px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 13px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.2s ease;
  white-space: nowrap;
}
.auth-cap-btn:hover { background: #e2e8ff; }
.auth-cap-btn[disabled] { opacity: 0.6; cursor: not-allowed; }

.auth-msg { min-height: 20px; margin: 2px 0 8px; font-size: 13px; line-height: 1.5; }
.auth-msg:empty { margin: 0; min-height: 0; }
.auth-msg.err { color: var(--red); }
.auth-msg.ok { color: #059669; }

.auth-submit {
  width: 100%;
  padding: 12px;
  font-size: 15px;
  border-radius: 11px;
}
.auth-submit[disabled] { opacity: 0.65; cursor: wait; }

.auth-alt {
  margin-top: 14px;
  text-align: center;
  font-size: 13px;
  color: var(--text-3);
}
.auth-alt a { color: var(--primary); font-weight: 600; }
.auth-alt a:hover { color: var(--primary-dark); }

@media (max-width: 560px) {
  .auth-modal-card { width: 100%; }
  .auth-body { padding: 20px 20px 24px; }
}

/* ---------------- 404 / 维护页 ---------------- */
.center-page {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 24px;
  text-align: center;
}
.center-box h1 {
  font-size: clamp(72px, 14vw, 120px);
  font-weight: 900;
  letter-spacing: -0.04em;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1.1;
}
.center-box h1.text-mode { font-size: clamp(40px, 8vw, 60px); }
.center-box h2 { margin-top: 10px; font-size: 20px; font-weight: 800; }
.center-box p { margin-top: 10px; color: var(--text-2); font-size: 14.5px; }
.center-box .btn { margin-top: 26px; }

/* ---------------- 响应式 ---------------- */
@media (max-width: 860px) {
  .foot-grid { grid-template-columns: 1fr; gap: 26px; }
  .hero { padding: 56px 0 44px; }
  .stat-card { min-width: 108px; padding: 13px 18px; }
  .stat-num { font-size: 21px; }
  .doc-head { padding: 22px 20px; }
  .tab-pane { padding: 20px 18px 24px; }
}

@media (max-width: 560px) {
  .container { padding: 0 16px; }
  .nav-inner { padding: 0 16px; height: 54px; }
  .grid { grid-template-columns: 1fr; gap: 14px; }
  .stats-row { gap: 9px; }
  .stat-card { flex: 1; min-width: 0; padding: 12px 8px; }
  .search-box input { padding: 15px 44px 15px 44px; border-radius: 13px; }
  .section { padding: 34px 0 54px; }
  .hero h1 { font-size: 29px; }
  .hero-sub { font-size: 14px; }
  .notice-bar { font-size: 12.5px; }
  .notice-bar .nb-text { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
  .addr-box { flex-direction: column; }
  .addr-box .copy-btn {
    border-left: none;
    border-top: 1px solid var(--line);
    padding: 10px 0;
    justify-content: center;
  }
  .foot-bottom { justify-content: center; text-align: center; }
  .tabs { padding: 6px 8px 0; }
  .tab-btn { padding: 10px 14px; font-size: 13.5px; }
}

/* ---------------- 减弱动效偏好 ---------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ---------------- 近 7 日调用柱状图 ---------------- */
.trend-section { padding: 8px 0 56px; }
.trend-card {
  position: relative;
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-1);
  padding: 22px 24px 16px;
}
.trend-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: var(--grad);
  opacity: 0.85;
}
.trend-head {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.trend-head h2 {
  font-size: 17px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 8px;
}
.trend-head h2 svg { width: 18px; height: 18px; stroke: var(--primary); }
.trend-badge {
  font-size: 12px;
  font-weight: 700;
  color: var(--primary);
  background: var(--primary-soft);
  border-radius: 999px;
  padding: 3px 10px;
}
.trend-legend {
  margin-left: auto;
  display: flex;
  gap: 14px;
  font-size: 12px;
  color: var(--text-3);
}
.trend-legend i {
  display: inline-block;
  width: 10px; height: 10px;
  border-radius: 3px;
  margin-right: 5px;
}
.k-wrap { position: relative; }
.k-wrap svg { width: 100%; height: auto; display: block; }
.k-bar { cursor: pointer; transition: opacity 0.15s ease; }
.k-wrap:hover .k-bar { opacity: 0.55; }
.k-wrap .k-bar:hover { opacity: 1; }
.k-tip {
  position: absolute;
  display: none;
  pointer-events: none;
  z-index: 5;
  background: #0f172a;
  color: #f8fafc;
  font-size: 12px;
  line-height: 1.7;
  border-radius: 10px;
  padding: 8px 12px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.25);
  white-space: nowrap;
  transform: translate(-50%, -100%);
}
.k-tip b { font-size: 12.5px; }
@media (max-width: 640px) {
  .trend-card { padding: 18px 14px 10px; }
  .trend-legend { display: none; }
}
