:root {
  --bg: #070a12;
  --bg-2: #0b101d;
  --bg-3: #111827;
  --surface: rgba(255, 255, 255, 0.035);
  --surface-2: rgba(255, 255, 255, 0.055);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --text: #eef1f7;
  --text-2: #c6ccda;
  --muted: #8b95a9;
  --accent: #f3c76a;          /* 提瓦特之金 */
  --accent-2: #59b7ff;        /* 地脉之蓝 */
  --accent-grad: linear-gradient(120deg, #f3c76a 0%, #ffde9e 45%, #59b7ff 100%);
  --glow-gold: rgba(243, 199, 106, 0.18);
  --glow-blue: rgba(89, 183, 255, 0.14);
  --radius: 18px;
  --radius-sm: 12px;
  --maxw: 1180px;
  --nav-h: 72px;
  --shadow: 0 20px 60px -18px rgba(0, 0, 0, 0.7);
  --font: "Segoe UI", "PingFang SC", "Microsoft YaHei", "HarmonyOS Sans SC",
    -apple-system, system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ---------- 星空背景 ---------- */
.bg-stars {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  overflow: hidden;
}
.bg-stars .star {
  position: absolute;
  border-radius: 50%;
  background: #fff;
  opacity: 0;
  animation: twinkle var(--dur, 5s) ease-in-out var(--delay, 0s) infinite;
}
@keyframes twinkle {
  0%, 100% { opacity: 0; transform: scale(0.6); }
  50%      { opacity: var(--o, 0.7); transform: scale(1); }
}
.bg-glow {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(720px 620px at 18% -6%, var(--glow-blue), transparent 62%),
    radial-gradient(900px 760px at 92% 8%, var(--glow-gold), transparent 60%),
    radial-gradient(760px 700px at 50% 118%, rgba(80, 60, 140, 0.12), transparent 62%);
}

/* ---------- 布局 ---------- */
.container {
  width: min(var(--maxw), 92%);
  margin: 0 auto;
}
section {
  position: relative;
  padding: 96px 0;
}
.section-head {
  max-width: 720px;
  margin-bottom: 56px;
}
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}
.section-kicker .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
}
.section-title {
  font-size: clamp(30px, 4.4vw, 46px);
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.section-sub {
  color: var(--muted);
  margin-top: 18px;
  font-size: 17px;
}
.grad-text {
  background: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- 导航 ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: background 0.35s, border-color 0.35s, backdrop-filter 0.35s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(7, 10, 18, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.01em;
}
.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: linear-gradient(140deg, rgba(243, 199, 106, 0.18), rgba(89, 183, 255, 0.18));
  border: 1px solid var(--border-strong);
  box-shadow: 0 6px 22px -8px var(--glow-gold);
  flex: none;
}
.brand-mark svg {
  width: 19px;
  height: 19px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-links a {
  color: var(--text-2);
  text-decoration: none;
  font-size: 14.5px;
  padding: 8px 14px;
  border-radius: 9px;
  transition: color 0.2s, background 0.2s;
}
.nav-links a:hover {
  color: var(--text);
  background: var(--surface-2);
}
.nav-links a.active {
  color: var(--text);
  background: var(--surface-2);
}
.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: 10px;
  border: 1px solid var(--border-strong);
  color: var(--text);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.nav-cta:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-1px);
  box-shadow: 0 8px 26px -12px var(--glow-gold);
}
.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  border-radius: 8px;
}
.nav-burger span {
  width: 20px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: 0.25s;
}
.nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 860px) {
  .nav-burger { display: flex; }
  .nav-links {
    position: absolute;
    top: calc(var(--nav-h) + 4px);
    left: 4%;
    right: 4%;
    flex-direction: column;
    align-items: stretch;
    background: rgba(10, 14, 26, 0.98);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 10px;
    gap: 2px;
    box-shadow: var(--shadow);
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
    transition: 0.25s;
  }
  .nav-links.open { opacity: 1; transform: none; pointer-events: auto; }
  .nav-links a { padding: 12px 16px; }
  .nav-cta { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  padding: 120px 0 90px;
  text-align: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  font-size: 13.5px;
  color: var(--text-2);
  margin-bottom: 28px;
  backdrop-filter: blur(8px);
}
.hero-badge .pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 var(--glow-gold);
  animation: pulse 2.4s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 var(--glow-gold); }
  70% { box-shadow: 0 0 0 10px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}
.hero h1 {
  font-size: clamp(40px, 7vw, 78px);
  line-height: 1.04;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.hero .lead {
  max-width: 640px;
  margin: 26px auto 0;
  color: var(--text-2);
  font-size: clamp(16px, 2vw, 19px);
}
.hero .lead b { color: var(--text); font-weight: 600; }
.hero-actions {
  margin-top: 40px;
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  color: var(--bg);
  background: linear-gradient(135deg, #f6cf7e, #efb957);
  box-shadow: 0 14px 40px -14px var(--glow-gold);
  transition: transform 0.2s, box-shadow 0.2s, filter 0.2s;
  border: none;
  cursor: pointer;
}
.btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
  box-shadow: 0 20px 48px -16px var(--glow-gold);
}
.btn svg { width: 17px; height: 17px; }
.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-strong);
  box-shadow: none;
}
.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: 0 12px 30px -14px var(--glow-gold);
}
.hero-stats {
  margin-top: 64px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  max-width: 760px;
  margin-inline: auto;
}
.hstat {
  background: rgba(11, 16, 29, 0.85);
  padding: 22px 20px;
  text-align: left;
}
.hstat .n {
  font-size: 26px;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.01em;
}
.hstat .l { font-size: 13px; color: var(--muted); margin-top: 2px; }
@media (max-width: 620px) {
  .hero-stats { grid-template-columns: 1fr; }
}

/* ---------- 卡片网格 ---------- */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 900px) { .grid-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }

.card {
  position: relative;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, var(--surface), transparent 130%);
  border-radius: var(--radius);
  padding: 26px;
  overflow: hidden;
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow);
}
.card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0;
  transition: opacity 0.25s;
}
.card:hover::before { opacity: 0.7; }
.card .num {
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 12px;
}
.card .tag { color: var(--accent); font-weight: 700; font-size: 13px; margin-bottom: 12px; }
.card h3 { font-size: 19px; font-weight: 700; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 15px; }
.card .pill {
  display: inline-block;
  font-size: 12px;
  color: var(--accent);
  margin-top: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* ---------- 项目卡片（首页） ---------- */
.project-card {
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface), rgba(7, 10, 18, 0.4) 60%);
  padding: 34px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 18px;
  text-decoration: none;
  color: var(--text);
  transition: transform 0.28s, border-color 0.28s, box-shadow 0.28s;
  isolation: isolate;
}
.project-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(420px 260px at var(--gx, 20%) var(--gy, 0%), var(--glow, var(--glow-gold)), transparent 70%);
  opacity: 0;
  transition: opacity 0.3s;
}
.project-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow);
}
.project-card:hover::after { opacity: 1; }
.pc-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.pc-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border-strong);
  background: rgba(255, 255, 255, 0.04);
  flex: none;
}
.pc-icon svg { width: 26px; height: 26px; color: var(--pc-accent, var(--accent)); }
.pc-arrow {
  color: var(--muted);
  transition: transform 0.25s, color 0.25s;
}
.project-card:hover .pc-arrow { transform: translate(3px, -3px); color: var(--accent); }
.pc-body h3 { font-size: 23px; font-weight: 800; letter-spacing: -0.01em; }
.pc-body .zh { font-size: 13.5px; color: var(--muted); margin-top: 3px; }
.pc-body p { color: var(--text-2); font-size: 15px; margin-top: 14px; }
.pc-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  padding-top: 6px;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 12.5px;
  color: var(--text-2);
}
.chip.acc { color: var(--accent); border-color: rgba(243, 199, 106, 0.3); }
.chip.blue { color: var(--accent-2); border-color: rgba(89, 183, 255, 0.3); }

/* ---------- 步骤 ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  counter-reset: step;
}
@media (max-width: 900px) { .steps { grid-template-columns: 1fr; } }
.step {
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  background: var(--surface);
}
.step .no {
  font-size: 46px;
  font-weight: 800;
  color: transparent;
  background: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  line-height: 1;
  opacity: 0.9;
}
.step h4 { font-size: 18px; font-weight: 700; margin-bottom: 8px; margin-top: 14px; }
.step p { color: var(--muted); font-size: 14.5px; }

/* ---------- 特色高亮（产品页） ---------- */
.split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: center;
}
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 30px; } }
.split.flip .visual { order: -1; }
.visual {
  position: relative;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.9), rgba(11, 16, 29, 0.6));
  padding: 30px 26px;
  overflow: hidden;
  min-height: 300px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.visual::before {
  content: "";
  position: absolute;
  inset: -40% -40% auto -40%;
  height: 120%;
  background: radial-gradient(500px 200px at 50% 0%, var(--glow), transparent 70%);
}
.mock-row {
  display: flex;
  gap: 10px;
  height: 34px;
  align-items: center;
  padding: 0 14px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
}
.mock-bar { height: 8px; border-radius: 4px; background: rgba(255, 255, 255, 0.12); }
.mock-g .mock-bar { background: linear-gradient(90deg, var(--accent), rgba(243, 199, 106, 0.25)); }
.mock-b .mock-bar { background: linear-gradient(90deg, var(--accent-2), rgba(89, 183, 255, 0.25)); }

/* ---------- CTA ---------- */
.cta {
  text-align: center;
  padding: 120px 0;
}
.cta-inner {
  position: relative;
  border: 1px solid var(--border-strong);
  border-radius: 26px;
  padding: 72px 26px;
  overflow: hidden;
  background: radial-gradient(600px 360px at 50% 0%, rgba(243, 199, 106, 0.12), transparent 70%);
}
.cta h2 { font-size: clamp(28px, 4.4vw, 44px); font-weight: 800; letter-spacing: -0.02em; }
.cta p { color: var(--muted); max-width: 560px; margin: 16px auto 34px; }
.cta .actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- 页脚 ---------- */
.footer {
  border-top: 1px solid var(--border);
  padding: 44px 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 13.5px;
}
.footer .ft-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}
.footer .ft-links a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}
.footer .ft-links a:hover { color: var(--accent); }

/* ---------- 备案（ICP / 公网安备） ---------- */
.footer-beian {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}
.footer-beian .container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 26px;
  flex-wrap: wrap;
}
.footer-beian a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
  transition: color 0.2s;
}
.footer-beian a:hover { color: var(--accent); }
.beian-icon {
  width: 15px;
  height: 15px;
  object-fit: contain;
  flex: none;
  filter: grayscale(0.4);
  opacity: 0.85;
}
.footer-beian a:hover .beian-icon { filter: none; opacity: 1; }

/* ---------- 版本 / 下载 ---------- */
code {
  font-family: ui-monospace, Consolas, "Courier New", monospace;
  font-size: 0.92em;
  padding: 1px 5px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  color: var(--text);
}

.ver-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 22px;
}
.ver-row.left { justify-content: flex-start; }
.chip.ver {
  color: var(--accent);
  border-color: rgba(243, 199, 106, 0.32);
  background: rgba(243, 199, 106, 0.07);
  font-weight: 700;
}
.chip.ver.blue {
  color: var(--accent-2);
  border-color: rgba(89, 183, 255, 0.32);
  background: rgba(89, 183, 255, 0.07);
}
.chip.ver .dot-live {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 8px currentColor;
}

.dl-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
@media (max-width: 860px) { .dl-grid { grid-template-columns: 1fr; } }

.dl-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.dl-head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.dl-head .name { font-size: 18px; font-weight: 800; }
.dl-head .date { font-size: 12.5px; color: var(--muted); margin-left: auto; }

.dl-files { display: grid; gap: 10px; }
.dl-file {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 15px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  text-decoration: none;
  color: var(--text-2);
  transition: transform 0.22s, border-color 0.22s, background 0.22s;
}
.dl-file:hover {
  transform: translateX(3px);
  border-color: var(--border-strong);
  background: var(--surface-2);
}
.dl-file .ftype {
  flex: none;
  font-size: 11.5px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 6px;
  color: var(--accent);
  border: 1px solid rgba(243, 199, 106, 0.28);
  background: rgba(243, 199, 106, 0.06);
}
.dl-file.blue .ftype {
  color: var(--accent-2);
  border-color: rgba(89, 183, 255, 0.28);
  background: rgba(89, 183, 255, 0.06);
}
.dl-file .fname {
  font-family: ui-monospace, Consolas, "Courier New", monospace;
  font-size: 12.5px;
  color: var(--text);
  overflow-wrap: anywhere;
}
.dl-file .fsize {
  margin-left: auto;
  flex: none;
  font-size: 12.5px;
  color: var(--muted);
  white-space: nowrap;
}
.dl-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  font-size: 13px;
  color: var(--muted);
}
.dl-meta a { color: var(--accent-2); }
.dl-meta a:hover { color: var(--accent); }

.dl-note {
  margin-top: 22px;
  display: grid;
  gap: 10px;
  font-size: 13.5px;
  color: var(--muted);
}
.dl-note p { font-size: inherit; color: inherit; }
.dl-note b { color: var(--text-2); }

/* ---------- 动画 ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.22, 0.6, 0.36, 1),
    transform 0.7s cubic-bezier(0.22, 0.6, 0.36, 1);
  will-change: opacity, transform;
}
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}