/* PopSnow 官網共用樣式（與 App「雪夜」設計一致；設計稿：PopSnow 官網重新設計 canvas）。 */
:root {
  --bg: #0B0F14;
  --bg-2: #0E141C;
  --surface: #121822;
  --raised: #1A2230;
  --line: #1F2937;
  --line-2: #2A3544;
  --ink: #F2F6FA;
  --body: #B7C7D6;
  --sub: #8CA3B8;
  --primary: #3D8BFD;
  --primary-ink: #6AA8FF;
  --accent: #53D8FF;
  --success: #34D399;
  --warn: #F5B94B;
  --danger: #D9443A;
  --live: #E5484D;
  --font: 'Noto Sans TC', 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Hiragino Sans', system-ui, sans-serif;
  --num: 'Barlow', 'Noto Sans TC', system-ui, sans-serif;
  color-scheme: dark;
}
html:lang(ja) { --font: 'Noto Sans JP', 'Noto Sans TC', -apple-system, 'Hiragino Sans', system-ui, sans-serif; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: var(--primary-ink); text-decoration: none; }
a:hover { color: #9CC4FF; }
img, svg { display: block; }
button { font-family: inherit; cursor: pointer; }
.n { font-family: var(--num); font-variant-numeric: tabular-nums; letter-spacing: .2px; }
.jp { font-family: 'Noto Sans JP', 'Noto Sans TC', sans-serif; }
.wrap { max-width: 1200px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* 導覽列 */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(11, 15, 20, .9); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.site-nav { display: flex; align-items: center; gap: 12px 28px; padding-top: 14px; padding-bottom: 14px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand-mark { width: 36px; height: 36px; border-radius: 10px; background: linear-gradient(150deg, #4A97FF 0%, #2F7BF0 48%, #1F5FD6 100%); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.brand-name { font-family: var(--num); font-size: 22px; font-weight: 800; }
.nav-links { display: flex; flex-wrap: wrap; gap: 4px 24px; flex-grow: 1; font-size: 15px; font-weight: 500; }
.nav-links a { color: var(--body); }
.nav-links a:hover { color: var(--ink); }
.lang { display: flex; padding: 3px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); }
.lang button { height: 32px; padding: 0 14px; border-radius: 999px; border: 0; background: transparent; color: var(--body); font-size: 13px; font-weight: 600; }
.lang button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; border-radius: 14px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.btn-primary { height: 40px; padding: 0 18px; background: var(--primary); color: #FFFFFF; font-size: 15px; }
.btn-primary:hover { color: #FFFFFF; background: #2F7BEB; }
.menu-btn { display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); align-items: center; justify-content: center; }
.mobile-menu { display: none; }

/* 區塊 */
.section { padding-top: 72px; padding-bottom: 72px; }
.section-alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.split { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; }
.split > * { flex: 1 1 420px; min-width: 0; }
.split.reverse { flex-wrap: wrap-reverse; }
.eyebrow { font-size: 14px; font-weight: 700; color: var(--accent); }
.h2 { margin: 0; font-size: 40px; line-height: 1.25; font-weight: 800; letter-spacing: -.3px; }
.lead { margin: 0; font-size: 17px; line-height: 1.75; color: var(--body); }
.stack { display: flex; flex-direction: column; gap: 16px; }
.card { padding: 20px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); }
.chip { height: 34px; padding: 0 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: 14px; font-weight: 600; display: inline-flex; align-items: center; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.check-list { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px 20px; font-size: 15px; }
.check-list li { display: flex; gap: 10px; align-items: flex-start; }
.check-list svg { flex-shrink: 0; margin-top: 3px; }
.stat-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.stat { padding: 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; }
.stat b { font-family: var(--num); font-size: 26px; font-weight: 800; line-height: 1.15; }
.stat b small { font-size: 12px; color: var(--sub); font-weight: 600; }
.stat span { font-size: 13px; color: var(--sub); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); }
.site-footer .wrap { padding-top: 32px; padding-bottom: 48px; display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; justify-content: space-between; font-size: 14px; color: var(--sub); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.site-footer nav a { color: var(--body); }

/* 文件頁（隱私權／條款） */
.doc { display: flex; flex-wrap: wrap; gap: 40px; padding-top: 40px; padding-bottom: 72px; max-width: 1100px; }
.doc aside { flex: 1 1 220px; }
.doc aside nav { position: sticky; top: 90px; display: flex; flex-direction: column; gap: 2px; font-size: 14px; }
.doc aside .toc-title { padding: 0 12px 8px; font-size: 13px; font-weight: 700; color: var(--sub); }
.doc aside a { min-height: 40px; padding: 8px 12px; border-radius: 10px; color: var(--body); display: flex; align-items: center; }
.doc aside a:hover { background: var(--raised); color: var(--ink); }
.doc article { flex: 999 1 560px; min-width: 0; }
.doc h1 { margin: 0 0 6px; font-size: 40px; font-weight: 800; line-height: 1.25; }
.doc h2 { margin: 36px 0 10px; font-size: 22px; font-weight: 800; }
.doc p, .doc li { font-size: 16px; line-height: 1.85; color: #C9D6E2; }
.doc ul { padding-left: 22px; margin: 0; }
.doc li + li { margin-top: 6px; }
.doc b { color: var(--ink); }
.doc .updated { font-size: 14px; color: var(--sub); margin: 0; }
.doc .summary { margin-top: 24px; padding: 18px 20px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.doc .summary strong { font-size: 16px; }
.doc .summary span { display: flex; gap: 10px; font-size: 15px; line-height: 1.6; }
.doc .lang-divider { margin: 56px 0 0; padding-top: 40px; border-top: 1px solid var(--line); }

@media (max-width: 860px) {
  .nav-links, .site-nav .lang { display: none; }
  .menu-btn { display: inline-flex; }
  .site-nav { gap: 10px; padding-top: 10px; padding-bottom: 10px; }
  .brand { flex-grow: 1; }
  .brand-mark { width: 32px; height: 32px; border-radius: 9px; }
  .brand-name { font-size: 20px; }
  .btn-primary { height: 36px; padding: 0 14px; font-size: 14px; }
  .mobile-menu.open { display: flex; flex-direction: column; padding: 4px 16px 16px; background: var(--surface); border-top: 1px solid var(--line); }
  .mobile-menu a { min-height: 48px; display: flex; align-items: center; color: var(--ink); font-size: 16px; font-weight: 600; border-bottom: 1px solid var(--line); }
  .mobile-menu .lang { align-self: flex-start; margin-top: 12px; display: flex; }
  .wrap { padding-left: 16px; padding-right: 16px; }
  .section { padding-top: 40px; padding-bottom: 40px; }
  .h2 { font-size: 28px; }
  .lead { font-size: 15px; }
  .doc { padding-top: 24px; gap: 24px; }
  .doc aside nav { position: static; }
  .doc h1 { font-size: 30px; }
}
