/* =====================================================================
   羽球計分板 DotBadminton 網站樣式
   設計規則：
   - 背景是平的、不用漸層（只有主標題的文字漸層例外）
   - 間距只用 0、4、8、12、16、24、32、40、48、64、96px
   - 圓角只用 8、12、16、24、32px；內層圓角 = 外層 − 間距
   - 框線四邊都有或都沒有
   - 動態只動 transform 與 opacity，曲線一律用 --ease
   首頁、支援與常見問題、隱私權政策三頁共用這支樣式
   ===================================================================== */

/* ---------- 設計變數 ---------- */
:root {
  color-scheme: dark;
  --bg: #000000;
  --surface-1: #181818;
  --surface-2: #1f1f1f;
  --surface-3: #272727;
  --surface-4: #313131;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #ffffff;
  --text-2: #b4b4b4;
  --text-3: #8f8f8f;
  --accent: #36d6c3;
  --accent-soft: rgba(54, 214, 195, 0.3);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "PingFang TC",
    "Noto Sans TC", "Microsoft JhengHei", sans-serif;
  /* 行高：中文內文約 1.75 倍、標題約 1.3 倍，字距略寬 */
  --lh-xs: 20px;
  --lh-sm: 24px;
  --lh-base: 28px;
  --lh-lg: 32px;
  --lh-xl: 32px;
  --lh-2xl: 36px;
  --lh-3xl: 40px;
  --lh-4xl: 48px;
  --lh-5xl: 64px;
  --lh-6xl: 76px;
  --track: 0.02em;
  --track-tight: 0.01em;
}

/* ---------- 基本 ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  background-color: var(--bg);
}
body {
  min-height: 100vh;
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: var(--lh-base);
  letter-spacing: var(--track);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
html.menu-open {
  overflow: hidden;
}
img,
svg,
video {
  display: block;
  max-width: 100%;
}
img {
  height: auto;
}
button {
  font: inherit;
  color: inherit;
  letter-spacing: inherit;
  background: none;
  border: 0;
  cursor: pointer;
  text-align: inherit;
}
a {
  color: inherit;
  text-decoration: none;
}
ul,
ol {
  list-style: none;
}
b,
strong {
  font-weight: 600;
}
h1,
h2,
h3 {
  font-weight: 600;
  letter-spacing: var(--track-tight);
  text-wrap: balance;
}
p,
li,
figcaption {
  text-wrap: pretty;
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
main:focus {
  outline: none;
}
::selection {
  background-color: var(--accent-soft);
}
.icon {
  width: 20px;
  height: 20px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.nowrap {
  white-space: nowrap;
}
.text-link {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  transition: color 300ms var(--ease);
}
.text-link:hover {
  color: var(--text);
}

/* ---------- 版面 ---------- */
.container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: max(16px, env(safe-area-inset-left, 0px))
    max(16px, env(safe-area-inset-right, 0px));
}
.section {
  padding-block: 64px;
}
/* 灰色色帶：用平的 #181818 分出段落；色帶裡的表面要往上提一階 */
.section.is-band {
  background-color: var(--surface-1);
}
/* 緊接在上一段之後的區塊，不再重複上緣留白 */
.section.is-tight {
  padding-top: 0;
}
.section.is-band .feature,
.section.is-band .cta-card {
  background-color: var(--surface-2);
}
.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  max-width: 680px;
  margin-bottom: 48px;
}
.section-head.is-center {
  margin-inline: auto;
  justify-items: center;
  text-align: center;
}
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  line-height: var(--lh-sm);
  font-weight: 600;
  color: var(--accent);
}
.kicker .icon {
  width: 16px;
  height: 16px;
}
.section-title {
  font-size: 30px;
  line-height: var(--lh-3xl);
}
.section-lead {
  font-size: 18px;
  line-height: var(--lh-lg);
  color: var(--text-2);
}
@media (min-width: 640px) {
  .container {
    padding-inline: max(24px, env(safe-area-inset-left, 0px))
      max(24px, env(safe-area-inset-right, 0px));
  }
}
@media (min-width: 768px) {
  .section-title {
    font-size: 36px;
    line-height: var(--lh-4xl);
  }
}
@media (min-width: 1024px) {
  .container {
    padding-inline: max(32px, env(safe-area-inset-left, 0px))
      max(32px, env(safe-area-inset-right, 0px));
  }
  .section {
    padding-block: 96px;
  }
}

/* ---------- 按鈕 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 12px;
  font-size: 16px;
  line-height: var(--lh-base);
  font-weight: 600;
  white-space: nowrap;
  transition: transform 500ms var(--ease), background-color 300ms var(--ease),
    color 300ms var(--ease);
}
.btn-sm {
  font-size: 14px;
  line-height: var(--lh-sm);
  border-radius: 8px;
}
.btn-primary {
  background-color: #ffffff;
  color: #000000;
}
.btn-primary:hover {
  background-color: #e6e6e6;
  transform: translateY(-2px);
}
.btn-secondary {
  background-color: var(--surface-3);
  color: var(--text);
}
.btn-secondary:hover {
  background-color: var(--surface-4);
}
.btn:active {
  transform: scale(0.98);
}

/* 跳到主要內容：平常藏在畫面上方，按 Tab 才出現 */
.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  transform: translateY(-200%);
}
.skip-link:focus,
.skip-link:focus-visible {
  transform: none;
}

/* ---------- 導覽列：浮在頂端、置中、依內容寬度、半透明加模糊 ---------- */
.site-nav {
  position: fixed;
  top: max(12px, env(safe-area-inset-top, 0px));
  inset-inline: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 4px;
  width: fit-content;
  max-width: calc(100% - 24px);
  margin-inline: auto;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background-color: rgba(24, 24, 24, 0.72);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  backdrop-filter: blur(16px) saturate(180%);
}
.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-right: 8px;
  font-size: 16px;
  line-height: var(--lh-base);
  font-weight: 600;
  white-space: nowrap;
}
.brand img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}
.nav-links {
  display: none;
  align-items: center;
  gap: 4px;
}
.nav-links a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 14px;
  line-height: var(--lh-sm);
  color: var(--text-2);
  white-space: nowrap;
  transition: color 300ms var(--ease), background-color 300ms var(--ease);
}
.nav-links a:hover {
  color: var(--text);
  background-color: var(--surface-3);
}
/* 內頁沒有手機選單，連結在放得下的時候就一直顯示 */
@media (min-width: 640px) {
  .nav-links.is-always {
    display: flex;
  }
}
.nav-links a[aria-current="page"] {
  color: var(--text);
  background-color: var(--surface-4);
}
.menu-toggle {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  transition: background-color 300ms var(--ease);
}
.menu-toggle:hover {
  background-color: var(--surface-3);
}
.menu-toggle .bar {
  position: absolute;
  top: 19px;
  left: 12px;
  width: 16px;
  height: 2px;
  border-radius: 2px;
  background-color: var(--text);
  transition: transform 500ms var(--ease);
}
.menu-toggle .bar:first-child {
  transform: translateY(-4px);
}
.menu-toggle .bar:last-child {
  transform: translateY(4px);
}
.menu-toggle[aria-expanded="true"] .bar:first-child {
  transform: rotate(45deg);
}
.menu-toggle[aria-expanded="true"] .bar:last-child {
  transform: rotate(-45deg);
}

/* 手機選單：全高面板，連結依序上升淡入 */
.menu-panel {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 96px 24px 48px;
  overflow-y: auto;
  background-color: rgba(0, 0, 0, 0.88);
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
  opacity: 0;
  transition: opacity 500ms var(--ease);
}
.menu-panel[hidden] {
  display: none;
}
.menu-panel.is-open {
  opacity: 1;
}
.menu-panel a {
  --i: 0;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 500ms var(--ease), transform 500ms var(--ease);
  transition-delay: 0ms;
}
.menu-panel.is-open a {
  opacity: 1;
  transform: none;
  transition-delay: min(calc(var(--i) * 60ms), 400ms);
}
.menu-link {
  padding-block: 12px;
  font-size: 24px;
  line-height: var(--lh-2xl);
  font-weight: 600;
}
.menu-panel .btn {
  margin-top: 24px;
}
@media (min-width: 1024px) {
  .nav-links {
    display: flex;
  }
  .menu-toggle,
  .menu-panel {
    display: none;
  }
}

/* ---------- 主視覺 ---------- */
.hero {
  padding-top: calc(96px + env(safe-area-inset-top, 0px));
  padding-bottom: 64px;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 48px;
  align-items: center;
}
.hero-copy {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
}
.hero-title {
  max-width: 680px;
  padding-bottom: 8px;
  font-size: 36px;
  line-height: var(--lh-4xl);
  color: #ffffff;
  background-image: linear-gradient(90deg, #ffffff, #9b9b9b);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-sub {
  max-width: 680px;
  font-size: 18px;
  line-height: var(--lh-lg);
  color: var(--text-2);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 24px;
}
.proof {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  font-size: 14px;
  line-height: var(--lh-sm);
  color: var(--text-2);
}
.proof li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.proof .icon {
  width: 16px;
  height: 16px;
  color: var(--accent);
}
@media (min-width: 640px) {
  .hero-title {
    font-size: 48px;
    line-height: var(--lh-5xl);
  }
}
@media (min-width: 1024px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 64px;
  }
  .hero-title {
    font-size: 60px;
    line-height: var(--lh-6xl);
  }
}

/* ---------- 下載用 QR Code ---------- */
/* 手機沒辦法掃自己的螢幕，所以只在有滑鼠的大螢幕顯示 */
.qr-block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}
.qr-block p {
  max-width: 128px;
  font-size: 12px;
  line-height: var(--lh-xs);
  color: var(--text-3);
}
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 24px;
}
.dl-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.dl-option .qr-block {
  align-items: center;
  text-align: center;
}
/* 圖文段落裡的下載區塊靠左，但內部仍對齊按鈕中線 */
.benefit-copy .dl-option {
  justify-self: start;
}
.qr {
  display: grid;
  place-items: center;
  width: 128px;
  height: 128px;
  flex: none;
  padding: 8px;
  border-radius: 12px;
  background-color: #ffffff;
}
.qr img {
  width: 112px;
  height: 112px;
  border-radius: 4px;
}
@media (hover: none), (max-width: 767px) {
  .qr-block {
    display: none;
  }
}

/* ---------- 截圖外框 ---------- */
.hero-visual {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  place-items: center;
  padding-block: 16px;
}
.shot {
  max-width: 100%;
  overflow: hidden;
  border-radius: 24px;
  background-color: #000000;
  box-shadow: 0 0 0 6px #0a0a0a, 0 0 0 7px var(--line-strong),
    0 24px 48px rgba(0, 0, 0, 0.5);
}
.shot img {
  width: 100%;
  border-radius: 24px;
}
.shot.is-phone {
  width: 232px;
}
.shot.is-tablet {
  width: 320px;
}
.shot.is-watch {
  width: 256px;
}
.zoom {
  display: block;
  cursor: zoom-in;
}
.zoom:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 10px;
}
.shot-chip {
  position: absolute;
  z-index: 8;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background-color: var(--surface-3);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
  font-size: 12px;
  line-height: var(--lh-xs);
  font-weight: 600;
  white-space: nowrap;
}
.shot-chip .icon {
  width: 16px;
  height: 16px;
  color: var(--accent);
}
/* 浮籤掛在截圖外框上，往外露出自己寬度的 40%，不會貼到版面邊緣 */
.shot-stage {
  position: relative;
  width: fit-content;
  max-width: 100%;
}
.shot-chip.is-a {
  top: 8%;
  left: 0;
  translate: -40% 0;
}
.shot-chip.is-b {
  right: 0;
  bottom: 12%;
  translate: 40% 0;
}
@media (max-width: 639px) {
  .shot-chip.is-a,
  .shot-chip.is-b {
    translate: none;
  }
}
@media (min-width: 640px) {
  .shot.is-phone {
    width: 264px;
  }
  .shot.is-tablet {
    width: 400px;
  }
  .shot.is-watch {
    width: 288px;
  }
  .shot-chip {
    font-size: 14px;
    line-height: var(--lh-sm);
  }
}

/* ---------- 影片 ---------- */
.promo-figure {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  max-width: 880px;
  margin-inline: auto;
}
.promo-figure video {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 24px;
  background-color: #000000;
  box-shadow: 0 0 0 1px var(--line-strong), 0 24px 48px rgba(0, 0, 0, 0.4);
}
.promo-figure figcaption {
  font-size: 14px;
  line-height: var(--lh-sm);
  color: var(--text-2);
  text-align: center;
}
.promo-figure .credit {
  display: block;
  margin-top: 8px;
  font-size: 12px;
  line-height: var(--lh-xs);
  color: var(--text-3);
}
.promo-figure .credit a {
  color: var(--text-3);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  transition: color 300ms var(--ease);
}
.promo-figure .credit a:hover {
  color: var(--text-2);
}

/* ---------- 功能段落：圖文兩欄，左右交錯 ---------- */
.benefits {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 64px;
}
.benefit {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 32px;
  align-items: center;
}
.benefit-copy {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  align-content: start;
  max-width: 560px;
}
.benefit-title {
  font-size: 24px;
  line-height: var(--lh-2xl);
}
.benefit-copy p {
  color: var(--text-2);
}
.benefit-visual {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  place-items: center;
  padding-block: 24px;
}
@media (min-width: 768px) {
  .benefit-title {
    font-size: 30px;
    line-height: var(--lh-3xl);
  }
}
@media (min-width: 1024px) {
  .benefits {
    gap: 96px;
  }
  .benefit {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 64px;
  }
  .benefit.is-flip .benefit-visual {
    order: -1;
  }
}

/* ---------- 功能小卡 ---------- */
.features {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
}
.feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-content: start;
  gap: 12px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background-color: var(--surface-1);
}
.feature-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 4px;
  border-radius: 12px;
  background-color: var(--surface-3);
  color: var(--accent);
}
.feature-icon .icon {
  width: 24px;
  height: 24px;
}
.feature h3 {
  font-size: 20px;
  line-height: var(--lh-xl);
}
.feature p {
  font-size: 14px;
  line-height: var(--lh-sm);
  color: var(--text-2);
}
@media (min-width: 640px) {
  .features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 1024px) {
  .features {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* ---------- 標語：捲動時逐字由淡轉亮 ---------- */
.tagline {
  padding-block: 96px;
}
.tagline-text {
  max-width: 680px;
  margin-inline: auto;
  font-size: 30px;
  line-height: var(--lh-3xl);
  font-weight: 600;
  letter-spacing: var(--track-tight);
  text-align: center;
}
.is-armed .tagline-word {
  opacity: 0.3;
  transition: opacity 500ms var(--ease);
}
.is-armed.is-lit .tagline-word {
  opacity: 1;
}
.is-armed.is-lit .tagline-word {
  transition-delay: min(calc(var(--i) * 60ms), 600ms);
}
@media (min-width: 768px) {
  .tagline-text {
    font-size: 36px;
    line-height: var(--lh-4xl);
  }
}

/* ---------- 最後的下載區 ---------- */
.cta-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
  gap: 24px;
  padding: 48px 24px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background-color: var(--surface-1);
  text-align: center;
}
.cta-icon {
  width: 96px;
  height: 96px;
  border-radius: 24px;
}
.cta-card .proof {
  justify-content: center;
}
@media (min-width: 768px) {
  .cta-card {
    padding: 64px 48px;
  }
}

/* ---------- 其他頁面的入口 ---------- */
.links {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
}
.links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 24px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background-color: var(--surface-1);
  font-weight: 600;
  transition: border-color 300ms var(--ease), background-color 300ms var(--ease);
}
.links a:hover {
  border-color: var(--line-strong);
  background-color: var(--surface-2);
}
.links .icon {
  color: var(--text-3);
}
@media (min-width: 768px) {
  .links {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* ---------- 頁尾 ---------- */
.site-footer {
  padding-block: 48px calc(64px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--line);
}
.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
}
.footer-brand {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
}
.footer-brand .brand {
  padding-right: 0;
}
.footer-brand p {
  font-size: 14px;
  line-height: var(--lh-sm);
  color: var(--text-3);
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 24px;
  font-size: 14px;
  line-height: var(--lh-sm);
  color: var(--text-2);
}
.footer-links a {
  transition: color 300ms var(--ease);
}
.footer-links a:hover {
  color: var(--text);
}
.footer-copy {
  font-size: 12px;
  line-height: var(--lh-xs);
  color: var(--text-3);
}
@media (min-width: 768px) {
  .footer-inner {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
  }
  .footer-copy {
    grid-column: 1 / -1;
  }
}

/* ---------- 捲動顯現 ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 700ms var(--ease), transform 700ms var(--ease);
}
.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .js .reveal {
    opacity: 1;
    transform: none;
  }
  .is-armed .tagline-word {
    opacity: 1;
  }
}

/* =====================================================================
   內頁（支援與常見問題、隱私權政策）
   ===================================================================== */

/* ---------- 內頁頁首 ---------- */
.page-hero {
  padding-top: calc(96px + env(safe-area-inset-top, 0px));
  padding-bottom: 48px;
}
.page-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  max-width: 760px;
}
.page-title {
  font-size: 30px;
  line-height: var(--lh-3xl);
}
.page-meta {
  font-size: 14px;
  line-height: var(--lh-sm);
  color: var(--text-3);
}
@media (min-width: 768px) {
  .page-title {
    font-size: 36px;
    line-height: var(--lh-4xl);
  }
}
@media (min-width: 1024px) {
  .page-hero {
    padding-top: calc(128px + env(safe-area-inset-top, 0px));
    padding-bottom: 64px;
  }
}

/* ---------- 聯絡卡 ---------- */
.contact-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background-color: var(--surface-1);
}
.contact-card .contact-title {
  font-size: 20px;
  line-height: var(--lh-xl);
  font-weight: 600;
}
.contact-card p {
  color: var(--text-2);
}
.contact-card .hint {
  margin-top: 8px;
  font-size: 14px;
  line-height: var(--lh-sm);
  color: var(--text-3);
}
.contact-card .btn {
  justify-self: start;
  margin-top: 8px;
}
@media (min-width: 768px) {
  .contact-card {
    padding: 32px;
  }
}

/* ---------- 支援頁上方的三張圖卡 ---------- */
.highlights {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
}
.hl {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-content: start;
  gap: 16px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background-color: var(--surface-1);
}
/* 內層圓角 = 外層 24 − 間距 16 = 8 */
.hl-shot {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  place-items: center;
  padding: 16px;
  border-radius: 8px;
  background-color: var(--surface-3);
}
.hl-shot img {
  width: auto;
  max-height: 280px;
  border-radius: 8px;
}
.hl-text {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 4px;
  padding: 0 8px 8px;
}
.hl-text h3 {
  font-size: 16px;
  line-height: var(--lh-base);
}
.hl-text p {
  font-size: 14px;
  line-height: var(--lh-sm);
  color: var(--text-2);
}
@media (min-width: 768px) {
  .highlights {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* ---------- 常見問題 ---------- */
.faq-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 32px;
}
.faq-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
}
.faq-item {
  border: 1px solid var(--line);
  border-radius: 16px;
  background-color: var(--surface-1);
  transition: border-color 300ms var(--ease);
}
.faq-item[open] {
  border-color: var(--line-strong);
}
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 24px;
  border-radius: 16px;
  font-size: 16px;
  line-height: var(--lh-base);
  font-weight: 600;
  list-style: none;
  cursor: pointer;
}
.faq-item summary::-webkit-details-marker {
  display: none;
}
.faq-item summary .icon {
  color: var(--text-3);
  transition: transform 500ms var(--ease);
}
.faq-item[open] summary .icon {
  transform: rotate(45deg);
}
.faq-answer {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  padding: 0 24px 24px;
  color: var(--text-2);
}
.faq-answer strong {
  color: var(--text);
}
.faq-answer ul {
  display: grid;
  gap: 8px;
}
/* 項目符號用絕對定位，li 裡的行內內容才會照常接在一起排 */
.faq-answer li {
  position: relative;
  padding-left: 20px;
}
.faq-answer li::before {
  content: "";
  position: absolute;
  top: 11px;
  left: 4px;
  width: 6px;
  height: 6px;
  border-radius: 9999px;
  background-color: var(--accent);
}
@media (min-width: 1024px) {
  .faq-layout {
    grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
    gap: 64px;
    align-items: start;
  }
  .faq-layout .section-head {
    position: sticky;
    top: 96px;
    margin-bottom: 0;
  }
}

/* ---------- 答案裡的圖與提醒 ---------- */
.fig {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
  gap: 12px;
  margin-block: 4px;
}
.fig .shot {
  max-width: 100%;
}
.fig figcaption {
  font-size: 14px;
  line-height: var(--lh-sm);
  color: var(--text-3);
  text-align: center;
}
.fig figcaption .zoom-hint {
  color: var(--accent);
}
.note-card {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background-color: var(--surface-2);
  font-size: 14px;
  line-height: var(--lh-sm);
  color: var(--text-2);
}
.note-card .icon {
  margin-top: 2px;
  color: var(--accent);
}

/* ---------- 方案價格 ---------- */
.plans {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  margin-block: 4px;
}
.plan {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background-color: var(--surface-2);
  font-size: 14px;
  line-height: var(--lh-sm);
}
.plan b {
  color: var(--text);
}
.plan span {
  color: var(--accent);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* ---------- 長文（隱私權政策） ---------- */
.prose {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  max-width: 760px;
}
.prose h2 {
  margin-top: 32px;
  font-size: 20px;
  line-height: var(--lh-xl);
}
.prose h2:first-child {
  margin-top: 0;
}
.prose p {
  color: var(--text-2);
}
.prose ul {
  display: grid;
  gap: 8px;
  color: var(--text-2);
}
.prose li {
  position: relative;
  padding-left: 20px;
}
.prose li::before {
  content: "";
  position: absolute;
  top: 11px;
  left: 4px;
  width: 6px;
  height: 6px;
  border-radius: 9999px;
  background-color: var(--accent);
}
@media (min-width: 768px) {
  .prose h2 {
    margin-top: 40px;
    font-size: 24px;
    line-height: var(--lh-2xl);
  }
}

/* ---------- 表格 ---------- */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 16px;
  background-color: var(--surface-1);
  scrollbar-width: thin;
  scrollbar-color: var(--surface-4) transparent;
}
table {
  border-collapse: collapse;
  width: 100%;
  min-width: 520px;
  font-size: 14px;
  line-height: var(--lh-sm);
}
th,
td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
tr:last-child th,
tr:last-child td {
  border-bottom: 0;
}
th {
  background-color: var(--surface-3);
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
}
td {
  color: var(--text-2);
}
.fig figcaption.withzoom::after {
  content: "（點圖可放大）";
  color: var(--accent);
}
