/* ==========================================================================
   冬备 · 视觉规范（和冬 OJ 同一套）

   整套语言来自冬 OJ 的「多巴胺」规范，照着抄一遍，不重新发明：
     1. 高饱和撞色（粉 / 黄 / 薄荷 / 紫 / 橙 / 青）
     2. 大圆角 + 2.5px 深色描边 + 4px **硬**阴影（0 模糊、带偏移）
     3. 底色是暖白纸 + 很淡的点阵，像手账
     4. 动效幅度小：抬起 2px、按下去 2px，热闹但不晕

   规矩同样只有三条：
     · 阴影一律是硬的，绝不用柔软投影；
     · 每个色块都描黑边，保证在浅底上依然有分量；
     · 颜色只从 --pink/--yellow/--mint/--violet/--orange/--cyan 里取，不临时调色。

   没有深色模式 —— OJ 也没有。纸一样暖的底是这套视觉的一半，压成暗色就散了。
   ========================================================================== */

:root {
  /* 撞色盘 */
  --pink: #FF3D81;
  --yellow: #FFD23F;
  --mint: #3DDC97;
  --violet: #5B5BFF;
  --orange: #FF7A45;
  --cyan: #00C2D1;

  /* 中性 */
  --ink: #1A1A1A;
  --ink-2: #4A4A55;
  --ink-3: #8B8B99;
  --paper: #FFF8EE;
  --paper-2: #FFEFD9;
  --surface: #FFFFFF;
  --surface-2: #FFFBF3;
  --line: #1A1A1A;
  --line-soft: #E4DCCB;

  /* 状态色（备案状态用色块表达，和 OJ 判题结果一个道理） */
  --ok: #3DDC97;     /* 正常 */
  --wait: #FFD23F;   /* 待验证 */
  --bad: #FF3D81;    /* 驳回 */
  --gone: #B8B8C4;   /* 注销 */

  --font-sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;

  --r-sm: 10px;
  --r: 14px;
  --r-lg: 20px;
  --shadow: 4px 4px 0 var(--line);
  --shadow-sm: 3px 3px 0 var(--line);
  --shadow-lg: 6px 6px 0 var(--line);
  --nav-h: 62px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.7;
  background-color: var(--paper);
  /* 手账感的点阵底纹，很淡，不抢内容 */
  background-image: radial-gradient(rgba(26, 26, 26, 0.07) 1.4px, transparent 1.4px);
  background-size: 22px 22px;
  -webkit-text-size-adjust: 100%;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

a { color: var(--violet); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { margin: 0; line-height: 1.3; font-weight: 800; letter-spacing: -0.01em; }
code, pre, .mono { font-family: var(--font-mono); }
::selection { background: var(--yellow); }

.muted { color: var(--ink-3); }
.small { font-size: 12.5px; }
.strong { font-weight: 800; }
.grow { flex: 1; }
.mt8 { margin-top: 8px; } .mt12 { margin-top: 12px; } .mt16 { margin-top: 16px; }
.mt24 { margin-top: 24px; } .mt32 { margin-top: 32px; }

/* --------------------------------- 导航 ---------------------------------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  min-height: var(--nav-h);
  background: var(--pink);
  border-bottom: 3px solid var(--line);
}
.nav-inner {
  max-width: 1040px; min-height: var(--nav-h); margin: 0 auto; padding: 0 18px;
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 10px; cursor: pointer; user-select: none; }
.brand:hover { text-decoration: none; }
.brand-logo {
  width: 38px; height: 38px; border-radius: 12px; flex-shrink: 0;
  background: var(--yellow); border: 2.5px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 2px 2px 0 var(--line);
  transform: rotate(-4deg);
}
.brand-logo svg { width: 21px; height: 21px; }
.brand-logo path { fill: none; stroke: var(--ink); stroke-width: 4; stroke-linecap: round; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-weight: 900; font-size: 17px; color: #fff; text-shadow: 2px 2px 0 rgba(0, 0, 0, .35); letter-spacing: .5px; }
.brand-sub { font-size: 11px; color: rgba(255, 255, 255, .85); font-weight: 600; }
.nav-links { display: flex; align-items: center; gap: 6px; flex: 1; flex-wrap: wrap; margin-left: auto; }
.nav-link {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 7px 12px; border-radius: 999px; cursor: pointer;
  border: 2.5px solid transparent; background: transparent;
  color: #fff; font-size: 13.5px; font-weight: 700; font-family: inherit;
  transition: transform .12s, background .12s;
}
.nav-link:hover { background: rgba(255, 255, 255, .22); transform: translateY(-2px); text-decoration: none; }
.nav-link.on { background: var(--yellow); color: var(--ink); border-color: var(--line); box-shadow: 2px 2px 0 var(--line); }

/* --------------------------------- 页面 ---------------------------------- */
.page { max-width: 1040px; margin: 0 auto; padding: 24px 18px 70px; flex: 1; width: 100%; }
.page.narrow { max-width: 700px; }
.page.wide { max-width: 1240px; }
.page-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.page-head h1 { font-size: 27px; }
.page-title-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; flex: none;
  border-radius: 13px;
  background: var(--pink); color: #fff;
  border: 2.5px solid var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
}
.page-title-icon svg { width: 21px; height: 21px; }
.page-title-icon path { fill: none; stroke: #fff; stroke-width: 4; stroke-linecap: round; }
.page-sub { color: var(--ink-3); font-size: 12.5px; font-family: var(--font-mono); font-weight: 600; }

/* --------------------------------- 卡片 ---------------------------------- */
.card {
  background: var(--surface);
  border: 2.5px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
}
.card-pad { padding: 18px 20px; }
.card-hover { transition: transform .14s, box-shadow .14s; }
.card-hover:hover { transform: translate(-2px, -2px); box-shadow: var(--shadow-lg); }
.card-title {
  display: flex; align-items: center; gap: 8px;
  font-size: 15.5px; font-weight: 800; margin-bottom: 4px;
}
.card-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 24px; height: 24px; flex: none;
  border-radius: 8px;
  background: var(--paper-2); color: var(--ink);
  border: 2px solid var(--ink);
  font-size: 13px;
}
.card-icon svg { width: 14px; height: 14px; }
.card-icon path { fill: none; stroke: currentColor; stroke-width: 4.5; stroke-linecap: round; }
.divider { height: 2px; background: var(--line-soft); margin: 14px 0; border-radius: 2px; }

/* --------------------------------- 按钮 ---------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 8px 15px; border-radius: 999px; cursor: pointer;
  border: 2.5px solid var(--line); background: var(--surface); color: var(--ink);
  font-size: 13.5px; font-weight: 800; font-family: inherit;
  box-shadow: var(--shadow-sm); transition: transform .1s, box-shadow .1s, background .12s;
  white-space: nowrap;
}
.btn:hover:not(:disabled) { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--line); text-decoration: none; }
.btn:active:not(:disabled) { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--line); }
.btn:disabled { opacity: .5; cursor: not-allowed; box-shadow: none; transform: none; }
.btn-primary { background: var(--pink); color: #fff; }
.btn-mint { background: var(--mint); color: var(--ink); }
.btn-yellow { background: var(--yellow); color: var(--ink); }
.btn-violet { background: var(--violet); color: #fff; }
.btn-danger { background: var(--pink); color: #fff; }
.btn-ghost { background: transparent; box-shadow: none; border-color: transparent; font-weight: 700; }
.btn-ghost:hover:not(:disabled) { background: var(--paper-2); box-shadow: none; transform: none; }
.btn-sm { padding: 5px 11px; font-size: 12.5px; border-width: 2px; box-shadow: 2px 2px 0 var(--line); }
.btn-lg { padding: 11px 22px; font-size: 15px; }
.btn-block { width: 100%; }

/* --------------------------------- 表单 ---------------------------------- */
.field { margin-bottom: 14px; }
.label { display: block; font-size: 12.5px; font-weight: 800; margin-bottom: 5px; color: var(--ink-2); }
.input, .select, .textarea {
  width: 100%; padding: 9px 12px; font-family: inherit; font-size: 14px; color: var(--ink);
  background: var(--surface-2); border: 2.5px solid var(--line); border-radius: var(--r-sm);
  outline: none; transition: box-shadow .12s, background .12s;
}
.input:focus, .select:focus, .textarea:focus { background: #fff; box-shadow: 3px 3px 0 var(--mint); }
.input::placeholder { color: var(--ink-3); }
.textarea { min-height: 92px; resize: vertical; line-height: 1.65; }
.form-hint { font-size: 12px; color: var(--ink-3); margin-top: 5px; line-height: 1.6; }
.form-hint code { background: var(--paper-2); border: 1.5px solid var(--line-soft); padding: 0 5px; border-radius: 5px; }
.checkbox { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-size: 13.5px; font-weight: 700; user-select: none; }
.checkbox input { width: 18px; height: 18px; accent-color: var(--pink); cursor: pointer; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-foot { display: flex; align-items: center; gap: 10px; margin-top: 18px; flex-wrap: wrap; }

/* --------------------------------- 胶囊 / 状态 ---------------------------- */
.pill {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 800;
  border: 2px solid var(--line); background: var(--surface); white-space: nowrap;
}
.pill-ok { background: var(--mint); }
.pill-wait { background: var(--yellow); }
.pill-bad { background: var(--pink); color: #fff; }
.pill-gone { background: var(--gone); color: #fff; }
.pill-no { background: var(--paper-2); font-family: var(--font-mono); }

/* --------------------------------- 统计条 -------------------------------- */
.statbar { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.stat {
  background: var(--surface); border: 2.5px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--shadow); padding: 14px 16px; color: var(--ink);
  display: flex; flex-direction: column; gap: 2px;
}
.stat-label { font-size: 12px; font-weight: 800; color: var(--ink-3); }
.stat-num { font-size: 26px; font-weight: 900; font-family: var(--font-mono); line-height: 1.2; white-space: nowrap; }
.stat-pink { background: var(--pink); color: #fff; }
.stat-pink .stat-label { color: rgba(255, 255, 255, .9); }
.stat-yellow { background: var(--yellow); }
.stat-mint { background: var(--mint); }
.stat-violet { background: var(--violet); color: #fff; }
.stat-violet .stat-label { color: rgba(255, 255, 255, .9); }

/* --------------------------------- 首页 hero ----------------------------- */
.hero { text-align: center; padding: 10px 0 26px; }
.hero-title {
  font-size: 46px; font-weight: 900; letter-spacing: 10px; margin: 0;
  color: var(--ink);
  text-shadow: 4px 4px 0 var(--yellow), 8px 8px 0 rgba(26, 26, 26, .18);
}
.hero-title .dot { color: var(--pink); }
.hero-sub { margin: 14px 0 22px; color: var(--ink-2); font-size: 13.5px; font-weight: 700; }
.search { display: flex; gap: 10px; max-width: 560px; margin: 0 auto; }
.search .input { flex: 1; min-width: 0; }
.hero.compact { padding: 0 0 20px; }
.hero.compact .hero-title { font-size: 30px; letter-spacing: 6px; text-shadow: 3px 3px 0 var(--yellow); }
.hero.compact .hero-sub { display: none; }

/* --------------------------------- 记录行 -------------------------------- */
.site-list { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0; list-style: none; }
/* 名字 / 域名 / 状态 / 号 / 时间 五列。
   名字和域名都用 minmax(0,·) —— 名字给 1.2fr 让长名字不至于把域名挤没，
   域名给 minmax(0, 1fr) 而不是 auto：auto 会让它按内容撑开，
   短名字的行里域名就跑到右边去，一行行对不齐。 */
.site-row {
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) auto auto auto;
  align-items: center; gap: 12px;
  background: var(--surface); border: 2.5px solid var(--line); border-radius: var(--r);
  box-shadow: var(--shadow-sm); padding: 11px 16px;
  transition: transform .14s, box-shadow .14s;
  font-size: 13.5px;
}
.site-row:hover { transform: translate(-2px, -2px); box-shadow: var(--shadow); }
.site-name { font-weight: 800; font-size: 15px; color: var(--ink); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.site-domain { color: var(--ink-3); font-size: 12.5px; font-family: var(--font-mono); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.site-no { font-family: var(--font-mono); font-size: 12px; font-weight: 700; color: var(--ink-2); background: var(--paper-2); border: 2px solid var(--line); border-radius: 8px; padding: 1px 8px; white-space: nowrap; }
.site-time { font-size: 11.5px; color: var(--ink-3); white-space: nowrap; }

.sec-head { display: flex; align-items: center; gap: 12px; margin: 26px 0 12px; }
.sec-head h2 { font-size: 16px; font-weight: 900; display: flex; align-items: center; gap: 7px; }
.sec-head h2::before {
  content: ''; width: 6px; height: 18px; border-radius: 3px;
  background: var(--pink); border: 2px solid var(--line);
}
.sec-head .more { margin-left: auto; font-size: 13px; font-weight: 800; }

/* --------------------------------- 详情卡 -------------------------------- */
.card-head { display: flex; gap: 14px; align-items: flex-start; flex-wrap: wrap; }
.card-title-lg { margin: 0; font-size: 24px; font-weight: 900; letter-spacing: -.5px; }
.card-home { font-size: 12.5px; font-family: var(--font-mono); word-break: break-all; color: var(--violet); }
.card-desc { margin: 12px 0 0; color: var(--ink-2); font-size: 13.5px; }
.card-head .pill { margin-left: auto; margin-top: 4px; }

.kv { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px 20px; margin: 20px 0 0; }
.kv dt { font-size: 11.5px; color: var(--ink-3); font-weight: 800; margin-bottom: 2px; }
.kv dd { margin: 0; font-size: 13.5px; word-break: break-all; }
.kv dd.strong { font-family: var(--font-mono); font-weight: 900; font-size: 15px; }

.note {
  margin: 16px 0 0; padding: 10px 13px; border-radius: var(--r-sm); font-size: 12.5px;
  background: var(--yellow); border: 2px solid var(--line); font-weight: 600;
}

.card-badge { margin-top: 20px; padding-top: 18px; border-top: 2px dashed var(--line-soft); }
.card-badge-head { display: flex; gap: 10px; align-items: baseline; margin-bottom: 8px; flex-wrap: wrap; }
.snippet {
  margin: 0; padding: 12px 14px; overflow: auto; font-size: 12px; line-height: 1.7;
  background: #16161D; color: #E8E8F0; border: 2.5px solid var(--line); border-radius: var(--r-sm);
  white-space: pre-wrap; word-break: break-all; max-height: 200px;
}
.row-acts { display: flex; gap: 9px; align-items: center; flex-wrap: wrap; margin-top: 12px; }
.back { margin-top: 16px; font-size: 13px; }

/* --------------------------------- 申请 / 说明 --------------------------- */
.apply h1, .about h1 { margin: 0 0 8px; font-size: 27px; font-weight: 900; }
.lead { margin: 0 0 20px; color: var(--ink-2); font-size: 14px; }
.about h2 {
  margin: 30px 0 8px; font-size: 16px; font-weight: 800;
  display: flex; align-items: center; gap: 7px;
}
.about h2::before {
  content: ''; width: 6px; height: 16px; border-radius: 3px;
  background: var(--violet); border: 2px solid var(--line);
}
.about p, .about li { color: var(--ink-2); font-size: 14px; }
.about ul { padding-left: 20px; }

.rules {
  background: var(--yellow); border: 2.5px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--shadow); padding: 16px 20px; margin-bottom: 20px;
}
.rules h2 { margin: 0 0 8px; font-size: 15px; font-weight: 900; display: flex; align-items: center; gap: 6px; }
.rules ul { margin: 0; padding-left: 18px; }
.rules li { font-size: 13px; color: var(--ink-2); margin: 4px 0; }
.rules strong { font-weight: 900; }

/* --------------------------------- 步骤卡 -------------------------------- */
.done { max-width: 660px; margin: 0 auto; }
.done-emoji {
  width: 66px; height: 66px; margin: 0 auto 10px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 20px; background: var(--cyan); border: 2.5px solid var(--line);
  box-shadow: var(--shadow-sm); transform: rotate(-5deg);
}
.done-emoji svg { width: 34px; height: 34px; }
.done-emoji path { fill: none; stroke: #fff; stroke-width: 4; stroke-linecap: round; }
.done h1 { text-align: center; font-size: 27px; font-weight: 900; }
.done-no {
  text-align: center; margin: 8px 0 10px;
  font-family: var(--font-mono); font-weight: 900; font-size: 18px;
}
.done-no b {
  background: var(--pink); color: #fff; padding: 2px 10px; border-radius: 8px;
  border: 2px solid var(--line); box-shadow: 2px 2px 0 var(--line);
}
.done .lead { text-align: center; }
.step-card {
  background: var(--surface); border: 2.5px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--shadow); padding: 18px 20px; margin-top: 16px;
}
.step-card h2 { margin: 0 0 8px; font-size: 15px; font-weight: 900; display: flex; align-items: center; gap: 9px; }
.step-no {
  display: inline-grid; place-items: center; width: 24px; height: 24px; flex: none;
  border-radius: 8px; font-size: 12.5px; font-weight: 900;
  background: var(--violet); color: #fff; border: 2px solid var(--line);
}
.step-card p { margin: 0 0 10px; font-size: 13px; color: var(--ink-2); }
.secret-box {
  display: flex; align-items: center; gap: 10px; padding: 10px 13px; margin: 10px 0;
  background: var(--paper-2); border: 2.5px dashed var(--violet); border-radius: var(--r-sm);
}
.secret-box code { font-size: 17px; letter-spacing: 3px; font-weight: 900; font-family: var(--font-mono); }
.secret-box .btn { margin-left: auto; }

.manage-head { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 16px; flex-wrap: wrap; }
.manage-head .btn { margin-left: auto; flex: none; }
.danger-zone { border-color: var(--pink); }
.danger-zone h2 { color: var(--pink); }

.logs { list-style: none; margin: 0; padding: 0; font-size: 12.5px; }
.logs li { padding: 6px 0; border-bottom: 1.5px dashed var(--line-soft); display: flex; gap: 8px; flex-wrap: wrap; align-items: baseline; }
.logs li:last-child { border-bottom: 0; }

/* --------------------------------- 审核台 -------------------------------- */
.admin-head { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 16px; }
.admin-head h1 { font-size: 24px; font-weight: 900; }
.admin-panel {
  background: var(--surface); border: 2.5px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm); padding: 12px 18px; margin-bottom: 14px;
}
.admin-panel summary { cursor: pointer; font-size: 13.5px; font-weight: 800; color: var(--ink-2); }
.admin-panel[open] summary { margin-bottom: 14px; }
.admin-filter { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.admin-filter .input { width: 240px; }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.tab {
  padding: 5px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 800;
  color: var(--ink-2); border: 2px solid var(--line); background: var(--surface);
  box-shadow: 2px 2px 0 var(--line);
}
.tab:hover { background: var(--paper-2); text-decoration: none; transform: translate(-1px, -1px); box-shadow: 3px 3px 0 var(--line); }
.tab.on { background: var(--violet); color: #fff; }

.table-wrap {
  overflow-x: auto; -webkit-overflow-scrolling: touch;
  border: 2.5px solid var(--line); border-radius: var(--r-lg);
  background: var(--surface); box-shadow: var(--shadow);
}
/* 表头是浅黄底，子元素会把卡片圆角"顶出来"两块直角 —— 给 thead 自己收一下 */
.table thead tr:first-child th:first-child { border-top-left-radius: calc(var(--r-lg) - 3px); }
.table thead tr:first-child th:last-child { border-top-right-radius: calc(var(--r-lg) - 3px); }
.table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.table th {
  text-align: left; padding: 10px 12px; font-size: 12px; font-weight: 800; color: var(--ink-2);
  border-bottom: 2.5px solid var(--line); white-space: nowrap; background: var(--paper-2);
}
.table td { padding: 9px 12px; border-bottom: 2px solid var(--line-soft); white-space: nowrap; }
/* 最后一行不留底边：留着会有一条直线穿过卡片底部的圆角，看着像"表格溢出了卡片" */
.table tbody tr:last-child td { border-bottom: 0; }
/* 首尾两行要把卡片的圆角让出来，否则单元格的白底/分隔线会顶出圆角 */
.table tbody tr:first-child td:first-child { border-top-left-radius: calc(var(--r-lg) - 3px); }
.table tbody tr:first-child td:last-child { border-top-right-radius: calc(var(--r-lg) - 3px); }
.table tbody tr:last-child td:first-child { border-bottom-left-radius: calc(var(--r-lg) - 3px); }
.table tbody tr:last-child td:last-child { border-bottom-right-radius: calc(var(--r-lg) - 3px); }
.table tbody tr:hover td { background: var(--surface-2); }
/* 操作列：**不能**把 flex 直接加在 <td> 上。
   给 <td> 设 display:flex 会让它不再是表格单元格，整行的列宽计算就崩了 ——
   表格会变成"每一行各排各的"，分隔线和表头全部对不齐（截图里看到的就是这个）。
   正确做法是 td 保持表格语义，里面套一个 flex 容器。 */
.table .acts { white-space: nowrap; }
.acts-inner { display: flex; gap: 6px; align-items: center; }
.mini {
  padding: 3px 9px; font-size: 11.5px; font-weight: 800; font-family: inherit; cursor: pointer;
  color: var(--ink); background: var(--surface); border: 2px solid var(--line);
  border-radius: 999px; box-shadow: 1.5px 1.5px 0 var(--line);
  transition: transform .1s, box-shadow .1s;
}
.mini:hover { transform: translate(-1px, -1px); box-shadow: 2.5px 2.5px 0 var(--line); }
.mini.ok { background: var(--mint); }
.mini.danger { background: var(--pink); color: #fff; }

.pager { display: flex; gap: 6px; margin-top: 16px; flex-wrap: wrap; }
.pg {
  padding: 4px 11px; border-radius: 999px; font-size: 12.5px; font-weight: 800;
  border: 2px solid var(--line); background: var(--surface); color: var(--ink-2);
  box-shadow: 2px 2px 0 var(--line);
}
.pg.on { background: var(--pink); color: #fff; }
.pg:hover { text-decoration: none; transform: translate(-1px, -1px); box-shadow: 3px 3px 0 var(--line); }

/* --------------------------------- 空状态 -------------------------------- */
.empty { text-align: center; padding: 46px 20px; color: var(--ink-3); }
.empty-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 62px; height: 62px; margin-bottom: 12px;
  border-radius: 20px;
  background: var(--surface-2); color: var(--ink-3);
  border: 2.5px solid var(--line-soft);
}
.empty-icon svg { width: 32px; height: 32px; }
.empty-icon path { fill: none; stroke: var(--ink-3); stroke-width: 4; stroke-linecap: round; }
.empty-title { font-weight: 800; font-size: 16px; color: var(--ink-2); }
.empty-desc { font-size: 12.5px; margin-top: 5px; }
.result-head { color: var(--ink-3); font-size: 13px; margin: 0 0 8px; font-weight: 700; }

.cta { text-align: center; padding: 40px 0; }
.cta h2 { font-size: 19px; font-weight: 900; margin-bottom: 6px; }

.notice {
  margin-top: 28px; padding: 13px 17px; font-size: 13px; color: var(--ink-2);
  background: var(--surface); border: 2.5px solid var(--line);
  border-left: 8px solid var(--cyan); border-radius: var(--r-sm);
  box-shadow: var(--shadow-sm); font-weight: 600;
}

/* --------------------------------- 提示条 -------------------------------- */
.toast-wrap { position: fixed; top: 76px; right: 18px; z-index: 300; display: flex; flex-direction: column; gap: 9px; pointer-events: none; }
.toast {
  padding: 10px 16px; border-radius: 999px; border: 2.5px solid var(--line);
  box-shadow: var(--shadow-sm); font-weight: 800; font-size: 13.5px;
  background: var(--mint); color: var(--ink); max-width: 330px;
  opacity: 0; transform: translateX(16px); transition: opacity .16s, transform .16s;
}
.toast.on { opacity: 1; transform: translateX(0); }
.toast.bad { background: var(--pink); color: #fff; }

/* --------------------------------- 页脚 ---------------------------------- */
.footer {
  max-width: 1040px; margin: 0 auto; padding: 22px 18px 48px; width: 100%;
  border-top: 2.5px dashed var(--line-soft); color: var(--ink-3); font-size: 12px;
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
}
.footer-main { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-weight: 600; }
.footer-dot { color: var(--line-soft); }

/* --------------------------------- 窄屏 ---------------------------------- */
@media (max-width: 860px) {
  .statbar { grid-template-columns: 1fr 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .site-row { grid-template-columns: minmax(0, 1fr) auto; row-gap: 5px; }
  .site-row .site-domain { grid-column: 1 / -1; }
  .site-row .grow { display: none; }
  .site-time { display: none; }
}

@media (max-width: 640px) {
  /* 输入框字号 ≥16px，否则 iOS 聚焦时会自动放大页面 */
  .input, .select, .textarea { font-size: 16px; }
  body { font-size: 13.5px; }
  .nav-inner { padding: 8px 13px; gap: 9px; }
  .brand-logo { width: 33px; height: 33px; }
  .brand-name { font-size: 15px; }
  .brand-sub { display: none; }
  .nav-link { padding: 5px 9px; font-size: 12.5px; }
  .page { padding: 16px 13px calc(52px + env(safe-area-inset-bottom)); }
  .page-head h1 { font-size: 22px; }
  .hero-title { font-size: 34px; letter-spacing: 6px; text-shadow: 3px 3px 0 var(--yellow), 6px 6px 0 rgba(26, 26, 26, .15); }
  .hero.compact .hero-title { font-size: 24px; }
  .search { flex-direction: column; }
  .stat { padding: 11px 13px; }
  .stat-num { font-size: 21px; }
  .card-pad { padding: 15px; }
  .card-title-lg { font-size: 20px; }
  .card-head .pill { margin-left: 0; }
  .kv { grid-template-columns: 1fr 1fr; gap: 12px; }
  .secret-box code { font-size: 14px; letter-spacing: 2px; }
  .manage-head { flex-direction: column; }
  .manage-head .btn { margin-left: 0; }
  .footer { flex-direction: column; align-items: flex-start; gap: 7px; padding: 18px 14px calc(30px + env(safe-area-inset-bottom)); }
  .footer-dot { display: none; }
  .toast-wrap { left: 13px; right: 13px; top: 70px; }
  .toast { max-width: none; }
  .table-wrap { border-radius: var(--r); }
}
