:root {
  --bg: #000000;
  --ink: #ffffff;
  --brand: #000000;
  --brand-soft: #171717;
  --accent: #10f0b5;
  --card: rgba(23, 23, 23, 0.6);
  --line: rgba(255, 255, 255, 0.08);
  --muted: rgba(255, 255, 255, 0.65);
  --white: #ffffff;
  --glass: rgba(23, 23, 23, 0.9);
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
  --radius: 22px;
  --header-h: 88px;
}

* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
html, body { margin: 0; padding: 0; }
h1, h2, h3, p, li, summary, td, th { overflow-wrap: break-word; }
h1, h2, h3 { text-wrap: balance; }
:lang(ja) { word-break: auto-phrase; }
body {
  font-family: "Readex Pro", "Noto Sans TC", "Noto Sans SC", "Noto Sans JP", "Noto Sans KR", "PingFang TC", "PingFang SC", "Hiragino Sans", "Apple SD Gothic Neo", "Microsoft JhengHei", system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--accent); color: #000; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; -webkit-tap-highlight-color: rgba(16, 240, 181, 0.18); }
button, .btn { font-family: inherit; }

.wrap { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }
.eyebrow {
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 12px;
  color: var(--accent);
  font-weight: 600;
}
h1, h2, h3, .serif {
  font-family: "Readex Pro", "Noto Sans TC", "Noto Sans SC", "Noto Sans JP", "Noto Sans KR", "PingFang TC", "PingFang SC", "Hiragino Sans", "Apple SD Gothic Neo", sans-serif;
  font-weight: 600;
}
h1, h2 { letter-spacing: -0.03em; line-height: 1.15; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  padding: 16px 0 8px;
  background: transparent;
}
.header-row {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 10px 8px 14px;
  border-radius: 999px;
  background: var(--glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--line);
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  min-width: 0;
  min-height: 44px;
}
.logo-mark {
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  display: block;
  border-radius: 8px;
}
.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.logo-text strong { font-size: 14px; font-weight: 600; white-space: nowrap; }
.logo { flex-shrink: 0; }
.header-cta { white-space: nowrap; padding: 11px 18px; font-size: 14px; }
.logo-text small { font-size: 12px; color: var(--muted); }
.nav {
  display: flex;
  gap: 6px;
  align-items: center;
  font-size: 14px;
}
.nav a {
  white-space: nowrap;
  text-decoration: none;
  color: var(--muted);
  padding: 8px 12px;
  border-radius: 999px;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  text-decoration: none;
  border-radius: 999px;
  padding: 13px 20px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.btn-primary { background: #fff; color: #000; }
.btn-primary:hover { background: var(--accent); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-accent { background: var(--accent); color: #000; }
.btn-accent:hover { transform: translateY(-1px); }

.hero {
  padding: 72px 0 48px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  align-items: center;
}
.hero h1 { font-size: clamp(36px, 5vw, 62px); margin: 12px 0 18px; }
.hero .lead { font-size: 18px; color: var(--muted); max-width: 46ch; }
.hero-bullets { margin: 28px 0 0; padding: 0; list-style: none; }
.hero-bullets li {
  padding-left: 22px;
  position: relative;
  margin: 8px 0;
}
.hero-bullets li::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  position: absolute;
  left: 0;
  top: 0.55em;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 28px;
  box-shadow: var(--shadow);
}
.hero-card-img {
  width: min(100%, 320px);
  margin: 0 auto 18px;
  filter: drop-shadow(0 24px 40px rgba(0, 0, 0, 0.55));
}
.qr-box {
  background: #fff;
  border-radius: 18px;
  padding: 14px;
  width: 196px;
  margin: 0 auto 14px;
}
.qr-box svg { width: 100%; height: auto; }
.qr-caption { text-align: center; color: var(--muted); font-size: 13px; }
.only-desktop { display: block; }
.only-mobile { display: none; }

.section { padding: 72px 0; }
.section h2 { font-size: clamp(28px, 4vw, 44px); margin: 8px 0 12px; }
.lead { color: var(--muted); max-width: 62ch; }

.grid-3, .grid-2 { display: grid; gap: 18px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}
.card h3 { margin: 0 0 8px; font-size: 22px; }
.card p { margin: 0 0 12px; color: var(--muted); }
.card ul { margin: 0; padding-left: 18px; color: var(--ink); }
.badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(16, 240, 181, 0.16);
  color: var(--accent);
  margin-bottom: 10px;
}

.scene-link { text-decoration: none; display: block; height: 100%; }
.scene-link:hover { border-color: var(--accent); }

table.compare {
  width: 100%;
  border-collapse: collapse;
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
}
.compare th, .compare td {
  text-align: left;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  font-size: 14px;
}
.compare th {
  background: rgba(16, 240, 181, 0.1);
  color: var(--accent);
  font-weight: 700;
}
.compare tr:last-child td { border-bottom: 0; }

.fee-row { display: grid; grid-template-columns: 1fr auto; gap: 8px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.fee-row strong { font-size: 20px; }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.step { position: relative; }
.step-n {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent);
  color: #000;
  display: grid;
  place-items: center;
  font-weight: 700;
  margin-bottom: 12px;
}

.faq-item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 0 18px;
  margin: 10px 0;
}
.faq-item[open] { border-color: rgba(255, 255, 255, 0.18); }
.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 14px 0;
  min-height: 52px;
  font-weight: 700;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--accent);
  font-size: 18px;
  font-weight: 400;
  line-height: 1;
}
.faq-item[open] summary::after { content: "−"; border-color: var(--accent); }
.faq-item p { margin: 0 0 16px; color: var(--muted); }

.tldr {
  background: rgba(16, 240, 181, 0.08);
  border: 1px solid rgba(16, 240, 181, 0.22);
  border-radius: 24px;
  padding: 28px;
}
.tldr h2 { font-size: 22px; margin: 0 0 12px; }
.tldr ul { margin: 0; padding-left: 20px; }
.tldr li { margin: 8px 0; }

.citations { padding-left: 20px; }
.citations a { color: var(--accent); }

.cta-band {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(16, 240, 181, 0.18), rgba(16, 240, 181, 0.04));
  color: var(--ink);
  border: 1px solid rgba(16, 240, 181, 0.22);
  border-radius: 32px;
  padding: 48px;
  display: grid;
  grid-template-columns: 1.4fr 0.6fr;
  gap: 24px;
  align-items: center;
}
.cta-band::before {
  content: "";
  position: absolute;
  right: -40px;
  top: -48px;
  width: 180px;
  height: 180px;
  background: #10f0b5;
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
  opacity: 0.16;
}
.cta-band p { color: var(--muted); }
.cta-band .btn-accent { justify-self: end; position: relative; }

.guide-body { max-width: 740px; }
.guide-body h2 { margin-top: 36px; }
.guide-body p { font-size: 17px; }
.meta-line { color: var(--muted); font-size: 14px; }

.footer {
  border-top: 1px solid var(--line);
  padding: 40px 0 120px;
  color: var(--muted);
  font-size: 13px;
}
.footer-brand { margin-bottom: 28px; max-width: 62ch; }
.footer-brand .logo { margin-bottom: 12px; }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.footer a { color: var(--ink); }
.trust {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
}
.trust li {
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
}
.legal { margin-top: 24px; max-width: 80ch; }

.sticky-cta {
  display: none;
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  z-index: 30;
  transition: transform 0.25s ease, opacity 0.25s ease, visibility 0.25s;
}
/* 脚本可用时：滚过首屏才出现，页尾 CTA 可见时收起；无脚本则一直显示 */
.has-bar .sticky-cta { transform: translateY(160%); opacity: 0; visibility: hidden; }
.has-bar .sticky-cta.is-on { transform: none; opacity: 1; visibility: visible; }
.sticky-cta .btn {
  width: 100%;
  box-shadow: var(--shadow);
  background: #fff;
  color: #000;
}

/* 头部右侧：语言切换 + CTA + 手机菜单 */
.header-row { position: relative; }
.header-actions { display: flex; align-items: center; gap: 8px; }
.lang-switch { position: relative; }
.lang-switch summary, .mobile-menu summary { list-style: none; cursor: pointer; }
.lang-switch summary::-webkit-details-marker, .mobile-menu summary::-webkit-details-marker { display: none; }
.lang-switch summary {
  font-size: 13px; color: var(--muted); padding: 8px 12px;
  border: 1px solid var(--line); border-radius: 999px; white-space: nowrap;
}
.lang-switch summary::after { content: "▾"; margin-left: 6px; font-size: 10px; }
.lang-switch[open] summary, .lang-switch summary:hover { color: var(--ink); }
.lang-switch ul {
  position: absolute; right: 0; top: calc(100% + 10px); z-index: 40;
  min-width: 180px; margin: 0; padding: 6px; list-style: none;
  background: #171717; border: 1px solid var(--line); border-radius: 16px;
  box-shadow: 0 18px 40px rgba(0,0,0,.5);
}
.lang-switch li a {
  display: block; padding: 9px 12px; border-radius: 10px; font-size: 14px;
  color: var(--muted); text-decoration: none;
}
.lang-switch li a:hover, .lang-switch li a[aria-current="true"] { color: var(--ink); background: #232323; }
.mobile-menu { display: none; position: static; }
.mobile-menu summary {
  width: 44px; height: 44px; border-radius: 999px; border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
}
.burger, .burger::before, .burger::after {
  display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; content: "";
}
.burger { position: relative; }
.burger::before { position: absolute; top: -6px; }
.burger::after { position: absolute; top: 6px; }
.mobile-menu[open] .burger { background: transparent; }
.mobile-menu[open] .burger::before { top: 0; transform: rotate(45deg); }
.mobile-menu[open] .burger::after { top: 0; transform: rotate(-45deg); }
.mobile-panel {
  position: absolute; left: 0; right: 0; top: calc(100% + 8px); z-index: 40;
  display: flex; flex-direction: column; gap: 2px; padding: 10px;
  background: #171717; border: 1px solid var(--line); border-radius: 22px;
  box-shadow: 0 18px 40px rgba(0,0,0,.55);
}
.mobile-panel > a {
  padding: 14px 16px; border-radius: 14px; text-decoration: none; color: var(--muted); font-size: 16px;
}
.mobile-panel > a:hover, .mobile-panel > a[aria-current="page"] { color: var(--ink); background: #232323; }
.mobile-lang-title { margin: 10px 16px 4px; font-size: 12px; color: var(--muted); }
.mobile-langs { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 12px 10px; }
.mobile-langs a {
  padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px;
  font-size: 14px; color: var(--muted); text-decoration: none;
}
.mobile-langs a[aria-current="true"] { color: #000; background: var(--accent); border-color: var(--accent); }
.footer-langs { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin: 20px 0 0; font-size: 14px; }
.footer-langs a { color: var(--muted); }
.footer-langs a[aria-current="true"] { color: var(--ink); }

.breadcrumbs { font-size: 13px; line-height: 1.4; color: var(--muted); margin: 6px 0 0; }
.breadcrumbs a { color: var(--muted); display: inline-block; min-width: 44px; padding: 13px 6px; text-align: center; }
.breadcrumbs a:first-child { margin-left: -6px; }

@media (max-width: 1080px) {
  .nav { display: none; }
  .mobile-menu { display: block; }
}

@media (max-width: 900px) {
  :root { --radius: 18px; }
  .hero, .grid-3, .grid-2, .steps, .cta-band, .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .hero > *, .grid-3 > *, .grid-2 > *, .steps > *, .cta-band > * { min-width: 0; }
  .lang-switch, .header-cta { display: none; }
  .mobile-menu { display: block; }
  .only-desktop { display: none; }
  .only-mobile { display: flex; }
  .sticky-cta { display: block; }

  /* 头部：更紧凑、更不透明，避免正文透过玻璃层干扰 */
  .site-header { padding: 10px 0 6px; }
  .header-row { min-height: 56px; padding: 6px 8px 6px 14px; border-radius: 22px; background: rgba(23, 23, 23, 0.96); }
  .mobile-panel { max-height: calc(100vh - 96px); max-height: calc(100dvh - 96px); overflow-y: auto; }
  .mobile-panel > a { min-height: 48px; display: flex; align-items: center; }

  /* 首屏 */
  .hero { padding: 24px 0 20px; gap: 24px; }
  .hero h1 { font-size: clamp(30px, 8.6vw, 42px); margin: 10px 0 14px; }
  .hero .lead { font-size: 16px; }
  .hero-bullets { margin-top: 20px; }
  .hero-actions { display: grid; grid-template-columns: 1fr; gap: 10px; margin-top: 22px; }
  .hero-card { padding: 20px; border-radius: 24px; }
  .hero-card .hero-actions { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); margin-top: 0; }
  .hero-card .btn { padding: 12px 10px; text-align: center; line-height: 1.3; }
  .hero-card-img { width: min(100%, 260px); margin-bottom: 16px; }
  .qr-caption { margin: 14px 0 0; }
  .btn { min-height: 48px; }

  /* 节奏：区块更紧，页面不再那么长 */
  .section { padding: 44px 0; }
  .section h2 { font-size: clamp(24px, 6.6vw, 32px); }
  .grid-3, .grid-2 { gap: 12px; }
  .card { padding: 18px; }
  .card h3 { font-size: 19px; }
  .card p { margin-bottom: 10px; }
  .tldr { padding: 20px; border-radius: 20px; }
  .tldr h2 { font-size: 20px; }
  .cta-band { padding: 24px; border-radius: 24px; gap: 18px; }
  .cta-band .btn-accent { justify-self: stretch; }
  .guide-body h2 { margin-top: 28px; }
  .guide-body p { font-size: 16px; }

  /* 步骤：序号放左边，四步合起来矮一半 */
  .step { display: grid; grid-template-columns: 36px 1fr; column-gap: 14px; align-items: start; }
  .step-n { grid-row: 1 / span 2; margin: 0; }
  .step h3 { margin: 4px 0 4px; font-size: 18px; }
  .step p { margin: 0; }

  /* 页脚：点击区域加大，底部给悬浮条和安全区留位 */
  .footer { padding: 32px 0 calc(96px + env(safe-area-inset-bottom, 0px)); }
  .footer-grid a, .footer-langs a { display: inline-block; padding: 8px 0; }
  .footer-langs { gap: 2px 18px; }
  .trust li { font-size: 12px; }
}

/* 对照表：手机上拆成「一行一张卡」，每格带自己的列名，不再横向挤 */
@media (max-width: 720px) {
  .compare.stack, .compare.stack tbody { display: block; width: 100%; }
  .compare.stack { background: none; border: 0; border-radius: 0; overflow: visible; }
  .compare.stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .compare.stack tr {
    display: block;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 4px 16px 8px;
    margin: 0 0 12px;
  }
  .compare.stack td { display: block; border: 0; padding: 8px 0; font-size: 15px; line-height: 1.6; color: var(--muted); }
  .compare.stack td:first-child {
    color: var(--ink);
    font-size: 16px;
    font-weight: 700;
    padding: 12px 0 10px;
    margin-bottom: 2px;
    border-bottom: 1px solid var(--line);
  }
  .compare.stack td:not(:first-child)::before {
    content: attr(data-label);
    display: block;
    color: var(--accent);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.02em;
    margin-bottom: 1px;
  }
}

@media (min-width: 340px) and (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .wrap { width: calc(100% - 32px); }
  .header-row { padding-left: 12px; }
  .logo-text strong { font-size: 13px; }
  .sticky-cta { left: 10px; right: 10px; }
  .fee-row strong { font-size: 18px; }
  .mobile-langs a { padding: 10px 14px; }
}

@media (hover: none) {
  .btn-primary:hover { background: #fff; }
  .btn-accent:hover { transform: none; }
  .btn-ghost:hover { border-color: var(--line); color: var(--ink); }
  .scene-link:hover { border-color: var(--line); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .sticky-cta { transition: none; }
}
