/* =========================================================
   AdSense 审核进度 · 设计系统
   浅蓝灰底 · 白色圆角卡片 · Google 蓝主色 · 柔和阴影
   ========================================================= */

:root {
  --bg: #f5f7fb;
  --surface: #ffffff;
  --surface-2: #f8fafc;
  --line: #e4e9f0;
  --line-strong: #d3dae4;
  --text: #1f2328;
  --muted: #64748b;
  --primary: #1a73e8;
  --primary-dark: #1557b0;
  --primary-soft: #e8f0fe;
  --green: #188038;
  --green-soft: #e6f4ea;
  --amber: #a15c00;
  --amber-soft: #fef7e0;
  --red: #c5221f;
  --red-soft: #fce8e6;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, .05), 0 1px 3px rgba(16, 24, 40, .04);
  --shadow-md: 0 6px 20px rgba(16, 24, 40, .08);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 14px/1.6 Roboto, "Google Sans", "Segoe UI", "Microsoft YaHei", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { letter-spacing: -.2px; }
code {
  background: #eef2f7; border-radius: 5px; padding: 1px 6px;
  font-family: "SF Mono", Consolas, monospace; font-size: 12px; color: #334155;
}
.muted { color: var(--muted); }
.small { font-size: 11.5px; }
.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ---------------- 应用骨架 ---------------- */
.app { display: flex; min-height: 100vh; }

.sidebar {
  width: 236px; flex: none;
  background: var(--surface);
  border-right: 1px solid var(--line);
  position: sticky; top: 0; height: 100vh;
  display: flex; flex-direction: column;
  padding: 20px 14px 16px;
}

.side-brand { display: flex; align-items: center; gap: 11px; padding: 2px 8px 20px; color: var(--text); }
.side-brand:hover { text-decoration: none; }
.side-logo {
  width: 34px; height: 34px; border-radius: 10px; flex: none;
  background: linear-gradient(135deg, #1a73e8, #4a9bff);
  color: #fff; font-weight: 700; font-size: 16px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 10px rgba(26, 115, 232, .26);
}
.side-brand-text { display: flex; flex-direction: column; line-height: 1.35; }
.side-brand-text b { font-size: 13.5px; font-weight: 600; }
.side-brand-text i {
  font-style: normal; font-size: 9.5px; color: var(--muted);
  letter-spacing: .5px; text-transform: uppercase;
}

.side-group {
  font-size: 10px; color: #94a3b8; text-transform: uppercase;
  letter-spacing: .6px; padding: 15px 12px 6px;
}
.side-nav { display: flex; flex-direction: column; gap: 2px; }
.side-nav a {
  display: flex; align-items: center;
  padding: 9px 12px; border-radius: 9px;
  color: #45526a; font-size: 13px; font-weight: 450;
  transition: background .15s ease, color .15s ease;
}
.side-nav a:hover { background: #f1f4f9; color: var(--text); text-decoration: none; }
.side-nav a.on { background: var(--primary-soft); color: var(--primary-dark); font-weight: 600; }

.side-user {
  margin-top: auto; display: flex; align-items: center; gap: 10px;
  padding: 14px 8px 0; border-top: 1px solid var(--line);
}
.avatar {
  width: 32px; height: 32px; border-radius: 50%; flex: none;
  background: var(--primary-soft); color: var(--primary-dark);
  font-size: 13px; font-weight: 600;
  display: flex; align-items: center; justify-content: center;
}
.side-user-info { display: flex; flex-direction: column; min-width: 0; line-height: 1.35; }
.side-user-info b { font-size: 12.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-user-info i { font-style: normal; font-size: 10.5px; color: var(--muted); }
.side-logout { margin-left: auto; font-size: 11.5px; color: var(--muted); }
.side-logout:hover { color: var(--red); text-decoration: none; }

.crumb { color: var(--muted); font-size: 12px; }
.crumb-sep { color: #cbd5e1; font-size: 12px; }
.topbar-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }

.topbar {
  position: sticky; top: 0; z-index: 30; height: 64px;
  background: rgba(255, 255, 255, .9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  display: flex; align-items: center; gap: 20px; padding: 0 28px;
}
.topbar .page-title { font-size: 15px; font-weight: 600; color: #253044; }
.topbar .actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.topbar.public .brand { padding: 0; }
.topbar.public .nav { margin-left: 18px; }
.topbar.public .actions { margin-left: auto; }

.nav { display: flex; gap: 4px; overflow-x: auto; }
.nav a {
  padding: 8px 14px; border-radius: 10px;
  color: #45526a; font-size: 13px; white-space: nowrap;
}
.nav a:hover { background: #f1f4f9; text-decoration: none; }
.nav a.on { background: var(--primary-soft); color: var(--primary-dark); font-weight: 600; }

.who { color: var(--muted); font-size: 12px; }

.wrap { width: 100%; max-width: 1280px; margin: 0 auto; padding: 26px 28px 100px; }

.foot {
  max-width: 1280px; margin: 0 auto; padding: 0 28px 36px;
  color: var(--muted); font-size: 11.5px;
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
}

/* ---------------- 页头 ---------------- */
.page-head { display: flex; align-items: flex-start; gap: 18px; margin-bottom: 20px; }
.page-head h1 { font-size: 26px; font-weight: 600; margin: 0 0 6px; letter-spacing: -.5px; }
.page-head p { margin: 0; font-size: 12.5px; }
.page-head-actions { margin-left: auto; display: flex; gap: 10px; flex-shrink: 0; }

/* ---------------- 按钮 ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 40px; padding: 0 20px; border-radius: 10px;
  background: var(--primary); color: #fff;
  font-size: 13px; font-weight: 500; line-height: 1;
  border: 1px solid transparent; cursor: pointer;
  transition: background .15s ease, box-shadow .15s ease;
}
.btn:hover { background: var(--primary-dark); text-decoration: none; box-shadow: 0 2px 8px rgba(26, 115, 232, .25); }
.btn.ghost { background: var(--surface); color: #374151; border-color: var(--line-strong); }
.btn.ghost:hover { background: var(--surface-2); box-shadow: none; }
.btn.sm { height: 32px; padding: 0 13px; font-size: 12px; border-radius: 8px; }
.btn.danger { background: var(--surface); color: var(--red); border-color: #f2c2c0; }
.btn.danger:hover { background: var(--red-soft); box-shadow: none; }
.btn.danger-solid { background: var(--red); color: #fff; border-color: var(--red); }
.btn.danger-solid:hover { background: #a81814; }

/* ---------------- 提示条 ---------------- */
.alert {
  border-radius: 12px; padding: 13px 16px; margin-bottom: 18px;
  font-size: 13px; border: 1px solid transparent; line-height: 1.7;
}
.alert.ok { background: var(--green-soft); color: #0f6b2d; }
.alert.warn { background: var(--amber-soft); color: var(--amber); }
.alert.err { background: var(--red-soft); color: var(--red); }
.alert ul { margin: 8px 0 0 18px; padding: 0; }

/* ---------------- 阶段总览 ---------------- */
.stages { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 20px; }
.stage {
  background: var(--surface); border-radius: var(--radius);
  padding: 16px 18px; box-shadow: var(--shadow-sm);
  transition: box-shadow .18s ease, transform .18s ease;
}
.stage { cursor: pointer; }
.stage:hover { box-shadow: var(--shadow-md); transform: translateY(-1px); }
.stage.active { box-shadow: inset 0 0 0 2px var(--primary), var(--shadow-sm); }
.stage-label { color: var(--muted); font-size: 12px; }
.stage-value { font-size: 28px; font-weight: 600; margin: 2px 0 2px; letter-spacing: -.8px; font-variant-numeric: tabular-nums; }
.stage-desc { color: var(--muted); font-size: 11px; line-height: 1.65; }
.stage-meter { height: 4px; background: #eef1f6; border-radius: 3px; overflow: hidden; margin-top: 12px; }
.stage-meter span { display: block; height: 100%; width: 0; background: #c6cedb; border-radius: 3px; transition: width .4s ease; }
.stage.is-second { box-shadow: inset 0 0 0 1px #f3d9a4, var(--shadow-sm); }
.stage.is-second .stage-value { color: var(--amber); }
.stage.is-second .stage-meter span { background: #f9ab00; }
.stage.is-pass { box-shadow: inset 0 0 0 1px #bfe3c9, var(--shadow-sm); }
.stage.is-pass .stage-value { color: var(--green); }
.stage.is-pass .stage-meter span { background: var(--green); }

/* ---------------- 指标卡 ---------------- */
.cards { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; margin-bottom: 20px; }
.cards-mini { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card {
  background: var(--surface); border-radius: var(--radius);
  padding: 16px 18px; box-shadow: var(--shadow-sm);
  transition: box-shadow .18s ease, transform .18s ease;
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-1px); }
.card .k { color: var(--muted); font-size: 12px; }
.card .v { font-size: 27px; font-weight: 600; margin-top: 3px; letter-spacing: -.7px; font-variant-numeric: tabular-nums; }
.card .s { color: var(--muted); font-size: 11.5px; margin-top: 2px; }
.card.hot { box-shadow: inset 0 0 0 1px #bfe3c9, var(--shadow-sm); }
.card.hot .k { color: var(--green); }
.card.hot .v { color: var(--green); }
.card.warn { box-shadow: inset 0 0 0 1px #f3d9a4, var(--shadow-sm); }
.card.warn .k { color: var(--amber); }
.card.warn .v { color: var(--amber); }

.chip-num {
  display: inline-block; min-width: 18px; padding: 0 6px; margin-left: 5px;
  border-radius: 9px; background: var(--green-soft); color: var(--green);
  font-size: 10.5px; line-height: 17px; text-align: center; font-weight: 600;
}

/* ---------------- 工具栏 ---------------- */
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  height: 34px; padding: 0 15px; border: 1px solid var(--line-strong);
  background: var(--surface); border-radius: 17px;
  font-size: 12.5px; color: #45526a; cursor: pointer;
  transition: all .15s ease;
}
.chip:hover { border-color: #b9c3d2; background: var(--surface-2); }
.chip.active { background: var(--primary-soft); border-color: #c5d9fb; color: var(--primary-dark); font-weight: 600; }
.search {
  width: 230px; height: 38px; padding: 0 16px;
  border: 1px solid var(--line-strong); border-radius: 19px;
  font-size: 12.5px; outline: none; background: var(--surface); color: var(--text);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.search:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(26, 115, 232, .13); }
.legend { color: var(--muted); font-size: 11.5px; margin-bottom: 12px; line-height: 1.8; }

/* ---------------- 同步进度 ---------------- */
.sync-panel {
  background: var(--surface); border-radius: var(--radius);
  padding: 14px 18px; margin-bottom: 18px; box-shadow: var(--shadow-sm);
}
.sync-head { display: flex; justify-content: space-between; gap: 12px; font-size: 12.5px; color: #45526a; margin-bottom: 9px; }
.sync-bar { height: 6px; background: #eef1f6; border-radius: 4px; overflow: hidden; }
.sync-bar span {
  display: block; height: 100%; width: 0; border-radius: 4px;
  background: linear-gradient(90deg, #1a73e8, #66a3f5);
  transition: width .3s ease;
}
.sync-bar span.bad { background: var(--red); }

/* ---------------- 表格 ---------------- */
.panel {
  background: var(--surface); border-radius: var(--radius);
  overflow: hidden; margin-bottom: 18px; box-shadow: var(--shadow-sm);
}
table.list { width: 100%; border-collapse: collapse; }
table.list thead th {
  text-align: left; font-size: 11px; font-weight: 600; color: var(--muted);
  text-transform: uppercase; letter-spacing: .4px;
  padding: 13px 18px; background: var(--surface-2);
  border-bottom: 1px solid var(--line); white-space: nowrap;
}
table.list tbody td { padding: 15px 18px; border-bottom: 1px solid #eef1f6; vertical-align: middle; }
table.list tbody tr.row:last-of-type td { border-bottom: 0; }
tr.row { cursor: pointer; transition: background .12s ease; }
tr.row:hover td { background: #f8fafd; }
tr.row.open td { background: #f5f9ff; }
tr.row.open td:first-child { box-shadow: inset 3px 0 0 var(--primary); }

.site { max-width: 300px; }
.site .name { font-weight: 600; word-break: break-all; color: #1f2937; }
.mp-count { color: var(--green); font-weight: 600; }
.mp-audit { color: var(--amber); font-weight: 600; position: relative; cursor: help; }
.mp-audit .tip {
  display: none; position: absolute; left: 0; bottom: 155%; z-index: 40;
  background: #1f2937; color: #e5e7eb; font-weight: 400;
  font-size: 11.5px; line-height: 1.75; padding: 8px 12px; border-radius: 8px;
  width: max-content; max-width: 300px; white-space: normal;
  box-shadow: 0 10px 24px rgba(15, 23, 42, .22);
}
.mp-audit .tip .red { color: #ff8a80; font-weight: 600; }
.mp-audit:hover .tip { display: block; }

.col-status { width: 150px; }
.col-page { width: 96px; }
.ua-tag {
  color: var(--muted); font-size: 10.5px; margin-top: 4px;
  font-family: "SF Mono", Consolas, monospace;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%;
}
.badge {
  display: inline-block; padding: 3px 10px; border-radius: 20px;
  font-size: 11.5px; font-weight: 600; white-space: nowrap;
}
.b-green { background: var(--green-soft); color: #0f6b2d; }
.b-blue { background: var(--primary-soft); color: var(--primary-dark); }
.b-amber { background: var(--amber-soft); color: var(--amber); }
.b-gray { background: #eef1f6; color: #5b6675; }
.toggle { color: var(--muted); font-size: 12px; }
tr.row.open .toggle { color: var(--primary); }

/* ---------------- 详情 ---------------- */
tr.detail > td { background: var(--surface-2); padding: 0 18px 20px; border-bottom: 1px solid var(--line); }
.detail-grid { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 26px; padding-top: 18px; }
.dt { font-size: 11px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .4px; margin-bottom: 10px; }

.bars { display: grid; gap: 7px; }
.bar { display: grid; grid-template-columns: 46px 1fr 36px; align-items: center; gap: 8px; font-size: 11.5px; color: var(--muted); }
.bar .daylink { color: inherit; }
.bar .daylink:hover { color: var(--primary); text-decoration: none; }
.bt { display: block; height: 6px; border-radius: 3px; background: var(--primary); opacity: .55; min-width: 2px; }
.bv { text-align: right; font-variant-numeric: tabular-nums; }

.stage-box {
  background: var(--surface); border-radius: var(--radius-sm);
  padding: 13px 15px; margin-bottom: 18px; box-shadow: var(--shadow-sm);
}
.stage-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.stage-advice { color: var(--muted); font-size: 11.5px; line-height: 1.7; }
.stage-bar { height: 6px; background: #eef1f6; border-radius: 4px; overflow: hidden; margin: 10px 0 6px; }
.stage-bar span { display: block; height: 100%; background: linear-gradient(90deg, #f9ab00, #fdd663); border-radius: 4px; }

.kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.kpi span { display: block; color: var(--muted); font-size: 11px; }
.kpi b { font-size: 13px; font-weight: 600; }
.lastseen { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 11.5px; color: var(--muted); }
.lastseen .dt { margin-bottom: 7px; }
.ls-row { display: flex; gap: 8px; font-variant-numeric: tabular-nums; padding: 2px 0; }
.ls-row span { min-width: 36px; color: #45526a; }

.ua { padding: 14px 0; border-top: 1px solid var(--line); }
.ua:first-child { padding-top: 0; border-top: 0; }
.ua:last-child { padding-bottom: 0; }
.ua-head { display: flex; align-items: baseline; gap: 8px; margin-bottom: 9px; flex-wrap: wrap; }
.ua-title { font-size: 13px; font-weight: 600; color: #1f2937; }
.ua-sub { color: var(--muted); font-size: 11px; font-family: "SF Mono", Consolas, monospace; }
.ua-meta { color: var(--muted); font-size: 11.5px; }
.ua-link { margin-left: auto; font-size: 11.5px; white-space: nowrap; }

table.pages { width: 100%; border-collapse: collapse; border-radius: 10px; overflow: hidden; background: var(--surface); }
table.pages th {
  text-align: left; padding: 9px 12px; font-size: 10.5px; font-weight: 600; color: var(--muted);
  text-transform: uppercase; letter-spacing: .3px;
  background: var(--surface-2); border-bottom: 1px solid var(--line); white-space: nowrap;
}
table.pages td { padding: 9px 12px; font-size: 12.5px; border-bottom: 1px solid #eef1f6; }
table.pages tbody tr:last-child td { border-bottom: 0; }
.path { word-break: break-all; font-family: "SF Mono", Consolas, monospace; font-size: 12px; }
.st { display: inline-block; min-width: 40px; text-align: center; padding: 1px 7px; border-radius: 6px; font-size: 11px; font-variant-numeric: tabular-nums; }
.st2 { background: var(--green-soft); color: #0f6b2d; }
.st3 { background: var(--primary-soft); color: var(--primary-dark); }
.st4 { background: var(--amber-soft); color: var(--amber); }
.st5 { background: var(--red-soft); color: var(--red); }
.st0 { background: #eef1f6; color: #5b6675; }

.ipline { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 10px; font-size: 11.5px; color: var(--muted); }
.iplabel { font-weight: 600; }
.ipflag { padding: 2px 9px; border-radius: 10px; font-size: 10.5px; }
.ipflag.ok { background: var(--green-soft); color: #0f6b2d; }
.ipflag.partial { background: var(--amber-soft); color: var(--amber); }
.ipflag.bad { background: var(--red-soft); color: var(--red); }
.ipflag.unknown { background: #eef1f6; color: #5b6675; }
.ip {
  font-family: "SF Mono", Consolas, monospace; font-size: 10.5px;
  padding: 2px 7px; border-radius: 6px; background: #eef1f6; color: #45526a;
}
.ip.more { color: #5b6675; }
.ip.ok { background: var(--green-soft); color: #0f6b2d; }
.ip.bad { background: var(--red-soft); color: var(--red); }
.ip i { font-style: normal; opacity: .6; margin-left: 3px; }

.empty { padding: 60px 20px; text-align: center; color: var(--muted); line-height: 1.9; }

/* ---------------- 表单 ---------------- */
.form-panel {
  background: var(--surface); border-radius: var(--radius);
  padding: 24px 26px; margin-bottom: 18px; box-shadow: var(--shadow-sm);
}
.form-panel h2 { font-size: 16px; font-weight: 600; margin: 0 0 5px; }
.form-panel .desc { color: var(--muted); font-size: 12px; margin-bottom: 20px; line-height: 1.8; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 12.5px; color: #374151; margin-bottom: 7px; font-weight: 600; }
.field .hint { color: var(--muted); font-size: 11.5px; margin-top: 6px; line-height: 1.75; }
input[type=text], input[type=password], input[type=number], input[type=url], select, textarea {
  width: 100%; min-width: 0; padding: 11px 13px;
  border: 1px solid var(--line-strong); border-radius: 10px;
  font-size: 13.5px; outline: none; background: var(--surface); color: var(--text);
  transition: border-color .15s ease, box-shadow .15s ease;
}
input:focus, select:focus, textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(26, 115, 232, .13); }
textarea { min-height: 96px; resize: vertical; font-family: "SF Mono", Consolas, monospace; font-size: 12.5px; line-height: 1.7; }
input:disabled { background: var(--surface-2); color: #64748b; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.check { display: flex; align-items: center; gap: 9px; font-size: 13px; }
.check input { width: 16px; height: 16px; accent-color: var(--primary); }
.form-actions { margin-top: 20px; display: flex; gap: 10px; align-items: center; }

/* ---------------- 设置页 ---------------- */
.settings-status {
  display: flex; gap: 22px; flex-wrap: wrap; align-items: center;
  background: var(--surface); border-radius: var(--radius);
  padding: 15px 20px; margin-bottom: 20px; font-size: 12.5px; box-shadow: var(--shadow-sm);
}
.settings-status .k { color: var(--muted); margin-right: 6px; }
.settings-status .ok { color: var(--green); }
.settings-status .bad { color: var(--red); }
.settings-status .spacer { margin-left: auto; }

.settings-layout { display: grid; grid-template-columns: 176px minmax(0, 1fr); gap: 20px; align-items: start; }
.settings-layout > div { min-width: 0; }
.settings-nav {
  position: sticky; top: 82px; display: flex; flex-direction: column; gap: 3px;
  background: var(--surface); border-radius: var(--radius); padding: 10px; box-shadow: var(--shadow-sm);
}
.settings-nav a { padding: 9px 12px; border-radius: 9px; color: #45526a; font-size: 12.5px; }
.settings-nav a:hover { background: #f1f4f9; text-decoration: none; }
.settings-nav a.on { background: var(--primary-soft); color: var(--primary-dark); font-weight: 600; }

.form-panel[id] { scroll-margin-top: 86px; }

#security { margin-left: 196px; }

.save-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  background: rgba(255, 255, 255, .96); backdrop-filter: blur(8px);
  border-top: 1px solid var(--line);
  box-shadow: 0 -4px 18px rgba(16, 24, 40, .06); padding: 11px 20px;
}
.save-inner { max-width: 1280px; margin: 0 auto; display: flex; align-items: center; gap: 12px; }
.save-bar .muted { margin-right: auto; }

.account-meta {
  display: flex; gap: 20px; flex-wrap: wrap; align-items: center;
  background: var(--surface-2); border-radius: var(--radius-sm);
  padding: 13px 16px; font-size: 12.5px; margin-bottom: 20px;
}

/* ---------------- 弹窗 ---------------- */
.modal { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 20px; }
.modal[hidden] { display: none; }
.modal-mask { position: absolute; inset: 0; background: rgba(15, 23, 42, .48); backdrop-filter: blur(2px); }
.modal-box {
  position: relative; width: 100%; max-width: 440px; background: var(--surface);
  border-radius: 18px; box-shadow: 0 24px 70px rgba(15, 23, 42, .3); overflow: hidden;
  animation: modalIn .18s ease-out;
}
@keyframes modalIn {
  from { opacity: 0; transform: translateY(8px) scale(.98); }
  to { opacity: 1; transform: none; }
}
.modal-head { display: flex; gap: 13px; align-items: flex-start; padding: 22px 24px 0; }
.modal-icon {
  flex: none; width: 38px; height: 38px; border-radius: 50%;
  background: var(--red-soft); color: var(--red); font-weight: 700; font-size: 17px;
  display: flex; align-items: center; justify-content: center;
}
.modal-head h3 { margin: 0; font-size: 17px; }
.modal-head p { margin: 3px 0 0; }
.modal-body { padding: 15px 24px 0; font-size: 13px; color: #374151; line-height: 1.95; }
.modal-body ul { margin: 9px 0 11px; padding-left: 20px; }
.modal-body li { margin: 3px 0; }
.modal-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 20px 24px 22px; }

/* ---------------- 登录 ---------------- */
.login-body {
  min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px;
  background:
    radial-gradient(900px 420px at 15% 10%, #e8f0fe 0%, transparent 60%),
    radial-gradient(700px 360px at 85% 90%, #e6f4ea 0%, transparent 55%),
    var(--bg);
}
.login-box {
  width: 100%; max-width: 400px; background: var(--surface);
  border-radius: 20px; padding: 34px 32px;
  box-shadow: 0 12px 40px rgba(16, 24, 40, .12);
}
.login-box h1 { font-size: 20px; font-weight: 600; margin: 0 0 5px; }
.login-box .sub { color: var(--muted); font-size: 12.5px; margin-bottom: 22px; }

/* ---------------- 首页 ---------------- */
.hero {
  display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr);
  gap: 34px; align-items: center; padding: 46px 0 40px;
}
.eyebrow {
  display: inline-block; color: var(--primary-dark); background: var(--primary-soft);
  font-size: 11.5px; font-weight: 600; letter-spacing: .3px;
  padding: 4px 12px; border-radius: 20px; margin-bottom: 14px;
}
.hero h1 { font-size: 42px; font-weight: 700; line-height: 1.18; margin: 0 0 18px; letter-spacing: -1.2px; }
.hero p { color: #475569; font-size: 14.5px; line-height: 1.95; margin: 0 0 24px; max-width: 560px; }
.hero p code { background: #eef2f7; border-radius: 5px; padding: 1px 6px; font-size: 12px; }
.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-side { display: grid; gap: 12px; }
.mini-card {
  background: var(--surface); border-radius: var(--radius);
  padding: 15px 18px; box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; gap: 2px;
}
.mini-k { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .4px; }
.mini-v { font-size: 14px; font-weight: 600; }
.mini-s { color: var(--muted); font-size: 11.5px; }

.features { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 8px 0 38px; }
.feature { background: var(--surface); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-sm); }
.feature h3 { font-size: 14.5px; font-weight: 600; margin: 0 0 9px; }
.feature p { color: var(--muted); font-size: 12.5px; line-height: 1.9; margin: 0; }

.steps { background: var(--surface); border-radius: var(--radius); padding: 28px; margin-bottom: 28px; box-shadow: var(--shadow-sm); }
.steps h2 { font-size: 17px; font-weight: 600; margin: 0 0 16px; }
.step { display: flex; gap: 16px; padding: 15px 0; border-top: 1px solid #eef1f6; }
.step:first-of-type { border-top: 0; }
.step .n {
  flex: none; width: 30px; height: 30px; border-radius: 50%;
  background: var(--primary-soft); color: var(--primary-dark);
  font-size: 13px; font-weight: 600;
  display: flex; align-items: center; justify-content: center;
}
.step .st { font-size: 14px; font-weight: 600; margin-bottom: 3px; }
.step p { color: var(--muted); font-size: 12.5px; line-height: 1.85; margin: 0; }
.home-foot { margin-top: 8px; }

/* 首页新版 */
.land { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 44px; align-items: center; padding: 52px 0 44px; }
.land-head h1 { font-size: 44px; line-height: 1.16; font-weight: 700; letter-spacing: -1.4px; margin: 0 0 18px; }
.land-head p { color: #475569; font-size: 14.5px; line-height: 1.95; max-width: 520px; margin: 0 0 24px; }
.land-stats { display: flex; gap: 30px; margin-top: 32px; }
.land-stats div { display: flex; flex-direction: column; gap: 1px; }
.land-stats b { font-size: 25px; font-weight: 700; letter-spacing: -.8px; }
.land-stats span { color: var(--muted); font-size: 11.5px; }

.flow { background: var(--surface); border-radius: 18px; padding: 6px 22px; box-shadow: var(--shadow-md); }
.flow-item { display: flex; gap: 14px; padding: 16px 0; }
.flow-item + .flow-item { border-top: 1px solid #eef1f6; }
.flow-num {
  width: 30px; height: 30px; border-radius: 50%; flex: none;
  background: var(--primary-soft); color: var(--primary-dark);
  font-size: 12.5px; font-weight: 600;
  display: flex; align-items: center; justify-content: center;
}
.flow-item b { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 2px; }
.flow-item span { color: var(--muted); font-size: 11.5px; line-height: 1.7; }
.flow-item.second .flow-num { background: var(--amber-soft); color: var(--amber); }
.flow-item.pass .flow-num { background: var(--green-soft); color: var(--green); }

.land-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 4px 0 34px; }
.land-card { background: var(--surface); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-sm); }
.land-card h3 { font-size: 14.5px; font-weight: 600; margin: 0 0 9px; }
.land-card p { color: var(--muted); font-size: 12.5px; line-height: 1.9; margin: 0; }

.cta {
  display: flex; align-items: center; gap: 22px; flex-wrap: wrap;
  background: linear-gradient(120deg, #1a73e8, #4a9bff);
  border-radius: 18px; padding: 32px 36px; color: #fff;
  box-shadow: 0 14px 34px rgba(26, 115, 232, .26);
}
.cta h2 { font-size: 20px; margin: 0; font-weight: 600; }
.cta p { margin: 5px 0 0; font-size: 12.5px; opacity: .92; }
.cta .btn { margin-left: auto; background: #fff; color: var(--primary-dark); }
.cta .btn:hover { background: #f1f6ff; box-shadow: none; }

/* ---------------- 指南 ---------------- */
.guide-hero { margin: 2px 0 22px; }
.guide-hero h1 { font-size: 30px; font-weight: 700; margin: 0 0 8px; letter-spacing: -.8px; }
.guide-hero p { color: var(--muted); font-size: 13.5px; margin: 0 0 12px; }
.guide-hero-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.guide-hero-tags span {
  background: var(--surface); border-radius: 20px;
  padding: 5px 12px; font-size: 11.5px; color: #45526a; box-shadow: var(--shadow-sm);
}

.guide-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 22px; align-items: start; }
.guide-toc {
  position: sticky; top: 86px; background: var(--surface);
  border-radius: var(--radius); padding: 12px; box-shadow: var(--shadow-sm);
}
.guide-toc .t { font-size: 10.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; padding: 4px 10px 9px; }
.guide-toc a { display: block; padding: 8px 11px; border-radius: 9px; color: #45526a; font-size: 12.5px; }
.guide-toc a:hover { background: #f1f4f9; text-decoration: none; }
.guide-toc a.on { background: var(--primary-soft); color: var(--primary-dark); font-weight: 600; }

.guide-sec { scroll-margin-top: 86px; }
.sec-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.sec-num {
  width: 26px; height: 26px; border-radius: 8px; flex: none;
  background: var(--primary-soft); color: var(--primary-dark);
  font-size: 12px; font-weight: 600;
  display: flex; align-items: center; justify-content: center;
}
.guide-sec h2 { font-size: 16px; margin: 0; }
.guide-sec h3 { font-size: 13.5px; margin: 16px 0 5px; color: #374151; }
.guide-sec p { margin: 7px 0; }
.guide-sec ul, .guide-sec ol { margin: 7px 0; padding-left: 24px; }
.guide-sec li { color: #374151; font-size: 13px; line-height: 1.9; }

.guide .tip {
  background: var(--surface-2); border-radius: var(--radius-sm);
  padding: 14px 17px; font-size: 12.5px; color: #374151; line-height: 1.85;
}
.guide .tip code { background: #e8eef6; }
.guide-fig { margin: 16px 0 20px; }
.guide-fig img {
  display: block; width: 100%; max-width: 860px;
  border-radius: 12px; background: #0f172a; box-shadow: var(--shadow-sm);
}
.guide-fig figcaption { color: var(--muted); font-size: 11.5px; margin-top: 8px; line-height: 1.8; }

/* ---------------- 响应式 ---------------- */
@media (max-width: 1080px) {
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .app { flex-direction: column; }
  .sidebar {
    position: static; width: auto; height: auto;
    flex-direction: row; align-items: center; gap: 10px;
    padding: 10px 14px; border-right: 0; border-bottom: 1px solid var(--line);
    overflow-x: auto;
  }
  .side-brand { padding: 0 10px 0 0; }
  .side-brand-text i { display: none; }
  .side-group { display: none; }
  .side-nav { flex-direction: row; gap: 2px; }
  .side-nav a { padding: 8px 11px; white-space: nowrap; }
  .side-user { margin-left: auto; border: 0; padding: 0; }
  .side-user-info, .side-logout { display: none; }

  .topbar { height: 56px; padding: 0 16px; }
  .topbar .page-title { font-size: 14px; }

  .wrap { padding: 20px 16px 96px; }
  .foot { padding: 0 16px 32px; }

  .page-head { flex-wrap: wrap; }
  .page-head-actions { margin-left: 0; }
  .page-head h1 { font-size: 22px; }

  .stages { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cards, .cards-mini { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .hero { grid-template-columns: minmax(0, 1fr); gap: 22px; padding: 28px 0; }
  .hero h1 { font-size: 30px; }
  .land { grid-template-columns: minmax(0, 1fr); gap: 26px; padding: 30px 0; }
  .land-head h1 { font-size: 32px; }
  .land-grid { grid-template-columns: minmax(0, 1fr); }
  .cta { padding: 26px; }
  .cta .btn { margin-left: 0; }

  .detail-grid { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .site { max-width: 180px; }
  .col-page { display: none; }
  table.list thead th.col-page, table.list tbody td.col-page { display: none; }

  .grid2, .grid3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .settings-layout { grid-template-columns: minmax(0, 1fr); }
  .settings-nav { position: static; flex-direction: row; overflow-x: auto; max-width: 100%; }
  #security { margin-left: 0; }

  .guide-layout { grid-template-columns: minmax(0, 1fr); }
  .guide-toc { position: static; display: flex; flex-wrap: wrap; gap: 2px; }
  .guide-toc .t { width: 100%; }
  .guide-toc a { padding: 6px 10px; }
}

@media (max-width: 640px) {
  .grid2, .grid3 { grid-template-columns: minmax(0, 1fr); }
  .stages, .cards, .cards-mini { grid-template-columns: minmax(0, 1fr); }
  .features { grid-template-columns: minmax(0, 1fr); }
  .hero h1 { font-size: 26px; }
}
