/* Blade Zero Wiki — 宣纸底 + 墨黑 + 朱红，衬线标题。数值按结构规范的设计配方 4/8/12/16/24/32/48/64。 */
:root {
  --paper: #f4f0e8;
  --card: #fffdf7;
  --ink: #191512;
  --muted: #6b6055;
  --line: #d9d0c3;
  --primary: #9e1b25;
  --primary-dark: #7d131b;
  --gold: #b8863b;
  --shadow: 0 1px 2px rgba(25, 21, 18, 0.06), 0 8px 24px rgba(25, 21, 18, 0.08);
  --on-dark: #fff;
  --gold-light: #f0c98a;
  --hero-base: #1b1714;
  --hero-text: #f2ece3;
  --ink-soft: #2c2621;
  --head-glass: rgba(244, 240, 232, 0.96);
  --th-bg: #ece5d9;
  --foot-text: #e9e2d7;
  --foot-muted: #bfb5a7;
  --foot-copy: #9c9184;
  --ghost-line: rgba(255, 255, 255, 0.7);
  --ghost-hover: rgba(255, 255, 255, 0.12);
  --shade-15: rgba(15, 12, 10, 0.15);
  --shade-55: rgba(15, 12, 10, 0.55);
  --shade-88: rgba(15, 12, 10, 0.88);
  --h1-shadow: rgba(0, 0, 0, 0.5);
  --radius: 12px;
  --wrap: 1120px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.65;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { font-family: "Cormorant Garamond", Georgia, serif; line-height: 1.15; color: var(--ink); }
h1 { font-size: clamp(34px, 5vw, 48px); margin: 0 0 12px; font-weight: 700; }
h2 { font-size: clamp(26px, 3.2vw, 34px); margin: 0 0 12px; }
h3 { font-size: 22px; margin: 24px 0 8px; }
p { margin: 0 0 16px; }
.prose, .lede, .faq, .sources, .qa p, .fact-note { overflow-wrap: anywhere; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -9999px; top: 0; background: var(--ink); color: var(--on-dark); padding: 12px 16px; z-index: 50; }
.skip:focus { left: 12px; top: 12px; }

/* 页头 */
.site-head { background: var(--head-glass); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 40; }
.head-in { display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font-family: "Cormorant Garamond", Georgia, serif; font-size: 24px; font-weight: 700; }
.brand:hover { text-decoration: none; }
.brand-mark { display: inline-grid; place-items: center; width: 36px; height: 36px; border: 1px solid var(--primary); color: var(--primary); border-radius: 8px; font-size: 15px; letter-spacing: 1px; font-family: Inter, sans-serif; font-weight: 600; }
.nav-list { display: flex; align-items: center; gap: 4px; margin: 0; padding: 0; list-style: none; }
.nav-list > li { position: relative; }
.nav-list > li > a, .nav-more { display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; color: var(--ink); font-size: 15px; font-weight: 600; cursor: default; }
.nav-list > li > a:hover { color: var(--primary); text-decoration: none; }
.dd { display: none; position: absolute; top: 100%; left: 0; min-width: 220px; margin: 0; padding: 8px; list-style: none; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); z-index: 45; }
.has-dd:hover .dd, .has-dd:focus-within .dd { display: block; }
.dd a { display: block; padding: 8px 10px; border-radius: 8px; color: var(--ink); font-size: 14px; }
.dd a:hover { background: var(--paper); text-decoration: none; }
.menu-btn { display: none; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border: 1px solid var(--line); background: var(--card); color: var(--ink); border-radius: 8px; font: inherit; font-size: 15px; }
.burger { width: 18px; height: 2px; background: var(--ink); position: relative; }
.burger::before, .burger::after { content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: var(--ink); }
.burger::before { top: -6px; }
.burger::after { top: 6px; }

/* 通用 */
.sec { padding: 56px 20px 0; }
.sec-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; margin-bottom: 20px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.sec-head h2 { margin: 0; }
.sec-head p { margin: 0; color: var(--muted); max-width: 60ch; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 24px; border-radius: 8px; background: var(--primary); color: var(--on-dark); font-weight: 600; border: 1px solid var(--primary); }
.btn:hover { background: var(--primary-dark); text-decoration: none; }
.btn.ghost { background: transparent; color: var(--on-dark); border-color: var(--ghost-line); }
.btn.ghost:hover { background: var(--ghost-hover); }
.btn:focus-visible, .gcard:focus-visible, .fact:focus-visible, a:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

/* 首页 hero */
.hero { position: relative; min-height: 520px; display: flex; align-items: flex-end; overflow: hidden; background: var(--hero-base); }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(180deg, var(--shade-15) 0%, var(--shade-55) 55%, var(--shade-88) 100%); }
.hero-in { position: relative; padding-top: 120px; padding-bottom: 48px; color: var(--on-dark); }
.kicker { margin: 0 0 8px; color: var(--gold-light); font-size: 14px; letter-spacing: 2px; text-transform: uppercase; }
.hero h1 { color: var(--on-dark); text-shadow: 0 2px 18px var(--h1-shadow); max-width: 18ch; }
.hero-lede { max-width: 58ch; color: var(--hero-text); font-size: 18px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }

/* 事实 */
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.fact { display: flex; flex-direction: column; gap: 4px; min-height: 84px; padding: 14px 16px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); }
.fact:hover { border-color: var(--primary); text-decoration: none; }
.fact-k { color: var(--muted); font-size: 13px; text-transform: uppercase; letter-spacing: 0.8px; }
.fact-v { font-weight: 600; font-size: 18px; }
.fact-note { margin-top: 12px; color: var(--muted); font-size: 14px; }
.fact-note p { margin: 0 0 6px; }

/* 卡片 */
.cards { display: flex; flex-wrap: wrap; gap: 18px; }
.gcard { flex: 1 1 230px; min-width: 0; display: flex; flex-direction: column; overflow: hidden; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); transition: border-color 150ms ease, box-shadow 150ms ease; }
.gcard:hover { border-color: var(--primary); box-shadow: var(--shadow); text-decoration: none; }
.gcard img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--line); }
.gcard-body { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px 14px; }
.gcard-body strong { font-size: 16px; line-height: 1.35; }
.gcard-body small { color: var(--muted); font-size: 13px; }
.grp-h { margin: 28px 0 12px; color: var(--muted); font-family: Inter, sans-serif; font-size: 14px; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; }

/* 截图墙 */
.wall { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.wall figure { margin: 0; overflow: hidden; border-radius: var(--radius); border: 1px solid var(--line); background: var(--card); }
.wall img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }

/* 内页 */
.page-head { padding: 40px 0 0; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 16px; padding: 0; list-style: none; color: var(--muted); font-size: 14px; }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--line); }
.stamp { color: var(--muted); font-size: 14px; margin: 0; }
.page { padding-top: 24px; }
.lede { max-width: 72ch; margin: 0 0 24px; font-size: 19px; color: var(--ink-soft); }
.lede p { margin: 0 0 12px; }
.cover { margin: 0 0 28px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--card); }
.cover img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.cover figcaption { padding: 10px 14px; color: var(--muted); font-size: 13px; }
.guide-nav { margin: 8px 0 40px; }
.page-grid { max-width: 100%; }
.entry { min-width: 0; }
.prose { max-width: 72ch; }
.prose h2 { margin-top: 40px; }
.prose h3 { margin-top: 28px; }
.prose ul, .prose ol { margin: 0 0 16px; padding-left: 22px; }
.prose li { margin-bottom: 6px; }
.prose table { display: block; width: 100%; max-width: 100%; overflow-x: auto; border-collapse: collapse; margin: 16px 0 24px; font-size: 15px; }
.prose th, .prose td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
.prose th { background: var(--th-bg); }
.prose figure { margin: 20px 0; }
.prose figure img { border-radius: var(--radius); border: 1px solid var(--line); }
.prose figcaption, .prose em { color: var(--muted); font-size: 14px; }
.sources, .faq { max-width: 72ch; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); }
.sources ol { padding-left: 20px; }
.sources li { margin-bottom: 8px; }
.checked { color: var(--muted); font-size: 13px; }
.qa { margin-bottom: 18px; }
.qa h3 { margin: 0 0 6px; font-family: Inter, sans-serif; font-size: 17px; font-weight: 600; }
.more { margin-top: 48px; }

/* 全部页面 */
.filter-label { display: block; margin: 8px 0 6px; color: var(--muted); font-size: 14px; font-weight: 600; }
.page-filter { width: 100%; max-width: 420px; min-height: 44px; padding: 0 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--card); font: inherit; }
.ap-sec { margin-top: 32px; }
.ap-sec h2 { font-size: 26px; border-bottom: 1px solid var(--line); padding-bottom: 8px; }
.ap-n { color: var(--muted); font-family: Inter, sans-serif; font-size: 13px; font-weight: 400; }
.ap-sec ul { columns: 2; column-gap: 32px; margin: 0; padding-left: 18px; }
.ap-sec li { break-inside: avoid; margin-bottom: 4px; }

/* 页脚 */
.site-foot { margin-top: 64px; padding: 40px 0 24px; background: var(--hero-base); color: var(--foot-text); }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.foot-brand { font-family: "Cormorant Garamond", Georgia, serif; font-size: 24px; margin: 0 0 8px; }
.foot-brand a { color: var(--on-dark); }
.foot-about p { color: var(--foot-muted); font-size: 14px; max-width: 44ch; }
.foot-col h2 { color: var(--gold-light); font-family: Inter, sans-serif; font-size: 13px; text-transform: uppercase; letter-spacing: 1px; margin: 0 0 10px; }
.foot-col ul { list-style: none; margin: 0; padding: 0; }
.foot-col li { margin-bottom: 8px; }
.foot-col a { color: var(--foot-text); font-size: 14px; }
.foot-copy { margin: 32px auto 0; color: var(--foot-copy); font-size: 13px; }

@media (max-width: 1024px) {
  .wall, .facts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .menu-btn { display: inline-flex; }
  .nav { display: none; position: absolute; top: 64px; left: 0; right: 0; background: var(--card); border-bottom: 1px solid var(--line); padding: 12px 20px 20px; }
  .nav.open { display: block; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-list > li > a, .nav-more { padding: 10px 0; }
  .dd { position: static; display: block; box-shadow: none; border: 0; padding: 0 0 8px 12px; background: transparent; }
  .has-dd:hover .dd { display: block; }
}
@media (max-width: 768px) {
  body { font-size: 16px; }
  .wall, .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero { min-height: 440px; }
  .ap-sec ul { columns: 1; }
}
@media (max-width: 560px) {
  .wall, .facts { grid-template-columns: 1fr; }
  .hero-in { padding-top: 160px; padding-bottom: 32px; }
  .foot-grid { grid-template-columns: 1fr; }
  .btn { width: 100%; }
}