:root {
  --bg: #0c0d12;
  --bg-2: #13141c;
  --card: #171923;
  --line: rgba(255, 255, 255, 0.08);
  --text: #eceef5;
  --muted: #a3a8ba;
  --faint: #6f7489;
  --cyan: #2fd3f2;
  --blue: #1a73fa;
  --pink: #ff6b9e;
  --violet: #9e4cff;
  --grad: linear-gradient(120deg, var(--cyan), var(--blue) 40%, var(--violet) 75%, var(--pink));
  --radius: 18px;
  --max: 1160px;
  --header-bg: rgba(12, 13, 18, 0.72);
  --hover: rgba(255, 255, 255, 0.07);
  --tint: rgba(255, 255, 255, 0.03);
  --shadow: rgba(0, 0, 0, 0.6);
  --accent: var(--cyan);
  color-scheme: dark;
}
/* Light: chosen in the menu, or Auto while the system is light. The inline script in <head> sets data-theme
   before first paint, so the page never flashes the other scheme. */
:root[data-theme="light"] {
  --bg: #f6f7fb;
  --bg-2: #eceef4;
  --card: #ffffff;
  --line: rgba(15, 20, 40, 0.10);
  --text: #11131a;
  --muted: #4a5064;
  --faint: #767c90;
  --header-bg: rgba(246, 247, 251, 0.78);
  --hover: rgba(15, 20, 40, 0.06);
  --tint: rgba(15, 20, 40, 0.03);
  --shadow: rgba(30, 40, 80, 0.22);
  --accent: #0b72d8;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.7 -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "PingFang TC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  -webkit-font-smoothing: antialiased;
}
:lang(zh-Hant) body, body:lang(zh-Hant) { font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang TC", "Microsoft JhengHei", "Noto Sans CJK TC", sans-serif; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
h1, h2, h3 { line-height: 1.2; margin: 0; letter-spacing: -0.01em; }
h2 { font-size: clamp(28px, 4vw, 40px); }
.lead { color: var(--muted); font-size: 18px; max-width: 760px; margin: 14px 0 0; }
section { padding: 96px 0; border-top: 1px solid var(--line); }
.gradient-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Header */
header.top {
  position: sticky; top: 0; z-index: 20; backdrop-filter: saturate(160%) blur(16px); -webkit-backdrop-filter: saturate(160%) blur(16px);
  background: var(--header-bg); border-bottom: 1px solid var(--line);
}
.top .wrap { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; font-size: 18px; }
.brand:hover { text-decoration: none; }
.brand img { width: 32px; height: 32px; }
nav.links { display: flex; gap: 22px; margin-left: auto; }
nav.links a { color: var(--muted); font-size: 15px; }
nav.links a:hover { color: var(--text); text-decoration: none; }
.menu { position: relative; }
.menu summary {
  list-style: none; cursor: pointer; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--text); font-size: 14px; white-space: nowrap;
}
.menu summary::-webkit-details-marker { display: none; }
.menu ul { position: absolute; right: 0; top: 42px; margin: 0; padding: 6px; list-style: none; background: var(--card); border: 1px solid var(--line); border-radius: 12px; min-width: 168px; box-shadow: 0 12px 40px var(--shadow); }
.menu li a, .menu li button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 12px; border: 0; border-radius: 8px; background: none; color: var(--text); font: inherit; font-size: 14px; text-align: left; cursor: pointer; }
.menu li a:hover, .menu li button:hover { background: var(--hover); text-decoration: none; }
.menu li [aria-checked="true"]::after { content: "✓"; margin-left: auto; color: var(--accent); }
.menu li.sep { height: 1px; margin: 6px 4px; background: var(--line); }
.menu summary svg, .menu li svg { width: 16px; height: 16px; flex: none; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.menu summary { display: inline-flex; align-items: center; gap: 6px; }
.theme summary { padding: 6px 10px; }
.menus { display: flex; gap: 8px; align-items: center; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 26px; border-radius: 999px; font-weight: 600; font-size: 17px;
  color: #fff; background: var(--grad); background-size: 140% 100%; box-shadow: 0 10px 30px rgba(26, 115, 250, .35); transition: transform .15s, box-shadow .15s;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); box-shadow: 0 14px 36px rgba(158, 76, 255, .45); }
.btn svg { width: 20px; height: 20px; }
.btn.small { padding: 8px 16px; font-size: 14px; box-shadow: none; }
.ghost { color: var(--text); padding: 14px 22px; border-radius: 999px; border: 1px solid var(--line); font-weight: 500; }
.ghost:hover { text-decoration: none; background: var(--hover); }

/* Hero */
.hero { padding: 88px 0 40px; border-top: 0; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -40% -10% auto; height: 760px; z-index: -1;
  background: radial-gradient(closest-side, rgba(47, 211, 242, .18), transparent 70%) 20% 40% / 60% 100% no-repeat,
              radial-gradient(closest-side, rgba(158, 76, 255, .22), transparent 70%) 80% 30% / 60% 100% no-repeat;
}
.hero .wrap { text-align: center; }
.hero-icon { width: 96px; height: 96px; margin: 0 auto 22px; }
.badge { display: inline-block; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); font-size: 14px; background: var(--tint); }
.hero h1 { font-size: clamp(38px, 7vw, 72px); margin: 22px 0 0; font-weight: 800; }
.hero .lead { margin: 22px auto 0; font-size: clamp(17px, 2vw, 20px); }
.cta { margin-top: 36px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.cta-sub { margin-top: 14px; color: var(--faint); font-size: 14px; }
.shot { margin: 64px auto 0; max-width: 1100px; border-radius: 14px; border: 1px solid var(--line); box-shadow: 0 40px 120px var(--shadow); overflow: hidden; }

/* Cards */
.grid { display: grid; gap: 18px; margin-top: 44px; }
.grid.three { grid-template-columns: repeat(3, 1fr); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.card h3 { font-size: 19px; margin: 14px 0 8px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }
.icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: rgba(47, 211, 242, .1); }
.icon svg { width: 24px; height: 24px; stroke: var(--accent); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Features */
.features .grid { grid-template-columns: repeat(2, 1fr); }
.features .card h3 { margin-top: 0; font-size: 21px; }
.features ul { margin: 14px 0 0; padding: 0; list-style: none; }
.features li { position: relative; padding-left: 22px; color: var(--muted); font-size: 15px; margin: 8px 0; }
.features li::before { content: ""; position: absolute; left: 4px; top: 11px; width: 7px; height: 7px; border-radius: 50%; background: var(--grad); }

/* Highlights */
.split { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 48px; align-items: start; margin-top: 44px; }
.split .grid { margin-top: 0; grid-template-columns: repeat(2, 1fr); }
.split .card h3 { margin-top: 0; }
.raw { border-radius: 14px; border: 1px solid var(--line); overflow: hidden; box-shadow: 0 30px 80px var(--shadow); position: sticky; top: 90px; }

/* Compare */
.table-wrap { margin-top: 36px; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; min-width: 560px; }
th, td { padding: 16px 20px; text-align: left; border-bottom: 1px solid var(--line); font-size: 15px; }
tr:last-child td { border-bottom: 0; }
thead th { background: var(--bg-2); font-size: 14px; color: var(--muted); font-weight: 600; }
thead th:nth-child(2) { color: var(--text); }
td:first-child { color: var(--muted); }
td:nth-child(2) { color: var(--text); font-weight: 600; }
.note { color: var(--faint); font-size: 13px; margin-top: 12px; }

/* Download */
.download { text-align: center; background: radial-gradient(closest-side, rgba(26,115,250,.12), transparent) center / 90% 100% no-repeat; }
.download .lead { margin-left: auto; margin-right: auto; }
.download .btn { margin-top: 34px; font-size: 18px; padding: 16px 30px; }
.dl-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 48px; text-align: left; }
.dl-grid h3 { font-size: 16px; margin: 0 0 10px; }
.dl-grid p, .dl-grid li { color: var(--muted); font-size: 15px; margin: 0; }
.dl-grid ol { margin: 0; padding-left: 20px; }
.sha { display: flex; gap: 8px; align-items: center; margin-top: 10px; }
.sha code { flex: 1; min-width: 0; overflow-wrap: anywhere; font: 12px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--text); background: var(--bg-2); padding: 8px 10px; border-radius: 8px; border: 1px solid var(--line); }
.sha button { background: var(--bg-2); color: var(--text); border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px; cursor: pointer; font: inherit; font-size: 13px; white-space: nowrap; }
.signed { margin-top: 12px; display: flex; gap: 8px; align-items: flex-start; }
.signed svg { flex: none; width: 18px; height: 18px; margin-top: 3px; stroke: #4ade80; fill: none; stroke-width: 2.2; }

/* FAQ */
.faq-list { margin-top: 36px; display: grid; gap: 12px; }
details.q { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 0 22px; }
details.q summary { cursor: pointer; list-style: none; padding: 18px 28px 18px 0; font-weight: 600; position: relative; }
details.q summary::-webkit-details-marker { display: none; }
details.q summary::after { content: "+"; position: absolute; right: 0; top: 14px; font-size: 22px; color: var(--muted); font-weight: 400; }
details.q[open] summary::after { content: "−"; }
details.q p { margin: 0 0 20px; color: var(--muted); }

/* Footer */
footer { border-top: 1px solid var(--line); padding: 40px 0 56px; color: var(--faint); font-size: 13px; }
footer p { margin: 6px 0; }
footer .row { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
footer .langs a { margin-left: 14px; color: var(--muted); }

@media (max-width: 960px) {
  .grid.three { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; }
  .raw { position: static; max-width: 360px; margin: 0 auto; }
  .dl-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  nav.links { display: none; }
  .menus { margin-left: auto; }
  section { padding: 64px 0; }
  .wrap { padding: 0 16px; }
  .grid.three, .features .grid, .split .grid { grid-template-columns: 1fr; }
  .hero { padding-top: 56px; }
  .shot { margin-top: 40px; border-radius: 10px; }
  .top .btn.small { display: none; }
}
