:root {
  --pink: #e58aa8;
  --pink-soft: #fbe9ef;
  --ink: #2f2b2d;
  --ink-soft: #6b6367;
  --line: #eadfe3;
  --bg: #fffafb;
  --card: #ffffff;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", sans-serif;
  font-size: 16px;
  line-height: 1.75;
  letter-spacing: 0.01em;
}

a { color: var(--pink); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 24px;
}

.site-head {
  padding: 64px 0 32px;
}

.site-head .kicker {
  font-size: 13px;
  letter-spacing: 0.18em;
  color: var(--pink);
  text-transform: uppercase;
}

.site-head h1 {
  margin: 10px 0 8px;
  font-size: 34px;
  line-height: 1.35;
  font-weight: 600;
}

.site-head p {
  margin: 0;
  color: var(--ink-soft);
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin: 32px 0 56px;
}

.card {
  display: block;
  padding: 22px 22px 24px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  color: inherit;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.card:hover {
  border-color: var(--pink);
  text-decoration: none;
  transform: translateY(-2px);
}

.card h2 {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 600;
}

.card p {
  margin: 0;
  font-size: 14px;
  color: var(--ink-soft);
}

.note {
  padding: 16px 18px;
  background: var(--pink-soft);
  border-radius: 12px;
  font-size: 14px;
  color: var(--ink-soft);
  margin: 28px 0;
}

.crumb {
  font-size: 13px;
  color: var(--ink-soft);
  padding-top: 40px;
}

.crumb a { color: var(--ink-soft); }

article h1 {
  font-size: 30px;
  line-height: 1.4;
  margin: 16px 0 8px;
  font-weight: 600;
}

article .lead {
  color: var(--ink-soft);
  font-size: 16px;
  margin: 0 0 36px;
}

h2.section {
  font-size: 21px;
  margin: 48px 0 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  font-weight: 600;
}

h3 {
  font-size: 17px;
  margin: 32px 0 8px;
  font-weight: 600;
}

.case {
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: 12px;
  margin: 16px 0;
  background: var(--card);
}

.case .name {
  font-weight: 600;
  font-size: 16px;
}

.case .cite {
  font-size: 13px;
  color: var(--ink-soft);
  margin-left: 8px;
}

.case .row {
  margin-top: 10px;
  font-size: 14.5px;
}

.case .row b {
  display: inline-block;
  min-width: 4.5em;
  color: var(--pink);
  font-weight: 600;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 14.5px;
}

th, td {
  text-align: left;
  padding: 12px 10px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

th {
  font-weight: 600;
  color: var(--ink-soft);
  font-size: 13px;
  letter-spacing: 0.04em;
}

.tag {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--pink-soft);
  color: var(--pink);
  font-size: 12px;
  white-space: nowrap;
}



/* 顶部导航 */
.topnav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 250, 251, 0.92);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 58px;
  padding: 8px 0;
  gap: 12px;
}

.brand {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.06em;
}

.brand:hover { text-decoration: none; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-links a {
  font-size: 14px;
  color: var(--ink-soft);
  letter-spacing: 0.02em;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--pink);
  text-decoration: none;
}

/* 条目列表 */
.item-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.item-list li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}

.item-list li a {
  color: var(--ink);
  font-size: 15.5px;
}

.item-list li a:hover { color: var(--pink); }

.item-list .meta {
  font-size: 12.5px;
  color: var(--ink-soft);
  white-space: nowrap;
}

/* 关于页 */
.about-block {
  margin: 40px 0;
}

.about-block h2 {
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 10px;
}

.about-block p {
  margin: 0 0 12px;
  color: var(--ink);
}

.about-block p.soft {
  color: var(--ink-soft);
  font-size: 14.5px;
}

.meta-table {
  font-size: 14.5px;
}

.meta-table td:first-child {
  width: 7em;
  color: var(--ink-soft);
}

@media (max-width: 600px) {
  .site-head { padding-top: 44px; }
  .site-head h1 { font-size: 27px; }
  article h1 { font-size: 25px; }
  body { font-size: 15.5px; }
  .nav-inner { height: 52px; }
  .nav-links { gap: 16px; }
  .item-list li { flex-direction: column; gap: 4px; }
}

/* countdown */
.countdown {
  display: flex;
  gap: 14px;
  margin: 28px 0 16px;
  flex-wrap: wrap;
}

.cd-item {
  flex: 1;
  min-width: 78px;
  background: var(--pink-soft);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px 8px;
  text-align: center;
}

.cd-num {
  display: block;
  font-size: 40px;
  font-weight: 700;
  color: var(--pink);
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.cd-label {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  color: var(--ink-soft);
}

.cd-note {
  font-size: 13.5px;
  color: var(--ink-soft);
  padding: 12px 16px;
  background: #fff6fa;
  border-left: 3px solid var(--pink);
  border-radius: 0 8px 8px 0;
}

@media (max-width: 560px) {
  .cd-num { font-size: 30px; }
  .cd-item { min-width: 64px; padding: 14px 6px; }
}
/* filter + case table */
.filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 22px 0 14px;
}

.filter button {
  font: inherit;
  font-size: 13.5px;
  padding: 6px 14px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink-soft);
  border-radius: 999px;
  cursor: pointer;
}

.filter button.on {
  background: var(--pink);
  border-color: var(--pink);
  color: #fff;
}

.casetable { font-size: 14px; }
.casetable th, .casetable td { padding: 9px 10px; }
.casetable .win { color: #b0486c; font-weight: 600; }
.casetable .lose { color: var(--ink-soft); }
.casetable .mid { color: #8a6a2f; }

/* glossary */
.term {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.term:last-child { border-bottom: none; }

.term-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}

.term-head b { font-size: 17px; }

.term-head span {
  font-size: 13px;
  color: var(--pink);
  background: var(--pink-soft);
  padding: 1px 9px;
  border-radius: 999px;
}

.term p { margin: 6px 0; }

.term-link {
  font-size: 13px;
  color: var(--ink-soft);
}.casetable .done { color: #c96a96; font-size: 12.5px; }
.casetable .todo { color: #6b6367; font-size: 12.5px; }

/* checklist */
.scenes {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 22px 0 26px;
}

.scene {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  cursor: pointer;
  font-size: 14px;
}

.scene input { margin: 0; }

.scene:has(input:checked) {
  border-color: var(--pink);
  background: var(--pink-soft);
}

.risklist {
  list-style: none;
  padding: 0;
  margin: 0 0 10px;
}

.risklist li {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.risklist li:last-child { border-bottom: none; }

.risklist li b { font-size: 16px; }

.risklist li p { margin: 6px 0; }

.empty { color: var(--ink-soft); }.stats { display: flex; gap: 12px; flex-wrap: wrap; margin: 24px 0 8px; }
.stat { flex: 1; min-width: 110px; background: #fbe9ef; border: 1px solid #eadfe3; border-radius: 12px; padding: 14px 10px; text-align: center; }
.stat b { display: block; font-size: 26px; color: #e58aa8; line-height: 1.2; }
.stat span { font-size: 12.5px; color: #6b6367; }
.download-box { background: #fff6fa; border: 1px solid #eadfe3; border-radius: 12px; padding: 16px 18px; margin: 14px 0; }
.download-box p { margin: 6px 0; }
.dl-pending { color: #6b6367; font-size: 13.5px; }

/* ============ v2 design system ============ */
:root {
  --brand: #e58aa8;
  --brand-strong: #a63d5f;
  --brand-soft: #fbe9ef;
  --ink: #2a2528;
  --ink-2: #5f565b;
  --ink-3: #8a8085;
  --bg: #fffafb;
  --surface: #ffffff;
  --line: #eddfe4;
  --line-soft: #f6ebef;
  --radius: 12px;
  --shadow-sm: 0 1px 2px rgba(42,37,40,.05);
  --shadow: 0 2px 6px rgba(42,37,40,.05), 0 12px 32px rgba(166,61,95,.07);
}

body { color: var(--ink); }

a { color: var(--brand-strong); text-decoration: none; border-bottom: 1px solid rgba(166,61,95,.22); }
a:hover { border-bottom-color: var(--brand-strong); text-decoration: none; }

.wrap { max-width: 760px; }
.wrap-wide { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

.hero { padding: 72px 0 44px; }
.hero .eyebrow { font-size: 12.5px; letter-spacing: .22em; text-transform: uppercase; color: var(--brand-strong); margin: 0 0 14px; }
.hero h1 { font-size: 40px; line-height: 1.22; letter-spacing: -.01em; margin: 0 0 16px; font-weight: 650; }
.hero .sub { font-size: 17.5px; line-height: 1.75; color: var(--ink-2); margin: 0 0 26px; max-width: 620px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.btn { display: inline-block; padding: 11px 20px; border-radius: 999px; font-size: 14.5px; border: 1px solid var(--brand-strong); color: var(--brand-strong); background: transparent; }
.btn:hover { background: var(--brand-soft); border-bottom-color: var(--brand-strong); }
.btn-primary { background: var(--brand-strong); color: #fff; border-color: var(--brand-strong); }
.btn-primary:hover { background: #8f3352; color: #fff; }

.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin: 34px 0 0; }
.stat-row div { background: var(--surface); padding: 18px 14px; text-align: center; }
.stat-row b { display: block; font-size: 26px; color: var(--brand-strong); line-height: 1.2; font-variant-numeric: tabular-nums; }
.stat-row span { display: block; font-size: 12.5px; color: var(--ink-3); margin-top: 4px; }

.section { margin-top: 52px; padding-top: 8px; }
h2.section { font-size: 22px; letter-spacing: -.005em; }

.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin-top: 22px; }
.card { display: block; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 22px 20px; box-shadow: var(--shadow-sm); transition: transform .18s ease, box-shadow .18s ease; color: var(--ink); }
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-bottom-color: var(--line); }
.card h3 { margin: 0 0 8px; font-size: 17px; }
.card p { margin: 0; font-size: 14px; color: var(--ink-2); line-height: 1.65; }
.card .more { display: inline-block; margin-top: 12px; font-size: 13px; color: var(--brand-strong); }

.rowlist { list-style: none; padding: 0; margin: 18px 0 0; border-top: 1px solid var(--line); }
.rowlist li { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line-soft); font-size: 14.5px; }
.rowlist .meta { color: var(--ink-3); font-size: 12.5px; white-space: nowrap; }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); margin: 18px 0; }
.table-wrap table { margin: 0; border: none; min-width: 680px; }
.table-wrap th, .table-wrap td { border-bottom: 1px solid var(--line-soft); }
.table-wrap thead th { position: sticky; top: 0; background: #fff; z-index: 1; font-size: 12.5px; letter-spacing: .04em; }
.table-wrap tbody tr:last-child td { border-bottom: none; }
.table-wrap tbody tr:hover { background: #fff7fa; }
.casetable td, .casetable th { font-variant-numeric: tabular-nums; }

.badge { display: inline-block; padding: 1px 9px; border-radius: 999px; font-size: 12px; line-height: 1.7; border: 1px solid transparent; }
.badge-done { background: var(--brand-soft); color: var(--brand-strong); }
.badge-todo { background: #f4f1f2; color: var(--ink-3); }
.badge-ok { background: #e8f5ec; color: #1f6b3c; }

.foot-brand { font-size: 17px; font-weight: 600; margin-bottom: 10px; }

.toc { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 20px; background: var(--surface); margin: 24px 0; }
.toc h4 { margin: 0 0 10px; font-size: 12.5px; letter-spacing: .1em; color: var(--ink-3); font-weight: 500; text-transform: uppercase; }
.toc a { display: block; font-size: 14px; padding: 4px 0; border-bottom: none; color: var(--ink-2); }
.toc a:hover { color: var(--brand-strong); }

a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible { outline: 2px solid var(--brand-strong); outline-offset: 2px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; z-index: 99; background: #fff; padding: 8px 14px; border-radius: 8px; }

@media (max-width: 760px) {
  .hero { padding: 48px 0 32px; }
  .hero h1 { font-size: 29px; }
  .hero .sub { font-size: 16px; }
}

@media print {
  .table-wrap { overflow: visible; border: none; }
  .table-wrap table { min-width: 0; }
}

/* ============ end v2 ============ */
/* ============ v2.1 refinements ============ */
.hero .sub { color: #4a4347; }
.card p { color: #4a4347; }
.rowlist .meta { color: #7a7075; }
.nav-links { gap: 22px; }
.card { padding: 20px 20px 18px; }
.topnav { box-shadow: 0 1px 0 rgba(42,37,40,.05), 0 6px 20px rgba(42,37,40,.035); }
.brand { font-weight: 700; color: var(--ink); }
.crumb { font-size: 13px; color: var(--ink-3); margin: 24px 0 0; }
.crumb a { color: var(--ink-3); border-bottom: none; }
.crumb a:hover { color: var(--brand-strong); }
/* ============ end v2.1 ============ */
/* ============ v2.2 header alignment ============ */
.nav-inner { align-items: center; }
.brand { display: inline-flex; align-items: center; line-height: 1.15; padding: 6px 0; }
.nav-links { align-items: center; }
.nav-links a { display: inline-block; padding: 6px 0; line-height: 1.4; }
@media (max-width: 760px) {
  .nav-inner { flex-wrap: wrap; gap: 6px; }
  .nav-links { width: 100%; justify-content: flex-start; gap: 16px; padding-bottom: 6px; }
}
/* ============ end v2.2 ============ */
/* ============ v2.3 authority ============ */
.brand { font-size: 18px; letter-spacing: .02em; }
.nav-links a { color: #4a4347; font-weight: 500; }
.nav-links a.active { color: var(--brand-strong); font-weight: 600; }
.crumb { color: #6b5f64; }
.crumb a { color: #6b5f64; }
.table-wrap thead th { color: #4a4347; font-weight: 600; background: #fdf7f9; }
.casetable th:nth-child(1), .casetable td:nth-child(1) { min-width: 230px; }
.casetable th:nth-child(5), .casetable td:nth-child(5) { min-width: 280px; }
.casetable th:nth-child(3), .casetable td:nth-child(3) { white-space: nowrap; }
.filter button { font-size: 13px; padding: 6px 13px; }
.filter button.on { font-weight: 600; }
.hero .eyebrow { color: var(--brand-strong); font-weight: 600; }
/* ============ end v2.3 ============ */
/* ============ v3 breathing ============ */
:root {
  --space-1: 10px;
  --space-2: 18px;
  --space-3: 32px;
  --space-4: 56px;
  --space-5: 88px;
}

body { line-height: 1.85; }

.wrap { max-width: 720px; }
.wrap-wide { max-width: 1040px; }

.hero { padding: 88px 0 56px; }
.hero h1 { margin: 0 0 20px; }
.hero .sub { margin: 0 0 32px; }
.hero-actions { gap: 14px; }
.btn { padding: 12px 24px; }

.section { margin-top: 88px; }
h2.section { margin-bottom: 8px; }
article p { margin: 0 0 1.15em; }

.stat-row { margin: 48px 0 0; }
.stat-row div { padding: 24px 16px; }

.card-grid { gap: 20px; margin-top: 28px; }
.card { padding: 26px 26px 24px; }
.card h3 { margin-bottom: 10px; }
.card .more { margin-top: 16px; }

.rowlist li { padding: 16px 0; }

.table-wrap { margin: 24px 0; }
.table-wrap th, .table-wrap td { padding: 14px 18px; }
.table-wrap thead th { padding-top: 16px; padding-bottom: 16px; }
.table-wrap table { font-size: 14.5px; }
.casetable th, .casetable td { padding: 13px 16px; }

.filter { margin: 28px 0 20px; gap: 10px; }
.filter button { padding: 8px 16px; }


.toc { padding: 20px 24px; margin: 32px 0; }

/* 移动端：表格横向滚动 + 首列吸附 */
@media (max-width: 700px) {
  .wrap, .wrap-wide { padding: 0 18px; }
  .hero { padding: 56px 0 36px; }
  .hero h1 { font-size: 30px; line-height: 1.28; }
  .hero .sub { font-size: 16px; }
  .section { margin-top: 64px; }

  .table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 10px;
  }
  .table-wrap table { min-width: 680px; }
  .table-wrap th:first-child,
  .table-wrap td:first-child {
    position: sticky;
    left: 0;
    background: #fff;
    z-index: 2;
    box-shadow: 1px 0 0 var(--line);
  }
  .table-wrap thead th:first-child { background: #fdf7f9; }

  .casetable th:nth-child(3),
  .casetable td:nth-child(3) { display: none; }

}

@media (max-width: 420px) {
  .hero h1 { font-size: 26px; }
  .stat-row div { padding: 18px 10px; }
  .stat-row b { font-size: 22px; }
}
/* ============ end v3 ============ */
/* ============ v4 shell：左侧栏布局 ============ */
.shell {
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  border-right: 1px solid var(--line);
  background: #fff;
  padding: 26px 18px 40px;
}

.side-brand {
  display: block;
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
  padding: 0 10px 22px;
  border-bottom: 1px solid var(--line-soft);
  margin-bottom: 18px;
  letter-spacing: .02em;
}

.side-group {
  font-size: 11.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-3);
  padding: 18px 10px 8px;
}

.side-nav a {
  display: block;
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 14px;
  color: var(--ink-2);
  border-bottom: none;
  margin-bottom: 2px;
}

.side-nav a:hover { background: var(--brand-soft); color: var(--brand-strong); }

.side-nav a.active {
  background: var(--brand-soft);
  color: var(--brand-strong);
  font-weight: 600;
}

.side-note {
  margin-top: 28px;
  padding: 14px 12px;
  border-top: 1px solid var(--line-soft);
  font-size: 12px;
  color: var(--ink-3);
  line-height: 1.7;
}

.content {
  padding: 56px 56px 96px;
  max-width: 960px;
}

.content .section:first-of-type { margin-top: 40px; }

@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; }
  .sidebar {
    position: static;
    height: auto;
    border-right: none;
    border-bottom: 1px solid var(--line);
    padding: 18px 18px 22px;
  }
  .side-brand { padding-bottom: 14px; margin-bottom: 12px; }
  .side-nav { display: flex; flex-wrap: wrap; gap: 4px; }
  .side-nav a { padding: 7px 11px; font-size: 13.5px; }
  .side-group { width: 100%; padding: 10px 10px 4px; }
  .side-note { display: none; }
  .content { padding: 28px 18px 64px; max-width: none; }
}
/* ============ end v4 ============ */
/* v4.1 */
.shell { grid-template-columns: 216px minmax(0,1fr); }
.content { max-width: 880px; }
.table-wrap th, .table-wrap td { padding: 13px 15px; }

/* ============ v5 状态标记 ============ */
.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin: 20px 0 26px;
  font-size: 13px;
  color: var(--ink-2);
}
.legend span { display: inline-flex; align-items: center; gap: 7px; }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.dot.ok { background: #3f9a6d; }
.dot.warn { background: #c9963f; }
.dot.bad { background: #b45a5a; }

.st {
  display: inline-block;
  font-size: 12px;
  padding: 2px 9px;
  border-radius: 999px;
  white-space: nowrap;
  line-height: 1.6;
}
.st.ok { background: #eaf6ef; color: #2f7a55; }
.st.warn { background: #fdf4e3; color: #8c6a26; }
.st.bad { background: #fbeeee; color: #96504f; }

.linktable td:nth-child(2) { font-size: 13px; }
.linktable td:nth-child(2) a { color: var(--ink-3); border-bottom-color: var(--line); }
.linktable td:nth-child(2) a:hover { color: var(--brand-strong); }
.linktable .subrow td {
  background: #fdf7f9;
  font-weight: 600;
  font-size: 13px;
  color: var(--brand-strong);
  padding: 10px 15px;
}
.linktable td:last-child { width: 92px; }
/* ============ end v5 ============ */
/* ============ v6 可收起侧栏 + 分组递进 ============ */
.sidebar { position: sticky; }
.side-toggle {
  position: absolute;
  top: 16px;
  right: 12px;
  width: 28px;
  height: 28px;
  border-radius: 7px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink-3);
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.side-toggle:hover { color: var(--brand-strong); border-color: var(--brand); }

body.side-collapsed .shell { grid-template-columns: 46px minmax(0, 1fr); }
body.side-collapsed .sidebar { padding: 14px 9px; overflow: hidden; }
body.side-collapsed .side-brand,
body.side-collapsed .side-group,
body.side-collapsed .side-nav,
body.side-collapsed .side-note { display: none; }
body.side-collapsed .sidebar:hover {
  position: fixed;
  left: 0;
  top: 0;
  width: 220px;
  padding: 26px 18px 40px;
  overflow-y: auto;
  border-right: 1px solid var(--line);
  box-shadow: 0 0 48px rgba(60, 30, 40, .14);
  z-index: 60;
}
body.side-collapsed .sidebar:hover .side-brand,
body.side-collapsed .sidebar:hover .side-group,
body.side-collapsed .sidebar:hover .side-nav,
body.side-collapsed .sidebar:hover .side-note { display: block; }
body.side-collapsed .sidebar:hover .side-toggle { opacity: 0; }

/* 分组递进 */
.group { margin-top: 72px; }
.group:first-of-type { margin-top: 48px; }
.group-head {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding-bottom: 14px;
  border-bottom: 2px solid #3a3134;
  margin-bottom: 4px;
}
.group-no {
  font-size: 12px;
  font-weight: 700;
  color: var(--brand-strong);
  letter-spacing: .1em;
  padding-top: 7px;
  font-variant-numeric: tabular-nums;
}
.group-head h2 { margin: 0; font-size: 22px; line-height: 1.35; }
.group-en {
  font-size: 11px;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-top: 5px;
}
.group-count {
  margin-left: auto;
  font-size: 13px;
  color: var(--ink-3);
  padding-top: 8px;
  font-variant-numeric: tabular-nums;
}

.link-row {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 15px 6px;
  border-bottom: 1px solid var(--line-soft);
  transition: background .12s;
}
.link-row:hover { background: #fdf7f9; }
.link-main { flex: 1; min-width: 0; }
.link-main a { font-size: 15px; font-weight: 500; }
.link-note {
  display: block;
  font-size: 12.5px;
  line-height: 1.65;
  color: var(--ink-3);
  margin-top: 4px;
}
.link-row .st { flex-shrink: 0; margin-top: 2px; }

.st.move { background: #edf1fb; color: #48598f; }
.st.check { background: #f3effb; color: #64549a; }
.dot.move { background: #6b82c4; }
.dot.check { background: #8c78c4; }

@media (max-width: 900px) {
  .side-toggle { display: none; }
  body.side-collapsed .shell { grid-template-columns: 1fr; }
  body.side-collapsed .sidebar { padding: 18px; overflow: visible; }
  body.side-collapsed .side-brand,
  body.side-collapsed .side-group,
  body.side-collapsed .side-nav,
  body.side-collapsed .side-note { display: block; }
  .group { margin-top: 52px; }
  .group-head h2 { font-size: 19px; }
  .link-row { gap: 12px; }
}
/* ============ end v6 ============ */
/* ============ v7 搜索 + 目录 + 国家小标题 ============ */
.search-box {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 30px 0 16px;
}
.search-box input {
  flex: 1;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 15px;
  background: #fff;
  color: var(--ink);
  font-family: inherit;
}
.search-box input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(214, 112, 150, .13);
}
#qcount { font-size: 13px; color: var(--ink-3); white-space: nowrap; }

.toc-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 8px;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--line-soft);
}
.toc-strip a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
  color: var(--ink-2);
}
.toc-strip a:hover {
  border-color: var(--brand);
  color: var(--brand-strong);
  background: #fdf7f9;
}
.toc-strip b {
  font-size: 11px;
  color: var(--brand-strong);
  letter-spacing: .06em;
}

.region {
  margin: 40px 0 2px;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding-left: 2px;
}
.region span { font-size: 12px; font-weight: 400; color: var(--ink-3); }
.region:first-of-type { margin-top: 26px; }

@media (max-width: 900px) {
  .search-box { flex-wrap: wrap; }
  .region { margin-top: 32px; }
}
/* ============ end v7 ============ */
/* v8 quiet */
.st { font-size:11.5px; padding:1px 8px; background:transparent; border:1px solid currentColor; opacity:.7; }
.st.ok { color:#3f8a63; } .st.warn { color:#a88434; } .st.bad { color:#a05858; } .st.move { color:#5a6fa8; } .st.check { color:#7a68a8; }
.link-row { padding:17px 6px; }
.link-row:hover .st { opacity:1; }
.link-note { color:#8a7f84; }
.toc-strip b { display:none; }
.region { margin-top:44px; }

/* ============ v9 单行链接 + 吸顶 + 提示 ============ */
.link-row {
  display: grid;
  grid-template-columns: minmax(150px, auto) minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 4px 16px;
  padding: 11px 6px 10px;
  border-bottom: 1px solid var(--line-soft);
  transition: background .1s;
}
.link-row:hover { background: #fdf7f9; }
.link-name {
  font-size: 15px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.link-note {
  font-size: 12.5px;
  color: #8a7f84;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 0;
}
.link-row .st { white-space: nowrap; }
.st { cursor: pointer; }
.st:hover { opacity: 1; }

.group-head {
  position: sticky;
  top: 0;
  background: #fffdfd;
  z-index: 12;
  padding-top: 14px;
  margin-top: -14px;
}

.st-pop {
  position: absolute;
  max-width: 272px;
  background: #2f282b;
  color: #fff;
  font-size: 12.5px;
  line-height: 1.7;
  padding: 10px 13px;
  border-radius: 9px;
  z-index: 110;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .22);
}

.ext-toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 16px;
  background: #2f282b;
  color: #fff;
  padding: 12px 18px;
  border-radius: 11px;
  font-size: 13.5px;
  box-shadow: 0 10px 34px rgba(0, 0, 0, .24);
  z-index: 100;
  max-width: calc(100vw - 32px);
}
.ext-toast b { color: #f3b6c8; font-weight: 600; }
.ext-toast button {
  background: none;
  border: none;
  color: #cbbfc3;
  cursor: pointer;
  font-size: 13px;
  padding: 2px 3px;
  font-family: inherit;
}
.ext-toast .ext-hide { border-bottom: 1px solid #6a5c61; white-space: nowrap; }
.ext-toast .ext-close { font-size: 18px; line-height: 1; padding: 0 2px; }
.ext-toast button:hover { color: #fff; }

@media (max-width: 760px) {
  .link-row {
    grid-template-columns: 1fr auto;
    gap: 3px 12px;
  }
  .link-name { grid-column: 1; }
  .link-note { grid-column: 1; white-space: normal; }
  .link-row .st { grid-column: 2; grid-row: 1 / span 2; }
  .ext-toast { flex-wrap: wrap; gap: 8px 14px; }
}
/* ============ end v9 ============ */
/* v10 widen */
.content { max-width: 1080px; padding-left: 64px; padding-right: 56px; }
.group-head h2 { font-size: 26px; letter-spacing: -.01em; }
.region { font-size: 17px; padding-left: 14px; border-left: 3px solid #a63d5f; margin-left: 0; }
.region span { font-size: 12px; }
.st { opacity: 1; border-width: 1px; font-weight: 500; }
.st.ok { color: #2f7a55; border-color: #b7dcc7; background: #f2faf5; }
.st.warn { color: #8c6a26; border-color: #e6d3a8; background: #fdf9ee; }
.st.bad { color: #96504f; border-color: #e6c6c6; background: #fdf5f5; }
.st.move { color: #48598f; border-color: #c6d0ea; background: #f4f7fd; }
.st.check { color: #64549a; border-color: #d5cdee; background: #f8f6fd; }
.link-name { font-size: 15.5px; }
.link-note { font-size: 13px; color: #7b7176; }

/* v11 smooth */
.shell { transition: grid-template-columns 260ms cubic-bezier(.4,0,.2,1); }
.content { margin-inline: auto; width: 100%; }
.content-wide { max-width: 1080px; }
.sidebar { transition: padding 260ms cubic-bezier(.4,0,.2,1); }
.side-brand, .side-group, .side-nav a, .side-note { transition: opacity 160ms ease; }
@media (prefers-reduced-motion: reduce) { .shell, .sidebar, .side-brand, .side-group, .side-nav a, .side-note { transition: none !important; } }
@media print { .sidebar, .side-toggle { display: none !important; } .shell { display: block !important; } .content { max-width: none !important; margin: 0 !important; padding: 0 !important; } }

/* v12 widths */
.content { max-width: 820px; }
.content-wide { max-width: 1280px; }
.content, .content-wide { margin-inline: auto; }

/* ============ v13 取消 hover 浮出 + 点击记忆 ============ */
body.side-collapsed .sidebar:hover {
  position: static;
  width: auto;
  padding: 14px 9px;
  overflow: hidden;
  box-shadow: none;
  z-index: auto;
}
body.side-collapsed .sidebar:hover .side-brand,
body.side-collapsed .sidebar:hover .side-group,
body.side-collapsed .sidebar:hover .side-nav,
body.side-collapsed .sidebar:hover .side-note { display: none; }
body.side-collapsed .sidebar:hover .side-toggle { opacity: 1; }
/* ============ end v13 ============ */
/* ============ v14 分流页 ============ */
body.gate { background: #fdf7f9; margin: 0; }
body.gate a { border-bottom: none; }

.gate-wrap {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 40px 48px 0;
}
.gate-head { text-align: center; padding: 36px 0 52px; }
.gate-brand {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: .06em;
  color: #a63d5f;
}
.gate-sub {
  margin-top: 12px;
  color: #8a7f84;
  font-size: 13.5px;
  letter-spacing: .1em;
}

.gate-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 1180px;
  width: 100%;
  margin: 0 auto;
  flex: 1;
}

.gate-card {
  position: relative;
  border-radius: 18px;
  padding: 44px 38px;
  min-height: 360px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  transition: transform .32s cubic-bezier(.4,0,.2,1), box-shadow .32s;
}
.gate-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 26px 64px rgba(80, 30, 50, .17);
}
.gate-card.memorial {
  background: linear-gradient(152deg, #fbe9ef 0%, #f6d4e0 55%, #eebfd2 100%);
  color: #7a2f4a;
}
.gate-card.law {
  background: linear-gradient(152deg, #3a2b30 0%, #2a1f24 100%);
  color: #f7eef1;
}
.gate-no {
  position: absolute;
  top: 34px;
  left: 38px;
  font-size: 12px;
  letter-spacing: .18em;
  opacity: .5;
  font-variant-numeric: tabular-nums;
}
.gate-card h2 { font-size: 30px; margin: 0 0 12px; letter-spacing: .02em; }
.gate-card p {
  font-size: 14.5px;
  line-height: 1.75;
  opacity: .82;
  margin: 0 0 26px;
  max-width: 290px;
}
.gate-go { font-size: 13px; letter-spacing: .07em; opacity: .78; }
.gate-card:hover .gate-go { opacity: 1; }

.gate-foot {
  max-width: 1180px;
  width: 100%;
  margin: 42px auto 0;
  padding: 22px 0 28px;
  border-top: 1px solid #eadfe3;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 20px;
  font-size: 12.5px;
  color: #8a7f84;
}
.gate-foot a { color: #8a7f84; }
.gate-foot a:hover { color: #a63d5f; }

@media (max-width: 760px) {
  .gate-wrap { padding: 20px 18px 0; }
  .gate-head { padding: 24px 0 32px; }
  .gate-grid { grid-template-columns: 1fr; }
  .gate-card { min-height: 230px; padding: 30px 24px; }
  .gate-card h2 { font-size: 24px; }
  .gate-no { top: 24px; left: 24px; }
  .gate-foot { flex-direction: column; }
}

/* ============ v15 纪念页 ============ */
body.memorial-page { background: #fffafb; }
.mem-wrap { max-width: 760px; margin: 0 auto; padding: 0 24px; }
.mem-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 28px 0;
  font-size: 13px;
  color: #8a7f84;
}
.mem-top a { color: #8a7f84; border-bottom: none; }
.mem-top a:hover { color: #a63d5f; }
.mem-hero {
  text-align: center;
  padding: 72px 0 64px;
}
.mem-hero h1 {
  font-size: 46px;
  letter-spacing: .12em;
  color: #a63d5f;
  margin: 0 0 20px;
  font-weight: 600;
}
.mem-hero .en {
  font-size: 11.5px;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: #c9a2b1;
}
.mem-hero p {
  margin: 24px auto 0;
  max-width: 460px;
  font-size: 15px;
  line-height: 2;
  color: #6b5f64;
}
.mem-line {
  width: 46px;
  height: 1px;
  background: #e3bccb;
  margin: 40px auto;
}
.mem-quote {
  font-size: 17px;
  line-height: 2.1;
  color: #5a4f53;
  text-align: center;
  padding: 0 12px;
}
.mem-quote span { display: block; margin-top: 18px; font-size: 12.5px; color: #b0909c; letter-spacing: .08em; }
.mem-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin: 64px 0;
}
.mem-card {
  border: 1px solid #f0dde4;
  border-radius: 14px;
  padding: 26px 24px;
  background: #fff;
  transition: transform .3s cubic-bezier(.4,0,.2,1), box-shadow .3s;
}
.mem-card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(150, 80, 110, .1); }
.mem-card h3 { font-size: 17px; margin: 0 0 10px; color: #7a2f4a; font-weight: 600; }
.mem-card p { font-size: 13.5px; line-height: 1.85; color: #6b5f64; margin: 0; }
.mem-sec { margin: 72px 0; }
.mem-sec h2 {
  font-size: 20px;
  color: #7a2f4a;
  margin: 0 0 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid #f0dde4;
  font-weight: 600;
}
.mem-sec p { font-size: 14.5px; line-height: 2; color: #5a4f53; margin: 0 0 1.1em; }
.mem-foot {
  margin-top: 88px;
  padding: 32px 0 48px;
  border-top: 1px solid #f0dde4;
  text-align: center;
  font-size: 12.5px;
  color: #b0909c;
}
.mem-foot a { color: #b0909c; }
@media (max-width: 700px) {
  .mem-hero h1 { font-size: 34px; }
  .mem-grid { grid-template-columns: 1fr; }
}

/* ============ v16 暗区 ============ */
body.studio-page { background: #121014; color: #e8e2e5; margin: 0; }
body.studio-page a { border-bottom: none; }
.st-gate {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.st-box {
  width: 100%;
  max-width: 400px;
  text-align: center;
}
.st-box .st-brand {
  font-size: 13px;
  letter-spacing: .32em;
  color: #7a6a72;
  text-transform: uppercase;
}
.st-box h1 {
  font-size: 26px;
  margin: 22px 0 10px;
  font-weight: 500;
  color: #e8e2e5;
}
.st-box p { font-size: 13px; line-height: 1.8; color: #8d7f86; margin: 0 0 32px; }
.st-btn {
  display: inline-block;
  padding: 13px 34px;
  border-radius: 999px;
  border: 1px solid #4a3d43;
  background: transparent;
  color: #e8e2e5;
  font-size: 13.5px;
  letter-spacing: .06em;
  cursor: pointer;
  font-family: inherit;
  transition: background .2s, border-color .2s;
}
.st-btn:hover { background: #241c21; border-color: #6a5560; }
.st-hint { margin-top: 18px; font-size: 11.5px; color: #5f5258; line-height: 1.7; }
.st-panel { display: none; padding: 48px 32px; max-width: 1100px; margin: 0 auto; }
.st-panel.on { display: block; }
.st-head { display: flex; justify-content: space-between; align-items: baseline; padding-bottom: 20px; border-bottom: 1px solid #2a2226; margin-bottom: 32px; }
.st-head h2 { font-size: 20px; margin: 0; font-weight: 500; }
.st-head span { font-size: 12px; color: #6d5e66; }
.st-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.st-card { background: #1a1519; border: 1px solid #2a2226; border-radius: 12px; padding: 22px; }
.st-card h3 { font-size: 14px; margin: 0 0 12px; color: #c9b8c0; font-weight: 500; }
.st-card p, .st-card li { font-size: 12.5px; line-height: 1.8; color: #7d6e76; margin: 0; }
.st-card ul { margin: 0; padding-left: 16px; }
@media (max-width: 800px) { .st-cards { grid-template-columns: 1fr; } }
/* ============ end v14-16 ============ */
/* ============ v17 统一（参考 Kimi 的克制与铺满） ============ */
.content,
.content-wide {
  max-width: 1180px;
  margin-inline: auto;
  width: 100%;
  padding: 48px 56px 88px;
}

/* 长文保持可读行长 */
.content .prose,
.content-wide .prose {
  max-width: 760px;
}

/* 页脚统一：一条细线，留白一致 */

/* 标题与正文节奏统一 */
.content h1 {
  font-size: 32px;
  line-height: 1.35;
  margin: 0 0 16px;
  letter-spacing: -.01em;
}
.content .lead {
  font-size: 16px;
  line-height: 1.9;
  color: var(--ink-2);
  margin: 0 0 8px;
}
.content h2.section,
.content .section {
  font-size: 21px;
  margin-top: 64px;
  margin-bottom: 6px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line-soft);
}
.content h3.region,
.content .region {
  margin-top: 36px;
}

/* 提示块统一 */
.note {
  background: #fdf7f9;
  border: 1px solid #f3e2e8;
  border-radius: 10px;
  padding: 16px 20px;
  font-size: 13.5px;
  line-height: 1.9;
  color: var(--ink-2);
}

/* 表格统一 */
.table-wrap {
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}
.table-wrap table { border-collapse: collapse; }
.table-wrap th {
  background: #fbf6f8;
  font-size: 12.5px;
  letter-spacing: .04em;
  color: var(--ink-3);
  font-weight: 500;
  border-bottom: 1px solid var(--line);
}
.table-wrap td { border-bottom: 1px solid var(--line-soft); }
.table-wrap tr:last-child td { border-bottom: none; }

@media (max-width: 900px) {
  .content, .content-wide { padding: 28px 18px 64px; }
  .content h1 { font-size: 26px; }
}
/* ============ end v17 ============ */
/* v18 breathing-room */
.content { max-width: 920px; margin-inline: 0; }
.content-wide { max-width: 1080px; margin-inline: 0; }
.content .prose, .content-wide .prose { max-width: 760px; }

/* ============ v19 参考控制台风格统一 ============ */
:root {
  --bg: #f7f7f8;
  --surface: #ffffff;
  --line: #ececec;
  --line-soft: #f4f4f4;
  --ink: #171717;
  --ink-2: #4d4d4d;
  --ink-3: #8f8f8f;
  --brand: #a63d5f;
  --brand-soft: #fdf2f6;
  --radius: 16px;
}

body { background: var(--bg); color: var(--ink); }

/* 侧栏：白底、去掉装饰线 */
.sidebar {
  background: #fff;
  border-right: 1px solid var(--line);
  padding: 20px 14px 32px;
}
.side-brand {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: .01em;
  padding: 0 10px 18px;
  border-bottom: 1px solid var(--line-soft);
  margin-bottom: 10px;
}
.side-group {
  font-size: 11px;
  letter-spacing: .12em;
  color: #a8a8a8;
  padding: 16px 10px 6px;
  font-weight: 500;
}
.side-nav a {
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 13.5px;
  color: #4d4d4d;
}
.side-nav a:hover { background: #f5f5f5; color: #171717; }
.side-nav a.active { background: #f5f5f5; color: #171717; font-weight: 500; }
.side-note { border-top: 1px solid var(--line-soft); color: #a8a8a8; font-size: 11.5px; }

/* 内容区：白色大卡片浮在浅灰底上 */
.content,
.content-wide {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  max-width: 1120px;
  margin: 24px auto;
  padding: 44px 48px 40px;
  min-height: calc(100vh - 48px);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .03);
}
.content-wide { max-width: 1180px; }

/* 标题层级：粗标题 + 灰辅助 */
.content h1 {
  font-size: 34px;
  font-weight: 600;
  letter-spacing: -.02em;
  line-height: 1.3;
  margin: 0 0 12px;
}
.content .lead {
  font-size: 15.5px;
  color: var(--ink-3);
  line-height: 1.9;
  margin: 0 0 4px;
}
.content .eyebrow {
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #a8a8a8;
  margin: 0 0 14px;
}
.content h2.section,
.content .section {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -.01em;
  margin-top: 56px;
  margin-bottom: 10px;
  padding-bottom: 0;
  border-bottom: none;
}
.content h3.region,
.content .region {
  margin-top: 34px;
  font-size: 15px;
  font-weight: 600;
  padding-left: 0;
  border-left: none;
  color: var(--ink);
}
.content p { color: var(--ink-2); line-height: 1.95; }
.content a { color: var(--brand); }

/* 表格：细线圆角，无竖线 */
.table-wrap {
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}
.table-wrap table { font-size: 14px; }
.table-wrap th {
  background: #fafafa;
  border-bottom: 1px solid var(--line);
  color: #8f8f8f;
  font-weight: 500;
  font-size: 12.5px;
  letter-spacing: .04em;
  padding: 13px 18px;
}
.table-wrap td {
  border-bottom: 1px solid var(--line-soft);
  padding: 14px 18px;
  color: var(--ink-2);
}
.table-wrap tr:last-child td { border-bottom: none; }
.table-wrap tr:hover td { background: #fcfcfc; }

/* 提示块 */
.note {
  background: #fafafa;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink-2);
  padding: 16px 20px;
}

/* 列表行 */
.rowlist li { border-bottom: 1px solid var(--line-soft); padding: 14px 2px; }
.rowlist li:last-child { border-bottom: none; }
.rowlist .meta { color: #a8a8a8; }

/* 卡片 */
.card {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  padding: 24px;
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.card:hover {
  border-color: #dedede;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .05);
  transform: translateY(-2px);
}

/* 统计条：参考控制台的数据卡 */
.stat-row {
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  margin: 28px 0 0;
}
.stat-row > div { border-right: 1px solid var(--line-soft); padding: 22px 24px; }
.stat-row > div:last-child { border-right: none; }
.stat-row b { font-size: 26px; font-weight: 600; letter-spacing: -.02em; }
.stat-row span { font-size: 12.5px; color: #a8a8a8; margin-top: 6px; }

/* 按钮 */
.btn {
  border-radius: 10px;
  font-size: 14px;
  padding: 11px 20px;
  font-weight: 500;
}
.btn-primary { background: #171717; color: #fff; border-color: #171717; }
.btn-primary:hover { background: #000; }

/* 页脚：卡片内的浅灰分区 */

/* 面包屑 */
.crumb { font-size: 12.5px; color: #a8a8a8; margin-bottom: 20px; }
.crumb a { color: #a8a8a8; }
.crumb a:hover { color: var(--ink); }

/* 搜索框 */
.search-box input {
  border-radius: 10px;
  border-color: var(--line);
  background: #fafafa;
  font-size: 14px;
}
.search-box input:focus { background: #fff; border-color: #d0d0d0; box-shadow: none; }

/* 链接行 */
.link-row { border-bottom: 1px solid var(--line-soft); padding: 12px 4px; }
.link-row:hover { background: #fcfcfc; }
.link-name { font-size: 14.5px; color: var(--ink); }

/* 目录胶囊 */
.toc-strip { border-bottom: 1px solid var(--line); padding-bottom: 22px; }
.toc-strip a {
  border-color: var(--line);
  border-radius: 8px;
  font-size: 12.5px;
  padding: 6px 12px;
  color: #5a5a5a;
}
.toc-strip a:hover { border-color: #d0d0d0; background: #fafafa; color: var(--ink); }

@media (max-width: 900px) {
  .content, .content-wide {
    margin: 0;
    border-radius: 0;
    border-left: none;
    border-right: none;
    min-height: auto;
    padding: 28px 20px 32px;
  }
  .content h1 { font-size: 27px; }
}
/* ============ end v19 ============ */
/* v20 dock */
.content, .content-wide {
  max-width: 1320px;
  margin: 20px 24px 20px 24px;
  padding: 40px 44px 32px;
}
.content-wide { max-width: 1400px; }
.side-note { padding: 12px 8px 0; line-height: 1.6; font-size: 11px; }

/* ============ v21 磨砂渐变 + 昔涟元素 ============ */
body {
  background: #faf7f8;
  position: relative;
  min-height: 100vh;
}

body::before {
  content: '';
  position: fixed;
  inset: -12%;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(38% 42% at var(--b1, 18%) var(--b2, 12%), rgba(240, 168, 194, .58), transparent 62%),
    radial-gradient(34% 38% at var(--b3, 82%) var(--b4, 22%), rgba(196, 168, 232, .44), transparent 64%),
    radial-gradient(42% 40% at var(--b5, 64%) var(--b6, 88%), rgba(255, 204, 176, .40), transparent 66%),
    radial-gradient(30% 34% at var(--b7, 12%) var(--b8, 78%), rgba(248, 190, 210, .36), transparent 68%);
  filter: blur(64px) saturate(1.12);
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, .55) 0%, rgba(255, 255, 255, .18) 40%, rgba(255, 255, 255, .42) 100%);
}

/* 涟漪场 */
.ripple-field {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}
.ripple-field span {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(206, 120, 155, .16);
  transform: translate(-50%, -50%) scale(.8);
  animation: ripplePulse 11s ease-out infinite;
}
@keyframes ripplePulse {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(.55); }
  30% { opacity: .5; }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(1.7); }
}

/* 卡片磨砂 */
.content,
.content-wide {
  background: rgba(255, 255, 255, .84);
  backdrop-filter: blur(22px) saturate(1.18);
  -webkit-backdrop-filter: blur(22px) saturate(1.18);
  box-shadow: 0 1px 2px rgba(80, 40, 60, .04), 0 18px 50px rgba(120, 70, 95, .06);
}

.sidebar {
  background: rgba(255, 255, 255, .78);
  backdrop-filter: blur(20px) saturate(1.1);
  -webkit-backdrop-filter: blur(20px) saturate(1.1);
}

@media (prefers-reduced-motion: reduce) {
  .ripple-field span { animation: none; opacity: .25; }
}
@media print {
  body::before, body::after, .ripple-field { display: none !important; }
  .content, .content-wide { background: #fff !important; box-shadow: none !important; }
}
/* ============ end v21 ============ */
/* ============ v22 折叠修复 + 宽度基准 ============ */
/* 收起时：窄条内按钮居中，始终可点 */
body.side-collapsed .sidebar {
  padding: 16px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: visible;
}
body.side-collapsed .side-toggle {
  position: static;
  margin: 0 auto;
  opacity: 1 !important;
  display: flex;
  pointer-events: auto;
  z-index: 20;
}
body.side-collapsed .sidebar:hover .side-toggle { opacity: 1 !important; }

/* 收起时：正文居中，左右留白相等 */
body.side-collapsed .content,
body.side-collapsed .content-wide {
  margin-left: auto !important;
  margin-right: auto !important;
}

/* 宽度基准：与 about 打开时一致 */
.content, .content-wide {
  max-width: 1460px;
}
.content { margin: 20px 24px; }
.content-wide { margin: 20px 24px; }

/* 不该换行的地方不换行 */
.side-nav a { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.link-name, .link-note, .st, .crumb, .region, .side-brand { white-space: nowrap; }
.link-note { overflow: hidden; text-overflow: ellipsis; }
.toc-strip a { white-space: nowrap; }
.stat-row span { white-space: nowrap; }
/* ============ end v22 ============ */
/* ============ v23 页脚打通 ============ */
@media (max-width: 900px) {
}
/* ============ end v23 ============ */
/* ============ v24 hard-fix ============ */
/* 折叠：强制可见、可点、不参与 hover */
body.side-collapsed .sidebar {
  width: 46px;
  padding: 16px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: visible;
}
body.side-collapsed .side-toggle,
body.side-collapsed .sidebar:hover .side-toggle,
body.side-collapsed .sidebar:focus-within .side-toggle {
  position: static !important;
  top: auto !important;
  right: auto !important;
  margin: 0 auto !important;
  opacity: 1 !important;
  visibility: visible !important;
  display: flex !important;
  pointer-events: auto !important;
  transform: none !important;
  z-index: 30;
}
body.side-collapsed .side-brand,
body.side-collapsed .side-nav,
body.side-collapsed .side-note {
  display: none !important;
}

/* 折叠时正文居中 */
body.side-collapsed .content,
body.side-collapsed .content-wide {
  margin-left: auto !important;
  margin-right: auto !important;
}

/* 侧栏与状态不换行 */
.side-nav a,
.side-group,
.side-brand {
  white-space: nowrap !important;
}
.side-nav a {
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 外链确认弹窗 */
.ext-mask {
  position: fixed;
  inset: 0;
  background: rgba(40, 25, 35, .28);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999;
  padding: 24px;
}
.ext-mask.open { display: flex; }
.ext-box {
  background: #fff;
  border-radius: 18px;
  padding: 28px 28px 22px;
  max-width: 420px;
  width: 100%;
  box-shadow: 0 24px 60px rgba(80, 40, 60, .18);
}
.ext-kicker {
  font-size: 11px;
  letter-spacing: .14em;
  color: #a8a8a8;
  margin: 0 0 10px;
  text-transform: uppercase;
}
.ext-title {
  font-size: 20px;
  font-weight: 600;
  margin: 0 0 10px;
  color: #171717;
}
.ext-desc {
  font-size: 14px;
  color: #5a5a5a;
  line-height: 1.75;
  margin: 0 0 18px;
}
.ext-host { color: #a63d5f; font-weight: 500; }
.ext-skip {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #8a8a8a;
  margin-bottom: 20px;
  cursor: pointer;
}
.ext-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}
.ext-cancel,
.ext-go {
  border-radius: 10px;
  padding: 10px 18px;
  font-size: 14px;
  cursor: pointer;
  border: 1px solid #ececec;
  font-family: inherit;
}
.ext-cancel { background: #fff; color: #4d4d4d; }
.ext-cancel:hover { background: #fafafa; }
.ext-go { background: #171717; color: #fff; border-color: #171717; }
.ext-go:hover { background: #000; }
/* ============ end v24 ============ */
/* ============ v25 页脚与正文分区 ============ */

/* 正文最后一块与页脚之间留出呼吸 */
.content .rowlist {
  margin-bottom: 4px;
}
.content .rowlist li {
  padding: 13px 2px;
}

@media (max-width: 900px) {
}
/* ============ end v25 ============ */
/* ============ v26 页脚实色分区 ============ */
@media (max-width: 900px) {
}
/* ============ end v26 ============ */
/* ============ v27 页脚全宽 ============ */
.shell {
  padding-bottom: 0;
}
@media (max-width: 1200px) {
}
@media (max-width: 900px) {
}
/* ============ end v27 ============ */
/* ============ v28 页脚随列 + 磨砂透色 ============ */
.shell {
  display: flex;
  align-items: stretch;
  min-height: 100vh;
}
.main-col {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.main-col .content,
.main-col .content-wide {
  flex: 1;
}

/* 卡片：降低白度，让磨砂背景透上来 */
.content,
.content-wide {
  background: rgba(255, 252, 253, .58);
  backdrop-filter: blur(30px) saturate(1.32);
  -webkit-backdrop-filter: blur(30px) saturate(1.32);
  box-shadow: 0 1px 2px rgba(80, 40, 60, .04), 0 20px 60px rgba(120, 70, 95, .07);
}
.sidebar {
  background: rgba(255, 255, 255, .62);
  backdrop-filter: blur(24px) saturate(1.22);
  -webkit-backdrop-filter: blur(24px) saturate(1.22);
}

/* 页脚：贴着侧栏右缘，宽度随列变化 */

@media (max-width: 900px) {
  .shell {
    display: block;
    min-height: 0;
  }
}
/* ============ end v28 ============ */
/* ============ v29 页脚内容居中 ============ */

@media (max-width: 1200px) {
}
@media (max-width: 900px) {
}
/* ============ end v29 ============ */
/* ============ v30 折叠不闪 ============ */
/* 去掉宽度与滤镜过渡，避免折叠瞬间重绘抖动 */
.sidebar,
.main-col,
.sidebar {
  will-change: auto;
}
body.side-collapsed .sidebar {
  width: 46px;
  min-width: 46px;
  max-width: 46px;
}
/* 按钮：两种状态都固定在窄栏顶部居中，位置不跳 */
.side-toggle {
  position: absolute;
  top: 16px;
  right: 12px;
}
body.side-collapsed .side-toggle {
  position: absolute !important;
  top: 16px !important;
  left: 50% !important;
  right: auto !important;
  margin: 0 !important;
  transform: translateX(-50%) !important;
  opacity: 1 !important;
  visibility: visible !important;
  display: flex !important;
  pointer-events: auto !important;
}
body.side-collapsed .sidebar {
  position: relative;
  padding: 52px 0 16px !important;
}
/* ============ end v30 ============ */
/* ============ v31 折叠平滑 + 页脚对称 ============ */
/* 内容始终在列内居中，折叠与展开位置只做平滑过渡 */
.content,
.content-wide {
  margin-left: auto !important;
  margin-right: auto !important;
  transition: margin-left .24s cubic-bezier(.4, 0, .2, 1),
              margin-right .24s cubic-bezier(.4, 0, .2, 1),
              max-width .24s cubic-bezier(.4, 0, .2, 1) !important;
}
body.side-collapsed .content,
body.side-collapsed .content-wide {
  margin-left: auto !important;
  margin-right: auto !important;
}

/* 侧栏宽度平滑收放 */
.sidebar {
  transition: width .24s cubic-bezier(.4, 0, .2, 1),
              padding .24s cubic-bezier(.4, 0, .2, 1) !important;
}

/* 页脚：左右内边距相等，内容强制居中 */
.site-foot .foot-grid,

@media (max-width: 1200px) {
  .site-foot,
}
@media (max-width: 900px) {
  .site-foot,
}
/* ============ end v31 ============ */
/* ============ v32 按钮定位 + 回到顶部 ============ */
/* 折叠按钮：两种状态都在左上角同一坐标，不随布局跳 */
.side-toggle {
  position: absolute !important;
  top: 14px !important;
  left: 11px !important;
  right: auto !important;
  margin: 0 !important;
  transform: none !important;
  z-index: 40;
}
body.side-collapsed .side-toggle {
  top: 14px !important;
  left: 9px !important;
  right: auto !important;
  margin: 0 !important;
  transform: none !important;
  opacity: 1 !important;
  visibility: visible !important;
  display: flex !important;
  pointer-events: auto !important;
}
/* 展开时品牌名给按钮让位 */
.side-brand {
  padding-left: 46px;
}
body.side-collapsed .side-brand {
  display: none !important;
}
body.side-collapsed .sidebar {
  padding-top: 52px !important;
}

/* 回到顶部 */
.to-top {
  position: fixed;
  right: 26px;
  bottom: 26px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid #e6dbdf;
  background: rgba(255, 255, 255, .92);
  color: #5a5054;
  font-size: 18px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(120, 70, 95, .14);
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease, background .2s ease;
  z-index: 95;
  font-family: inherit;
}
.to-top.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.to-top:hover {
  background: #fff;
  color: var(--brand);
}
/* ============ end v32 ============ */
/* ============ v33 页脚绝对对称 ============ */
/* 左右 padding 用同一个表达式，数学上必然相等 */
.site-foot .foot-grid,

@media (max-width: 1200px) {
  .site-foot,
}
@media (max-width: 900px) {
  .site-foot,
}
/* ============ end v33 ============ */
/* ============ v34 按钮钉住 + 页脚等距 ============ */
/* 折叠按钮：固定在视口上，滚动到哪都能点。
   展开时贴在侧栏右缘内侧，折叠时回到左上。 */
.side-toggle {
  position: fixed !important;
  top: 16px !important;
  left: 186px !important;
  right: auto !important;
  margin: 0 !important;
  transform: none !important;
  opacity: 1 !important;
  visibility: visible !important;
  display: flex !important;
  pointer-events: auto !important;
  z-index: 300 !important;
  transition: left .24s cubic-bezier(.4, 0, .2, 1) !important;
}
body.side-collapsed .side-toggle {
  top: 16px !important;
  left: 9px !important;
  right: auto !important;
  margin: 0 !important;
  transform: none !important;
  opacity: 1 !important;
  visibility: visible !important;
  display: flex !important;
  pointer-events: auto !important;
}

/* 侧栏内容用透明度和可见性过渡，避免 display 切换造成瞬间消失 */
body.side-collapsed .side-brand,
body.side-collapsed .side-nav,
body.side-collapsed .side-note {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transition: opacity .16s ease, visibility .16s !important;
}
body.side-collapsed .sidebar {
  overflow: hidden !important;
}

/* 页脚：左右固定 48，内容容器定宽居中，四栏品牌列收窄 */
.site-foot .foot-grid,

@media (max-width: 1200px) {
  .site-foot,
}
@media (max-width: 900px) {
  .site-foot,
}
/* ============ end v34 ============ */
/* ============ v35 按钮脱离侧栏 ============ */
/* 按钮已经由 JS 移到 body 下，fixed 现在相对视口生效 */
.side-toggle {
  position: fixed !important;
  top: 16px !important;
  left: 186px !important;
  right: auto !important;
  margin: 0 !important;
  transform: none !important;
  opacity: 1 !important;
  visibility: visible !important;
  display: flex !important;
  pointer-events: auto !important;
  z-index: 400 !important;
  transition: left .24s cubic-bezier(.4, 0, .2, 1) !important;
}
body.side-collapsed .side-toggle {
  top: 16px !important;
  left: 9px !important;
  right: auto !important;
  margin: 0 !important;
  transform: none !important;
}
/* 侧栏收起时不再需要给按钮留顶部空间 */
body.side-collapsed .sidebar {
  padding-top: 16px !important;
}
/* ============ end v35 ============ */
/* ============ v36 按钮固定在左上角 ============ */
/* 按钮是 body 的直接子级，fixed 相对视口，不随折叠或滚动移动 */
.side-toggle {
  position: fixed !important;
  top: 12px !important;
  left: 12px !important;
  right: auto !important;
  bottom: auto !important;
  margin: 0 !important;
  transform: none !important;
  opacity: 1 !important;
  visibility: visible !important;
  display: flex !important;
  pointer-events: auto !important;
  z-index: 500 !important;
  transition: none !important;
}
body.side-collapsed .side-toggle {
  top: 12px !important;
  left: 12px !important;
  right: auto !important;
  margin: 0 !important;
  transform: none !important;
  opacity: 1 !important;
  visibility: visible !important;
  display: flex !important;
  pointer-events: auto !important;
}
/* 品牌名给按钮让位 */
.side-brand {
  padding-left: 46px !important;
}

/* 侧栏去掉 backdrop-filter，避免 fixed 包含块与重绘闪烁 */
.sidebar {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  background: rgba(255, 251, 252, .88) !important;
}
/* 折叠切换时不重排锚点 */
.shell {
  overflow-anchor: none;
}
/* ============ end v36 ============ */
/* ============ v37 干净背景 + 按钮归位 ============ */
/* 背景：降低饱和度，提亮，去掉灰感 */
body {
  background: #fdf9fb !important;
}
body::before {
  background:
    radial-gradient(40% 44% at var(--b1, 18%) var(--b2, 12%), rgba(248, 196, 214, .34), transparent 64%),
    radial-gradient(36% 40% at var(--b3, 82%) var(--b4, 22%), rgba(214, 196, 240, .24), transparent 66%),
    radial-gradient(44% 42% at var(--b5, 64%) var(--b6, 88%), rgba(255, 222, 206, .22), transparent 68%),
    radial-gradient(32% 36% at var(--b7, 12%) var(--b8, 78%), rgba(250, 208, 222, .20), transparent 70%) !important;
  filter: blur(70px) saturate(1.02) !important;
}
body::after {
  background: linear-gradient(180deg, rgba(255, 255, 255, .72) 0%, rgba(255, 255, 255, .42) 45%, rgba(255, 255, 255, .60) 100%) !important;
}

/* 卡片：更干净的白 */
.content,
.content-wide {
  background: rgba(255, 255, 255, .72) !important;
  backdrop-filter: blur(26px) saturate(1.1) !important;
  -webkit-backdrop-filter: blur(26px) saturate(1.1) !important;
}

/* 侧栏：纯白半透明，不用灰 */
.sidebar {
  background: rgba(255, 255, 255, .78) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

/* 页脚：白色系，不再是暖灰 */

/* 按钮：展开在侧栏右上，折叠在页面左上，都 fixed */
.side-toggle {
  position: fixed !important;
  top: 16px !important;
  left: 186px !important;
  right: auto !important;
  margin: 0 !important;
  transform: none !important;
  transition: left .24s cubic-bezier(.4, 0, .2, 1) !important;
}
body.side-collapsed .side-toggle {
  top: 16px !important;
  left: 9px !important;
}

/* 侧栏始终撑满视口高度，折叠后也保留窄条 */
.shell {
  align-items: stretch !important;
  min-height: 100vh !important;
}
.sidebar {
  min-height: 100vh !important;
  align-self: stretch !important;
}
body.side-collapsed .sidebar {
  width: 46px !important;
  min-height: 100vh !important;
}
/* ============ end v37 ============ */
/* ============ v38 页脚三栏对称 ============ */
/* 页脚现在只有品牌 + 下载 + 关于三块，列数必须跟着改 */
@media (max-width: 900px) {
}
/* ============ end v38 ============ */
/* ============ v39 折叠窄栏 ============ */
/* flex 子项必须用 flex-basis 固定，单靠 width 会被压缩 */
body.side-collapsed .sidebar {
  display: block !important;
  flex: 0 0 46px !important;
  width: 46px !important;
  min-width: 46px !important;
  max-width: 46px !important;
  min-height: 100vh !important;
  padding: 0 !important;
  overflow: hidden !important;
  background: rgba(255, 255, 255, .92) !important;
  border-right: 1px solid #f0e6ea !important;
  opacity: 1 !important;
  visibility: visible !important;
}
/* 窄栏里的按钮始终在左上角中央 */
body.side-collapsed .side-toggle {
  position: fixed !important;
  top: 16px !important;
  left: 9px !important;
  display: flex !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}
/* 展开时按钮贴侧栏右缘 */
.side-toggle {
  position: fixed !important;
  top: 16px !important;
  left: 186px !important;
  display: flex !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  transition: left .22s ease !important;
}
/* ============ end v39 ============ */
/* ============ v40 恢复磨砂渐变 + 页脚居中 ============ */
/* 背景：四层径向渐变，回到原来的浓度 */
body {
  background: #faf6f8 !important;
}
body::before {
  background:
    radial-gradient(38% 42% at var(--b1, 18%) var(--b2, 12%), rgba(240, 168, 194, .58), transparent 62%),
    radial-gradient(34% 38% at var(--b3, 82%) var(--b4, 22%), rgba(196, 168, 232, .44), transparent 64%),
    radial-gradient(42% 40% at var(--b5, 64%) var(--b6, 88%), rgba(255, 204, 176, .40), transparent 66%),
    radial-gradient(30% 34% at var(--b7, 12%) var(--b8, 78%), rgba(248, 190, 210, .36), transparent 68%) !important;
  filter: blur(64px) saturate(1.12) !important;
}
body::after {
  background: linear-gradient(180deg, rgba(255, 255, 255, .32) 0%, rgba(255, 255, 255, .10) 45%, rgba(255, 255, 255, .28) 100%) !important;
}

/* 玻璃质感：卡片、侧栏、页脚都降透明度 */
.content,
.content-wide {
  background: rgba(255, 255, 255, .46) !important;
  backdrop-filter: blur(28px) saturate(1.25) !important;
  -webkit-backdrop-filter: blur(28px) saturate(1.25) !important;
  box-shadow: 0 1px 2px rgba(80, 40, 60, .03), 0 22px 64px rgba(120, 70, 95, .08) !important;
}
.sidebar {
  background: rgba(255, 255, 255, .50) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

/* 页脚三栏均分，整体居中 */

/* 按钮：展开在侧栏右上，折叠在页面左上，fixed 不随滚动 */
.side-toggle {
  position: fixed !important;
  top: 16px !important;
  left: 186px !important;
  z-index: 500 !important;
}
body.side-collapsed .side-toggle {
  top: 16px !important;
  left: 9px !important;
}
/* 折叠窄栏随页面延伸 */
body.side-collapsed .sidebar {
  flex: 0 0 46px !important;
  width: 46px !important;
  min-width: 46px !important;
  max-width: 46px !important;
  min-height: 100vh !important;
  height: auto !important;
}
.sidebar {
  min-height: 100vh !important;
}

@media (max-width: 900px) {
  .site-foot,
}
/* ============ end v40 ============ */
/* ============ v41 页脚真居中 ============ */
/* 页脚宽度 = 侧栏右缘到视口右边。
   内容宽度固定，margin auto，左右留白由同一段剩余空间平分。 */
.site-foot .foot-grid,
@media (max-width: 900px) {
  .site-foot .foot-grid,
}
/* ============ end v41 ============ */
/* ============ v42 页脚 flex 居中 ============ */
/* 不靠 margin auto，直接用 flex 的 align-items 居中。
   页脚宽度天然等于「侧栏右缘 → 视口右边」，折叠时自动跟随。 */
@media (max-width: 900px) {
  .site-foot,
}
/* ============ end v42 ============ */
/* ============ v43 页脚几何清零重算 ============ */
/* 实测问题：左右 padding 被多版本覆盖成不对称（左44 右63）。
   清零 padding，居中全部交给子项 align-self，宽度用固定值。 */
.site-foot .foot-grid,
@media (max-width: 900px) {
  .site-foot,
  .site-foot .foot-grid,
}
/* ============ end v43 ============ */
/* ============ v44 滚动条空间对称 ============ */
/* 实测：左48.5 右64，差15.5 = 滚动条宽。
   scrollbar-gutter both-edges 让滚动条空间在两侧均分，左右视觉对称。 */
html {
  scrollbar-gutter: stable both-edges !important;
}
/* ============ end v44 ============ */
/* ============ v48 页脚唯一规则 ============ */
.site-foot {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  box-sizing: border-box;
  padding: 40px 0 26px;
  background: rgba(255, 255, 255, .38);
  backdrop-filter: blur(24px) saturate(1.2);
  -webkit-backdrop-filter: blur(24px) saturate(1.2);
  border-top: 1px solid rgba(255, 255, 255, .55);
}
.site-foot .foot-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 56px;
  align-items: start;
  width: calc(100% - 96px);
  max-width: 1120px;
  margin: 0 auto;
}
.site-foot .foot-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  width: calc(100% - 96px);
  max-width: 1120px;
  margin: 0 auto;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, .4);
  font-size: 12px;
  color: #9b9096;
}
@media (max-width: 900px) {
  .site-foot { padding: 28px 0 20px; }
  .site-foot .foot-grid {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    width: calc(100% - 40px);
  }
  .site-foot .foot-grid > div:first-child { grid-column: 1 / -1; }
  .site-foot .foot-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    width: calc(100% - 40px);
  }
}
/* ============ end v48 ============ */
/* ============ v49 页脚链接竖排 ============ */
.site-foot .foot-grid > div {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.site-foot .foot-grid a {
  display: block;
  padding: 5px 0;
  font-size: 13px;
  color: #574e52;
  text-decoration: none;
}
.site-foot .foot-grid a:hover {
  color: #a63d5f;
}
.site-foot .foot-grid h4 {
  font-size: 11px;
  letter-spacing: .14em;
  color: #9b9096;
  margin: 0 0 12px;
}
.site-foot .foot-brand {
  font-size: 14px;
  font-weight: 600;
  color: #2f2b2d;
  margin-bottom: 14px;
}
.site-foot .foot-grid p {
  color: #7d7378;
  font-size: 12.5px;
  line-height: 1.75;
  margin: 0 0 6px;
}
/* ============ end v49 ============ */

/* ============ v40 移动端重建 ============ */
@media (max-width: 900px) {
  html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
  body {
    font-size: 16px;
    -webkit-tap-highlight-color: transparent;
    background: #fdf9fa;
  }

  /* 基础排版：去掉默认蓝链接 */
  a { color: inherit; text-decoration: none; }
  .content a { color: #a8476b; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; }
  .content a:active { color: #7d2f4c; }

  /* 单列 */
  .shell {
    display: block !important;
    grid-template-columns: none !important;
    padding: 0 !important;
    min-height: 0 !important;
  }
  .main-col { display: block !important; width: 100% !important; }

  /* 侧栏变抽屉 */
  .sidebar {
    position: fixed !important;
    top: 0; left: 0; bottom: 0;
    width: 82vw;
    max-width: 320px;
    z-index: 200;
    transform: translateX(-100%);
    transition: transform .24s cubic-bezier(.4,0,.2,1);
    background: #fff !important;
    box-shadow: 0 0 40px rgba(80,40,60,.16);
    border-right: 1px solid #f0e8ec;
    padding: 20px 18px 28px !important;
    overflow-y: auto;
    height: 100dvh !important;
    min-height: 0 !important;
    display: block !important;
    align-self: auto !important;
    border-radius: 0 !important;
    backdrop-filter: none !important;
  }
  body.mobile-nav-open .sidebar { transform: translateX(0); }
  body.mobile-nav-open { overflow: hidden; }

  .side-brand { display: block; font-size: 19px !important; margin-bottom: 18px; }
  .side-nav { display: block !important; opacity: 1 !important; }
  .side-nav a {
    display: block;
    padding: 11px 4px !important;
    font-size: 16px !important;
    border-radius: 8px;
    color: #3a3236 !important;
  }
  .side-nav a:active { background: #fdf1f5; }
  .side-group { margin-top: 18px !important; font-size: 12px !important; color: #a08e96 !important; }
  .side-note { display: block !important; margin-top: 24px; font-size: 12.5px; color: #9b8c93; }

  /* 遮罩 */
  .nav-mask {
    position: fixed; inset: 0;
    background: rgba(30,20,26,.44);
    z-index: 190;
    opacity: 0; pointer-events: none;
    transition: opacity .2s;
  }
  body.mobile-nav-open .nav-mask { opacity: 1; pointer-events: auto; }

  /* 汉堡 */
  .side-toggle {
    position: fixed !important;
    top: 12px; right: 14px; left: auto !important;
    width: 44px; height: 44px;
    margin: 0 !important;
    border-radius: 13px;
    background: rgba(255,255,255,.94) !important;
    border: 1px solid #f0e8ec !important;
    box-shadow: 0 2px 12px rgba(80,40,60,.09);
    z-index: 210;
    display: flex !important;
    align-items: center;
    justify-content: center;
    font-size: 21px;
    line-height: 1;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
  }

  /* 正文 */
  .content {
    padding: 72px 18px 44px !important;
    max-width: none !important;
    width: auto !important;
    margin: 0 !important;
  }
  .content-wide { max-width: none !important; }

  h1 { font-size: 29px !important; line-height: 1.32 !important; }
  h2.section { font-size: 21px !important; margin-top: 42px !important; line-height: 1.4 !important; }
  h3 { font-size: 17px !important; }
  p, li { font-size: 15.5px; line-height: 1.86; }
  .lead { font-size: 16px !important; line-height: 1.8 !important; }

  /* 卡片单列 */
  .card-grid { grid-template-columns: 1fr !important; gap: 12px !important; }
  .card { padding: 18px !important; }

  /* 统计条 2x2 */
  .stat-row {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 10px !important;
    margin: 24px 0 !important;
  }
  .stat-row > div { padding: 15px 14px !important; }

  /* 表格横滚 */
  .table-wrap {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    border-radius: 10px;
    margin: 18px 0 !important;
  }
  .table-wrap table { min-width: 620px; }
  .table-wrap th, .table-wrap td { padding: 11px 13px !important; font-size: 13.5px !important; }

  /* 触控 */
  .btn, .hero-actions a { min-height: 46px; display: inline-flex; align-items: center; justify-content: center; padding: 0 20px !important; font-size: 15px !important; }
  .hero-actions { display: flex; gap: 10px; }
  .hero-actions .btn { flex: 1; }

  /* 列表 */
  .rowlist li { padding: 13px 0 !important; font-size: 14.5px !important; }

  /* 页脚 */
  .site-foot { padding: 34px 18px 30px !important; margin-left: 0 !important; width: auto !important; }
  .foot-grid { grid-template-columns: 1fr !important; gap: 26px !important; text-align: left !important; }

  /* 回到顶部 */
  .to-top { bottom: 22px !important; right: 18px !important; width: 44px; height: 44px; }

  /* 标签栏 */
  .tagbar { gap: 7px !important; }
  .tag { padding: 8px 13px !important; font-size: 13px !important; }
}


/* ============ v41 移动端防溢出 ============ */
@media (max-width: 900px) {
  html, body { overflow-x: hidden; max-width: 100%; }
  .shell, .main-col, .content, .content-wide {
    min-width: 0 !important;
    max-width: 100vw !important;
    width: auto !important;
    box-sizing: border-box !important;
  }
  .content > * { max-width: 100%; }
  .content p, .content li, .content a, .content td, .content th, .content h1, .content h2, .content h3 {
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  /* 按钮竖排，不再并排挤 */
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .hero-actions .btn { width: 100% !important; flex: none !important; }

  /* 统计条 2×2，去掉最小宽度撑开 */
  .stat-row {
    grid-template-columns: 1fr 1fr !important;
    width: 100% !important;
    max-width: 100% !important;
  }
  .stat-row > div { min-width: 0 !important; }

  /* 表格只在容器里滚，不撑页面 */
  .table-wrap {
    max-width: 100% !important;
    width: 100% !important;
  }
  .casetable th:nth-child(1), .casetable td:nth-child(1),
  .casetable th:nth-child(5), .casetable td:nth-child(5) {
    min-width: 140px !important;
  }

  /* 页脚收进视口 */
  .site-foot, .site-foot .foot-grid {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    box-sizing: border-box !important;
  }

  /* 长英文与 URL 不顶出去 */
  .content :not(pre) > code { white-space: normal; overflow-wrap: anywhere; }
}


/* ============ v42 移动端锁宽 ============ */
@media (max-width: 900px) {
  html, body {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
  }
  .shell, .main-col {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    display: block !important;
  }
  .content, .content-wide {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 68px 16px 40px !important;
    box-sizing: border-box !important;
  }

  /* 统计：两列，列宽可压缩 */
  .stat-row {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    margin: 22px 0 0 !important;
  }
  .stat-row > div {
    min-width: 0 !important;
    width: auto !important;
    padding: 14px 8px !important;
    box-sizing: border-box !important;
  }
  .stat-row b { font-size: 22px !important; }
  .stat-row span {
    font-size: 11.5px !important;
    white-space: normal !important;
    line-height: 1.4;
  }

  /* 卡片：不撑宽 */
  .card-grid { display: grid !important; grid-template-columns: minmax(0, 1fr) !important; }
  .card {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 18px 16px !important;
  }

  /* 按钮 */
  .hero-actions { display: flex !important; flex-direction: column !important; gap: 10px !important; }
  .hero-actions .btn { width: 100% !important; box-sizing: border-box !important; }

  /* 表格容器 */
  .table-wrap {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  .table-wrap table { min-width: 560px !important; }

  /* 页脚 */
  .site-foot {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    padding: 30px 16px 26px !important;
  }
  .site-foot .foot-grid {
    width: 100% !important;
    max-width: 100% !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 22px !important;
    box-sizing: border-box !important;
  }

  /* 行列表 */
  .rowlist li { word-break: break-word; }
}


/* ============ v43 顶部留白 ============ */
@media (max-width: 900px) {
  .content, .content-wide { padding-top: 58px !important; }
  .hero { padding: 4px 0 26px !important; }
  .hero .eyebrow { margin-bottom: 10px !important; }
  .hero h1 { margin-top: 0 !important; margin-bottom: 14px !important; }
  .hero .lead { margin-bottom: 18px !important; }
}


/* ============ v44 抽屉强修 ============ */
@media (max-width: 900px) {
  /* 抽屉：无论折叠态如何，宽度固定、层级最高 */
  .sidebar,
  body.side-collapsed .sidebar {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    bottom: 0 !important;
    width: 82vw !important;
    min-width: 260px !important;
    max-width: 330px !important;
    height: 100dvh !important;
    padding: 22px 20px 32px !important;
    margin: 0 !important;
    transform: translateX(-105%) !important;
    transition: transform .24s cubic-bezier(.4,0,.2,1) !important;
    z-index: 1000 !important;
    background: #fff !important;
    box-shadow: 0 0 48px rgba(80,40,60,.18) !important;
    border: none !important;
    border-right: 1px solid #f0e8ec !important;
    border-radius: 0 !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    flex: none !important;
    align-self: auto !important;
  }
  body.mobile-nav-open .sidebar,
  body.mobile-nav-open.side-collapsed .sidebar {
    transform: translateX(0) !important;
    z-index: 1000 !important;
  }

  /* 遮罩在抽屉之下 */
  .nav-mask {
    position: fixed !important;
    inset: 0 !important;
    background: rgba(30,20,26,.45) !important;
    z-index: 900 !important;
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s !important;
  }
  body.mobile-nav-open .nav-mask {
    opacity: 1 !important;
    pointer-events: auto !important;
  }

  /* 汉堡按钮在最上层 */
  .side-toggle,
  body.side-collapsed .side-toggle {
    position: fixed !important;
    top: 12px !important;
    left: auto !important;
    right: 14px !important;
    width: 44px !important;
    height: 44px !important;
    z-index: 1100 !important;
    display: flex !important;
    opacity: 1 !important;
    visibility: visible !important;
  }
  body.mobile-nav-open .side-toggle {
    border-color: #f0e8ec !important;
  }

  /* 抽屉内文字：允许换行，不要 nowrap 裁字 */
  .side-brand {
    display: block !important;
    white-space: normal !important;
    overflow: visible !important;
    font-size: 19px !important;
    margin: 0 0 20px !important;
    color: #2f2b2d !important;
    opacity: 1 !important;
  }
  .side-nav { display: block !important; opacity: 1 !important; }
  .side-nav a {
    display: block !important;
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: clip !important;
    padding: 12px 4px !important;
    font-size: 16px !important;
    color: #3a3236 !important;
    border-bottom: 1px solid #faf3f6 !important;
  }
  .side-group {
    display: block !important;
    white-space: normal !important;
    overflow: visible !important;
    margin: 20px 0 6px !important;
    font-size: 12px !important;
    letter-spacing: .12em;
    color: #a08e96 !important;
    opacity: 1 !important;
  }
  .side-note {
    display: block !important;
    white-space: normal !important;
    overflow: visible !important;
    margin-top: 26px !important;
    font-size: 12.5px !important;
    color: #9b8c93 !important;
    opacity: 1 !important;
  }

  /* 主内容在抽屉关闭时不参与层叠 */
  .main-col { position: relative !important; z-index: 1 !important; }
}


/* ============ v45 抽屉内容复原 ============ */
@media (max-width: 900px) {
  /* 抽屉内的东西全部恢复可见，去掉旧版动画残留 */
  .sidebar .side-brand,
  .sidebar .side-nav,
  .sidebar .side-nav a,
  .sidebar .side-group,
  .sidebar .side-note {
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    filter: none !important;
    color: #3a3236 !important;
    text-indent: 0 !important;
    margin-left: 0 !important;
    padding-left: 6px !important;
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: clip !important;
    display: block !important;
  }
  .sidebar .side-brand {
    font-size: 20px !important;
    font-weight: 700 !important;
    padding: 4px 6px 18px !important;
    margin: 0 0 6px !important;
    border-bottom: 1px solid #f3e9ed !important;
  }
  .sidebar .side-group {
    color: #a08e96 !important;
    font-size: 12px !important;
    padding: 18px 6px 4px !important;
    margin: 0 !important;
    letter-spacing: .1em !important;
  }
  .sidebar .side-nav a {
    font-size: 16px !important;
    padding: 12px 6px !important;
    line-height: 1.5 !important;
    border-bottom: 1px solid #faf3f6 !important;
  }
  .sidebar .side-note {
    color: #9b8c93 !important;
    font-size: 12.5px !important;
    line-height: 1.7 !important;
    padding: 18px 6px 0 !important;
    margin: 0 !important;
    border-top: 1px solid #f3e9ed !important;
  }

  /* 抽屉本身实底，确保不被遮罩压灰 */
  body.mobile-nav-open .sidebar {
    background: #ffffff !important;
    opacity: 1 !important;
    z-index: 1000 !important;
  }
}


/* ============ v46 覆盖折叠隐藏 ============ */
@media (max-width: 900px) {
  /* 优先级高于 body.side-collapsed .side-brand 等旧规则 */
  body.mobile-nav-open .sidebar .side-brand,
  body.mobile-nav-open .sidebar .side-nav,
  body.mobile-nav-open .sidebar .side-nav a,
  body.mobile-nav-open .sidebar .side-group,
  body.mobile-nav-open .sidebar .side-note,
  .sidebar .side-brand,
  .sidebar .side-nav,
  .sidebar .side-nav a,
  .sidebar .side-group,
  .sidebar .side-note {
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
    transform: none !important;
    width: auto !important;
    max-width: 100% !important;
    color: #3a3236 !important;
  }
  .sidebar .side-brand { padding-left: 6px !important; }
  .sidebar .side-group { color: #a08e96 !important; }
  .sidebar .side-note { color: #9b8c93 !important; }
}


/* ============ v47 修正断词 ============ */
/* 华为浏览器把 word-break:break-word 当 break-all，导致中文逐字竖排 */
@media (max-width: 900px) {
  .content p,
  .content li,
  .content a,
  .content td,
  .content th,
  .content h1,
  .content h2,
  .content h3,
  .content span,
  .content div {
    word-break: normal !important;
    overflow-wrap: break-word !important;
    line-break: auto !important;
    -webkit-line-break: auto !important;
  }
  .content :not(pre) > code {
    word-break: break-all !important;
  }
}
