:root {
  --ink: #17211f;
  --green-950: #0f3029;
  --green-900: #12352d;
  --green-800: #1d4b40;
  --green-600: #427a6b;
  --mint-50: #f7fbfa;
  --mint-100: #eef7f4;
  --mint-200: #dcebe7;
  --mint-300: #c8ddd7;
  --gold: #c8a75d;
  --muted: #5d6966;
  --line: #d8e4e1;
  --white: #fff;
  --serif: "Noto Serif TC", "Songti TC", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
  --shadow: 0 18px 48px rgba(18, 53, 45, .08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--white); font-family: var(--sans); line-height: 1.72; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
a { color: inherit; }
[hidden] { display: none !important; }
.skip-link { position: fixed; left: 16px; top: -60px; z-index: 99; background: var(--green-900); color: white; padding: 10px 14px; }
.skip-link:focus { top: 12px; }

.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); border-bottom: 1px solid #e5ecea; backdrop-filter: blur(12px); }
.nav { max-width: 1360px; height: 94px; margin: 0 auto; padding: 0 28px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; width: 104px; height: 74px; align-items: center; }
.brand img { width: 100%; height: 68px; object-fit: contain; }
.nav-links { display: flex; align-items: center; gap: clamp(20px, 2.6vw, 42px); font-family: var(--serif); font-weight: 700; color: var(--green-950); }
.nav-links a { text-decoration: none; white-space: nowrap; }
.nav-links a:not(.btn):hover { color: var(--green-600); }
.menu-toggle { display: none; background: var(--mint-100); color: var(--green-900); border: 1px solid var(--line); border-radius: 7px; padding: 10px 15px; font-weight: 800; }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 11px 24px; border: 1px solid var(--green-800); border-radius: 6px; background: var(--green-800); color: var(--white); font-weight: 850; text-decoration: none; cursor: pointer; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(18, 53, 45, .15); }
.btn.secondary { background: var(--white); color: var(--green-800); }
.btn:focus-visible, button:focus-visible, a:focus-visible { outline: 3px solid rgba(66, 122, 107, .28); outline-offset: 3px; }
.nav-cta { min-height: 46px; padding-inline: 21px; }

.hero { position: relative; min-height: 650px; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(310px, .58fr); gap: 8vw; align-items: center; max-width: 1360px; margin: 0 auto; padding: 76px 58px 64px; }
.hero::before { content: ""; position: absolute; z-index: -2; inset: 0 -25vw 0 31%; background: radial-gradient(circle at 58% 48%, rgba(220,235,231,.78), rgba(255,255,255,0) 56%); }
.hero-copy { max-width: 790px; }
.eyebrow { margin: 0 0 22px; color: var(--green-800); font-weight: 850; letter-spacing: .04em; }
.eyebrow::before { content: ""; display: inline-block; width: 42px; height: 2px; margin: 0 14px 5px 0; background: #9fc6bc; }
h1, h2, h3 { font-family: var(--serif); color: var(--green-950); margin-top: 0; }
.hero h1 { margin-bottom: 26px; font-size: clamp(50px, 5.3vw, 80px); line-height: 1.22; letter-spacing: -.035em; font-weight: 900; }
.hero h1::after { content: ""; display: block; width: 48px; height: 2px; background: var(--gold); margin-top: 26px; }
.lead { max-width: 720px; margin: 0 0 28px; font-size: clamp(18px, 1.5vw, 22px); line-height: 1.8; color: #35413e; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
blockquote { margin: 40px 0 0; font-family: var(--serif); color: var(--green-950); font-size: clamp(22px, 2vw, 30px); font-weight: 700; }
blockquote::before { content: "“"; color: var(--gold); font-size: 58px; line-height: 0; margin-right: 12px; vertical-align: -.2em; }
.progress-card { position: relative; z-index: 1; background: rgba(247,251,250,.84); border: 1px solid var(--mint-300); border-radius: 10px; padding: 26px; box-shadow: var(--shadow); }
.progress-heading { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--line); }
.progress-heading h2 { font-family: var(--sans); font-size: 20px; }
.progress-heading span { color: #76ac9f; font-size: 25px; }
.progress-ring { --progress: 0deg; width: 210px; aspect-ratio: 1; margin: 30px auto; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--green-800) var(--progress), var(--mint-200) 0); }
.progress-ring::before { content: ""; position: absolute; width: 166px; aspect-ratio: 1; border-radius: 50%; background: var(--mint-50); }
.progress-ring > div { position: relative; z-index: 1; text-align: center; color: var(--green-900); }
.progress-ring strong { font-family: var(--serif); font-size: 38px; }
.progress-ring span { font-family: var(--serif); font-size: 20px; }
.progress-ring small { display: block; margin-top: 4px; color: var(--muted); font-size: 14px; }
.time-estimate { padding-top: 18px; border-top: 1px solid var(--line); text-align: center; color: var(--muted); }
.thread-line { position: absolute; z-index: -1; right: -60px; top: 60px; width: 390px; opacity: .75; }
.thread-line path { fill: none; stroke: #65a899; stroke-width: 1.4; }

.stage-overview { background: var(--mint-50); border-block: 1px solid var(--line); padding: 48px max(28px, calc((100vw - 1244px) / 2)); }
.section-kicker { display: flex; gap: 28px; align-items: baseline; margin-bottom: 34px; }
.section-kicker h2 { margin: 0; font-family: var(--sans); font-size: 21px; }
.section-kicker p { margin: 0; padding-left: 24px; border-left: 1px solid var(--mint-300); color: var(--muted); }
.stage-track { list-style: none; display: grid; grid-template-columns: repeat(9, 1fr); padding: 0; margin: 0; }
.stage-track li { position: relative; padding-right: 18px; }
.stage-track li:not(:last-child)::after { content: ""; position: absolute; left: 51px; right: 15px; top: 23px; height: 1px; background: var(--green-600); }
.stage-number { width: 46px; height: 46px; display: grid; place-items: center; position: relative; z-index: 1; border: 1px solid var(--green-800); border-radius: 50%; background: var(--mint-50); color: var(--green-900); font-weight: 850; }
.stage-track h3 { margin: 16px 0 4px; font-family: var(--sans); font-size: 18px; }
.stage-track p { margin: 0; max-width: 145px; color: var(--muted); font-size: 13px; line-height: 1.6; }

.roadmap { max-width: 1244px; margin: 0 auto; padding: 90px 28px 104px; }
.roadmap-head { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 32px; }
.roadmap-head h2 { margin: 0; font-size: clamp(32px, 3vw, 46px); line-height: 1.28; }
.roadmap-note { max-width: 330px; margin: 0; color: var(--muted); line-height: 1.7; text-align: right; }
.filter-tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--line); }
.filter-tabs button { padding: 11px 17px; border: 0; border-bottom: 2px solid transparent; background: none; color: var(--muted); font-weight: 800; cursor: pointer; }
.filter-tabs button.active { color: var(--green-900); border-bottom-color: var(--green-800); }
.roadmap-table { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.stage-group { display: grid; grid-template-columns: 210px minmax(0, 1fr); border-bottom: 1px solid var(--line); }
.stage-group:last-child { border-bottom: 0; }
.stage-label { position: relative; background: var(--mint-50); padding: 24px 22px; border-right: 1px solid var(--line); }
.stage-label span { color: var(--muted); font-size: 12px; font-weight: 800; }
.stage-label h3 { margin: 4px 0 0; font-family: var(--serif); font-size: 28px; }
.stage-label p { margin: 2px 0 0; color: var(--muted); font-size: 13px; }
.lesson-row { min-height: 66px; display: grid; grid-template-columns: 72px minmax(0, 1fr) 120px 94px; align-items: center; padding: 0 18px; border-bottom: 1px solid #e7eeec; cursor: pointer; transition: background .2s ease; }
.lesson-row:last-child { border-bottom: 0; }
.lesson-row:hover { background: var(--mint-50); }
.lesson-row.is-complete { background: rgba(238,247,244,.6); }
.lesson-row[hidden] { display: none; }
.lesson-num { font-family: var(--serif); color: var(--green-900); font-size: 20px; font-weight: 900; }
.lesson-title { font-family: var(--serif); color: var(--green-950); font-size: 18px; font-weight: 700; }
.lesson-time { color: var(--muted); font-size: 13px; }
.lesson-access { justify-self: end; padding: 5px 9px; border: 1px solid var(--mint-300); border-radius: 999px; color: var(--green-800); background: var(--mint-50); font-size: 11px; font-weight: 850; white-space: nowrap; }
.lesson-row.is-locked .lesson-title { color: #66736f; }
.lesson-row.is-locked .lesson-access { color: #6f6a60; background: #f5f2eb; border-color: #ddd6c8; }
.lesson-row.is-locked .lesson-access::before { content: "🔒 "; font-size: 10px; }
.check-button { width: 24px; height: 24px; padding: 0; display: grid; place-items: center; border: 1px solid #71817d; border-radius: 3px; background: white; color: white; cursor: pointer; }
.is-complete .check-button { background: var(--green-800); border-color: var(--green-800); }
.finish-band { padding: 86px max(28px, calc((100vw - 1100px) / 2)); text-align: center; color: white; background: var(--green-950); }
.finish-band .eyebrow { color: #cde2dd; }
.finish-band .eyebrow::before { background: #83b2a7; }
.finish-band h2 { margin: 0 auto 18px; max-width: 900px; color: white; font-size: clamp(32px, 4vw, 52px); line-height: 1.35; }
.finish-band > p:not(.eyebrow) { max-width: 760px; margin: 0 auto 28px; color: #dce9e6; }
.finish-band .btn { background: white; color: var(--green-950); border-color: white; }
.finish-band .course-price { display: block; margin: 0 0 18px; color: white; font-family: var(--serif); font-size: clamp(28px, 3vw, 38px); }
.finish-band .course-buy { min-width: min(100%, 300px); }
.finish-band small { display: block; margin-top: 13px; color: #bcd1cc; }
.course-buy:disabled,
[data-course-buy]:disabled { cursor: not-allowed; opacity: .58; transform: none; box-shadow: none; }

.lesson-view { min-height: calc(100vh - 94px); display: grid; grid-template-columns: 300px minmax(480px, 760px) 240px; justify-content: center; align-items: start; }
.lesson-catalog { position: sticky; top: 94px; height: calc(100vh - 94px); overflow: auto; border-right: 1px solid var(--line); padding: 30px 22px 48px; background: white; }
.catalog-back, .text-button { border: 0; padding: 0; background: none; color: var(--green-900); font-weight: 850; cursor: pointer; }
.catalog-progress { display: flex; flex-direction: column; padding: 27px 0 18px; border-bottom: 1px solid var(--line); }
.catalog-progress span { color: var(--muted); font-size: 13px; }
.catalog-progress strong { font-family: var(--serif); color: var(--green-950); }
#catalog-list { padding-top: 16px; }
.catalog-link { width: 100%; display: grid; grid-template-columns: 36px minmax(0,1fr) 19px; align-items: center; gap: 4px; text-align: left; padding: 10px 9px; border: 0; border-radius: 7px; background: transparent; color: var(--ink); cursor: pointer; }
.catalog-link:hover { background: var(--mint-50); }
.catalog-link.active { background: var(--mint-100); color: var(--green-900); font-weight: 800; }
.catalog-link .small-check { width: 14px; height: 14px; border: 1px solid #91a29e; border-radius: 50%; }
.catalog-link.done .small-check { background: var(--green-800); box-shadow: inset 0 0 0 3px white; }
.catalog-access { justify-self: end; color: var(--muted); font-size: 10px; font-weight: 850; }
.catalog-link.is-locked .catalog-title { color: #69736f; }
.catalog-title { font-size: 13px; line-height: 1.35; }
.lesson-article { min-width: 0; padding: 56px 54px 110px; }
.lesson-breadcrumb { color: var(--muted); font-size: 14px; font-weight: 800; }
.lesson-part { margin: 6px 0 8px; color: var(--green-600); font-size: 14px; font-weight: 800; }
.lesson-article h1 { margin: 8px 0 15px; font-size: clamp(44px, 5vw, 66px); line-height: 1.22; letter-spacing: -.025em; }
.lesson-lead { margin: 0 0 30px; color: #3c4744; font-size: 20px; }
.lesson-intro { margin: 34px 0 46px; padding: 28px 30px 30px; border-left: 4px solid var(--green-700); background: #f7faf9; }
.lesson-intro .lesson-full-content { font-size: 16px; line-height: 1.8; }
.lesson-intro .lesson-full-content > h2:first-child { margin: 0 0 14px; font-size: 25px; }
.lesson-intro .lesson-full-content h3 { margin: 24px 0 10px; font-size: 18px; }
.lesson-intro .lesson-full-content ul { margin-bottom: 0; }
.lesson-source-meta { margin: 0 0 30px; padding-bottom: 18px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 13px; font-weight: 800; letter-spacing: .04em; }
.lesson-full-content { color: #27312f; font-size: 16.5px; line-height: 1.9; }
.lesson-full-content h2,
.lesson-full-content h3,
.lesson-full-content h4 { scroll-margin-top: 116px; }
.lesson-full-content h2 { margin: 58px 0 20px; font-size: 31px; line-height: 1.42; }
.lesson-full-content h3 { margin: 44px 0 16px; font-size: 24px; line-height: 1.5; }
.lesson-full-content h4 { margin: 34px 0 12px; font-size: 19px; }
.lesson-full-content p { margin: 0 0 18px; }
.lesson-full-content ul,
.lesson-full-content ol { margin: 0 0 24px; padding-left: 1.5em; }
.lesson-full-content li { margin: 7px 0; padding-left: .2em; }
.lesson-full-content li > ul,
.lesson-full-content li > ol { margin-top: 8px; margin-bottom: 8px; }
.lesson-full-content strong { color: var(--green-950); }
.lesson-full-content blockquote { margin: 26px 0; padding: 16px 20px; border-left: 3px solid #83b2a7; background: var(--mint-50); color: #42504d; font-family: var(--sans); font-size: 15px; font-weight: 500; }
.lesson-full-content blockquote::before { display: none; }
.lesson-full-content pre,
.markdown-fallback { margin: 22px 0 28px; padding: 18px 20px; overflow-x: auto; border: 1px solid var(--line); border-radius: 7px; background: #f6f9f8; color: #17352e; font: 14px/1.75 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; white-space: pre-wrap; }
.lesson-full-content code { padding: .14em .35em; border-radius: 4px; background: var(--mint-100); font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; font-size: .9em; }
.lesson-full-content pre code { padding: 0; background: transparent; font-size: inherit; }
.lesson-full-content table { display: block; width: 100%; margin: 24px 0 32px; overflow-x: auto; border-collapse: collapse; font-size: 14px; line-height: 1.65; }
.lesson-full-content th,
.lesson-full-content td { min-width: 120px; padding: 11px 13px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.lesson-full-content th { background: var(--mint-100); color: var(--green-950); font-weight: 850; }
.lesson-full-content hr { height: 1px; margin: 48px 0; border: 0; background: var(--line); }
.lesson-preview-content { position: relative; }
.preview-fade { height: 150px; margin-top: -42px; position: relative; z-index: 1; display: grid; align-content: end; gap: 11px; padding: 0 4px 12px; background: linear-gradient(to bottom, rgba(255,255,255,0), #fff 58%); }
.preview-fade span { display: block; height: 10px; border-radius: 999px; background: #e9efed; }
.preview-fade span:nth-child(2) { width: 87%; }
.preview-fade span:nth-child(3) { width: 64%; }
.lesson-paywall-inline { margin-top: 8px; padding: 34px; border: 1px solid var(--mint-300); border-radius: 12px; background: linear-gradient(145deg, #f4faf8, #edf6f2); text-align: center; }
.lesson-paywall-inline .eyebrow { margin-bottom: 14px; }
.lesson-paywall-inline .eyebrow::before { display: none; }
.lesson-paywall-inline h2 { margin: 0 0 14px; font-size: 30px; line-height: 1.4; }
.lesson-paywall-inline p:not(.eyebrow) { margin: 0 auto 22px; max-width: 540px; color: var(--muted); line-height: 1.8; }
.lesson-paywall-inline strong { display: block; margin-bottom: 18px; color: var(--green-950); font-family: var(--serif); font-size: 28px; }
.lesson-beginner { margin-top: 64px; padding: 34px 34px 38px; border: 1px solid #b8d4cd; border-radius: 10px; background: linear-gradient(145deg, #f3faf7 0%, #edf6f2 100%); }
.lesson-beginner > .eyebrow { margin-bottom: -28px; color: var(--green-600); }
.lesson-beginner .lesson-full-content > h2:first-child { margin-top: 42px; }
.lesson-expert { margin-top: 42px; padding: 34px 34px 38px; border: 1px solid #cad7d3; border-radius: 10px; background: #fff; box-shadow: 0 16px 36px rgba(18, 53, 45, .06); }
.lesson-expert > .eyebrow { margin-bottom: -28px; color: #7a5b2f; }
.lesson-expert .lesson-full-content > h2:first-child { margin-top: 42px; }
.lesson-expert .lesson-full-content th { background: #f4f0e8; }
.lesson-example { margin-top: 58px; padding: 26px 28px 28px; border: 1px solid #b8d4cd; border-radius: 8px; background: var(--mint-50); }
.example-kicker { margin: 0 0 4px; color: var(--green-600); font-size: 12px; font-weight: 900; letter-spacing: .08em; }
.lesson-example h2 { margin: 0 0 18px; font-size: 25px; }
.example-body { color: #26332f; line-height: 1.85; }
.example-body p { margin: 0 0 15px; }
.example-body p:last-child { margin-bottom: 0; }
.lesson-appendices { margin-top: 72px; padding-top: 10px; border-top: 4px solid var(--green-800); }
.lesson-appendices .lesson-full-content > h1:first-child { margin: 34px 0 22px; font-size: clamp(38px, 4.6vw, 58px); }
.lesson-formula { margin: 30px 0 38px; padding: 20px 24px; border: 1px solid var(--mint-300); border-radius: 7px; background: var(--mint-50); font-family: var(--serif); color: var(--green-950); font-size: clamp(22px, 2.5vw, 32px); font-weight: 700; text-align: center; }
.lesson-formula { word-break: keep-all; overflow-wrap: normal; }
.lesson-section { margin-top: 42px; }
.lesson-section h2 { font-size: 26px; margin-bottom: 13px; }
.lesson-section p { margin: 0 0 14px; }
.lesson-section ul, .lesson-section ol { padding-left: 22px; }
.lesson-section li { margin: 8px 0; }
.step-list { list-style: none; padding: 0 !important; counter-reset: steps; }
.step-list li { counter-increment: steps; display: grid; grid-template-columns: 28px minmax(0,1fr); gap: 10px; }
.step-list li::before { content: counter(steps); width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; background: var(--green-800); color: white; font-size: 12px; font-weight: 800; }
.action-list { list-style: none; padding: 0 !important; }
.action-list label { display: flex; gap: 11px; align-items: flex-start; cursor: pointer; }
.action-list input { margin-top: 7px; accent-color: var(--green-800); }
.credibility-note { margin-top: 42px; padding: 14px 17px; border: 1px solid var(--line); border-radius: 7px; background: var(--mint-50); color: var(--muted); font-size: 14px; }
.lesson-tools { position: sticky; top: 120px; margin-top: 30px; padding: 22px; border: 1px solid var(--line); border-radius: 8px; }
.lesson-tools h2 { padding-bottom: 14px; border-bottom: 1px solid var(--line); font-size: 21px; }
.tool-progress > span { color: var(--muted); font-size: 13px; }
.mini-progress { margin: 13px 0 4px; font-family: var(--serif); color: var(--green-900); }
.mini-progress span { font-size: 31px; font-weight: 900; }
.mini-progress small { font-size: 16px; }
.tool-progress p { color: var(--muted); font-size: 13px; }
.lesson-tools .btn { width: 100%; margin-top: 10px; padding-inline: 10px; }
.lesson-tools .text-button { width: 100%; margin-top: 20px; }
.complete-button.is-complete { background: var(--white); color: var(--green-800); }
.mobile-lesson-top, .mobile-action-bar, .catalog-scrim { display: none; }

footer { display: flex; justify-content: space-between; align-items: center; gap: 30px; padding: 36px max(28px, calc((100vw - 1244px) / 2)); border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
footer > div { display: flex; align-items: center; gap: 12px; }
footer img { width: 86px; height: 44px; object-fit: contain; }

@media (max-width: 1120px) {
  .nav-links { gap: 18px; font-size: 14px; }
}

@media (max-width: 1000px) and (min-width: 861px) {
  .lesson-view { grid-template-columns: 250px minmax(460px, 720px); }
  .lesson-tools { display: none; }
}

@media (max-width: 860px) {
  .nav { height: 76px; padding: 0 20px; }
  .brand { width: 83px; height: 62px; }
  .brand img { height: 58px; }
  .menu-toggle { display: inline-flex; }
  .nav-links { position: absolute; top: 76px; left: 0; right: 0; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 12px 20px 24px; background: white; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 10px 4px; }
  .nav-links .btn { margin-top: 8px; }
  .hero { min-height: auto; grid-template-columns: 1fr; gap: 44px; padding: 58px 28px; }
  .hero h1 { font-size: clamp(45px, 10vw, 66px); }
  .progress-card { max-width: 430px; }
  .thread-line { right: -160px; top: 380px; }
  .stage-track { grid-template-columns: repeat(2, 1fr); gap: 34px 20px; }
  .stage-track li:not(:last-child)::after { display: none; }
  .roadmap-head { align-items: flex-start; flex-direction: column; }
  .stage-group { grid-template-columns: 150px minmax(0,1fr); }
  .lesson-row { grid-template-columns: 58px minmax(0, 1fr) 86px; }
  .lesson-time { display: none; }

  .lesson-view { display: block; min-height: calc(100vh - 76px); padding-top: 78px; }
  .mobile-lesson-top { position: absolute; top: 94px; left: 22px; right: 22px; display: flex; align-items: center; justify-content: space-between; }
  .mobile-lesson-top > span { color: var(--muted); font-size: 17px; letter-spacing: .08em; }
  .mobile-lesson-top .btn { min-height: 42px; padding: 8px 14px; }
  .lesson-article { max-width: 680px; margin: 0 auto; padding: 48px 28px 130px; }
  .lesson-article h1 { font-size: clamp(43px, 12vw, 62px); }
  .lesson-breadcrumb { display: none; }
  .lesson-catalog { position: fixed; z-index: 75; top: 0; left: 0; width: min(86vw, 340px); height: 100vh; transform: translateX(-105%); transition: transform .25s ease; box-shadow: var(--shadow); }
  .lesson-view.catalog-open .lesson-catalog { transform: translateX(0); }
  .catalog-scrim { position: fixed; z-index: 70; inset: 0; border: 0; background: rgba(10,25,21,.32); }
  .lesson-view.catalog-open .catalog-scrim { display: block; }
  .mobile-action-bar { position: fixed; z-index: 55; left: 0; right: 0; bottom: 0; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 12px max(18px, env(safe-area-inset-left)) max(12px, env(safe-area-inset-bottom)); background: rgba(255,255,255,.96); border-top: 1px solid var(--line); box-shadow: 0 -10px 28px rgba(18,53,45,.08); backdrop-filter: blur(14px); }
  .mobile-action-bar > span { min-width: 75px; color: var(--green-900); font-family: var(--serif); font-size: 17px; }
  .mobile-action-bar > span strong { font-size: 29px; }
  .mobile-action-bar .btn { flex: 1; }
}

@media (max-width: 620px) {
  .hero { padding: 48px 21px 52px; }
  .hero h1 { font-size: 48px; line-height: 1.27; }
  .lead { font-size: 17px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  blockquote { font-size: 22px; }
  .progress-card { padding: 20px; }
  .progress-ring { width: 178px; }
  .progress-ring::before { width: 140px; }
  .stage-overview { padding: 40px 21px; }
  .section-kicker { align-items: flex-start; flex-direction: column; gap: 5px; }
  .section-kicker p { padding-left: 0; border-left: 0; }
  .stage-track { grid-template-columns: 1fr 1fr; }
  .roadmap { padding: 66px 16px 80px; }
  .roadmap-head { padding-inline: 5px; }
  .roadmap-note { max-width: none; text-align: left; }
  .filter-tabs { width: 100%; }
  .filter-tabs button { flex: 1; padding-inline: 7px; }
  .roadmap-table { border-inline: 0; border-radius: 0; }
  .stage-group { display: block; }
  .stage-label { padding: 18px; border-right: 0; border-bottom: 1px solid var(--line); }
  .stage-label h3 { display: inline; margin-left: 8px; font-size: 23px; }
  .stage-label p { display: inline; margin-left: 8px; }
  .lesson-row { min-height: 72px; padding: 0 12px; grid-template-columns: 48px minmax(0,1fr) 78px; }
  .lesson-title { font-size: 16px; }
  .lesson-access { padding-inline: 7px; font-size: 10px; }
  .finish-band { padding: 68px 22px; }
  .lesson-article { padding-inline: 21px; }
  .lesson-article h1 { font-size: 45px; }
  .lesson-lead { font-size: 18px; }
  .lesson-full-content { font-size: 16px; line-height: 1.85; }
  .lesson-full-content h2 { margin-top: 46px; font-size: 27px; }
  .lesson-full-content h3 { margin-top: 38px; font-size: 22px; }
  .lesson-intro { margin: 26px 0 38px; padding: 22px 20px 24px; }
  .lesson-intro .lesson-full-content > h2:first-child { font-size: 22px; }
  .lesson-beginner { margin-top: 48px; padding: 24px 20px 28px; }
  .lesson-beginner > .eyebrow { margin-bottom: -20px; }
  .lesson-expert { margin-top: 34px; padding: 24px 20px 28px; }
  .lesson-expert > .eyebrow { margin-bottom: -20px; }
  .lesson-example { margin-top: 46px; padding: 22px 20px; }
  .lesson-paywall-inline { padding: 28px 20px; }
  .lesson-paywall-inline h2 { font-size: 26px; }
  .lesson-formula { padding: 18px 14px; font-size: 22px; line-height: 1.8; }
  footer { align-items: flex-start; flex-direction: column; padding: 28px 22px 96px; }
}

/* 會員狀態列 */
.account-bar { display: flex; align-items: center; justify-content: flex-end; gap: 14px; flex-wrap: wrap; padding: 10px max(28px, calc((100vw - 1360px) / 2)); background: var(--mint-100); border-bottom: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.account-bar .account-state { color: var(--green-800); font-weight: 850; }
.account-bar .account-email { color: var(--green-950); font-weight: 700; }
.account-bar .account-hint { color: var(--muted); }
.account-bar .text-button { color: var(--green-600); text-decoration: underline; }

/* 已解鎖課程列 */
.lesson-row.is-unlocked .lesson-access { color: var(--green-800); background: var(--mint-50); border-color: var(--mint-300); }
.lesson-row.is-unlocked .lesson-access::before { content: "✓ "; font-size: 10px; }
.catalog-link.is-unlocked .catalog-access { color: var(--green-600); }

/* 付費牆次要按鈕（已購買登入解鎖） */
.lesson-paywall-inline .btn.secondary { margin-top: 10px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* 購買區信任要素（finish-band 深綠底內） */
.purchase-trust { max-width: 720px; margin: 40px auto 0; text-align: left; }
.trust-line { text-align: center; color: #cde2dd; font-size: 14px; margin: 0 0 26px; }
.trust-line a { color: #fff; text-decoration: underline; }
.trust-proof { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; margin-bottom: 28px; }
.trust-proof span { flex: 1 1 150px; max-width: 220px; text-align: center; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); border-radius: 12px; padding: 14px 12px; color: #cde2dd; font-size: 13px; font-weight: 700; }
.trust-proof strong { display: block; color: #fff; font-size: 22px; margin-bottom: 2px; }
.trust-quotes { display: grid; gap: 12px; margin-bottom: 28px; }
.trust-quotes blockquote { margin: 0; background: rgba(255,255,255,.07); border-left: 3px solid #83b2a7; border-radius: 0 10px 10px 0; padding: 14px 16px; color: #e8f2ef; font-size: 15px; line-height: 1.75; }
.trust-quotes cite { display: block; margin-top: 8px; color: #9dbcb4; font-style: normal; font-size: 13px; font-weight: 800; }
.trust-faq details { border-bottom: 1px solid rgba(255,255,255,.14); }
.trust-faq summary { cursor: pointer; padding: 14px 4px; color: #fff; font-weight: 800; font-size: 15px; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.trust-faq summary::after { content: "+"; color: #83b2a7; font-size: 20px; font-weight: 900; }
.trust-faq details[open] summary::after { content: "−"; }
.trust-faq details p { margin: 0 0 16px; padding: 0 4px; color: #cde2dd; font-size: 14.5px; line-height: 1.8; }
.trust-faq details p a { color: #fff; text-decoration: underline; }
@media (max-width: 640px) { .trust-proof span { flex-basis: 100%; max-width: none; } }

/* 課綱分頁（每頁 5 堂） */
.lesson-stage-tag { display: inline-block; margin-left: 10px; padding: 2px 9px; border-radius: 999px; background: var(--green-100, #eefaf5); color: var(--green-800, #1d4b40); font-size: 11.5px; font-weight: 800; vertical-align: 2px; }
.roadmap-pager { display: flex; align-items: center; justify-content: center; gap: 14px; padding: 18px 16px; border-top: 1px solid var(--line); background: #fbfdfc; }
.pager-arrow { min-width: 40px; min-height: 40px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--green-800); font-size: 17px; font-weight: 900; cursor: pointer; transition: all .18s ease; }
.pager-arrow:hover:not(:disabled) { border-color: var(--green-500); background: var(--green-100); }
.pager-arrow:disabled { opacity: .35; cursor: default; }
.pager-pages { display: flex; gap: 8px; }
.pager-status { color: var(--muted); font-size: 13px; font-weight: 800; letter-spacing: .02em; }

/* 樣式 A：數字膠囊 */
.pager-a .pager-page { min-width: 40px; min-height: 40px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--muted); font-size: 15px; font-weight: 850; cursor: pointer; transition: all .18s ease; }
.pager-a .pager-page:hover { border-color: var(--green-500); color: var(--green-800); }
.pager-a .pager-page.active { background: var(--green-900, #12352d); border-color: var(--green-900, #12352d); color: #fff; }
.pager-a .pager-status { display: none; }

/* 樣式 B：極簡箭頭＋頁碼文字 */
.pager-b .pager-pages { display: none; }
.pager-b { gap: 22px; }
.pager-b .pager-arrow { border: 0; background: none; font-size: 20px; min-width: 34px; }
.pager-b .pager-arrow:hover:not(:disabled) { background: none; color: var(--green-500); }

/* 樣式 C：分段進度條 */
.pager-c .pager-page { width: 52px; height: 8px; padding: 0; border: 0; border-radius: 999px; background: #dfe9e5; font-size: 0; cursor: pointer; transition: all .18s ease; }
.pager-c .pager-page:hover { background: var(--green-500); }
.pager-c .pager-page.active { background: var(--green-900, #12352d); }
.pager-c .pager-status { font-size: 12.5px; }

/* 互動感：階段卡可點、換頁進場、行懸停、頁碼動效 */
.stage-jump { display: block; width: 100%; padding: 6px 8px 10px; margin: -6px -8px; border: 0; background: none; text-align: left; font: inherit; color: inherit; cursor: pointer; border-radius: 12px; transition: background .22s ease, transform .22s ease; }
.stage-jump:hover { background: var(--green-100, #eefaf5); transform: translateY(-3px); }
.stage-jump:focus-visible { outline: 3px solid var(--green-500); outline-offset: 2px; }
.stage-jump h3 { transition: color .2s ease; }
.stage-jump:hover h3 { color: var(--green-700, #2f6f5f); }
.stage-jump-hint { display: block; margin-top: 8px; color: var(--green-700, #2f6f5f); font-size: 12.5px; font-weight: 850; opacity: 0; transform: translateX(-6px); transition: opacity .22s ease, transform .22s ease; }
.stage-jump:hover .stage-jump-hint, .stage-jump:focus-visible .stage-jump-hint { opacity: 1; transform: translateX(0); }

@keyframes rowIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
#roadmap-list .lesson-row { animation: rowIn .38s ease both; }
#roadmap-list .lesson-row:nth-child(1) { animation-delay: 0s; }
#roadmap-list .lesson-row:nth-child(2) { animation-delay: .05s; }
#roadmap-list .lesson-row:nth-child(3) { animation-delay: .1s; }
#roadmap-list .lesson-row:nth-child(4) { animation-delay: .15s; }
#roadmap-list .lesson-row:nth-child(5) { animation-delay: .2s; }

.lesson-row { position: relative; transition: background .2s ease, transform .2s ease, box-shadow .2s ease; }
.lesson-row::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--green-500, #7fcdb7); transform: scaleY(0); transition: transform .2s ease; }
.lesson-row:hover { transform: translateX(4px); }
.lesson-row:hover::before { transform: scaleY(1); }
.lesson-row::after { content: "→"; position: absolute; right: 14px; top: 50%; transform: translate(-6px, -50%); color: var(--green-700, #2f6f5f); font-weight: 900; opacity: 0; transition: opacity .2s ease, transform .2s ease; }
.lesson-row:hover::after { opacity: 1; transform: translate(0, -50%); }
.lesson-row:hover .lesson-access { opacity: 0; }
.lesson-access { transition: opacity .18s ease; }

@keyframes flashRow { 0% { background: rgba(127, 205, 183, .38); } 100% { background: transparent; } }
.lesson-row.flash { animation: rowIn .38s ease both, flashRow 1.6s ease .4s both; }

.pager-page, .pager-arrow { transition: transform .18s ease, background .18s ease, border-color .18s ease, color .18s ease; }
.pager-a .pager-page:hover { transform: translateY(-2px); }
.pager-a .pager-page.active { animation: popIn .28s ease; }
@keyframes popIn { 0% { transform: scale(.85); } 60% { transform: scale(1.08); } 100% { transform: scale(1); } }
.pager-arrow:active:not(:disabled) { transform: scale(.92); }

@media (prefers-reduced-motion: reduce) {
  #roadmap-list .lesson-row, .lesson-row.flash, .pager-a .pager-page.active { animation: none; }
  .stage-jump, .lesson-row, .stage-jump-hint, .pager-page, .pager-arrow { transition: none; }
}
