:root {
  color-scheme: dark;
  --page: #050b0d;
  --page-raised: #091214;
  --surface: #0d181a;
  --surface-strong: #122124;
  --surface-soft: #102426;
  --text: #edf8f5;
  --text-muted: #a6bbb6;
  --text-faint: #7f9691;
  --line: #223b3e;
  --line-strong: #315458;
  --accent: #49d7bc;
  --accent-strong: #73e6cf;
  --accent-ink: #05211c;
  --danger: #ff9a9a;
  --warning: #edc57d;
  --success: #74dfb0;
  --ring: rgba(73, 215, 188, .38);
  --shadow: 0 24px 72px rgba(0, 0, 0, .34);
  --radius-card: 16px;
  --radius-control: 10px;
  --content: 1180px;
  --font-ui: "Segoe UI Variable", "Segoe UI", "Microsoft YaHei UI", "PingFang SC", sans-serif;
  --font-data: "Cascadia Code", "SFMono-Regular", Consolas, monospace;
}

:root[data-theme="light"] {
  color-scheme: light;
  --page: #f1f7f5;
  --page-raised: #e8f2ef;
  --surface: #fbfdfc;
  --surface-strong: #ffffff;
  --surface-soft: #e2f3ee;
  --text: #10231f;
  --text-muted: #4e6963;
  --text-faint: #687e79;
  --line: #c8dad6;
  --line-strong: #a7c7c0;
  --accent: #087f70;
  --accent-strong: #06675b;
  --accent-ink: #f3fffc;
  --danger: #ad2f3b;
  --warning: #81540a;
  --success: #087b59;
  --ring: rgba(8, 127, 112, .26);
  --shadow: 0 24px 64px rgba(16, 66, 57, .13);
}

* { box-sizing: border-box; }
html { min-width: 320px; scroll-behavior: smooth; background: var(--page); }
body {
  margin: 0;
  min-height: 100dvh;
  overflow-x: hidden;
  color: var(--text);
  background:
    radial-gradient(circle at 76% -10%, color-mix(in srgb, var(--accent) 9%, transparent), transparent 32rem),
    linear-gradient(180deg, var(--page), var(--page-raised) 48%, var(--page));
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .42;
  background-image:
    linear-gradient(color-mix(in srgb, var(--accent) 5%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in srgb, var(--accent) 5%, transparent) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, black, transparent 58%);
}

[hidden] { display: none !important; }
html[data-language="zh"] [data-lang="en"],
html[data-language="en"] [data-lang="zh"] { display: none !important; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
button, a { touch-action: manipulation; }
button { cursor: pointer; }
img { display: block; max-width: 100%; }
h1, h2, h3, p, ul, ol { margin-top: 0; }
h1, h2, h3 { text-wrap: balance; }
p, li { text-wrap: pretty; }
:focus-visible { outline: 3px solid var(--ring); outline-offset: 3px; }
::selection { color: var(--accent-ink); background: var(--accent); }

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 8px;
  left: 8px;
  padding: 10px 14px;
  color: var(--accent-ink);
  background: var(--accent);
  border-radius: var(--radius-control);
  transform: translateY(-160%);
}
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 80px;
  border-bottom: 1px solid color-mix(in srgb, var(--line) 78%, transparent);
  background: color-mix(in srgb, var(--page) 90%, transparent);
  backdrop-filter: blur(18px);
}
.nav-shell {
  width: min(var(--content), calc(100% - 40px));
  height: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
  font-weight: 720;
  letter-spacing: -.02em;
}
.wordmark-copy {
  display: grid;
  line-height: 1.15;
}
.wordmark-copy strong,
.wordmark-copy small { display: block; }
.wordmark-copy strong {
  color: var(--text);
  font-size: 13px;
  font-weight: 760;
  letter-spacing: .01em;
  white-space: nowrap;
}
.wordmark-copy small {
  margin-top: 4px;
  color: var(--text-muted);
  font: 700 9px/1.2 var(--font-data);
  letter-spacing: .02em;
  white-space: nowrap;
}
.wordmark-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: var(--accent-ink);
  background: var(--accent);
  border-radius: 9px;
  font: 750 16px/1 var(--font-data);
}
.site-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-left: auto;
}
.site-nav a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 620;
  transition: color .18s ease;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--text); }
.nav-actions { display: flex; align-items: center; gap: 8px; }
.icon-text-button, .menu-button {
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  color: var(--text-muted);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius-control);
  font-weight: 700;
  transition: color .18s ease, border-color .18s ease, background-color .18s ease;
}
.icon-text-button:hover, .menu-button:hover { color: var(--text); border-color: var(--line-strong); background: var(--surface); }
.menu-button { display: none; font-size: 20px; }

.button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 17px;
  border: 1px solid transparent;
  border-radius: var(--radius-control);
  font-weight: 720;
  line-height: 1.2;
  white-space: nowrap;
  transition: transform .16s ease, color .16s ease, background-color .16s ease, border-color .16s ease;
}
.button:active { transform: scale(.98); }
.button-primary { color: var(--accent-ink); background: var(--accent); border-color: var(--accent); }
.button-primary:hover { background: var(--accent-strong); border-color: var(--accent-strong); }
.button-secondary { color: var(--text); background: var(--surface); border-color: var(--line-strong); }
.button-secondary:hover { color: var(--accent); border-color: var(--accent); background: var(--surface-soft); }
.button-quiet { color: var(--text-muted); background: transparent; border-color: var(--line); }
.button-quiet:hover { color: var(--text); border-color: var(--line-strong); }

.container { width: min(var(--content), calc(100% - 40px)); margin-inline: auto; }
.hero {
  min-height: calc(100dvh - 80px);
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(430px, 1.08fr);
  gap: clamp(36px, 6vw, 84px);
  align-items: center;
  padding-block: clamp(48px, 7vw, 86px);
}
.eyebrow {
  display: block;
  margin-bottom: 18px;
  color: var(--accent);
  font: 720 12px/1.2 var(--font-data);
  letter-spacing: .12em;
  text-transform: uppercase;
}
.hero h1 {
  max-width: 720px;
  margin-bottom: 24px;
  font-size: clamp(44px, 6vw, 74px);
  line-height: .98;
  letter-spacing: -.055em;
}
.hero-copy > p {
  max-width: 58ch;
  margin-bottom: 30px;
  color: var(--text-muted);
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.58;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-media { min-width: 0; }
.hero-frame {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-card);
  background: var(--surface);
  box-shadow: var(--shadow);
}
.hero-frame img { width: 100%; aspect-ratio: 16 / 11; object-fit: cover; object-position: center; }
.hero-caption {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 16px 18px;
  border-top: 1px solid var(--line);
  background: var(--surface);
}
.hero-caption strong, .hero-caption span { display: block; }
.hero-caption span { color: var(--text-muted); font-size: 13px; }
.review-state {
  color: var(--warning);
  font: 700 12px/1.3 var(--font-data);
  text-align: right;
}

.trust-rail {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 42px;
  border-block: 1px solid var(--line);
}
.trust-item { min-height: 132px; padding: 26px 24px; border-right: 1px solid var(--line); }
.trust-item:last-child { border-right: 0; }
.trust-item strong { display: block; margin-bottom: 7px; font-size: 16px; }
.trust-item span { color: var(--text-muted); font-size: 14px; }

.section { padding-block: clamp(72px, 10vw, 126px); }
.section-compact { padding-block: 58px; }
.section-heading { max-width: 760px; margin-bottom: 42px; }
.section-heading h2 { margin-bottom: 14px; font-size: clamp(34px, 4.5vw, 56px); line-height: 1.05; letter-spacing: -.045em; }
.section-heading p { max-width: 64ch; margin-bottom: 0; color: var(--text-muted); font-size: 17px; }

.workflow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  overflow: hidden;
  background: var(--surface);
}
.workflow article { position: relative; min-height: 250px; padding: 30px 26px; border-right: 1px solid var(--line); }
.workflow article:last-child { border-right: 0; }
.workflow article::before { content: attr(data-code); display: block; margin-bottom: 48px; color: var(--accent); font: 700 12px var(--font-data); }
.workflow h3 { margin-bottom: 10px; font-size: 20px; }
.workflow p { margin-bottom: 0; color: var(--text-muted); font-size: 14px; }

.capability-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr);
  grid-template-rows: auto auto;
  gap: 16px;
}
.capability {
  min-height: 260px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--surface);
}
.capability-main { grid-row: 1 / 3; min-height: 536px; display: flex; flex-direction: column; justify-content: space-between; background:
  linear-gradient(160deg, color-mix(in srgb, var(--accent) 12%, transparent), transparent 52%), var(--surface);
}
.capability h3 { margin-bottom: 12px; font-size: 25px; }
.capability p { color: var(--text-muted); }
.capability ul { margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 22px; list-style: none; }
.capability li { padding: 10px 0; border-bottom: 1px solid var(--line); color: var(--text-muted); }
.capability li strong { display: block; color: var(--text); font-size: 14px; }
.capability-small { min-height: 260px; }
.capability-small .data-value { display: block; margin-top: 30px; color: var(--accent); font: 740 clamp(31px, 4vw, 48px)/1 var(--font-data); }
.capability-small .data-label { color: var(--text-faint); font-size: 13px; }

.permission-wrap { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-card); background: var(--surface); }
.permission-table { width: 100%; border-collapse: collapse; }
.permission-table th, .permission-table td { padding: 20px 22px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.permission-table tr:last-child td { border-bottom: 0; }
.permission-table th { color: var(--text-faint); font: 700 12px var(--font-data); letter-spacing: .06em; }
.permission-table td:nth-child(1) { width: 26%; font-weight: 700; }
.permission-table td:nth-child(2) { color: var(--text-muted); }
.permission-table td:nth-child(3) { width: 24%; }
.status-text { display: inline-flex; min-height: 30px; align-items: center; padding: 3px 9px; border-radius: 999px; border: 1px solid currentColor; font: 700 11px var(--font-data); }
.status-text.pending { color: var(--warning); }
.status-text.safe { color: var(--success); }

.evidence-layout { display: grid; grid-template-columns: minmax(0, .86fr) minmax(420px, 1.14fr); gap: 54px; align-items: center; }
.evidence-copy h2 { margin-bottom: 16px; font-size: clamp(34px, 4vw, 54px); line-height: 1.05; letter-spacing: -.04em; }
.evidence-copy p { max-width: 60ch; color: var(--text-muted); }
.evidence-list { margin: 28px 0 0; padding: 0; list-style: none; }
.evidence-list li { display: grid; grid-template-columns: 108px 1fr; gap: 18px; padding: 15px 0; border-bottom: 1px solid var(--line); }
.evidence-list li:last-child { border-bottom: 0; }
.evidence-list strong { color: var(--accent); font: 700 12px var(--font-data); }
.evidence-list span { color: var(--text-muted); }
.product-shot { overflow: hidden; border: 1px solid var(--line-strong); border-radius: var(--radius-card); background: var(--surface); box-shadow: var(--shadow); }
.product-shot img { width: 100%; aspect-ratio: 16/10; object-fit: cover; object-position: top left; }
.product-shot figcaption { padding: 14px 16px; color: var(--text-muted); border-top: 1px solid var(--line); font-size: 13px; }

.review-callout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
  padding: clamp(28px, 5vw, 52px);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-card);
  background: linear-gradient(120deg, color-mix(in srgb, var(--accent) 14%, transparent), transparent 58%), var(--surface);
}
.review-callout h2 { margin-bottom: 9px; font-size: clamp(28px, 4vw, 46px); letter-spacing: -.035em; }
.review-callout p { max-width: 66ch; margin-bottom: 0; color: var(--text-muted); }
.review-callout .button { min-width: 190px; }

.site-footer { margin-top: 42px; border-top: 1px solid var(--line); background: color-mix(in srgb, var(--page) 90%, transparent); }
.footer-shell { width: min(var(--content), calc(100% - 40px)); margin: 0 auto; padding: 44px 0 34px; }
.footer-main { display: grid; grid-template-columns: 1.25fr .75fr .75fr; gap: 42px; padding-bottom: 34px; }
.footer-main p { max-width: 48ch; color: var(--text-muted); font-size: 14px; }
.footer-links { display: grid; align-content: start; gap: 8px; }
.footer-links strong { margin-bottom: 5px; font-size: 13px; }
.footer-links a { min-height: 36px; display: inline-flex; align-items: center; color: var(--text-muted); font-size: 14px; }
.footer-links a:hover { color: var(--accent); }
.footer-bottom { display: flex; justify-content: space-between; gap: 18px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--text-faint); font-size: 12px; }

.legal-hero { padding: clamp(58px, 9vw, 104px) 0 48px; border-bottom: 1px solid var(--line); }
.legal-hero h1 { max-width: 820px; margin-bottom: 18px; font-size: clamp(42px, 6vw, 68px); line-height: 1; letter-spacing: -.05em; }
.legal-hero p { max-width: 66ch; margin-bottom: 0; color: var(--text-muted); font-size: 18px; }
.legal-meta { margin-top: 22px; color: var(--text-faint); font: 650 12px var(--font-data); }
.legal-layout { display: grid; grid-template-columns: 240px minmax(0, 760px); gap: clamp(38px, 8vw, 92px); padding-block: 64px 110px; }
.legal-aside { align-self: start; position: sticky; top: 102px; }
.legal-aside a { min-height: 40px; display: flex; align-items: center; color: var(--text-muted); font-size: 14px; }
.legal-aside a:hover { color: var(--accent); }
.legal-content section { scroll-margin-top: 96px; }
.legal-content section + section { margin-top: 52px; }
.legal-content h2 { margin-bottom: 15px; font-size: 28px; letter-spacing: -.025em; }
.legal-content h3 { margin: 25px 0 9px; font-size: 18px; }
.legal-content p, .legal-content li { color: var(--text-muted); }
.legal-content ul, .legal-content ol { padding-left: 22px; }
.legal-content li + li { margin-top: 8px; }
.notice {
  margin: 24px 0;
  padding: 18px 20px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-card);
  background: var(--surface);
}
.notice strong { display: block; margin-bottom: 6px; color: var(--text); }
.notice p { margin: 0; }
.contact-block { display: grid; gap: 12px; margin: 24px 0; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius-card); background: var(--surface); }
.contact-block a { color: var(--accent); font-weight: 700; overflow-wrap: anywhere; }
.review-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 28px 0; }
.review-card { padding: 24px; border: 1px solid var(--line); border-radius: var(--radius-card); background: var(--surface); }
.review-card h3 { margin-top: 0; }
.review-card p:last-child { margin-bottom: 0; }
.code-line { display: block; padding: 12px 14px; overflow-wrap: anywhere; color: var(--accent); background: var(--page); border: 1px solid var(--line); border-radius: var(--radius-control); font: 650 12px/1.55 var(--font-data); }

.identity-summary {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, .9fr);
  gap: 16px;
  margin-bottom: 44px;
}
.identity-panel {
  padding: clamp(24px, 4vw, 36px);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--surface);
}
.identity-panel-primary {
  background: linear-gradient(145deg, color-mix(in srgb, var(--accent) 12%, transparent), transparent 56%), var(--surface);
}
.identity-kicker { display: block; margin-bottom: 22px; color: var(--accent); font: 700 12px var(--font-data); letter-spacing: .08em; }
.identity-panel h2 { margin-bottom: 12px; font-size: clamp(25px, 3vw, 36px); line-height: 1.12; }
.identity-panel p:last-child { margin-bottom: 0; }
.identity-list { margin: 0; }
.identity-row { display: grid; grid-template-columns: minmax(120px, .42fr) minmax(0, 1fr); gap: 22px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.identity-row:first-child { padding-top: 0; }
.identity-row:last-child { padding-bottom: 0; border-bottom: 0; }
.identity-row dt { color: var(--text-faint); font: 700 12px/1.55 var(--font-data); }
.identity-row dd { margin: 0; color: var(--text); font-weight: 620; overflow-wrap: anywhere; }
.identity-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 26px; }
.identity-link { min-height: 92px; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius-control); background: var(--page); }
.identity-link strong, .identity-link span { display: block; }
.identity-link strong { margin-bottom: 5px; color: var(--accent); }
.identity-link span { color: var(--text-muted); font-size: 13px; }

@media (max-width: 1040px) {
  .site-nav { position: fixed; inset: 80px 0 auto; display: none; padding: 18px 20px 24px; background: var(--page); border-bottom: 1px solid var(--line); }
  .site-nav.open { display: grid; justify-items: start; gap: 2px; }
  .site-nav a { width: 100%; }
  .menu-button { display: inline-flex; }
  .hero { grid-template-columns: 1fr 1fr; gap: 34px; }
  .hero h1 { font-size: clamp(42px, 6.5vw, 62px); }
  .trust-rail { grid-template-columns: 1fr 1fr; }
  .trust-item:nth-child(2) { border-right: 0; }
  .trust-item:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .workflow { grid-template-columns: 1fr 1fr; }
  .workflow article:nth-child(2) { border-right: 0; }
  .workflow article:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .evidence-layout { grid-template-columns: 1fr; }
}

@media (max-width: 767px) {
  .nav-shell, .container, .footer-shell { width: min(100% - 32px, var(--content)); }
  .nav-actions .button { display: none; }
  .hero { min-height: auto; grid-template-columns: 1fr; padding-block: 52px 66px; }
  .hero h1 { font-size: clamp(40px, 12.5vw, 58px); }
  .hero-copy > p { font-size: 17px; }
  .hero-actions { display: grid; grid-template-columns: 1fr; }
  .hero-actions .button { width: 100%; }
  .hero-caption { grid-template-columns: 1fr; }
  .review-state { text-align: left; }
  .trust-rail, .workflow, .capability-grid, .review-grid, .identity-summary, .identity-links { grid-template-columns: 1fr; }
  .trust-item { min-height: auto; border-right: 0; border-bottom: 1px solid var(--line); }
  .trust-item:last-child { border-bottom: 0; }
  .workflow article { min-height: auto; border-right: 0; border-bottom: 1px solid var(--line); }
  .workflow article:last-child { border-bottom: 0; }
  .workflow article::before { margin-bottom: 24px; }
  .capability-main { grid-row: auto; min-height: auto; gap: 34px; }
  .capability ul { grid-template-columns: 1fr; }
  .permission-wrap { overflow-x: auto; }
  .permission-table { min-width: 720px; }
  .review-callout { grid-template-columns: 1fr; }
  .review-callout .button { width: 100%; }
  .footer-main { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { display: grid; }
  .legal-layout { grid-template-columns: 1fr; padding-block: 44px 82px; }
  .legal-aside { position: static; display: flex; flex-wrap: wrap; gap: 0 18px; }
  .identity-row { grid-template-columns: 1fr; gap: 5px; }
}

@media (max-width: 500px) {
  .nav-shell { gap: 10px; }
  .wordmark { gap: 8px; }
  .wordmark-mark { width: 32px; height: 32px; }
  .wordmark-copy strong { font-size: 11px; }
  .wordmark-copy small { margin-top: 3px; font-size: 7.5px; letter-spacing: 0; }
  .nav-actions { margin-left: auto; gap: 6px; }
  .nav-actions [data-theme-toggle] { display: none; }
  .icon-text-button, .menu-button { min-width: 40px; padding-inline: 9px; }
  .legal-hero h1, .identity-panel h2 { overflow-wrap: anywhere; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
