/* 亚博榜 - Ledger Index 版式
   主题锁定：浅色单一主题；底色 #f4f3f0（暖灰纸），文字 #1c1b19，强调 #a97a2f（琥珀） */

:root {
  --paper: #f4f3f0;
  --paper-2: #eceae5;
  --ink: #1c1b19;
  --ink-soft: #4a4741;
  --ink-faint: #78736a;
  --line: #d6d2c9;
  --line-strong: #b9b3a6;
  --accent: #a97a2f;
  --accent-deep: #7d5621;
  --dark: #201f1c;
  --radius: 2px;
  --max: 1180px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Noto Serif SC", "Songti SC", "Source Han Serif SC", Georgia, "Times New Roman", serif;
  font-size: 17px;
  line-height: 1.85;
  letter-spacing: 0.01em;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--accent-deep); text-decoration: none; }
a:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

h1, h2, h3, h4 {
  font-family: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin: 0 0 0.6em;
}

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* ---------- 顶栏：细横条 + 竹节式分栏 ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(244, 243, 240, 0.96);
  backdrop-filter: saturate(140%) blur(6px);
  border-bottom: 1px solid var(--line-strong);
}

.topbar-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
  height: 72px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
}

.brand { display: flex; align-items: center; gap: 12px; }
.brand img { width: 38px; height: 38px; border-radius: 4px; }
.brand-name {
  font-family: "Noto Sans SC", "PingFang SC", sans-serif;
  font-weight: 700;
  font-size: 19px;
  letter-spacing: 0.06em;
  color: var(--ink);
}
.brand-sub {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 10.5px;
  letter-spacing: 0.24em;
  color: var(--ink-faint);
  text-transform: uppercase;
  line-height: 1;
  margin-top: 3px;
}

.nav { display: flex; align-items: center; gap: 2px; justify-content: center; flex-wrap: nowrap; }
.nav a {
  font-family: "Noto Sans SC", "PingFang SC", sans-serif;
  font-size: 14px;
  color: var(--ink-soft);
  padding: 8px 11px;
  border-left: 1px solid transparent;
  border-right: 1px solid transparent;
  white-space: nowrap;
}
.nav a:hover { color: var(--ink); text-decoration: none; border-left-color: var(--line); border-right-color: var(--line); }
.nav a.is-active { color: var(--accent-deep); font-weight: 700; }

.menu-btn {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: transparent;
  cursor: pointer;
  padding: 0;
  align-items: center;
  justify-content: center;
}
.menu-btn span { display: block; width: 18px; height: 2px; background: var(--ink); position: relative; }
.menu-btn span::before,
.menu-btn span::after {
  content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: var(--ink);
}
.menu-btn span::before { top: -6px; }
.menu-btn span::after { top: 6px; }

.top-note {
  font-family: Georgia, serif;
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--ink-faint);
  text-transform: uppercase;
  white-space: nowrap;
}

/* ---------- 页头下方细排（版式标识带） ---------- */
.rule-strip {
  border-bottom: 1px solid var(--line);
  background: var(--paper-2);
}
.rule-strip .wrap {
  display: flex;
  gap: 28px;
  overflow-x: auto;
  padding-top: 10px;
  padding-bottom: 10px;
  font-family: "Noto Sans SC", sans-serif;
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--ink-faint);
  white-space: nowrap;
}
.rule-strip b { color: var(--accent-deep); font-weight: 600; }

/* ---------- 通用区块 ---------- */
main { display: block; padding-bottom: 72px; }

.section { padding: 56px 0; border-top: 1px solid var(--line); }
.section:first-child { border-top: 0; }

.sec-head { margin-bottom: 26px; }
.sec-head h2 { font-size: clamp(22px, 2.6vw, 30px); margin-bottom: 8px; }
.sec-head p { margin: 0; color: var(--ink-soft); max-width: 68ch; font-size: 15.5px; }

.kicker {
  font-family: "Noto Sans SC", sans-serif;
  font-size: 11.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 10px;
  display: block;
}

/* ---------- 首页：账本式开篇 ---------- */
.ledger-open {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: end;
  padding: 64px 0 48px;
}
.ledger-open h1 {
  font-size: clamp(30px, 4.2vw, 50px);
  line-height: 1.1;
  margin-bottom: 20px;
  text-wrap: balance;
}
.ledger-open .lead { font-size: 17px; color: var(--ink-soft); max-width: 34ch; margin: 0 0 26px; }
.ledger-open figure { margin: 0; }
.ledger-open figure img { border: 1px solid var(--line-strong); border-radius: var(--radius); }
.ledger-open figcaption {
  font-size: 12.5px;
  color: var(--ink-faint);
  margin-top: 10px;
  letter-spacing: 0.04em;
}
.btn-line {
  display: inline-block;
  font-family: "Noto Sans SC", sans-serif;
  font-size: 14px;
  letter-spacing: 0.08em;
  padding: 11px 22px;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  color: var(--ink);
  background: transparent;
}
.btn-line:hover { background: var(--ink); color: var(--paper); text-decoration: none; }

/* 编号条目账本 */
.ledger-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-strong); }
.ledger-list li {
  display: grid;
  grid-template-columns: 62px 1fr auto;
  gap: 20px;
  align-items: baseline;
  padding: 18px 4px;
  border-bottom: 1px solid var(--line);
}
.ledger-list .no {
  font-family: Georgia, serif;
  font-size: 15px;
  color: var(--accent);
  letter-spacing: 0.08em;
}
.ledger-list .ttl { font-family: "Noto Sans SC", sans-serif; font-size: 17px; font-weight: 600; }
.ledger-list .ttl a { color: var(--ink); }
.ledger-list .ttl a:hover { color: var(--accent-deep); text-decoration: none; }
.ledger-list .meta { font-size: 12.5px; color: var(--ink-faint); white-space: nowrap; }

/* 横向对照带 */
.band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: #fbfaf8;
}
.band > div { padding: 24px 20px; border-left: 1px solid var(--line); }
.band > div:first-child { border-left: 0; }
.band h3 { font-size: 15px; margin-bottom: 6px; }
.band p { margin: 0; font-size: 13.5px; color: var(--ink-soft); line-height: 1.7; }

/* 双列异形卡 */
.duo { display: grid; grid-template-columns: 1.25fr 1fr; gap: 28px; }
.duo article {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: #fbfaf8;
  overflow: hidden;
}
.duo article img { border-bottom: 1px solid var(--line); }
.duo .body { padding: 22px 24px 26px; }
.duo h3 { font-size: 19px; margin-bottom: 8px; }
.duo p { margin: 0 0 12px; font-size: 15px; color: var(--ink-soft); }
.duo .more { font-family: "Noto Sans SC", sans-serif; font-size: 13px; letter-spacing: 0.06em; }

/* 栏目目录（六宫格编号） */
.cat-index {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line-strong);
}
.cat-index a {
  background: #fbfaf8;
  padding: 24px 22px 26px;
  display: block;
  color: var(--ink);
}
.cat-index a:hover { background: #f2efe9; text-decoration: none; }
.cat-index .cn {
  font-family: Georgia, serif;
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 0.16em;
  display: block;
  margin-bottom: 8px;
}
.cat-index strong { font-family: "Noto Sans SC", sans-serif; font-size: 17px; display: block; margin-bottom: 6px; }
.cat-index span.desc { font-size: 13.5px; color: var(--ink-soft); line-height: 1.65; display: block; }

/* 图片 + 文字交错（仅两处） */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 44px;
  align-items: center;
}
.split figure { margin: 0; }
.split figure img { border: 1px solid var(--line-strong); border-radius: var(--radius); }
.split h2 { font-size: clamp(21px, 2.4vw, 28px); }
.split p { color: var(--ink-soft); font-size: 15.5px; }
.split ul { margin: 0; padding-left: 20px; color: var(--ink-soft); font-size: 15px; }
.split ul li { margin-bottom: 8px; }
.split.reverse figure { order: 2; }

/* 实务清单 */
.checks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.checks div { border-top: 2px solid var(--accent); padding-top: 14px; }
.checks h3 { font-size: 16px; margin-bottom: 6px; }
.checks p { margin: 0; font-size: 14px; color: var(--ink-soft); }

/* 常见疑问（折叠） */
details.faq {
  border-bottom: 1px solid var(--line);
  padding: 16px 0;
}
details.faq summary {
  cursor: pointer;
  font-family: "Noto Sans SC", sans-serif;
  font-size: 16px;
  font-weight: 600;
  list-style: none;
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::before { content: "＋"; color: var(--accent); margin-right: 10px; font-weight: 400; }
details.faq[open] summary::before { content: "－"; }
details.faq p { margin: 10px 0 0 26px; color: var(--ink-soft); font-size: 15px; }

/* 页脚 */
.site-foot { background: var(--dark); color: #cfcabf; padding: 56px 0 28px; margin-top: 0; }
.site-foot a { color: #e8e2d5; }
.site-foot .fgrid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid #3a3833;
}
.site-foot h3 {
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #9d978a;
  margin-bottom: 14px;
  font-weight: 600;
}
.site-foot p, .site-foot li { font-size: 13.5px; line-height: 1.9; margin: 0 0 6px; }
.site-foot ul { list-style: none; margin: 0; padding: 0; }
.site-foot .legal {
  padding-top: 22px;
  font-size: 12.5px;
  color: #8d8779;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
}
.site-foot .legal span { white-space: nowrap; }

/* 面包屑 */
.crumb {
  font-family: "Noto Sans SC", sans-serif;
  font-size: 13px;
  color: var(--ink-faint);
  padding: 22px 0 0;
  letter-spacing: 0.02em;
}
.crumb a { color: var(--ink-soft); }
.crumb span.sep { margin: 0 8px; color: var(--line-strong); }

/* ---------- 文章页：左文 + 右侧粘性aside ---------- */
.article-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 288px;
  gap: 56px;
  padding-top: 28px;
}
.article-head { border-bottom: 1px solid var(--line-strong); padding-bottom: 22px; margin-bottom: 30px; }
.article-head h1 { font-size: clamp(26px, 3.4vw, 38px); line-height: 1.2; margin-bottom: 14px; }
.article-meta {
  font-family: "Noto Sans SC", sans-serif;
  font-size: 13px;
  color: var(--ink-faint);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}
.article-meta b { color: var(--ink); font-weight: 600; }

.article-body { max-width: 70ch; }
.article-body p { margin: 0 0 1.15em; }
.article-body h2 {
  font-size: clamp(20px, 2.2vw, 25px);
  margin-top: 1.9em;
  margin-bottom: 0.55em;
  padding-left: 14px;
  border-left: 3px solid var(--accent);
  line-height: 1.35;
}
.article-body h3 { font-size: 17.5px; margin-top: 1.5em; }
.article-body ul, .article-body ol { padding-left: 22px; margin: 0 0 1.2em; }
.article-body li { margin-bottom: 8px; }
.article-body figure { margin: 1.8em 0; }
.article-body figure img { border: 1px solid var(--line-strong); border-radius: var(--radius); }
.article-body figcaption { font-size: 12.5px; color: var(--ink-faint); margin-top: 8px; }
.article-body blockquote {
  margin: 1.6em 0;
  padding: 4px 0 4px 20px;
  border-left: 2px solid var(--line-strong);
  color: var(--ink-soft);
  font-style: normal;
}
.article-body table { width: 100%; border-collapse: collapse; margin: 1.4em 0; font-size: 14.5px; }
.article-body th, .article-body td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.article-body th { font-family: "Noto Sans SC", sans-serif; font-size: 13px; letter-spacing: 0.04em; color: var(--ink-soft); }

.back-cat {
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-family: "Noto Sans SC", sans-serif;
  font-size: 14px;
}
.back-cat a { letter-spacing: 0.04em; }

.aside {
  position: sticky;
  top: 96px;
  align-self: start;
  border-top: 2px solid var(--ink);
  padding-top: 16px;
}
.aside h2 {
  font-size: 12.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-faint);
  font-weight: 600;
  margin-bottom: 14px;
  font-family: "Noto Sans SC", sans-serif;
}
.aside ol, .aside ul { list-style: none; margin: 0; padding: 0; }
.aside li { border-bottom: 1px solid var(--line); padding: 11px 0; }
.aside li a { font-size: 14.5px; color: var(--ink); line-height: 1.55; display: block; }
.aside li a:hover { color: var(--accent-deep); }
.aside li small { display: block; font-size: 11.5px; color: var(--ink-faint); letter-spacing: 0.04em; margin-top: 3px; }

/* 栏目页 */
.cat-hero {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 44px;
  align-items: end;
  padding: 52px 0 36px;
  border-bottom: 1px solid var(--line-strong);
}
.cat-hero h1 { font-size: clamp(27px, 3.6vw, 42px); margin-bottom: 12px; }
.cat-hero p { margin: 0; color: var(--ink-soft); max-width: 60ch; }
.cat-hero figure { margin: 0; }
.cat-hero figure img { border: 1px solid var(--line-strong); }

.list-rows { list-style: none; margin: 0; padding: 0; }
.list-rows li {
  display: grid;
  grid-template-columns: 128px 1fr;
  gap: 26px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}
.list-rows img { border: 1px solid var(--line-strong); border-radius: var(--radius); }
.list-rows h2 { font-size: 19px; margin-bottom: 8px; }
.list-rows h2 a { color: var(--ink); }
.list-rows h2 a:hover { color: var(--accent-deep); text-decoration: none; }
.list-rows p { margin: 0 0 8px; font-size: 14.5px; color: var(--ink-soft); }
.list-rows .d { font-family: Georgia, serif; font-size: 12.5px; color: var(--ink-faint); letter-spacing: 0.06em; }

.cat-aside-cats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line-strong);
  margin-top: 48px;
}
.cat-aside-cats a { background: #fbfaf8; padding: 18px 20px; color: var(--ink); font-family: "Noto Sans SC", sans-serif; font-size: 14.5px; }
.cat-aside-cats a:hover { background: #f2efe9; text-decoration: none; color: var(--accent-deep); }

/* 响应式 */
@media (max-width: 1024px) {
  .ledger-open { grid-template-columns: 1fr; gap: 32px; align-items: start; }
  .article-shell { grid-template-columns: 1fr; gap: 36px; }
  .aside { position: static; }
  .band { grid-template-columns: repeat(2, 1fr); }
  .band > div:nth-child(3) { border-left: 0; }
  .band > div:nth-child(3), .band > div:nth-child(4) { border-top: 1px solid var(--line); }
  .site-foot .fgrid { grid-template-columns: 1fr 1fr; }
  .cat-hero { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .nav { display: none; }
  .menu-btn { display: flex; }
  .top-note { display: none; }
  .topbar-inner { grid-template-columns: 1fr auto; }
  .nav.is-open {
    display: block;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line-strong);
    padding: 10px 16px 18px;
  }
  .nav.is-open a { display: block; padding: 12px 6px; border-bottom: 1px solid var(--line); border-left: 0; border-right: 0; }
}

@media (max-width: 768px) {
  body { font-size: 16px; }
  .wrap { padding: 0 18px; }
  .topbar-inner { padding: 0 18px; height: 64px; }
  .nav.is-open { top: 64px; }
  .ledger-open { padding: 40px 0 32px; }
  .section { padding: 40px 0; }
  .duo, .split, .checks { grid-template-columns: 1fr; gap: 22px; }
  .cat-index { grid-template-columns: 1fr; }
  .band { grid-template-columns: 1fr; }
  .band > div { border-left: 0; border-top: 1px solid var(--line); }
  .band > div:first-child { border-top: 0; }
  .list-rows li { grid-template-columns: 1fr; gap: 14px; }
  .list-rows img { max-width: 100%; }
  .ledger-list li { grid-template-columns: 40px 1fr; gap: 12px; }
  .ledger-list .meta { grid-column: 2; }
  .site-foot .fgrid { grid-template-columns: 1fr; gap: 26px; }
  .split.reverse figure { order: 0; }
  .article-body h2 { padding-left: 10px; }
  .rule-strip .wrap { gap: 16px; }
}

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