/* YourWowAI 介紹網站：版面參考 WatchLaterHub，配色沿用 App 的科技風 */
:root {
  --bg: #05070d;
  --bg-2: #08101d;
  --surface: #0b1220;
  --surface-2: #111a2e;
  --border: #1c2a44;
  --text: #e6f1ff;
  --body: #b6c4dc;
  --muted: #8b9bbb;
  --accent: #00e5ff;
  --accent-ink: #00141a;
  --accent-soft: color-mix(in srgb, var(--accent) 12%, transparent);
  --accent-2: #7c4dff;
  --notcool: #ff3d71;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --sans: "Noto Sans TC", -apple-system, BlinkMacSystemFont, "PingFang TC", "Microsoft JhengHei", sans-serif;
  --glow: 0 0 22px color-mix(in srgb, var(--accent) 40%, transparent);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  font-family: var(--sans);
  background:
    linear-gradient(color-mix(in srgb, var(--accent) 4%, transparent) 1px, transparent 1px) 0 0 / 32px 32px,
    linear-gradient(90deg, color-mix(in srgb, var(--accent) 4%, transparent) 1px, transparent 1px) 0 0 / 32px 32px,
    var(--bg);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); }
a:hover { color: #7df2ff; }
img { max-width: 100%; display: block; }
.page { min-height: 100vh; display: flex; flex-direction: column; }
.container { max-width: 1120px; margin: 0 auto; }

/* ---- 導覽列 ---- */
.site-header {
  position: sticky; top: 0; z-index: 5;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.site-nav { max-width: 1120px; margin: 0 auto; padding: 14px 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.brand img { width: 36px; height: 36px; border-radius: 9px; }
.brand-name { font: 800 20px var(--mono); letter-spacing: -0.3px; white-space: nowrap; }
.brand-name b { color: var(--accent); text-shadow: var(--glow); font-weight: 800; }
.nav-actions { display: flex; align-items: center; gap: 6px; }
.nav-link { padding: 10px 14px; border-radius: 999px; text-decoration: none; color: var(--muted); font-size: 15px; }
.nav-link:hover { color: var(--text); background: var(--surface); }
.lang-link { color: var(--text); font-weight: 700; border: 1px solid var(--border); padding: 8px 12px; }

/* ---- 按鈕 ---- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 26px; border-radius: 999px;
  font-size: 17px; font-weight: 500; text-decoration: none; white-space: nowrap;
  border: 1px solid var(--border); background: var(--surface); color: var(--text);
}
.btn:hover { color: var(--text); border-color: var(--accent); }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 700; box-shadow: 0 8px 28px color-mix(in srgb, var(--accent) 30%, transparent); }
.btn-primary:hover { color: var(--accent-ink); background: #5ff0ff; }
.btn-sm { padding: 11px 20px; font-size: 15px; margin-left: 6px; }
.btn[aria-disabled="true"] { cursor: default; }
.btn svg { flex: none; }

/* ---- 主視覺 ---- */
.hero { padding: 56px 24px 40px; }
.hero .container { display: flex; flex-wrap: wrap; align-items: center; gap: 56px; }
.hero-copy { flex: 1 1 500px; display: flex; flex-direction: column; gap: 24px; }
.pill {
  align-self: flex-start; display: flex; align-items: center; gap: 8px;
  padding: 7px 14px; border-radius: 999px; background: var(--accent-soft);
  color: var(--accent); font-size: 14px; font-weight: 500; border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
}
.hero h1 { margin: 0; font-size: clamp(36px, 5vw, 54px); line-height: 1.18; font-weight: 700; letter-spacing: 1px; }
.hero h1 em { font-style: normal; color: var(--accent); text-shadow: var(--glow); }
.hero-lead { margin: 0; max-width: 520px; font-size: 19px; line-height: 1.8; color: var(--body); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 4px; }
.checks { display: flex; flex-wrap: wrap; gap: 20px; color: var(--muted); font-size: 14px; }
.checks span { display: flex; align-items: center; gap: 6px; }
[hidden] { display: none !important; }
.live-stats { width: fit-content; max-width: 100%; display: inline-flex; align-items: center; gap: 14px; margin: 28px 0 0; padding: 14px 28px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); color: var(--muted); font-size: 21px; line-height: 1.4; }
.live-stats b { color: var(--text); font-weight: 800; }
/* 先佔好位置再淡入，載入數字時下面的內容不會跳動 */
.live-stats { transition: opacity .35s ease; }
.live-stats.is-loading { opacity: 0; }
.live-dot { flex: none; width: 13px; height: 13px; border-radius: 50%; background: #39ff88; box-shadow: 0 0 12px #39ff88; }
@media (max-width: 520px) {
  .live-stats { font-size: 15px; padding: 10px 16px; gap: 9px; }
  .live-dot { width: 10px; height: 10px; }
}
.live-stats-center { margin: 0 0 22px; }
.cta-center { justify-content: center; }
.install-box .live-stats { color: var(--muted); max-width: none; }

.hero-visual {
  flex: 1 1 360px; position: relative; padding: 36px 28px;
  border-radius: 36px; display: flex; justify-content: center;
  background: radial-gradient(circle at 30% 20%, #00e5ff38, transparent 55%), radial-gradient(circle at 80% 80%, #7c4dff40, transparent 55%), linear-gradient(145deg, #0d1a33, #0a1020);
  border: 1px solid var(--border);
}
.sparkle { position: absolute; }
.phone {
  position: relative; z-index: 1;
  width: min(300px, 74vw); border-radius: 42px; padding: 10px;
  background: #000; border: 2px solid #22314d;
  box-shadow: 0 24px 60px #00000080, var(--glow);
}
.phone img { width: 100%; height: auto; border-radius: 32px; }

/* ---- 區塊 ---- */
.section { padding: 48px 24px 72px; }
.section-alt { padding: 72px 24px; background: var(--bg-2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { display: flex; flex-direction: column; gap: 12px; align-items: center; text-align: center; margin-bottom: 40px; }
.section-head h2, .empathy h2 { margin: 0; font-size: clamp(28px, 3.4vw, 38px); line-height: 1.4; font-weight: 700; }
.section-head p { margin: 0; font-size: 17px; color: var(--body); }

.empathy { padding: 48px 24px; }
.empathy .container { max-width: 880px; text-align: center; display: flex; flex-direction: column; gap: 16px; align-items: center; }
.eyebrow { margin: 0; font-size: 15px; font-weight: 500; letter-spacing: 3px; color: var(--accent); }
.empathy p.body { margin: 0; max-width: 640px; font-size: 17px; line-height: 1.9; color: var(--body); }

.grid { display: flex; flex-wrap: wrap; gap: 20px; }
.card {
  flex: 1 1 300px; display: flex; flex-direction: column; gap: 12px;
  padding: 28px; border-radius: 24px; background: var(--surface); border: 1px solid var(--border);
}
.card h3 { margin: 0; font-size: 20px; font-weight: 700; }
.card p { margin: 0; font-size: 15px; line-height: 1.8; color: var(--body); }
.icon-box {
  width: 48px; height: 48px; border-radius: 14px; background: var(--accent-soft);
  border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
  display: flex; align-items: center; justify-content: center;
}
.step { flex: 1 1 280px; background: var(--surface); }
.step-num {
  width: 40px; height: 40px; border-radius: 50%; background: var(--accent); color: var(--accent-ink);
  display: flex; align-items: center; justify-content: center; font: 800 18px var(--mono);
  box-shadow: var(--glow);
}

/* 截圖展示：可以左右滑 */
.gallery { display: flex; gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 8px 4px 24px; justify-content: safe center; }
.gallery figure { margin: 0; flex: 0 0 auto; scroll-snap-align: center; text-align: center; }
.gallery .phone { width: 200px; border-radius: 34px; padding: 8px; box-shadow: 0 16px 40px #00000080; }
.gallery .phone img { border-radius: 26px; }
.gallery figcaption { margin-top: 14px; font-size: 15px; font-weight: 500; color: var(--body); }

/* ---- 常見問題 ---- */
.faq { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq details { border-radius: 18px; background: var(--surface); border: 1px solid var(--border); padding: 0 22px; }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 60px; font-size: 17px; font-weight: 500;
}
.faq summary::-webkit-details-marker { display: none; }
.faq details[open] summary { color: var(--accent); }
.faq-plus { flex: none; transition: transform .2s; }
.faq details[open] .faq-plus { transform: rotate(45deg); }
.faq details p { margin: 0 0 20px; font-size: 15px; line-height: 1.8; color: var(--body); }

/* ---- 下載 ---- */
.install { padding: 24px 24px 72px; }
.install-box {
  position: relative; max-width: 1120px; margin: 0 auto; padding: 72px 32px; border-radius: 36px;
  background: radial-gradient(circle at 20% 0%, #00e5ff40, transparent 50%), radial-gradient(circle at 90% 100%, #7c4dff55, transparent 55%), linear-gradient(160deg, #0b1a36, #101a3a);
  border: 1px solid #22314d; text-align: center; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; gap: 20px;
}
.install-box img.app-icon { width: 84px; height: 84px; border-radius: 20px; box-shadow: var(--glow); }
.install-box h2 { margin: 0; font-size: clamp(30px, 4vw, 46px); line-height: 1.35; font-weight: 700; }
.install-box p { margin: 0; max-width: 540px; font-size: 17px; line-height: 1.8; color: #c8d6ee; }
.install-note { font-size: 14px !important; color: var(--muted) !important; }

.about { padding: 0 24px 64px; }
.about-box { max-width: 760px; margin: 0 auto; padding: 28px 32px; border-radius: 24px; background: var(--surface); border: 1px solid var(--border); color: var(--body); font-size: 15px; line-height: 1.8; }
.about-box h2 { margin: 0 0 10px; font-size: 20px; font-weight: 700; color: var(--text); }
.about-box p { margin: 0; }

/* ---- 頁尾 ---- */
.site-footer { margin-top: auto; border-top: 1px solid var(--border); }
.site-footer .inner { max-width: 1120px; margin: 0 auto; padding: 28px 24px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; font-size: 14px; color: var(--muted); }
.site-footer .links { display: flex; gap: 20px; flex-wrap: wrap; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--accent); }

/* ---- 文件頁：隱私權政策、使用條款、支援 ---- */
.back { padding: 10px 18px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); color: var(--text); text-decoration: none; font-size: 15px; font-weight: 500; white-space: nowrap; }
.back:hover { color: var(--text); border-color: var(--accent); }
.doc { max-width: 820px; width: 100%; margin: 0 auto; padding: 48px 16px 64px; }
.doc-card { background: var(--surface); border: 1px solid var(--border); border-radius: 24px; padding: 40px clamp(20px, 5vw, 48px); }
.doc h1 { margin: 0 0 8px; font-size: clamp(30px, 4.4vw, 42px); line-height: 1.3; font-weight: 700; }
.doc .updated { margin: 0 0 28px; color: var(--muted); font-size: 15px; }
.doc .lead { margin: 0; font-size: 17px; line-height: 1.9; color: var(--body); }
.doc h2 { margin: 44px 0 16px; font-size: 22px; line-height: 1.4; font-weight: 700; }
.doc p, .doc li { font-size: 16px; line-height: 1.9; color: var(--body); }
.doc ul { padding-left: 1.3em; margin: 0; }
.doc li { margin: 6px 0; }
.doc strong { color: var(--text); }
.doc code { font-family: var(--mono); font-size: .9em; background: var(--accent-soft); color: var(--accent); padding: 2px 6px; border-radius: 6px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: 14px; }
.doc table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 560px; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 12px 14px; line-height: 1.7; border-bottom: 1px solid var(--border); }
.doc tr:last-child td { border-bottom: none; }
.doc th { background: var(--surface-2); color: var(--text); font-weight: 700; white-space: nowrap; }
.doc td { color: var(--body); }
.summary-box { margin: 24px 0 0; padding: 18px 22px; border-radius: 16px; background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent); }
.summary-box p { margin: 0; color: var(--text); }

@media (max-width: 640px) {
  .nav-link { display: none; }
  .nav-link.lang-link { display: inline-block; }
  .site-nav { padding: 12px 16px; }
  .brand-name { font-size: 18px; }
  .btn-sm { padding: 10px 16px; }
  .hero { padding-top: 36px; }
  .gallery { justify-content: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .faq-plus { transition: none; }
}

/* 支援頁的問答 */
.doc details { border-radius: 16px; background: var(--surface-2); border: 1px solid var(--border); padding: 0 20px; margin: 10px 0; }
.doc summary { list-style: none; cursor: pointer; min-height: 56px; display: flex; align-items: center; font-size: 16px; font-weight: 500; color: var(--text); }
.doc summary::-webkit-details-marker { display: none; }
.doc summary::before { content: "+"; flex: none; width: 22px; color: var(--accent); font: 700 18px var(--mono); transition: transform .2s; }
.doc details[open] summary { color: var(--accent); }
.doc details[open] summary::before { transform: rotate(45deg); }
.doc details p { margin: 0 0 16px; }

/* 「交給 AI 幫你分享」：AI Webhook 範例 */
.ai-hook { margin-top: 28px; padding: 28px; border-radius: 24px; background: var(--surface); border: 1px solid var(--border); display: flex; flex-direction: column; gap: 14px; }
.ai-hook-head { display: flex; align-items: center; gap: 12px; }
.ai-hook h3 { margin: 0; }
.ai-hook p { margin: 0; color: var(--body); }
.ai-hook-note { font-size: 14px; color: var(--muted) !important; }
.code-block { margin: 0; padding: 16px 18px; border-radius: 14px; background: #04070f; border: 1px solid var(--border); overflow-x: auto; }
.code-block code { font-family: var(--mono); font-size: 13px; line-height: 1.7; color: var(--text); white-space: pre-wrap; word-break: break-word; }
.code-scroll code { white-space: pre; word-break: normal; }
@media (max-width: 520px) {
  .ai-hook { padding: 20px 16px; }
  .code-block { padding: 14px; }
  .code-block code { font-size: 12px; }
}

/* 文字裡的星星：沒有顏色，跟著文字顏色 */
.inline-star { width: 1em; height: 1em; vertical-align: -0.14em; }
