/* APICTA 2026 課後頁：課後講義的讀法，單欄為主，紅色只給 ★、批註和首屏句點。 */

.read { max-width: 820px; }

/* ---------- 通關頁 ---------- */
.gate { min-height: 70vh; display: grid; align-items: center; padding-block: 48px 80px; }
.gate-box { max-width: 460px; display: grid; gap: 18px; }
.gate h1 { margin: 0; font-size: clamp(2rem, 6vw, 3rem); line-height: 1.25; }
.gate p { margin: 0; color: var(--ink-2); }
.gate form { display: flex; gap: 10px; flex-wrap: wrap; }
.gate input {
  flex: 1 1 200px; min-width: 0; font: inherit; font-size: 17px;
  padding: 13px 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); color: var(--ink);
}
.gate input:focus-visible { outline: 2px solid var(--ink); outline-offset: 1px; }
.gate button { border: 0; cursor: pointer; font: inherit; }
.gate .error { color: var(--red); font-size: 15px; min-height: 1.6em; }

/* ---------- 頁內導覽 ---------- */
.subnav { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5; background: color-mix(in srgb, var(--page) 92%, transparent); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); }
.subnav .wrap { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-block: 10px; }
.subnav .wrap::-webkit-scrollbar { display: none; }
.subnav a { flex: none; font-size: 14px; text-decoration: none; color: var(--ink-2); padding: 6px 12px; border-radius: 999px; }
.subnav a:hover { background: var(--paper); color: var(--ink); }
.subnav a.on { background: var(--ink); color: var(--paper); }

/* ---------- 首屏 ---------- */
.a-hero { padding-block: clamp(40px, 6vw, 80px); border-bottom: 1px solid var(--line); position: relative; overflow: hidden; }
.a-hero .ghost {
  position: absolute; right: -0.05em; bottom: -0.12em; font-family: var(--latin), sans-serif; font-weight: 800;
  font-size: clamp(6rem, 20vw, 16rem); line-height: 1; letter-spacing: -0.04em; color: var(--ghost); user-select: none;
}
.a-hero .wrap { position: relative; display: grid; gap: 22px; }
.a-hero h1 { margin: 0; font-size: clamp(2.1rem, 5.2vw, 4rem); line-height: 1.25; letter-spacing: -0.02em; }
.a-hero h1 .row { display: block; }
.a-hero h1 .dot { display: inline-block; width: 0.33em; height: 0.33em; border-radius: 50%; background: var(--red); margin-left: 0.1em; }
.a-hero .lead { max-width: 34em; }
.a-hero .btn { justify-self: start; }
.nowrap { white-space: nowrap; }
.a-hero .lead + .lead { margin-top: -8px; }
.closing-note { margin: 0; font-size: 15px; color: var(--ink-2); }
.closing-note b { color: var(--ink); }

.course { font-size: 13px; font-weight: 500; color: var(--ink-3); letter-spacing: 0.04em; }

/* ---------- 三句話 ---------- */
.three { list-style: none; margin: 0; padding: 0; counter-reset: q; border-top: 1px solid var(--ink); }
.three li { display: grid; grid-template-columns: 72px 1fr; gap: 4px 20px; padding-block: 22px; border-bottom: 1px solid var(--line); counter-increment: q; }
.three li::before { content: counter(q); grid-row: span 2; font-family: var(--latin), sans-serif; font-weight: 800; font-size: 2.6rem; line-height: 1; letter-spacing: -0.03em; }
.three h3 { margin: 0; font-size: 1.25rem; line-height: 1.45; }
.three p { margin: 0; color: var(--ink-2); font-size: 16px; }

/* ---------- 評分流程 ---------- */
.flow { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; }
.flow li { background: var(--paper); padding: 18px 14px 20px; display: grid; gap: 8px; align-content: start; min-width: 0; position: relative; }
.flow .num { font-size: 13px; font-weight: 700; color: var(--ink-3); }
.flow b { font-size: 16px; line-height: 1.4; }
.flow span { font-size: 14px; color: var(--ink-2); line-height: 1.6; }
.flow li.key { background: var(--ink); color: var(--paper); }
.flow li.key span, .flow li.key .num { color: color-mix(in srgb, var(--paper) 75%, var(--ink)); }
.pull { margin: 40px 0 0; font-size: clamp(1.3rem, 2.8vw, 1.9rem); font-weight: 700; line-height: 1.45; max-width: 22em; text-wrap: balance; }

.timing { width: 100%; max-width: 520px; border-collapse: collapse; margin-top: 36px; font-size: 16px; }
.timing caption { text-align: left; font-weight: 700; padding-bottom: 10px; }
.timing td { padding: 10px 0; border-bottom: 1px solid var(--line); }
.timing td:last-child { text-align: right; font-family: var(--latin), sans-serif; font-variant-numeric: tabular-nums; white-space: nowrap; }
.aside { margin: 18px 0 0; font-size: 15px; color: var(--ink-2); }

/* ---------- 自我檢查表 ---------- */
.check-tools { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; margin-bottom: 24px; }
.toggle { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; cursor: pointer; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); }
.toggle input { accent-color: var(--ink); width: 16px; height: 16px; }
.progress { font-size: 15px; color: var(--ink-2); }
.progress .num { font-weight: 700; color: var(--ink); }
.reset { font: inherit; font-size: 14px; color: var(--ink-2); background: none; border: 0; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; padding: 8px 4px; }

.check-group + .check-group { margin-top: 28px; }
.check-group h3 { margin: 0 0 6px; font-size: 18px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.check-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.check-list li { border-bottom: 1px solid var(--line); }
.check-list label { display: grid; grid-template-columns: 22px 1fr; gap: 12px; padding: 14px 0; cursor: pointer; font-size: 16px; line-height: 1.65; }
.check-list input { width: 20px; height: 20px; margin: 3px 0 0; accent-color: var(--ink); cursor: pointer; }
.check-list input:checked + span { color: var(--ink-3); }
.star { color: var(--red); font-weight: 700; margin-right: 4px; }
.stars-only .check-list li:not(.is-star) { display: none; }

/* ---------- 常卡的地方 ---------- */
.stuck { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.stuck li { background: var(--paper); padding: 26px 26px 28px; display: grid; gap: 12px; align-content: start; min-width: 0; }
.stuck .num { font-size: 2rem; font-weight: 800; line-height: 1; letter-spacing: -0.03em; }
.stuck h3 { margin: 0; font-size: 18px; line-height: 1.5; }
.stuck .think { margin: 0; font-size: 15px; color: var(--ink-2); padding-left: 12px; border-left: 2px solid var(--line); }
.stuck .fix { margin: 0; font-size: 15px; }
.stuck .fix b { margin-right: 6px; }

/* ---------- 改稿示範 ---------- */
.demos { display: grid; gap: 12px; }
.demo { background: var(--paper); padding: clamp(22px, 3vw, 34px); display: grid; gap: 14px; min-width: 0; }
.demo-head { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; }
.demo-head h3 { margin: 0; font-size: 19px; }
.demo-head span { font-size: 14px; color: var(--ink-3); }
.demo .row { display: grid; grid-template-columns: 76px 1fr; gap: 12px; font-size: 16px; }
.demo .row > b { font-size: 14px; font-weight: 700; color: var(--ink-3); padding-top: 2px; }
.demo .before p { margin: 0; color: var(--ink-2); text-decoration: line-through; text-decoration-color: var(--red); text-decoration-thickness: 1.5px; }
.demo .why p { margin: 0; color: var(--red); }
.demo .after p { margin: 0; font-weight: 500; }

/* ---------- 離上台 ---------- */
.countdown { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.countdown article { background: var(--paper); padding: 24px; min-width: 0; }
.countdown h3 { margin: 0 0 12px; font-size: 18px; }
.countdown ol { margin: 0; padding-left: 1.2em; display: grid; gap: 6px; font-size: 15px; color: var(--ink-2); }

/* ---------- 關於、指導、聲明 ---------- */
.about { display: grid; gap: 10px; max-width: 40em; }
.about h2 { font-size: 22px; }
.about p { margin: 0; color: var(--ink-2); }
.offer-note { margin-top: 40px; background: var(--paper); padding: clamp(22px, 3vw, 32px); display: grid; gap: 12px; max-width: 40em; }
.offer-note h3 { margin: 0; font-size: 19px; }
.offer-note ul { margin: 0; padding-left: 1.2em; display: grid; gap: 4px; font-size: 15px; color: var(--ink-2); }
.offer-note ul b { color: var(--ink); font-family: var(--latin), "Noto Sans TC", sans-serif; }
.offer-note p { margin: 0; font-size: 15px; color: var(--ink-2); }
.btn-outline { background: transparent; color: var(--ink); border: 1px solid var(--ink); justify-self: start; }
.btn-outline:hover { background: var(--ink); color: var(--paper); }
.disclaimer { font-size: 13px; color: var(--ink-3); line-height: 1.8; }
.disclaimer p { margin: 0; }

@media (max-width: 900px) {
  .flow { grid-template-columns: 1fr; }
  .flow li { grid-template-columns: 28px 1fr; column-gap: 12px; }
  .flow li span { grid-column: 2; }
  .stuck, .countdown { grid-template-columns: 1fr; }
  .countdown { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .countdown { grid-template-columns: 1fr; }
  .demo .row { grid-template-columns: 1fr; gap: 2px; }
  .three li { grid-template-columns: 48px 1fr; }
  .three li::before { font-size: 2rem; }
}
