:root {
  --navy-950: #07172f;
  --navy-900: #0b2246;
  --navy-800: #123868;
  --navy-700: #19508d;
  --blue-600: #2d74bd;
  --blue-100: #e8f1fb;
  --gold-600: #b9852e;
  --gold-500: #d3a348;
  --gold-100: #f8edd8;
  --ink: #17243a;
  --muted: #667085;
  --line: #e4e9f0;
  --paper: #ffffff;
  --canvas: #f4f6f9;
  --success: #1c8b5b;
  --shadow-sm: 0 8px 24px rgba(12, 35, 69, 0.07);
  --shadow-lg: 0 28px 70px rgba(4, 21, 48, 0.18);
  --radius: 18px;
  --header-height: 72px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 22px);
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 8%, rgba(45, 116, 189, 0.07), transparent 24rem),
    linear-gradient(180deg, #f9fafc 0, var(--canvas) 34rem, var(--canvas) 100%);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.modal-open { overflow: hidden; }

a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { color: inherit; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 2000;
  transform: translateY(-160%);
  padding: 10px 16px;
  color: #fff;
  background: var(--navy-900);
  border-radius: 9px;
}

.skip-link:focus { transform: translateY(0); }

.reading-progress {
  position: fixed;
  inset: 0 0 auto;
  height: 3px;
  z-index: 1200;
  background: transparent;
}

.reading-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--gold-500), #f5cd70);
  box-shadow: 0 0 16px rgba(245, 205, 112, 0.75);
}

.touch-fx {
  position: fixed;
  inset: 0;
  z-index: 1100;
  width: 100%;
  height: 100%;
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease;
}

body.touch-fx-enabled .touch-fx {
  opacity: 1;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1000;
  height: var(--header-height);
  color: #fff;
  background: linear-gradient(180deg, rgba(7, 23, 47, 0.82), rgba(7, 23, 47, 0.5));
  border-bottom: 1px solid rgba(255,255,255,0.12);
  backdrop-filter: blur(16px) saturate(130%);
  transition: background .25s ease, box-shadow .25s ease;
}

.site-header.scrolled {
  background: rgba(8, 28, 56, 0.95);
  box-shadow: 0 9px 35px rgba(5, 20, 44, 0.23);
}

.header-inner {
  width: min(1480px, calc(100% - 48px));
  height: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand, .footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-width: max-content;
}

.brand img, .footer-brand img {
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(255,255,255,.22), 0 7px 22px rgba(0,0,0,.18);
}

.brand span, .footer-brand span { display: grid; line-height: 1.15; }
.brand strong, .footer-brand strong { font-size: 15px; letter-spacing: .08em; }
.brand small, .footer-brand small { margin-top: 5px; opacity: .66; font-size: 11px; letter-spacing: .18em; }

.top-nav { display: flex; align-items: center; gap: 32px; margin-left: auto; }
.top-nav a { position: relative; font-size: 14px; color: rgba(255,255,255,.82); }
.top-nav a::after {
  content: "";
  position: absolute;
  left: 50%;
  right: 50%;
  bottom: -23px;
  height: 2px;
  background: var(--gold-500);
  transition: left .2s ease, right .2s ease;
}
.top-nav a:hover { color: #fff; }
.top-nav a:hover::after { left: 0; right: 0; }

.header-actions { display: flex; align-items: center; gap: 10px; }
.search-trigger, .aside-search {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 12px;
  background: rgba(255,255,255,.09);
  color: rgba(255,255,255,.88);
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease;
}
.search-trigger { height: 40px; padding: 0 11px 0 14px; font-size: 13px; }
.search-trigger:hover { background: rgba(255,255,255,.15); border-color: rgba(255,255,255,.3); }
.search-trigger kbd {
  padding: 1px 6px;
  color: rgba(255,255,255,.7);
  border: 1px solid rgba(255,255,255,.18);
  border-bottom-color: rgba(255,255,255,.28);
  border-radius: 5px;
  font-size: 11px;
  font-family: inherit;
}

.menu-trigger {
  display: none;
  width: 42px;
  height: 42px;
  padding: 10px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 12px;
  background: rgba(255,255,255,.08);
  cursor: pointer;
}
.menu-bars { display: grid; gap: 3px; width: 18px; }
.menu-bars i { display: block; height: 2px; background: #fff; border-radius: 2px; }
.menu-trigger b { font-size: 12px; font-weight: 700; }

.hero {
  position: relative;
  min-height: 650px;
  overflow: hidden;
  color: #fff;
  background: var(--navy-950);
}

.hero-media, .hero-shade { position: absolute; inset: 0; }
.hero-media {
  background-image: url('/assets/hero.webp');
  background-position: center 46%;
  background-size: cover;
  transform: scale(1.012);
}
.hero-shade {
  background:
    linear-gradient(90deg, rgba(5, 21, 45, .96) 0%, rgba(7, 27, 58, .88) 30%, rgba(7, 25, 52, .34) 60%, rgba(5, 17, 36, .08) 78%),
    linear-gradient(180deg, rgba(4, 17, 36, .12) 52%, rgba(4, 17, 36, .72) 100%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: min(1480px, calc(100% - 48px));
  min-height: 650px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  padding-top: var(--header-height);
}

.hero-copy { width: min(660px, 52vw); padding: 42px 0 28px; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
  color: #f1c96f;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .22em;
}
.eyebrow::before { content: ""; width: 34px; height: 1px; background: currentColor; }
.hero h1 { margin: 0; font-size: clamp(46px, 5.3vw, 78px); line-height: 1.08; letter-spacing: -.045em; text-shadow: 0 8px 32px rgba(0,0,0,.2); }
.hero h1 em { color: #f2cf7f; font-style: normal; }
.hero-copy > p { max-width: 580px; margin: 27px 0 0; color: rgba(255,255,255,.76); font-size: 17px; line-height: 1.9; }
.hero-actions { display: flex; gap: 12px; margin-top: 32px; }
.primary-button, .secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 50px;
  padding: 0 23px;
  border-radius: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.primary-button { gap: 16px; color: var(--navy-950); background: linear-gradient(135deg, #f6d891, #d7a749); box-shadow: 0 12px 32px rgba(213, 165, 68, .28); }
.primary-button:hover { transform: translateY(-2px); box-shadow: 0 15px 36px rgba(213, 165, 68, .4); }
.secondary-button { color: #fff; border: 1px solid rgba(255,255,255,.28); background: rgba(255,255,255,.08); }
.secondary-button:hover { background: rgba(255,255,255,.14); }
.hero-meta { display: flex; gap: 30px; margin-top: 38px; color: rgba(255,255,255,.58); font-size: 12px; }
.hero-meta span { display: inline-flex; align-items: baseline; gap: 6px; }
.hero-meta b { color: #fff; font-size: 17px; }

.quick-entry { position: relative; z-index: 5; width: min(1480px, calc(100% - 48px)); margin: -48px auto 0; }
.quick-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.88);
  border-radius: 20px;
  background: rgba(255,255,255,.96);
  box-shadow: var(--shadow-lg);
}
.quick-grid a {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  align-items: center;
  gap: 14px;
  min-height: 105px;
  padding: 22px 24px;
  border-right: 1px solid var(--line);
  transition: background .2s ease;
}
.quick-grid a:last-child { border-right: 0; }
.quick-grid a:hover { background: #f8fbff; }
.quick-grid a > b { color: #9aa6b6; font-weight: 400; transition: transform .2s ease, color .2s ease; }
.quick-grid a:hover > b { color: var(--blue-600); transform: translateX(4px); }
.quick-icon {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  color: var(--gold-600);
  background: var(--gold-100);
  border: 1px solid #ecd9b4;
  border-radius: 15px;
  font-family: "STKaiti", "KaiTi", serif;
  font-size: 21px;
  font-weight: 700;
}
.quick-grid div { display: grid; line-height: 1.35; }
.quick-grid small { margin-bottom: 5px; color: var(--muted); font-size: 11px; }
.quick-grid strong { font-size: 15px; }

.guide-shell {
  width: min(1480px, calc(100% - 48px));
  margin: 54px auto 100px;
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr) 250px;
  align-items: start;
  gap: 28px;
}

.desktop-toc, .guide-aside { position: sticky; top: calc(var(--header-height) + 24px); }
.toc-card, .aside-card, .notice-card, .guide-section {
  border: 1px solid var(--line);
  background: rgba(255,255,255,.98);
  box-shadow: var(--shadow-sm);
}
.toc-card { overflow: hidden; border-radius: var(--radius); }
.toc-head { display: flex; justify-content: space-between; align-items: baseline; padding: 18px 20px 14px; border-bottom: 1px solid var(--line); }
.toc-head span { font-weight: 750; }
.toc-head small { color: #9aa5b4; font-size: 9px; letter-spacing: .16em; }
.toc-card nav { max-height: calc(100vh - 155px); overflow: auto; padding: 10px; scrollbar-width: thin; }
.toc-link {
  display: grid;
  grid-template-columns: 27px 1fr;
  gap: 7px;
  align-items: center;
  min-height: 39px;
  padding: 7px 9px;
  border-radius: 9px;
  color: #667085;
  line-height: 1.25;
  transition: color .18s ease, background .18s ease;
}
.toc-link span { color: #a2acba; font-size: 10px; font-variant-numeric: tabular-nums; }
.toc-link em { overflow: hidden; font-size: 12px; font-style: normal; text-overflow: ellipsis; white-space: nowrap; }
.toc-link:hover { color: var(--navy-800); background: #f4f7fb; }
.toc-link.active { color: var(--navy-800); background: var(--blue-100); font-weight: 700; }
.toc-link.active span { color: var(--blue-600); }

.guide-content { min-width: 0; }
.notice-card {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 14px;
  align-items: start;
  margin-bottom: 22px;
  padding: 19px 21px;
  border-color: #ecd9b5;
  border-radius: 15px;
  background: linear-gradient(135deg, #fffdf8, #fbf4e8);
}
.notice-card > span { display: grid; width: 36px; height: 36px; place-items: center; color: #fff; background: var(--gold-500); border-radius: 50%; font-family: Georgia, serif; font-weight: 700; }
.notice-card strong { color: #6e4a15; font-size: 14px; }
.notice-card p { margin: 2px 0 0; color: #826837; font-size: 13px; line-height: 1.75; }

.guide-section {
  position: relative;
  margin-bottom: 22px;
  padding: 36px 42px 40px;
  border-radius: var(--radius);
  scroll-margin-top: calc(var(--header-height) + 20px);
}
.chapter-heading {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  margin-bottom: 28px;
  padding-bottom: 21px;
  border-bottom: 1px solid var(--line);
}
.chapter-number {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  color: var(--gold-600);
  background: var(--gold-100);
  border-radius: 13px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
}
.guide-section h2 { margin: 0; color: var(--navy-800); font-size: 25px; line-height: 1.35; letter-spacing: -.02em; }
.copy-anchor {
  padding: 6px 9px;
  color: #8894a3;
  border: 0;
  background: transparent;
  font-size: 11px;
  cursor: pointer;
}
.copy-anchor:hover { color: var(--blue-600); }
.guide-section h3 {
  position: relative;
  margin: 31px 0 15px;
  padding-left: 16px;
  color: var(--navy-800);
  font-size: 19px;
  line-height: 1.45;
}
.guide-section h3::before {
  content: "";
  position: absolute;
  left: 0;
  top: .35em;
  width: 4px;
  height: 1.05em;
  border-radius: 4px;
  background: linear-gradient(180deg, var(--gold-500), var(--blue-600));
}
.guide-section p { margin: 0 0 15px; color: #42516a; font-size: 15px; line-height: 1.9; }
.guide-section .content-list { margin: 12px 0 22px; padding-left: 22px; color: #42516a; }
.guide-section .content-list li { margin: 8px 0; padding-left: 3px; font-size: 15px; line-height: 1.8; }
.guide-section .content-list li::marker { color: var(--gold-500); }
.guide-section .numbered { list-style: none; counter-reset: guide-step; padding-left: 0; }
.guide-section .numbered li { position: relative; min-height: 30px; padding-left: 42px; counter-increment: guide-step; }
.guide-section .numbered li::before {
  content: counter(guide-step);
  position: absolute;
  left: 0;
  top: 1px;
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  color: var(--navy-800);
  background: var(--blue-100);
  border-radius: 9px;
  font-size: 12px;
  font-weight: 800;
}

.table-wrap { margin: 20px -10px 27px; overflow-x: auto; border: 1px solid #dce3ed; border-radius: 14px; }
table { width: 100%; border-collapse: separate; border-spacing: 0; min-width: 720px; font-size: 13px; line-height: 1.55; }
thead th { position: sticky; top: 0; padding: 14px 15px; color: #fff; background: var(--navy-800); text-align: left; font-weight: 700; }
thead th:first-child { border-radius: 13px 0 0; }
thead th:last-child { border-radius: 0 13px 0 0; }
tbody th, tbody td { padding: 13px 15px; color: #4a5970; border-bottom: 1px solid #e6eaf0; vertical-align: top; text-align: left; }
tbody th { color: var(--navy-800); font-weight: 700; white-space: nowrap; }
tbody tr:nth-child(even) { background: #f8fafc; }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }

.guide-aside { display: grid; gap: 16px; }
.aside-card { padding: 20px; border-radius: 15px; }
.aside-card h2 { margin: 0 0 13px; color: var(--navy-800); font-size: 15px; }
.aside-card p { margin: 8px 0 0; color: var(--muted); font-size: 12px; line-height: 1.7; }
.status-pill { display: inline-flex; align-items: center; gap: 7px; margin-bottom: 13px; color: var(--success); font-size: 11px; font-weight: 700; }
.status-pill i { width: 7px; height: 7px; background: #24b573; border-radius: 50%; box-shadow: 0 0 0 4px rgba(36,181,115,.12); }
.status-card strong { display: block; color: var(--navy-800); font-size: 14px; }
.aside-search { width: 100%; justify-content: flex-start; padding: 10px 12px; color: #667085; border-color: var(--line); background: #f7f9fc; font-size: 12px; }
.aside-search:hover { color: var(--navy-800); border-color: #bfcbda; background: #fff; }
.hot-keywords { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 12px; }
.hot-keywords button, .search-suggestions button {
  padding: 4px 9px;
  color: #607087;
  border: 1px solid var(--line);
  border-radius: 99px;
  background: #fff;
  font-size: 11px;
  cursor: pointer;
}
.hot-keywords button:hover, .search-suggestions button:hover { color: var(--blue-600); border-color: #b9d1ea; background: var(--blue-100); }
.safety-card { position: relative; overflow: hidden; background: linear-gradient(145deg, #102f5b, #0b2246); }
.safety-card > span { position: absolute; right: -10px; top: -30px; color: rgba(255,255,255,.055); font-family: "STKaiti", "KaiTi", serif; font-size: 116px; line-height: 1; }
.safety-card h2 { position: relative; color: #fff; }
.safety-card p { position: relative; color: rgba(255,255,255,.65); }
.safety-card a { position: relative; display: inline-block; margin-top: 13px; color: #f0c66b; font-size: 12px; }

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: 40px max(24px, calc((100% - 1480px) / 2));
  color: rgba(255,255,255,.72);
  background: var(--navy-950);
}
.footer-brand strong { color: #fff; }
.site-footer p { margin: 12px 0 0; font-size: 12px; }
.footer-links { display: flex; gap: 25px; font-size: 12px; }
.footer-links a:hover { color: #fff; }

.back-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 700;
  width: 44px;
  height: 44px;
  opacity: 0;
  visibility: hidden;
  color: #fff;
  border: 0;
  border-radius: 14px;
  background: var(--navy-800);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transform: translateY(10px);
  transition: opacity .2s ease, visibility .2s ease, transform .2s ease;
}
.back-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }

.search-modal {
  position: fixed;
  inset: 0;
  z-index: 1500;
  padding: 9vh 20px 20px;
  background: rgba(5, 17, 36, .72);
  backdrop-filter: blur(12px);
}
.search-panel {
  width: min(720px, 100%);
  max-height: 78vh;
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 35px 100px rgba(0,0,0,.35);
}
.search-head { display: grid; grid-template-columns: 1fr auto; gap: 10px; padding: 14px; border-bottom: 1px solid var(--line); }
.search-head > div { display: grid; grid-template-columns: 24px 1fr; align-items: center; gap: 8px; padding: 0 12px; background: #f4f7fb; border-radius: 11px; }
.search-head input { width: 100%; height: 48px; color: var(--ink); border: 0; outline: 0; background: transparent; font-size: 16px; }
.search-head button { padding: 0 12px; color: #718096; border: 0; background: transparent; cursor: pointer; }
.search-suggestions { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; padding: 13px 18px; color: #8a95a4; border-bottom: 1px solid var(--line); font-size: 11px; }
.search-results { max-height: calc(78vh - 138px); overflow: auto; padding: 10px; }
.search-empty { display: grid; justify-items: center; padding: 55px 20px 65px; text-align: center; }
.search-empty > span { display: grid; width: 54px; height: 54px; margin-bottom: 15px; place-items: center; color: var(--blue-600); background: var(--blue-100); border-radius: 17px; font-size: 25px; }
.search-empty strong { color: var(--navy-800); }
.search-empty p { margin: 6px 0 0; color: var(--muted); font-size: 12px; }
.search-result {
  display: block;
  padding: 14px 16px;
  border-radius: 11px;
  transition: background .18s ease;
}
.search-result:hover { background: #f4f7fb; }
.search-result small { display: block; color: var(--blue-600); font-size: 10px; font-weight: 700; }
.search-result strong { display: block; margin: 3px 0; color: var(--navy-800); font-size: 14px; }
.search-result p { display: -webkit-box; margin: 0; overflow: hidden; color: var(--muted); font-size: 12px; line-height: 1.6; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.search-result mark { color: #6f4a0f; background: #fff0be; border-radius: 3px; }

.drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1250;
  background: rgba(4, 17, 36, .58);
  backdrop-filter: blur(4px);
}
.mobile-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 1300;
  width: min(360px, 88vw);
  padding: 18px;
  overflow: auto;
  background: #fff;
  box-shadow: -20px 0 55px rgba(0,0,0,.2);
  transform: translateX(105%);
  transition: transform .25s ease;
}
.mobile-drawer.open { transform: translateX(0); }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 4px 4px 15px; border-bottom: 1px solid var(--line); }
.drawer-head button { width: 36px; height: 36px; border: 0; border-radius: 10px; background: #f3f5f8; cursor: pointer; font-size: 22px; }
.mobile-drawer nav { display: grid; gap: 4px; margin-top: 10px; }
.mobile-drawer .toc-link { min-height: 44px; }

.toast {
  position: fixed;
  left: 50%;
  bottom: 30px;
  z-index: 1700;
  padding: 10px 16px;
  opacity: 0;
  visibility: hidden;
  color: #fff;
  background: rgba(7,23,47,.94);
  border-radius: 10px;
  box-shadow: var(--shadow-lg);
  font-size: 12px;
  transform: translate(-50%, 8px);
  transition: all .2s ease;
}
.toast.show { opacity: 1; visibility: visible; transform: translate(-50%, 0); }

.reveal { opacity: 0; transform: translateY(10px); transition: opacity .45s ease, transform .45s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

@media (max-width: 1220px) {
  .guide-shell { grid-template-columns: 225px minmax(0, 1fr); }
  .guide-aside { display: none; }
  .quick-grid a { padding-inline: 18px; }
}

@media (max-width: 920px) {
  :root { --header-height: 64px; }
  .header-inner, .hero-inner, .quick-entry, .guide-shell { width: min(100% - 30px, 760px); }
  .top-nav, .desktop-toc { display: none; }
  .menu-trigger { display: block; }
  .hero, .hero-inner { min-height: 620px; }
  .hero-media { background-position: 58% center; }
  .hero-shade { background: linear-gradient(90deg, rgba(4,18,39,.95), rgba(4,18,39,.62) 76%, rgba(4,18,39,.28)), linear-gradient(180deg, transparent 45%, rgba(4,18,39,.72)); }
  .hero-copy { width: min(560px, 84%); }
  .quick-grid { grid-template-columns: repeat(2, 1fr); }
  .quick-grid a { border-bottom: 1px solid var(--line); }
  .quick-grid a:nth-child(2) { border-right: 0; }
  .quick-grid a:nth-child(n+3) { border-bottom: 0; }
  .guide-shell { display: block; margin-top: 38px; }
}

@media (max-width: 620px) {
  body { font-size: 15px; }
  .header-inner, .hero-inner, .quick-entry, .guide-shell { width: calc(100% - 24px); }
  .brand img { width: 40px; height: 40px; }
  .brand strong { font-size: 13px; }
  .brand small { font-size: 9px; }
  .search-trigger { width: 42px; padding: 0; justify-content: center; font-size: 0; }
  .search-trigger > span { font-size: 21px; }
  .search-trigger kbd { display: none; }
  .hero, .hero-inner { min-height: 610px; }
  .hero-media { background-position: 63% center; }
  .hero-shade { background: linear-gradient(90deg, rgba(4,18,39,.94), rgba(4,18,39,.62)), linear-gradient(180deg, rgba(4,18,39,.12) 45%, rgba(4,18,39,.86)); }
  .hero-copy { width: 100%; padding-top: 80px; align-self: flex-end; padding-bottom: 82px; }
  .hero h1 { font-size: clamp(40px, 13vw, 58px); }
  .hero-copy > p { width: 92%; margin-top: 20px; font-size: 14px; }
  .hero-actions { margin-top: 24px; }
  .primary-button, .secondary-button { height: 46px; padding-inline: 18px; font-size: 13px; }
  .hero-meta { gap: 16px; margin-top: 26px; }
  .hero-meta span { display: grid; gap: 0; }
  .hero-meta b { font-size: 15px; }
  .quick-entry { margin-top: -35px; }
  .quick-grid { border-radius: 16px; }
  .quick-grid a { grid-template-columns: 40px 1fr; min-height: 88px; padding: 15px 13px; }
  .quick-grid a > b { display: none; }
  .quick-icon { width: 40px; height: 40px; border-radius: 12px; font-size: 18px; }
  .quick-grid small { font-size: 9px; }
  .quick-grid strong { font-size: 12px; }
  .guide-shell { margin-bottom: 60px; }
  .notice-card { grid-template-columns: 34px 1fr; padding: 15px; }
  .notice-card > span { width: 32px; height: 32px; }
  .guide-section { padding: 25px 20px 28px; border-radius: 15px; }
  .chapter-heading { grid-template-columns: 40px 1fr; gap: 11px; margin-bottom: 22px; padding-bottom: 17px; }
  .chapter-number { width: 38px; height: 38px; border-radius: 11px; }
  .guide-section h2 { font-size: 21px; }
  .copy-anchor { display: none; }
  .guide-section h3 { margin-top: 25px; font-size: 17px; }
  .guide-section p, .guide-section .content-list li { font-size: 14px; line-height: 1.85; }
  .table-wrap { margin-inline: -10px; border-radius: 11px; }
  table { min-width: 680px; font-size: 12px; }
  .site-footer { display: grid; padding: 34px 22px; }
  .footer-links { display: grid; grid-template-columns: repeat(2, max-content); gap: 10px 24px; }
  .back-top { right: 14px; bottom: 14px; }
  .search-modal { padding: 0; }
  .search-panel { width: 100%; height: 100%; max-height: none; border: 0; border-radius: 0; }
  .search-results { max-height: calc(100vh - 138px); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

@media print {
  .site-header, .hero, .quick-entry, .desktop-toc, .guide-aside, .back-top, .site-footer, .copy-anchor, .notice-card { display: none !important; }
  body { background: #fff; }
  .guide-shell { display: block; width: 100%; margin: 0; }
  .guide-section { break-inside: avoid; box-shadow: none; border: 0; padding: 18px 0; }
  .guide-section h2, .guide-section h3 { color: #000; }
}

/* 攻略文档版式 */
body {
  background: #f3f5f7;
}

.document-header,
.document-header.scrolled {
  color: var(--ink);
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid #e1e5ea;
  box-shadow: 0 1px 8px rgba(21, 35, 54, .05);
  backdrop-filter: blur(14px) saturate(130%);
}

.document-header .header-inner {
  width: min(1120px, calc(100% - 48px));
}

.document-brand img {
  box-shadow: 0 0 0 1px #e3e7ec;
}

.document-brand strong {
  color: #26354b;
  font-size: 14px;
  letter-spacing: .02em;
}

.document-brand small {
  color: #7b8797;
  letter-spacing: .1em;
}

.document-header .search-trigger {
  color: #48576c;
  border-color: #dfe4ea;
  background: #f6f7f9;
}

.document-header .search-trigger:hover {
  color: #233650;
  border-color: #cfd6df;
  background: #fff;
}

.document-header .search-trigger kbd {
  color: #7b8797;
  border-color: #d6dce4;
  background: #fff;
}

.document-header .menu-trigger {
  border-color: #dfe4ea;
  background: #f6f7f9;
}

.document-header .menu-bars i {
  background: #4d5b6f;
}

.document-header + main {
  padding-top: var(--header-height);
}

.document-intro {
  padding: calc(var(--header-height) + 48px) 24px 43px;
  background: #fff;
  border-bottom: 1px solid #e4e8ed;
}

.document-intro-inner {
  width: min(820px, 100%);
  margin: 0 auto;
}

.document-kicker {
  margin: 0 0 14px;
  color: #47709d;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
}

.document-intro h1 {
  margin: 0;
  color: #202d40;
  font-size: clamp(34px, 4vw, 48px);
  line-height: 1.22;
  letter-spacing: -.035em;
}

.document-subtitle {
  margin: 15px 0 0;
  color: #506078;
  font-size: 17px;
  letter-spacing: .03em;
}

.document-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin-top: 23px;
  color: #8791a0;
  font-size: 12px;
}

.document-meta span {
  position: relative;
}

.document-meta span + span::before {
  content: "";
  position: absolute;
  top: 50%;
  left: -12px;
  width: 3px;
  height: 3px;
  background: #b6bec9;
  border-radius: 50%;
}

.document-summary {
  max-width: 760px;
  margin: 26px 0 0;
  padding-top: 22px;
  color: #536178;
  border-top: 1px solid #e7eaee;
  font-size: 14px;
  line-height: 1.85;
}

.guide-shell {
  width: min(1120px, calc(100% - 48px));
  margin: 30px auto 70px;
  grid-template-columns: 232px minmax(0, 1fr);
  gap: 26px;
}

.desktop-toc {
  top: calc(var(--header-height) + 20px);
}

.toc-card {
  border-color: #e0e5eb;
  border-radius: 9px;
  box-shadow: none;
}

.toc-head {
  padding: 16px 17px 13px;
  background: #fafbfc;
}

.toc-head span {
  color: #314158;
  font-size: 14px;
}

.toc-card nav {
  padding: 8px;
}

.toc-link {
  min-height: 37px;
  border-radius: 6px;
}

.guide-content {
  overflow: hidden;
  min-width: 0;
  border: 1px solid #e0e5eb;
  border-radius: 9px;
  background: #fff;
  box-shadow: 0 5px 18px rgba(21, 35, 54, .035);
}

.notice-card {
  margin: 0;
  padding: 21px 42px;
  border: 0;
  border-bottom: 1px solid #eadfca;
  border-radius: 0;
  background: #fffaf0;
  box-shadow: none;
}

.notice-card > span {
  width: 32px;
  height: 32px;
  color: #8a651f;
  background: #f3dfb6;
}

.notice-card strong {
  color: #6e5423;
}

.notice-card p {
  color: #705f3d;
}

.guide-section {
  margin: 0;
  padding: 42px 48px 48px;
  border: 0;
  border-bottom: 1px solid #e6e9ed;
  border-radius: 0;
  background: #fff;
  box-shadow: none;
}

.guide-section:last-child {
  border-bottom: 0;
}

.chapter-heading {
  margin-bottom: 30px;
  padding-bottom: 22px;
}

.chapter-number {
  color: #48627e;
  background: #eef2f6;
  border-radius: 7px;
}

.guide-section h2 {
  color: #26364c;
}

.guide-section h3 {
  color: #30445f;
}

.guide-section h3::before {
  background: #7590ad;
}

.guide-section .numbered li::before {
  color: #3f5d7d;
  background: #eef3f7;
  border-radius: 6px;
}

.table-wrap {
  border-radius: 8px;
}

thead th:first-child {
  border-radius: 7px 0 0;
}

thead th:last-child {
  border-radius: 0 7px 0 0;
}

.document-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px max(24px, calc((100% - 1120px) / 2));
  color: #7c8796;
  border-top: 1px solid #e1e5ea;
  background: #fff;
}

.document-footer p {
  margin: 0;
  font-size: 12px;
}

.document-footer a {
  flex: 0 0 auto;
  color: #526a84;
  font-size: 12px;
}

@media (max-width: 920px) {
  .document-header .header-inner,
  .guide-shell {
    width: min(100% - 30px, 780px);
  }

  .document-intro {
    padding-top: calc(var(--header-height) + 42px);
  }

  .guide-shell {
    display: block;
    margin-top: 22px;
  }
}

@media (max-width: 620px) {
  .document-header .header-inner,
  .guide-shell {
    width: calc(100% - 24px);
  }

  .document-brand img {
    width: 36px;
    height: 36px;
  }

  .document-brand strong {
    font-size: 12px;
  }

  .document-brand small {
    margin-top: 3px;
    font-size: 8px;
  }

  .document-intro {
    padding: calc(var(--header-height) + 32px) 18px 30px;
  }

  .document-intro h1 {
    font-size: 32px;
  }

  .document-subtitle {
    font-size: 14px;
    line-height: 1.8;
  }

  .document-meta {
    display: grid;
    gap: 4px;
    margin-top: 18px;
  }

  .document-meta span + span::before {
    display: none;
  }

  .document-summary {
    margin-top: 19px;
    padding-top: 17px;
    font-size: 13px;
  }

  .guide-content {
    border-radius: 7px;
  }

  .notice-card {
    padding: 17px 18px;
  }

  .guide-section {
    padding: 30px 21px 35px;
    border-radius: 0;
  }

  .chapter-heading {
    margin-bottom: 24px;
    padding-bottom: 18px;
  }

  .document-footer {
    display: grid;
    padding: 22px;
  }
}

@media print {
  .document-intro {
    padding: 0 0 28px;
    border-bottom: 1px solid #ddd;
  }

  .document-summary {
    max-width: none;
  }

  .guide-content {
    border: 0;
    box-shadow: none;
  }

  .guide-section {
    padding: 24px 0;
    border-bottom: 1px solid #ddd;
  }
}

/* 手游内置浏览器：手机端优先 */
@media (max-width: 920px) {
  :root {
    --header-height: 60px;
  }

  html {
    scroll-padding-top: calc(var(--header-height) + env(safe-area-inset-top) + 14px);
    -webkit-text-size-adjust: 100%;
  }

  body {
    overflow-x: hidden;
    background: #eef2f6;
    overscroll-behavior-y: contain;
    -webkit-tap-highlight-color: transparent;
  }

  a,
  button {
    touch-action: manipulation;
  }

  .document-header,
  .document-header.scrolled {
    height: calc(var(--header-height) + env(safe-area-inset-top));
    padding-top: env(safe-area-inset-top);
    border-bottom-color: #dce3eb;
    box-shadow: 0 2px 12px rgba(22, 42, 68, .07);
  }

  .document-header + main {
    padding-top: calc(var(--header-height) + env(safe-area-inset-top));
  }

  .document-header .header-inner {
    width: calc(100% - 20px);
    height: var(--header-height);
    gap: 8px;
  }

  .document-brand {
    min-width: 0;
    gap: 8px;
  }

  .document-brand img {
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    box-shadow: 0 0 0 1px #d9e0e8, 0 3px 8px rgba(28, 48, 73, .08);
  }

  .document-brand span {
    min-width: 0;
  }

  .document-brand strong {
    overflow: hidden;
    color: #22334a;
    font-size: 12px;
    letter-spacing: 0;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .document-brand small {
    margin-top: 3px;
    color: #8793a3;
    font-size: 8px;
    letter-spacing: .06em;
  }

  .header-actions {
    flex: 0 0 auto;
    gap: 6px;
  }

  .document-header .search-trigger,
  .document-header .menu-trigger {
    position: relative;
    display: inline-flex;
    width: 62px;
    height: 40px;
    padding: 0 9px;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: #42546b;
    border: 1px solid #dce3eb;
    border-radius: 11px;
    background: #f6f8fa;
    overflow: hidden;
  }

  .document-header .search-trigger::after,
  .document-header .menu-trigger::after,
  .drawer-head button::after {
    content: "";
    position: absolute;
    inset: -18px;
    opacity: 0;
    background: radial-gradient(circle, rgba(79, 145, 212, .22) 0 22%, transparent 58%);
    transform: scale(.35);
    transition: opacity .18s ease, transform .24s ease;
  }

  .document-header .search-trigger:active::after,
  .document-header .menu-trigger:active::after,
  .drawer-head button:active::after {
    opacity: 1;
    transform: scale(1);
  }

  .document-header .search-trigger > *,
  .document-header .menu-trigger > * {
    position: relative;
    z-index: 1;
  }

  .document-header .search-trigger:active,
  .document-header .menu-trigger:active {
    background: #eaf0f6;
    transform: translateY(1px);
  }

  .search-trigger .search-icon {
    font-size: 18px;
    line-height: 1;
  }

  .search-trigger .search-label,
  .menu-trigger b {
    display: inline;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
  }

  .search-trigger kbd {
    display: none;
  }

  .menu-trigger .menu-bars {
    display: grid;
    width: 15px;
    gap: 3px;
  }

  .document-header .menu-bars i {
    height: 1.5px;
    background: #52657c;
  }

  .guide-shell {
    width: calc(100% - 20px);
    margin: 12px auto 28px;
  }

  .guide-content {
    border-color: #dbe2ea;
    border-radius: 12px;
    box-shadow: 0 7px 22px rgba(23, 43, 69, .055);
  }

  .notice-card {
    grid-template-columns: 30px minmax(0, 1fr);
    gap: 11px;
    padding: 14px 16px 15px;
    border-bottom-color: #ebdfc7;
    background: #fffaf0;
  }

  .notice-card > span {
    width: 28px;
    height: 28px;
    margin-top: 1px;
    font-size: 13px;
  }

  .notice-card strong {
    display: block;
    margin-bottom: 2px;
    font-size: 13px;
  }

  .notice-card p {
    color: #756548;
    font-size: 12px;
    line-height: 1.7;
  }

  .guide-section {
    padding: 28px 20px 34px;
    scroll-margin-top: calc(var(--header-height) + env(safe-area-inset-top) + 12px);
  }

  .chapter-heading {
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 11px;
    margin-bottom: 24px;
    padding-bottom: 18px;
  }

  .chapter-number {
    width: 38px;
    height: 38px;
    border: 1px solid #e2e9f0;
    border-radius: 9px;
    font-size: 11px;
  }

  .guide-section h2 {
    color: #22364f;
    font-size: 22px;
    font-weight: 750;
    line-height: 1.35;
    letter-spacing: -.02em;
  }

  .copy-anchor {
    display: none;
  }

  .guide-section h3 {
    margin: 27px 0 14px;
    padding-left: 13px;
    color: #28425f;
    font-size: 17px;
    line-height: 1.48;
  }

  .guide-section h3::before {
    top: .28em;
    width: 3px;
    height: 1.15em;
    background: #7190af;
  }

  .guide-section p,
  .guide-section .content-list li {
    color: #43556c;
    font-size: 15px;
    line-height: 1.82;
  }

  .guide-section p {
    margin-bottom: 16px;
  }

  .guide-section .content-list {
    margin: 11px 0 23px;
    padding-left: 21px;
  }

  .guide-section .content-list li {
    margin: 9px 0;
    padding-left: 2px;
  }

  .guide-section .numbered {
    padding-left: 0;
  }

  .guide-section .numbered li {
    min-height: 30px;
    padding-left: 41px;
  }

  .guide-section .numbered li::before {
    top: 0;
    width: 28px;
    height: 28px;
    border-radius: 7px;
  }

  .table-wrap {
    margin: 18px -20px 26px;
    border-right: 0;
    border-left: 0;
    border-radius: 0;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .table-wrap::-webkit-scrollbar {
    display: none;
  }

  table {
    min-width: 650px;
    font-size: 12px;
  }

  thead th,
  tbody th,
  tbody td {
    padding: 12px 13px;
  }

  .document-footer {
    gap: 12px;
    padding: 20px max(18px, env(safe-area-inset-left)) calc(20px + env(safe-area-inset-bottom)) max(18px, env(safe-area-inset-right));
  }

  .document-footer p {
    font-size: 11px;
    line-height: 1.7;
  }

  .document-footer a {
    font-size: 11px;
  }

  .back-top {
    right: max(12px, env(safe-area-inset-right));
    bottom: max(14px, env(safe-area-inset-bottom));
    width: 42px;
    height: 42px;
    border-radius: 12px;
  }

  .drawer-backdrop {
    background: rgba(12, 27, 48, .52);
    backdrop-filter: blur(3px);
  }

  .mobile-drawer {
    width: min(344px, 92vw);
    padding: calc(14px + env(safe-area-inset-top)) 12px calc(20px + env(safe-area-inset-bottom));
    border-left: 1px solid #e1e6ec;
    box-shadow: -18px 0 45px rgba(16, 34, 58, .18);
  }

  .drawer-head {
    min-height: 54px;
    padding: 2px 4px 13px 8px;
  }

  .drawer-head > div {
    display: grid;
    gap: 2px;
  }

  .drawer-head strong {
    color: #22354d;
    font-size: 16px;
  }

  .drawer-head small {
    color: #929dac;
    font-size: 10px;
  }

  .drawer-head button {
    position: relative;
    width: 40px;
    height: 40px;
    color: #4b5e75;
    border-radius: 11px;
    font-size: 21px;
    overflow: hidden;
  }

  .mobile-drawer nav {
    gap: 2px;
    margin-top: 8px;
  }

  .mobile-drawer .toc-link {
    grid-template-columns: 30px minmax(0, 1fr);
    min-height: 45px;
    padding: 8px 10px;
    border-radius: 9px;
  }

  .mobile-drawer .toc-link span {
    font-size: 10px;
  }

  .mobile-drawer .toc-link em {
    font-size: 13px;
  }

  .mobile-drawer .toc-link.active {
    color: #244f7e;
    background: #eaf2fa;
  }

  .search-modal {
    padding: 0;
    background: #fff;
    backdrop-filter: none;
  }

  .search-panel {
    width: 100%;
    height: 100vh;
    height: 100dvh;
    max-height: none;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .search-head {
    padding: calc(10px + env(safe-area-inset-top)) 12px 10px;
    background: #fff;
  }

  .search-head > div {
    border: 1px solid #e2e7ed;
    background: #f4f7fa;
  }

  .search-head input {
    height: 46px;
    font-size: 16px;
  }

  .search-head button {
    min-width: 48px;
    font-size: 13px;
  }

  .search-suggestions {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding: 11px 14px;
    scrollbar-width: none;
  }

  .search-suggestions::-webkit-scrollbar {
    display: none;
  }

  .search-suggestions button {
    flex: 0 0 auto;
    min-height: 30px;
    padding: 5px 11px;
    font-size: 11px;
  }

  .search-results {
    max-height: calc(100dvh - 136px - env(safe-area-inset-top));
    padding: 6px 12px calc(20px + env(safe-area-inset-bottom));
  }

  .search-result {
    padding: 15px 12px;
    border-bottom: 1px solid #edf0f3;
    border-radius: 0;
  }

  .search-result strong {
    font-size: 15px;
  }

  .search-result p {
    margin-top: 3px;
    font-size: 12px;
    line-height: 1.65;
  }

  .reveal {
    transition-duration: .28s;
  }

  .document-header strong,
  .document-header small,
  .document-header button,
  .notice-card strong,
  .notice-card p,
  .guide-section h2,
  .guide-section h3,
  .guide-section p,
  .guide-section li,
  .guide-section th,
  .guide-section td {
    transition: text-shadow .2s ease, filter .2s ease;
  }

  .fx-text-charged {
    animation: text-energy-pulse .34s ease-in-out infinite alternate;
    text-shadow:
      -.7px 0 rgba(91, 194, 246, .48),
      .7px 0 rgba(239, 183, 67, .42),
      0 0 7px rgba(67, 145, 226, .24);
  }
}

@keyframes text-energy-pulse {
  from {
    text-shadow:
      -.5px 0 rgba(91, 194, 246, .28),
      .5px 0 rgba(239, 183, 67, .25),
      0 0 4px rgba(67, 145, 226, .14);
    filter: brightness(1);
  }
  to {
    text-shadow:
      -1px 0 rgba(91, 194, 246, .62),
      1px 0 rgba(239, 183, 67, .54),
      0 0 10px rgba(67, 145, 226, .3);
    filter: brightness(1.05);
  }
}

@media (min-width: 921px), (prefers-reduced-motion: reduce) {
  .touch-fx {
    display: none !important;
  }

  .fx-text-charged {
    animation: none !important;
    text-shadow: none !important;
    filter: none !important;
  }
}

@media (max-width: 340px) {
  .document-brand strong {
    max-width: 124px;
    font-size: 11px;
  }

  .document-brand small {
    display: none;
  }

  .document-header .search-trigger,
  .document-header .menu-trigger {
    width: 46px;
    padding: 0;
  }

  .search-trigger .search-label,
  .menu-trigger b {
    display: none;
  }

  .guide-shell {
    width: calc(100% - 16px);
    margin-top: 8px;
  }

  .guide-section {
    padding-right: 17px;
    padding-left: 17px;
  }

  .table-wrap {
    margin-right: -17px;
    margin-left: -17px;
  }
}
