/* Wenv 官网样式
 * 设计依据：docs/视觉方案.md（v2.0，NSNEX 蓝色风格）与 docs/官网设计方案.md §4
 * 只使用系统字体，不加载 Web Font，不引入外部资源。
 * 明暗主题：<html data-theme="light|dark">，由内联主题脚本写入；
 * 无脚本时回退为浅色主题，主题按钮不显示。
 */

/* ---------- 设计令牌 ---------- */

:root {
  color-scheme: light;

  --bg: #f1f7ff;
  --bg-soft: #e8f2ff;
  --surface: #ffffff;
  --surface-hover: #f6fbff;
  --navy: #071a38;
  --text: #071a38;
  --text-2: #294768;
  --text-3: #526f91;

  --primary: #075fd8;
  --primary-hover: #034db5;
  --primary-bright: #168cff;
  --primary-text: #075fd8;
  --primary-soft: #e0efff;
  --primary-line: rgba(7, 95, 216, 0.32);
  --on-primary: #ffffff;
  --accent: #03a9f4;

  --btn-from: #075fd8;
  --btn-to: #0a6ae2;
  --btn-from-hover: #034db5;
  --btn-to-hover: #075fd8;

  --border: #bfd7f2;
  --border-strong: #9fc4ea;
  --line-soft: rgba(7, 95, 216, 0.1);
  --focus: #006bdc;
  --grid-line: rgba(7, 95, 216, 0.055);
  --glow-a: rgba(22, 140, 255, 0.16);
  --glow-b: rgba(3, 169, 244, 0.1);
  --chip-bg: rgba(255, 255, 255, 0.72);

  --header-bg: rgba(241, 247, 255, 0.84);
  --section-alt: rgba(255, 255, 255, 0.62);
  --note-bg: #eaf4ff;

  --navy-soft: #082653;
  --on-dark: #f8fbff;
  --on-dark-soft: #bfd8f7;
  --on-dark-muted: #8fa9c6;

  --code-bg: #061b3a;
  --code-bg-soft: #082653;
  --code-text: #e7f1ff;
  --code-muted: #9db7d9;
  --code-line: rgba(255, 255, 255, 0.08);
  --footer-bg: #040b14;

  --shadow-xs: 0 1px 2px rgba(7, 95, 216, 0.06);
  --shadow-sm: 0 2px 6px rgba(7, 95, 216, 0.06), 0 10px 24px rgba(7, 95, 216, 0.05);
  --shadow-md: 0 4px 10px rgba(7, 95, 216, 0.06), 0 16px 36px rgba(7, 95, 216, 0.08);
  --shadow-lg: 0 8px 18px rgba(7, 95, 216, 0.07), 0 28px 64px rgba(7, 95, 216, 0.12);
  --shadow-hover: 0 6px 14px rgba(7, 95, 216, 0.08), 0 22px 48px rgba(7, 95, 216, 0.12);
  --shadow-btn: 0 12px 28px rgba(7, 95, 216, 0.24);
  --shadow-btn-hover: 0 16px 36px rgba(7, 95, 216, 0.3);
  --shadow-terminal: 0 32px 72px -28px rgba(4, 16, 38, 0.55), 0 12px 28px rgba(4, 16, 38, 0.18);

  --container: 1200px;
  --gutter: 24px;
  --radius-sm: 10px;
  --radius: 14px;
  --radius-lg: 18px;
  --mono: Consolas, "Cascadia Mono", "SF Mono", Menlo, monospace;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

:root[data-theme="dark"] {
  color-scheme: dark;

  --bg: #07111f;
  --bg-soft: #0b1828;
  --surface: #0e1b2b;
  --surface-hover: #12243a;
  --navy: #f7fbff;
  --text: #f7fbff;
  --text-2: #c4d0de;
  --text-3: #9cafc3;

  --primary: #59bdf4;
  --primary-hover: #8bd2f8;
  --primary-bright: #43b7f5;
  --primary-text: #8bd2f8;
  --primary-soft: #102f46;
  --primary-line: rgba(89, 189, 244, 0.4);
  --accent: #fb923c;

  --btn-from: #075fd8;
  --btn-to: #0a6ae2;
  --btn-from-hover: #034db5;
  --btn-to-hover: #075fd8;

  --border: #2a3e55;
  --border-strong: #3e5a78;
  --line-soft: rgba(89, 189, 244, 0.12);
  --focus: #7dd3fc;
  --grid-line: rgba(89, 189, 244, 0.055);
  --glow-a: rgba(22, 140, 255, 0.18);
  --glow-b: rgba(251, 146, 60, 0.06);
  --chip-bg: rgba(255, 255, 255, 0.05);

  --header-bg: rgba(7, 17, 31, 0.86);
  --section-alt: rgba(14, 27, 43, 0.58);
  --note-bg: #0b1c2e;

  --navy-soft: #0b1828;
  --on-dark: #f8fbff;
  --on-dark-soft: #b9c8d9;
  --on-dark-muted: #8fa2b7;

  --code-bg: #040b14;
  --code-bg-soft: #071625;
  --code-text: #e7f1ff;
  --code-muted: #93a9c4;

  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.35);
  --shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.3), 0 10px 24px rgba(0, 0, 0, 0.24);
  --shadow-md: 0 4px 10px rgba(0, 0, 0, 0.32), 0 16px 36px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 8px 18px rgba(0, 0, 0, 0.34), 0 28px 64px rgba(0, 0, 0, 0.42);
  --shadow-hover: 0 6px 14px rgba(0, 0, 0, 0.36), 0 22px 48px rgba(0, 0, 0, 0.42);
  --shadow-btn: 0 12px 28px rgba(0, 0, 0, 0.45);
  --shadow-btn-hover: 0 16px 36px rgba(0, 0, 0, 0.5);
  --shadow-terminal: 0 32px 72px -28px rgba(0, 0, 0, 0.7), 0 12px 28px rgba(0, 0, 0, 0.35);
}

/* ---------- 基础 ---------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

html[lang="zh-Hans"] {
  font-family: "Segoe UI", "Microsoft YaHei UI", "Microsoft YaHei", "PingFang SC",
    "Noto Sans CJK SC", system-ui, sans-serif;
}

html[lang="zh-Hant"] {
  font-family: "Segoe UI", "Microsoft JhengHei UI", "Microsoft JhengHei", "PingFang TC",
    "Noto Sans CJK TC", system-ui, sans-serif;
}

html[lang="en"] {
  font-family: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background-color: var(--bg);
  background-image: radial-gradient(900px 520px at 92% -8%, var(--glow-a), transparent 70%),
    radial-gradient(760px 460px at 2% 10%, var(--glow-b), transparent 72%),
    linear-gradient(to right, var(--grid-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-line) 1px, transparent 1px);
  background-repeat: no-repeat, no-repeat, repeat, repeat;
  background-size: auto, auto, 72px 72px, 72px 72px;
  color: var(--text);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
p,
ul,
ol,
figure,
dl,
table,
pre {
  margin: 0;
}

ul,
ol {
  padding: 0;
}

img,
svg {
  max-width: 100%;
}

a {
  color: var(--primary-text);
  text-decoration: none;
  transition: color 0.2s ease-out;
}

a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

strong {
  color: var(--navy);
}

code,
.mono {
  font-family: var(--mono);
  font-size: 0.92em;
}

code {
  padding: 2px 6px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--bg-soft);
  color: var(--navy);
  white-space: nowrap;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
  border-radius: 4px;
}

::selection {
  background: var(--primary);
  color: #ffffff;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.narrow {
  max-width: 820px;
}

/* ---------- 页头 ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line-soft);
  background: var(--header-bg);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  backdrop-filter: blur(18px) saturate(150%);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 32px;
  min-height: 78px;
}

.brand {
  display: inline-flex;
  flex: none;
  align-items: center;
  color: var(--text);
  line-height: 1;
}

.brand:hover {
  color: var(--text);
  text-decoration: none;
}

.brand__logo {
  display: block;
  width: auto;
  height: 30px;
}

.brand:hover .brand__logo {
  opacity: 0.86;
}

/* 深色页头与深色页脚：字标转为白色，避免深蓝字与底色混在一起 */
:root[data-theme="dark"] .brand__logo,
.site-footer .brand__logo {
  filter: brightness(0) invert(1);
}

.site-nav {
  display: flex;
  gap: 28px;
}

.site-nav a {
  position: relative;
  padding: 12px 0;
  color: var(--text-2);
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.4;
  transition: color 0.18s ease-out;
}

.site-nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 5px;
  left: 0;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--btn-from), var(--primary-bright));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease-out;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--text);
  text-decoration: none;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after,
.site-nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

.site-nav a[aria-current="page"] {
  color: var(--primary-text);
  font-weight: 700;
}

/* 语言下拉菜单 */

.lang-nav {
  position: relative;
  display: flex;
  margin-left: auto;
}

.lang-menu {
  position: relative;
}

.lang-menu__summary {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text-2);
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1;
  list-style: none;
  box-shadow: var(--shadow-xs);
  cursor: pointer;
  transition: color 0.18s ease-out, border-color 0.18s ease-out,
    background-color 0.18s ease-out, box-shadow 0.18s ease-out;
}

.lang-menu__summary::-webkit-details-marker {
  display: none;
}

.lang-menu__summary::marker {
  content: "";
}

.lang-menu__summary:hover {
  border-color: var(--primary);
  color: var(--primary-text);
  box-shadow: var(--shadow-sm);
}

.lang-menu[open] > .lang-menu__summary {
  border-color: var(--primary);
  color: var(--primary-text);
  box-shadow: var(--shadow-sm);
}

.lang-menu__globe,
.lang-menu__chevron {
  flex: none;
  width: 16px;
  height: 16px;
}

.lang-menu__chevron {
  width: 13px;
  height: 13px;
  color: var(--text-3);
  transition: transform 0.2s ease-out;
}

.lang-menu[open] .lang-menu__chevron {
  transform: rotate(180deg);
}

.lang-menu__list {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 60;
  min-width: 184px;
  margin: 0;
  padding: 6px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  list-style: none;
}

.lang-menu__list li {
  margin: 0;
}

.lang-menu__list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 40px;
  padding: 9px 12px;
  border-radius: 9px;
  color: var(--text-2);
  font-size: 0.875rem;
  transition: color 0.18s ease-out, background-color 0.18s ease-out;
}

.lang-menu__list a:hover {
  background: var(--primary-soft);
  color: var(--primary-text);
  text-decoration: none;
}

.lang-menu__list a[aria-current="true"] {
  background: linear-gradient(135deg, var(--btn-from), var(--btn-to));
  color: #ffffff;
  font-weight: 600;
}

.lang-menu__list a[aria-current="true"]:hover {
  background: linear-gradient(135deg, var(--btn-from-hover), var(--btn-to-hover));
  color: #ffffff;
}

.lang-menu__list a[aria-current="true"]::after {
  content: "✓";
  font-size: 0.75rem;
  font-weight: 700;
}

.theme-toggle {
  display: none;
  flex: none;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text-2);
  box-shadow: var(--shadow-xs);
  cursor: pointer;
  transition: color 0.18s ease-out, border-color 0.18s ease-out,
    background-color 0.18s ease-out, box-shadow 0.18s ease-out;
}

.js .theme-toggle {
  display: grid;
}

.theme-toggle:hover {
  border-color: var(--primary);
  background: var(--primary-soft);
  color: var(--primary-text);
  box-shadow: var(--shadow-sm);
}

.theme-toggle:active {
  transform: scale(0.96);
}

.theme-toggle svg {
  width: 17px;
  height: 17px;
}

.theme-toggle__icon--sun {
  display: none;
}

:root[data-theme="dark"] .theme-toggle__icon--sun {
  display: block;
}

:root[data-theme="dark"] .theme-toggle__icon--moon {
  display: none;
}

/* ---------- 跳转链接 ---------- */

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 12px 16px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--btn-from), var(--btn-to));
  color: #ffffff;
  font-size: 0.875rem;
  font-weight: 700;
  box-shadow: var(--shadow-btn);
  transform: translateY(-200%);
  transition: transform 0.2s ease-out;
}

.skip-link:focus {
  transform: none;
  text-decoration: none;
}

/* ---------- 按钮 ---------- */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--btn-from), var(--btn-to));
  color: #ffffff;
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.3;
  box-shadow: var(--shadow-btn);
  white-space: nowrap;
  transition: background-color 0.18s ease-out, box-shadow 0.18s ease-out,
    border-color 0.18s ease-out, color 0.18s ease-out, transform 0.18s ease-out;
}

.button:hover {
  background: linear-gradient(135deg, var(--btn-from-hover), var(--btn-to-hover));
  box-shadow: var(--shadow-btn-hover);
  text-decoration: none;
}

.button:active {
  transform: scale(0.99);
  box-shadow: 0 6px 14px rgba(7, 95, 216, 0.28);
}

.button--ghost {
  border-color: var(--border);
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow-xs);
}

.button--ghost:hover {
  border-color: var(--primary);
  background: var(--primary-soft);
  color: var(--primary-text);
  box-shadow: var(--shadow-sm);
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 92px 0 88px;
  border-bottom: 1px solid var(--line-soft);
}

.hero::before,
.page-hero::before,
.not-found::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: radial-gradient(760px 380px at 88% -12%, var(--glow-a), transparent 70%),
    radial-gradient(560px 320px at 0% 18%, var(--glow-b), transparent 72%);
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  align-items: center;
  gap: 64px;
}

.hero__copy {
  animation: rise 0.7s var(--ease) both;
}

.hero h1 {
  max-width: 13em;
  color: var(--navy);
  font-size: clamp(2.5rem, 3.6vw, 3rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

html[lang="zh-Hans"] .hero h1,
html[lang="zh-Hant"] .hero h1 {
  letter-spacing: -0.012em;
  word-break: keep-all;
  overflow-wrap: break-word;
}

.hero__accent {
  color: var(--primary-text);
}

.hero .lead {
  max-width: 34em;
  margin-top: 24px;
  color: var(--text-2);
  font-size: 1.125rem;
  line-height: 1.75;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 32px;
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 30px;
  list-style: none;
}

.hero__meta li {
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--chip-bg);
  color: var(--text-2);
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.5;
}

.hero__note {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  color: var(--text-3);
  font-size: 0.8125rem;
  line-height: 1.6;
}

.hero__note::before {
  content: "";
  flex: none;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary-bright);
  box-shadow: 0 0 0 4px rgba(22, 140, 255, 0.14);
}

.hero__trust {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 10px;
  margin-top: 16px;
  padding: 0;
  list-style: none;
}

.hero__trust-item {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-xs);
}

.hero__trust-icon {
  display: grid;
  flex: none;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--primary-soft);
  color: var(--primary-text);
}

.hero__trust-icon svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hero__trust-text {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.hero__trust strong {
  color: var(--navy);
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1.3;
}

.hero__trust-text span {
  color: var(--text-3);
  font-size: 0.75rem;
  line-height: 1.45;
}

@media (max-width: 600px) {
  .hero__trust {
    grid-template-columns: 1fr;
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* 目录树终端面板 */

.terminal {
  position: relative;
  width: 100%;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  background: var(--code-bg);
  box-shadow: var(--shadow-terminal);
  animation: rise 0.8s 0.08s var(--ease) both;
}

.terminal::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(420px 220px at 100% 0%, rgba(22, 140, 255, 0.3), transparent 70%),
    radial-gradient(300px 180px at 0% 100%, rgba(3, 169, 244, 0.14), transparent 70%),
    linear-gradient(to right, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: auto, auto, 32px 32px, 32px 32px;
}

.terminal__bar {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--code-line);
  background: rgba(255, 255, 255, 0.03);
}

.terminal__dots {
  display: inline-flex;
  flex: none;
  gap: 6px;
}

.terminal__dots i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
}

.terminal__title {
  color: var(--code-muted);
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.02em;
}

.terminal__tag {
  margin-left: auto;
  padding: 2px 9px;
  border: 1px solid rgba(125, 211, 252, 0.28);
  border-radius: 999px;
  color: #b9d9f7;
  font-size: 0.6875rem;
  line-height: 1.6;
  white-space: nowrap;
}

.tree {
  position: relative;
  margin: 0;
  padding: 10px 18px;
  list-style: none;
}

.tree li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.055);
  border-radius: 8px;
  transition: background-color 0.2s ease-out;
}

.tree li:last-child {
  border-bottom: 0;
}

.tree li:hover {
  background: rgba(22, 140, 255, 0.08);
}

.tree__path {
  color: var(--code-text);
  font-family: var(--mono);
  font-size: 0.8125rem;
  white-space: nowrap;
}

.tree__branch {
  margin-right: 8px;
  color: #5cb8ff;
}

.tree__note {
  color: var(--code-muted);
  font-size: 0.78125rem;
  line-height: 1.5;
  text-align: right;
}

.terminal__foot {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  border-top: 1px solid var(--code-line);
  color: var(--code-muted);
  font-size: 0.75rem;
}

.terminal__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #6ee7ff;
  box-shadow: 0 0 0 3px rgba(110, 231, 255, 0.14);
}

.terminal figcaption {
  position: relative;
  padding: 0 18px 16px;
  color: var(--code-muted);
  font-size: 0.75rem;
  line-height: 1.6;
}

/* ---------- 区块 ---------- */

.section {
  padding: 96px 0;
}

.section[id] {
  scroll-margin-top: 96px;
}

.section--muted {
  border-block: 1px solid var(--line-soft);
  background: var(--section-alt);
}

.section h2 {
  max-width: 22em;
  color: var(--navy);
  font-size: clamp(1.9rem, 3vw, 2.5rem);
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: -0.03em;
}

html[lang="zh-Hans"] .section h2,
html[lang="zh-Hant"] .section h2 {
  letter-spacing: -0.012em;
}

.section__lead {
  max-width: 66ch;
  margin-top: 18px;
  color: var(--text-2);
  font-size: 1.125rem;
  line-height: 1.75;
}

/* 功能页与下载页：用底色交替组织长文 */

body[data-page="features"] #runtime,
body[data-page="features"] #catalog,
body[data-page="features"] #portable {
  border-block: 1px solid var(--line-soft);
  background: var(--section-alt);
}

/* ---------- 卡片 ---------- */

.card-icon {
  display: grid;
  flex: none;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 22px;
  border: 1px solid var(--primary-line);
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary-text);
  transition: background-color 0.2s ease-out, color 0.2s ease-out,
    border-color 0.2s ease-out;
}

.card-icon svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.rules {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 52px;
}

.rule {
  padding: 30px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: background-color 0.2s ease-out, border-color 0.2s ease-out,
    box-shadow 0.2s ease-out;
}

.rule:hover {
  border-color: var(--primary);
  background: var(--surface-hover);
  box-shadow: var(--shadow-md);
}

.rule:hover .card-icon,
.feature:hover .card-icon {
  border-color: var(--btn-from);
  background: var(--btn-from);
  color: #ffffff;
}

.rule h3 {
  color: var(--navy);
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.45;
}

.rule p {
  margin-top: 10px;
  color: var(--text-2);
  font-size: 0.9375rem;
  line-height: 1.7;
}

/* ---------- 功能卡片 ---------- */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 52px;
  list-style: none;
}

.feature {
  display: flex;
  flex-direction: column;
  padding: 30px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: background-color 0.2s ease-out, border-color 0.2s ease-out,
    box-shadow 0.2s ease-out;
}

.feature:hover {
  border-color: var(--primary);
  background: var(--surface-hover);
  box-shadow: var(--shadow-md);
}

.feature h3 {
  color: var(--navy);
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.45;
}

.feature p {
  margin-top: 10px;
  color: var(--text-2);
  font-size: 0.9375rem;
  line-height: 1.7;
}

.feature a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  padding-top: 20px;
  color: var(--primary-text);
  font-size: 0.875rem;
  font-weight: 600;
}

.feature a::after {
  content: "→";
  transition: transform 0.2s ease-out;
}

.feature a:hover {
  text-decoration: none;
}

.feature a:hover::after {
  transform: translateX(3px);
}

/* ---------- 步骤 ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 52px;
  list-style: none;
}

.steps li {
  padding: 30px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: background-color 0.2s ease-out, border-color 0.2s ease-out,
    box-shadow 0.2s ease-out;
}

.steps li:hover {
  border-color: var(--primary);
  background: var(--surface-hover);
  box-shadow: var(--shadow-md);
}

.steps__num {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 20px;
  border: 1px solid var(--primary-line);
  border-radius: 50%;
  background: var(--primary-soft);
  color: var(--primary-text);
  font-size: 1rem;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  line-height: 1;
}

.steps h3 {
  color: var(--navy);
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.45;
}

.steps p {
  margin-top: 10px;
  color: var(--text-2);
  font-size: 0.9375rem;
  line-height: 1.7;
}

/* ---------- 清单 ---------- */

.checks {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 44px;
  margin-top: 36px;
  list-style: none;
}

.checks li {
  position: relative;
  padding-left: 32px;
  color: var(--text-2);
  font-size: 0.9375rem;
  line-height: 1.75;
}

.checks li::before {
  content: "";
  position: absolute;
  top: 4px;
  left: 0;
  width: 20px;
  height: 20px;
  border: 1px solid var(--primary-line);
  border-radius: 50%;
  background-color: var(--primary-soft);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23075fd8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m3.5 8 3 3 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 11px 11px;
}

:root[data-theme="dark"] .checks li::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%238bd2f8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m3.5 8 3 3 6-6'/%3E%3C/svg%3E");
}

.checks li strong {
  color: var(--navy);
}

/* ---------- 说明 ---------- */

.notes {
  margin-top: 32px;
  padding: 20px 24px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  background: var(--note-bg);
  color: var(--text-2);
  font-size: 0.875rem;
  line-height: 1.7;
}

.notes p + p {
  margin-top: 8px;
}

.section--muted .notes {
  background: var(--surface);
}

/* ---------- 表格 ---------- */

.spec {
  width: 100%;
  margin-top: 40px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 12px;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--surface);
  box-shadow: var(--shadow-xs);
  font-size: 0.9375rem;
  line-height: 1.65;
}

.spec th {
  padding: 12px 20px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-soft);
  color: var(--text-2);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-align: left;
}

.spec td {
  padding: 15px 20px;
  border-bottom: 1px solid var(--border);
  color: var(--text-2);
  vertical-align: top;
}

.spec tbody tr:last-child td {
  border-bottom: 0;
}

.spec td:first-child {
  color: var(--navy);
  font-weight: 600;
}

.spec--paths td:first-child {
  font-family: var(--mono);
  font-size: 0.8125rem;
  font-weight: 500;
}

/* ---------- 页级 Hero ---------- */

.page-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 88px 0 64px;
  border-bottom: 1px solid var(--line-soft);
}

.page-hero h1 {
  color: var(--navy);
  font-size: clamp(2.25rem, 3.4vw, 2.75rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

html[lang="zh-Hans"] .page-hero h1,
html[lang="zh-Hant"] .page-hero h1 {
  letter-spacing: -0.012em;
}

.page-hero .section__lead {
  max-width: 60ch;
  margin-top: 18px;
}

.page-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 32px;
}

.page-links a {
  padding: 7px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text-2);
  font-size: 0.8125rem;
  font-weight: 600;
  box-shadow: var(--shadow-xs);
  transition: color 0.18s ease-out, border-color 0.18s ease-out,
    background-color 0.18s ease-out, box-shadow 0.18s ease-out;
}

.page-links a:hover {
  border-color: var(--primary);
  background: var(--primary-soft);
  color: var(--primary-text);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
}

/* ---------- 授权说明 ---------- */

.license {
  padding: 0 0 96px;
}

.license .narrow {
  margin: 0 auto;
  padding: 36px 40px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.license p {
  max-width: 62ch;
  margin: 0 auto;
  color: var(--text-2);
  font-size: 1.0625rem;
  line-height: 1.8;
}

.license a {
  display: inline-flex;
  margin-top: 16px;
  color: var(--primary-text);
  font-size: 0.875rem;
  font-weight: 600;
}

/* ---------- 下载 CTA ---------- */

.cta {
  position: relative;
  padding: 0 0 96px;
  color: var(--on-dark);
}

.cta > .container {
  position: relative;
  overflow: hidden;
  padding: clamp(36px, 5vw, 60px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 22px;
  background: radial-gradient(circle at 84% 16%, rgba(22, 140, 255, 0.38), transparent 22rem),
    linear-gradient(135deg, rgba(3, 169, 244, 0.09), transparent 42%), var(--navy-soft);
  box-shadow: var(--shadow-lg);
}

.cta > .container::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(to right, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 72px 72px, 72px 72px;
  -webkit-mask-image: linear-gradient(to bottom, #000 30%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 30%, transparent 100%);
}

.cta__inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.cta h2 {
  color: var(--on-dark);
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

html[lang="zh-Hans"] .cta h2,
html[lang="zh-Hant"] .cta h2 {
  letter-spacing: -0.012em;
}

.cta p {
  margin-top: 10px;
  color: var(--on-dark-soft);
  font-size: 1rem;
}

.cta .button {
  flex: none;
  background: #7dd3fc;
  color: #04101d;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.28);
}

.cta .button:hover {
  background: #bae6fd;
  color: #04101d;
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.32);
}

/* ---------- 下载块 ---------- */

.download-box {
  position: relative;
  margin-top: 40px;
  overflow: hidden;
  padding: 36px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
}

.download-box::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(420px 240px at 100% 0%, var(--primary-soft), transparent 70%),
    linear-gradient(to right, var(--grid-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-line) 1px, transparent 1px);
  background-size: auto, 32px 32px, 32px 32px;
  -webkit-mask-image: linear-gradient(to bottom, #000 20%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 20%, transparent 100%);
}

.download-box__row {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
}

.download-box__icon {
  position: absolute;
  top: 50%;
  right: 32px;
  width: 148px;
  height: 148px;
  color: var(--primary);
  opacity: 0.09;
  transform: translateY(-50%);
  pointer-events: none;
}

.download-box__icon svg {
  width: 100%;
  height: 100%;
}

.download-box p {
  color: var(--text-2);
  font-size: 0.9375rem;
}

.download-box p code {
  white-space: nowrap;
}

/* 下载页：要求表与授权说明的节奏 */

body[data-page="download"] #requirements,
body[data-page="download"] #license {
  border-block: 1px solid var(--line-soft);
  background: var(--section-alt);
}

body[data-page="download"] #license > .container {
  width: calc(100% - 48px);
  max-width: 880px;
  padding: 36px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

body[data-page="download"] #license .section__lead {
  margin-top: 12px;
}

/* ---------- FAQ ---------- */

.faq {
  display: grid;
  gap: 12px;
  max-width: 860px;
  margin-top: 40px;
}

.faq details {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: var(--shadow-xs);
  transition: border-color 0.2s ease-out, background-color 0.2s ease-out,
    box-shadow 0.2s ease-out;
}

.faq details:hover,
.faq details[open] {
  border-color: var(--primary);
  background: var(--surface-hover);
  box-shadow: var(--shadow-sm);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  border-radius: 12px;
  color: var(--navy);
  font-size: 0.96875rem;
  font-weight: 600;
  line-height: 1.5;
  list-style: none;
  cursor: pointer;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  display: grid;
  flex: none;
  place-items: center;
  width: 26px;
  height: 26px;
  border: 1px solid var(--primary-line);
  border-radius: 50%;
  background: var(--primary-soft);
  color: var(--primary-text);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1;
}

.faq details[open] summary::after {
  content: "−";
}

.faq p {
  padding: 0 22px 20px;
  color: var(--text-2);
  font-size: 0.9375rem;
  line-height: 1.75;
}

/* ---------- 联系卡片 ---------- */

.contact-card {
  position: fixed;
  top: 50%;
  right: clamp(8px, calc((100vw - var(--container)) / 2 - 168px), 220px);
  z-index: 40;
  width: 144px;
  padding: 12px;
  border: 1px solid rgba(89, 189, 244, 0.26);
  border-radius: 14px;
  background: linear-gradient(155deg, var(--navy-soft), var(--code-bg));
  box-shadow: var(--shadow-md);
  color: var(--on-dark);
  transform: translateY(-50%);
}

.contact-card__title {
  color: var(--on-dark);
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.4;
}

.contact-card__list {
  display: grid;
  gap: 6px;
  margin: 9px 0 0;
  padding: 0;
  list-style: none;
}

.contact-card__link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.05);
  color: inherit;
  text-decoration: none;
}

a.contact-card__link:hover {
  border-color: rgba(89, 189, 244, 0.45);
  background: rgba(22, 140, 255, 0.16);
}

.contact-card__link--qq-mobile {
  display: none;
}

.contact-card__icon {
  display: block;
  flex: none;
  width: 26px;
  height: 26px;
}

.contact-card__text {
  display: grid;
  min-width: 0;
}

.contact-card__label {
  color: var(--on-dark);
  font-size: 0.6875rem;
  font-weight: 600;
  line-height: 1.35;
}

.contact-card__value {
  color: var(--on-dark-muted);
  font-size: 0.6875rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

@media (max-width: 1439px) {
  .contact-card {
    position: static;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    width: min(calc(100% - 2 * var(--gutter)), calc(var(--container) - 2 * var(--gutter)));
    margin: 0 auto 28px;
    padding: 14px 18px;
    transform: none;
  }

  .contact-card__title {
    margin: 0;
  }

  .contact-card__list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
  }

  .contact-card__link {
    padding: 6px 10px;
  }

  /* 价格页正文已有“如何获取授权码”联系方式，避免页尾重复 */
  body[data-page="pricing"] .contact-card {
    display: none;
  }
}

@media (max-width: 720px) {
  .contact-card {
    display: grid;
    gap: 12px;
    width: auto;
    margin: 0 var(--gutter) 24px;
  }

  .contact-card__list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* 1440–1519：把容器收窄 32px，保证加宽后的卡片仍落在右侧留白内 */
@media (min-width: 1440px) and (max-width: 1519px) {
  :root {
    --container: 1168px;
  }
}

@media (max-width: 720px) {
  .contact-card__link--qq-desktop {
    display: none;
  }

  .contact-card__link--qq-mobile {
    display: flex;
  }
}

/* ---------- 价格页 ---------- */

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 8px;
}

.pricing-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 32px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.pricing-card--featured {
  border-color: var(--primary-line);
  box-shadow: var(--shadow-lg);
}

.pricing-card__badge {
  position: absolute;
  top: -12px;
  right: 28px;
  padding: 4px 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--btn-from), var(--btn-to));
  color: var(--on-primary);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.pricing-card__name {
  color: var(--text-3);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.pricing-card__price {
  margin-top: 14px;
  color: var(--navy);
  font-size: 2.75rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.pricing-card__currency {
  margin-right: 2px;
  font-size: 1.5rem;
}

.pricing-card__period {
  margin-left: 6px;
  color: var(--text-3);
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: 0;
}

.pricing-card__desc {
  margin-top: 12px;
  color: var(--text-2);
  font-size: 0.9375rem;
  line-height: 1.7;
}

.pricing-card__list {
  display: grid;
  gap: 10px;
  margin: 22px 0 28px;
  padding: 0;
  list-style: none;
}

.pricing-card__list li {
  position: relative;
  padding-left: 24px;
  color: var(--text-2);
  font-size: 0.9375rem;
  line-height: 1.6;
}

.pricing-card__list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--primary-text);
  font-weight: 700;
}

.pricing-card .button {
  margin-top: auto;
}

.pricing-contact {
  margin-top: 40px;
  padding: 32px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--section-alt);
  box-shadow: var(--shadow-xs);
}

.pricing-contact h2 {
  color: var(--navy);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.4;
}

.pricing-contact p {
  max-width: 60ch;
  margin-top: 10px;
  color: var(--text-2);
  font-size: 0.9375rem;
  line-height: 1.75;
}

.pricing-contact__channels {
  display: grid;
  gap: 10px;
  width: min(100%, 480px);
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.pricing-channel {
  display: flex;
  align-items: stretch;
  gap: 8px;
  min-width: 0;
}

.pricing-channel__main {
  display: flex;
  flex: 1;
  align-items: center;
  gap: 9px;
  min-width: 0;
  padding: 10px 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text-2);
  font-size: 0.875rem;
  font-weight: 600;
}

a.pricing-channel__main:hover {
  border-color: var(--border-strong);
  color: var(--primary-text);
  text-decoration: none;
}

.pricing-channel__icon {
  display: block;
  flex: none;
  width: 22px;
  height: 22px;
}

.pricing-channel__value {
  min-width: 0;
  overflow-wrap: anywhere;
}

.pricing-channel__copy {
  display: none;
  flex: none;
  min-width: 4.5rem;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--primary-text);
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

.js .pricing-channel__copy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.pricing-channel__copy:hover {
  border-color: var(--border-strong);
  background: var(--surface-hover);
}

.pricing-channel__copy:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.pricing-channel__copy.is-copied {
  border-color: var(--primary);
  background: var(--primary);
  color: #ffffff;
}

.pricing-channel__copy.is-failed {
  border-color: #e7a9a3;
  color: #b42318;
}

body[data-theme="dark"] .pricing-channel__copy.is-failed {
  border-color: #7a3b36;
  color: #ffb4ab;
}

.pricing-channel__main--qq-mobile {
  display: none;
}

@media (max-width: 720px) {
  .pricing-channel__main--qq-desktop {
    display: none;
  }

  .pricing-channel__main--qq-mobile {
    display: flex;
  }
}

@media (max-width: 720px) {
  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .pricing-card {
    padding: 24px;
  }

  .pricing-contact {
    padding: 24px;
  }
}

/* ---------- 法律页面 ---------- */

.legal__meta {
  margin-top: 14px;
  color: var(--text-3);
  font-size: 0.8125rem;
  line-height: 1.6;
}

.legal-prose > :first-child {
  margin-top: 0;
}

.legal-prose h2 {
  margin-top: 40px;
  color: var(--navy);
  font-size: 1.1875rem;
  font-weight: 700;
  line-height: 1.45;
}

.legal-prose p {
  margin-top: 12px;
  color: var(--text-2);
  font-size: 0.9375rem;
  line-height: 1.85;
}

.legal-prose ul {
  display: grid;
  gap: 8px;
  margin: 12px 0 0;
  padding-left: 1.3em;
}

.legal-prose li {
  color: var(--text-2);
  font-size: 0.9375rem;
  line-height: 1.85;
}

.legal-prose strong {
  color: var(--navy);
}

.legal-prose a {
  color: var(--primary-text);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-prose a:hover {
  color: var(--primary-hover);
}

/* ---------- 页脚 ---------- */

.site-footer {
  padding: 64px 0 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: var(--footer-bg);
  color: var(--on-dark);
}

.site-footer .brand {
  color: var(--on-dark);
}

.site-footer .brand:hover {
  color: var(--on-dark);
}

.site-footer__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 48px;
  align-items: start;
}

.site-footer__nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, auto));
  gap: 64px;
  justify-content: end;
}

.site-footer__links {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer__links a {
  color: var(--on-dark-soft);
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.6;
}

.site-footer__links a:hover {
  color: var(--on-dark);
}

.site-footer__links--legal {
  gap: 10px;
}

.site-footer__links--legal a {
  color: var(--on-dark-muted);
  font-size: 0.8125rem;
  font-weight: 500;
}

.site-footer__links--legal a:hover {
  color: var(--on-dark);
}

.site-footer__brand .brand {
  font-size: 1.0625rem;
}

.site-footer__tagline {
  max-width: 26em;
  margin-top: 16px;
  color: var(--on-dark-soft);
  font-size: 0.875rem;
  line-height: 1.65;
}

.site-footer__operator {
  max-width: 30em;
  margin-top: 8px;
  color: var(--on-dark-soft);
  font-size: 0.8125rem;
  line-height: 1.65;
}

.site-footer__operator strong {
  color: var(--on-dark);
  font-weight: 600;
}

.site-footer__legal {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--on-dark-muted);
  font-size: 0.8125rem;
}

/* ---------- 404 ---------- */

.not-found {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 112px 0;
}

.not-found__code {
  color: var(--primary-text);
  font-family: var(--mono);
  font-size: 0.8125rem;
  letter-spacing: 0.14em;
}

.not-found h1 {
  margin-top: 12px;
  color: var(--navy);
  font-size: clamp(2.25rem, 4.2vw, 3rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.not-found p {
  margin-top: 16px;
  color: var(--text-2);
  font-size: 1.0625rem;
}

.not-found__links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 40px;
  list-style: none;
}

.not-found__links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  color: var(--navy);
  font-size: 0.9375rem;
  font-weight: 600;
  box-shadow: var(--shadow-xs);
  transition: border-color 0.18s ease-out, background-color 0.18s ease-out,
    box-shadow 0.18s ease-out;
}

.not-found__links a::after {
  content: "→";
  color: var(--primary-text);
  transition: transform 0.2s ease-out;
}

.not-found__links a:hover {
  border-color: var(--primary);
  background: var(--surface-hover);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
}

.not-found__links a:hover::after {
  transform: translateX(3px);
}

/* ---------- 响应式 ---------- */

@media (max-width: 1080px) {
  .hero {
    padding: 84px 0 72px;
  }

  .hero__grid {
    grid-template-columns: 1fr;
    gap: 56px;
  }

  .hero h1 {
    max-width: 16em;
  }

  .terminal {
    max-width: 680px;
    margin-inline: auto;
  }

  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 960px) {
  .checks {
    grid-template-columns: 1fr;
  }

  .rules,
  .steps {
    gap: 16px;
  }

  .rule,
  .steps li {
    padding: 26px;
  }

  .section {
    padding: 72px 0;
  }

  .page-hero {
    padding: 72px 0 56px;
  }
}

@media (max-width: 860px) {
  .site-header {
    position: static;
  }

  .site-header__inner {
    flex-wrap: wrap;
    gap: 10px 18px;
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .theme-toggle {
    order: 3;
    width: 44px;
    height: 44px;
  }

  .lang-nav {
    order: 2;
    margin-left: auto;
  }

  .lang-menu__summary {
    min-height: 44px;
  }

  .lang-menu__list a {
    min-height: 44px;
  }

  .site-nav {
    order: 4;
    width: 100%;
    gap: 24px;
    padding-top: 8px;
    border-top: 1px solid var(--line-soft);
  }

  .site-nav a {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 6px 0;
  }

  .site-nav a::after {
    bottom: 2px;
  }

  .download-box__icon {
    right: 20px;
    width: 110px;
    height: 110px;
  }
}

@media (max-width: 720px) {
  :root {
    --gutter: 20px;
  }

  .hero {
    padding: 64px 0 56px;
  }

  .hero h1 {
    font-size: clamp(2rem, 7.6vw, 2.5rem);
  }

  .hero .lead {
    font-size: 1.0625rem;
  }

  .hero__actions .button {
    flex: 1 1 100%;
  }

  .section {
    padding: 56px 0;
  }

  .section h2 {
    font-size: 1.75rem;
  }

  .section__lead {
    font-size: 1.0625rem;
  }

  .rules,
  .steps,
  .feature-grid {
    grid-template-columns: 1fr;
    gap: 14px;
    margin-top: 36px;
  }

  .checks {
    grid-template-columns: 1fr;
    gap: 14px;
    margin-top: 28px;
  }

  .license {
    padding-bottom: 56px;
  }

  .license .narrow {
    padding: 26px 24px;
  }

  .cta {
    padding-bottom: 56px;
  }

  .cta > .container {
    padding: 32px 24px;
  }

  .cta__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }

  .cta .button {
    width: 100%;
  }

  .download-box {
    padding: 26px;
  }

  .download-box__icon {
    display: none;
  }

  .download-box__row {
    gap: 16px;
  }

  .download-box .button {
    width: 100%;
  }

  body[data-page="download"] #license > .container {
    width: calc(100% - 40px);
    padding: 26px 24px;
  }

  .page-hero {
    padding: 56px 0 48px;
  }

  .page-hero h1 {
    font-size: 2rem;
  }

  .page-links a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 7px 14px;
  }

  .site-footer__inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }

  .site-footer__nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px;
    justify-content: start;
  }

  .site-footer__legal {
    margin-top: 32px;
  }

  .not-found {
    padding: 72px 0;
  }

  .not-found__links {
    grid-template-columns: 1fr;
  }

  .spec {
    display: block;
    border: 0;
    border-radius: 0;
    background: none;
    box-shadow: none;
    overflow: visible;
  }

  .spec thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .spec tbody,
  .spec tr,
  .spec td {
    display: block;
    width: 100%;
  }

  .spec tr {
    margin-top: 12px;
    padding: 14px 18px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--surface);
    box-shadow: var(--shadow-xs);
  }

  .spec td,
  .spec tbody tr:last-child td {
    padding: 3px 0;
    border: 0;
  }

  .spec td::before {
    content: attr(data-label);
    display: block;
    color: var(--text-3);
    font-size: 0.75rem;
    font-weight: 500;
  }

  .spec td:first-child {
    padding-bottom: 6px;
    font-size: 1rem;
  }

  .spec td:first-child::before {
    display: none;
  }

  .spec--two td::before {
    display: none;
  }

  .spec--two td:first-child {
    padding-bottom: 0;
  }
}

@media (max-width: 520px) {
  .terminal__bar {
    padding: 12px 14px;
  }

  .tree {
    padding: 8px 12px;
  }

  .tree li {
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
    padding: 10px 8px;
  }

  .tree__note {
    text-align: left;
  }

  .tree__path {
    font-size: 0.78125rem;
  }

  .terminal__foot {
    padding: 12px 14px;
  }

  .terminal figcaption {
    padding: 0 14px 14px;
  }

  .rules,
  .steps,
  .feature-grid {
    margin-top: 28px;
  }

  .rule,
  .steps li,
  .feature {
    padding: 22px;
  }

  .site-footer__legal {
    flex-direction: column;
    gap: 4px;
  }

  .not-found__links a {
    padding: 14px 16px;
  }
}

/* ---------- 减少动态效果 ---------- */

@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;
  }

  .hero__copy,
  .terminal {
    animation: none;
  }

  .button:hover,
  .button:active,
  .theme-toggle:active,
  .page-links a:hover,
  .not-found__links a:hover,
  .feature a:hover::after {
    transform: none;
  }
}

/* ---------- 打印 ---------- */

@media print {
  .site-header,
  .site-footer,
  .cta,
  .skip-link,
  .theme-toggle,
  .contact-card,
  .page-links {
    display: none;
  }

  body {
    background: #ffffff;
    color: #000000;
  }

  .hero,
  .page-hero,
  .not-found,
  .section--muted,
  .notes,
  .download-box {
    background: #ffffff;
    box-shadow: none;
  }

  .hero,
  .page-hero,
  .section,
  .not-found {
    padding: 24px 0;
  }

  .rule,
  .feature,
  .steps li,
  .spec,
  .faq details,
  .license .narrow {
    box-shadow: none;
  }
}
