/* ==========================================================================
   一個人的 AI 團隊：預售頁專屬強化樣式
   載入順序在 course-ai-content-factory.css 之後，只覆寫本頁。
   設計原則：華麗但不廉價。用深綠與金堆疊層次，不用紅黃閃爍那一套，
   否則會跟她既有的質感定位打架。
   ========================================================================== */

:root {
  --vs-ink: #0f2e27;
  --vs-gold: #c0965c;
  --vs-gold-lt: #e7d3b3;
  --vs-gold-hi: #f0dcbb;
  --vs-alert: #b4643c;   /* 代價數字用的磚紅，比正紅收斂 */
  --vs-alert-lt: #d9895f;
  --promo-ink: #07110f;
  --promo-lime: #c8ff00;
  --promo-red: #ef3d38;
}

/* --------------------------------------------------------------------------
   0. 宣傳主視覺：黑底螢光綠只出現在四張海報，成為整頁唯一的強烈識別
   -------------------------------------------------------------------------- */
.promo-poster {
  position: relative;
  display: block;
  margin: 0;
  padding: 7px;
  border: 1px solid rgba(200, 255, 0, .72);
  border-radius: 16px;
  background: var(--promo-ink);
  box-shadow: 11px 11px 0 var(--promo-lime), 0 24px 58px rgba(7, 17, 15, .2);
  color: inherit;
  text-decoration: none;
}
.promo-poster::after {
  content: "";
  position: absolute;
  right: -11px;
  bottom: -11px;
  width: 44px;
  height: 4px;
  background: var(--promo-red);
}
.promo-poster img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  border-radius: 10px;
  object-fit: contain;
  background: var(--promo-ink);
}

.hero-promo-rail {
  position: sticky;
  top: 94px;
  min-width: 0;
}
.promo-poster--hero {
  width: calc(100% - 30px);
  margin-left: auto;
  transform: rotate(-1deg);
}
.hero-promo-rail .price-card {
  position: relative;
  z-index: 2;
  top: auto;
  margin: -38px 20px 0 0;
}

.promo-story-grid,
.cost-story-grid,
.closing-promo-grid {
  display: grid;
  grid-template-columns: minmax(310px, .78fr) minmax(0, 1.22fr);
  gap: clamp(36px, 5vw, 72px);
  align-items: center;
}
.promo-poster--story,
.promo-poster--cost {
  width: 100%;
  max-width: 440px;
}

.cost-story-grid {
  align-items: start;
}
.cost-story-grid .cost-grid {
  grid-template-columns: minmax(0, 1fr);
  margin-top: 0;
}
.cost-story-grid .cost-item {
  padding: 22px 24px 20px;
}
.cost-story-grid .cost-item .cost-num {
  font-size: clamp(42px, 4vw, 58px);
}
.cost-story-grid .cost-note {
  margin-top: 18px;
}

.closing-band--promo {
  padding: clamp(34px, 4.8vw, 62px);
  text-align: left;
}
.closing-promo-grid {
  grid-template-columns: minmax(280px, .76fr) minmax(0, 1.24fr);
}
.promo-poster--cta {
  width: 100%;
  max-width: 400px;
  transition: transform .2s ease, box-shadow .2s ease;
}
.promo-poster--cta:hover {
  transform: translateY(-5px) rotate(-.5deg);
  box-shadow: 13px 16px 0 var(--promo-lime), 0 30px 68px rgba(0, 0, 0, .28);
}
.promo-poster--cta:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 7px;
}
.closing-promo-copy .eyebrow { justify-content: flex-start; }
.closing-promo-copy h2 {
  max-width: 14em;
  margin: 0 0 22px;
}
.closing-promo-copy > p:not(.eyebrow):not([class*="closing-"]) {
  max-width: 640px;
  margin: 0 0 16px;
  color: rgba(255,255,255,.82);
  font-size: 16.5px;
  line-height: 1.9;
}
.closing-promo-copy .closing-price-line { justify-content: flex-start; }

/* --------------------------------------------------------------------------
   1. 頂部倒數條：取代原本的靜態促銷通欄
   -------------------------------------------------------------------------- */
.urgency-bar {
  position: relative;
  background: linear-gradient(115deg, #0b2620 0%, #12352d 42%, #1d4b40 100%);
  border-bottom: 1px solid rgba(192, 150, 92, .42);
  padding: 13px 16px;
  overflow: hidden;
}
/* 金色斜掃光，緩慢移動，不搶戲 */
.urgency-bar::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 38%, rgba(240, 220, 187, .11) 50%, transparent 62%);
  transform: translateX(-100%);
  animation: vs-sweep 6.5s ease-in-out infinite;
}
@keyframes vs-sweep { 0% { transform: translateX(-100%); } 55%, 100% { transform: translateX(100%); } }

.urgency-inner {
  position: relative;
  z-index: 2;
  margin: 0 auto;
  width: min(1160px, calc(100% - 32px));
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 18px;
  color: #fff;
}
.urgency-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 14px;
  border: 1px solid var(--vs-gold);
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 900;
  letter-spacing: .05em;
  color: var(--vs-gold-hi);
  white-space: nowrap;
}
.urgency-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--vs-alert-lt);
  animation: vs-pulse 1.8s ease-in-out infinite;
}
@keyframes vs-pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .35; transform: scale(.8); } }

.urgency-text { font-size: 15px; font-weight: 800; color: rgba(255,255,255,.93); }
.urgency-text s { color: rgba(255,255,255,.45); font-weight: 700; }
.urgency-text b { color: var(--vs-gold-hi); font-size: 17px; }

/* --------------------------------------------------------------------------
   2. 倒數計時器
   -------------------------------------------------------------------------- */
.countdown { display: inline-flex; align-items: flex-end; gap: 7px; }
.cd-cell {
  display: flex; flex-direction: column; align-items: center;
  min-width: 52px;
  padding: 7px 8px 5px;
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(192, 150, 92, .5);
  border-radius: 9px;
}
.cd-num {
  font-family: "Noto Serif TC", serif;
  font-size: 26px; font-weight: 900; line-height: 1;
  color: var(--vs-gold-hi);
  font-variant-numeric: tabular-nums;
}
.cd-lbl { margin-top: 4px; font-size: 11px; font-weight: 800; letter-spacing: .08em; color: rgba(255,255,255,.62); }
.cd-sep { padding-bottom: 14px; color: rgba(192,150,92,.6); font-size: 19px; font-weight: 900; }

/* 淺底版本（用在 hero 價格盒與收尾以外的淺色區） */
.countdown.on-light .cd-cell { background: rgba(18, 53, 45, .05); border-color: rgba(192, 150, 92, .55); }
.countdown.on-light .cd-num { color: var(--vs-ink); }
.countdown.on-light .cd-lbl { color: var(--muted); }
.countdown.on-light .cd-sep { color: var(--vs-gold); }

/* 小尺寸，給黏底列用 */
.countdown.sm .cd-cell { min-width: 40px; padding: 4px 6px 3px; border-radius: 7px; }
.countdown.sm .cd-num { font-size: 18px; }
.countdown.sm .cd-lbl { font-size: 9px; margin-top: 2px; }
.countdown.sm .cd-sep { font-size: 14px; padding-bottom: 10px; }

/* 早鳥結束後的替代文字 */
.cd-ended {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 15px; font-weight: 900; color: var(--vs-gold-hi);
}

/* --------------------------------------------------------------------------
   3. 價格盒強化：金色光暈與放大的省下金額
   -------------------------------------------------------------------------- */
.price-card {
  position: relative;
  border: 1px solid rgba(192, 150, 92, .45) !important;
  box-shadow: 0 26px 70px rgba(18, 53, 45, .16), 0 0 0 6px rgba(192, 150, 92, .07) !important;
}
.price-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(160deg, rgba(240, 220, 187, .22), transparent 42%);
}
/* 價格盒底色是深綠，漸層必須走金到白，先給純色保底再疊漸層，
   瀏覽器不支援 background-clip:text 時仍看得見。 */
.price-card .amount {
  color: #fff;
  background: linear-gradient(118deg, var(--vs-gold-hi) 8%, #ffffff 46%, var(--vs-gold-lt) 92%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 34px rgba(240, 220, 187, .28);
}
@supports not ((-webkit-background-clip: text) or (background-clip: text)) {
  .price-card .amount { background: none; -webkit-text-fill-color: #fff; color: #fff; }
}
.price-card .save-line {
  display: inline-block;
  margin-top: 6px !important;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(192, 150, 92, .14);
  border: 1px solid rgba(192, 150, 92, .42);
  color: var(--vs-gold-hi) !important;
  font-weight: 900 !important;
  font-size: 15.5px !important;
}
.price-card .store-primary {
  position: relative;
  overflow: hidden;
  font-size: 18px !important;
  padding-block: 17px !important;
  box-shadow: 0 14px 30px rgba(18, 53, 45, .22);
}
.price-card .store-primary::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(100deg, transparent 40%, rgba(255,255,255,.26) 50%, transparent 60%);
  transform: translateX(-100%);
  animation: vs-sweep 4.2s ease-in-out infinite 1.2s;
}

/* 價格盒裡的倒數 */
.price-countdown {
  margin: 4px 0 16px;
  padding: 14px 12px 12px;
  border-radius: 12px;
  background: var(--green-100);
  border: 1px dashed rgba(192, 150, 92, .55);
  text-align: center;
}
.price-countdown .pc-cap {
  margin: 0 0 9px;
  font-size: 13px; font-weight: 900; letter-spacing: .06em;
  color: var(--green-800);
}

/* --------------------------------------------------------------------------
   4. 代價區：深色，大數字，這是全頁情緒最重的一段
   -------------------------------------------------------------------------- */
.cost-band {
  position: relative;
  background: linear-gradient(150deg, #0b2620 0%, #12352d 55%, #1a463b 100%);
  color: #fff;
  overflow: hidden;
}
.cost-band::before {
  content: "";
  position: absolute;
  width: 620px; height: 620px;
  right: -180px; top: -240px;
  border-radius: 48% 52% 43% 57% / 52% 48% 52% 48%;
  background: rgba(192, 150, 92, .07);
}
.cost-band .container { position: relative; z-index: 2; }
.cost-band .eyebrow { color: var(--vs-gold-lt) !important; }
.cost-band .eyebrow::before { background: var(--vs-gold) !important; }
.cost-band h2 { color: #fff !important; }
/* 排除 .eyebrow，否則它也是 .section-head 的直接子 p，金色會被這條蓋掉 */
.cost-band .section-head > p:not(.eyebrow) { color: rgba(255,255,255,.8) !important; }

.cost-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: clamp(26px, 3vw, 38px);
}
.cost-item {
  padding: 30px 26px 26px;
  border-radius: 15px;
  background: rgba(255, 255, 255, .055);
  border: 1px solid rgba(192, 150, 92, .28);
}
.cost-item .cost-num {
  display: block;
  font-family: "Noto Serif TC", serif;
  font-size: clamp(46px, 5vw, 66px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -.03em;
  color: var(--vs-alert-lt);
  font-variant-numeric: tabular-nums;
}
.cost-item .cost-unit { font-size: 22px; margin-left: 4px; color: rgba(217,137,95,.8); }
.cost-item h3 { margin: 14px 0 8px; font-size: 20px; color: #fff; }
.cost-item p { margin: 0; font-size: 15.5px; line-height: 1.75; color: rgba(255,255,255,.72); }

.cost-note {
  margin-top: 26px;
  padding: 18px 22px;
  border-left: 3px solid var(--vs-gold);
  background: rgba(255,255,255,.04);
  border-radius: 0 10px 10px 0;
  font-size: 15.5px;
  line-height: 1.8;
  color: rgba(255,255,255,.78);
}
.cost-note strong { color: var(--vs-gold-hi); }

/* --------------------------------------------------------------------------
   5. 前後對照表
   -------------------------------------------------------------------------- */
.vs-table {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: clamp(26px, 3vw, 38px);
}
.vs-col {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--paper);
}
.vs-col.now { border-color: rgba(180, 100, 60, .3); }
.vs-col.after { border-color: rgba(192, 150, 92, .5); box-shadow: 0 18px 44px rgba(18,53,45,.1); }

.vs-head {
  padding: 18px 22px;
  font-family: "Noto Serif TC", serif;
  font-size: 21px;
  font-weight: 900;
}
.vs-col.now .vs-head { background: rgba(180, 100, 60, .09); color: #8d4e2e; }
.vs-col.after .vs-head { background: var(--green-900); color: var(--vs-gold-hi); }

.vs-col ul { margin: 0; padding: 12px 22px 22px; list-style: none; }
.vs-col li {
  position: relative;
  padding: 13px 0 13px 30px;
  font-size: 16px;
  line-height: 1.7;
  border-bottom: 1px dashed var(--line);
}
.vs-col li:last-child { border-bottom: 0; }
.vs-col li::before {
  position: absolute; left: 0; top: 13px;
  font-weight: 900; font-size: 17px;
}
.vs-col.now li { color: #5c5148; }
.vs-col.now li::before { content: "✕"; color: var(--vs-alert); }
.vs-col.after li { color: var(--ink); }
.vs-col.after li::before { content: "✓"; color: var(--green-700); }
.vs-col li b { color: var(--green-900); font-weight: 900; }

/* --------------------------------------------------------------------------
   6. 收尾倒數強化
   -------------------------------------------------------------------------- */
.closing-band .countdown { margin: 4px 0 22px; }
.closing-countdown-cap {
  margin: 0 0 12px !important;
  font-size: 14px !important;
  font-weight: 900 !important;
  letter-spacing: .06em;
  color: var(--vs-gold-lt) !important;
}
.closing-band .closing-price-line strong {
  text-shadow: 0 0 28px rgba(240, 220, 187, .35);
}

/* --------------------------------------------------------------------------
   7. 黏底列加倒數
   -------------------------------------------------------------------------- */
.sticky-buy { gap: 12px; }
.sticky-cd { display: flex; align-items: center; gap: 8px; }

/* --------------------------------------------------------------------------
   8. 響應式
   -------------------------------------------------------------------------- */
@media (max-width: 980px) {
  .cost-grid { grid-template-columns: 1fr; }
  .vs-table { grid-template-columns: 1fr; }

  .promo-story-grid,
  .cost-story-grid,
  .closing-promo-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .promo-poster--story,
  .promo-poster--cost,
  .promo-poster--cta {
    width: min(100%, 520px);
    margin-inline: auto;
  }
  .closing-promo-copy { text-align: center; }
  .closing-promo-copy .eyebrow,
  .closing-promo-copy .closing-price-line { justify-content: center; }
  .closing-promo-copy h2,
  .closing-promo-copy > p:not(.eyebrow):not([class*="closing-"]) { margin-inline: auto; }
}
@media (max-width: 1040px) {
  .hero-promo-rail {
    position: static;
    width: min(100%, 610px);
  }
}
@media (max-width: 720px) {
  .urgency-inner { gap: 8px 12px; }
  .urgency-text { font-size: 13.5px; }
  .urgency-text b { font-size: 15px; }
  .cd-cell { min-width: 44px; padding: 5px 6px 4px; }
  .cd-num { font-size: 21px; }
  .cd-lbl { font-size: 10px; }
  .cost-item { padding: 24px 20px 22px; }
  .sticky-buy .sticky-cd { display: none; }
  .promo-poster {
    padding: 5px;
    border-radius: 12px;
    box-shadow: 7px 7px 0 var(--promo-lime), 0 18px 40px rgba(7, 17, 15, .18);
  }
  .promo-poster::after {
    right: -7px;
    bottom: -7px;
    width: 30px;
    height: 3px;
  }
  .promo-poster img { border-radius: 8px; }
  .promo-poster--hero {
    width: calc(100% - 10px);
    transform: none;
  }
  .hero-promo-rail .price-card { margin: -24px 8px 0 0; }
  .promo-story-grid,
  .cost-story-grid,
  .closing-promo-grid { gap: 32px; }
  .closing-band--promo { padding: 24px 17px 40px; }
}

@media (prefers-reduced-motion: reduce) {
  .promo-poster--cta { transition: none; }
}

/* --------------------------------------------------------------------------
   9. 實績區：舊帳號／新帳號兩組數字的小標
   -------------------------------------------------------------------------- */
.proof-label {
  display: flex; align-items: center; gap: 12px;
  margin: clamp(26px, 3vw, 38px) 0 12px;
  font-size: 14px; font-weight: 900; letter-spacing: .06em; color: var(--green-800);
}
.proof-label::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.proof-label b { color: var(--vs-gold); }
.proof-label + .course-proof { margin-top: 0; }
.proof-story { max-width: 760px; margin: 0 auto; }
.proof-story p { font-size: 17px; line-height: 1.9; color: #3d4a46; margin: 0 0 18px; }
.proof-story p:last-child { margin-bottom: 0; }

/* --------------------------------------------------------------------------
   10. 課表改三欄：本頁拿掉時長欄，覆寫共用檔的 62px / 1fr / 78px / 196px
   -------------------------------------------------------------------------- */
.lesson-row { grid-template-columns: 62px minmax(0, 1fr) 210px; }
@media (max-width: 860px) {
  .lesson-row { grid-template-columns: 46px minmax(0, 1fr); }
}
