/* ============================================================
   AlphaFox 品牌故事頁 /story/ — 樣式（白色主題版）
   任務編號：AF-MARKETING-STORY-P1-20261013
   20261013 老板令：網站改成白色 → 白底 / 暖金點綴 / 深色文字
   行動端優先；兼容微信內置瀏覽器 / Safari / Chrome
   ============================================================ */
:root {
  --bg: #ffffff;
  --bg-2: #faf7f0;
  --panel: rgba(20, 24, 32, 0.03);
  --gold: #a8801f;
  --gold-soft: #96731f;
  --gold-dim: rgba(168, 128, 31, 0.38);
  --gold-line: rgba(168, 128, 31, 0.25);
  --ink: #1f2430;
  --sub: #6b7280;
  --line: rgba(20, 24, 32, 0.10);
  --male: #3f6fa8;
  --female: #b25a70;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang TC",
    "Microsoft JhengHei", "Noto Sans TC", sans-serif;
  background:
    radial-gradient(1200px 600px at 50% -10%, rgba(212, 175, 55, 0.10), transparent 60%),
    linear-gradient(180deg, var(--bg-2) 0%, var(--bg) 30%, var(--bg) 100%);
  background-color: var(--bg);
  color: var(--ink);
  line-height: 1.95;
  font-size: 17px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
main { overflow-x: hidden; }
a { color: var(--gold-soft); }
b, strong { color: #14100a; font-weight: 700; }
sup { font-size: 0.7em; }

/* ---------- 頂欄 ---------- */
.top {
  position: sticky; top: 0; z-index: 50;
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 18px;
  background: rgba(255, 255, 255, 0.85);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.brand {
  font-weight: 800; font-size: 16px; letter-spacing: 2px;
  color: var(--ink); text-decoration: none;
}
.brand span { color: var(--gold); font-weight: 600; margin-left: 6px; letter-spacing: 1px; }
.cta-mini {
  font-size: 13px; color: var(--gold); text-decoration: none;
  border: 1px solid var(--gold-dim); border-radius: 999px;
  padding: 6px 14px; white-space: nowrap;
}

/* ---------- 首屏 ---------- */
.hero {
  text-align: center;
  padding: 54px 22px 30px;
  max-width: 720px; margin: 0 auto;
}
.kicker {
  color: var(--gold); font-size: 14px; letter-spacing: 5px;
  text-transform: uppercase; margin-bottom: 18px;
}
h1 {
  font-size: clamp(28px, 7.6vw, 42px);
  line-height: 1.42; font-weight: 800; letter-spacing: 1px;
  margin-bottom: 16px;
}
.sub { color: var(--sub); font-size: 16.5px; margin-bottom: 34px; }

/* ---------- 影片組件（9:16 豎屏；播放器區域保留深色影院框） ---------- */
.video-shell {
  width: min(88vw, 392px);
  margin: 0 auto;
  aspect-ratio: 9 / 16;
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  border: 1px solid var(--gold-line);
  box-shadow: 0 18px 50px rgba(20, 24, 32, 0.18), inset 0 0 0 1px rgba(20, 24, 32, 0.04);
  background: #0a1120;
}
.video-shell video,
.video-shell .video-poster {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.video-badge {
  position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%);
  display: flex; align-items: center; gap: 9px;
  background: rgba(7, 13, 24, 0.72);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border: 1px solid var(--gold-dim);
  color: #e8c95c; font-size: 13.5px; letter-spacing: 2px;
  padding: 9px 18px; border-radius: 999px;
  white-space: nowrap;
}
.video-badge svg { flex: 0 0 auto; }
.video-hint {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  color: rgba(233, 228, 214, 0.35);
  font-size: 12.5px; letter-spacing: 3px;
  text-align: center; line-height: 2;
}

/* ---------- 章節 ---------- */
.sec {
  max-width: 680px; margin: 0 auto;
  padding: 58px 22px 26px;
}
.sec.alt { background: linear-gradient(180deg, rgba(212,175,55,0.055), transparent 65%); }
.chap {
  color: var(--gold); font-size: 13px; letter-spacing: 4px;
  margin-bottom: 10px;
}
h2 {
  font-size: clamp(22px, 5.6vw, 28px);
  line-height: 1.45; font-weight: 800; letter-spacing: 0.5px;
  margin-bottom: 22px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--gold-line);
  position: relative;
}
h2::after {
  content: ""; position: absolute; left: 0; bottom: -1px;
  width: 64px; height: 2px; background: var(--gold);
}
.sec p { margin: 14px 0; color: #3a4150; }
.sec strong { color: #14100a; }

/* ---------- 章節插圖 ---------- */
.illus { margin: 24px 0 14px; }
.illus img {
  width: 100%; display: block;
  border-radius: 16px;
  border: 1px solid var(--line);
  box-shadow: 0 10px 30px rgba(20, 24, 32, 0.08);
}

/* ---------- 座位示意 ---------- */
.seat-board {
  margin: 22px auto; max-width: 340px;
  background: var(--panel);
  border: 1px solid var(--line); border-radius: 16px;
  padding: 18px 16px 14px;
  text-align: center;
}
.seat-row-label {
  font-size: 12.5px; color: var(--sub); letter-spacing: 3px; margin: 4px 0 8px;
}
.seat-row { display: flex; justify-content: center; gap: 14px; margin-bottom: 8px; }
.seat {
  width: 62px; height: 46px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 700; border-radius: 10px;
  letter-spacing: 1px;
}
.seat.m { background: rgba(111, 159, 216, 0.14); color: var(--male); border: 1px solid rgba(111, 159, 216, 0.40); }
.seat.f { background: rgba(217, 138, 156, 0.13); color: var(--female); border: 1px solid rgba(217, 138, 156, 0.38); }

/* ---------- 概率前提 / 限制說明框 ---------- */
.rule-box {
  margin: 20px 0; padding: 15px 17px;
  border: 1px solid var(--gold-line);
  border-left: 3px solid var(--gold);
  border-radius: 10px;
  background: rgba(212, 175, 55, 0.08);
  color: #5a5342; font-size: 15.5px; line-height: 1.9;
}
.note-box {
  margin: 22px 0; padding: 17px 18px;
  border: 1px solid var(--gold-dim);
  border-radius: 14px;
  background: rgba(212, 175, 55, 0.09);
}
.note-box > b {
  display: block; color: var(--gold); font-size: 14.5px;
  letter-spacing: 3px; margin-bottom: 8px;
}
.note-box p { font-size: 15.5px; color: #4a4436; margin: 8px 0; }

/* ---------- 數據卡 ---------- */
.stat-row {
  display: flex; gap: 12px; margin: 24px 0;
}
.stat {
  flex: 1; text-align: center;
  background: var(--panel); border: 1px solid var(--line);
  border-radius: 14px; padding: 16px 6px 13px;
}
.stat b {
  display: block; font-size: clamp(19px, 5vw, 24px);
  color: var(--ink); font-weight: 800; letter-spacing: 0.5px;
}
.stat i { display: block; font-style: normal; font-size: 12.5px; color: var(--sub); margin-top: 5px; letter-spacing: 1px; }
.stat.gold { border-color: var(--gold-dim); background: rgba(212, 175, 55, 0.10); }
.stat.gold b { color: var(--gold); }

/* ---------- 清單 ---------- */
.facts { margin: 16px 0 16px 4px; list-style: none; }
.facts li {
  position: relative; padding-left: 22px; margin: 11px 0;
  color: #3a4150; font-size: 16px;
}
.facts li::before {
  content: ""; position: absolute; left: 2px; top: 12px;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--gold);
}

/* ---------- 輕量交互：隨機重排 ---------- */
.demo { margin: 28px 0 10px; text-align: center; }
.ghost-btn {
  font-family: inherit; font-size: 14.5px; letter-spacing: 1px;
  color: var(--gold); background: transparent;
  border: 1px solid var(--gold-dim); border-radius: 999px;
  padding: 10px 24px; cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}
.ghost-btn:active { background: rgba(212, 175, 55, 0.15); }
.demo-board { max-width: 320px; margin: 18px auto 10px; }
.demo-note { font-size: 13.5px; color: var(--sub); line-height: 1.8; }

/* ---------- 時間軸 ---------- */
.timeline { margin: 26px 0 8px; position: relative; padding-left: 24px; }
.timeline::before {
  content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px;
  width: 1px; background: var(--gold-line);
}
.tl-item { position: relative; padding: 0 0 20px 14px; }
.tl-item:last-child { padding-bottom: 6px; }
.tl-dot {
  position: absolute; left: -24px; top: 9px;
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--gold-soft);
}
.tl-dot.gold { background: var(--gold); border-color: var(--gold); box-shadow: 0 0 12px rgba(212, 175, 55, 0.45); }
.tl-item b { display: block; font-size: 16.5px; color: var(--ink); letter-spacing: 1px; }
.tl-item i { display: block; font-style: normal; font-size: 13.5px; color: var(--sub); margin-top: 2px; }
.foot-note { font-size: 12.5px; color: #8a8f99; letter-spacing: 1px; }

/* ---------- 產品卡 ---------- */
.product-card {
  margin: 26px 0 8px; padding: 30px 20px 26px;
  border: 1px solid var(--gold-line); border-radius: 18px;
  background: linear-gradient(180deg, rgba(212, 175, 55, 0.09), rgba(255, 255, 255, 0.02));
  text-align: center;
}
.mascot { width: min(58vw, 210px); height: auto; margin: 8px auto 20px; display: block; }
.product-card .cta { margin-top: 4px; }
.feature-list { list-style: none; display: flex; flex-wrap: wrap; gap: 9px; justify-content: center; }
.feature-list li {
  font-size: 14px; color: #4a4436;
  border: 1px solid var(--line); border-radius: 999px;
  padding: 7px 15px; background: rgba(255, 255, 255, 0.55);
}
.product-note { margin-top: 16px; font-size: 13.5px; color: var(--gold-soft); letter-spacing: 1px; }

/* ---------- 結尾 ---------- */
.end { text-align: center; padding: 66px 22px 40px; max-width: 680px; margin: 0 auto; }
.salute { font-size: clamp(19px, 5vw, 24px); font-weight: 800; letter-spacing: 2px; color: var(--ink); }
.endbrand { margin: 0 0 16px; color: var(--gold); letter-spacing: 4px; font-size: 15px; }
.endurl { margin: 14px 0 30px; font-size: 13.5px; letter-spacing: 1px; }
.endurl a { color: var(--sub); text-decoration: none; border-bottom: 1px solid var(--gold-line); padding-bottom: 2px; }
.cta {
  display: inline-block;
  font-size: 17px; font-weight: 700; letter-spacing: 2px;
  color: #14100a; text-decoration: none;
  background: linear-gradient(180deg, #e8c95c, #c9a24b);
  padding: 15px 46px; border-radius: 999px;
  box-shadow: 0 10px 28px rgba(212, 175, 55, 0.28);
}
.cta:active { transform: translateY(1px); }
.legal { margin-top: 26px; font-size: 12.5px; color: #8a8f99; line-height: 1.8; }

/* ---------- 頁腳 ---------- */
.foot {
  display: flex; justify-content: space-between; align-items: center;
  max-width: 680px; margin: 0 auto;
  padding: 20px 22px 34px;
  border-top: 1px solid var(--line);
  font-size: 12.5px; color: #8a8f99;
}
.foot a { color: #6b7280; text-decoration: none; }

/* ---------- 桌面端：豎屏播放器居中、寬度 360–440px ---------- */
@media (min-width: 768px) {
  body { font-size: 17.5px; }
  .hero { padding-top: 74px; }
  .video-shell { width: 412px; }
  .sec { padding-top: 74px; }
}

/* ---------- 小屏兼容（<=360px） ---------- */
@media (max-width: 360px) {
  .seat { width: 54px; height: 42px; font-size: 15px; }
  .video-shell { width: 92vw; }
  .stat b { font-size: 18px; }
}
