/* =========================================================
   內頁共用樣式（沿用 style.css 的 tokens 與動畫）
   ========================================================= */

/* ---------- Page hero ---------- */
.page-hero {
  position: relative; overflow: hidden;
  padding: calc(var(--header-h) + 40px) 0 110px;
  background:
    radial-gradient(ellipse 55% 60% at 18% 30%, rgba(255, 255, 255, .9), transparent 70%),
    linear-gradient(180deg, #e3f2fd 0%, #eef8ff 60%, #f8fcff 100%);
}
.page-hero .cloud--1 { top: 96px; left: 38%; width: 120px; }
.page-hero .cloud--3 { top: 130px; right: 3%; width: 130px; }
.page-hero__inner { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 32px; }
.page-hero__copy { position: relative; z-index: 1; }
.page-hero__eyebrow {
  display: inline-flex; align-items: center; gap: .5em;
  margin-bottom: 12px; padding: .3em 1em; border-radius: 999px;
  background: #fff; box-shadow: var(--shadow-sm);
  font-size: .95rem; font-weight: 700; color: var(--navy-600); letter-spacing: .06em;
}
.page-hero__eyebrow .ic { width: 22px; height: 22px; }
.page-hero__title {
  font-size: clamp(2rem, 4.4vw, 3.4rem); font-weight: 900; line-height: 1.25;
  color: var(--navy); letter-spacing: .03em; transform: skewX(-6deg); transform-origin: left;
  text-shadow: 0 3px 0 #fff;
  margin-bottom: 16px;
}
.page-hero__lead { max-width: 34em; font-size: 1.08rem; font-weight: 500; color: var(--ink); line-height: 1.9; }
.page-hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 26px; }
.page-hero__visual { position: relative; display: flex; justify-content: center; }
.page-hero__illus { width: min(460px, 100%); overflow: visible; color: #26375a; }
.page-hero .ch-figure { animation: bob 3.6s ease-in-out infinite; }
.ph-float { animation: bubbleFloat 5s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.ph-wave { transform-box: fill-box; transform-origin: 82% 95%; animation: wave 2.4s ease-in-out infinite; }
.page-hero .icon-bubble { animation: bubbleFloat 3.4s ease-in-out infinite; }
.is-loaded .ph-trend { animation: draw 1.4s var(--ease-out) .9s both; }
.js .ph-trend { stroke-dashoffset: 1; }
.page-hero__hills { position: absolute; left: -3%; bottom: -1px; width: 106%; max-width: none; height: 90px; z-index: 2; pointer-events: none; }

.is-loaded .page-hero .hl { background-size: 100% .42em; transition-delay: .75s; }
.page-hero--compact { padding-bottom: 80px; }
.page-hero--compact .page-hero__inner { grid-template-columns: 1fr; }

/* 麵包屑 */
.breadcrumb { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; font-size: .88rem; color: var(--ink-2); }
.breadcrumb a { color: var(--navy-600); font-weight: 700; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb li + li::before { content: "›"; margin-right: 6px; color: var(--blue-300); }

/* ---------- 通用區塊 ---------- */
.section--alt { background: var(--sky-50); }
.section--tight { padding: 48px 0; }
.section-intro { max-width: 760px; margin: -16px auto 40px; text-align: center; color: var(--ink-2); font-size: 1.02rem; }
.ic { width: 48px; height: 48px; color: #26375a; overflow: visible; }

/* 功能卡 */
.feature-grid { display: grid; grid-template-columns: repeat(var(--cols, 3), 1fr); gap: 22px; }
.feature {
  position: relative; padding: 26px 24px;
  background: #fff; border: 2px solid #d4e7f7; border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform .45s var(--ease-out), box-shadow .45s, border-color .3s;
}
.feature:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--blue-300); }
.feature__icon {
  display: grid; place-items: center; width: 68px; height: 68px; margin-bottom: 14px;
  border-radius: 20px; background: #eaf4fd;
  transition: transform .5s var(--ease-back), background-color .3s;
}
.feature:hover .feature__icon { transform: rotate(-6deg) scale(1.06); background: #fff6d6; }
.feature__title { font-size: 1.18rem; font-weight: 900; color: var(--navy); margin-bottom: 6px; }
.feature p { font-size: .95rem; color: var(--ink-2); }
.feature ul { margin-top: 10px; display: grid; gap: 4px; }
.feature li { position: relative; padding-left: 18px; font-size: .92rem; color: var(--ink); }
.feature li::before { content: ""; position: absolute; left: 2px; top: .7em; width: 7px; height: 7px; border-radius: 50%; background: var(--yellow-600); }
.feature li a { color: var(--navy-600); font-weight: 700; }
.feature li a:hover { color: var(--blue); text-decoration: underline; }
.feature__link { display: inline-flex; gap: .3em; margin-top: 14px; font-weight: 700; color: var(--navy-600); }
.feature__link:hover .btn__arrow { transform: translateX(4px); }
.feature__link .btn__arrow, .post-card__more .btn__arrow { line-height: 1; margin-top: 0; }
.feature--center { text-align: center; }
.feature--center .feature__icon { margin-inline: auto; }

/* 流程步驟 */
.steps { position: relative; display: grid; grid-template-columns: repeat(var(--cols, 4), 1fr); gap: 22px; counter-reset: step; }
.steps::before {
  content: ""; position: absolute; left: 8%; right: 8%; top: 30px; height: 3px; border-radius: 3px;
  background: repeating-linear-gradient(90deg, var(--blue-300) 0 10px, transparent 10px 18px);
  transform: scaleX(0); transform-origin: left; transition: transform 1.4s var(--ease-out) .2s;
}
.steps.is-in::before { transform: scaleX(1); }
.step { position: relative; text-align: center; padding: 0 6px; }
.step__num {
  position: relative; z-index: 1;
  display: grid; place-items: center; width: 60px; height: 60px; margin: 0 auto 14px;
  border-radius: 50%; background: var(--yellow); border: 3px solid #fff;
  box-shadow: 0 0 0 2px #26375a, var(--shadow-sm);
  font-size: 1.3rem; font-weight: 900; color: var(--navy);
}
.step__title { font-size: 1.08rem; font-weight: 900; color: var(--navy); margin-bottom: 4px; }
.step p { font-size: .92rem; color: var(--ink-2); }

/* 標籤 */
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.chip {
  display: inline-flex; align-items: center; gap: .45em;
  padding: .5em 1.1em; border-radius: 999px;
  background: #fff; border: 2px solid #d4e7f7;
  font-weight: 700; font-size: .95rem; color: var(--navy);
}
.chip .ic { width: 24px; height: 24px; }

/* 雙欄：圖 + 文 */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.split--reverse > :first-child { order: 2; }
.split__title { font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 900; color: var(--navy); line-height: 1.35; margin-bottom: 14px; transform: skewX(-5deg); transform-origin: left; }
.split p { color: var(--ink-2); margin-bottom: 12px; }

/* 重點清單 */
.checklist { display: grid; gap: 12px; margin-top: 8px; }
.checklist li { display: grid; grid-template-columns: 34px 1fr; gap: 10px; align-items: start; }
.checklist .ic { width: 30px; height: 30px; }
.checklist b { display: block; color: var(--navy); }
.checklist span { font-size: .93rem; color: var(--ink-2); }

/* 數據盒（三指標） */
.metric-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.metric { padding: 24px; border-radius: var(--radius); background: #fff; border: 2px dashed #cfe3f5; }
.metric__no { font-family: var(--font-script); font-size: 2.6rem; line-height: 1; color: var(--blue); }
.metric h3 { margin: 6px 0; font-size: 1.12rem; font-weight: 900; color: var(--navy); }
.metric p { font-size: .93rem; color: var(--ink-2); }

/* ---------- FAQ（原生 details） ---------- */
.faq { max-width: 860px; margin: 0 auto; display: grid; gap: 14px; }
.faq details {
  background: #fff; border: 2px solid #d4e7f7; border-radius: 18px;
  transition: border-color .3s, box-shadow .3s;
}
.faq details[open] { border-color: var(--blue-300); box-shadow: var(--shadow-sm); }
.faq summary {
  position: relative; list-style: none; cursor: pointer;
  padding: 18px 56px 18px 22px; font-weight: 900; color: var(--navy); font-size: 1.04rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "Q"; margin-right: .6em; font-family: var(--font-script); font-size: 1.4em; color: var(--blue); }
.faq summary::after {
  content: ""; position: absolute; right: 22px; top: 50%; width: 22px; height: 22px; margin-top: -11px;
  border-radius: 50%; background:
    linear-gradient(var(--navy), var(--navy)) center / 10px 2px no-repeat,
    linear-gradient(var(--navy), var(--navy)) center / 2px 10px no-repeat, var(--yellow);
  transition: transform .4s var(--ease-back);
}
.faq details[open] summary::after { transform: rotate(135deg); }
.faq__body { padding: 0 22px 20px 52px; color: var(--ink-2); }
.faq details[open] .faq__body { animation: faqIn .45s var(--ease-out); }
@keyframes faqIn { from { opacity: 0; transform: translateY(-6px); } }

/* ---------- 篩選按鈕 ---------- */
.filter { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 32px; }
.filter__btn {
  padding: .5em 1.2em; border-radius: 999px; border: 2px solid #d4e7f7; background: #fff;
  font-weight: 700; font-size: .92rem; color: var(--navy);
  transition: background-color .25s, color .25s, border-color .25s, transform .25s var(--ease-back);
}
.filter__btn:hover { border-color: var(--blue-300); transform: translateY(-2px); }
.filter__btn.is-active { background: var(--navy-600); border-color: var(--navy-600); color: #fff; }
.filter__count { margin-left: .3em; font-size: .8em; opacity: .7; }
[data-filter-item] { transition: opacity .35s, transform .35s var(--ease-out); }
[data-filter-item].is-hiding { opacity: 0; transform: scale(.96); }
[data-filter-item][hidden] { display: none; }

/* ---------- 文章卡 ---------- */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.post-card {
  display: flex; flex-direction: column;
  background: #fff; border: 2px solid #d4e7f7; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .45s var(--ease-out), box-shadow .45s, border-color .3s;
}
.post-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--blue-300); }
.post-card__thumb {
  position: relative; display: grid; place-items: center; height: 132px;
  background: var(--thumb, #eaf4fd);
}
.post-card__thumb::after { content: ""; position: absolute; inset: auto 0 0; height: 18px; background: linear-gradient(transparent, rgba(255, 255, 255, .5)); }
.post-card__thumb .ic { width: 72px; height: 72px; transition: transform .6s var(--ease-back); }
.post-card:hover .post-card__thumb .ic { transform: translateY(-4px) rotate(-6deg) scale(1.08); }
.post-card__body { display: flex; flex-direction: column; flex: 1; padding: 20px 22px 22px; }
.post-card__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 8px; font-size: .82rem; color: var(--ink-2); }
.tag { display: inline-block; padding: .2em .8em; border-radius: 999px; background: #fff3c4; color: #8a5a00; font-weight: 700; font-size: .8rem; }
.post-card__title { font-size: 1.08rem; font-weight: 900; color: var(--navy); line-height: 1.5; margin-bottom: 8px; }
.post-card__title a:hover { color: var(--blue); }
.post-card__excerpt { font-size: .9rem; color: var(--ink-2); flex: 1; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.post-card__more { margin-top: 14px; font-weight: 700; color: var(--navy-600); font-size: .92rem; }
.post-card__more:hover .btn__arrow { transform: translateX(4px); }

/* 精選文章 */
.post-featured {
  display: grid; grid-template-columns: 1fr 1.1fr; gap: 0; margin-bottom: 40px;
  background: #fff; border: 2px solid #d4e7f7; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow);
}
.post-featured__thumb { display: grid; place-items: center; background: linear-gradient(135deg, #e3f1fe, #fff6d6); min-height: 260px; }
.post-featured__thumb .page-hero__illus { width: min(340px, 90%); }
.post-featured__body { padding: 36px 40px; display: flex; flex-direction: column; justify-content: center; }
.post-featured__title { font-size: clamp(1.4rem, 2.4vw, 1.8rem); font-weight: 900; color: var(--navy); line-height: 1.4; margin: 10px 0 12px; }
.post-featured__body p { color: var(--ink-2); margin-bottom: 20px; }

/* ---------- 電子書 ---------- */
.ebook-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px 22px; }
.ebook { display: flex; flex-direction: column; }
.ebook__cover {
  position: relative; aspect-ratio: 3 / 4; margin-bottom: 14px;
  border-radius: 6px 14px 14px 6px; overflow: hidden;
  background: var(--cover, linear-gradient(150deg, #2f74c9, #173f7c));
  box-shadow: inset 10px 0 0 rgba(0, 0, 0, .14), inset 12px 0 0 rgba(255, 255, 255, .16), 0 16px 28px rgba(23, 63, 124, .22);
  color: #fff; padding: 18px 16px 16px 24px;
  display: flex; flex-direction: column;
  transform: perspective(900px) rotateY(0);
  transform-origin: left center;
  transition: transform .6s var(--ease-out), box-shadow .6s;
}
.ebook:hover .ebook__cover { transform: perspective(900px) rotateY(-14deg); box-shadow: inset 10px 0 0 rgba(0, 0, 0, .14), inset 12px 0 0 rgba(255, 255, 255, .16), 18px 20px 32px rgba(23, 63, 124, .28); }
.ebook__cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, rgba(255, 255, 255, .22), transparent 40%); pointer-events: none; }
.ebook__label { font-family: var(--font-script); font-size: 1.15rem; opacity: .9; }
.ebook__cover-title { margin-top: 8px; font-size: 1rem; font-weight: 900; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.ebook__cover .ic { margin-top: auto; align-self: flex-end; width: 58px; height: 58px; background: #fff; border-radius: 16px; padding: 6px; }
.ebook__author { position: absolute; left: 24px; bottom: 18px; font-size: .78rem; opacity: .85; letter-spacing: .08em; }
.ebook__title { font-size: 1rem; font-weight: 900; color: var(--navy); line-height: 1.5; margin-bottom: 6px; }
.ebook__desc { font-size: .86rem; color: var(--ink-2); flex: 1; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 12px; }
.ebook__foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.ebook__audio { display: inline-flex; align-items: center; gap: 4px; font-size: .78rem; font-weight: 700; color: var(--navy-600); }
.ebook__audio .ic { width: 20px; height: 20px; }
.btn--ghost { --bg: #eaf4fd; --fg: var(--navy); box-shadow: none; }
.btn--ghost:hover { --bg: var(--navy-600); --fg: #fff; }
.btn--disabled { --bg: #eef2f6; --fg: #8593a6; box-shadow: none; pointer-events: none; }
.btn .ic { width: 1.3em; height: 1.3em; }

/* ---------- 課程卡 ---------- */
.course-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.course {
  background: #fff; border: 2px solid #d4e7f7; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm);
  transition: transform .45s var(--ease-out), box-shadow .45s;
}
.course:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.course__thumb {
  position: relative; height: 150px; display: grid; place-items: center;
  background: radial-gradient(circle at 30% 30%, #fff, #dcecfb);
}
.course__thumb .ic { width: 70px; height: 70px; }
.course__play {
  position: absolute; right: 16px; bottom: 14px; width: 46px; height: 46px; transition: transform .45s var(--ease-back);
}
.course:hover .course__play { transform: scale(1.15) rotate(-8deg); }
.course__no { position: absolute; left: 16px; top: 12px; font-family: var(--font-script); font-size: 1.6rem; color: var(--navy-600); }
.course__body { padding: 18px 22px 22px; }
.course__title { font-size: 1.04rem; font-weight: 900; color: var(--navy); line-height: 1.5; margin-bottom: 8px; }
.course__body p { font-size: .9rem; color: var(--ink-2); }

/* ---------- 關於 ---------- */
.about-intro { display: grid; grid-template-columns: 360px 1fr; gap: 56px; align-items: start; }
.about-photo { position: sticky; top: 100px; }
.about-photo .blob { aspect-ratio: 1 / 1.05; }
.about-photo figcaption { margin-top: 18px; text-align: center; }
.about-photo .script { transform: none; }
.prose-story p { margin-bottom: 1.1em; color: var(--ink); font-size: 1.04rem; line-height: 2; }
.prose-story p:first-of-type::first-letter { float: left; margin: .1em .12em 0 0; font-size: 3.4em; line-height: .9; font-weight: 900; color: var(--blue); }
.pull-quote {
  position: relative; margin: 30px 0; padding: 26px 30px 26px 70px;
  background: #fff8db; border-radius: var(--radius); font-size: 1.2rem; font-weight: 900; color: var(--navy); line-height: 1.7;
}
.pull-quote::before { content: "“"; position: absolute; left: 20px; top: -6px; font-family: Georgia, serif; font-size: 5rem; color: var(--yellow-600); line-height: 1; }
.badge-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.badge {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px;
  padding: 22px 16px; background: #fff; border-radius: var(--radius); border: 2px solid #d4e7f7;
}
.badge .ic { width: 56px; height: 56px; }
.badge b { color: var(--navy); font-size: 1rem; line-height: 1.45; }
.badge span { font-size: .85rem; color: var(--ink-2); }

/* ---------- 聯絡 ---------- */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 40px; align-items: start; }
.info-list { display: grid; gap: 14px; margin-bottom: 26px; }
.info-card {
  display: grid; grid-template-columns: 56px 1fr; gap: 14px; align-items: center;
  padding: 16px 18px; background: #fff; border: 2px solid #d4e7f7; border-radius: 18px;
  transition: transform .35s var(--ease-out), border-color .3s;
}
a.info-card:hover { transform: translateX(6px); border-color: var(--blue-300); }
.info-card .ic { width: 44px; height: 44px; }
.info-card small { display: block; font-size: .8rem; color: var(--ink-2); }
.info-card b { color: var(--navy); font-size: 1.04rem; word-break: break-all; }
.advice { padding: 24px; border-radius: var(--radius); background: #fff8db; }
.advice h3, .advice__title { font-size: 1.1rem; font-weight: 900; color: var(--navy); margin-bottom: 6px; }
.advice p { font-size: .94rem; color: var(--ink); }

.form-card { padding: 34px 32px; background: #fff; border-radius: var(--radius-lg); border: 2px solid #d4e7f7; box-shadow: var(--shadow); }
.form-card h2 { font-size: 1.5rem; font-weight: 900; color: var(--navy); margin-bottom: 4px; }
.form-card > p { color: var(--ink-2); font-size: .93rem; margin-bottom: 20px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field--full { grid-column: 1 / -1; }
fieldset.field { min-width: 0; }   /* fieldset 預設 min-width: min-content，會撐破手機版欄寬 */
.form-grid > * { min-width: 0; }
.field label { font-weight: 700; font-size: .92rem; color: var(--navy); }
.field label i { font-style: normal; color: var(--pink); margin-left: 2px; }
.field input, .field select, .field textarea {
  width: 100%; padding: .8em 1em; border-radius: 12px;
  border: 2px solid #d4e7f7; background: #f8fbff; color: var(--ink); font: inherit; font-size: .98rem;
  transition: border-color .25s, box-shadow .25s, background-color .25s;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 0; border-color: var(--blue); background: #fff; box-shadow: 0 0 0 4px rgba(42, 125, 225, .15); }
.field.is-invalid input, .field.is-invalid textarea, .field.is-invalid select { border-color: var(--pink); background: #fff6f8; }
.field__error { display: none; font-size: .82rem; color: #c43a5a; }
.field.is-invalid .field__error { display: block; }
.radio-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.radio-chips { position: relative; }
.field .radio-chips input { position: absolute; left: 0; top: 0; width: 1px; height: 1px; padding: 0; opacity: 0; pointer-events: none; }
.radio-chips label {
  padding: .45em 1em; border-radius: 999px; border: 2px solid #d4e7f7; background: #fff;
  font-weight: 700; font-size: .9rem; color: var(--navy); cursor: pointer; transition: all .25s;
}
.radio-chips input:checked + label { background: var(--yellow); border-color: var(--yellow-600); }
.radio-chips input:focus-visible + label { outline: 3px solid var(--blue); outline-offset: 2px; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 20px; }
.form-note { font-size: .82rem; color: var(--ink-2); }
.form-success { display: none; margin-top: 16px; padding: 14px 16px; border-radius: 14px; background: #e9f8ec; color: #24633a; font-weight: 700; }
.form-success.is-shown { display: block; animation: faqIn .5s var(--ease-out); }

/* ---------- 文章 ---------- */
.reading-progress { position: fixed; top: 0; left: 0; z-index: 120; height: 4px; width: 100%; background: var(--yellow); transform: scaleX(0); transform-origin: left; }
.article-head { max-width: 820px; }
.article-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; font-size: .9rem; color: var(--ink-2); }
.article-meta span { display: inline-flex; align-items: center; gap: 6px; }
.article-meta .ic { width: 22px; height: 22px; }
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 56px; align-items: start; }
.toc { position: sticky; top: 96px; padding: 20px; background: #fff; border: 2px solid #d4e7f7; border-radius: 18px; }
.toc h2 { font-size: .95rem; font-weight: 900; color: var(--navy); margin-bottom: 10px; }
.toc ol { display: grid; gap: 4px; counter-reset: toc; }
.toc a { display: block; padding: 6px 10px; border-radius: 10px; font-size: .88rem; color: var(--ink-2); border-left: 3px solid transparent; transition: all .25s; }
.toc a:hover { background: var(--sky-50); color: var(--navy); }
.toc a.is-current { border-left-color: var(--yellow-600); background: #fff8db; color: var(--navy); font-weight: 700; }

.prose { font-size: 1.06rem; line-height: 2; color: var(--ink); }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { margin-top: 2em; font-size: 1.5rem; font-weight: 900; color: var(--navy); line-height: 1.4; scroll-margin-top: 90px; }
.prose h2::before { content: ""; display: inline-block; width: 10px; height: 1.1em; margin-right: .5em; vertical-align: -.15em; border-radius: 3px; background: var(--yellow); }
.prose h3 { margin-top: 1.6em; font-size: 1.18rem; font-weight: 900; color: var(--navy-600); }
.prose ul { padding-left: 0; display: grid; gap: .4em; }
.prose ul li { position: relative; padding-left: 1.3em; }
.prose ul li::before { content: ""; position: absolute; left: .2em; top: .85em; width: 7px; height: 7px; border-radius: 50%; background: var(--blue); }
.prose a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.answer-first { padding: 20px 24px; border-radius: 18px; background: #eaf4fd; border-left: 6px solid var(--blue); }
.answer-first b { color: var(--navy); }
.prose blockquote { margin: 1.6em 0; padding: 20px 26px; border-radius: 18px; background: #fff8db; font-weight: 700; color: var(--navy); }
.table-wrap { overflow-x: auto; border-radius: 16px; border: 2px solid #d4e7f7; }
.prose table { width: 100%; border-collapse: collapse; font-size: .95rem; line-height: 1.7; min-width: 560px; }
.prose th { background: var(--navy-600); color: #fff; text-align: left; padding: 12px 16px; }
.prose td { padding: 12px 16px; border-top: 1px solid #e2edf8; vertical-align: top; }
.prose tr:nth-child(even) td { background: var(--sky-50); }
.author-box {
  display: grid; grid-template-columns: 88px 1fr; gap: 18px; align-items: center;
  margin-top: 48px; padding: 22px; border-radius: var(--radius); background: #fff; border: 2px solid #d4e7f7;
}
.author-box img { width: 88px; height: 88px; border-radius: 50%; object-fit: cover; object-position: 50% 20%; border: 4px solid #fff; box-shadow: var(--shadow-sm); }
.author-box b { color: var(--navy); font-size: 1.05rem; }
.author-box p { font-size: .9rem; color: var(--ink-2); }
.article-cta { margin-top: 32px; padding: 28px; border-radius: var(--radius); background: linear-gradient(120deg, #174a96, #2f86da); color: #fff; }
.article-cta h3 { font-size: 1.3rem; font-weight: 900; margin-bottom: 6px; }
.article-cta p { opacity: .92; margin-bottom: 16px; }

/* ---------- 法律頁 ---------- */
.legal { max-width: 820px; margin: 0 auto; }
.legal h2 { font-size: 1.3rem; }
.legal .updated { font-size: .9rem; color: var(--ink-2); }

/* ---------- 404 ---------- */
.page-404 .page-hero__title { font-size: clamp(2.2rem, 5vw, 3.6rem); }

/* ---------- 頁尾補充 ---------- */
.footer__meta { margin-top: 18px; padding-top: 14px; border-top: 1px dashed var(--sky-200); text-align: center; font-size: .88rem; color: var(--ink-2); }
.footer__meta a:hover { color: var(--blue); }
.footer__meta span { margin: 0 8px; color: var(--sky-200); }
.footer__meta .footer__copy { margin-top: 6px; }

/* ---------- RWD ---------- */
@media (max-width: 1100px) {
  .ebook-grid { grid-template-columns: repeat(3, 1fr); }
  .badge-grid { grid-template-columns: repeat(2, 1fr); }
  .article-layout { grid-template-columns: minmax(0, 1fr); }  /* 1fr 會被表格最小寬度撐開 */
  .toc { position: static; order: -1; }   /* 窄螢幕把目錄放在文章前面 */
}
@media (max-width: 900px) {
  .page-hero { padding-bottom: 80px; }
  .page-hero__inner { grid-template-columns: 1fr; text-align: center; }
  .page-hero__title { transform-origin: center; }
  .page-hero__lead { margin-inline: auto; }
  .page-hero__actions, .breadcrumb { justify-content: center; }
  .page-hero__illus { width: min(340px, 86vw); }
  .feature-grid { --cols: 2 !important; }
  .steps { --cols: 2 !important; row-gap: 32px; }
  .steps::before { display: none; }
  .split, .contact-grid, .about-intro, .post-featured { grid-template-columns: 1fr; }
  .split--reverse > :first-child { order: 0; }
  .about-photo { position: static; max-width: 320px; margin: 0 auto; }
  .post-grid, .course-grid { grid-template-columns: repeat(2, 1fr); }
  .metric-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .feature-grid { --cols: 1 !important; }
  .steps { --cols: 1 !important; }
  .post-grid, .course-grid { grid-template-columns: 1fr; }
  .ebook-grid { grid-template-columns: repeat(2, 1fr); gap: 22px 14px; }
  .ebook__cover { padding: 14px 12px 12px 20px; }
  .ebook__cover-title { font-size: .88rem; }
  .ebook__cover .ic { width: 44px; height: 44px; }
  .ebook__foot { flex-direction: column; align-items: stretch; }
  .badge-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .form-card { padding: 24px 18px; }
  .form-grid { grid-template-columns: 1fr; }
  .post-featured__body { padding: 24px; }
  .faq summary { padding: 16px 50px 16px 16px; font-size: .98rem; }
  .faq__body { padding: 0 16px 18px 16px; }
  .prose { font-size: 1rem; }
  .author-box { grid-template-columns: 64px 1fr; }
  .author-box img { width: 64px; height: 64px; }
  .filter { justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; margin: 0 calc(var(--gutter) * -1) 24px; padding: 4px var(--gutter) 8px; scrollbar-width: none; }
  .filter__btn { flex: 0 0 auto; }
}

/* ---------- 文章內文元件（由 tools/import_wp.py 轉出） ---------- */
.page-hero__title--article { font-size: clamp(1.6rem, 3.4vw, 2.5rem); margin-top: 12px; max-width: 22em; }
.article-layout--single { grid-template-columns: minmax(0, 820px); justify-content: center; }
.article-subtitle { font-size: 1.15rem; font-weight: 700; color: var(--navy-600); }
.prose p strong, .prose li strong { color: var(--navy); }
.prose hr { border: 0; height: 0; margin: 2.4em auto; width: 120px; border-top: 3px dotted var(--blue-300); }
.prose code { padding: .1em .45em; border-radius: 6px; background: #eef4fb; color: #1d4f91; font-size: .9em; word-break: break-all; }
.prose ol:not(.step-list) { padding-left: 1.4em; display: grid; gap: .4em; }
.callout { position: relative; padding: 18px 22px 18px 58px; border-radius: 16px; }
.callout > * + * { margin-top: .6em; }
.callout::before { content: ""; position: absolute; left: 18px; top: 20px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font: 900 15px/26px Arial, sans-serif; text-align: center; }
.callout--note { background: #fff8db; border: 2px solid #ffe38a; }
.callout--note::before { content: "!"; background: var(--yellow); color: var(--navy); }
.callout--tip { background: #eaf4fd; border: 2px solid #cfe3f5; }
.callout--tip::before { content: "i"; background: var(--blue); color: #fff; font-style: italic; }
.callout--example { background: #fff; border: 2px dashed #cfe3f5; }
.callout--example::before { content: "例"; background: #e3f1fe; color: var(--navy-600); font-size: 13px; }
.mini-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.mini-card { padding: 18px 20px; border-radius: 16px; background: #fff; border: 2px solid #d4e7f7; transition: transform .35s var(--ease-out), border-color .3s; }
.mini-card:hover { transform: translateY(-3px); border-color: var(--blue-300); }
.mini-card h3 { margin: 0 0 6px; font-size: 1.05rem; }
.mini-card p { font-size: .95rem; line-height: 1.8; }
.step-list { counter-reset: st; display: grid; gap: 14px; padding: 0; }
.step-list > li { counter-increment: st; position: relative; padding: 16px 18px 16px 64px; border-radius: 16px; background: var(--sky-50); border: 2px solid #e2edf8; }
.step-list > li::before {
  content: counter(st); position: absolute; left: 16px; top: 16px; width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center; background: var(--yellow); color: var(--navy); font-weight: 900; box-shadow: 0 0 0 2px #26375a;
}
.prose .faq { margin: 0; }
.prose details + details { margin-top: 0; }
.author-box .feature__link { margin-top: 6px; font-size: .92rem; }
@media (max-width: 640px) {
  .mini-cards { grid-template-columns: 1fr; }
  .callout { padding: 16px 16px 16px 50px; }
  .callout::before { left: 14px; }
  .step-list > li { padding: 14px 14px 14px 56px; }
}
/* 文章內的按鈕與 CTA 不套用 .prose 的連結與標題樣式 */
.prose a.btn { color: var(--fg); text-decoration: none; }
.prose a.feature__link { color: var(--navy-600); text-decoration: none; }
.prose .article-cta h3 { margin-top: 0; color: #fff; font-size: 1.3rem; }
.prose .article-cta p { color: #fff; }
.post-card__note { margin: -2px 0 10px; padding: 8px 12px; border-radius: 10px; background: #fff8db; font-size: .86rem; font-weight: 700; color: var(--navy); }
.post-card__note::before { content: "👉 "; }
/* 首頁：每個人都可以掌握 AI & 數位行銷 */
.everyone { background: linear-gradient(180deg, var(--sky-50), #fff); }
.everyone .split p { color: var(--ink); }
.slogan { margin: 22px 0 0; padding: 20px 24px; border-radius: 18px; background: var(--navy-600); color: #fff; font-size: 1.15rem; font-weight: 900; line-height: 1.6; transform: rotate(-1deg); box-shadow: var(--shadow); }
.slogan cite { display: block; margin-top: 6px; font-style: normal; font-size: .92rem; font-weight: 700; color: var(--yellow); }
.advice-card { position: relative; padding: 32px 30px; border-radius: var(--radius-lg); background: #fff; border: 2px solid #d4e7f7; box-shadow: var(--shadow); }
.advice-card > .ic { width: 64px; height: 64px; margin-bottom: 8px; }
.advice-card h3 { font-family: var(--font-script); font-size: 2rem; color: var(--navy-600); line-height: 1.1; margin-bottom: 10px; }
.advice-card p { color: var(--ink-2); }
.advice-card .btn .ic { width: 1.2em; height: 1.2em; }
.advice--wide { max-width: 860px; margin: 32px auto 0; text-align: center; }
.advice--wide .btn { margin-top: 14px; }
.page-about .journey__intro { display: none; }   /* 關於頁上方已有完整故事，避免重複 */

/* ---------- 搬回原站的影音 ---------- */
.slogan { position: relative; overflow: hidden; isolation: isolate; }
.slogan__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .45; z-index: -1; }
.slogan::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgba(23, 63, 124, .92), rgba(29, 79, 145, .55)); }
.advice-card--media { display: grid; grid-template-columns: 1fr 132px; column-gap: 22px; }
.advice-card--media > :not(.advice-card__video) { grid-column: 1; }
.advice-card__video { grid-column: 2; grid-row: 1 / span 5; width: 132px; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 18px; border: 4px solid #fff; box-shadow: var(--shadow); align-self: center; }
.about-video { width: 100%; margin-top: 18px; border-radius: 18px; border: 4px solid #fff; box-shadow: var(--shadow); aspect-ratio: 16 / 9; object-fit: cover; background: #0e2346; }
.clip-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.clip { position: relative; border-radius: var(--radius); overflow: hidden; border: 4px solid #fff; box-shadow: var(--shadow); background: #0e2346; }
.clip video { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.clip figcaption { position: absolute; left: 12px; bottom: 10px; padding: .25em .9em; border-radius: 999px; background: rgba(255, 255, 255, .92); font-weight: 900; font-size: .9rem; color: var(--navy); }
.clip-note { margin-top: 10px; text-align: center; font-size: .8rem; color: var(--ink-2); }

/* 電子書：真實封面、音檔、檔案大小 */
.ebook__cover.has-img { padding-top: 0; }
.ebook__img { position: relative; z-index: 0; display: block; width: calc(100% + 40px); max-width: none; margin: 0 -16px 12px -24px; aspect-ratio: 16 / 10; object-fit: cover; }
.ebook__cover.has-img .ebook__label { position: absolute; top: 10px; left: 20px; z-index: 1; padding: 0 .5em; border-radius: 6px; background: rgba(23, 63, 124, .75); color: #fff; }
.ebook__cover.has-img .ebook__cover-title { margin-top: 0; -webkit-line-clamp: 3; }
.ebook__cover.has-img .ic { width: 46px; height: 46px; }
.btn small.ebook__size { display: block; font-size: .7rem; font-weight: 500; opacity: .75; margin-left: .2em; }
.ebook__listen-wrap { margin: -4px 0 12px; }
.ebook__listen {
  display: inline-flex; align-items: center; gap: 6px; padding: .4em .9em; border-radius: 999px;
  border: 2px dashed var(--blue-300); background: #fff; color: var(--navy-600); font-weight: 700; font-size: .84rem;
  transition: background-color .25s, border-color .25s;
}
.ebook__listen:hover { background: #eaf4fd; border-color: var(--blue); }
.ebook__listen .ic { width: 22px; height: 22px; }
.ebook__player { width: 100%; height: 36px; }
@media (max-width: 900px) {
  .clip-grid { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; }
}
@media (max-width: 640px) {
  .advice-card--media { grid-template-columns: 1fr 96px; column-gap: 14px; padding: 24px 18px; }
  .advice-card__video { width: 96px; }
  .ebook__img { margin: 0 -12px 10px -20px; width: calc(100% + 32px); }
}
@media (prefers-reduced-motion: reduce) {
  .slogan__bg { display: none; }
}
/* 電子書卡：描述固定三行，音檔與下載列貼齊卡片底部 */
.ebook__desc { flex: 0 0 auto; max-height: calc(1.7em * 3); line-height: 1.7; }
.ebook__listen-wrap { margin-top: auto; }
.ebook__listen-wrap + .ebook__foot { margin-top: 0; }
.ebook__foot { margin-top: auto; }
.ebook-grid > *, .ebook__cover { min-width: 0; }   /* 封面圖原始寬 800px 會撐開格線欄寬 */

/* ---------- 來源標示（E-E-A-T：可查證） ---------- */
.badge__srcs { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 12px; }
.stats__src, .timeline__src, .badge__src {
  display: inline-block; margin-top: 4px; font-size: .74rem; font-weight: 500; color: var(--ink-2);
  text-decoration: underline; text-decoration-color: var(--blue-300); text-underline-offset: 3px;
}
.stats__src:hover, .timeline__src:hover, .badge__src:hover { color: var(--blue); }
.stats li { display: flex; flex-direction: column; align-items: center; }
.timeline li { display: flex; flex-direction: column; }
.badge { justify-content: flex-start; }

/* 引用來源（GEO：引用來源能提高被 AI 答案採用的機會） */
.cite-line { margin-top: 10px; font-size: .8rem; color: var(--ink-2); }
.cite { color: var(--navy-600); text-decoration: underline; text-decoration-color: var(--blue-300); text-underline-offset: 3px; }
.cite:hover { color: var(--blue); }
.article-meta a { color: var(--navy-600); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- 演講紀錄與報導 ---------- */
.talk-list { display: grid; gap: 14px; max-width: 920px; margin: 0 auto; }
.talk {
  display: grid; grid-template-columns: 64px 1fr; gap: 16px; align-items: start;
  padding: 18px 20px; background: #fff; border: 2px solid #d4e7f7; border-radius: 18px;
  transition: transform .35s var(--ease-out), border-color .3s, box-shadow .3s;
}
.talk:hover { transform: translateY(-3px); border-color: var(--blue-300); box-shadow: var(--shadow-sm); }
.talk__icon { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 18px; background: #eaf4fd; }
.talk__icon .ic { width: 44px; height: 44px; }
.talk__meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: .84rem; color: var(--ink-2); }
.talk__title { margin: 4px 0 2px; font-size: 1.06rem; font-weight: 900; color: var(--navy); line-height: 1.5; }
.talk__org { font-size: .9rem; font-weight: 700; color: var(--navy-600); }
.talk__topic { margin-top: 4px; font-size: .9rem; color: var(--ink-2); }
.talk__note { margin-top: 6px; font-size: .8rem; color: var(--ink-3, #6b7a90); border-left: 2px solid #f2797e; padding-left: 8px; }
.talk__src { display: inline-block; margin-top: 8px; font-size: .82rem; color: var(--blue); text-decoration: underline; text-underline-offset: 3px; word-break: break-all; }
@media (max-width: 640px) { .talk { grid-template-columns: 48px 1fr; padding: 14px; } .talk__icon { width: 48px; height: 48px; } .talk__icon .ic { width: 34px; height: 34px; } }

/* ---------- 卡片場景插畫（line-illustration skill） ---------- */
.post-card__thumb { height: 150px; padding: 6px 10px 0; overflow: hidden; }
.thumb-illus { display: block; width: 100%; height: 100%; color: #26375a; overflow: visible; }
.post-card:hover .ch-figure, .course:hover .ch-figure { animation: bob .9s ease-in-out infinite; }
.post-card:hover .icon-bubble, .course:hover .icon-bubble,
.post-card:hover .icon-chip, .course:hover .icon-chip { animation: popIn .7s var(--ease-back); }
.post-card:hover .icon-trend { animation: draw 1s var(--ease-out) both; }
.post-card:hover .icon-wire, .course:hover .icon-wire { animation: dashFlow .8s linear infinite; }
.post-card .ph-float, .course .ph-float { animation: none; }
.post-card:hover .ph-float, .course:hover .ph-float { animation: bubbleFloat 2.4s ease-in-out infinite; }
.course__thumb { height: 170px; padding: 8px 12px 0; }
.course__thumb .thumb-illus { position: relative; z-index: 0; }
.course__no, .course__play { z-index: 1; }
@media (max-width: 640px) { .post-card__thumb { height: 140px; } }
/* 縮圖容器：固定高度、SVG 等比置中，不裁切也不溢出 */
.post-card__thumb, .course__thumb { display: block; overflow: hidden; }
.post-card__thumb .thumb-illus, .course__thumb .thumb-illus { width: 100%; height: 100%; }
.course__thumb .course__no, .course__thumb .course__play { position: absolute; }

/* =====================================================================
   閱讀體驗（2026-12 字級放大）
   - 基準字級：手機 17px、桌機 18px（原本 16px），所有 rem 尺寸等比放大
   - 說明文字下限約 14.5px；內文行長控制在每行約 36–40 個中文字
   - 觸控裝置的獨立連結與按鈕至少 44px 高（WCAG 2.2 目標尺寸）
   ===================================================================== */
html { font-size: 106.25%; }
@media (min-width: 1024px) { html { font-size: 112.5%; } }
body { line-height: 1.8; text-rendering: optimizeLegibility; }
h1, h2, h3, .section-head__title, .page-hero__title, .post-card__title, .talk__title { text-wrap: balance; }
p, li, dd { text-wrap: pretty; }

/* 小字下限 */
.footer__copy, .cite-line, .clip-note, .form-note, .field__error, .info-card small, .talk__note { font-size: .875rem; }
.post-card__meta, .ebook__audio, .talk__meta { font-size: .9rem; }
.tag { font-size: .85rem; }
.breadcrumb, .toc a, .footer__meta, .talk__src, .badge span, .ebook__desc, .post-card__note { font-size: .92rem; }
.stats__src, .timeline__src, .badge__src { font-size: .82rem; }
.btn small.ebook__size { font-size: .78rem; }
.timeline span { font-size: .92rem; }
.post-card__excerpt, .course__body p, .talk__topic, .author-box p, .card__text { font-size: .95rem; }
.logo__text small { font-size: .72rem; }

/* 文章：行長與段落節奏 */
.article-layout { grid-template-columns: minmax(0, 42em) 270px; justify-content: center; gap: 48px; }
.article-layout--single { grid-template-columns: minmax(0, 42em); }
.prose { font-size: 1.06rem; line-height: 1.95; }
.prose > * + * { margin-top: 1.15em; }
.prose h2 { font-size: 1.55rem; }
.prose h3 { font-size: 1.22rem; }
.prose a:not(.btn) { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em; }
.page-hero__lead, .section-intro, .story__lead { max-width: 38em; }
.section-intro { margin-left: auto; margin-right: auto; }

@media (max-width: 1024px) {
  .article-layout { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .prose { font-size: 1.06rem; line-height: 1.9; }
  .prose h2 { font-size: 1.32rem; }
  .card__text { font-size: .95rem; line-height: 1.7; }
  .card .btn { font-size: .92rem; }
  .footer__nav { font-size: .95rem; }
  .hero__desc { font-size: 1rem; }
  .section-head__sub { font-size: 1rem; }
}

/* 觸控目標 */
@media (pointer: coarse) {
  .footer__nav a, .breadcrumb a, .talk__src, .badge__src, .stats__src, .feature__link, .post-card__more {
    display: inline-flex; align-items: center; min-height: 44px;
  }
  .toc a { min-height: 44px; display: flex; align-items: center; }
  .filter__btn { min-height: 44px; }
}
.filter__count { font-size: .9em; }

/* 聯絡區塊標語：字級放大後避免「生活」被拆開（只在空白處換行），並控制字級 */
.cta__line { font-size: clamp(1.3rem, 2.1vw, 1.7rem); word-break: keep-all; text-wrap: balance; }

/* 首頁 Hero：字級放大後對話框變大，手機與平板改放在頭部上方，避免遮住臉 */
@media (max-width: 900px) {
  .hero__visual { padding-top: 70px; }
  .bubble { top: 0; right: max(0px, calc(50% - 180px)); font-size: .92rem; padding: 10px 16px; }
}
