:root {
  --bg: #faf8f4;
  --surface: #ffffff;
  --surface-soft: #f4f0e8;
  --ink: #1f2421;
  --ink-muted: #5b625d;
  --border: #e4ddd0;
  --accent: #275849;
  --accent-soft: #edf5f1;
  --accent-border: #b8d8cb;
  --warn-ink: #8c3f19;
  --warn-bg: #fdf3ec;
  --warn-border: #e9c5ae;
  --est-ink: #47525e;
  --est-bg: #f1f4f7;
  --est-border: #cbd4de;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 2px 10px rgba(31, 36, 33, 0.04);
  --max-width: 920px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background-color: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang HK", "Noto Sans TC", "Microsoft JhengHei", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  font-variant-numeric: tabular-nums;
}

a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  word-break: break-word;
}

a:hover,
a:focus-visible {
  color: #193b30;
  background-color: var(--accent-soft);
}

.wrap {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 16px;
}

/* Header & Hero */
.site-header {
  background: linear-gradient(180deg, #f3efe6 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--border);
  padding: 28px 0 22px;
}

.eyebrow {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--accent);
  margin-bottom: 8px;
}

.site-header h1 {
  margin: 0 0 10px;
  font-size: clamp(1.5rem, 4.5vw, 2.15rem);
  line-height: 1.28;
  font-weight: 700;
  color: var(--ink);
}

.lead {
  margin: 0 0 16px;
  color: var(--ink-muted);
  font-size: 1rem;
  max-width: 68ch;
}

.meta-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.meta-pill {
  display: inline-flex;
  align-items: center;
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 0.84rem;
  color: var(--ink);
}

.meta-pill--timestamp {
  background: var(--surface-soft);
  font-weight: 600;
}

/* Status Legend */
.legend-bar {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 0.875rem;
}

.legend-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

/* Sticky Section Nav */
.section-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(250, 248, 244, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.section-nav__list {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  list-style: none;
  margin: 0;
  padding: 10px 0;
  scrollbar-width: none;
}

.section-nav__list::-webkit-scrollbar {
  display: none;
}

.section-nav__list a {
  display: inline-block;
  white-space: nowrap;
  text-decoration: none;
  color: var(--ink-muted);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid transparent;
}

.section-nav__list a:hover,
.section-nav__list a:focus-visible {
  color: var(--accent);
  background: var(--accent-soft);
  border-color: var(--accent-border);
}

/* Main Sections */
main {
  padding: 24px 0 48px;
}

.section {
  margin-bottom: 34px;
  scroll-margin-top: 58px;
}

.section-head {
  margin-bottom: 14px;
}

.section-head h2 {
  margin: 0 0 4px;
  font-size: 1.32rem;
  line-height: 1.35;
  color: var(--ink);
}

.section-sub {
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.93rem;
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 0.77rem;
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: 0.01em;
}

.badge--verified {
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid var(--accent-border);
}

.badge--unverified {
  background: var(--warn-bg);
  color: var(--warn-ink);
  border: 1px solid var(--warn-border);
}

.badge--estimate {
  background: var(--est-bg);
  color: var(--est-ink);
  border: 1px dashed var(--est-border);
}

/* Cards */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
  margin-bottom: 14px;
}

.card--verified {
  border-left: 4px solid var(--accent);
}

.card--unverified {
  border: 1px dashed var(--warn-border);
  border-left: 4px solid var(--warn-ink);
  background: #fffdfb;
}

.card--estimate {
  border: 1px dashed var(--est-border);
  border-left: 4px solid var(--est-ink);
  background: #fcfdfe;
}

.card__header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
}

.card__title {
  margin: 0;
  font-size: 1.06rem;
  font-weight: 700;
  color: var(--ink);
}

/* Grids */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.facts-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin: 0;
}

.fact-row {
  background: var(--surface-soft);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
}

.fact-row dt {
  font-size: 0.8rem;
  color: var(--ink-muted);
  margin-bottom: 2px;
}

.fact-row dd {
  margin: 0;
  font-weight: 600;
  color: var(--ink);
}

/* Callout Boxes */
.notice {
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  margin-top: 12px;
  font-size: 0.92rem;
}

.notice--warn {
  background: var(--warn-bg);
  border: 1px solid var(--warn-border);
  color: var(--warn-ink);
}

.notice--est {
  background: var(--est-bg);
  border: 1px solid var(--est-border);
  color: var(--est-ink);
}

.notice--soft {
  background: var(--surface-soft);
  border: 1px solid var(--border);
  color: var(--ink);
}

.notice strong {
  color: inherit;
}

/* Lists & Tables */
.clean-list {
  margin: 8px 0 0;
  padding-left: 20px;
}

.clean-list li {
  margin-bottom: 6px;
}

.clean-list li:last-child {
  margin-bottom: 0;
}

.price-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.price-list li {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

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

.price-val {
  font-weight: 700;
  color: var(--ink);
}

/* Timeline */
.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
}

.timeline__item {
  display: grid;
  grid-template-columns: 98px 1fr;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

.timeline__item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.timeline__time {
  font-weight: 700;
  color: var(--accent);
  font-size: 0.93rem;
}

.timeline__desc {
  color: var(--ink);
}

.timeline__note {
  display: block;
  margin-top: 3px;
  font-size: 0.85rem;
  color: var(--ink-muted);
}

.timeline__note--warn {
  color: var(--warn-ink);
  font-weight: 500;
}

/* Source links */
.source-link-line {
  margin: 12px 0 0;
  font-size: 0.88rem;
  color: var(--ink-muted);
}

.sources-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sources-list li {
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

.sources-list li:last-child {
  border-bottom: none;
}

.sources-list .source-url {
  display: block;
  font-size: 0.84rem;
  margin-top: 2px;
}

/* Caveats */
.caveat-list {
  margin: 0;
  padding-left: 20px;
}

.caveat-list li {
  margin-bottom: 8px;
}

.caveat-list li:last-child {
  margin-bottom: 0;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--surface-soft);
  padding: 20px 0 32px;
  font-size: 0.86rem;
  color: var(--ink-muted);
}

.site-footer p {
  margin: 0 0 6px;
}

@media (min-width: 680px) {
  .wrap {
    padding: 0 24px;
  }

  .legend-bar {
    grid-template-columns: repeat(3, 1fr);
  }

  .facts-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }

  .timeline__item {
    grid-template-columns: 124px 1fr;
  }
}
