﻿/* ============================================================
   feature-v2.css — 課程詳情 feature.aspx 新版套版專用
   - 對應 demo\feature_demo.html(2026-05-19)
   - 全部 class 加 iv2- 前綴,scope 在 .iv2-root 內
   - 不動 reset / 全域 typography / Bootstrap .container .row .modal,避免汙染既有 myModal 機制說明彈窗
   ============================================================ */

.iv2-root {
  --iv2-brand-navy: #0a1530;
  --iv2-brand-navy-mid: #1a2a52;
  --iv2-primary: #5645d4;
  --iv2-primary-pressed: #4534b3;
  --iv2-primary-deep: #3a2a99;
  --iv2-primary-soft: #ece9fb;
  --iv2-accent-red: #ff385c;
  --iv2-accent-amber: #f5d75e;
  --iv2-success: #1aae39;
  --iv2-warning: #dd5b00;
  --iv2-canvas: #ffffff;
  --iv2-surface: #f6f5f4;
  --iv2-surface-soft: #fafaf9;
  --iv2-hairline: #e5e3df;
  --iv2-hairline-soft: #ede9e4;
  --iv2-hairline-strong: #c8c4be;
  --iv2-ink: #1a1a1a;
  --iv2-charcoal: #37352f;
  --iv2-slate: #5d5b54;
  --iv2-muted: #bbb8b1;
  --iv2-tint-peach: #ffe8d4;
  --iv2-tint-mint: #d9f3e1;
  --iv2-tint-lavender: #e6e0f5;
  --iv2-tint-sky: #dcecfa;
  --iv2-tint-yellow: #fef7d6;
  --iv2-r-sm: 10px;
  --iv2-r-md: 14px;
  --iv2-r-lg: 20px;
  --iv2-r-pill: 999px;
  --iv2-s-2: 8px;
  --iv2-s-3: 12px;
  --iv2-s-4: 16px;
  --iv2-s-5: 24px;
  --iv2-s-6: 32px;
  --iv2-s-7: 48px;
  --iv2-s-8: 64px;
  --iv2-s-9: 96px;
  /* v2.11: 陰影 token 微提升,全公開頁一致,卡片更有浮起深度感 */
  --iv2-shadow-sm: 0 2px 5px rgba(15,23,48,0.07);
  --iv2-shadow-md: 0 6px 16px rgba(15,23,48,0.10);
  --iv2-shadow-lg: 0 16px 40px rgba(15,23,48,0.15);
  --iv2-shadow-xl: 0 24px 60px rgba(15,23,48,0.18);
  --iv2-font: 'Noto Sans Traditional Chinese', 'Noto Sans TC', 'Noto Sans CJK TC', 'Microsoft JhengHei', PingFangTC, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  font-family: var(--iv2-font);
  font-size: 17px;
  color: var(--iv2-ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* feature.aspx 本頁:body / nav / footer 一併套字體(同 plan-v2 規則) */
body,
body button,
body input,
body select,
body textarea {
  font-family: 'Noto Sans Traditional Chinese', 'Noto Sans TC', 'Noto Sans CJK TC', 'Microsoft JhengHei', PingFangTC, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* 防止頁面橫向溢出(2026-05-19 fix:feature.aspx 含 700+ 行 myModal markup,
   即使 display:none 也可能因內部元素撐寬,鎖死 html/body overflow-x) */
html, body { overflow-x: hidden; max-width: 100vw; }
.iv2-root { max-width: 100%; overflow-x: hidden; }
#myModal, #myModal * { max-width: 100%; box-sizing: border-box; }

.iv2-root * { box-sizing: border-box; }
.iv2-root img,
.iv2-root svg { display: block; max-width: 100%; }
.iv2-root a { color: inherit; text-decoration: none; }
.iv2-root ul { padding: 0; margin: 0; list-style: none; }
.iv2-root h1,
.iv2-root h2,
.iv2-root h3,
.iv2-root h4,
.iv2-root p { margin: 0; }
.iv2-root button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
.iv2-root input { font: inherit; }

/* 容器 */
/* 寬度占比:電腦 80% / 平板 90% / 手機 100% */
.iv2-root .iv2-wrap { width: 80%; max-width: none; margin-inline: auto; padding-inline: var(--iv2-s-5); }
@media (max-width: 1024px) { .iv2-root .iv2-wrap { width: 90%; } }
@media (max-width: 600px) { .iv2-root .iv2-wrap { width: 100%; padding-inline: 14px; } }

/* Typography */
.iv2-root .iv2-eyebrow { font-size: 0.85em; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--iv2-primary); }
.iv2-root .iv2-h1 { font-size: clamp(28px, 18px + 1.8vw, 40px); font-weight: 700; line-height: 1.2; color: var(--iv2-ink); margin: 0; }
.iv2-root .iv2-h2 { font-size: clamp(22px, 14px + 1.2vw, 28px); font-weight: 700; line-height: 1.3; color: var(--iv2-ink); margin: 0; }
.iv2-root .iv2-lead { font-size: 1.05em; line-height: 1.65; color: var(--iv2-slate); }
@media (max-width: 600px) {
  .iv2-root { font-size: 16px; }
  .iv2-root .iv2-lead { font-size: 1em; }
}

/* 按鈕 */
.iv2-root .iv2-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 24px;
  border-radius: var(--iv2-r-pill);
  font-weight: 600; font-size: 0.95em;
  transition: all .15s;
  white-space: nowrap; border: none;
  cursor: pointer; font-family: inherit;
}
.iv2-root .iv2-btn-primary { background: var(--iv2-primary); color: #fff; }
.iv2-root .iv2-btn-primary:hover { background: var(--iv2-primary-pressed); color: #fff; }
.iv2-root .iv2-btn-ghost { background: var(--iv2-surface); color: var(--iv2-charcoal); border: 1px solid var(--iv2-hairline); }
.iv2-root .iv2-btn-ghost:hover { background: var(--iv2-surface-soft); border-color: var(--iv2-primary); color: var(--iv2-primary); }
.iv2-root .iv2-btn-lg { height: 56px; padding: 0 28px; font-size: 1.05em; }
.iv2-root .iv2-btn-block { width: 100%; }
.iv2-root .iv2-btn svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ============ page-utility:麵包屑 + Q&A(沿用 plan-v2 慣例)============ */
.iv2-root .iv2-page-utility-row {
  background: var(--iv2-surface);
  border-bottom: 1px solid var(--iv2-hairline);
  padding-block: 14px;
}
.iv2-root .iv2-page-utility {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; flex-wrap: wrap;
}
.iv2-root .iv2-crumb { font-size: 0.85em; color: var(--iv2-slate); line-height: 1.6; word-break: break-word; }
.iv2-root .iv2-crumb a:hover { color: var(--iv2-primary); }
.iv2-root .iv2-crumb .sep { margin: 0 8px; color: var(--iv2-muted); }
.iv2-root .iv2-faq-link {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 14px;
  background: var(--iv2-primary-soft); color: var(--iv2-primary-deep);
  border-radius: var(--iv2-r-pill);
  font-weight: 600; font-size: 0.82em;
  border: 1px solid transparent;
  transition: background .15s, transform .15s, border-color .15s;
}
.iv2-root .iv2-faq-link:hover {
  background: #fff;
  border-color: var(--iv2-primary);
  color: var(--iv2-primary-deep);
  transform: translateY(-1px);
}
.iv2-root .iv2-faq-link svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.iv2-root .iv2-faq-link .iv2-arrow { font-size: 1em; transition: transform .15s; }
.iv2-root .iv2-faq-link:hover .iv2-arrow { transform: translateX(3px); }

/* ============ Hero:沉浸式 banner + 簡介/購買並排 ============ */
.iv2-root .iv2-detail-hero { padding-bottom: var(--iv2-s-7); }

/* ① Hero — 深色品牌・華麗版(2026-06-10 redesign v4)
   深 navy 多層極光 + 漂浮光球(紫/金) + 星點微光 + 玻璃標籤 + 金紫流光底線;深質感、華麗 */
.iv2-root .iv2-hero-banner {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: clamp(250px, 35vw, 420px);
  display: flex; align-items: flex-end;
  background:
    radial-gradient(60% 80% at 86% 0%, rgba(133, 116, 245, 0.40) 0%, transparent 60%),
    radial-gradient(55% 78% at 10% 106%, rgba(86, 69, 212, 0.36) 0%, transparent 58%),
    radial-gradient(46% 62% at 62% 118%, rgba(255, 56, 92, 0.18) 0%, transparent 60%),
    linear-gradient(135deg, #070f28 0%, #0e1a3a 46%, #1b2c58 100%);
}
/* 華麗版不使用模糊封面背景(JS 仍會設 background-image,但隱藏不顯示) */
.iv2-root .iv2-hero-banner-bg { display: none; }
/* 星點微光層(緩慢明滅) */
.iv2-root .iv2-hero-banner::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    radial-gradient(2px 2px at 18% 32%, rgba(255,255,255,0.85), transparent 60%),
    radial-gradient(2px 2px at 73% 22%, rgba(245,215,94,0.85), transparent 60%),
    radial-gradient(1.5px 1.5px at 42% 68%, rgba(255,255,255,0.70), transparent 60%),
    radial-gradient(1.5px 1.5px at 88% 58%, rgba(170,150,255,0.85), transparent 60%),
    radial-gradient(2px 2px at 58% 44%, rgba(255,255,255,0.60), transparent 60%),
    radial-gradient(1.5px 1.5px at 30% 80%, rgba(245,215,94,0.60), transparent 60%);
  background-repeat: no-repeat;
  opacity: 0.7;
  animation: iv2HeroTwinkle 4.5s ease-in-out infinite alternate;
}
/* 右上漂浮光球(紫) */
.iv2-root .iv2-hero-banner::before {
  content: ""; position: absolute; z-index: -1;
  top: -100px; right: -70px;
  width: 320px; height: 320px; border-radius: 50%;
  background: radial-gradient(circle at center, rgba(133,116,245,0.40) 0%, rgba(133,116,245,0) 70%);
  pointer-events: none;
  animation: iv2HeroFloatA 9s ease-in-out infinite alternate;
}
.iv2-root .iv2-hero-banner-inner {
  width: 80%; margin-inline: auto; padding-inline: var(--iv2-s-5);
  padding-block: var(--iv2-s-7);
  position: relative; z-index: 1;
}
/* 左下漂浮光球(深紫) */
.iv2-root .iv2-hero-banner-inner::before {
  content: ""; position: absolute; z-index: -1;
  left: -140px; bottom: -140px;
  width: 360px; height: 360px; border-radius: 50%;
  background: radial-gradient(circle at center, rgba(86,69,212,0.34) 0%, rgba(86,69,212,0) 70%);
  pointer-events: none;
  animation: iv2HeroFloatB 11s ease-in-out infinite alternate;
}
/* 右側小型金色點綴光暈 */
.iv2-root .iv2-hero-banner-inner::after {
  content: ""; position: absolute; z-index: -1;
  top: 6%; right: 4%;
  width: 150px; height: 150px; border-radius: 50%;
  background: radial-gradient(circle at center, rgba(245,215,94,0.20) 0%, rgba(245,215,94,0) 70%);
  pointer-events: none;
  animation: iv2HeroFloatA 13s ease-in-out infinite alternate-reverse;
}
@media (max-width: 1024px) { .iv2-root .iv2-hero-banner-inner { width: 90%; } }
@media (max-width: 600px) {
  .iv2-root .iv2-hero-banner { min-height: 210px; }
  .iv2-root .iv2-hero-banner-inner { width: 100%; padding-inline: 14px; padding-block: var(--iv2-s-6); }
  .iv2-root .iv2-hero-banner::before { width: 220px; height: 220px; top: -60px; right: -40px; }
  .iv2-root .iv2-hero-banner-inner::after { display: none; }
}
.iv2-root .iv2-hero-banner .iv2-meta-tags { display: flex; gap: 9px; flex-wrap: wrap; margin-bottom: 16px; }
/* 標籤:玻璃膠囊 + 內緣微光 + 前導發光圓點 */
.iv2-root .iv2-hero-banner .iv2-tag {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 0.82em; font-weight: 600; letter-spacing: 0.02em;
  padding: 6px 14px 6px 12px; border-radius: var(--iv2-r-pill);
  background: linear-gradient(180deg, rgba(255,255,255,0.14) 0%, rgba(255,255,255,0.06) 100%);
  color: #f2f0ff;
  border: 1px solid rgba(255,255,255,0.26);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.18), 0 4px 14px rgba(0,0,0,0.20);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.iv2-root .iv2-hero-banner .iv2-tag::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: #8574f5; box-shadow: 0 0 8px rgba(133,116,245,0.95);
}
.iv2-root .iv2-hero-banner .iv2-tag-book {
  background: linear-gradient(180deg, rgba(245,215,94,0.20) 0%, rgba(245,215,94,0.08) 100%);
  color: #ffe7a8; border-color: rgba(245,215,94,0.44);
}
.iv2-root .iv2-hero-banner .iv2-tag-book::before {
  background: var(--iv2-accent-amber); box-shadow: 0 0 8px rgba(245,215,94,0.95);
}
/* 標題:白色大標 + 柔光 + 金紫流光底線 */
.iv2-root .iv2-hero-title {
  position: relative;
  color: #fff; font-weight: 800;
  font-size: clamp(28px, 16px + 2.4vw, 50px);
  line-height: 1.16; letter-spacing: -0.02em;
  text-shadow: 0 2px 26px rgba(0,0,0,0.42), 0 0 22px rgba(133,116,245,0.28);
  max-width: 900px; word-break: break-word;
  padding-bottom: 20px;
}
.iv2-root .iv2-hero-title::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 96px; height: 4px; border-radius: 4px;
  background: linear-gradient(90deg, #f5d75e 0%, #e0a93a 26%, #8574f5 64%, #5645d4 100%);
  box-shadow: 0 0 18px rgba(133,116,245,0.55), 0 0 12px rgba(245,215,94,0.40);
}
@media (max-width: 600px) {
  .iv2-root .iv2-hero-title { padding-bottom: 16px; }
  .iv2-root .iv2-hero-title::after { width: 72px; }
}
/* Hero 華麗版動效(僅用 compositor 友善屬性:transform / opacity；標題底線改靜態漸層) */
@keyframes iv2HeroTwinkle { from { opacity: 0.35; } to { opacity: 0.85; } }
@keyframes iv2HeroFloatA { from { transform: translate(0, 0); } to { transform: translate(20px, 14px); } }
@keyframes iv2HeroFloatB { from { transform: translate(0, 0); } to { transform: translate(-18px, -14px); } }
@media (prefers-reduced-motion: reduce) {
  .iv2-root .iv2-hero-banner::after,
  .iv2-root .iv2-hero-banner::before,
  .iv2-root .iv2-hero-banner-inner::before,
  .iv2-root .iv2-hero-banner-inner::after,
  .iv2-root .iv2-hero-title::after { animation: none; }
}

/* ② 簡介(左)+ 購買卡(右)並排 */
.iv2-root .iv2-detail-hero-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) 380px;
  gap: var(--iv2-s-7); align-items: start;
  margin-top: var(--iv2-s-6);
}
.iv2-root .iv2-detail-main { min-width: 0; display: flex; flex-direction: column; gap: var(--iv2-s-5); }
@media (max-width: 980px) {
  .iv2-root .iv2-detail-hero-grid { grid-template-columns: 1fr; gap: var(--iv2-s-5); margin-top: var(--iv2-s-5); }
}

.iv2-root .iv2-hero-cover {
  /* 取消固定 aspect-ratio,讓 img 用自然高度完整顯示(2026-05-19 調整) */
  border-radius: var(--iv2-r-lg);
  overflow: hidden;
  background: linear-gradient(135deg, var(--iv2-primary), var(--iv2-brand-navy-mid));
  position: relative;
  box-shadow: var(--iv2-shadow-xl);
  min-height: 200px;  /* 無 img 時,glyph fallback 仍能撐高度 */
}
.iv2-root .iv2-hero-cover img {
  display: block;
  width: 100%;
  height: auto;  /* 圖片完整顯示,跟著比例自然加高 */
  position: relative;
  z-index: 1;
}
.iv2-root .iv2-hero-cover .iv2-cover-glyph {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  color: rgba(255,255,255,0.92);
  font-size: clamp(48px, 8vw, 96px);
  font-weight: 700;
  letter-spacing: -0.02em;
  z-index: 1;
}
.iv2-root .iv2-hero-cover::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 40px 40px;
  z-index: 0;
  pointer-events: none;
}
@media (max-width: 600px) { .iv2-root .iv2-hero-cover { border-radius: var(--iv2-r-md); } }

/* 簡介卡置於 detail-main 內,間距由 flex gap 控制(覆寫 hero-infos 自身 margin-top) */
.iv2-root .iv2-detail-main .iv2-hero-infos { margin-top: 0; }

/* section-head 精緻化:eyebrow 前導漸層短線,標題更有層次與品牌感 */
.iv2-root .iv2-section-head .iv2-eyebrow { display: inline-flex; align-items: center; gap: 10px; }
.iv2-root .iv2-section-head .iv2-eyebrow::before {
  content: ""; flex: none;
  width: 26px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--iv2-primary), var(--iv2-primary-deep));
}

/* hero-infos:對應舊版 <p id="plan_infos">
   Apple 純淨派:去外框、移除彩色頂條與右上裝飾圓圈、改雙層柔和陰影 */
.iv2-root .iv2-hero-infos {
  position: relative;
  isolation: isolate;
  margin-top: var(--iv2-s-4);
  padding: var(--iv2-s-5);
  background: linear-gradient(135deg, #ffffff 0%, #ffffff 55%, rgba(236, 233, 251, 0.55) 100%);
  border: none;
  border-radius: var(--iv2-r-md);
  box-shadow: 0 1px 2px rgba(15,23,48,0.04), 0 10px 30px rgba(15,23,48,0.06);
  font-size: 0.91em;
  overflow: hidden;
}
/* Apple 風純淨派:移除彩色頂條 */
.iv2-root .iv2-hero-infos::before { display: none; }
/* Apple 風純淨派:移除右上裝飾大圓圈 */
.iv2-root .iv2-hero-infos::after { display: none; }
.iv2-root .iv2-hero-infos > * { position: relative; z-index: 2; }
.iv2-root .iv2-hero-infos h2,
.iv2-root .iv2-hero-infos h3 { margin-top: var(--iv2-s-3); }
.iv2-root .iv2-hero-infos p:last-child { margin-bottom: 0; }
.iv2-root .iv2-hero-infos .iv2-mechanism-btn { margin-block: var(--iv2-s-2); }
@media (max-width: 600px) {
  .iv2-root .iv2-hero-infos {
    padding: 18px 16px;
    font-size: 0.89em;
    border-radius: var(--iv2-r-sm);
  }
}

/* ============================================================
   buy-panel(2026-06-10 重新設計:精緻化定價卡 / 分區式結構)
   - 價格頭部(淡紫漸層+限時優惠 eyebrow)/ CTA(漸層光暈)/ 權益清單(圓形勾選)
   - 結構不動(#h0Price #h1Price #wasLine #buyCourse #goShopping 由 feature.js 控制)
   ============================================================ */
.iv2-root .iv2-buy-panel {
  position: sticky; top: 90px;
  background: var(--iv2-canvas);
  border: none;
  border-radius: var(--iv2-r-lg);
  padding: 0;
  box-shadow: 0 1px 2px rgba(15,23,48,0.04), 0 10px 30px rgba(15,23,48,0.06);
  overflow: hidden;
}
/* Apple 風純淨派:移除彩色頂條 */
.iv2-root .iv2-buy-panel::before { display: none; }

/* ---- 價格頭部區:深藍寶石暗色 + 金色優惠價(精品/金榜風) ---- */
.iv2-root .iv2-buy-panel .iv2-price-row {
  position: relative; isolation: isolate;
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  text-align: center;
  padding: 38px 28px 34px;
  color: #fff;
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(245, 215, 94, 0.14) 0%, transparent 55%),
    linear-gradient(158deg, #0d1838 0%, #16244a 55%, #1f3160 100%);
}
/* 角落柔光 */
.iv2-root .iv2-buy-panel .iv2-price-row::after {
  content: ""; position: absolute; z-index: -1; inset: 0;
  background: radial-gradient(60% 50% at 85% 110%, rgba(86, 69, 212, 0.35) 0%, transparent 70%);
}
/* 限時優惠 eyebrow:金色描邊膠囊(再放大) */
.iv2-root .iv2-buy-panel .iv2-price-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 18px; border-radius: var(--iv2-r-pill);
  border: 1px solid rgba(245, 215, 94, 0.45);
  background: rgba(245, 215, 94, 0.10);
  color: var(--iv2-accent-amber);
  font-size: 1.3rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
}
.iv2-root .iv2-buy-panel .iv2-price-eyebrow svg { width: 22px; height: 22px; }
.iv2-root .iv2-buy-panel .iv2-price-line { display: flex; align-items: baseline; justify-content: center; gap: 10px; flex-wrap: wrap; }
/* 定價:淺色刪除線(再放大) */
.iv2-root .iv2-buy-panel .iv2-price-line-was { gap: 9px; }
.iv2-root .iv2-buy-panel .iv2-price-label {
  flex: none; font-size: 1.4rem; font-weight: 500;
  color: rgba(255, 255, 255, 0.62); letter-spacing: 0.04em;
}
.iv2-root .iv2-buy-panel .iv2-price-was {
  font-size: 1.6rem; color: rgba(255, 255, 255, 0.55);
  text-decoration: line-through; text-decoration-thickness: 1px;
  font-variant-numeric: tabular-nums;
}
/* 優惠價:紅膠囊標籤(再放大)+ 金色漸層巨大數字 */
.iv2-root .iv2-buy-panel .iv2-price-line-now { align-items: center; gap: 15px; margin-top: 2px; }
.iv2-root .iv2-buy-panel .iv2-price-label-now {
  color: #fff;
  background: linear-gradient(135deg, #ff5a78 0%, var(--iv2-accent-red) 100%);
  font-size: 1.5rem; font-weight: 700; letter-spacing: 0.06em;
  padding: 8px 20px; border-radius: var(--iv2-r-pill);
  box-shadow: 0 4px 14px rgba(255, 56, 92, 0.40);
}
.iv2-root .iv2-buy-panel .iv2-price-now {
  font-size: 5.8rem; font-weight: 800;
  letter-spacing: -0.03em;
  /* line-height >= 1 + 底部留白:避免 background-clip:text 將金色數字下緣削掉 */
  line-height: 1.12; padding-bottom: 0.06em;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(135deg, #fff1c2 0%, #f5d75e 42%, #e3a92f 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  filter: drop-shadow(0 3px 16px rgba(245, 215, 94, 0.30));
}
.iv2-root .iv2-buy-panel .iv2-price-unit {
  font-size: 0.3em; font-weight: 600;
  color: rgba(255, 255, 255, 0.78); -webkit-text-fill-color: rgba(255, 255, 255, 0.78);
  letter-spacing: 0.02em; margin-left: 3px;
}

/* ---- CTA 區 ---- */
.iv2-root .iv2-buy-panel .iv2-actions {
  display: flex; flex-direction: column; gap: 11px;
  padding: 22px 24px 4px;
}
.iv2-root .iv2-buy-panel .iv2-buy-btn,
.iv2-root .iv2-buy-panel .iv2-go-shopping-btn { width: 100%; }
/* 主要 CTA:品牌漸層 + 光暈 + hover 浮起 + 光掃過 */
.iv2-root .iv2-buy-panel .iv2-buy-btn {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, var(--iv2-primary) 0%, var(--iv2-primary-deep) 100%);
  box-shadow: 0 6px 18px rgba(86, 69, 212, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.18);
  transition: transform .2s ease, box-shadow .2s ease;
}
.iv2-root .iv2-buy-panel .iv2-buy-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(86, 69, 212, 0.40), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}
.iv2-root .iv2-buy-panel .iv2-buy-btn:active { transform: translateY(0); }
.iv2-root .iv2-buy-panel .iv2-buy-btn::after {
  content: ""; position: absolute; top: 0; left: -120%; width: 60%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  transform: skewX(-18deg); transition: left .6s ease; pointer-events: none;
}
.iv2-root .iv2-buy-panel .iv2-buy-btn:hover::after { left: 130%; }
/* 直接結帳:精緻描邊,hover 轉品牌色 */
.iv2-root .iv2-buy-panel .iv2-go-shopping-btn {
  background: var(--iv2-canvas);
  border: 1.5px solid var(--iv2-hairline-strong);
  color: var(--iv2-charcoal); font-weight: 600;
  transition: border-color .2s ease, color .2s ease, background .2s ease, transform .2s ease;
}
.iv2-root .iv2-buy-panel .iv2-go-shopping-btn:hover {
  border-color: var(--iv2-primary); color: var(--iv2-primary);
  background: var(--iv2-primary-soft); transform: translateY(-1px);
}

/* ---- 權益清單:精緻特色 chip,綠色漸層勾選獎章 + hover 浮起 ---- */
.iv2-root .iv2-buy-panel .iv2-perks {
  display: flex; flex-direction: column; gap: 10px;
  padding: 22px 22px 26px;
  margin-top: 16px;
  border-top: 1px solid var(--iv2-hairline-soft);
}
.iv2-root .iv2-buy-panel .iv2-perk {
  display: flex; gap: 13px; align-items: flex-start;
  padding: 13px 15px; border-radius: 14px;
  background: linear-gradient(180deg, #ffffff 0%, var(--iv2-surface-soft) 100%);
  border: none;
  font-size: 1.06em; color: var(--iv2-charcoal); line-height: 1.6;
  transition: transform .18s ease, box-shadow .18s ease;
}
.iv2-root .iv2-buy-panel .iv2-perk:hover {
  transform: translateX(3px);
  box-shadow: 0 5px 16px rgba(15, 23, 48, 0.07);
}
/* 綠色漸層圓形獎章 + 內外光 */
.iv2-root .iv2-buy-panel .iv2-perk svg {
  flex-shrink: 0; width: 26px; height: 26px; margin-top: 1px;
  padding: 6px; border-radius: 50%; box-sizing: border-box;
  color: #fff;
  background: linear-gradient(135deg, #34d957 0%, var(--iv2-success) 100%);
  box-shadow: 0 3px 9px rgba(26, 174, 57, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.45);
}
@media (max-width: 980px) {
  .iv2-root .iv2-buy-panel { position: static; border-radius: var(--iv2-r-md); }
  .iv2-root .iv2-buy-panel .iv2-price-row { padding: 30px 20px 26px; }
  .iv2-root .iv2-buy-panel .iv2-price-eyebrow { font-size: 1.16rem; }
  .iv2-root .iv2-buy-panel .iv2-price-label { font-size: 1.22rem; }
  .iv2-root .iv2-buy-panel .iv2-price-was { font-size: 1.38rem; }
  .iv2-root .iv2-buy-panel .iv2-price-label-now { font-size: 1.3rem; }
  .iv2-root .iv2-buy-panel .iv2-price-now { font-size: 4.3rem; }
  .iv2-root .iv2-buy-panel .iv2-actions { padding: 18px 18px 4px; }
  .iv2-root .iv2-buy-panel .iv2-perks { padding: 16px 16px 22px; }
  .iv2-root .iv2-buy-panel .iv2-perk { font-size: 1em; }
}

/* buyCourse 按鈕 4 種態(覆蓋預設漸層,沿用既有語意色) */
.iv2-root .iv2-buy-panel .iv2-buy-btn.is-added { background: var(--iv2-brand-navy); box-shadow: 0 6px 18px rgba(10, 21, 48, 0.28); color: #fff; }
.iv2-root .iv2-buy-panel .iv2-buy-btn.is-added:hover { background: var(--iv2-brand-navy-mid); }
.iv2-root .iv2-buy-panel .iv2-buy-btn.is-purchased { background: var(--iv2-success); box-shadow: 0 6px 18px rgba(26, 174, 57, 0.28); color: #fff; }
.iv2-root .iv2-buy-panel .iv2-buy-btn.is-purchased:hover { background: #168f30; }
.iv2-root .iv2-buy-panel .iv2-buy-btn.is-disabled { background: var(--iv2-muted); box-shadow: none; color: #fff; cursor: not-allowed; pointer-events: none; opacity: 0.7; }
/* 非預設態關閉光掃過特效 */
.iv2-root .iv2-buy-panel .iv2-buy-btn.is-added::after,
.iv2-root .iv2-buy-panel .iv2-buy-btn.is-purchased::after,
.iv2-root .iv2-buy-panel .iv2-buy-btn.is-disabled::after { display: none; }

/* ============ 通用 section ============ */
.iv2-root .iv2-section { padding-block: var(--iv2-s-8); border-top: 1px solid var(--iv2-hairline-soft); }
.iv2-root .iv2-section-soft { background: var(--iv2-surface-soft); }
.iv2-root .iv2-section-head { margin-bottom: var(--iv2-s-5); }
.iv2-root .iv2-section-head .iv2-h2 { margin-top: 8px; }
.iv2-root .iv2-section-head .iv2-lead { margin-top: 10px; max-width: 720px; }
@media (max-width: 600px) { .iv2-root .iv2-section { padding-block: var(--iv2-s-7); } }

/* 富文本 content(用於 plan_infos / contents / teacher_infos)*/
.iv2-root .iv2-rich-content { line-height: 1.8; color: var(--iv2-charcoal); }
/* 商品介紹區(contents,排除 Hero 簡介卡)放大內文 + 加粗字重。
   ★必須明確覆寫全域干擾,否則段落/引言字級被站台舊樣式鎖住:
     - style.css 有 p{font-size:13px} → 不覆寫的話所有 <p> 只剩 13px
     - bootstrap.min.css 有 blockquote{font-size:17.5px} → callout 文字會被縮小
   容器設 1.15em 讓 li/td/h3 一起放大,p/blockquote 設 1em 拉回與容器同級(=19.55px)。 */
.iv2-root .iv2-rich-content:not(.iv2-hero-infos) { font-size: 1.05em; font-weight: 500; }
.iv2-root .iv2-rich-content:not(.iv2-hero-infos) p,
.iv2-root .iv2-rich-content:not(.iv2-hero-infos) li,
.iv2-root .iv2-rich-content:not(.iv2-hero-infos) blockquote { font-size: 1em; }
/* 產品特色連結:比照產品資訊教材連結(紫色 primary + 粗體 + 底線) */
.iv2-root .iv2-rich-content:not(.iv2-hero-infos) a { color: var(--iv2-primary); font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
.iv2-root .iv2-rich-content:not(.iv2-hero-infos) a:hover { color: var(--iv2-primary-deep); }
.iv2-root .iv2-rich-content h2,
.iv2-root .iv2-rich-content h3 {
  color: var(--iv2-brand-navy);
  margin-top: var(--iv2-s-5);
  margin-bottom: var(--iv2-s-3);
  font-weight: 700;
}
.iv2-root .iv2-rich-content h3 { font-size: 1.15em; }
.iv2-root .iv2-rich-content p { margin-bottom: var(--iv2-s-3); }
.iv2-root .iv2-rich-content ul,
.iv2-root .iv2-rich-content ol { padding-left: 1.5em; margin-bottom: var(--iv2-s-3); }
.iv2-root .iv2-rich-content li { margin-bottom: 6px; line-height: 1.7; }
.iv2-root .iv2-rich-content strong { color: var(--iv2-ink); }
.iv2-root .iv2-rich-content table {
  border-collapse: collapse; width: 100%;
  margin-block: var(--iv2-s-3); font-size: 0.95em;
}
.iv2-root .iv2-rich-content table th,
.iv2-root .iv2-rich-content table td { padding: 10px 14px; border: 1px solid var(--iv2-hairline); }
.iv2-root .iv2-rich-content table th { background: var(--iv2-surface); font-weight: 700; }
.iv2-root .iv2-rich-content table tr:nth-child(even) td { background: var(--iv2-surface-soft); }
.iv2-root .iv2-rich-content img {
  max-width: 100%; height: auto;
  border-radius: var(--iv2-r-sm);
  margin-block: var(--iv2-s-3);
}
.iv2-root .iv2-rich-content blockquote {
  border-left: 4px solid var(--iv2-primary);
  padding: 10px 18px;
  background: var(--iv2-primary-soft);
  color: var(--iv2-charcoal);
  margin: var(--iv2-s-3) 0;
  border-radius: 0 var(--iv2-r-sm) var(--iv2-r-sm) 0;
}
@media (max-width: 600px) {
  .iv2-root .iv2-rich-content { line-height: 1.75; font-size: 0.96em; }
  .iv2-root .iv2-rich-content table {
    font-size: 0.85em; display: block; overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

/* ============================================================
   v2 文案優化元件(2026-06-10)— plan_infos 簡介卡 + contents 購課須知
   只新增 class;既有商品未用到這些 class 者完全不受影響。
   ============================================================ */

/* ---- plan_infos:簡介卡資訊列(嵌在 .iv2-hero-infos 內,不另加外框)---- */
.iv2-root .iv2-hero-infos .iv2-pi-hd { display: flex; align-items: center; gap: 11px; flex-wrap: wrap; margin: 2px 0 14px; }
.iv2-root .iv2-hero-infos .iv2-pi-t { font-weight: 800; color: var(--iv2-brand-navy); font-size: 1.08em; }
.iv2-root .iv2-hero-infos .iv2-pi-promo { display: inline-flex; align-items: center; background: var(--iv2-accent-red); color: #fff; font-weight: 700; padding: 4px 12px; border-radius: 7px; font-size: 0.82em; }
.iv2-root .iv2-hero-infos .iv2-pi-row { display: flex; gap: 13px; align-items: center; padding: 11px 0; border-bottom: 1px dashed var(--iv2-hairline); }
.iv2-root .iv2-hero-infos .iv2-pi-row:last-of-type { border-bottom: none; }
.iv2-root .iv2-hero-infos .iv2-pi-ic { flex: none; width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: var(--iv2-primary-soft); color: var(--iv2-primary-deep); }
.iv2-root .iv2-hero-infos .iv2-pi-ic svg { width: 19px; height: 19px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; display: block; }
.iv2-root .iv2-hero-infos .iv2-pi-k { flex: none; width: 88px; font-weight: 700; color: var(--iv2-brand-navy); }
.iv2-root .iv2-hero-infos .iv2-pi-v { flex: 1; min-width: 0; color: var(--iv2-charcoal); }
.iv2-root .iv2-hero-infos .iv2-pi-v a { color: var(--iv2-primary); font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
.iv2-root .iv2-hero-infos .iv2-pi-hot { color: var(--iv2-accent-red); font-weight: 700; }
@media (max-width: 600px) {
  .iv2-root .iv2-hero-infos .iv2-pi-ic { width: 34px; height: 34px; border-radius: 10px; }
  .iv2-root .iv2-hero-infos .iv2-pi-ic svg { width: 17px; height: 17px; }
  .iv2-root .iv2-hero-infos .iv2-pi-k { width: 72px; font-size: 0.96em; }
}

/* ---- contents:章節編號徽章(h3.iv2-h3-num > .iv2-nbadge)---- */
.iv2-root .iv2-rich-content h3.iv2-h3-num { display: flex; align-items: center; }
.iv2-root .iv2-rich-content .iv2-nbadge {
  display: inline-grid; place-items: center; flex: none;
  width: 27px; height: 27px; margin-right: 11px; border-radius: 8px;
  background: var(--iv2-primary); color: #fff; font-size: 0.7em; font-weight: 800;
}

/* ---- 精緻 callout(覆寫 blockquote:icon 徽章 + 漸層底 + 立體側邊條)---- */
.iv2-root .iv2-rich-content blockquote {
  position: relative; display: flex; gap: 13px; align-items: center;
  margin: 16px 0; padding: 15px 18px 15px 19px;
  border: 1px solid rgba(86, 69, 212, 0.18); border-left: none;
  border-radius: var(--iv2-r-md);
  background: linear-gradient(135deg, rgba(86, 69, 212, 0.12) 0%, rgba(86, 69, 212, 0.035) 58%, rgba(255, 255, 255, 0.6) 100%), var(--iv2-canvas);
  box-shadow: 0 6px 18px rgba(86, 69, 212, 0.10); color: var(--iv2-charcoal);
}
.iv2-root .iv2-rich-content blockquote::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
  border-radius: var(--iv2-r-md) 0 0 var(--iv2-r-md);
  background: linear-gradient(180deg, var(--iv2-primary), var(--iv2-primary-deep));
}
.iv2-root .iv2-rich-content blockquote .iv2-cic {
  flex: none; width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--iv2-primary), var(--iv2-primary-deep));
  color: #fff; box-shadow: 0 4px 11px rgba(86, 69, 212, 0.32);
}
.iv2-root .iv2-rich-content blockquote .iv2-cic svg { width: 19px; height: 19px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; display: block; }
.iv2-root .iv2-rich-content blockquote .iv2-cbd { flex: 1; min-width: 0; }
.iv2-root .iv2-rich-content blockquote .iv2-cbd strong { color: var(--iv2-primary-deep); }
.iv2-root .iv2-rich-content blockquote.iv2-warn {
  border-color: rgba(221, 91, 0, 0.20);
  background: linear-gradient(135deg, rgba(245, 180, 80, 0.20) 0%, rgba(245, 180, 80, 0.06) 58%, rgba(255, 255, 255, 0.6) 100%), var(--iv2-canvas);
  box-shadow: 0 6px 18px rgba(221, 91, 0, 0.10);
}
.iv2-root .iv2-rich-content blockquote.iv2-warn::before { background: linear-gradient(180deg, #f5b450, var(--iv2-warning)); }
.iv2-root .iv2-rich-content blockquote.iv2-warn .iv2-cic { background: linear-gradient(135deg, #f5b450, var(--iv2-warning)); box-shadow: 0 4px 11px rgba(221, 91, 0, 0.28); }
.iv2-root .iv2-rich-content blockquote.iv2-warn .iv2-cbd strong { color: var(--iv2-warning); }

/* ---- 精緻表格(.iv2-tablewrap):深藍漸層表頭 + 無雜框線 + 圓角外框 + 斑馬紋 + 首欄強調 ---- */
.iv2-root .iv2-rich-content .iv2-tablewrap { margin: 16px 0; overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--iv2-hairline); border-radius: var(--iv2-r-md); box-shadow: var(--iv2-shadow-sm); }
.iv2-root .iv2-rich-content .iv2-tablewrap table { margin: 0; width: 100%; min-width: 0; border-collapse: separate; border-spacing: 0; font-size: 1em; }
.iv2-root .iv2-rich-content .iv2-tablewrap th { background: linear-gradient(135deg, var(--iv2-brand-navy), var(--iv2-brand-navy-mid)); color: #fff; font-weight: 700; text-align: left; padding: 13px 16px; border: none; white-space: nowrap; }
.iv2-root .iv2-rich-content .iv2-tablewrap td { padding: 12px 16px; border: none; border-bottom: 1px solid var(--iv2-hairline-soft); background: transparent; color: var(--iv2-charcoal); }
.iv2-root .iv2-rich-content .iv2-tablewrap tr:last-child td { border-bottom: none; }
.iv2-root .iv2-rich-content .iv2-tablewrap tr:nth-child(even) td { background: var(--iv2-surface-soft); }
.iv2-root .iv2-rich-content .iv2-tablewrap td:first-child { font-weight: 600; color: var(--iv2-brand-navy); }
.iv2-root .iv2-rich-content td .iv2-ti { display: inline-flex; align-items: center; gap: 9px; font-weight: 600; color: var(--iv2-brand-navy); }
.iv2-root .iv2-rich-content td .iv2-ti svg { flex: none; width: 17px; height: 17px; color: var(--iv2-primary); stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---- 12 科晶片盒(.iv2-subjbox / .iv2-chip)---- */
.iv2-root .iv2-rich-content .iv2-subjbox { background: linear-gradient(135deg, var(--iv2-surface), var(--iv2-surface-soft)); border: none; border-radius: var(--iv2-r-md); padding: 15px 17px; margin: 14px 0; box-shadow: 0 1px 2px rgba(15,23,48,0.04), 0 10px 30px rgba(15,23,48,0.06); }
.iv2-root .iv2-rich-content .iv2-subjlead { font-weight: 700; color: var(--iv2-brand-navy); }
.iv2-root .iv2-rich-content .iv2-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 11px; }
/* Apple 純淨派:chip 去外框,保留淡色底 */
.iv2-root .iv2-rich-content .iv2-chip { background: var(--iv2-surface-soft); border: none; border-radius: var(--iv2-r-pill); padding: 5px 13px; font-size: 0.9em; color: var(--iv2-charcoal); font-weight: 600; }

/* ---- 長圖統一框架(.iv2-figbox)— 置中 + 最大寬度 + 圓角 + caption ---- */
.iv2-root .iv2-rich-content .iv2-figbox { margin: 18px auto; max-width: 760px; }
.iv2-root .iv2-rich-content .iv2-figbox img { display: block; width: 100%; height: auto; border-radius: var(--iv2-r-md); border: 1px solid var(--iv2-hairline); box-shadow: var(--iv2-shadow-sm); margin: 0; }
.iv2-root .iv2-rich-content .iv2-figbox figcaption { margin-top: 9px; text-align: center; color: var(--iv2-slate); font-size: 0.85em; }

/* ---- 聯絡方式 icon 清單(.iv2-contact)---- */
.iv2-root .iv2-rich-content .iv2-contact { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 10px; }
.iv2-root .iv2-rich-content .iv2-contact li { display: flex; align-items: center; gap: 12px; margin: 0; }
.iv2-root .iv2-rich-content .iv2-contact .iv2-cic2 { flex: none; width: 36px; height: 36px; border-radius: 10px; background: var(--iv2-primary-soft); color: var(--iv2-primary-deep); display: grid; place-items: center; }
.iv2-root .iv2-rich-content .iv2-contact .iv2-cic2 svg { width: 17px; height: 17px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* 機制說明按鈕(plan_infos 內由 feature.js 動態生成) */
.iv2-root .iv2-mechanism-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px;
  background: var(--iv2-primary); color: #fff;
  border-radius: var(--iv2-r-pill);
  font-weight: 600; font-size: 0.92em;
  margin-block: var(--iv2-s-3);
  cursor: pointer; transition: background .15s;
  border: none;
}
.iv2-root .iv2-mechanism-btn:hover { background: var(--iv2-primary-pressed); color: #fff; }
.iv2-root .iv2-mechanism-btn::before { content: "ℹ"; font-size: 1.1em; }

/* ============ 課程架構 ============ */
.iv2-root .iv2-struct-shell {
  background: var(--iv2-canvas);
  border: none;
  border-radius: var(--iv2-r-md);
  padding: var(--iv2-s-5);
  box-shadow: 0 1px 2px rgba(15,23,48,0.04), 0 10px 30px rgba(15,23,48,0.06);
}
.iv2-root .iv2-struct-note { font-size: 0.85em; color: var(--iv2-slate); margin-top: 10px; }
@media (max-width: 600px) { .iv2-root .iv2-struct-shell { padding: var(--iv2-s-4); } }

/* ============ 試聽影片 grid ============ */
.iv2-root .iv2-trial-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: var(--iv2-s-5);
}
@media (max-width: 900px) { .iv2-root .iv2-trial-grid { grid-template-columns: repeat(2, 1fr); gap: var(--iv2-s-4); } }
@media (max-width: 600px) { .iv2-root .iv2-trial-grid { grid-template-columns: 1fr; } }

.iv2-root .iv2-trial-card {
  background: var(--iv2-canvas);
  border: none;
  border-radius: var(--iv2-r-md);
  overflow: hidden;
  transition: transform .25s, box-shadow .25s;
  cursor: pointer;
  /* Apple 純淨派:去外框,改雙層柔和陰影 */
  box-shadow: 0 1px 2px rgba(15,23,48,0.04), 0 10px 30px rgba(15,23,48,0.06);
}
.iv2-root .iv2-trial-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 10px rgba(15,23,48,0.05), 0 22px 48px rgba(15,23,48,0.12);
}
.iv2-root .iv2-trial-cover {
  aspect-ratio: 16 / 9;
  position: relative;
  background: linear-gradient(135deg, var(--iv2-brand-navy-mid), var(--iv2-primary));
  overflow: hidden;
}
.iv2-root .iv2-trial-cover img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.iv2-root .iv2-play-overlay {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  background: rgba(0,0,0,0.25);
  transition: background .15s;
  z-index: 1;
}
.iv2-root .iv2-trial-card:hover .iv2-play-overlay { background: rgba(0,0,0,0.45); }
.iv2-root .iv2-play-btn {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: rgba(255,255,255,0.95);
  color: var(--iv2-primary-deep);
  display: grid; place-items: center;
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}
.iv2-root .iv2-play-btn svg { width: 22px; height: 22px; fill: currentColor; margin-left: 3px; }
.iv2-root .iv2-trial-body { padding: var(--iv2-s-4); }
.iv2-root .iv2-trial-body h4 {
  font-size: 0.98em; font-weight: 600;
  color: var(--iv2-brand-navy);
  line-height: 1.5; word-break: break-word;
}
.iv2-root .iv2-trial-meta { font-size: 0.78em; color: var(--iv2-slate); margin-top: 6px; }

/* lightbox(點試聽彈出 YouTube embed) */
.iv2-root .iv2-lightbox-mask {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.8);
  z-index: 200;
  display: none; align-items: center; justify-content: center;
  padding: 20px;
}
.iv2-root .iv2-lightbox-mask.is-open { display: flex; }
.iv2-root .iv2-lightbox-frame {
  width: min(960px, 95vw);
  aspect-ratio: 16/9;
  background: #000;
  border-radius: var(--iv2-r-md);
  overflow: hidden;
  position: relative;
  box-shadow: 0 24px 60px rgba(0,0,0,0.5);
}
.iv2-root .iv2-lightbox-frame iframe { width: 100%; height: 100%; border: 0; }
.iv2-root .iv2-lightbox-close {
  position: absolute; top: -48px; right: 0;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.9); color: var(--iv2-ink);
  display: grid; place-items: center;
  border: none; cursor: pointer;
  font-size: 20px; font-weight: 700;
}
@media (max-width: 600px) {
  .iv2-root .iv2-lightbox-mask { padding: 12px; }
  .iv2-root .iv2-lightbox-close { top: -44px; }
}

/* ============ 老師區塊 ============ */
.iv2-root .iv2-teacher-shell {
  background: var(--iv2-canvas);
  border: none;
  border-radius: var(--iv2-r-md);
  padding: var(--iv2-s-6);
  box-shadow: 0 1px 2px rgba(15,23,48,0.04), 0 10px 30px rgba(15,23,48,0.06);
}
@media (max-width: 600px) { .iv2-root .iv2-teacher-shell { padding: var(--iv2-s-4); } }

/* ============ 浮動購物車 + 手機底部固定 buy-bar ============ */
.iv2-root .iv2-float-cart {
  /* 統一右側浮動堆疊:LINE 上方一格(置頂鈕 + LINE + 兩段間距);tokens 定義於 style.css :root */
  position: fixed; right: var(--fab-right); top: auto;
  bottom: calc(var(--fab-base) + var(--fab-h-top) + var(--fab-gap) + var(--fab-h-line) + var(--fab-gap));
  z-index: 100;
  width: 58px; height: 58px;
  background: var(--iv2-accent-red); color: #fff;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(255,56,92,0.4);
  display: grid; place-items: center;
  transition: transform .15s, box-shadow .15s;
}
.iv2-root .iv2-float-cart:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(255,56,92,0.5);
}
.iv2-root .iv2-float-cart svg {
  width: 24px; height: 24px;
  stroke: #fff; fill: none;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
.iv2-root .iv2-float-cart .iv2-count {
  position: absolute; top: -4px; right: -4px;
  min-width: 22px; height: 22px; padding: 0 6px;
  background: var(--iv2-brand-navy); color: #fff;
  border: 2px solid #fff;
  border-radius: 999px;
  font-size: 0.7em; font-weight: 700;
  display: grid; place-items: center; line-height: 1;
}
.iv2-root .iv2-float-cart .iv2-tooltip {
  position: absolute; right: 100%; top: 50%;
  transform: translateY(-50%);
  margin-right: 12px;
  background: var(--iv2-brand-navy); color: #fff;
  padding: 8px 14px;
  border-radius: var(--iv2-r-pill);
  font-size: 0.78em; font-weight: 600;
  white-space: nowrap;
  opacity: 0; pointer-events: none;
  transition: opacity .2s, transform .2s;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.iv2-root .iv2-float-cart:hover .iv2-tooltip {
  opacity: 1; transform: translateY(-50%) translateX(-4px);
}
@media (max-width: 980px) {
  /* 窄頁面有底部 buy-strip:整組右側浮動鈕(置頂鈕/LINE/購物車)一起上移避開,改用 --fab-base 控制 */
  :root { --fab-base: calc(86px + env(safe-area-inset-bottom)); }
  .iv2-root .iv2-float-cart { right: var(--fab-right); width: 52px; height: 52px; }
  .iv2-root .iv2-float-cart svg { width: 22px; height: 22px; }
  .iv2-root .iv2-float-cart .iv2-tooltip { display: none; }
}

/* ============ 懸浮 buy-strip(< 980px 顯示;只含價格 + 加入購物車,無標題)============ */
.iv2-root .iv2-buy-fixed {
  position: fixed; left: 0; right: 0; bottom: 0;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--iv2-hairline);
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  z-index: 90;
  display: none; align-items: center; justify-content: space-between;
  gap: 12px;
  transform: translateY(100%);
  transition: transform .25s ease;
}
.iv2-root .iv2-buy-fixed.is-visible { transform: translateY(0); }
.iv2-root .iv2-buy-fixed .iv2-bf-prices { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.iv2-root .iv2-buy-fixed .iv2-bf-now { font-weight: 700; font-size: 1.25em; color: var(--iv2-accent-red); line-height: 1; }
.iv2-root .iv2-buy-fixed .iv2-bf-was { color: var(--iv2-muted); text-decoration: line-through; font-size: 0.85em; }
.iv2-root .iv2-buy-fixed .iv2-bf-actions { flex-shrink: 0; }
.iv2-root .iv2-buy-fixed .iv2-bf-actions .iv2-btn { height: 44px; padding: 0 22px; font-size: 0.95em; }

/* buy-strip 內按鈕 4 種態(同 .iv2-buy-btn)*/
.iv2-root .iv2-buy-fixed .iv2-btn.is-added { background: var(--iv2-brand-navy); color: #fff; }
.iv2-root .iv2-buy-fixed .iv2-btn.is-purchased { background: var(--iv2-success); color: #fff; }
.iv2-root .iv2-buy-fixed .iv2-btn.is-disabled { background: var(--iv2-muted); color: #fff; pointer-events: none; opacity: 0.7; }

@media (max-width: 980px) {
  .iv2-root .iv2-buy-fixed { display: flex; }
  body { padding-bottom: 72px; }  /* 預留底部 strip 空間,避免遮住內容 */
}

/* ============ myModal 機制說明彈窗 — 響應式覆寫(2026-05-19 補) ============
   原 feature.aspx head 區段有完整響應式 modal CSS,改寫時被移除,造成手機版彈窗超出頁面。
   這裡只覆寫 modal-dialog / modal-body 的尺寸,不動內部已有的字色 / 排版樣式。 */
#myModal .modal-dialog {
  margin: 30px auto;
  max-width: 70%;
  width: auto;
}
#myModal .modal-body {
  max-height: 60vh;
  overflow-y: auto;
}
@media (min-width: 769px) and (max-width: 1024px) {
  #myModal .modal-dialog { max-width: 80%; }
}
@media (min-width: 481px) and (max-width: 768px) {
  #myModal .modal-dialog { max-width: 90%; margin: 20px auto; }
  #myModal .modal-body { max-height: 65vh; padding: 16px; }
}
@media (max-width: 480px) {
  #myModal .modal-dialog {
    width: calc(100% - 20px) !important;
    max-width: calc(100% - 20px) !important;
    margin: 10px auto !important;
  }
  #myModal .modal-body { max-height: 70vh; padding: 14px; font-size: 14px; }
  #myModal .modal-title { font-size: 20px !important; line-height: 1.4; }
}
