/* ==========================================================================
   AI 內容工廠課程頁專屬樣式
   設計基準：assets/threads-learning-path.css（同一套排版節奏與字級規格）
   載入順序在 pages.css / store.css / product-detail.css 之後，僅覆寫本頁，
   共用檔一律不動。
   ========================================================================== */

:root {
  /* 舊頁的陰影與線條語彙，這裡沿用同一組值 */
  --cf-shadow: 0 18px 48px rgba(18, 53, 45, .08);
  --cf-shadow-soft: 0 12px 30px rgba(18, 53, 45, .06);
  --cf-gold: #c0965c;
  --cf-gold-soft: #e7d3b3;
  --cf-gold-line: rgba(192, 150, 92, .38);
  --cf-serif: "Noto Serif TC", "Songti TC", serif;
}

/* --------------------------------------------------------------------------
   1. 版面節奏：共用 pages.css 的 section 上限只有 76px，這裡拉到舊頁的 104px 級距
   -------------------------------------------------------------------------- */
body[data-product-slug="ai-content-factory"] { line-height: 1.72; }

main > section { padding: clamp(64px, 7.4vw, 104px) 0 clamp(68px, 7.8vw, 112px); }
main > section.course-hero { padding: 0; }
main > section.mid-price-band { padding: clamp(10px, 1.4vw, 18px) 0 clamp(20px, 2.4vw, 30px); }

main .section-head { max-width: 820px; margin-bottom: clamp(30px, 3.4vw, 46px); }
/* 置中標題：中文逐字斷行，用 em 控制每行字數才不會斷在詞中間 */
main .section-head.center { max-width: 1000px; }
main .section-head.center h2 { max-width: 19em; margin-inline: auto; }
main .section-head.center > p { max-width: 680px; margin-inline: auto; }
main .section-head > p { margin-bottom: 0; color: var(--muted); font-size: 17.5px; line-height: 1.85; }
main .section-head > p + p { margin-top: 14px; }

/* 兩欄敘事段落：舊頁的文章欄是頂端對齊、行高 1.9 */
main .split { align-items: start; gap: clamp(32px, 5.2vw, 72px); }
/* 標題欄跟著長清單捲動，左側才不會空一大片 */
main .split > .section-head { position: sticky; top: 112px; }
main .split > div:not(.section-head) > p,
main .split > div:not(.section-head) > ul { font-size: 17px; line-height: 1.9; color: #3d4a46; }
main .split > div:not(.section-head) > p { margin-bottom: 18px; }
main .split > div:not(.section-head) > ul { margin: 0 0 18px; padding-left: 22px; }
main .split > div:not(.section-head) > ul li { margin: 9px 0; }
main .split > div:not(.section-head) > p:last-child { margin-bottom: 0; }

/* --------------------------------------------------------------------------
   2. 字級層級：hero h1 用舊頁同一套 clamp 邏輯，襯線、字重 900、負字距
   -------------------------------------------------------------------------- */
main h1,
main .section-head h2,
main .lesson-name,
main .bonus-item h3 { font-family: var(--cf-serif); }

.course-hero h1 {
  max-width: 15ch;
  margin: 4px 0 26px;
  font-family: var(--cf-serif);
  font-size: clamp(44px, 5.2vw, 74px);
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: -.03em;
  color: #0f3029;
}
/* 舊頁 hero 標題下的金色細線，這裡沿用同樣長度與粗細 */
.course-hero h1::after {
  content: "";
  display: block;
  width: 48px;
  height: 2px;
  margin-top: 26px;
  background: var(--cf-gold);
}

main .section-head h2 {
  font-size: clamp(30px, 3.6vw, 50px);
  font-weight: 900;
  line-height: 1.3;
  letter-spacing: -.015em;
  margin-bottom: 16px;
}
main h3 { font-size: clamp(20px, 1.7vw, 24px); line-height: 1.42; }

main .lead { max-width: 720px; font-size: clamp(18px, 1.45vw, 22px); line-height: 1.8; color: #35413e; }

/* eyebrow：舊頁是 42px 金線＋不轉大寫，共用檔的 .18em 大寫拉開中文太散 */
main .eyebrow,
main .section-head .eyebrow,
main .page-hero .eyebrow {
  margin-bottom: 20px;
  color: var(--green-800);
  font-size: 14px;
  font-weight: 850;
  letter-spacing: .05em;
  text-transform: none;
}
main .eyebrow::before { width: 42px; height: 2px; background: var(--cf-gold); }

/* --------------------------------------------------------------------------
   3. 頂部促銷通欄
   -------------------------------------------------------------------------- */
.promo-banner {
  background: var(--green-900);
  border-bottom: 1px solid rgba(255, 255, 255, .1);
  padding: 11px 16px;
  text-align: center;
}
.promo-banner-inner {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 14px;
}
.promo-banner-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border: 1px solid var(--cf-gold);
  border-radius: 999px;
  background: transparent;
  color: var(--cf-gold-soft);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .03em;
  white-space: nowrap;
}
.promo-banner-text { color: rgba(255, 255, 255, .72); font-size: 14px; font-weight: 800; letter-spacing: .02em; }
.promo-banner-text s { color: rgba(255, 255, 255, .48); font-weight: 700; }
.promo-banner-text strong { color: #fff; font-family: var(--cf-serif); font-size: 18px; font-weight: 900; }

/* --------------------------------------------------------------------------
   4. Hero
   -------------------------------------------------------------------------- */
.course-hero {
  background: linear-gradient(180deg, var(--green-100) 0%, #f6fbf9 62%, var(--paper) 100%);
  border-bottom: 1px solid var(--line);
}
.course-hero-inner {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(52px, 5.8vw, 84px) 0 clamp(52px, 5.6vw, 82px);
  display: grid;
  gap: clamp(34px, 4.4vw, 66px);
  grid-template-columns: minmax(0, 1.22fr) minmax(330px, .78fr);
  align-items: start;
}
.course-hero .lead { margin-bottom: 30px; }
.course-hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 0 0 34px; }

/* 價格數字：襯線大字，原價刪除線明顯降階 */
.hero-price-block { margin: 0 0 26px; }
.hero-price-figures {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 16px;
  margin: 0 0 8px;
}
.hero-price-figures s {
  color: var(--muted);
  font-size: 16px;
  font-weight: 600;
  opacity: .8;
}
.hero-price-now {
  color: var(--green-900);
  font-family: var(--cf-serif);
  font-size: clamp(46px, 4.6vw, 62px);
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: -.03em;
}
.hero-price-save { margin: 0 0 8px; color: #8a6634; font-size: 15px; font-weight: 850; letter-spacing: .01em; }
.hero-price-note { margin: 0; color: var(--muted); font-size: 13.5px; line-height: 1.7; }

/* 折扣徽章：小面積金色，當強調而不是色塊 */
.discount-tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border: 1px solid var(--cf-gold);
  border-radius: 999px;
  background: rgba(192, 150, 92, .1);
  color: #8a6634;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .03em;
  line-height: 1.5;
}
.discount-tag-lg { margin: 0 0 14px; padding: 6px 15px; font-size: 13px; font-weight: 900; }

/* 金色主要按鈕：保留行銷辨識度，但陰影收斂、圓角與共用 .btn 一致 */
.btn-gold {
  min-height: 52px;
  padding: 0 26px;
  border-color: #b0854a;
  background: var(--cf-gold);
  color: #fff;
  font-size: 16px;
  box-shadow: 0 10px 24px rgba(150, 112, 62, .22);
}
.btn-gold:hover { background: #a97e46; border-color: #a97e46; color: #fff; }
main .btn { border-radius: 6px; font-weight: 850; }

/* --------------------------------------------------------------------------
   5. 規格盒
   -------------------------------------------------------------------------- */
.spec-box {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--cf-shadow-soft);
  padding: 24px 26px 26px;
}
.spec-box h2 {
  margin: 0 0 4px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  color: var(--green-900);
  font-family: var(--cf-serif);
  font-size: 19px;
  font-weight: 900;
  line-height: 1.4;
}
.spec-grid { display: grid; }
.spec-row {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid #eaf2ef;
}
.spec-row:last-child { border-bottom: 0; padding-bottom: 0; }
.spec-row span { color: var(--muted); font-size: 13.5px; font-weight: 850; letter-spacing: .02em; }
.spec-row strong { color: var(--ink); font-size: 15px; font-weight: 800; line-height: 1.65; }

/* --------------------------------------------------------------------------
   6. 價格盒（深綠底，金色只用在數字與細節）
   -------------------------------------------------------------------------- */
.price-card {
  position: sticky;
  top: 96px;
  background: #123f32;
  color: #fff;
  border-radius: 12px;
  padding: 30px 28px 28px;
  box-shadow: 0 26px 60px rgba(18, 53, 45, .18);
}
.price-card .eyebrow { margin-bottom: 16px; color: var(--cf-gold-soft); }
.price-card .eyebrow::before { background: var(--cf-gold); }
.price-card .discount-tag {
  border-color: rgba(231, 211, 179, .5);
  background: rgba(231, 211, 179, .12);
  color: var(--cf-gold-soft);
}
.price-card .price-was { margin: 0 0 2px; }
.price-card .price-was s { color: rgba(255, 255, 255, .55); font-size: 15px; font-weight: 600; }
.price-card .amount {
  display: block;
  margin: 0 0 8px;
  color: #fff;
  font-family: var(--cf-serif);
  font-size: clamp(46px, 4.4vw, 58px);
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: -.03em;
}
.price-card .save-line { margin: 0 0 14px; color: var(--cf-gold-soft); font-size: 15px; font-weight: 850; }
.price-card .amount-note { margin: 0 0 10px; color: rgba(255, 255, 255, .84); font-size: 15px; font-weight: 700; line-height: 1.7; }
.price-card .price-disclaimer { margin: 0 0 20px; color: rgba(255, 255, 255, .6); font-size: 12.5px; line-height: 1.7; }
.price-card .value-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 0 0 22px;
  padding: 16px 0;
  border-block: 1px solid rgba(255, 255, 255, .18);
  background: none;
  border-radius: 0;
}
.price-card .value-stats div { text-align: center; padding: 0 8px; }
.price-card .value-stats div + div { border-left: 1px solid rgba(255, 255, 255, .16); }
.price-card .value-stats strong {
  display: block;
  color: #fff;
  font-family: var(--cf-serif);
  font-size: 26px;
  font-weight: 900;
  line-height: 1.2;
}
.price-card .value-stats span { display: block; margin-top: 4px; color: #bfd5cf; font-size: 11.5px; font-weight: 800; letter-spacing: .04em; }
.price-card ul { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 11px; }
.price-card li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: rgba(255, 255, 255, .9);
  font-size: 14.5px;
  font-weight: 650;
  line-height: 1.7;
}
.price-card li::before { content: "✓"; color: var(--cf-gold-soft); font-weight: 900; }
.price-card .store-primary {
  width: 100%;
  justify-content: center;
  min-height: 54px;
  border-radius: 6px;
  border-color: var(--cf-gold);
  background: var(--cf-gold);
  color: #fff;
  font-size: 16px;
  font-weight: 900;
  box-shadow: none;
}
.price-card .store-primary:hover { background: #a97e46; border-color: #a97e46; }
.price-card .price-note { margin: 14px 0 0; color: rgba(255, 255, 255, .66); font-size: 12.5px; line-height: 1.75; }
.price-card .price-note a { color: var(--cf-gold-soft); text-decoration: underline; }

/* --------------------------------------------------------------------------
   7. 實績數字（對齊舊頁 proof-ledger 的襯線大字與細分隔線）
   -------------------------------------------------------------------------- */
.course-proof {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  box-shadow: var(--cf-shadow-soft);
  overflow: hidden;
}
.course-proof div { padding: 30px 20px; text-align: center; background: none; border: 0; border-radius: 0; }
.course-proof div + div { border-left: 1px solid var(--line); }
.course-proof strong {
  display: block;
  color: var(--green-900);
  font-family: var(--cf-serif);
  font-size: clamp(30px, 3vw, 42px);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -.01em;
}
.course-proof span { display: block; margin-top: 8px; color: var(--muted); font-size: 13.5px; font-weight: 800; letter-spacing: .04em; }

/* 內訓現場：實績數字下的次級小標，字級要比主標低一階 */
main .section-head.proof-subhead { margin-top: clamp(38px, 4.4vw, 60px); margin-bottom: 24px; }
main .section-head.proof-subhead h2 { font-size: clamp(23px, 2.2vw, 29px); margin-bottom: 0; }

/* --------------------------------------------------------------------------
   8. 卡片與條列微調
   -------------------------------------------------------------------------- */
main .card-grid { gap: 18px; }
main .card {
  padding: 28px 26px;
  border-radius: 12px;
  box-shadow: var(--cf-shadow-soft);
}
main .card h3 { font-family: var(--cf-serif); font-weight: 700; margin-bottom: 10px; }
main .card p { line-height: 1.8; }
main .card ul { margin-top: 16px; line-height: 1.85; }
main .card ul li { margin: 8px 0; }

main .feature-list { gap: 14px; }
main .feature-item { padding: 22px 24px; border-radius: 12px; }
main .feature-item h3 { font-size: 19px; margin-bottom: 8px; }
main .feature-item p { line-height: 1.8; }
main .feature-number { font-family: var(--cf-serif); font-size: 18px; }

main .product-detail-list { gap: 16px; }
main .product-detail-item { padding: 26px 28px; border-radius: 12px; box-shadow: var(--cf-shadow-soft); }
main .product-detail-item h3 { font-size: 21px; }
main .product-detail-item p { line-height: 1.85; }

main .product-note { padding: 26px 28px; border-radius: 12px; border-left-width: 4px; }
main .product-note p { line-height: 1.85; margin-bottom: 14px; }
main .buying-note { margin-top: 22px; }

/* 待補內容區塊：虛線金框，維持低調 */
.pending-slot {
  border: 1px dashed var(--cf-gold-line);
  background: #fdfaf5;
  border-radius: 12px;
  padding: 28px 30px;
}
.pending-slot p { margin: 0 0 12px; color: #45534f; font-size: 16px; line-height: 1.85; }
.pending-slot p:last-child { margin-bottom: 0; }
.pending-tag {
  display: inline-flex;
  align-items: center;
  margin-bottom: 16px;
  padding: 5px 13px;
  border: 1px solid var(--cf-gold);
  border-radius: 999px;
  background: rgba(192, 150, 92, .1);
  color: #8a6634;
  font-size: 13px;
  font-weight: 850;
}
.pending { background: #fbf1e0; border-bottom: 1px dashed var(--cf-gold); padding: 0 3px; font-weight: 800; }

/* --------------------------------------------------------------------------
   9. 課表（對齊舊頁 roadmap-table 的列高、hover 與分隔線做法）
   -------------------------------------------------------------------------- */
.lesson-table {
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: var(--paper);
  box-shadow: var(--cf-shadow-soft);
}
.lesson-row {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr) 78px 196px;
  gap: 18px;
  padding: 20px 24px;
  border-bottom: 1px solid #e9f1ee;
  align-items: start;
  transition: background .2s ease;
}
.lesson-row:not(.is-head):hover { background: var(--soft); }
.lesson-row.is-head {
  padding-block: 13px;
  background: var(--green-100);
  border-bottom-color: var(--line);
  color: var(--green-800);
  font-size: 12.5px;
  font-weight: 850;
  letter-spacing: .06em;
}
.lesson-no {
  font-family: var(--cf-serif);
  font-size: 24px;
  font-weight: 900;
  line-height: 1.2;
  color: var(--green-700);
}
.lesson-name { margin: 0 0 8px; color: var(--green-900); font-size: 18px; font-weight: 700; line-height: 1.45; }
.lesson-desc { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.75; }
.lesson-min { color: var(--green-800); font-size: 15px; font-weight: 850; }
.lesson-out { color: #4b5854; font-size: 14.5px; line-height: 1.7; }
.lesson-sum {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  padding: 18px 24px;
  background: var(--green-100);
  color: var(--green-900);
  font-size: 15px;
  font-weight: 850;
}

/* --------------------------------------------------------------------------
   10. 中段價格條
   -------------------------------------------------------------------------- */
.mid-price-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 26px 32px;
  border-radius: 12px;
  background: var(--green-800);
  color: #fff;
  box-shadow: var(--cf-shadow);
}
.mid-price-info { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; }
.mid-price-bar .discount-tag {
  border-color: rgba(231, 211, 179, .5);
  background: rgba(231, 211, 179, .12);
  color: var(--cf-gold-soft);
  margin: 0;
}
.mid-price-figures { display: flex; align-items: baseline; gap: 10px; margin: 0; }
.mid-price-figures s { color: rgba(255, 255, 255, .55); font-size: 15px; font-weight: 600; }
.mid-price-figures strong {
  color: #fff;
  font-family: var(--cf-serif);
  font-size: clamp(28px, 2.6vw, 34px);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -.02em;
}
.mid-price-save { color: var(--cf-gold-soft); font-size: 14px; font-weight: 850; }
.mid-price-bar .btn-gold { flex: none; }

/* --------------------------------------------------------------------------
   11. 附件清單
   -------------------------------------------------------------------------- */
.bonus-list { display: grid; gap: 16px; }
.bonus-item {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 18px;
  padding: 26px 28px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  box-shadow: var(--cf-shadow-soft);
}
.bonus-item.is-exclusive { border-color: var(--cf-gold-line); background: #fffdfa; }
.bonus-no {
  font-family: var(--cf-serif);
  font-size: 24px;
  font-weight: 900;
  line-height: 1.2;
  color: var(--green-700);
}
.bonus-item.is-exclusive .bonus-no { color: #a07a41; }
.bonus-item h3 { margin: 0 0 10px; font-size: 21px; line-height: 1.4; }
.bonus-item p { margin: 0; color: var(--muted); font-size: 15.5px; line-height: 1.85; }
.bonus-flag {
  display: inline-flex;
  margin-left: 10px;
  padding: 3px 10px;
  border: 1px solid var(--cf-gold);
  border-radius: 999px;
  background: rgba(192, 150, 92, .1);
  color: #8a6634;
  font-family: var(--sans, inherit);
  font-size: 11.5px;
  font-weight: 850;
  letter-spacing: .02em;
  vertical-align: 4px;
}

/* --------------------------------------------------------------------------
   12. 常見問答與購買流程
   -------------------------------------------------------------------------- */
.course-faq details {
  margin-bottom: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  box-shadow: var(--cf-shadow-soft);
}
.course-faq summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  list-style: none;
  padding: 20px 24px;
  color: var(--green-900);
  font-family: var(--cf-serif);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.55;
}
.course-faq summary::-webkit-details-marker { display: none; }
.course-faq summary::after {
  content: "+";
  flex: none;
  float: none;
  color: var(--cf-gold);
  font-family: var(--sans, inherit);
  font-size: 22px;
  font-weight: 900;
  line-height: 1.2;
}
.course-faq details[open] summary { border-bottom: 1px solid var(--line); }
.course-faq details[open] summary::after { content: "\2212"; }
.course-faq details > *:not(summary) { padding: 0 24px; }
.course-faq details > p:first-of-type { padding-top: 18px; }
.course-faq details > *:last-child { padding-bottom: 22px; }
.course-faq p { margin: 0 0 14px; color: #3d4a46; font-size: 16px; line-height: 1.9; }
.course-faq p strong { color: var(--green-900); }

.flow-steps { display: grid; gap: 14px; }
.flow-step {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  padding: 20px 24px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  box-shadow: var(--cf-shadow-soft);
}
.flow-step b {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--green-800);
  color: #fff;
  font-family: var(--cf-serif);
  font-size: 15px;
  font-weight: 900;
}
.flow-step p { margin: 0; color: #3d4a46; font-size: 16px; line-height: 1.8; }

/* --------------------------------------------------------------------------
   13. 收尾深綠帶
   -------------------------------------------------------------------------- */
.closing-band {
  text-align: center;
  background: #0f3029;
  border-radius: 16px;
  padding: clamp(44px, 6vw, 76px) clamp(24px, 4vw, 56px);
  color: #fff;
}
.closing-band .eyebrow { justify-content: center; color: #cde2dd; }
.closing-band .eyebrow::before { background: var(--cf-gold); }
.closing-band h2 {
  max-width: 18em;
  margin: 0 auto 22px;
  color: #fff;
  font-family: var(--cf-serif);
  font-size: clamp(29px, 3.6vw, 48px);
  font-weight: 900;
  line-height: 1.32;
  letter-spacing: -.015em;
}
.closing-band > p:not(.eyebrow):not([class*="closing-"]) {
  max-width: 640px;
  margin: 0 auto 16px;
  color: rgba(255, 255, 255, .82);
  font-size: 16.5px;
  line-height: 1.9;
}
.closing-discount-line { margin: 30px 0 12px; }
.closing-band .discount-tag {
  border-color: rgba(231, 211, 179, .5);
  background: rgba(231, 211, 179, .12);
  color: var(--cf-gold-soft);
  margin: 0;
}
.closing-price-line {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: baseline;
  gap: 8px 12px;
  margin: 0 0 8px;
}
.closing-price-line s { color: rgba(255, 255, 255, .55); font-size: 16px; font-weight: 600; }
.closing-price-line strong {
  color: #fff;
  font-family: var(--cf-serif);
  font-size: clamp(34px, 3.4vw, 46px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -.03em;
}
.closing-price-save { margin: 0 0 8px; color: var(--cf-gold-soft); font-size: 15px; font-weight: 850; }
.closing-price-note { margin: 0 0 26px; color: rgba(255, 255, 255, .62); font-size: 13px; line-height: 1.7; }
.closing-band .btn-gold { max-width: 100%; }

/* --------------------------------------------------------------------------
   14. 手機黏底購買列（桌機不出現）
   -------------------------------------------------------------------------- */
.sticky-buy {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 11px 16px calc(11px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, .97);
  border-top: 1px solid var(--line);
  box-shadow: 0 -10px 28px rgba(18, 53, 45, .1);
  backdrop-filter: blur(12px);
  transform: translateY(110%);
  transition: transform .22s ease;
}
.sticky-buy.is-visible { transform: translateY(0); }
.sticky-buy .sticky-price { display: flex; align-items: center; gap: 10px; line-height: 1.2; min-width: 0; }
.sticky-buy .sticky-badge {
  flex: none;
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border: 1px solid var(--cf-gold);
  border-radius: 999px;
  background: rgba(192, 150, 92, .1);
  color: #8a6634;
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
}
.sticky-buy .sticky-figures { display: flex; flex-direction: column; min-width: 0; }
.sticky-buy .sticky-figures s { color: var(--muted); font-size: 11px; font-weight: 600; }
.sticky-buy .sticky-figures strong {
  color: var(--green-900);
  font-family: var(--cf-serif);
  font-size: 23px;
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -.02em;
}
.sticky-buy .store-primary {
  min-height: 46px;
  padding: 0 18px;
  border-radius: 6px;
  border-color: var(--cf-gold);
  background: var(--cf-gold);
  color: #fff;
  font-size: 14.5px;
  font-weight: 900;
  white-space: nowrap;
  box-shadow: none;
}
.sticky-buy .store-primary:hover { background: #a97e46; border-color: #a97e46; }

/* --------------------------------------------------------------------------
   15. 響應式
   -------------------------------------------------------------------------- */
@media (max-width: 1040px) {
  .course-hero-inner { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .course-hero h1 { max-width: 18ch; }
  .price-card { position: static; max-width: 560px; }
  .spec-box { max-width: 720px; }
}

@media (max-width: 900px) {
  main .card-grid,
  main .card-grid.two { grid-template-columns: minmax(0, 1fr); }
  main .split { grid-template-columns: minmax(0, 1fr); }
  main .split > .section-head { position: static; }
  .lesson-row { grid-template-columns: 46px minmax(0, 1fr); gap: 6px 16px; padding: 20px; }
  .lesson-row.is-head { display: none; }
  .lesson-row .lesson-min,
  .lesson-row .lesson-out { grid-column: 2; font-size: 14px; }
  .lesson-row .lesson-min { margin-top: 4px; }
  .lesson-row .lesson-min::before { content: "時長："; color: var(--muted); font-weight: 800; }
  .lesson-row .lesson-out::before { content: "交付物："; color: var(--green-800); font-weight: 850; }
  .course-proof { grid-template-columns: minmax(0, 1fr); }
  .course-proof div { display: flex; align-items: baseline; justify-content: space-between; gap: 18px; padding: 18px 22px; text-align: left; }
  .course-proof div + div { border-left: 0; border-top: 1px solid var(--line); }
  .course-proof strong { font-size: 30px; }
  .course-proof span { margin-top: 0; text-align: right; }
}

@media (max-width: 720px) {
  body[data-product-slug="ai-content-factory"] { padding-bottom: 78px; }
  .sticky-buy { display: flex; }
  main > section { padding: clamp(52px, 11vw, 68px) 0 clamp(56px, 12vw, 74px); }
  .course-hero-inner { padding: 44px 0 48px; }
  .course-hero h1 { max-width: none; font-size: clamp(34px, 9.4vw, 46px); line-height: 1.24; margin-bottom: 22px; }
  .course-hero h1::after { margin-top: 20px; }
  main .section-head h2 { font-size: clamp(26px, 7vw, 34px); }
  main .lead { font-size: 17px; }
  main .section-head > p { font-size: 16.5px; }
  .course-hero-actions { flex-direction: column; align-items: stretch; margin-bottom: 28px; }
  .course-hero-actions .btn { width: 100%; }
  .promo-banner { padding: 9px 14px; }
  .promo-banner-text { font-size: 13px; }
  .promo-banner-text strong { font-size: 16px; }
  .hero-price-now { font-size: 40px; }
  .price-card { padding: 24px 20px; }
  .price-card .amount { font-size: 40px; }
  .price-card .value-stats strong { font-size: 22px; }
  .spec-box { padding: 20px; }
  .spec-row { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .bonus-item { grid-template-columns: minmax(0, 1fr); gap: 8px; padding: 22px 20px; }
  .bonus-item h3 { font-size: 19px; }
  .lesson-name { font-size: 16.5px; }
  .lesson-sum { padding: 16px 20px; font-size: 14px; gap: 6px 18px; }
  .mid-price-bar { flex-direction: column; align-items: stretch; text-align: center; padding: 22px 20px; }
  .mid-price-info { justify-content: center; }
  .mid-price-figures { justify-content: center; }
  .mid-price-bar .btn { width: 100%; }
  .course-faq summary { padding: 17px 18px; font-size: 16.5px; }
  .course-faq details > *:not(summary) { padding-inline: 18px; }
  .course-faq p { font-size: 15.5px; }
  .flow-step { padding: 18px; }
  .flow-step p { font-size: 15.5px; }
  .closing-band { border-radius: 12px; padding: 40px 20px 44px; }
  .closing-price-line strong { font-size: 32px; }
  main .product-detail-item,
  main .product-note,
  .pending-slot { padding: 22px 20px; }
  main .card { padding: 24px 20px; }
  main .feature-item { grid-template-columns: 42px minmax(0, 1fr); gap: 12px; padding: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  .sticky-buy,
  .lesson-row { transition: none; }
}

/* --------------------------------------------------------------------------
   14. 圖片區塊：實績截圖、企業內訓現場照、講師形象照
        圖片一律 object-fit 控比例，不拉伸；行動版單欄不溢出。
   -------------------------------------------------------------------------- */

/* 14-1 實績截圖：兩張後台原圖，維持原始比例不裁切 */
.course-proof-shots {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 34px);
  justify-items: center;
  align-items: start;
  margin-top: clamp(26px, 3.2vw, 38px);
}
.course-proof-shot {
  width: 100%;
  max-width: 340px;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  box-shadow: var(--cf-shadow-soft);
}
.course-proof-shot img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  background: #0d0f0e;
}
.course-proof-shot figcaption {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  color: #fff;
  background: var(--green-900);
}
.course-proof-shot figcaption strong { font-family: var(--cf-serif); font-size: 16.5px; font-weight: 700; line-height: 1.4; }
.course-proof-shot figcaption span { flex: none; color: #bcd1cc; font-size: 11.5px; font-weight: 800; letter-spacing: .03em; text-align: right; }

/* 14-2 卡片頂部現場照：滿版貼齊卡片內距，比例統一 4:3 不變形 */
main .card-media {
  overflow: hidden;
  margin: -28px -26px 20px;
  background: var(--green-100);
  border-radius: 11px 11px 0 0;
}
main .card-media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

/* 14-3 講師形象照：放在「為什麼是我教」左欄 sticky 區塊 */
.instructor-portrait {
  width: min(100%, 260px);
  margin: 26px 0 0;
  overflow: hidden;
  border-radius: 12px;
  background: var(--green-100);
  box-shadow: var(--cf-shadow-soft);
}
.instructor-portrait img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 691 / 760;
  object-fit: cover;
}

@media (max-width: 900px) {
  .instructor-portrait { width: min(100%, 220px); margin-top: 22px; }
}

@media (max-width: 720px) {
  .course-proof-shots { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .course-proof-shot { max-width: 320px; }
  main .card-media { margin: -24px -20px 18px; }
  .instructor-portrait { width: min(100%, 200px); }
}
