:root {
  color-scheme: light;
  --bg: #f4f7fb;
  --paper: #ffffff;
  --paper-soft: #f8fbff;
  --text: #142033;
  --muted: #536276;
  --line: #dce5ef;
  --accent: #0877a8;
  --accent-soft: #e8f6fc;
  --green: #11805b;
  --green-soft: #e9f8f1;
  --yellow-soft: #fff7dd;
  --shadow: 0 16px 40px rgba(23, 43, 77, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(8, 119, 168, 0.08), transparent 34%),
    var(--bg);
  color: var(--text);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "PingFang HK", "Noto Sans TC", "Microsoft JhengHei", sans-serif;
  font-size: 15px;
}

a {
  color: inherit;
}

.header,
.page {
  width: min(1040px, calc(100vw - 32px));
  margin: 0 auto;
}

.header {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: start;
  padding: 34px 0 22px;
}

.top-actions {
  display: flex;
  gap: 8px;
  position: sticky;
  top: 14px;
  z-index: 5;
}

.top-actions a {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.86);
  color: var(--accent);
  text-decoration: none;
  font-size: 12px;
  font-weight: 800;
  box-shadow: 0 6px 18px rgba(23, 43, 77, 0.06);
}

.eyebrow,
.section-kicker {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 850px;
  margin-bottom: 12px;
  color: #0f1d2e;
  font-size: clamp(30px, 4.4vw, 50px);
  line-height: 1.08;
  letter-spacing: -0.045em;
}

h2 {
  margin-bottom: 14px;
  color: #102033;
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.18;
  letter-spacing: -0.03em;
}

h3 {
  margin-bottom: 8px;
  color: #142033;
  font-size: 16px;
  line-height: 1.28;
}

p,
li,
td,
th {
  color: var(--muted);
  line-height: 1.72;
}

p {
  margin-bottom: 12px;
}

strong,
b {
  color: var(--text);
}

.subtitle {
  max-width: 760px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
}

.page {
  display: grid;
  gap: 18px;
  padding-bottom: 52px;
}

.hero-card,
.chapter,
.decision-card {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
}

.hero-card {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 28px;
  align-items: stretch;
  padding: 28px;
}

.summary-strip {
  display: grid;
  gap: 10px;
}

.summary-strip > div,
.kpi-list > div {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px 16px;
  background: var(--paper-soft);
}

.summary-strip span,
.kpi-list span {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.summary-strip strong {
  display: block;
  color: var(--accent);
  font-size: 25px;
  letter-spacing: -0.035em;
}

.chapter,
.decision-card {
  padding: 26px;
}

.card {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--paper-soft);
  padding: 18px;
}

.two-column {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.align-start {
  align-items: start;
}

.logic-chain {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.logic-chain article {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px;
  background: linear-gradient(180deg, #ffffff, #f7fbff);
}

.logic-chain span {
  display: inline-grid;
  width: 30px;
  height: 30px;
  margin-bottom: 10px;
  place-items: center;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 13px;
  font-weight: 900;
}

.logic-chain p,
.example-grid p {
  margin-bottom: 0;
}

.callout {
  border-left: 4px solid var(--accent);
  border-radius: 12px;
  padding: 12px 14px;
  background: var(--accent-soft);
  color: #21465b;
  font-size: 14px;
  line-height: 1.65;
}

.evidence-stack {
  display: grid;
  gap: 14px;
}

.evidence-card {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 18px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 14px;
  background: var(--paper-soft);
}

.evidence-card img,
.reference-img {
  width: 100%;
  max-height: 220px;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}

.reference-img {
  display: block;
  margin-bottom: 14px;
}

video {
  width: min(300px, 100%);
  max-height: 430px;
  display: block;
  margin: 0 auto 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #000;
}

.funnel {
  display: grid;
  gap: 10px;
}

.funnel article {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 14px;
  align-items: start;
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: 13px 15px;
  background: var(--paper-soft);
}

.funnel strong {
  color: var(--accent);
}

.funnel span {
  color: var(--muted);
  line-height: 1.6;
}

.example-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.example-grid article {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 17px;
  background: var(--yellow-soft);
}

table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}

th,
td {
  border-bottom: 1px solid var(--line);
  padding: 11px 12px;
  text-align: left;
  vertical-align: top;
  font-size: 14px;
}

th {
  color: #26374a;
  background: #eef5fb;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.03em;
}

td:first-child {
  color: #18314d;
  font-weight: 800;
}

tr:last-child td {
  border-bottom: 0;
}

.timetable-table .highlight-row td {
  background: var(--accent-soft);
}

.timetable-table td:nth-child(2) {
  white-space: nowrap;
}

table a {
  color: var(--accent);
  font-weight: 700;
}

.roi-table {
  margin-top: 16px;
}

.kpi-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.kpi-list strong {
  color: var(--green);
  font-size: 15px;
}

.decision-card {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: 20px;
  background: linear-gradient(135deg, #ffffff, var(--green-soft));
}

.decision-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 20px;
}

.decision-list li {
  color: #34465a;
}

ul {
  margin: 0;
  padding-left: 18px;
}

li {
  margin: 0 0 7px;
}

@media (max-width: 900px) {
  .header,
  .hero-card,
  .two-column,
  .logic-chain,
  .evidence-card,
  .funnel article,
  .example-grid,
  .kpi-list,
  .decision-card {
    grid-template-columns: 1fr;
  }

  .top-actions {
    position: static;
    flex-wrap: wrap;
  }

  .chapter,
  .hero-card,
  .decision-card {
    padding: 18px;
    border-radius: 18px;
  }

  table {
    display: block;
    overflow-x: auto;
  }
}
