:root {
  --night: #14243b;
  --ice: #e8f0f7;
  --paper: #f7f8f6;
  --ink: #1d2a3a;
  --blue: #27537f;
  --line: #c8d5e2;
  --muted: #465a6f;
  --serif: "Songti TC", "Noto Serif TC", "PMingLiU", serif;
  --sans: "PingFang TC", "Noto Sans TC", "Microsoft JhengHei", system-ui, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 1.0625rem/1.86 var(--sans); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-underline-offset: .23em; }
:focus-visible { outline: 3px solid #ad5d33; outline-offset: 4px; }
[aria-hidden="true"] { pointer-events: none; }
[id] { scroll-margin-top: 1.4rem; }
h1, h2, h3, p, figure, dl { margin: 0; }
h1, h2 { font-family: var(--serif); font-weight: 700; line-height: 1.26; text-wrap: balance; }
h1 { font-size: clamp(2.25rem, 5.1vw, 4.7rem); letter-spacing: -.044em; }
h2 { font-size: clamp(1.72rem, 3.1vw, 2.8rem); letter-spacing: -.025em; }
h3 { font-size: clamp(1.12rem, 1.85vw, 1.34rem); line-height: 1.45; }
p + p { margin-top: .95em; }
.wrap { width: min(100% - 3rem, 76rem); margin-inline: auto; }
.skip { position: fixed; top: -4rem; left: 1rem; z-index: 10; padding: .45rem .8rem; background: white; }
.skip:focus { top: .5rem; }

header { background: var(--paper); }
.mast { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.3rem; }
.brand { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: .15rem .7rem; text-decoration: none; color: var(--night); }
.brand strong { font: 800 1.65rem/1.2 var(--serif); letter-spacing: .04em; }
.brand span { color: var(--muted); font-size: .79rem; }
.head-actions { display: flex; gap: 1.4rem; align-items: center; white-space: nowrap; }
.head-actions a { font-size: .91rem; font-weight: 700; text-decoration: none; }
.head-actions .head-cta { border: 1px solid var(--line); border-radius: 3rem; padding: .4rem .95rem; }
.head-actions a:hover { text-decoration: underline; }

.hero { background: var(--night); color: var(--paper); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.11fr) minmax(0, .89fr); width: min(100%, 86rem); margin-inline: auto; align-items: stretch; }
.hero-copy { align-self: center; min-width: 0; padding: clamp(2.8rem, 5.7vw, 5.5rem) clamp(1.55rem, 5.6vw, 5.9rem); }
.hero-copy .topic { color: #c3d6ea; font-size: .94rem; font-weight: 750; letter-spacing: .065em; margin-bottom: .85rem; }
.hero .sub { margin-top: .95rem; font-size: clamp(1.1rem, 1.8vw, 1.45rem); font-weight: 650; line-height: 1.55; }
.hero .lead { margin-top: .9rem; font-size: clamp(.97rem, 1.3vw, 1.1rem); line-height: 1.8; color: #e0eaf4; max-width: 37em; }
.hero a { color: #e0edf9; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: .55rem 1.3rem; margin-top: 1.55rem; }
.button, .secondary { min-height: 2.85rem; display: inline-flex; align-items: center; font-size: .96rem; font-weight: 750; }
.button { background: var(--blue); color: white; padding: .54rem 1.28rem; border-radius: 2rem; text-decoration: none; }
.button:hover { filter: brightness(.92); }
.hero .button { background: var(--ice); color: var(--night); }
.hero-art { min-width: 0; position: relative; margin: 0; }
.hero-art figcaption { font-size: .76rem; line-height: 1.5; }
.hero-portrait { min-height: 34rem; overflow: hidden; background: #dbe5ed; }
.hero-portrait img { width: 100%; height: 100%; position: absolute; object-fit: cover; object-position: 50% 24%; }
.hero-portrait figcaption { position: absolute; bottom: .85rem; right: .9rem; background: var(--night); color: white; padding: .28rem .65rem; border-radius: .25rem; }
.hero-illustration { align-self: center; margin: 2rem clamp(1.5rem, 5.5vw, 4.9rem) 2rem 0; background: #e7edf5; color: var(--ink); border-radius: .8rem; overflow: hidden; }
.hero-illustration img { width: 100%; height: clamp(12rem, 27vw, 22rem); object-fit: cover; }
.page-cost .hero-illustration img { height: auto; }
.hero-illustration figcaption { padding: .65rem .85rem; }
.hero-choices { align-self: center; margin: 2rem clamp(1.5rem, 5.5vw, 4.9rem) 2rem 0; padding: 1.45rem clamp(1.1rem, 3vw, 2rem); background: #243951; border-radius: .8rem; }
.hero-choices p { font: 700 1.65rem/1.35 var(--serif); margin-bottom: .5rem; }
.hero-choices a { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: .75rem 0; text-decoration: none; border-bottom: 1px solid #57728e; }
.hero-choices a:last-child { border: 0; }
.hero-choices a:hover { text-decoration: underline; }
.hero-choices span { color: #c3d6ea; font-size: .84rem; }

.quick { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 1.6rem; background: white; border: 1px solid var(--line); border-radius: .6rem; }
.quick a { display: flex; flex-direction: column; min-height: 5rem; justify-content: center; padding: .75rem 1.1rem; text-decoration: none; }
.quick a + a { border-left: 1px solid var(--line); }
.quick a:hover { background: var(--ice); }
.quick small { font-size: .75rem; color: var(--muted); }
.quick strong { color: var(--night); font-size: 1rem; line-height: 1.45; }

.story { display: grid; grid-template-columns: minmax(9rem, .21fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); margin-top: clamp(1.7rem, 4vw, 3.6rem); }
.story > aside { min-width: 0; }
.guide { position: sticky; top: 1.4rem; padding: .75rem 0; }
.guide p { font-size: .82rem; color: var(--muted); font-weight: 750; margin-bottom: .42rem; }
.guide ul { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.guide li { border-bottom: 1px solid var(--line); }
.guide a { display: block; text-decoration: none; font-size: .9rem; line-height: 1.4; padding: .64rem .25rem; }
.guide a:hover { text-decoration: underline; }
.reading { min-width: 0; }
.chapter { padding-block: clamp(1.8rem, 4vw, 3.65rem); border-bottom: 1px solid var(--line); }
.chapter:first-child { padding-top: .75rem; }
.chapter > h2 { margin-bottom: .9rem; }
.chapter > p { max-width: 43em; }
.chapter > p + h3, .chapter > table + h3 { margin-top: 1.55rem; }
.chapter > h3 + p { margin-top: .55rem; }
.intro { color: var(--night); font-size: clamp(1.07rem, 1.65vw, 1.21rem); font-weight: 600; line-height: 1.75; }
figcaption, .chapter .caption { color: var(--muted); font-size: .82rem; line-height: 1.65; padding-top: .48rem; }

.triptych, .tri, .image-sequence { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.05rem; margin: 1.4rem 0; }
.triptych article, .tri > div { padding: 1rem 0; border-top: 2px solid #9ab4d0; }
.triptych p, .tri p { margin-top: .5rem; font-size: .96rem; }
.image-sequence img { border-radius: .6rem; width: 100%; }
.feature-split { display: grid; grid-template-columns: minmax(0, 1.16fr) minmax(0, .84fr); gap: 1.4rem; align-items: center; margin: 1.7rem 0; }
.feature-split figure img, .wide-figure img, .inline-media img { border-radius: .55rem; width: 100%; }
.feature-split p { margin-top: .45rem; }
.feature-split p + h3 { margin-top: 1.05rem; }
.profile { display: grid; grid-template-columns: 4.5rem minmax(0, 1fr); align-items: center; gap: .85rem; border-radius: .6rem; background: var(--ice); padding: 1rem; }
.profile img { width: 4.5rem; height: 6.7rem; object-fit: cover; object-position: center 20%; border-radius: .35rem; }
.profile p { font-size: .88rem; }
.wide-figure, .inline-media { margin: 1.5rem 0; max-width: 48rem; }
.scenarios { display: grid; gap: 1.25rem; margin-block: 1.2rem; }
.scenarios article { border-left: 3px solid #8ba9c5; padding: .2rem 0 .2rem 1rem; }
.scenarios p { margin-top: .45rem; }
.timeline { padding-left: 1.45rem; margin: 1.15rem 0; }
.timeline li { margin-block: .9rem; padding-left: .3rem; }
.timeline li::marker { color: var(--blue); font-weight: 750; }
.timeline p { margin-top: .35rem; }
.decision-list { margin: 1.2rem 0; border-top: 1px solid var(--line); }
.decision-list > div { display: grid; grid-template-columns: minmax(5.7rem, .24fr) minmax(0, 1fr); gap: .7rem; padding: .65rem .3rem; border-bottom: 1px solid var(--line); }
.decision-list dt { font-weight: 750; }
.decision-list dd { margin: 0; }
.note, .study-block { background: var(--ice); border-radius: .55rem; margin: 1.3rem 0; padding: clamp(1rem, 3vw, 1.8rem); }
.note h3 + p, .study-block h3 + p { margin-top: .45rem; }
.study-metrics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin: 1.2rem 0; }
.study-metrics div { border-top: 1px solid #9ab4d0; padding-top: .55rem; }
.study-metrics dt { color: var(--blue); font-size: 1.55rem; line-height: 1.4; font-weight: 750; }
.study-metrics dd { margin: .3rem 0 0; font-size: .93rem; }

table { width: 100%; border-collapse: collapse; table-layout: fixed; overflow-wrap: anywhere; margin: 1.3rem 0; font-size: .95rem; line-height: 1.62; }
caption { text-align: left; font-weight: 750; margin-bottom: .45rem; }
td, th { text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); padding: .7rem .8rem; }
thead th { background: var(--ice); }
thead th:first-child { width: 27%; }
sup { font: 700 .67em/1 var(--sans); white-space: nowrap; margin-left: .22em; vertical-align: super; }
sup a { text-decoration: none; }
sup:target, li:target { background: #d7e7f5; color: var(--night); }
.faq details { border-bottom: 1px solid var(--line); padding: .3rem 0; }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { padding: .62rem .15rem; cursor: pointer; font-weight: 750; color: var(--night); }
.faq p { margin: 0 0 .65rem 1.2rem; }
.related { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .8rem; }
.related-card { display: flex; justify-content: space-between; align-items: center; gap: .55rem; border: 1px solid var(--line); background: white; border-radius: .45rem; padding: .8rem; font-size: .92rem; line-height: 1.5; font-weight: 700; text-decoration: none; }
.related-card:hover { text-decoration: underline; }
.book { margin-top: clamp(1.8rem, 4vw, 3rem); padding: clamp(1.25rem, 4vw, 2.75rem); background: var(--night); border-radius: .8rem; color: var(--paper); }
.book .topic { color: #c3d6ea; font-weight: 750; font-size: .86rem; }
.book h2 { margin-block: .3rem .65rem; }
.book address { margin-top: .45rem; font-style: normal; }
.book a { color: #e0edf9; }
.book .button { color: var(--night); background: var(--ice); }
.sources ol { padding-left: 1.25rem; }
.sources li { padding: .42rem .25rem; }
.sources li p { color: var(--muted); font-size: .87rem; }
.backs { display: flex; flex-wrap: wrap; gap: .25rem .55rem; font-size: .82rem; }
.backs a { display: inline-flex; min-height: 1.75rem; min-width: 1.7rem; align-items: center; }
footer { background: white; border-top: 1px solid var(--line); font-size: .86rem; color: var(--muted); }

@media (max-width: 860px) {
  .wrap { width: min(100% - 2rem, 76rem); }
  .story { grid-template-columns: 1fr; gap: 1.3rem; }
  .guide { position: static; padding: .9rem 1rem; background: white; border: 1px solid var(--line); border-radius: .55rem; }
  .guide ul { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 .8rem; }
  .hero-copy { padding-inline: clamp(1.25rem, 4vw, 2.9rem); }
  .hero-portrait { min-height: 29rem; }
}
@media (max-width: 620px) {
  body { font-size: 1rem; }
  .mast { min-height: 3.6rem; }
  .head-actions { gap: .4rem; }
  .head-actions > a:first-child { display: none; }
  .brand strong { font-size: 1.45rem; }
  .brand span { font-size: .72rem; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { padding: 1.75rem 1.2rem 1.65rem; }
  .hero-copy .topic { margin-bottom: .45rem; }
  .hero .sub { margin-top: .7rem; }
  .hero .lead { margin-top: .65rem; }
  .hero .actions { margin-top: 1.02rem; }
  .hero-portrait { min-height: min(70vw, 20rem); }
  .hero-portrait img { object-position: center 76%; }
  .hero-portrait figcaption { bottom: .55rem; right: .55rem; }
  .hero-choices, .hero-illustration { margin: 0 1.2rem 1.2rem; }
  .hero-illustration img { height: clamp(9rem, 50vw, 14rem); object-position: center; }
  .quick { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 1rem; }
  .quick a { padding: .5rem .68rem; min-height: 4.1rem; }
  .quick a:nth-child(3) { border-left: 0; }
  .quick a:nth-child(n+3) { border-top: 1px solid var(--line); }
  .quick strong { font-size: .92rem; }
  .guide ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .triptych, .tri, .feature-split { grid-template-columns: 1fr; gap: .72rem; }
  .triptych article, .tri > div { padding: .75rem 0 .2rem; border-width: 1px; }
  .image-sequence { gap: .42rem; }
  .image-sequence figcaption { font-size: .75rem; line-height: 1.52; }
  .decision-list > div { grid-template-columns: 1fr; gap: .1rem; }
  .related { grid-template-columns: 1fr; gap: .45rem; }
  td, th { padding: .51rem .43rem; }
  thead th:first-child { width: 30%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto; }
}
