/* ==========================================================================
   宇誠文理家教團 — 全站樣式
   基調:專業沉穩(深墨藍主色 + 米白底 + 深金點綴)
   標題:Noto Serif TC/內文:Noto Sans TC
   ========================================================================== */

/* 手寫字:簡語生活體(AbbrFesFont,SIL OFL 1.1,justfont)的子集,依授權改名;只含網站用到的字。
   新增手寫句子後要重新產生字檔,否則缺字會變成一般字體。授權見 fonts/OFL-LICENSE.txt */
@font-face {
  font-family: "Yucheng Hand";
  src: url("../fonts/yucheng-hand.woff2") format("woff2");
  font-display: swap;
}

:root {
  --ink: #1d2d3f;        /* 深墨藍(主色) */
  --ink-deep: #14212f;   /* 更深的墨藍(hover、頁尾) */
  --paper: #faf8f3;      /* 米白底 */
  --paper-alt: #f2efe7;  /* 暖灰底(區塊交錯) */
  --line: #d9d3c6;       /* 細線 */
  --text: #333a41;       /* 內文 */
  --muted: #6e6a60;      /* 次要文字 */
  --accent: #7f6428;     /* 深金(主要點綴色);2026-11-01 由 #9a7b3a 加深,米白底對比 5.3:1 */
  --pen: #b5352f;        /* 紅筆色:只用在手寫註記 */

  --serif: "Noto Serif TC", "PMingLiU", serif;
  --sans: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.9;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}


.container {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 24px;
}

.container-narrow { max-width: 760px; }

/* ---------- 頁首 ---------- */

.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  padding-bottom: 18px;
}

.brand {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.125rem;
  letter-spacing: 0.02em;
  color: var(--ink);
  text-decoration: none;
}

/* ---------- 主選單(五頁共用) ---------- */

.site-nav { border-top: 1px solid var(--line); }

.nav-list {
  list-style: none;
  display: flex;
  gap: 4px 28px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.nav-list::-webkit-scrollbar { display: none; }

.nav-list a {
  display: block;
  padding: 12px 0 10px;
  font-size: 0.9375rem;
  letter-spacing: 0.02em;
  color: var(--muted);
  text-decoration: none;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

.nav-list a:hover { color: var(--ink); }

.nav-list a[aria-current="page"] {
  color: var(--ink);
  font-weight: 500;
  border-bottom-color: var(--accent);
}

/* 手機:五個選項要一排放得下,不靠橫向捲動 */
@media (max-width: 480px) {
  .nav-list { gap: 4px 10px; justify-content: space-between; }
  .nav-list a { font-size: clamp(0.8125rem, 3.6vw, 0.875rem); letter-spacing: 0; }
}

/* ---------- 子頁標題 ---------- */

.page-hero {
  padding: 64px 0 56px;
  border-bottom: 1px solid var(--line);
  text-align: center;
}

.page-label {
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
  color: var(--accent);
}

.page-title {
  margin-top: 12px;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.5rem, 4.5vw, 2.25rem);
  line-height: 1.6;
  color: var(--ink);
  letter-spacing: 0.04em;
}

.page-lead {
  margin-top: 18px;
  color: var(--muted);
  letter-spacing: 0.04em;
}

/* 區塊底部的「看更多」連結 */
.more-link {
  margin-top: 36px;
  text-align: center;
}

.more-link a {
  color: var(--ink);
  font-weight: 500;
  letter-spacing: 0.02em;
  text-decoration: none;
  border-bottom: 1px solid var(--accent);
  padding-bottom: 3px;
}

.more-link a::after { content: " \2192"; color: var(--accent); }

.more-link a:hover { color: var(--accent); }

.header-cta {
  font-size: 0.875rem;
  letter-spacing: 0.02em;
  color: var(--ink);
  text-decoration: none;
  border: 1px solid var(--ink);
  padding: 8px 20px;
  transition: background 0.2s, color 0.2s;
}

.header-cta:hover { background: var(--ink); color: #fff; }

@media (max-width: 480px) {
  .header-cta { display: none; }
}

/* ---------- 按鈕 ---------- */

.btn {
  display: inline-block;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 14px 44px;
  transition: background 0.2s;
}

.btn-primary {
  background: var(--ink);
  color: #fff;
}

.btn-primary:hover { background: var(--ink-deep); }

.btn-outline {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
}

.btn-outline:hover { background: var(--ink); color: #fff; }

.btn-group {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-group .btn { padding: 14px 32px; }

/* ---------- 區塊 1|Hero ---------- */

.hero {
  padding: 88px 0 96px;
  border-bottom: 1px solid var(--line);
  text-align: center;
}

.hero-eyebrow {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(0.9375rem, 2.6vw, 1.0625rem);
  color: var(--accent);
  letter-spacing: 0.04em;
  margin-bottom: 20px;
}

.hero-title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.5rem, 4.5vw, 2.5rem);
  line-height: 1.7;
  color: var(--ink);
  max-width: 860px;
  margin: 0 auto;
}

.hero-sub {
  margin-top: 28px;
  font-size: clamp(0.9375rem, 2.5vw, 1.0625rem);
  letter-spacing: 0.02em;
  color: var(--muted);
}

/* 信任標語:細框標籤,全站主打 */
.trust-badge {
  display: inline-block;
  margin-top: 36px;
  padding: 12px 28px;
  border: 1px solid var(--accent);
  color: var(--accent);
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1rem, 3vw, 1.1875rem);
  letter-spacing: 0.04em;
}

.hero-cta { margin-top: 40px; }

/* 首屏左右分欄:左文字、右邊小宇與誠誠老師(2026-11-18) */
.hero-split { text-align: left; padding: 72px 0 80px; }
.hero-grid { display: grid; grid-template-columns: 1fr; gap: 48px; align-items: center; }
.hero-split .hero-title { margin: 0; }
.hero-split .cta-choice { justify-content: flex-start; }
.hero-split .cta-option { align-items: flex-start; }
.hero-visual { position: relative; margin: 0; width: 100%; max-width: 460px; justify-self: center;
  border-radius: 12px; overflow: hidden; border: 1px solid rgba(29, 45, 63, 0.08); }
.hero-visual img { display: block; width: 100%; height: auto; }
/* 白板內框位置(依圖實測):左 7.2%、寬 82%、上 8.7%、高 44% */
.hero-board { position: absolute; left: 7.2%; width: 82%; top: 8.7%; height: 44%;
  display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center;
  font-family: "Yucheng Hand", var(--serif); font-size: clamp(1.5rem, 6vw, 2.5rem); line-height: 1.5; color: var(--ink); }
.hero-board span { color: var(--pen); }
/* 師資團隊頁:老師指白板(白板左側留給文字,避開老師的頭) */
.page-hero-split { text-align: left; }
.page-hero-split .page-title { margin-top: 12px; }
.hero-visual-sm { max-width: 380px; }
.hero-board-teacher { left: 8%; width: 52%; top: 7.8%; height: 44.2%; font-size: clamp(1.125rem, 4.4vw, 1.5rem); }
@media (max-width: 899px) { .page-hero-split .hero-text { text-align: center; } }
@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 1fr 1fr; }
  .hero-board { font-size: 2.5rem; }
  .hero-board-teacher { font-size: 1.5rem; }
}
@media (max-width: 899px) {
  .hero-split .cta-choice { justify-content: center; }
  .hero-split .cta-option { align-items: center; }
  .hero-split .hero-text { text-align: center; }
}

.cta-note {
  margin-top: 14px;
  font-size: 0.875rem;
  color: var(--muted);
  letter-spacing: 0.02em;
}

/* ---------- 通用區塊 ---------- */

.section {
  padding: 80px 0;
  border-bottom: 1px solid var(--line);
}

.section-alt { background: var(--paper-alt); }

.section-title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.375rem, 3.5vw, 1.875rem);
  color: var(--ink);
  text-align: center;
  letter-spacing: 0.02em;
  margin-bottom: 32px;
  position: relative;
}

/* 標題下的細短線 */
.section-title::after { content: none; }

.section-title + * { margin-top: 40px; }

.section-closing {
  margin-top: 48px;
  text-align: center;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.0625rem, 3vw, 1.25rem);
  color: var(--ink);
  letter-spacing: 0.02em;
}

.section-cta { text-align: center; margin-top: 32px; }
.section-cta .btn { margin-top: 24px; }
.section-cta .section-closing { margin-top: 0; }

/* ---------- 區塊 2|痛點共鳴 ---------- */

.pain-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

.pain-item {
  padding: 28px 8px;
  border-top: 1px solid var(--line);
}

.pain-item:last-child { border-bottom: 1px solid var(--line); }

.pain-item h3 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.125rem;
  color: var(--ink);
  margin-bottom: 10px;
}

.pain-item p { color: var(--text); }

@media (min-width: 768px) {
  .pain-grid { grid-template-columns: repeat(3, 1fr); }
  .pain-item {
    border-top: none;
    border-left: 1px solid var(--line);
    padding: 8px 32px;
  }
  .pain-item:first-child { border-left: none; padding-left: 8px; }
  .pain-item:last-child { border-bottom: none; }
}

/* ---------- 區塊 3|四大核心優勢 ---------- */

.advantage-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
}

.advantage-item {
  border-top: 2px solid var(--ink);
  padding-top: 20px;
}

.advantage-item h3 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.1875rem;
  color: var(--ink);
  margin-bottom: 10px;
  letter-spacing: 0.04em;
}

@media (min-width: 768px) {
  .advantage-grid { grid-template-columns: repeat(2, 1fr); gap: 48px 56px; }
}

/* 教學實績 */
.record {
  margin-top: 64px;
  padding-top: 40px;
  border-top: 1px solid var(--line);
  text-align: center;
}

.record-title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.125rem;
  color: var(--accent);
  letter-spacing: 0.04em;
  margin-bottom: 28px;
}

.record-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}

.record-item dt {
  font-size: 0.875rem;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.record-item dd { color: var(--ink); line-height: 1.4; margin-top: 4px; }

.record-num {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.75rem, 6vw, 2.25rem);
  letter-spacing: 0.04em;
}

.record-unit {
  font-size: 0.9375rem;
  margin: 0 6px;
}

.record-note {
  margin-top: 28px;
  font-size: 0.75rem;
  color: var(--muted);
}

@media (min-width: 768px) {
  .record-grid { grid-template-columns: repeat(3, 1fr); gap: 0; }
  .record-item { padding: 0 24px; border-left: 1px solid var(--line); }
  .record-item:first-child { border-left: none; }
}

/* ---------- 區塊 4|課程規劃 ---------- */

.subsection-title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--ink);
  letter-spacing: 0.02em;
  margin: 48px 0 20px;
  padding-left: 14px;
  border-left: 3px solid var(--accent);
}

.section-title + .subsection-title { margin-top: 40px; }

.course-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

.course-col h4 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.0625rem;
  color: var(--accent);
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}

.course-list, .pricing-list { list-style: none; }

.course-list li, .pricing-list li {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.course-term {
  font-weight: 600;
  color: var(--ink);
}

.pricing-lead {
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 12px;
}

@media (min-width: 768px) {
  .course-grid { grid-template-columns: 1fr 1fr; gap: 64px; }
}

.course-subtitle {
  font-size: 0.9375rem;
  letter-spacing: 0.04em;
  color: var(--accent);
  margin-top: -12px;
  margin-bottom: 20px;
}

.course-desc p {
  margin-bottom: 14px;
}

.course-desc p:last-child { margin-bottom: 0; }

.course-cta-buttons { margin-top: 24px; }

/* ---------- 區塊 4.5|學習諮詢 ---------- */

.consult-lead {
  text-align: center;
  color: var(--muted);
  letter-spacing: 0.02em;
  margin-top: -24px;
}

.consult-card {
  margin-top: 36px;
  background: #fff;
  border: 1px solid var(--line);
  border-top: 2px solid var(--accent);
  padding: 32px 28px 30px;
}

.consult-name {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.3125rem;
  color: var(--ink);
  letter-spacing: 0.02em;
}

.consult-role {
  display: inline-block;
  margin-top: 6px;
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
  color: var(--accent);
  border-bottom: 1px solid var(--accent);
  padding-bottom: 2px;
}

.consult-edu {
  margin-top: 10px;
  font-size: 0.875rem;
  color: var(--muted);
}

.consult-body { margin-top: 20px; }

.consult-body p {
  font-size: 0.9375rem;
  line-height: 1.9;
  margin-bottom: 14px;
}

.consult-body p:last-child { margin-bottom: 0; }

@media (min-width: 768px) {
  .consult-card { padding: 40px 44px 38px; }
}

/* ---------- 區塊 5|師資陣容 ---------- */

.teacher-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.teacher-card {
  background: #fff;
  border: 1px solid var(--line);
  padding: 28px 28px 26px;
}

.teacher-card .teacher-name {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.1875rem;
  color: var(--ink);
  letter-spacing: 0.04em;
}

.teacher-card .teacher-subject {
  display: inline-block;
  margin-top: 6px;
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
  color: var(--accent);
  border-bottom: 1px solid var(--accent);
  padding-bottom: 2px;
}

.teacher-card .teacher-bio {
  margin-top: 14px;
  font-size: 0.9375rem;
  line-height: 1.85;
  color: var(--text);
}

.teacher-note {
  margin-top: 28px;
  text-align: center;
  font-size: 0.875rem;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.teacher-noscript {
  text-align: center;
  color: var(--muted);
}

@media (min-width: 640px) {
  .teacher-grid { grid-template-columns: repeat(2, 1fr); }
}

/* 首頁師資預覽 */
.teacher-mini-grid {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  border-top: 1px solid var(--line);
}

.teacher-mini {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2px 14px;
  align-items: baseline;
  padding: 16px 4px;
  border-bottom: 1px solid var(--line);
}

.teacher-mini-name {
  font-family: var(--serif);
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.04em;
}

.teacher-mini-subject {
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
  color: var(--accent);
}

.teacher-mini-line {
  grid-column: 1 / -1;
  font-size: 0.875rem;
  color: var(--muted);
}

@media (min-width: 768px) {
  .teacher-mini-grid { grid-template-columns: 1fr 1fr; column-gap: 48px; }
}

@media (min-width: 960px) {
  .teacher-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- 區塊 6|試教流程 ---------- */

.step-grid {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

.step-item {
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.step-label {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0.04em;
  color: var(--accent);
}

.step-item h3 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.125rem;
  color: var(--ink);
  margin: 8px 0 8px;
}

.step-item p { font-size: 0.9375rem; }

@media (min-width: 768px) {
  .step-grid { grid-template-columns: repeat(4, 1fr); gap: 32px; }
}

/* ---------- 區塊 6.5|免費資料 ---------- */

.leadmag {
  border: 1px solid var(--accent);
  background: #fff;
  padding: 40px 32px 36px;
  text-align: center;
}

.leadmag-label {
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
  color: var(--accent);
}

.leadmag-title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.25rem, 4vw, 1.625rem);
  color: var(--ink);
  letter-spacing: 0.02em;
  margin-top: 10px;
}

.leadmag-body {
  margin-top: 24px;
  text-align: left;
}

.leadmag-body p {
  font-size: 0.9375rem;
  margin-bottom: 14px;
}

.leadmag-body p:last-child { margin-bottom: 0; }

.leadmag-btn { margin-top: 28px; }

/* 免費資源頁:資料目錄 */
.toc-list {
  list-style: none;
  margin-top: 28px;
  text-align: left;
  border-top: 1px solid var(--line);
}

.toc-list li {
  display: flex;
  gap: 14px;
  padding: 12px 4px;
  border-bottom: 1px solid var(--line);
  font-size: 0.9375rem;
  color: var(--ink);
}

.toc-num {
  flex: none;
  width: 1.5em;
  font-family: var(--serif);
  font-weight: 600;
  color: var(--accent);
}

/* 免費資源頁:試讀 */
.article-lead {
  text-align: center;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.error-list { display: grid; gap: 20px; }

.error-item {
  background: #fff;
  border: 1px solid var(--line);
  padding: 28px 28px 24px;
}

.error-num {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.375rem;
  color: var(--accent);
  line-height: 1;
}

.error-item h3 {
  margin-top: 10px;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.125rem;
  color: var(--ink);
}

.error-item p { margin-top: 10px; font-size: 0.9375rem; }

.error-ask {
  font-family: var(--serif);
  font-weight: 600;
  color: var(--ink);
}

.error-fix {
  padding-top: 12px;
  border-top: 1px dashed var(--line);
  color: var(--muted);
}

.article-note, .pricing-note {
  margin-top: 28px;
  text-align: center;
  font-size: 0.875rem;
  color: var(--muted);
}

.leadmag-note {
  margin-top: 16px;
  font-size: 0.8125rem;
  color: var(--muted);
}

@media (min-width: 768px) {
  .leadmag { padding: 52px 56px 48px; }
}

/* ---------- 區塊 7|常見問題 ---------- */

.faq-list { border-top: 1px solid var(--line); }

.faq-item { border-bottom: 1px solid var(--line); }

.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 4px;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.0625rem;
  color: var(--ink);
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: "+";
  flex: none;
  font-family: var(--sans);
  font-weight: 400;
  font-size: 1.25rem;
  line-height: 1;
  color: var(--accent);
  transition: transform 0.2s;
}

.faq-item[open] summary::after { content: "\2212"; } /* − 減號 */

.faq-answer { padding: 0 4px 22px; }
.faq-answer p { color: var(--text); }

/* ---------- 區塊 8|最終 CTA ---------- */

.final-title { margin-bottom: 8px; }

.final-sub {
  text-align: center;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.form-embed {
  margin-top: 40px;
  border: 1px solid var(--line);
  background: #fff;
  padding: 12px;
}

.form-embed iframe {
  display: block;
  width: 100%;
  height: 1150px;
  border: 0;
}

.form-fallback {
  margin-top: 16px;
  text-align: center;
  font-size: 0.875rem;
  color: var(--muted);
}

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

.site-footer {
  background: var(--ink-deep);
  color: rgba(255, 255, 255, 0.78);
  text-align: center;
  padding: 48px 0;
  font-size: 0.875rem;
  letter-spacing: 0.02em;
  line-height: 2.1;
}

.footer-brand {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1rem;
  color: #fff;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.site-footer a:hover { color: #fff; }

.footer-links { margin: 6px 0; }

.footer-since {
  margin-top: 10px;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.55);
}

/* ---------- 手機版底部浮動按鈕列 ---------- */

.mobile-cta-bar {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 100;
  gap: 0;
  transition: opacity 0.25s, transform 0.25s;
}

.mobile-cta-bar.is-hidden {
  opacity: 0;
  transform: translateY(100%);
  pointer-events: none;
}

.mobile-cta-btn {
  flex: 1;
  display: block;
  text-align: center;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9375rem;
  letter-spacing: 0.04em;
  white-space: nowrap;
  padding: 16px 8px;
}

.mobile-cta-line {
  background: var(--ink);
  color: #fff;
}

.mobile-cta-form {
  background: var(--paper);
  color: var(--ink);
  border-top: 1px solid var(--line);
}

@media (max-width: 767px) {
  body { padding-bottom: 52px; }
  .mobile-cta-bar { display: flex; }
  .section { padding: 60px 0; }
  .hero { padding: 64px 0 72px; }
}

/* ---------- 2026-10-21 去模板感改版 ---------- */

/* 手寫紅筆註記 */
.hand-note {
  margin-top: 40px;
  text-align: center;
  font-family: "Yucheng Hand", var(--serif);
  font-size: clamp(1.375rem, 4vw, 1.75rem);
  color: var(--pen);
  transform: rotate(-1.5deg);
}

/* 兩個按鈕+分流說明 */
.cta-choice {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}
.cta-option { display: flex; flex-direction: column; align-items: center; }
.cta-option .btn { min-width: 200px; text-align: center; padding: 14px 28px; }
.cta-hint {
  margin-top: 8px;
  font-size: 0.8125rem;
  color: var(--muted);
  letter-spacing: 0.04em;
}
.section-cta .cta-choice { margin-top: 8px; }

/* 區塊副標 */
.section-lead {
  text-align: center;
  color: var(--muted);
  letter-spacing: 0.04em;
  margin-top: -16px;
}
.section-title + .section-lead { margin-top: 24px; }
.section-lead + * { margin-top: 36px; }

/* 我們怎麼教 */
.method-list {
  list-style: none;
  counter-reset: method;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 1px solid var(--line);
}
.method-item {
  counter-increment: method;
  display: grid;
  grid-template-columns: 3rem 1fr;
  column-gap: 12px;
  padding: 24px 4px;
  border-bottom: 1px solid var(--line);
}
.method-item::before {
  content: counter(method);
  grid-row: span 2;
  font-family: "Yucheng Hand", var(--serif);
  font-size: 2.25rem;
  line-height: 1;
  color: var(--pen);
}
.method-item h3 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.1875rem;
  color: var(--ink);
}
.method-item p { margin-top: 6px; }
@media (min-width: 768px) {
  .method-list { grid-template-columns: 1fr 1fr; column-gap: 56px; }
}

/* 免費資料(首頁) */
.freebie {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  align-items: center;
}
.freebie-title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.375rem, 4vw, 1.75rem);
  color: var(--ink);
  margin: 8px 0 18px;
}
.freebie-text p + p { margin-top: 12px; }
.freebie-btns {
  margin-top: 26px;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.text-link {
  color: var(--ink);
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid var(--accent);
  padding-bottom: 2px;
}
.text-link::after { content: " \2192"; color: var(--accent); }
.freebie .leadmag-note { margin-top: 14px; }
.freebie-pages { position: relative; height: 300px; }
.freebie-pages img {
  position: absolute;
  width: 46%;
  max-width: 240px;
  height: auto;
  box-shadow: 0 6px 18px rgba(20, 33, 47, 0.14);
  border: 1px solid var(--line);
}
.freebie-pages img:first-child { left: 2%; top: 10px; transform: rotate(-4deg); }
.freebie-pages img:last-child { left: 50%; top: 30px; transform: rotate(3deg); }
@media (min-width: 768px) {
  .freebie { grid-template-columns: 1.1fr 1fr; gap: 56px; }
  .freebie-pages { height: 400px; }
}

/* 老師的紅筆 */
.redpen-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.redpen-grid img {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid var(--line);
}
@media (max-width: 640px) {
  .redpen-grid { grid-template-columns: 1fr 1fr; }
  .redpen-grid img:last-child { display: none; }
}

/* 手機不顯示嵌入表單,改用按鈕 */
#contact .form-embed { margin-top: 48px; }
@media (max-width: 767px) {
  #contact .form-embed { display: none; }
}

/* ---------- 學習專欄 ---------- */

.page-label a { color: inherit; text-decoration: none; }
.page-label a:hover { text-decoration: underline; }

.article-title { font-size: clamp(1.375rem, 4vw, 2rem); }

.article-body > p { margin-bottom: 18px; }

.article-body h2 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.1875rem, 3vw, 1.375rem);
  color: var(--ink);
  letter-spacing: 0.04em;
  margin: 44px 0 16px;
  padding-left: 14px;
  border-left: 3px solid var(--accent);
}

.article-points { margin: 0 0 18px 1.4em; }
.article-points li { margin-bottom: 10px; padding-left: 4px; }
.article-points b { color: var(--ink); }

.article-facts {
  margin-top: 40px;
  background: var(--paper-alt);
  padding: 20px 24px;
  font-size: 0.9375rem;
}
.article-facts p + p { margin-top: 4px; }
.article-facts b { color: var(--ink); }
.article-facts-note { font-size: 0.8125rem; color: var(--muted); }

.article-sign {
  margin-top: 40px;
  text-align: right;
  font-family: var(--serif);
  font-weight: 600;
  color: var(--ink);
  font-size: 0.9375rem;
}

.article-related {
  margin-top: 14px;
  font-family: var(--serif);
  font-weight: 600;
  color: var(--ink);
  font-size: 1.0625rem;
  line-height: 1.8;
}

.article-more { margin-top: 56px; }
.article-more-title {
  font-family: var(--serif);
  font-size: 1.0625rem;
  color: var(--ink);
  margin-bottom: 8px;
}
.article-more ul, .article-mini-list { list-style: none; border-top: 1px solid var(--line); }
.article-more li, .article-mini-list li { border-bottom: 1px solid var(--line); }
.article-more a, .article-mini-list a {
  display: block;
  padding: 14px 4px;
  color: var(--ink);
  text-decoration: none;
}
.article-more a:hover, .article-mini-list a:hover { color: var(--accent); }

.article-list { list-style: none; display: grid; gap: 20px; }
.article-card a {
  display: block;
  background: #fff;
  border: 1px solid var(--line);
  padding: 26px 28px;
  text-decoration: none;
  transition: border-color 0.2s;
}
.article-card a:hover { border-color: var(--accent); }
.article-card-label { display: block; font-size: 0.8125rem; letter-spacing: 0.04em; color: var(--accent); }
.article-card-title {
  display: block;
  margin-top: 8px;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.1875rem;
  line-height: 1.6;
  color: var(--ink);
}
.article-card-desc { display: block; margin-top: 8px; font-size: 0.9375rem; color: var(--muted); }

/* ==========================================================================
   捲動進場動畫(僅首頁,body[data-reveal])
   - 只在 JS 啟用且使用者未開「減少動態效果」時生效;否則內容照常顯示
   - 只用 opacity / transform,不影響版面與 CLS
   ========================================================================== */
@keyframes hero-rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: no-preference) {
  body[data-reveal] .hero-eyebrow,
  body[data-reveal] .hero-title,
  body[data-reveal] .hero-sub,
  body[data-reveal] .trust-badge,
  body[data-reveal] .hero-cta {
    animation: hero-rise 0.6s ease-out both;
  }
  body[data-reveal] .hero-title { animation-delay: 0.08s; }
  body[data-reveal] .hero-sub { animation-delay: 0.16s; }
  body[data-reveal] .trust-badge { animation-delay: 0.24s; }
  body[data-reveal] .hero-cta { animation-delay: 0.32s; }

  .reveal-ready .reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    transition-delay: var(--reveal-delay, 0s);
  }
  .reveal-ready .reveal.is-in { opacity: 1; transform: none; }

  .teacher-mini { transition: transform 0.2s, box-shadow 0.2s; }
  @media (hover: hover) {
    .teacher-mini:hover { transform: translateY(-3px); box-shadow: 0 6px 16px rgba(23, 37, 61, 0.1); }
  }
}

/* 師資區副標:每個短句不可從中間斷行(手機只在句與句之間換行) */
#teachers .section-lead .nb { display: inline-block; }
