:root {
  --paper: #f4efe4;
  --paper-deep: #e7dfcf;
  --ink: #1c2430;
  --ink-soft: #445062;
  --seal: #b4232a;
  --seal-deep: #8c1b21;
  --gold: #b0893e;
  --gold-soft: #d7c39a;
  --cream: #fffaf1;
  --line: rgba(28, 36, 48, 0.12);
  --shadow: 0 22px 50px rgba(28, 36, 48, 0.22);
  --font-sans: "Noto Sans TC", "PingFang HK", "Noto Sans CJK TC", sans-serif;
  --font-serif: "Noto Serif TC", "Songti TC", "Noto Serif CJK TC", serif;
  --radius: 1.15rem;
  --header-offset: 7.25rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.7;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  color-scheme: light;
}

img,
svg {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3,
p {
  margin: 0;
}

a {
  color: var(--seal-deep);
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--seal);
}

:focus-visible {
  outline: 2px solid var(--seal);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 0.75rem;
  top: -3rem;
  z-index: 20;
  padding: 0.5rem 0.8rem;
  background: var(--ink);
  color: var(--cream);
  border-radius: 0.4rem;
  text-decoration: none;
}

.skip-link:focus {
  top: 0.75rem;
}

.page-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(1200px 520px at 88% -8%, rgba(176, 137, 62, 0.18), transparent 55%),
    radial-gradient(900px 420px at -10% 12%, rgba(180, 35, 42, 0.08), transparent 50%),
    linear-gradient(180deg, #f7f2e8 0%, var(--paper) 42%, #ece4d4 100%);
}

.page-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.35'/%3E%3C/svg%3E");
  pointer-events: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 8;
  backdrop-filter: blur(12px);
  background: rgba(244, 239, 228, 0.9);
  border-bottom: 1px solid var(--line);
}

.header-inner,
.nav-inner,
main,
.site-footer {
  width: min(68rem, calc(100% - 1.5rem));
  margin-inline: auto;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: 3.65rem;
  padding: 0.35rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--ink);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 0.4rem;
  background: var(--ink);
  color: var(--cream);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.brand-text {
  font-size: clamp(0.95rem, 3.4vw, 1.05rem);
}

.header-date {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
}

.site-nav {
  border-top: 1px solid var(--line);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.nav-inner {
  display: flex;
  gap: 0.4rem;
  padding: 0.45rem 0 0.55rem;
}

.site-nav a {
  flex: none;
  padding: 0.28rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 250, 241, 0.72);
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  border-color: rgba(180, 35, 42, 0.55);
  color: var(--seal);
}

main {
  padding-bottom: 1rem;
}

.hero,
.block {
  scroll-margin-top: var(--header-offset);
}

.hero {
  padding: 1.15rem 0 0.35rem;
}

.hero-book {
  position: relative;
  overflow: hidden;
  padding: 1.45rem 1.15rem 1.35rem 1.4rem;
  border-radius: calc(var(--radius) + 0.15rem);
  color: var(--cream);
  background: linear-gradient(165deg, #2a3548 0%, #161d28 58%, #121820 100%);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 250, 241, 0.08);
}

.hero-book::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10%;
  bottom: 10%;
  width: 0.42rem;
  background: linear-gradient(180deg, var(--seal) 0%, var(--seal-deep) 100%);
  border-radius: 0 4px 4px 0;
}

.hero-book::after {
  content: "隊友";
  position: absolute;
  right: -0.15rem;
  bottom: -1.1rem;
  font-family: var(--font-serif);
  font-size: clamp(4.4rem, 18vw, 8rem);
  font-weight: 700;
  color: rgba(255, 250, 241, 0.045);
  letter-spacing: 0.08em;
  pointer-events: none;
}

.hero-kicker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem 0.8rem;
  margin-bottom: 0.85rem;
}

.seal {
  display: inline-flex;
  align-items: center;
  padding: 0.18rem 0.55rem;
  border: 1.5px solid rgba(180, 35, 42, 0.95);
  border-radius: 999px;
  color: #f3d0d2;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.hero-when {
  color: var(--gold-soft);
  font-size: 0.92rem;
  font-weight: 500;
}

.hero-title {
  position: relative;
  z-index: 1;
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 10vw, 4.2rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: 0.03em;
}

.hero-sub {
  position: relative;
  z-index: 1;
  margin-top: 0.35rem;
  color: var(--gold-soft);
  font-family: var(--font-serif);
  font-size: clamp(1.15rem, 3vw, 1.45rem);
  letter-spacing: 0.08em;
}

.lede,
.hero-meta,
.actions {
  position: relative;
  z-index: 1;
}

.lede {
  max-width: 40rem;
  margin-top: 0.9rem;
  color: rgba(255, 250, 241, 0.88);
  font-size: 1.02rem;
}

.hero-meta {
  margin-top: 0.75rem;
  color: rgba(255, 250, 241, 0.68);
  font-size: 0.88rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.15rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.5rem 1.05rem;
  border-radius: 999px;
  background: var(--seal);
  color: #fffaf1;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-decoration: none;
}

.btn:hover,
.btn:focus-visible {
  background: var(--seal-deep);
  color: #fffaf1;
}

.btn-ghost {
  background: transparent;
  color: var(--cream);
  border: 1px solid rgba(255, 250, 241, 0.38);
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  background: rgba(255, 250, 241, 0.08);
  color: #fffaf1;
}

.block {
  padding: 1.55rem 0 0.2rem;
}

.section-heading {
  margin-bottom: 0.85rem;
}

.kicker-num {
  display: inline-flex;
  margin-bottom: 0.4rem;
  padding: 0.12rem 0.5rem;
  border: 1.5px solid var(--seal);
  border-radius: 999px;
  color: var(--seal);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.section-heading h2,
.sheet h3 {
  font-family: var(--font-serif);
  letter-spacing: 0.06em;
}

.section-heading h2 {
  font-size: clamp(1.35rem, 3vw, 1.7rem);
}

.section-note {
  max-width: 42rem;
  margin-top: 0.35rem;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.sheet {
  padding: 1.05rem 1rem 1.15rem;
  background: var(--cream);
  border: 1px solid rgba(28, 36, 48, 0.08);
  border-radius: var(--radius);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.7) inset;
}

.sheet + .sheet {
  margin-top: 0.8rem;
}

.video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  background: var(--ink);
}

.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-link {
  margin-top: 0.75rem;
}

.video-link a {
  overflow-wrap: anywhere;
}

.sheet h3 {
  margin-bottom: 0.45rem;
  font-size: 1.15rem;
}

.sheet h3.follow {
  margin-top: 1.15rem;
}

.sheet p + p,
.sheet .source,
.sheet .scroll-hint {
  margin-top: 0.7rem;
}

.subnav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.subnav a {
  padding: 0.2rem 0.55rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 250, 241, 0.65);
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
}

.stack {
  display: grid;
  gap: 0.85rem;
}

.steps,
.plain-list,
.myths,
.link-list,
.source-list {
  margin: 0;
  padding-left: 1.25rem;
}

.steps li,
.plain-list li,
.myths li,
.link-list li {
  padding: 0.45rem 0;
}

.steps li {
  border-bottom: 1px solid var(--line);
}

.steps li:last-child,
.plain-list li:last-child {
  border-bottom: 0;
}

.steps li::marker,
.myths li::marker {
  color: var(--seal);
  font-weight: 700;
}

.note,
.warn {
  margin-top: 0.95rem;
  padding: 0.8rem 0.9rem;
  border-left: 3px solid var(--gold);
  background: rgba(176, 137, 62, 0.1);
  border-radius: 0 0.7rem 0.7rem 0;
}

.warn {
  border-left-color: var(--seal);
  background: rgba(180, 35, 42, 0.06);
}

.note strong,
.warn strong,
.myth-title {
  display: block;
  margin-bottom: 0.15rem;
  font-weight: 700;
}

.myths {
  display: grid;
  gap: 0.65rem;
  padding-left: 1.3rem;
}

.myths li {
  padding: 0.7rem 0.8rem;
  background: rgba(28, 36, 48, 0.03);
  border: 1px solid var(--line);
  border-radius: 0.8rem;
}

.tag {
  display: inline-block;
  padding: 0.05rem 0.42rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.tag-yes {
  color: var(--seal-deep);
  background: rgba(180, 35, 42, 0.1);
}

.tag-no {
  color: var(--ink-soft);
  background: rgba(28, 36, 48, 0.06);
}

.scroll-hint {
  display: none;
  color: var(--ink-soft);
  font-size: 0.8rem;
}

.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-top: 0.35rem;
}

.table-scroll:focus-visible {
  outline-offset: 2px;
}

table {
  width: 100%;
  min-width: 36rem;
  border-collapse: collapse;
  font-size: 0.92rem;
  line-height: 1.55;
}

caption {
  caption-side: top;
  padding-bottom: 0.45rem;
  text-align: left;
  font-weight: 700;
  letter-spacing: 0.04em;
}

th,
td {
  padding: 0.62rem 0.7rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

thead th {
  background: rgba(28, 36, 48, 0.04);
  color: var(--ink-soft);
  font-size: 0.78rem;
  letter-spacing: 0.05em;
}

tbody th {
  font-weight: 700;
}

.source,
.source-list,
.fine {
  color: var(--ink-soft);
  font-size: 0.84rem;
}

.source a,
.link-list a,
.source-list a {
  overflow-wrap: anywhere;
}

.link-list {
  list-style: none;
  padding-left: 0;
}

.link-list li {
  display: grid;
  gap: 0.1rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--line);
}

.link-list li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.link-name {
  font-weight: 700;
}

.url {
  color: var(--ink-soft);
  font-size: 0.82rem;
  overflow-wrap: anywhere;
}

.share-drop {
  margin-top: 1rem;
  padding: 1.15rem 1rem 1.2rem;
  border: 1px solid rgba(180, 35, 42, 0.28);
  border-radius: 0.95rem;
  background:
    radial-gradient(circle at 100% 0%, rgba(176, 137, 62, 0.18), transparent 46%),
    var(--cream);
  text-align: center;
}

.share-drop-label {
  color: var(--ink-soft);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.share-actions {
  margin-top: 0.85rem;
}

.share-deeplink {
  max-width: 36rem;
  margin: 0.85rem auto 0;
  color: var(--ink-soft);
  font-size: 0.82rem;
  line-height: 1.65;
}

.share-deeplink a {
  overflow-wrap: anywhere;
}

.quote {
  margin: 0.8rem 0 0;
  padding: 0.75rem 0.9rem;
  border-left: 3px solid var(--ink);
  color: var(--ink-soft);
  background: rgba(28, 36, 48, 0.03);
}

.site-footer {
  padding: 1.4rem 0 calc(1.8rem + env(safe-area-inset-bottom));
  color: var(--ink-soft);
  font-size: 0.84rem;
  line-height: 1.7;
}

.site-footer .footer-inner {
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.site-footer p + p,
.site-footer .source-list {
  margin-top: 0.7rem;
}

.source-list {
  padding-left: 1.2rem;
}

@media (max-width: 760px) {
  .scroll-hint {
    display: block;
  }

  .table-scroll th:first-child,
  .table-scroll td:first-child {
    position: sticky;
    left: 0;
    z-index: 1;
    background: var(--cream);
    box-shadow: 1px 0 0 var(--line);
  }

  .table-scroll thead th:first-child {
    z-index: 2;
    background: #f3eee4;
  }
}

@media (min-width: 640px) {
  .header-inner,
  .nav-inner,
  main,
  .site-footer {
    width: min(68rem, calc(100% - 2.4rem));
  }

  .hero {
    padding-top: 1.6rem;
  }

  .hero-book {
    padding: 1.9rem 1.8rem 1.6rem 2rem;
  }

  .sheet {
    padding: 1.25rem 1.3rem 1.35rem;
  }
}

@media (min-width: 1024px) {
  .hero-book {
    padding: 2.2rem 2.3rem 1.85rem 2.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

@media print {
  .page-bg,
  .site-nav,
  .skip-link,
  .scroll-hint {
    display: none;
  }

  .site-header {
    position: static;
    background: white;
  }

  body {
    background: white;
  }

  .hero-book {
    color: var(--ink);
    background: white;
    box-shadow: none;
    border: 1px solid #ccc;
  }

  .hero-book::after,
  .hero-book::before {
    display: none;
  }

  .lede,
  .hero-sub,
  .hero-meta,
  .hero-when {
    color: var(--ink);
  }

  .seal {
    color: var(--seal);
  }

  .btn {
    border: 1px solid var(--seal);
  }

  .sheet,
  .myths li {
    break-inside: avoid;
  }

  .table-scroll {
    overflow: visible;
  }

  table {
    min-width: 0;
  }

  a {
    text-decoration: underline;
  }
}
