/* IDN Code 官网单页
   版式参照 idnclaw.com；主色取自 IDN Code 图标的青蓝渐变（#35f5fd → #10a1f9 → #1c61f6）。
   不引用任何外部字体、图标或脚本，在中国大陆也能完整加载。 */

:root {
  --navy-950: #060b17;
  --navy-900: #0a1224;
  --navy-800: #101a30;
  --navy-700: #17233d;
  --ink: #101828;
  --muted: #475467;
  --subtle: #667085;
  --line: #e4e7ec;
  --bg: #f7f9fc;
  --bg-muted: #eff4fb;
  --card: #ffffff;
  --blue-700: #1550d6;
  --blue-600: #1c61f6;
  --blue-500: #1e79f5;
  --sky-500: #10a2f7;
  --cyan-400: #29e8fc;
  --cyan-300: #35f5fd;
  --tint: #eaf3ff;
  --tint-strong: #d3e5ff;
  --brand-gradient: linear-gradient(135deg, #35f5fd 0%, #10a1f9 52%, #1c61f6 100%);
  --radius: 16px;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.05);
  --shadow-md: 0 12px 28px -10px rgba(16, 40, 90, 0.18);
  --shadow-lg: 0 28px 60px -24px rgba(16, 40, 90, 0.28);
  --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
ul, ol, dl, dd { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; }

:focus-visible { outline: 3px solid var(--sky-500); outline-offset: 3px; border-radius: 6px; }

.container { width: min(1180px, 100% - 48px); margin-inline: auto; }

.icon {
  width: 18px;
  height: 18px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon-fill { fill: currentColor; stroke: none; }

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--blue-600);
  color: #fff;
  font-weight: 700;
}
.skip-link:focus { top: 12px; }

/* ---------- 顶栏 ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
}

.header-inner { display: flex; align-items: center; gap: 28px; height: 64px; }

.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 17px; letter-spacing: -0.01em; white-space: nowrap; }
.brand img { border-radius: 10px; }

.site-nav { display: flex; align-items: center; gap: 26px; margin-right: auto; font-size: 14px; color: var(--muted); }
.site-nav a { padding: 6px 0; transition: color 0.15s; }
.site-nav a:hover { color: var(--blue-600); }

.header-actions { display: flex; align-items: center; gap: 10px; }

.pill-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}
.pill-button:hover { border-color: var(--tint-strong); color: var(--blue-600); }

.trust-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 12px;
  border: 1px solid var(--tint-strong);
  border-radius: 999px;
  background: var(--tint);
  color: var(--blue-700);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}
.trust-chip .icon { width: 15px; height: 15px; }

.menu-button {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
}

/* ---------- 按钮 ---------- */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, background-color 0.15s, border-color 0.15s;
}
.button:hover { transform: translateY(-1px); }
.button-small { height: 36px; padding: 0 14px; border-radius: 10px; font-size: 13px; }
.button-block { width: 100%; }

.button-primary { background: var(--blue-600); color: #fff; box-shadow: 0 10px 22px -10px rgba(28, 97, 246, 0.75); }
.button-primary:hover { background: var(--blue-700); }

.button-outline { background: #fff; border-color: var(--line); color: var(--ink); }
.button-outline:hover { border-color: var(--tint-strong); color: var(--blue-600); }

.button-light { background: #fff; color: var(--ink); box-shadow: 0 10px 24px -14px rgba(0, 0, 0, 0.6); }
.button-light .icon { color: var(--blue-600); }

/* ---------- 首屏 ---------- */

.hero {
  position: relative;
  overflow: hidden;
  background: var(--navy-950);
  color: #fff;
  padding: 84px 0 150px;
}

.hero-glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(52% 58% at 82% 18%, rgba(16, 162, 247, 0.36), transparent 70%),
    radial-gradient(42% 52% at 8% 96%, rgba(28, 97, 246, 0.30), transparent 72%),
    radial-gradient(30% 34% at 58% 78%, rgba(53, 245, 253, 0.10), transparent 70%);
}
.hero-glow::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(70% 70% at 60% 30%, #000, transparent 78%);
  mask-image: radial-gradient(70% 70% at 60% 30%, #000, transparent 78%);
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  align-items: center;
  gap: 64px;
}

.eyebrow {
  margin-bottom: 14px;
  color: var(--blue-600);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.eyebrow-light { color: var(--cyan-300); }

.hero h1 { font-size: clamp(46px, 6.2vw, 78px); line-height: 1.04; font-weight: 800; letter-spacing: -0.03em; }
.hero-lede { margin-top: 18px; font-size: clamp(21px, 2.3vw, 28px); line-height: 1.35; font-weight: 700; }
.hero-text { margin-top: 16px; max-width: 34em; color: rgba(255, 255, 255, 0.74); font-size: 16px; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

.hero-points { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.hero-points li {
  padding: 7px 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.9);
  font-size: 13px;
  font-weight: 700;
}

/* 产品示意 */

.hero-visual { position: relative; padding: 46px 12px 58px 52px; }

.app-window {
  position: relative;
  display: grid;
  grid-template-columns: 152px minmax(0, 1fr);
  min-height: 396px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 16px;
  overflow: hidden;
  background: #0d1526;
  box-shadow: 0 44px 90px -28px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(53, 245, 253, 0.05), 0 0 80px -20px rgba(16, 162, 247, 0.35);
  font-size: 11.5px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.86);
}

.app-sidebar {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 10px 12px;
  background: linear-gradient(180deg, #0c1425 0%, #090f1d 100%);
  border-right: 1px solid rgba(255, 255, 255, 0.07);
}
.app-brand { display: flex; align-items: center; gap: 6px; padding: 0 4px 8px; font-weight: 800; font-size: 12px; color: #fff; }
.app-brand img { border-radius: 5px; }
.app-new { margin-bottom: 8px; padding: 6px 8px; border-radius: 8px; background: rgba(255, 255, 255, 0.08); text-align: center; font-weight: 700; }
.app-group-title { padding: 4px 6px 2px; color: rgba(255, 255, 255, 0.42); font-size: 10.5px; }
.app-folder { display: flex; align-items: center; gap: 6px; padding: 4px 6px; color: rgba(255, 255, 255, 0.78); }
.dot-folder { width: 11px; height: 9px; border-radius: 2px; border: 1.4px solid rgba(255, 255, 255, 0.5); }
.app-folder.is-open .dot-folder { border-color: var(--cyan-400); }
.app-session { margin-left: 14px; padding: 4px 8px; border-radius: 7px; color: rgba(255, 255, 255, 0.62); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app-session.is-active { background: rgba(255, 255, 255, 0.09); color: #fff; }

.app-main { display: flex; flex-direction: column; min-width: 0; background: #0f182b; }
.app-tabs { display: flex; gap: 18px; padding: 12px 18px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.07); color: rgba(255, 255, 255, 0.5); font-weight: 700; }
.app-tabs span { padding-bottom: 8px; border-bottom: 2px solid transparent; }
.app-tabs .is-active { color: #fff; border-bottom-color: var(--sky-500); }

.app-thread { flex: 1; display: flex; flex-direction: column; gap: 10px; padding: 16px 18px 10px; min-width: 0; }
.bubble-user { align-self: flex-end; max-width: 88%; padding: 8px 12px; border-radius: 12px 12px 4px 12px; background: #1a2740; color: #fff; }
.app-answer { color: rgba(255, 255, 255, 0.82); }
.app-code {
  margin: 0;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 10px;
  background: #0a1120;
  color: #cfd8ea;
  font-family: var(--mono);
  font-size: 10.5px;
  line-height: 1.6;
  white-space: pre;
  overflow: hidden;
}
.c-k { color: #7cc4ff; }
.c-s { color: #7ee0c3; }
.c-f { color: #ffd479; }

.app-files { display: flex; flex-wrap: wrap; gap: 8px; }
.app-files span { display: inline-flex; align-items: center; gap: 6px; padding: 4px 9px; border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 8px; background: rgba(255, 255, 255, 0.04); font-family: var(--mono); font-size: 10.5px; }
.dot-new { width: 6px; height: 6px; border-radius: 50%; background: #3ddc97; }

.app-composer { margin: 0 14px 14px; padding: 10px 12px; border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 12px; background: #131d33; }
.app-placeholder { display: block; margin-bottom: 10px; color: rgba(255, 255, 255, 0.38); }
.app-composer-row { display: flex; align-items: center; gap: 8px; }
.app-chip { padding: 3px 8px; border-radius: 7px; background: rgba(255, 255, 255, 0.07); color: rgba(255, 255, 255, 0.75); white-space: nowrap; }
.app-send { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; margin-left: auto; border-radius: 50%; background: var(--brand-gradient); color: #fff; }
.app-send .icon { width: 13px; height: 13px; stroke-width: 2.4; }

.mascot-card {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 150px;
  border-radius: 30px;
  overflow: hidden;
  transform: rotate(-5deg);
  box-shadow: 0 26px 50px -18px rgba(0, 0, 0, 0.7), 0 0 0 4px rgba(255, 255, 255, 0.1);
}
.mascot-card img { width: 100%; }

.float-label {
  position: absolute;
  z-index: 2;
  padding: 9px 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 14px;
  background: rgba(13, 24, 46, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 16px 30px -16px rgba(0, 0, 0, 0.7);
  white-space: nowrap;
}
.float-label small { display: block; color: var(--cyan-300); font-size: 10px; font-weight: 800; letter-spacing: 0.14em; }
.float-label strong { font-size: 13px; }
.float-label-a { top: 0; left: 26px; }
.float-label-b { top: 204px; right: -20px; }
.float-label-c { bottom: 22px; right: 84px; }

/* ---------- 概览条 ---------- */

.metrics { position: relative; z-index: 2; margin-top: -66px; }
.metrics-card {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--card);
  box-shadow: var(--shadow-lg);
}
.metrics-card > div { padding: 26px 28px; border-left: 1px solid var(--line); }
.metrics-card > div:first-child { border-left: 0; }
.metrics-card strong { display: block; font-size: 19px; font-weight: 800; letter-spacing: -0.01em; }
.metrics-card span { display: block; margin-top: 6px; color: var(--muted); font-size: 14px; line-height: 1.55; }

/* ---------- 通用版块 ---------- */

.section { padding: 104px 0; }
.section-muted { background: var(--bg-muted); }

.section h2,
.closing h2 { font-size: clamp(28px, 3.3vw, 40px); line-height: 1.2; font-weight: 800; letter-spacing: -0.02em; }
.section-text { margin-top: 14px; max-width: 44em; color: var(--muted); font-size: 16px; }

.card-grid { display: grid; gap: 20px; margin-top: 40px; }
.card-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card-grid-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }

.card {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.card:hover { transform: translateY(-3px); border-color: var(--tint-strong); box-shadow: var(--shadow-md); }
.card h3 { font-size: 18px; font-weight: 800; letter-spacing: -0.01em; }
.card p { margin-top: 8px; color: var(--muted); font-size: 14.5px; line-height: 1.7; }
.card-compact { padding: 20px; }
.card-compact h3 { font-size: 16px; }
.card-compact p { font-size: 13.5px; }
.card-compact::before {
  content: "";
  display: block;
  width: 28px;
  height: 4px;
  margin-bottom: 14px;
  border-radius: 999px;
  background: var(--brand-gradient);
}

.icon-tile {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  margin-bottom: 18px;
  border-radius: 13px;
  background: var(--tint);
  color: var(--blue-600);
}
.icon-tile .icon { width: 22px; height: 22px; }

/* 认识小思思 */

.companion { padding-top: 96px; }
.companion-inner { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); align-items: center; gap: 72px; }

.check-list { display: grid; gap: 14px; margin-top: 28px; }
.check-list li { display: flex; align-items: flex-start; gap: 10px; font-size: 15.5px; font-weight: 600; }
.check-list .icon { margin-top: 4px; color: var(--blue-600); }

.mascot-mosaic { display: grid; grid-template-columns: 1.28fr 1fr; grid-template-rows: 1fr 1fr; gap: 16px; }
.mascot-mosaic img { width: 100%; height: 100%; object-fit: cover; border-radius: 26px; box-shadow: var(--shadow-md); }
.mascot-mosaic .mosaic-large { grid-row: span 2; }

/* 应用场景：示例任务 */

.example-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 18px; }
.example-grid li {
  position: relative;
  padding: 15px 18px 15px 46px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.6;
}
.example-grid li::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 17px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231c61f6' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 12.500l3.200 3.200L17 9'/%3E%3C/svg%3E") center / 14px no-repeat;
}

/* 三步开始 */

.steps { counter-reset: none; }
.step-number {
  display: block;
  margin-bottom: 14px;
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
  background: linear-gradient(135deg, #10a1f9 0%, #1c61f6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* 对比表 */

.table-wrap {
  margin-top: 36px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--card);
  box-shadow: var(--shadow-sm);
  overflow-x: auto;
}
.compare-table { width: 100%; min-width: 620px; border-collapse: collapse; font-size: 15px; }
.compare-table th,
.compare-table td { padding: 20px 26px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.compare-table thead th { background: #f8fafc; font-size: 14px; font-weight: 800; }
.compare-table tbody tr:last-child th,
.compare-table tbody tr:last-child td { border-bottom: 0; }
.compare-table tbody th { width: 20%; font-weight: 800; }
.compare-table td { color: var(--muted); }
.compare-table td:last-child,
.compare-table thead th:last-child { color: var(--blue-600); font-weight: 800; }
.compare-table td:last-child { background: linear-gradient(90deg, rgba(234, 243, 255, 0.7), rgba(234, 243, 255, 0)); }

/* 下载 */

.download-card {
  display: grid;
  grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr);
  align-items: start;
  gap: 44px;
  padding: 44px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--card);
  box-shadow: var(--shadow-md);
}

.version-badge {
  display: inline-block;
  margin-top: 20px;
  padding: 6px 12px;
  border-radius: 8px;
  background: var(--tint);
  color: var(--blue-700);
  font-size: 13px;
  font-weight: 800;
}

.platform-row { display: flex; flex-wrap: wrap; gap: 18px 22px; margin-top: 22px; }
.platform { display: grid; gap: 10px; justify-items: center; }
.platform small { color: var(--subtle); font-size: 12.5px; font-weight: 600; }

.button-platform {
  height: 56px;
  padding: 0 22px;
  border-color: var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 10px 24px -14px rgba(16, 40, 90, 0.35);
  font-size: 16px;
}
.button-platform .icon { width: 22px; height: 22px; }
.button-platform em { padding: 3px 9px; border-radius: 999px; background: var(--tint); color: var(--blue-700); font-size: 12px; font-style: normal; font-weight: 800; }
.button-platform.is-disabled { cursor: not-allowed; color: var(--subtle); box-shadow: none; }
.button-platform.is-disabled:hover { transform: none; }

.integrity { margin-top: 32px; padding-top: 26px; border-top: 1px solid var(--line); }
.integrity h3 { display: flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 800; }
.integrity h3 .icon { color: #12a56b; }
.integrity p { margin-top: 6px; color: var(--muted); font-size: 14px; }

.release-list { margin-top: 16px; border-top: 1px solid var(--line); }
.release-list > div { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.release-list dt { font-weight: 800; }
.release-list dd { color: var(--subtle); font-weight: 600; }

/* 下载来源说明（下载域名已配置、安装包制作中） */
.host-note { margin: 16px 0 0; font-size: 14px; font-weight: 600; color: var(--blue-600); }

/* 版本更新说明：只有 releases.json 里带了 releaseNotes 才会出现 */
.release-notes { margin-top: 24px; }
.release-notes[hidden] { display: none; }
.release-notes h3 { font-size: 16px; font-weight: 800; }
.release-notes .check-list { margin-top: 12px; gap: 10px; }
.release-notes .check-list li { font-size: 14.5px; font-weight: 600; color: var(--muted); }

.account-card {
  padding: 28px;
  border: 1px solid var(--tint-strong);
  border-radius: 18px;
  background: linear-gradient(180deg, #f1f7ff 0%, #ffffff 100%);
}
.account-card h3 { font-size: 18px; font-weight: 800; }
.account-card p { margin: 8px 0 22px; color: var(--muted); font-size: 14.5px; line-height: 1.7; }

/* 收尾 */

.closing { padding: 0 0 72px; background: var(--bg-muted); }
.closing-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 40px 44px;
  border-radius: 22px;
  overflow: hidden;
  background:
    radial-gradient(60% 140% at 100% 0%, rgba(16, 162, 247, 0.40), transparent 62%),
    radial-gradient(40% 120% at 0% 100%, rgba(28, 97, 246, 0.32), transparent 66%),
    var(--navy-900);
  color: #fff;
}
.closing-card p { margin-top: 8px; color: rgba(255, 255, 255, 0.76); }
.icon-tile-dark { margin-bottom: 0; background: rgba(255, 255, 255, 0.1); color: var(--cyan-300); }

/* 页脚 */

.site-footer { padding: 30px 0 36px; background: var(--bg-muted); border-top: 1px solid var(--line); color: var(--subtle); font-size: 13.5px; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 30px; }
.footer-inner .brand { color: var(--ink); font-size: 15px; }
.footer-inner .brand img { border-radius: 9px; }
.footer-inner nav { display: flex; gap: 20px; margin-left: auto; }
.footer-inner nav a { color: var(--muted); transition: color 0.15s; }
.footer-inner nav a:hover { color: var(--blue-600); }

/* ---------- 隐私政策、服务条款、404 ---------- */

.header-actions-end { margin-left: auto; }

.legal-body { background: #fff; }

.not-found { padding: 120px 0 140px; }
.not-found h1 { font-size: clamp(30px, 4vw, 44px); line-height: 1.2; font-weight: 800; letter-spacing: -0.02em; }
.not-found .button { margin-top: 28px; }

.legal { width: min(820px, 100% - 48px); margin-inline: auto; padding: 72px 0 96px; }
.legal-back { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 28px; color: var(--blue-600); font-size: 14px; font-weight: 700; }
.legal h1 { font-size: clamp(30px, 4vw, 42px); line-height: 1.2; font-weight: 800; letter-spacing: -0.02em; }
.legal-meta { margin-top: 12px; color: var(--subtle); font-size: 14px; }
.legal-note { margin-top: 20px; padding: 14px 18px; border: 1px solid var(--tint-strong); border-radius: 12px; background: var(--tint); color: var(--navy-700); font-size: 14.5px; }
.legal h2 { margin-top: 44px; font-size: 22px; line-height: 1.35; font-weight: 800; letter-spacing: -0.01em; }
.legal h3 { margin-top: 26px; font-size: 17px; font-weight: 800; }
.legal p { margin-top: 14px; color: #344054; font-size: 16px; line-height: 1.8; }
.legal ul { margin-top: 12px; padding-left: 22px; list-style: disc; color: #344054; }
.legal li { margin-top: 8px; line-height: 1.75; }
.legal a { color: var(--blue-600); text-decoration: underline; text-underline-offset: 3px; }
.legal strong { color: var(--ink); }
.legal table { width: 100%; margin-top: 16px; border-collapse: collapse; font-size: 14.5px; }
.legal th, .legal td { padding: 12px 14px; border: 1px solid var(--line); text-align: left; vertical-align: top; line-height: 1.65; }
.legal th { background: #f8fafc; font-weight: 800; }
.legal .table-scroll { overflow-x: auto; }

/* 两种语言各写一份，按页面语言只显示一份 */
html[lang="en"] .lang-zh { display: none; }
html:not([lang="en"]) .lang-en { display: none; }

@media (max-width: 640px) {
  .legal { width: min(820px, 100% - 32px); padding: 48px 0 72px; }
  .not-found { padding: 80px 0 100px; }
}

/* ---------- 进场动效 ---------- */

.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }

@keyframes float-slow {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
.float-label-a { animation: float-slow 7s ease-in-out infinite; }
.float-label-b { animation: float-slow 8s ease-in-out -2s infinite; }
.float-label-c { animation: float-slow 9s ease-in-out -4s infinite; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .float-label { animation: none; }
  .button, .card { transition: none; }
}

/* ---------- 响应式 ---------- */

@media (max-width: 1120px) {
  .header-inner { gap: 20px; }
  .site-nav { gap: 20px; }
  .trust-chip { display: none; }
  .hero-inner { gap: 44px; }
  .card-grid-5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 960px) {
  .menu-button { display: inline-flex; }
  .site-nav {
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0;
    padding: 8px 24px 16px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    font-size: 16px;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .site-nav a:last-child { border-bottom: 0; }
  .header-actions { margin-left: auto; }
  .button-outline.button-small { display: none; }

  .hero { padding: 64px 0 132px; }
  .hero-inner { grid-template-columns: 1fr; gap: 52px; }
  .hero-visual { max-width: 640px; }

  .metrics-card { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metrics-card > div:nth-child(3) { border-left: 0; }
  .metrics-card > div:nth-child(n + 3) { border-top: 1px solid var(--line); }

  .section { padding: 80px 0; }
  .companion-inner { grid-template-columns: 1fr; gap: 44px; }
  .mascot-mosaic { max-width: 520px; }
  .card-grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .example-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .download-card { grid-template-columns: 1fr; padding: 32px; }
}

@media (max-width: 640px) {
  .container { width: min(1180px, 100% - 32px); }
  .header-inner { gap: 10px; }
  .pill-button { padding: 0 11px; }
  .hero { padding: 48px 0 118px; }
  .hero-actions .button { flex: 1 1 100%; }
  .hero-visual { padding: 62px 0 92px 18px; }
  .app-window { grid-template-columns: 1fr; min-height: 0; }
  .app-sidebar { display: none; }
  .mascot-card { width: 104px; border-radius: 22px; bottom: 4px; }
  .float-label-a { left: 8px; }
  .float-label-b { display: none; }
  .float-label-c { right: 6px; bottom: 22px; }

  .metrics-card { grid-template-columns: 1fr; }
  .metrics-card > div { border-left: 0; border-top: 1px solid var(--line); padding: 20px 22px; }
  .metrics-card > div:first-child { border-top: 0; }

  .section { padding: 64px 0; }
  .card-grid-3, .card-grid-5, .example-grid { grid-template-columns: 1fr; }
  .card-grid { margin-top: 28px; }
  .download-card { padding: 24px; border-radius: 20px; }
  .platform-row { flex-direction: column; }
  .platform { justify-items: stretch; }
  .button-platform { justify-content: flex-start; }
  .closing-card { flex-direction: column; align-items: flex-start; padding: 30px 26px; }
  .footer-inner nav { margin-left: 0; }
  /* 手机上三列都要一眼看到，不靠横向滚动 */
  .compare-table { min-width: 0; font-size: 13.5px; table-layout: fixed; }
  .compare-table th,
  .compare-table td { padding: 14px 12px; }
  .compare-table tbody th { width: 24%; }
}

@media (max-width: 440px) {
  .header-actions .button-primary { display: none; }
}
