/* 曼報 Pro 開放參觀｜共用樣式
   不載入任何字型或圖片；所有顏色集中在下方變數。 */

:root {
  --bg: #ffffff;
  --surface: #f4f5f7;
  --surface-2: #e9ecf0;
  --ink: #15171a;
  --ink-2: #353a42;
  --muted: #5b616b;
  --rule: #dfe2e7;
  --rail: #c9ced6;
  --bar-strong: #4a505a;
  --bar-soft: #c9ced6;
  --brand: #d36253;
  --brand-text: #b0463a;
  --on-brand: #ffffff;
  --brand-wash: rgba(211, 98, 83, 0.07);
  --feature-bg: #17191d;
  --feature-ink: #f3f4f6;
  --feature-muted: #aab0b9;
  --feature-rule: #31353d;
  --focus: #15171a;

  --font: system-ui, -apple-system, "Segoe UI", "PingFang TC", "Noto Sans TC", "Noto Sans CJK TC", "Microsoft JhengHei", "Heiti TC", sans-serif;
  --measure: 40rem;
  --wide: 72rem;
  --gutter: 1rem;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #14161a;
    --surface: #1b1e23;
    --surface-2: #252930;
    --ink: #e8eaed;
    --ink-2: #c6cad1;
    --muted: #9aa1ab;
    --rule: #2e333b;
    --rail: #434952;
    --bar-strong: #aab0ba;
    --bar-soft: #454b55;
    --brand-text: #e3806f;
    --brand-wash: rgba(211, 98, 83, 0.12);
    --feature-bg: #252a31;
    --feature-ink: #eef0f2;
    --feature-muted: #a9b0ba;
    --feature-rule: #3a4049;
    --focus: #e8eaed;
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --bg: #14161a;
  --surface: #1b1e23;
  --surface-2: #252930;
  --ink: #e8eaed;
  --ink-2: #c6cad1;
  --muted: #9aa1ab;
  --rule: #2e333b;
  --rail: #434952;
  --bar-strong: #aab0ba;
  --bar-soft: #454b55;
  --brand-text: #e3806f;
  --brand-wash: rgba(211, 98, 83, 0.12);
  --feature-bg: #252a31;
  --feature-ink: #eef0f2;
  --feature-muted: #a9b0ba;
  --feature-rule: #3a4049;
  --focus: #e8eaed;
  color-scheme: dark;
}

/* ---------- 基礎 ---------- */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 7rem;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.85;
  letter-spacing: 0.01em;
  font-kerning: normal;
  overflow-wrap: break-word;
}

@media (min-width: 45rem) {
  body { font-size: 1.125rem; }
}

h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }

/* 中文內文左右對齊，行尾不留空 */
p, li, dd { text-align: justify; }

h1, h2, h3,
.hero-title, .page-title, .stop-title, .section-title, .card-name, .next-name,
.route-name, .toc-name {
  text-align: left;
  text-wrap: balance;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

a { color: inherit; }
p a, li a, dd a {
  text-decoration: underline;
  text-decoration-color: var(--rail);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}
p a:hover, li a:hover, dd a:hover { text-decoration-color: var(--brand); }

strong { font-weight: 700; }

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

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -3rem;
  padding: 0.5rem 0.875rem;
  background: var(--ink);
  color: var(--bg);
  font-size: 0.9375rem;
  z-index: 20;
}
.skip-link:focus { top: 0.5rem; }

/* ---------- 導覽列 ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--bg);
  border-bottom: 1px solid var(--rule);
}

.header-inner {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 0 var(--gutter);
  min-height: 3.5rem;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.brand {
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  white-space: nowrap;
  letter-spacing: 0.02em;
}

.nav-links {
  display: flex;
  gap: 1.75rem;
  margin-left: auto;
}

.nav-links a {
  display: block;
  padding: 0.25rem 0;
  font-size: 0.9375rem;
  line-height: 1.6;
  text-decoration: none;
  color: var(--muted);
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a[aria-current="page"] {
  color: var(--ink);
  font-weight: 700;
  border-bottom-color: var(--brand);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.7rem;
  font: inherit;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--rule);
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
}
.theme-toggle:hover { border-color: var(--ink); }
.theme-toggle[hidden] { display: none; }

.theme-icon {
  width: 0.8rem;
  height: 0.8rem;
  border-radius: 50%;
  border: 1.5px solid currentColor;
  background: linear-gradient(90deg, currentColor 50%, transparent 50%);
}

.nav-subscribe {
  display: inline-block;
  padding: 0.3rem 0.9rem;
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.5;
  text-decoration: none;
  white-space: nowrap;
  color: var(--brand-text);
  border: 1.5px solid var(--brand);
  border-radius: 999px;
}
.nav-subscribe:hover { background: var(--brand-wash); }

@media (max-width: 47.99rem) {
  .header-inner {
    flex-wrap: wrap;
    gap: 0 0.75rem;
    padding-top: 0.5rem;
  }
  .brand { order: 1; font-size: 0.9375rem; }
  .header-actions { order: 2; margin-left: auto; gap: 0.5rem; }
  .nav-links {
    order: 3;
    flex-basis: 100%;
    margin: 0.5rem 0 0;
    justify-content: space-between;
    gap: 0;
    border-top: 1px solid var(--rule);
  }
  .nav-links a { padding: 0.45rem 0; }
}

/* ---------- 版面 ---------- */

main { display: block; }

.wrap {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.col {
  max-width: var(--measure);
  margin: 0 auto;
}

.section { margin-top: 4rem; }

.section-title {
  font-size: 1.3125rem;
  line-height: 1.5;
  font-weight: 700;
  margin-bottom: 1.25rem;
}

.prose > * + * { margin-top: 1.15em; }

.prose > ul > li {
  position: relative;
  padding-left: 1.25rem;
}
.prose > ul > li + li { margin-top: 0.5rem; }
.prose > ul > li::before {
  content: "";
  position: absolute;
  left: 0.15rem;
  top: 0.8em;
  width: 0.375rem;
  height: 0.375rem;
  border-radius: 50%;
  background: var(--muted);
}

/* ---------- 首頁：開場 ---------- */

.hero { padding: 3.25rem 0 0; }

.hero-kicker {
  font-size: 1rem;
  color: var(--muted);
  margin-bottom: 0.75rem;
  letter-spacing: 0.08em;
  text-align: left;
}

.hero-title {
  font-size: clamp(2.5rem, 8vw, 4.75rem);
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.hero-grid {
  display: grid;
  gap: 1.75rem;
  margin-top: 1.75rem;
}

.hero-lede {
  font-size: 1.1875rem;
  line-height: 1.85;
  color: var(--ink-2);
  max-width: 36rem;
}

.howto {
  padding: 1.25rem 1.4rem 1.35rem;
  background: var(--surface);
  border-radius: 14px;
}
.howto-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
}
.howto li {
  position: relative;
  padding-left: 1.1rem;
  font-size: 0.96875rem;
  line-height: 1.75;
  color: var(--ink-2);
}
.howto li + li { margin-top: 0.5rem; }
.howto li::before {
  content: "";
  position: absolute;
  left: 0.1rem;
  top: 0.72em;
  width: 0.375rem;
  height: 0.375rem;
  border-radius: 50%;
  background: var(--brand);
}

@media (min-width: 60rem) {
  .hero { padding-top: 5.5rem; }
  .hero-grid {
    gap: 2rem;
    margin-top: 2.25rem;
  }
  .hero-lede { max-width: 44rem; }
  .howto { padding: 1.4rem 1.75rem 1.5rem; }
  .howto ul {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem 3rem;
  }
  .howto li + li { margin-top: 0; }
}

/* ---------- 首頁：學院卡片 ---------- */

.directory { margin-top: 3rem; }

.cards {
  display: grid;
  gap: 1rem;
}

.card {
  /* 卡片內一律使用淺色配色 */
  --bg: #ffffff;
  --surface: #f1f2f4;
  --ink: #15171a;
  --ink-2: #353a42;
  --muted: #5b616b;
  --rule: #dfe2e7;
  --brand-text: #b0463a;
  display: flex;
  flex-direction: column;
  padding: 1.4rem 1.4rem 1.5rem;
  background: var(--bg);
  border: 1px solid var(--rule);
  border-radius: 16px;
  text-decoration: none;
  color: var(--ink);
}
.card:hover { border-color: var(--ink); }

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .card { border-color: transparent; }
  :root:not([data-theme="light"]) .card:hover { box-shadow: 0 0 0 2px #9aa1ab; }
}
:root[data-theme="dark"] .card { border-color: transparent; }
:root[data-theme="dark"] .card:hover { box-shadow: 0 0 0 2px #9aa1ab; }

.card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--muted);
  text-align: left;
}

.chip {
  display: inline-block;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink-2);
  font-weight: 700;
}

.card-name {
  margin-top: 0.9rem;
  font-size: 1.75rem;
  line-height: 1.3;
  font-weight: 700;
}

.card-desc {
  margin-top: 0.5rem;
  font-size: 1rem;
  line-height: 1.8;
  color: var(--ink-2);
}

.card-side {
  margin-top: auto;
  padding-top: 1.1rem;
}

.card-visit {
  padding-top: 0.9rem;
  border-top: 1px solid var(--rule);
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--muted);
}
.card-visit .k {
  display: block;
  font-weight: 700;
  color: var(--ink-2);
}

.card-btn {
  display: inline-block;
  margin-top: 1.1rem;
  padding: 0.55rem 1.15rem;
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.5;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg);
}

/* :root 提高優先順序，深色模式下也保留品牌色外框 */
:root .card.card-flagship { border: 2px solid var(--brand); }
:root .card.card-flagship:hover { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand); }
.card-flagship { padding-top: 1.75rem; }
.card-flagship .chip {
  background: transparent;
  color: var(--brand-text);
  box-shadow: inset 0 0 0 1.5px var(--brand);
}
.card-flagship .card-name { font-size: clamp(2rem, 6vw, 2.5rem); }
.card-flagship .card-btn {
  background: var(--brand);
  color: #ffffff;
}

@media (min-width: 48rem) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
  .card-flagship { grid-column: 1 / -1; }
}

@media (min-width: 64rem) {
  .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .card { padding: 1.6rem 1.6rem 1.7rem; }
  .card-flagship {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    column-gap: 3.5rem;
    padding: 2.25rem 2.25rem 2.25rem;
  }
  .card-flagship .card-side {
    margin-top: 0;
    padding-top: 0;
    align-self: end;
  }
}

/* ---------- 首頁：訂閱 ---------- */

.home-sub { margin-top: 4rem; }
.sub-grid { display: grid; gap: 0 3rem; }
.sub-grid .section-title { margin-bottom: 0; }
.sub-grid .cta { margin-top: 1.25rem; }

@media (min-width: 64rem) {
  .sub-grid { grid-template-columns: 16rem minmax(0, 40rem); }
  .sub-grid .cta { margin-top: 0; }
}

@media (min-width: 48rem) and (max-width: 63.99rem) {
  .sub-grid > div { max-width: 40rem; }
  .cards > .card:last-child:nth-child(even) { grid-column: 1 / -1; }
}

/* ---------- 學院頁頁首 ---------- */

.page-head {
  background: var(--surface);
  padding: 3rem 0 2.25rem;
}

.page-title {
  font-size: clamp(2.5rem, 9vw, 3.75rem);
  line-height: 1.15;
  font-weight: 700;
}

.page-lede {
  margin-top: 1rem;
  font-size: 1.1875rem;
  line-height: 1.8;
  color: var(--ink-2);
}

.meta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 1rem;
  margin-top: 1.75rem;
  border-top: 1px solid var(--rule);
  font-size: 0.9375rem;
  line-height: 1.65;
}
.meta > div { padding-top: 0.8rem; }
.meta > div:first-child { grid-column: 1 / -1; }
.meta-3 > div:first-child { padding-bottom: 0.8rem; border-bottom: 1px solid var(--rule); }
.meta-3 > div:last-child { padding-left: 1rem; border-left: 1px solid var(--rule); }
.meta dt { font-size: 0.8125rem; color: var(--muted); }
.meta dd { color: var(--ink); text-align: left; }
.meta-item { display: block; }

@media (min-width: 48rem) {
  .page-head { padding: 4rem 0 2.75rem; }
  .meta { display: flex; padding-top: 0.9rem; }
  .meta > div { padding: 0; }
  .meta-3 > div:first-child { padding-bottom: 0; border-bottom: 0; }
  .meta > div:first-child { flex: 1 1 auto; min-width: 0; }
  .meta > div:not(:first-child) {
    flex: none;
    margin-left: 1.5rem;
    padding-left: 1.5rem;
    border-left: 1px solid var(--rule);
  }
}

/* ---------- 導覽路線 ---------- */

.route {
  padding: 1.4rem 1.4rem 1.2rem;
  background: var(--surface);
  border-radius: 14px;
}

.route-title {
  font-size: 0.9375rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
  text-align: left;
}

.route li {
  position: relative;
  padding-left: 1.75rem;
}

.route li::before {
  content: "";
  position: absolute;
  left: 0.3125rem;
  top: 1.2rem;
  bottom: -1.2rem;
  width: 2px;
  background: var(--rail);
}
.route li:last-child::before { display: none; }

.route a {
  display: grid;
  grid-template-columns: 3.75rem minmax(0, 1fr);
  gap: 0.6rem;
  padding: 0.45rem 0;
  font-size: 0.96875rem;
  line-height: 1.6;
  text-decoration: none;
}
.route a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.82rem;
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
  background: var(--surface);
  border: 2px solid var(--brand);
}
.route li:last-child a::before { background: var(--brand); }
.route a:hover .route-name {
  text-decoration: underline;
  text-decoration-color: var(--brand);
  text-underline-offset: 0.2em;
}

.route-label { color: var(--muted); white-space: nowrap; }
.route-name { color: var(--ink); }

@media (max-width: 47.99rem) {
  .route a { grid-template-columns: minmax(0, 1fr); gap: 0; padding: 0.4rem 0 0.5rem; }
  .route a::before { top: 0.62rem; }
  .route-label { font-size: 0.8125rem; line-height: 1.5; }
  .route li::before { top: 1.05rem; bottom: -0.95rem; }
}

/* ---------- 名詞速查 ---------- */

.glossary {
  border: 1px solid var(--rule);
  border-radius: 12px;
}
.prose > .glossary { margin-top: 0.75rem; }
.glossary summary {
  cursor: pointer;
  padding: 0.75rem 1.25rem;
  font-size: 0.9375rem;
  font-weight: 700;
}
.glossary[open] summary { border-bottom: 1px solid var(--rule); }
.glossary dl {
  padding: 0.25rem 1.25rem 1rem;
  font-size: 0.9375rem;
  line-height: 1.75;
}
.glossary dt { font-weight: 700; margin-top: 0.75rem; }
.glossary dd { color: var(--ink-2); }

/* ---------- 各站與路線軌道 ---------- */

.stops {
  position: relative;
  margin-top: 1rem;
}

.stop {
  position: relative;
  padding: 3.5rem 0 0.5rem;
}

.stop-head { margin-bottom: 1.25rem; }

.stop-label {
  display: block;
  position: relative;
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--muted);
  line-height: 1.5;
  padding-left: 1.25rem;
}
.stop-label::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.4rem;
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--brand);
}
.stop.is-final .stop-label::before { background: var(--brand); }

.stop-title {
  display: block;
  margin-top: 0.4rem;
  font-size: clamp(1.25rem, 3.2vw + 0.5rem, 1.75rem);
  line-height: 1.45;
  font-weight: 700;
}

@media (min-width: 45rem) {
  .stop { padding-left: 2.5rem; }
  .stop.has-next::before {
    content: "";
    position: absolute;
    left: 0.3125rem;
    top: 4.275rem;
    bottom: -4.275rem;
    width: 2px;
    background: var(--rail);
  }
  .stop-label { padding-left: 0; }
  .stop-label::before { left: -2.5rem; }
}

@media (min-width: 64rem) {
  .stop { padding-left: 0; }
  .stop.has-next::before { left: -3.1875rem; }
  .stop-label::before { left: -3.5rem; }
}

/* 桌機寬螢幕：右側固定的站點目錄 */
.toc { display: none; }

@media (min-width: 80rem) {
  .toc {
    display: block;
    position: absolute;
    top: 0;
    bottom: 0;
    left: calc(100% + 3.5rem);
    width: 15rem;
  }
  .toc-inner {
    position: sticky;
    top: 6rem;
    padding-top: 3.5rem;
  }
  .toc-title {
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--muted);
    margin-bottom: 0.5rem;
    text-align: left;
  }
  .toc ol { border-left: 2px solid var(--rule); }
  .toc a {
    display: block;
    margin-left: -2px;
    padding: 0.4rem 0 0.4rem 0.9rem;
    border-left: 2px solid transparent;
    text-decoration: none;
    font-size: 0.875rem;
    line-height: 1.55;
  }
  .toc-label { display: block; font-size: 0.75rem; color: var(--muted); }
  .toc-name { display: block; color: var(--muted); }
  .toc a:hover .toc-name { color: var(--ink); }
  .toc a[aria-current="step"] { border-left-color: var(--brand); }
  .toc a[aria-current="step"] .toc-name { color: var(--ink); font-weight: 700; }
}

/* ---------- 原文摘錄 ---------- */

.excerpt {
  margin: 1.75rem 0;
  padding: 1.1rem 1.1rem 1.25rem;
  background: var(--surface);
  border-left: 3px solid var(--ink);
  border-radius: 0 10px 10px 0;
}

.excerpt figcaption {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 0.55rem;
  letter-spacing: 0.04em;
}

.excerpt blockquote > * + * { margin-top: 1em; }

.excerpt ul > li { position: relative; padding-left: 1.1rem; }
.excerpt ul > li + li { margin-top: 0.4rem; }
.excerpt ul > li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.8em;
  width: 0.375rem;
  height: 0.375rem;
  border-radius: 50%;
  background: var(--ink-2);
}

@media (min-width: 45rem) {
  .excerpt { padding: 1.35rem 1.6rem 1.5rem; }
}

/* 短摘錄：放大成引言 */
.excerpt.is-pull {
  background: transparent;
  border-left: 4px solid var(--brand);
  border-radius: 0;
  padding: 0.15rem 0 0.25rem 1.15rem;
  margin: 2.25rem 0;
}
.excerpt.is-pull blockquote {
  font-size: 1.25rem;
  line-height: 1.7;
  font-weight: 700;
  color: var(--ink);
}

@media (min-width: 45rem) {
  .excerpt.is-pull { padding-left: 1.5rem; }
  .excerpt.is-pull blockquote { font-size: 1.4375rem; }
}

/* 回答者頭像 */
.avatar {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 50%;
  background: var(--ink);
  color: var(--bg);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1;
}

.avatar-q {
  background: transparent;
  color: var(--brand-text);
  box-shadow: inset 0 0 0 1.5px var(--brand);
}

/* ---------- 思考題 ---------- */

.question {
  margin: 1.75rem 0;
  padding: 1.1rem 1.1rem 1.25rem;
  border: 1.5px dashed var(--muted);
  border-radius: 12px;
}
.question-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 0.55rem;
  letter-spacing: 0.04em;
}
.q-mark {
  display: inline-grid;
  place-items: center;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1.5px var(--muted);
  font-size: 0.8125rem;
  letter-spacing: 0;
  line-height: 1;
}
.question-text { font-weight: 500; }

@media (min-width: 45rem) {
  .question { padding: 1.35rem 1.6rem 1.5rem; }
}

/* ---------- 會員提問 ---------- */

.ask {
  margin-bottom: 1.5rem;
  padding: 1.1rem 1.25rem 1.25rem;
  border: 1px solid var(--rule);
  border-radius: 4px 16px 16px 16px;
}
.ask-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 0.5rem;
  letter-spacing: 0.04em;
}
.ask-text { font-weight: 700; line-height: 1.75; }

@media (min-width: 45rem) {
  .ask { padding: 1.25rem 1.6rem 1.4rem; }
}

/* ---------- 帶走的問題 ---------- */

.takeaways {
  margin: 1.5rem 0 2rem;
  border-top: 2px solid var(--ink);
}
.takeaways li {
  position: relative;
  padding: 1rem 0 1.05rem 2.4rem;
  border-top: 1px solid var(--rule);
  counter-increment: takeaway;
}
.takeaways li:first-child { border-top: 0; }
.takeaways { counter-reset: takeaway; }
.takeaways li::before {
  content: counter(takeaway);
  position: absolute;
  left: 0;
  top: 0.95rem;
  font-size: 1.5rem;
  line-height: 1;
  font-weight: 700;
  color: var(--brand-text);
  font-variant-numeric: tabular-nums;
}
.takeaway-q {
  display: block;
  font-weight: 700;
  line-height: 1.7;
}
.takeaway-tag {
  display: block;
  margin-top: 0.3rem;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--muted);
  text-align: left;
}

@media (min-width: 45rem) {
  .takeaways li { padding-left: 2.75rem; }
}

/* ---------- 數字拆解 ---------- */

.breakdown {
  margin: 2rem 0;
  padding: 1.35rem 1.25rem 1.5rem;
  border: 1px solid var(--rule);
  border-radius: 14px;
}

.breakdown-title {
  font-size: 1rem;
  line-height: 1.6;
  font-weight: 700;
  margin-bottom: 1.25rem;
}

.bar {
  display: flex;
  height: 1.75rem;
  border-radius: 4px;
  overflow: hidden;
  gap: 2px;
}
.bar span { display: block; min-width: 4px; }
.bar .s-soft { background: var(--bar-soft); }
.bar .s-strong { background: var(--bar-strong); }
.bar .s-brand { background: var(--brand); }

.bar-legend {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.5rem;
  font-size: 0.875rem;
  line-height: 1.6;
}
.bar-legend .v { font-weight: 700; font-variant-numeric: tabular-nums; }
.bar-legend .is-brand { color: var(--brand-text); }

.zoom {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--rule);
}
.zoom-title {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--brand-text);
  margin-bottom: 0.75rem;
  text-align: left;
}

.legend {
  display: grid;
  gap: 0.35rem;
  margin-top: 0.75rem;
  font-size: 0.875rem;
  line-height: 1.6;
}
.legend li { display: flex; align-items: baseline; gap: 0.5rem; text-align: left; }
.legend .sw {
  flex: none;
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 2px;
}
.legend .sw.s-strong { background: var(--bar-strong); }
.legend .sw.s-soft { background: var(--bar-soft); }
.legend .v { margin-left: auto; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }

.visa-note {
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 2px dashed var(--ink-2);
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--ink-2);
}
.visa-note .k { font-weight: 700; color: var(--ink); margin-right: 0.5rem; }

.stats {
  display: grid;
  gap: 1.5rem;
}
.stat-k { font-size: 0.875rem; font-weight: 700; color: var(--muted); }
.stat-v {
  font-size: clamp(2.25rem, 7vw, 2.75rem);
  line-height: 1.15;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  margin: 0.2rem 0 0.4rem;
  text-align: left;
  white-space: nowrap;
}
.stat-v small { font-size: 0.42em; font-weight: 700; margin-left: 0.3rem; }
.stat-d { font-size: 0.875rem; line-height: 1.7; color: var(--ink-2); }

@media (min-width: 36rem) {
  .stats { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

.endpoints {
  display: grid;
  gap: 1.25rem 1.5rem;
}
.endpoint {
  padding-top: 0.75rem;
  border-top: 2px solid var(--ink);
}
.endpoint-letter {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: left;
}
.endpoint-name { font-weight: 700; font-size: 1rem; margin-top: 0.25rem; }
.endpoint-desc { font-size: 0.875rem; line-height: 1.7; color: var(--ink-2); margin-top: 0.15rem; }

@media (min-width: 36rem) {
  .endpoints { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 45rem) {
  .breakdown { padding: 1.5rem 1.6rem 1.6rem; }
}

/* ---------- 訂閱區塊 ---------- */

.cta {
  margin: 2.5rem 0 0;
  padding: 1.75rem 1.4rem 2rem;
  background: var(--brand-wash);
  border-top: 3px solid var(--brand);
  border-radius: 0 0 16px 16px;
}

.cta-title {
  font-size: 1.1875rem;
  line-height: 1.5;
  font-weight: 700;
  margin-bottom: 1rem;
}

.cta-list li {
  position: relative;
  padding-left: 1.4rem;
  line-height: 1.7;
  text-align: left;
}
.cta-list li + li { margin-top: 0.6rem; }
.cta-main { display: block; }
.cta-note {
  display: block;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--muted);
}
.cta-list li::before {
  content: "";
  position: absolute;
  left: 0.1rem;
  top: 0.62em;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--brand);
}

.cta-action {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
  margin-top: 1.75rem;
}

.btn-primary {
  display: inline-block;
  padding: 0.7rem 1.75rem;
  font-size: 1.1875rem;
  font-weight: 700;
  line-height: 1.4;
  text-decoration: none;
  color: var(--on-brand);
  background: var(--brand);
  border-radius: 999px;
}
.btn-primary:hover { background: #bf5546; }

.cta-url {
  font-size: 0.875rem;
  color: var(--muted);
  text-decoration: none;
}
.cta-url:hover { color: var(--ink); text-decoration: underline; }

@media (min-width: 45rem) {
  .cta { padding: 2.25rem 2.25rem 2.5rem; }
}

/* ---------- 下一站 ---------- */

.next { margin-top: 4rem; }

.next-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 0.75rem;
}

.next-grid {
  display: grid;
  gap: 0.75rem;
}

.next-card {
  position: relative;
  display: block;
  padding: 1rem 3rem 1.1rem 1.25rem;
  border: 1px solid var(--rule);
  border-radius: 14px;
  text-decoration: none;
}
.next-card:hover { border-color: var(--ink); }
.next-card::after {
  content: "";
  position: absolute;
  right: 1.35rem;
  top: 50%;
  width: 0.55rem;
  height: 0.55rem;
  margin-top: -0.3rem;
  border-top: 2px solid var(--muted);
  border-right: 2px solid var(--muted);
  transform: rotate(45deg);
}
.next-card:hover::after { border-color: var(--ink); }

.next-name {
  display: block;
  font-size: 1.1875rem;
  font-weight: 700;
  line-height: 1.5;
}
.next-desc {
  display: block;
  text-align: justify;
  margin-top: 0.15rem;
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--muted);
}

/* ---------- 頁尾 ---------- */

.site-footer {
  margin-top: 5rem;
  border-top: 1px solid var(--rule);
}
.footer-inner {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 1.75rem var(--gutter) 2.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 2rem;
  justify-content: space-between;
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--muted);
}
.footer-links { display: flex; gap: 1.5rem; }
.footer-links a { text-decoration: none; color: var(--ink-2); }
.footer-links a:hover { text-decoration: underline; }

/* 手機：摘錄、帶走問題與訂閱區塊延伸到螢幕兩側，讓內文有更寬的行長 */
@media (max-width: 44.99rem) {
  .excerpt:not(.is-pull),
  .cta {
    margin-left: calc(-1 * var(--gutter));
    margin-right: calc(-1 * var(--gutter));
    border-radius: 0;
  }
  .excerpt:not(.is-pull) {
    padding-left: calc(var(--gutter) - 3px);
    padding-right: var(--gutter);
  }
  .cta { padding-left: var(--gutter); padding-right: var(--gutter); }
  .sub-grid .cta { margin-left: calc(-1 * var(--gutter)); margin-right: calc(-1 * var(--gutter)); }
  .question,
  .ask { padding-left: 1rem; padding-right: 1rem; }
}

/* ---------- 實際體驗：試讀文章 ---------- */

.trial-divider {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 4.5rem;
}
.trial-divider::before,
.trial-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--rule);
}
.trial-divider span {
  width: 0.375rem;
  height: 0.375rem;
  border-radius: 50%;
  background: var(--brand);
}

.stop.stop-trial { padding: 3rem 0 0; }

.trial-head {
  position: relative;
  padding: 1.6rem 1.4rem 1.6rem;
  background: var(--brand);
  color: #ffffff;
  border-radius: 16px;
}
.trial-head .stop-head { margin-bottom: 0; }
.stop-trial .stop-label {
  padding-left: 1.25rem;
  color: rgba(255, 255, 255, 0.9);
}
.stop.stop-trial .stop-label::before {
  left: 0;
  background: #ffffff;
  border-color: #ffffff;
}
.trial-kicker {
  display: block;
  margin-top: 1rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.92);
}
.stop-trial .stop-title {
  margin-top: 0.35rem;
  font-size: clamp(1.5rem, 4.5vw + 0.4rem, 2.125rem);
  line-height: 1.35;
  color: #ffffff;
}
.stop-trial .stop-label + .stop-title { margin-top: 1rem; }
.trial-sub {
  margin-top: 0.4rem;
  font-size: 1rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.92);
  text-align: left;
}
.trial-facts {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 1rem;
  margin-top: 1.1rem;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.95);
  text-align: left;
}
.trial-facts .chip {
  background: transparent;
  color: #ffffff;
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.85);
}
.trial-intro {
  margin-top: 1.25rem;
  padding-top: 1.1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.35);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.8;
  color: #ffffff;
}

.trial-article {
  margin-top: 2.25rem;
  line-height: 1.95;
}
.trial-article > * + * { margin-top: 1.2em; }
.trial-article h3 {
  margin-top: 2.4em;
  font-size: 1.3125rem;
  line-height: 1.5;
  font-weight: 700;
}
.trial-article > h3:first-child { margin-top: 0; }
.trial-article h4 {
  margin-top: 2em;
  font-size: 1.0625rem;
  line-height: 1.6;
  font-weight: 700;
}
.trial-article h3 + *,
.trial-article h4 + * { margin-top: 0.75em; }
.trial-article ul > li {
  position: relative;
  padding-left: 1.25rem;
}
.trial-article ul > li + li { margin-top: 0.5rem; }
.trial-article ul > li::before {
  content: "";
  position: absolute;
  left: 0.15rem;
  top: 0.85em;
  width: 0.375rem;
  height: 0.375rem;
  border-radius: 50%;
  background: var(--muted);
}

/* 付費段落：免費段落結束後直接接模糊文字，再接解鎖卡 */
.paywall { margin-top: 1.2em; }

.paywall-blur {
  max-height: 10.5em;
  overflow: hidden;
  line-height: 1.95;
  filter: blur(5px);
  -webkit-user-select: none;
  user-select: none;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 45%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 45%, transparent 100%);
}
.paywall-blur p + p { margin-top: 1.2em; }
.paywall-blur .blur-h { font-size: 1.3125rem; font-weight: 700; }

.unlock {
  position: relative;
  margin-top: -1.5rem;
  padding: 1.9rem 1.4rem 2rem;
  background: var(--bg);
  border: 1px solid var(--rule);
  border-top: 3px solid var(--brand);
  border-radius: 0 0 16px 16px;
  text-align: center;
}
.unlock .unlock-title {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.25rem;
  line-height: 1.5;
  font-weight: 700;
  text-align: center;
}

.lock {
  position: relative;
  flex: none;
  width: 0.85rem;
  height: 0.68rem;
  margin-top: 0.42rem;
  border-radius: 2px;
  background: var(--ink);
}
.lock::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 100%;
  width: 0.56rem;
  height: 0.44rem;
  margin-left: -0.28rem;
  border: 2px solid var(--ink);
  border-bottom: 0;
  border-radius: 0.3rem 0.3rem 0 0;
  box-sizing: border-box;
}

.unlock .unlock-desc {
  margin-top: 0.6rem;
  color: var(--ink-2);
  text-align: center;
}
.unlock-list { margin-top: 0.6rem; }
.unlock .unlock-list li {
  position: relative;
  width: fit-content;
  max-width: 100%;
  margin: 0 auto;
  padding-left: 1.4rem;
  font-weight: 700;
  line-height: 1.7;
  text-align: left;
}
.unlock .unlock-list li + li { margin-top: 0.45rem; }
.unlock-list li::before {
  content: "";
  position: absolute;
  left: 0.1rem;
  top: 0.62em;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 2px;
  background: var(--brand);
}
.unlock .btn-primary { margin-top: 1.5rem; }

@media (min-width: 45rem) {
  .stop.stop-trial { padding-left: 0; }
  .stop-trial .stop-label { padding-left: 1.25rem; }
  .stop-trial .stop-label::before { left: 0; }
  .trial-head { padding: 2rem 2.25rem 2rem; }
  .trial-article,
  .paywall-blur { font-size: 1.125rem; }
  .unlock { padding: 2rem 2.25rem 2.25rem; }
}

@media (max-width: 44.99rem) {
  .trial-head,
  .unlock {
    margin-left: calc(-1 * var(--gutter));
    margin-right: calc(-1 * var(--gutter));
    border-radius: 0;
  }
  .trial-head { padding-left: var(--gutter); padding-right: var(--gutter); }
  .unlock {
    border-left: 0;
    border-right: 0;
    padding-left: var(--gutter);
    padding-right: var(--gutter);
  }
}

@media print {
  .site-header, .theme-toggle, .next, .cta-action, .toc { display: none; }
}
