:root {
  color-scheme: dark;
  --bg: #0a0d14;
  --bg-alt: #101522;
  --surface: #141a29;
  --surface-hover: #1a2236;
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(124, 152, 255, 0.35);
  --text: #eef2ff;
  --muted: #9aa6c1;
  --accent: #6c8cff;
  --accent-2: #34d399;
  --accent-glow: rgba(108, 140, 255, 0.22);
  --danger: #f87171;
  --radius: 14px;
  --max: 1140px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans TC", "Noto Sans JP", "Noto Sans KR", Roboto, sans-serif;
  background: radial-gradient(circle at 18% -10%, rgba(108, 140, 255, 0.16), transparent 45%),
              radial-gradient(circle at 82% 8%, rgba(52, 211, 153, 0.10), transparent 40%),
              var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
}

/* Header */
.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(14px);
  background: rgba(10, 13, 20, 0.78);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 66px;
}
.nav .brand, .nav-links a, .nav-actions .btn, .nav-actions summary { white-space: nowrap; }
.nav-actions .dl:not([hidden]) { display: flex; }
.nav-actions .btn, .nav-actions .lang-select { height: 36px; box-sizing: border-box; padding-top: 0; padding-bottom: 0; }
.nav-toggle {
  display: none;
  width: 38px; height: 34px;
  align-items: center; justify-content: center;
  background: var(--surface); color: var(--text);
  border: 1px solid var(--border); border-radius: 9px; cursor: pointer;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px;
}
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: relative; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 4px; }
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
}
.brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.9rem;
  color: #071018;
  box-shadow: 0 4px 16px var(--accent-glow);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--muted);
  font-size: 0.92rem;
}
.nav-links a:hover { color: var(--text); }
.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.lang-select {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 6px 10px;
  font-size: 0.85rem;
  cursor: pointer;
}
.lang-select:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.lang-select option { background: var(--surface); color: var(--text); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-sm { padding: 7px 14px; font-size: 0.86rem; }
.btn-primary {
  background: linear-gradient(135deg, #4a63d6, #3d55c4);
  color: #fff;
  box-shadow: 0 8px 24px var(--accent-glow);
}
.btn-primary:hover { filter: brightness(1.08); }
.btn-ghost {
  background: var(--surface);
  border-color: var(--border);
  color: var(--text);
}
.btn-ghost:hover {
  background: var(--surface-hover);
  border-color: var(--border-strong);
}

/* Hero */
.hero {
  padding: 76px 0 48px;
  text-align: center;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.84rem;
  color: #c7d6ff;
  background: rgba(108, 140, 255, 0.12);
  border: 1px solid rgba(108, 140, 255, 0.28);
  margin-bottom: 22px;
}
.pill-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-2);
  box-shadow: 0 0 10px var(--accent-2);
}
.hero h1 {
  margin: 0 auto 18px;
  max-width: 880px;
  font-size: clamp(2.1rem, 4.6vw, 3.55rem);
  line-height: 1.14;
  letter-spacing: -0.025em;
  background: linear-gradient(180deg, #ffffff 10%, #c6d4ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub {
  margin: 0 auto 28px;
  max-width: 700px;
  color: var(--muted);
  font-size: clamp(1rem, 1.5vw, 1.15rem);
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 18px;
}
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 20px;
  color: var(--muted);
  font-size: 0.86rem;
  margin-bottom: 42px;
}
.hero-shot {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
  background: var(--surface);
}
.hero-shot img { width: 100%; height: auto; }

/* Sections */
section { --pad: 72px; padding: var(--pad) 0; }
.section-head {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 44px;
}
.section-head h2 {
  margin: 0 0 12px;
  font-size: clamp(1.65rem, 3vw, 2.3rem);
  letter-spacing: -0.02em;
}
.section-head p {
  margin: 0;
  color: var(--muted);
  font-size: 1.02rem;
}

/* Performance Benchmark Section */
.perf-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 24px;
  align-items: stretch;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
}
.bench-card h3 {
  margin: 0 0 8px;
  font-size: 1.22rem;
}
.bench-card .muted {
  color: var(--muted);
  font-size: 0.92rem;
  margin: 0 0 22px;
}
.bar-group { margin-bottom: 18px; }
.bar-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.92rem;
  margin-bottom: 7px;
}
.bar-track {
  height: 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}
.bar-fill {
  height: 100%;
  border-radius: 999px;
}
.bar-fill.fast {
  width: 7.5%;
  min-width: 28px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 18px rgba(52, 211, 153, 0.45);
}
.bar-fill.slow {
  width: 100%;
  background: rgba(248, 113, 113, 0.55);
}
.bench-note {
  margin: 14px 0 0;
  font-size: 0.84rem;
  color: var(--muted);
}
.stat-stack {
  display: grid;
  gap: 16px;
}
.stat-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.stat-num {
  font-size: 1.9rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #fff, var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat-card h4 { margin: 4px 0 4px; font-size: 1rem; }
.stat-card p { margin: 0; color: var(--muted); font-size: 0.9rem; }

/* Feature Grid */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.feat-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(108, 140, 255, 0.14);
  border: 1px solid rgba(108, 140, 255, 0.28);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  margin-bottom: 14px;
}
.card h3 { margin: 0 0 8px; font-size: 1.08rem; }
.card p { margin: 0; color: var(--muted); font-size: 0.93rem; }

/* Interactive Showcase */
.tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 22px;
}
.tab-btn {
  background: var(--surface);
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.15s ease;
}
.tab-btn:hover { color: var(--text); border-color: var(--border-strong); }
.tab-btn.active {
  background: rgba(108, 140, 255, 0.18);
  color: #fff;
  border-color: var(--accent);
}
.showcase-frame {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}
.showcase-caption {
  padding: 14px 20px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.92rem;
  text-align: center;
}

/* Pricing */
.sla { max-width: 820px; margin: 40px auto 0; font-size: 0.94rem; }
.sla h3 { margin: 0 0 14px; font-size: 1.2rem; text-align: center; }
.sla-scroll { overflow-x: auto; }
.sla table { width: 100%; border-collapse: collapse; }
.sla th, .sla td { padding: 10px 14px; text-align: left; border-bottom: 1px solid rgba(148, 163, 184, 0.25); }
.sla ul { padding-left: 1.3em; }
.sla li { margin: 4px 0; }
.sla-prevails { opacity: 0.7; font-size: 0.85rem; }
.compare th:not(:first-child), .compare td { text-align: center; width: 6.5em; }
.compare tr > th[scope="row"] { font-weight: 500; }
.compare td.yes { color: var(--accent-2); font-weight: 700; }
.compare td.no { color: var(--muted); }
.compare-roles { margin: 22px 0 14px; }
.compare-roles div { margin: 6px 0; }
.compare-roles dt { display: inline; font-weight: 700; margin-right: 0.6em; }
.compare-roles dd { display: inline; margin: 0; color: var(--muted); }
@media (max-width: 560px) { .compare th, .compare td { padding: 8px 5px; } .compare th:not(:first-child), .compare td { width: auto; font-size: 0.82rem; } }
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  align-items: stretch;
}
.plan {
  display: flex;
  flex-direction: column;
  position: relative;
}
.plan.featured {
  border-color: var(--accent);
  box-shadow: 0 12px 44px rgba(108, 140, 255, 0.18);
  background: linear-gradient(180deg, rgba(108, 140, 255, 0.11), var(--surface) 45%);
}
.plan-badge {
  position: absolute;
  top: -12px;
  right: 20px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #071018;
  font-size: 0.76rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 999px;
}
.plan-name { font-size: 1.2rem; font-weight: 700; margin: 0 0 6px; }
.plan-limit { color: var(--accent-2); font-size: 0.92rem; font-weight: 600; margin: 0 0 14px; }
.plan-price {
  font-size: 1.85rem;
  font-weight: 800;
  margin: 0 0 10px;
  letter-spacing: -0.02em;
}
.plan-desc { color: var(--muted); font-size: 0.9rem; margin: 0 0 18px; }
.thanks { max-width: 720px; padding: 72px 0; }
.thanks h1 { margin: 0 0 12px; }
.thanks-steps { margin: 24px 0 32px; padding-left: 22px; display: grid; gap: 12px; line-height: 1.6; }
.thanks-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.plan-price small { font-size: 0.95rem; font-weight: 600; color: var(--muted); }
.plan-unit { color: var(--muted); font-size: 0.85rem; margin: 0 0 6px; min-height: 1.2em; }
.trial-note { color: var(--accent-2); font-size: 0.85rem; font-weight: 600; margin: 0 0 16px; }
.billing-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 100%;
  border: 1px solid var(--border, rgba(255, 255, 255, 0.18));
  border-radius: 999px;
  overflow: hidden;
  margin: 0 0 12px;
}
.billing-toggle button {
  background: transparent;
  color: var(--muted);
  border: 0;
  padding: 7px 10px;
  font: inherit;
  font-size: 0.85rem;
  text-align: center;
  cursor: pointer;
}
.billing-toggle button.active { background: var(--accent-2); color: #0b0f14; font-weight: 700; }
.devices-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 14px;
  font-size: 0.94rem;
  color: var(--muted);
}
.devices-row select {
  appearance: none;
  -webkit-appearance: none;
  min-width: 120px;
  background-color: #182032;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23e8ecf8' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  color: #ffffff;
  border: 1.5px solid rgba(124, 140, 255, 0.55);
  border-radius: 10px;
  padding: 9px 38px 9px 14px;
  font: inherit;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}
.devices-row select:hover {
  border-color: var(--accent);
  background-color: #1e2840;
  box-shadow: 0 0 0 3px rgba(110, 140, 255, 0.14);
}
.devices-row select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(110, 140, 255, 0.28);
}
.devices-row select option { background: var(--surface); color: var(--text); font-weight: 600; }
.plan ul {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  display: grid;
  gap: 10px;
  flex: 1;
}
.plan li {
  font-size: 0.92rem;
  color: #d8e0f5;
  padding-left: 22px;
  position: relative;
}
.plan li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent-2);
  font-weight: 700;
}
.plan .btn { width: 100%; }

/* FAQ */
.faq-list {
  max-width: 820px;
  margin: 0 auto;
  display: grid;
  gap: 12px;
}
.faq-list details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 20px;
}
.faq-list summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.faq-list summary::after {
  content: "+";
  color: var(--accent);
  font-size: 1.25rem;
  font-weight: 700;
}
.faq-list details[open] summary::after { content: "−"; }
.faq-list details p,
.faq-list ul {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.94rem;
}
.faq-list ul { padding-left: 20px; }
.faq-list code { overflow-wrap: anywhere; font-size: 0.86rem; }
.faq-list li code { margin-right: 10px; }
.faq-codes { display: flex; flex-wrap: wrap; gap: 4px 12px; }
.faq-list .faq-more { margin-top: 10px; padding: 10px 14px; }
.faq-list .faq-more summary { font-size: 0.94rem; }
.faq-list .faq-more:not([open]) > summary::after { content: "+"; }
.faq-request.disabled { color: var(--muted); opacity: 0.6; cursor: not-allowed; text-decoration: none; }

/* Footer */
footer {
  border-top: 1px solid var(--border);
  padding: 40px 0 54px;
  color: var(--muted);
  font-size: 0.88rem;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}
.footer-links a:hover { color: var(--text); }

/* 首頁頂端列：連結固定在正中央。放不下時（各語言字數不同，由 app.js 量）收成漢堡選單 */
.nav-inner.centered { width: min(1400px, calc(100% - 32px)); display: grid; grid-template-columns: 1fr auto 1fr; column-gap: 24px; }
.nav-inner.centered > .brand { justify-self: start; }
.nav-inner.centered > .nav-actions { justify-self: end; }
.nav-inner.centered > .nav-links { flex-wrap: wrap; justify-content: center; }
.nav.compact .nav-toggle { display: inline-flex; order: -1; }
.nav.compact .nav-inner { display: flex; justify-content: flex-start; position: relative; }
.nav.compact .nav-actions { margin-left: auto; }
.nav.compact .nav-links { display: none; position: absolute; top: calc(100% + 1px); left: 0; z-index: 41; min-width: 220px;
  flex-direction: column; flex-wrap: nowrap; align-items: stretch; gap: 2px; padding: 8px;
  background: var(--bg-alt); border: 1px solid var(--border); border-radius: 0 0 12px 12px; }
.nav.compact .nav-links a { padding: 9px 12px; border-radius: 8px; }
.nav.compact .nav-links a:hover { background: var(--surface-hover); }
.nav.compact.open .nav-links { display: flex; }
@media (max-width: 640px) {
  .nav-inner, .nav.compact .nav-inner { flex-wrap: wrap; row-gap: 8px; padding: 10px 0; }
  .nav-actions { width: 100%; flex-wrap: wrap; justify-content: flex-end; }
}

@media (max-width: 900px) {
  .perf-grid, .grid-3, .pricing-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 48px; }
  section { --pad: 52px; }
}

/* pricing layout fixes */
.plan p.plan-desc { margin: 0 0 18px; line-height: 1.55; }
.plan p.plan-limit { margin: 0 0 14px; }
.plan p.plan-unit { margin: 0 0 6px; }
.plan p.trial-note { margin: 0 0 10px; }
.plan .plan-price { margin: 0 0 10px; }
.plan ul { align-content: start; }
.brand-mark { background: url('/assets/logo.svg') center/cover no-repeat; color: transparent; font-size: 0; box-shadow: 0 4px 16px rgba(80, 94, 214, 0.35); }
.thanks-order { color: var(--muted); font-size: 0.85rem; word-break: break-all; }
.ent-exchange-link { display: block; text-align: center; margin-top: 10px; font-size: 0.84rem; color: var(--muted); text-decoration: none; }
.ent-exchange-link:hover { color: var(--text); text-decoration: underline; }
.exchange-form { display: grid; gap: 14px; margin: 24px 0; }
.exchange-form label { display: grid; gap: 6px; font-size: 0.9rem; color: var(--muted); }
.exchange-form input, .exchange-result textarea {
  width: 100%;
  background: var(--bg-alt);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  font: inherit;
}
.exchange-result { display: grid; gap: 12px; margin-top: 20px; }
.exchange-result textarea { font-family: ui-monospace, Consolas, monospace; font-size: 0.8rem; min-height: 120px; resize: vertical; }
.exchange-err { color: var(--danger); font-size: 0.9rem; margin: 8px 0 0; }
.exchange-meta { color: var(--accent-2); font-size: 0.88rem; margin: 0; }
.manage-modal {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  width: min(460px, 92vw);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55);
}
.manage-modal::backdrop { background: rgba(4, 6, 12, 0.72); backdrop-filter: blur(4px); }
.manage-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.manage-head h3 { margin: 0; font-size: 1.1rem; }
.manage-close { background: none; border: 0; color: var(--muted); font-size: 1.4rem; line-height: 1; cursor: pointer; padding: 2px 6px; }
.manage-close:hover { color: var(--text); }

/* 下載下拉選單 */
.dl { position: relative; display: inline-block; }
.dl[hidden] { display: none; }
.dl summary.disabled { cursor: default; }
.dl summary.disabled::after { display: none; }
.dl summary { list-style: none; cursor: pointer; user-select: none; }
.dl summary::-webkit-details-marker { display: none; }
.dl summary::after { content: "▾"; font-size: 0.8em; margin-left: 6px; }
.dl-block { display: block; }
.dl-block summary { width: 100%; }
.dl-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 60;
  display: grid;
  min-width: 100%;
  width: max-content;
  padding: 6px;
  background: #182032;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.55);
  text-align: left;
}
.dl-menu a { padding: 9px 14px; border-radius: 8px; color: var(--text); font-size: 0.9rem; font-weight: 600; }
.dl-menu a:hover { background: var(--surface-hover); }
.dl-up .dl-menu { top: auto; bottom: calc(100% + 6px); }
.dl-block .dl-menu { left: 0; }
.dl-link { color: var(--muted); }
.btn.disabled { opacity: 0.55; cursor: default; box-shadow: none; }
.btn.disabled:hover { transform: none; filter: none; }

/* 安全標頭不允許 style="…"，樣式一律寫在這裡 */
.text-fast { color: var(--accent-2); }
.manage-sub { margin: 0 0 14px; font-size: 0.9rem; }
.exchange-form.flush { margin: 0; }
.field-hint { margin: 0; font-size: 0.84rem; }

.agent-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.agent-list li { display: flex; flex-direction: column; gap: 4px; padding: 18px; border: 1px solid var(--border); border-radius: 12px; overflow-wrap: anywhere; }
.agent-list h3 { margin: 0 0 4px; font-size: 0.85rem; color: var(--muted); }
.agent-list span { color: var(--muted); font-size: 0.93rem; }
.agent-list .agent-tier { display: flex; align-items: center; gap: 6px; }
.agent-vendor { margin: 20px 0 0; text-align: center; color: var(--muted); }
#partners[hidden], #foot-partners[hidden] { display: none; }

/* 方案比較表：分組、文字欄、有但書的欄位 */
.compare tr.group > th { text-align: left; padding-top: 22px; font-size: 0.82rem; letter-spacing: 0.04em; color: var(--accent-2); }
.compare td.text { font-size: 0.86rem; line-height: 1.45; }
.compare td.warn a, .compare td.yes sup a { color: inherit; text-decoration: none; }
.compare td.warn { color: #f5b942; font-size: 1.05rem; }
.compare th:not(:first-child), .compare td { width: 9.5em; }
.compare-notes { list-style: none; margin: 14px 0 0; padding: 0; color: var(--muted); font-size: 0.88rem; }
.compare-notes li { display: flex; gap: 8px; margin: 6px 0; }
.compare-notes .note-mark { color: #f5b942; white-space: nowrap; }
/* 跳到區塊時標題停在頂端列下方 20px：扣掉區塊自己的上方留白 */
#pricing, #faq, #performance, #features, #showcase { scroll-margin-top: calc(var(--nav-h, 66px) + 20px - var(--pad)); }
#compare, #support, .compare-notes li { scroll-margin-top: calc(var(--nav-h, 66px) + 18px); }
/* 窄螢幕：功能名稱佔一整列，三個方案在下面各一欄 */
@media (max-width: 560px) {
  .compare table, .compare tbody { display: block; }
  .compare tr { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-bottom: 1px solid rgba(148, 163, 184, 0.25); }
  .compare th, .compare td { display: block; width: auto; border: 0; padding: 6px 3px; overflow-wrap: break-word; hyphens: auto; }
  .compare th:not(:first-child), .compare td { width: auto; text-align: center; }
  .compare tr > th[scope="row"], .compare tr.group > th { grid-column: 1 / -1; text-align: left; padding-bottom: 2px; }
  .compare tr:first-child > th:first-child { display: none; }
  .compare td.text { font-size: 0.76rem; }
}

/* 「授權方案」下拉選單：滑鼠移上去或鍵盤聚焦時打開 */
.nav-group { position: relative; display: flex; align-items: center; }
.nav-group > a::after { content: ""; display: inline-block; margin-left: 6px; vertical-align: middle; border: 4px solid transparent; border-top-color: currentColor; border-bottom: 0; }
.nav-sub { position: absolute; top: calc(100% + 7px); left: 50%; transform: translateX(-50%); z-index: 42; display: none; flex-direction: column; padding: 8px;
  background: var(--bg-alt); border: 1px solid var(--border); border-radius: 12px; box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35); }
/* 選單放在頂端列下面；中間的空隙用透明區塊接住，滑鼠移過去不會收掉 */
.nav-sub::before { content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: 9px; }
.nav:not(.compact) .nav-links, .nav:not(.compact) .nav-group { align-self: stretch; }
.nav-sub a { padding: 9px 14px; border-radius: 8px; white-space: nowrap; }
.nav-sub a:hover, .nav-sub a:focus-visible { background: var(--surface-hover); }
.nav-group:hover > .nav-sub, .nav-group:focus-within > .nav-sub { display: flex; }
.nav-group.closed > .nav-sub { display: none; }
.nav.compact .nav-group { flex-direction: column; align-items: stretch; }
.nav.compact .nav-group > a::after, .nav.compact .nav-sub::before { display: none; }
.nav.compact .nav-sub { display: flex; position: static; transform: none; padding: 0 0 0 14px; border: 0; box-shadow: none; background: none; font-size: 0.86rem; }
.nav.compact .nav-sub a { white-space: normal; }

/* 「GPU 數量 ?」的授權算法說明 */
.devices-row { position: relative; }
.devices-label { display: inline-flex; align-items: center; gap: 7px; }
.help-btn { width: 20px; height: 20px; padding: 0; border-radius: 50%; border: 1px solid var(--muted); background: transparent; color: var(--muted);
  font: inherit; font-size: 0.76rem; font-weight: 700; line-height: 1; cursor: help; }
.help:hover .help-btn, .help.show .help-btn, .help-btn:focus-visible { border-color: var(--accent); color: var(--text); }
.help-tip { position: absolute; left: 0; right: 0; top: calc(100% + 8px); z-index: 30; display: none; padding: 14px 16px; text-align: left;
  background: #122a26; border: 1px solid #245c4f; border-radius: 10px; box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
  color: #bdf0dc; font-size: 0.84rem; font-weight: 400; line-height: 1.55; }
/* 滑鼠從問號移到說明上時不要中斷 */
.help-tip::before { content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: 18px; }
.help:hover .help-tip, .help.show .help-tip, .help-btn:focus-visible + .help-tip { display: block; }
.help-tip strong { display: block; margin-bottom: 6px; font-size: 0.9rem; }
.help-item { display: list-item; margin: 4px 0 4px 1.2em; }
.help-example { display: block; margin-top: 8px; }

.link-btn { padding: 0; border: 0; background: none; color: inherit; font: inherit; cursor: pointer; }
.link-btn[hidden], .consent[hidden] { display: none; }
.link-btn:hover { color: var(--text); }

/* 流量統計的同意橫幅 */
.consent { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 50; max-width: 720px; margin: 0 auto; display: flex; flex-wrap: wrap;
  align-items: center; justify-content: flex-end; gap: 12px; padding: 14px 18px; background: var(--bg-alt); border: 1px solid var(--border);
  border-radius: 12px; box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45); font-size: 0.9rem; }
.consent p { flex: 1 1 320px; margin: 0; }
.consent a, .privacy a { text-decoration: underline; }
.consent a { white-space: nowrap; }
.consent-actions { display: flex; gap: 10px; }

.privacy { max-width: 760px; hyphens: auto; overflow-wrap: break-word; }
.privacy h2 { margin: 28px 0 8px; font-size: 1.15rem; }
.privacy li { margin: 6px 0; }
.privacy .muted { font-size: 0.9rem; }

.beta-note { border: 1px solid #fbbf24; border-radius: 8px; padding: 10px 14px; margin: 0 0 14px; }
.beta-note a { text-decoration: underline; white-space: nowrap; }
.beta-trial { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px; border: 1px solid #fbbf24; border-radius: 8px; padding: 14px; margin: 0 0 24px; }
.beta-trial[hidden] { display: none; }
.beta-trial p { flex: 1 1 100%; text-align: center; margin: 0; }
/* 沒有效能比較圖時，兩張卡並排 */
.perf-grid.single { grid-template-columns: minmax(0, 1fr); }
.perf-grid.single .stat-stack { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
