/* ============================================================
   1号员工（Digital AI Employee 1#）— 官网样式 v2（全站深色）
   品牌体系：D+B（DeepSeek 质感 + 红褐品牌锚点），全站锁定深色主题
   主色：红褐 #c25b43（暗色模式主行动色），呼应 App 图标红 #842018
   底色：中性蓝灰 深 #101216 / #17191d / #1d2025
   信息蓝 #5b8def 仅用于 info 类（版本号、链接等），与主行动色分离
   无外部字体依赖（国内访问友好），全部使用系统字体栈
   ============================================================ */

/* ---------- 设计令牌（全站深色） ---------- */
:root {
  /* 品牌红褐色阶（对应 App --aou-* 暗色系） */
  --aou-6: #c25b43;   /* 主行动色 */
  --aou-7: #d97a62;   /* hover */
  --aou-8: #e8a08c;   /* 浅红褐文字（深底） */
  --aou-9: #f3c8ba;

  /* 底色（中性蓝灰，深色主题内明度层次） */
  --ink: #101216;      /* 主背景 */
  --ink-2: #17191d;    /* 次级表面 / 卡片 */
  --ink-3: #1d2025;    /* 三级表面 / 分隔 */
  --ink-4: #262a31;    /* 边框加强 */

  /* 品牌主色（全站统一暗色模式主行动色） */
  --accent: #c25b43;
  --accent-hover: #d97a62;
  --accent-soft: #e8a08c;

  /* 信息蓝（仅 info：版本号、链接） */
  --info: #5b8def;

  /* 文字 */
  --text-primary: #e8eaee;
  --text-secondary: #a6acb6;
  --text-muted: #6c727c;

  /* 分隔线 */
  --line: rgba(255, 255, 255, 0.14);
  --line-soft: rgba(255, 255, 255, 0.08);

  --mono: "Cascadia Code", "JetBrains Mono", Consolas, "SF Mono", Menlo,
          "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", monospace;
  --sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC",
          -apple-system, "Segoe UI", system-ui, sans-serif;
  --radius: 10px;
  --maxw: 1100px;
  --shadow-pop: 0 18px 50px rgba(7, 9, 12, 0.45);
}

/* ---------- 基础 ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--ink);
  color: var(--text-primary);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }

a { color: inherit; }

/* ---------- 全站固定背景（Gateway Flow 粒子流线） ---------- */
.bg-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.6;
}

::selection { background: var(--accent); color: #fff; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.container {
  width: 100%;
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 56px);
}

.mono { font-family: var(--mono); }

/* ---------- 顶部导航 ---------- */
.site-nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: rgba(16, 18, 22, 0.85);
  border-bottom: 1px solid transparent;
}
.site-nav.is-scrolled { border-color: var(--line); background: rgba(16, 18, 22, 0.94); }
.site-nav .container {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 76px;
  padding-top: 10px;
  padding-bottom: 10px;
}
.brand {
  display: flex; align-items: center; gap: 14px;
  text-decoration: none;
  min-width: 0;
  flex: 1 1 auto;
}
.brand img {
  width: 60px; height: 60px;
  border-radius: 12px;
  object-fit: contain;
  flex: none;
}
.brand-quote {
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--text-secondary);
  font-style: italic;
  letter-spacing: 0.01em;
  min-width: 0;
  white-space: normal;
}
.brand-quote .quote-src {
  display: inline;
  font-style: normal;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-muted);
  margin-left: 8px;
}
.brand-quote .quote-src::before {
  content: "";
  display: inline-block;
  width: 14px; height: 1px;
  background: var(--accent);
  vertical-align: middle;
  margin-right: 6px;
}
.nav-links { display: flex; align-items: center; gap: 20px; }
.nav-links a {
  color: var(--text-secondary); text-decoration: none; font-size: 14.5px;
  transition: color 0.18s ease;
}
.nav-links a:hover { color: var(--text-primary); }
.nav-gh {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  color: var(--text-primary) !important;
  border: 1px solid var(--line); border-radius: 999px;
  padding: 0 16px; font-size: 13.5px; font-weight: 600; line-height: 1;
  height: 34px;
  white-space: nowrap;
  transition: border-color 0.18s ease, background 0.18s ease;
}
.nav-gh:hover { border-color: var(--accent); background: rgba(194, 91, 67, 0.12); }
/* 登录后导航显示账号邮箱：长邮箱截断省略号，不撑破导航 */
.nav-auth-name {
  max-width: 240px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* 品牌底色按钮（物理接入） */
.nav-gh-brand {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff !important;
}
.nav-gh-brand:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  box-shadow: 0 6px 18px rgba(194, 91, 67, 0.35);
}

/* 物理世界按钮（翡翠绿，taste-skill 单一 accent + AA 对比：白字 4.5:1+） */
.nav-gh-physical {
  background: #178a4d;
  border-color: #178a4d;
  color: #fff !important;
}
.nav-gh-physical:hover {
  background: #1ea35c;
  border-color: #1ea35c;
  box-shadow: 0 6px 18px rgba(23, 138, 77, 0.35);
}

/* ---------- 语言下拉（最右上角，与 GitHub 按钮同尺寸） ---------- */
.lang-select {
  font-family: var(--sans);
  font-size: 13.5px; font-weight: 600;
  line-height: 1;
  color: var(--text-primary);
  background: var(--ink-3);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 16px;
  text-align: center;
  height: 34px;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23a6acb6' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  transition: border-color 0.15s ease;
}
.lang-select:hover { border-color: var(--accent); }
.lang-select:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.lang-select option { background: var(--ink-2); color: var(--text-primary); }

/* ---------- Hero（非对称 Split：左文案 / 右截图） ---------- */
.hero {
  background: transparent;
  color: var(--text-primary);
  position: relative;
  overflow: hidden;
  padding: 88px 0 96px;
}
/* 背景网格 + 红褐光晕（纯 CSS） */
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 80% at 20% 10%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 20% 10%, #000 20%, transparent 75%);
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  width: 560px; height: 560px; border-radius: 50%;
  background: radial-gradient(circle, rgba(194, 91, 67, 0.16), transparent 65%);
  top: -200px; right: -120px;
  pointer-events: none;
}
.hero-inner {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: 56px;
  align-items: center;
}

.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 13px; color: var(--accent-soft);
  border: 1px solid var(--line); border-radius: 999px;
  padding: 6px 16px; margin-bottom: 26px;
}
.hero-eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); }

.hero h1 {
  font-size: clamp(40px, 5.6vw, 62px);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.08;
  margin-bottom: 20px;
}
.hero h1 .accent { color: var(--accent-soft); }
.hero-sub {
  max-width: 46ch;
  font-size: clamp(15.5px, 1.9vw, 17.5px);
  color: var(--text-secondary);
  margin-bottom: 34px;
}

.hero-cta { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 0; }

/* Hero 下载区：主下载按钮 + 预留平台小入口 */
.hero-dl {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}
.hero-dl-main { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-soon-row { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-soon-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-secondary);
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  padding: 6px 13px;
  text-decoration: none;
  white-space: nowrap;
  transition: border-color 0.18s ease, color 0.18s ease;
}
.hero-soon-item:hover { border-color: rgba(194, 91, 67, 0.45); color: var(--text-primary); }
.hero-soon-item svg { flex: none; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-size: 16px; font-weight: 700;
  padding: 14px 30px; border-radius: var(--radius);
  text-decoration: none; cursor: pointer; border: none;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}
.btn-sm { font-size: 13.5px; padding: 7px 16px; border-radius: 8px; }
.btn:active { transform: translateY(1px); }

.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); box-shadow: 0 12px 30px rgba(194, 91, 67, 0.4); transform: translateY(-2px); }
.btn-primary .arrow { transition: transform 0.18s ease; }
.btn-primary:hover .arrow { transform: translateX(4px); }

.btn-ghost-dark { border: 1px solid var(--line); color: var(--text-primary); background: transparent; }
.btn-ghost-dark:hover { border-color: rgba(255, 255, 255, 0.4); transform: translateY(-2px); }

/* Hero 右侧截图 */
.hero-shot {
  position: relative;
}
.hero-shot img {
  width: 100%;
  height: auto;
  max-width: 1440px;
  margin: 0 auto;
  border-radius: 14px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-pop);
  background: var(--ink-2);
}
.hero-shot::after {
  content: "";
  position: absolute; inset: -14px;
  border: 1px solid var(--line-soft);
  border-radius: 20px;
  z-index: -1;
}

/* ---------- 通用区块（全站深色） ---------- */
.section { padding: 96px 0; }
.section-tight { padding-top: 56px; }
.section-tight-sm { padding-top: 40px; }
.section-head { margin-bottom: 56px; }
.section-head .kicker {
  font-family: var(--mono); font-size: 13px; letter-spacing: 0.14em;
  color: var(--accent-soft); text-transform: uppercase; margin-bottom: 14px;
}
.section-head h2 {
  font-size: clamp(28px, 4.5vw, 42px);
  font-weight: 900; letter-spacing: -0.01em; line-height: 1.2;
}

/* 区块背景层次（深色内明度微调） */
.section-alt { background: rgba(23, 25, 29, 0.88); }
.section-alt .section-head h2 { color: var(--text-primary); }

/* ---------- 能力区（Bento 不对称网格） ---------- */
.caps {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
}
.cap-item {
  grid-column: span 6;
  background: var(--ink-2);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 30px 28px;
  transition: transform 0.18s ease, border-color 0.18s ease;
}
.cap-item:hover { transform: translateY(-3px); border-color: rgba(194, 91, 67, 0.45); }
.cap-item h3 { font-size: 18.5px; font-weight: 800; margin-bottom: 8px; }
.cap-item p { color: var(--text-secondary); font-size: 14.5px; line-height: 1.7; }
.cap-item .cap-tag {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 12px; color: var(--accent-soft);
  margin-bottom: 16px;
}
.cap-item .cap-tag::before {
  content: ""; width: 7px; height: 7px; border-radius: 2px;
  background: var(--accent);
}
.cap-sm { grid-column: span 4; }
.cap-wide { grid-column: span 12; display: grid; grid-template-columns: 1fr 2.4fr; gap: 24px; align-items: center; }
.cap-wide h3 { margin-bottom: 0; }
.cap-wide p { margin-bottom: 0; }

/* ---------- 场景区（真实截图） ---------- */
.section-scene { background: var(--ink); }
.tabs { display: flex; gap: 10px; margin-bottom: 28px; flex-wrap: wrap; }
.tab-btn {
  font-size: 14px; font-weight: 600;
  padding: 9px 20px; border-radius: 999px;
  border: 1px solid var(--line); background: transparent; color: var(--text-secondary);
  cursor: pointer; transition: all 0.18s ease;
}
.tab-btn:hover { color: var(--text-primary); }
.tab-btn.active { background: var(--accent); border-color: var(--accent); color: #fff; }

.scene { display: none; }
.scene.active { display: block; animation: fadeUp 0.4s ease both; }
.scene-shot {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--ink-2);
  overflow: hidden;
  box-shadow: var(--shadow-pop);
}
.scene-shot img { width: 100%; height: auto; max-width: 1440px; margin: 0 auto; }
.scene-caption {
  margin-top: 20px; display: flex; gap: 16px; flex-wrap: wrap;
  font-family: var(--mono); font-size: 13px; color: var(--text-secondary);
}
.scene-caption b { color: var(--accent-soft); font-weight: 600; }
.scene-caption .info-blue { color: var(--info); }

/* ---------- 三步上手 ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 44px; position: relative; }
.step { position: relative; padding-top: 0; }
.step h3 { font-size: 18px; font-weight: 800; margin-bottom: 10px; }
.step h3 .step-no { color: var(--accent); font-family: var(--mono); margin-right: 8px; }
.step p { color: var(--text-secondary); font-size: 14.5px; }

/* ---------- 最终 CTA ---------- */
.cta-band {
  background: rgba(16, 18, 22, 0.9);
  color: var(--text-primary);
  padding: 90px 0;
  position: relative; overflow: hidden;
  text-align: center;
}
.cta-band::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 100% at 50% 50%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 100% at 50% 50%, #000 30%, transparent 75%);
  pointer-events: none;
}
.cta-band h2 { font-size: clamp(30px, 5vw, 48px); font-weight: 900; margin-bottom: 16px; position: relative; }
.cta-band p { color: var(--text-secondary); margin-bottom: 34px; position: relative; }
.cta-band .hero-cta { justify-content: center; position: relative; }

/* ---------- 硬件接入页 ---------- */
.hw-card .os-icon { background: var(--ink-3); color: var(--accent-soft); }
.status-badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11.5px; font-weight: 700;
  padding: 3px 10px; border-radius: 999px;
  margin-top: 14px;
}
.status-badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status-badge.ready { color: #3fbf77; background: rgba(63, 191, 119, 0.12); }
.status-badge.soon { color: #d9a13c; background: rgba(217, 161, 60, 0.12); }
.status-badge.eval { color: #a6acb6; background: rgba(166, 172, 182, 0.12); }
.hw-route {
  display: grid; grid-template-columns: 1.6fr 1fr 1.4fr auto;
  align-items: center; gap: 18px;
  padding: 16px 4px; border-bottom: 1px solid var(--line-soft);
  font-size: 14.5px;
}
.hw-route .mono { color: var(--accent-soft); font-size: 12.5px; }
.hw-note { margin-top: 24px; font-size: 13.5px; color: var(--text-muted); }

/* ---------- 页脚 ---------- */
.site-footer { background: rgba(16, 18, 22, 0.92); border-top: 1px solid var(--line); color: var(--text-muted); padding: 44px 0 36px; }
.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 48px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}
.footer-intro { flex: 1 1 300px; min-width: 0; }
.footer-cols { display: flex; gap: 56px; flex-wrap: wrap; }
.footer-brand { font-weight: 800; color: var(--text-primary); font-size: 16px; display: flex; align-items: center; gap: 9px; }
.footer-brand img { width: 26px; height: 26px; object-fit: contain; }
.footer-desc {
  margin-top: 12px;
  font-size: 14px;
  line-height: 1.6;
  white-space: nowrap;
}
.footer-col h4 { font-size: 13px; color: var(--text-primary); margin-bottom: 14px; letter-spacing: 0.06em; }
.footer-col a { display: block; font-size: 14px; color: var(--text-secondary); text-decoration: none; margin-bottom: 10px; }
.footer-col a:hover { color: var(--accent-soft); }
.footer-bottom {
  border-top: 1px solid var(--line); padding-top: 22px;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 13px;
}
.footer-bottom .info-blue { color: var(--info); }
.footer-bottom--plain { border-top: none; padding-top: 0; }

/* ---------- 子页面（下载 / 更新日志） ---------- */
.page-hero { background: rgba(16, 18, 22, 0.88); color: var(--text-primary); padding: 64px 0 56px; border-bottom: 1px solid var(--line-soft); }
.page-hero h1 { font-size: clamp(30px, 4.5vw, 44px); font-weight: 900; margin-bottom: 10px; }
.page-hero p { color: var(--text-secondary); max-width: 680px; }
.page-hero p .info-blue { color: var(--info); }

.dl-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.dl-card {
  border: 1px solid var(--line-soft); border-radius: var(--radius);
  background: var(--ink-2);
  padding: 26px 24px;
  transition: transform 0.18s ease, border-color 0.18s ease;
  display: flex; flex-direction: column;
}
.dl-card:hover { transform: translateY(-4px); border-color: rgba(194, 91, 67, 0.4); }
.dl-card .os-icon {
  width: 46px; height: 46px; border-radius: 12px;
  background: var(--ink-3); color: var(--accent-soft);
  display: grid; place-items: center; margin-bottom: 18px;
  font-size: 20px;
}
.dl-card h3 { font-size: 19px; font-weight: 800; margin-bottom: 4px; }
.dl-card .os-hint { font-size: 13.5px; color: var(--text-muted); margin-bottom: 20px; }
.dl-card > p { font-size: 14px; color: var(--text-secondary); }
.dl-card .btn { justify-content: center; width: 100%; font-size: 15px; padding: 12px 20px; }
.dl-card .soon {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; font-size: 15px; font-weight: 700;
  padding: 12px 20px; border-radius: var(--radius);
  border: 1px dashed var(--line); color: var(--text-secondary);
}
.dl-card .meta {
  margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--line-soft);
  font-family: var(--mono); font-size: 12.5px; color: var(--text-muted);
  display: flex; justify-content: space-between; gap: 8px; word-break: break-all;
}

.dl-files { margin-top: 44px; }
.dl-files h2 { font-size: 20px; font-weight: 800; margin-bottom: 20px; }
.file-row {
  display: grid; grid-template-columns: 1.6fr 1fr 2.4fr auto;
  align-items: center; gap: 18px;
  padding: 18px 4px; border-bottom: 1px solid var(--line-soft);
}
.file-row.head { font-family: var(--mono); font-size: 12px; color: var(--text-muted); letter-spacing: 0.06em; border-bottom-color: var(--line); }
.file-name { font-weight: 700; font-size: 14.5px; word-break: break-all; }
.file-type { font-size: 13px; color: var(--text-muted); }
.file-size { font-family: var(--mono); font-size: 13px; color: var(--text-secondary); }
.file-sha { font-family: var(--mono); font-size: 12px; color: var(--text-muted); word-break: break-all; }
.copy-btn {
  font-size: 12.5px; font-weight: 600; color: var(--accent-soft);
  background: transparent; border: 1px solid rgba(194, 91, 67, 0.4);
  border-radius: 7px; padding: 6px 12px; cursor: pointer; white-space: nowrap;
  transition: all 0.15s ease;
}
.copy-btn:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.copy-btn.copied { background: #3fbf77; border-color: #3fbf77; color: #fff; }

.install-tips { margin-top: 56px; }
.install-tips h2 { font-size: 20px; font-weight: 800; margin-bottom: 20px; }
.tip {
  display: grid; grid-template-columns: 96px 1fr; gap: 18px;
  padding: 18px 0; border-bottom: 1px solid var(--line-soft);
  align-items: start;
}
.tip .step-num {
  font-family: var(--mono); font-weight: 800; color: var(--accent-soft); font-size: 14px; padding-top: 3px;
}
.tip p { font-size: 14.5px; color: var(--text-secondary); }
.tip code {
  font-family: var(--mono); font-size: 13px; background: rgba(255, 255, 255, 0.07);
  padding: 1px 7px; border-radius: 5px; color: var(--accent-soft);
}

/* ---------- 更新日志 ---------- */
.release {
  display: grid; grid-template-columns: 190px 1fr;
  gap: 30px; padding: 34px 0;
  border-bottom: 1px solid var(--line-soft);
}
.release:first-child { border-top: 1px solid var(--line-soft); }
.release-ver .tag {
  font-family: var(--mono); font-weight: 800; font-size: 19px;
}
.release-ver .tag a { text-decoration: none; }
.release-ver .tag a:hover { color: var(--accent-soft); }
.release-ver .date { font-family: var(--mono); font-size: 13px; color: var(--text-muted); margin-top: 6px; }
.release-ver .badge-new {
  display: inline-block; margin-top: 10px;
  font-size: 11.5px; font-weight: 700; color: #fff; background: var(--accent);
  padding: 3px 10px; border-radius: 999px;
}
.release-body ul { list-style: none; }
.release-body li {
  position: relative; padding-left: 22px; margin-bottom: 8px;
  font-size: 15px; color: var(--text-secondary);
}
.release-body li::before {
  content: ""; position: absolute; left: 4px; top: 10px;
  width: 7px; height: 7px; border-radius: 2px; background: var(--accent);
}

/* ---------- 404 ---------- */
.err-wrap { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 60px 24px; }
.err-code { font-family: var(--mono); font-size: clamp(80px, 16vw, 160px); font-weight: 900; line-height: 1; color: transparent; -webkit-text-stroke: 2px var(--accent); }
.err-wrap p { color: var(--text-secondary); margin: 18px 0 30px; }

/* ---------- 滚动显现 ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }

@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* 入场动画（Hero） */
.fade-item { opacity: 0; animation: fadeUp 0.7s ease forwards; }
.fade-item.d1 { animation-delay: 0.08s; }
.fade-item.d2 { animation-delay: 0.18s; }
.fade-item.d3 { animation-delay: 0.3s; }
.fade-item.d4 { animation-delay: 0.44s; }

/* ---------- 响应式 ---------- */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero { text-align: left; }
  .hero-cta { justify-content: flex-start; }
  .caps { grid-template-columns: 1fr; }
  .cap-item, .cap-sm, .cap-wide { grid-column: span 1; }
  .cap-wide { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: 30px; }
  .dl-grid { grid-template-columns: 1fr; }
  .file-row { grid-template-columns: 1fr; gap: 8px; padding: 16px 0; }
  .file-row.head { display: none; }
  .release { grid-template-columns: 1fr; gap: 14px; }
  .footer-grid { flex-direction: column; gap: 28px; }
  .footer-desc { white-space: normal; }
  .nav-links .nav-link-text { display: none; }
  .brand img { width: 48px; height: 48px; }
  .site-nav .container { min-height: 68px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
  .fade-item { opacity: 1; }
}

/* ---------- 账户体系（登录 / 注册） ---------- */
.auth-card {
  max-width: 440px;
  margin: 0 auto;
  background: var(--ink-2);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 32px 30px 28px;
}
.auth-tabs {
  display: flex;
  gap: 4px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 10px;
  padding: 4px;
  margin-bottom: 18px;
}
.auth-tab {
  flex: 1;
  padding: 9px 0;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--text-secondary);
  font-size: 14.5px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease;
}
.auth-tab.active { background: var(--accent); color: #fff; }
.auth-methods {
  display: flex;
  gap: 18px;
  margin-bottom: 22px;
}
.auth-method {
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 14px;
  padding: 0 0 6px;
  cursor: pointer;
  border-bottom: 2px solid transparent;
}
.auth-method.active { color: var(--text-primary); border-bottom-color: var(--accent); }
.auth-field { margin-bottom: 16px; }
.auth-field label {
  display: block;
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 7px;
}
.auth-field input {
  width: 100%;
  box-sizing: border-box;
  background: var(--ink);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--text-primary);
  font-size: 15px;
  height: 44px;
  padding: 0 14px;
  outline: none;
  transition: border-color 0.18s ease;
}
.auth-field input:focus { border-color: rgba(194, 91, 67, 0.55); }
.auth-field input::placeholder { color: var(--text-muted); }
.auth-code-row { display: flex; gap: 10px; align-items: stretch; }
.auth-code-row input { flex: 1; min-width: 0; }
.auth-code-row .btn {
  white-space: nowrap;
  height: 44px;
  padding: 0 18px;
  font-size: 14px;
  font-weight: 700;
}
#auth-submit { width: 100%; margin-top: 6px; height: 44px; padding: 0 30px; font-size: 15px; }
.auth-msg {
  min-height: 20px;
  margin-top: 14px;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--text-secondary);
}
.auth-msg.error { color: #e0605a; }
.auth-msg.ok { color: var(--info); }
.auth-hint {
  margin-top: 14px;
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.6;
}
.auth-link-row {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 10px;
}
.auth-link {
  border: none;
  background: transparent;
  color: var(--accent-soft);
  font-size: 13px;
  cursor: pointer;
  padding: 4px 2px;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.auth-link:hover { color: var(--accent); }
.auth-method:disabled { opacity: 0.4; cursor: not-allowed; }

/* ---------- 账户中心 ---------- */
.acc-block { margin-bottom: 26px; }
.acc-block-title { font-size: 16px; font-weight: 800; margin-bottom: 14px; color: var(--text-primary); }
.acc-rows { margin: 0; }
.acc-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 14px;
}
.acc-row dt { color: var(--text-secondary); }
.acc-row dd { color: var(--text-primary); margin: 0; text-align: right; word-break: break-all; }
.acc-phone-cell { display: flex; align-items: center; justify-content: flex-end; gap: 10px; }
.acc-bind-form { margin-top: 4px; }
.acc-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.acc-stat {
  background: var(--ink);
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  padding: 16px 14px;
  text-align: center;
}
.acc-stat b { display: block; font-size: 22px; font-weight: 900; color: var(--text-primary); margin-bottom: 4px; }
.acc-stat span { font-size: 12.5px; color: var(--text-muted); }
.acc-history { border-top: 1px solid var(--line-soft); }
.acc-history-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 2px;
  border-bottom: 1px solid var(--line-soft);
  font-size: 13.5px;
}
.acc-history-method { color: var(--accent-soft); font-family: var(--mono); font-size: 12.5px; }
.acc-history-time { color: var(--text-secondary); }
.acc-history-empty { color: var(--text-muted); font-size: 13.5px; padding: 12px 0; }
.acc-actions { margin-top: 22px; }
.acc-sec { margin-bottom: 18px; }
.acc-sec-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 6px; }
/* 账户中心表单按钮与输入框同高（44px，与 .auth-field input 一致） */
.acc-sec .btn,
.acc-sec-actions .btn,
.acc-bind-form .btn:not(.btn-sm),
#sec-deact-form .btn {
  height: 44px;
  padding: 0 20px;
  font-size: 14px;
  font-weight: 700;
}
.btn-danger {
  background: transparent;
  border: 1px solid rgba(224, 96, 90, 0.5);
  color: #e0605a;
}
.btn-danger:hover { background: rgba(224, 96, 90, 0.12); }
@media (max-width: 560px) {
  .acc-stats { grid-template-columns: 1fr; }
}

/* ---------- 定价页 ---------- */
.plan-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
  max-width: 860px;
  margin: 0 auto;
}
/* 四档布局（REQ-001）：桌面四列，Pro 高亮；中屏两列，窄屏单列 */
.plan-grid-4 {
  grid-template-columns: repeat(4, 1fr);
  max-width: 1120px;
  gap: 16px;
}
.plan-grid-4 .plan-card { padding: 24px 20px; }
.plan-grid-4 .plan-card h3 { font-size: 17px; }
.plan-grid-4 .plan-price b { font-size: 28px; }
.plan-grid-4 .plan-feats li { font-size: 13px; margin-bottom: 8px; }
@media (max-width: 1080px) {
  .plan-grid-4 { grid-template-columns: repeat(2, 1fr); max-width: 860px; }
}
.plan-card {
  background: var(--ink-2);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 30px 28px;
  display: flex;
  flex-direction: column;
}
.plan-card-pro { border-color: rgba(194, 91, 67, 0.5); }
.plan-card h3 { font-size: 19px; font-weight: 800; margin-bottom: 6px; }
.plan-price { display: flex; align-items: baseline; gap: 6px; margin: 12px 0 4px; }
.plan-price b { font-size: 34px; font-weight: 900; letter-spacing: -0.01em; }
.plan-price span { font-size: 13.5px; color: var(--text-muted); }
.plan-desc { font-size: 13.5px; color: var(--text-secondary); margin-bottom: 18px; }
.plan-feats { list-style: none; padding: 0; margin: 0 0 22px; flex: 1; }
.plan-feats li {
  position: relative;
  padding-left: 20px;
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 10px;
}
.plan-feats li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 8px;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--accent);
}
.plan-card-pro .plan-feats li::before { background: var(--accent); }
.plan-period { display: flex; gap: 4px; margin: 4px 0 6px; }
.plan-period-btn {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text-secondary);
  font-size: 12.5px;
  padding: 5px 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.18s ease;
}
.plan-period-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.plan-card .btn { width: 100%; justify-content: center; }
.plan-order {
  max-width: 440px;
  margin: 34px auto 0;
  background: var(--ink-2);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 22px 26px;
  text-align: center;
  font-size: 14px;
}
.plan-order-ok { font-weight: 800; color: var(--text-primary); margin-bottom: 10px; }
.plan-order code {
  font-family: var(--mono);
  color: var(--accent-soft);
  background: rgba(194, 91, 67, 0.1);
  padding: 2px 8px;
  border-radius: 6px;
}
.plan-order .btn { margin-top: 12px; }
@media (max-width: 720px) {
  .plan-grid { grid-template-columns: 1fr; }
}
