:root {
  --bg: #080b11;
  --bg-soft: #0d131c;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-2: rgba(255, 255, 255, 0.07);
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #eaf0f7;
  --muted: #93a1b3;
  --accent: #34d399;
  --accent-2: #2dd4bf;
  --accent-soft: rgba(52, 211, 153, 0.14);
  --accent-deep: #04231a;
  --radius: 18px;
  --maxw: 1120px;
  --font: "Inter", "Noto Sans SC", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

html { scroll-behavior: smooth; }

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

a { color: inherit; text-decoration: none; }

/* ===== 背景光斑 ===== */
.bg-aurora {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background:
    radial-gradient(1100px 620px at 50% -8%, #0c2a31 0%, transparent 60%),
    var(--bg);
}
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.45;
  animation: float 18s ease-in-out infinite;
}
.blob-1 { width: 480px; height: 480px; background: #0f5f4a; top: -140px; left: -90px; }
.blob-2 { width: 400px; height: 400px; background: #145e75; top: 14%; right: -120px; animation-delay: -6s; }
.blob-3 { width: 340px; height: 340px; background: #1e3a5f; bottom: -100px; left: 28%; animation-delay: -12s; }
@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(34px, -46px) scale(1.08); }
}

/* ===== 导航（全宽，内部居中） ===== */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px);
  background: rgba(8, 11, 17, 0.62);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px clamp(20px, 5vw, 40px);
}
.nav-brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; }
.nav-brand img { border-radius: 9px; }
.nav-links { display: flex; align-items: center; gap: 24px; font-size: 14.5px; }
.nav-links a { color: var(--muted); transition: color 0.2s; }
.nav-links a:hover { color: var(--text); }
.nav-gh {
  padding: 7px 15px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text) !important;
}
.nav-gh:hover { background: var(--surface-2); }

/* ===== 区块通用 ===== */
.section {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(64px, 9vw, 96px) clamp(20px, 5vw, 40px);
}
.section-title {
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 800;
  text-align: center;
  letter-spacing: -0.5px;
}
.section-lead {
  text-align: center;
  color: var(--muted);
  margin: 14px 0 46px;
  font-size: 16px;
}

/* ===== Hero（全宽顶格，内容居中可读） ===== */
.hero {
  width: 100%;
  padding: clamp(56px, 8vw, 100px) clamp(20px, 5vw, 48px) clamp(30px, 4vw, 56px);
  text-align: center;
  position: relative;
}
.hero-inner {
  max-width: 960px;
  margin: 0 auto;
}
.hero-logo {
  display: inline-flex;
  padding: 16px;
  border-radius: 30px;
  background: var(--accent-soft);
  border: 1px solid rgba(52, 211, 153, 0.25);
  box-shadow: 0 0 70px rgba(52, 211, 153, 0.28);
  margin-bottom: 28px;
}
.hero-logo img { border-radius: 18px; display: block; }
.hero-eyebrow {
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 1.5px;
  font-size: 13.5px;
  text-transform: uppercase;
}
.hero-title {
  font-size: clamp(44px, 8.5vw, 80px);
  font-weight: 800;
  line-height: 1.04;
  margin: 16px 0 22px;
  letter-spacing: -1.8px;
}
.grad {
  background: linear-gradient(120deg, var(--accent) 0%, var(--accent-2) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub {
  color: var(--muted);
  font-size: clamp(16px, 2.2vw, 19px);
  max-width: 680px;
  margin: 0 auto;
}
.hero-sub strong { color: var(--text); }

.hero-cta {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin: 36px 0 18px;
}
.hero-meta {
  color: var(--muted);
  font-size: 14px;
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  align-items: center;
}
.dot { opacity: 0.5; }
.version-tag {
  display: inline-block;
  padding: 3px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid rgba(52, 211, 153, 0.25);
  font-weight: 600;
  font-size: 13px;
}

/* ===== 分体下载按钮 ===== */
.dl {
  position: relative;
  display: inline-flex;
  align-items: stretch;
  border-radius: 999px;
  background: linear-gradient(120deg, var(--accent) 0%, var(--accent-2) 100%);
  box-shadow: 0 12px 34px rgba(45, 212, 191, 0.32);
  transition: transform 0.18s ease, box-shadow 0.25s ease;
  font-weight: 600;
}
.dl:hover { transform: translateY(-2px); box-shadow: 0 16px 44px rgba(45, 212, 191, 0.46); }
.dl-main {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  color: var(--accent-deep);
  border-radius: 999px 0 0 999px;
}
.dl-ico { font-size: 18px; line-height: 1; }
.dl-text { display: flex; flex-direction: column; line-height: 1.15; text-align: left; }
.dl-label { font-size: 16px; }
.dl-arch { font-size: 12.5px; opacity: 0.82; font-weight: 600; }
.dl-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  border: none;
  background: transparent;
  color: var(--accent-deep);
  border-left: 1px solid rgba(4, 35, 26, 0.28);
  border-radius: 0 999px 999px 0;
  cursor: pointer;
  transition: background 0.2s;
}
.dl-toggle:hover { background: rgba(4, 35, 26, 0.14); }
.dl-caret { transition: transform 0.25s ease; }
.dl.open .dl-caret { transform: rotate(180deg); }

.dl-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  min-width: 290px;
  background: rgba(13, 19, 28, 0.98);
  border: 1px solid var(--border-strong);
  border-radius: 16px;
  padding: 8px;
  box-shadow: 0 26px 64px rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(16px);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  z-index: 60;
  text-align: left;
}
.dl.open .dl-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.dl-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px;
  border: none;
  background: transparent;
  border-radius: 12px;
  cursor: pointer;
  color: var(--text);
  text-align: left;
  transition: background 0.18s;
}
.dl-item:hover { background: var(--surface-2); }
.dl-item.is-active { background: var(--accent-soft); }
.dl-item.is-disabled { opacity: 0.4; cursor: not-allowed; }
.dl-item.is-disabled:hover { background: transparent; }
.dl-item-ico { font-size: 22px; line-height: 1; }
.dl-item-body { display: flex; flex-direction: column; flex: 1; }
.dl-item-title { font-size: 15px; font-weight: 600; }
.dl-item-sub { font-size: 12.5px; color: var(--muted); }
.dl-item-check { color: var(--accent); font-weight: 700; opacity: 0; }
.dl-item.is-active .dl-item-check { opacity: 1; }

/* ===== 按钮 ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15.5px;
  transition: transform 0.15s ease, box-shadow 0.25s ease, background 0.2s;
  cursor: pointer;
  border: 1px solid transparent;
}
.btn:active { transform: translateY(1px); }
.btn-ghost {
  background: var(--surface);
  border-color: var(--border);
  color: var(--text);
}
.btn-ghost:hover { background: var(--surface-2); }

/* ===== Hero 预览图（更宽、顶格感） ===== */
.hero-preview {
  margin: clamp(40px, 6vw, 64px) auto 0;
  max-width: min(1040px, 96%);
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 36px 90px rgba(0, 0, 0, 0.55);
  background: var(--bg-soft);
}
.hero-preview img { width: 100%; display: block; }

/* ===== 功能卡片 ===== */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(248px, 1fr));
  gap: 18px;
}
.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 24px;
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s, background 0.2s;
}
.card::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: linear-gradient(var(--accent), var(--accent-2));
  opacity: 0;
  transition: opacity 0.2s;
}
.card:hover {
  transform: translateY(-4px);
  border-color: rgba(52, 211, 153, 0.35);
  background: var(--surface-2);
}
.card:hover::before { opacity: 1; }
.card-ico {
  font-size: 28px;
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--accent-soft);
  margin-bottom: 16px;
}
.card h3 { font-size: 18px; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 14.5px; }

/* ===== 截图画廊：1 大图 + 3 小图 ===== */
.shots {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.shot {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-soft);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.shot-hero { grid-column: 1 / -1; }
.shot img {
  width: 100%;
  display: block;
  transition: transform 0.55s ease;
}
.shot:hover {
  transform: translateY(-5px);
  border-color: rgba(52, 211, 153, 0.4);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}
.shot:hover img { transform: scale(1.05); }
.shot figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 30px 18px 14px;
  background: linear-gradient(to top, rgba(7, 10, 16, 0.94), transparent);
  font-size: 14.5px;
  color: var(--text);
  font-weight: 500;
}
.shot-tag {
  display: inline-block;
  margin-right: 8px;
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid rgba(52, 211, 153, 0.3);
  font-size: 12px;
  font-weight: 600;
  vertical-align: middle;
}

/* ===== 下载框 ===== */
.download-box {
  position: relative;
  overflow: hidden;
  text-align: center;
  background: linear-gradient(160deg, rgba(52, 211, 153, 0.09), rgba(45, 212, 191, 0.03));
  border: 1px solid rgba(52, 211, 153, 0.22);
  border-radius: 26px;
  padding: clamp(40px, 6vw, 60px) clamp(22px, 5vw, 40px);
}
.download-glow {
  position: absolute;
  top: -120px; left: 50%;
  transform: translateX(-50%);
  width: 420px; height: 240px;
  background: radial-gradient(closest-side, rgba(52, 211, 153, 0.25), transparent);
  filter: blur(40px);
  pointer-events: none;
}
.download-box > * { position: relative; }
.download-box h2 { font-size: clamp(24px, 4vw, 34px); font-weight: 800; }
.download-box > p { color: var(--muted); margin: 14px 0 30px; }
.download-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  align-items: center;
}
.download-note {
  color: var(--muted);
  font-size: 13.5px;
  margin-top: 24px;
}
.download-note a { color: var(--accent); }
.download-note strong { color: var(--text); }

/* ===== 技术栈 ===== */
.pills { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.pill {
  padding: 9px 18px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 14px;
  color: var(--text);
}
.tech-note { text-align: center; color: var(--muted); margin-top: 22px; font-size: 14.5px; }

/* ===== 页脚 ===== */
.footer {
  border-top: 1px solid var(--border);
  margin-top: 40px;
  padding: 40px clamp(20px, 5vw, 40px);
  background: var(--bg-soft);
}
.footer-inner { max-width: var(--maxw); margin: 0 auto; text-align: center; color: var(--muted); font-size: 14px; }
.footer-brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 700; color: var(--text); font-size: 17px; margin-bottom: 10px; }
.footer a { color: var(--accent); }
.footer-license { margin-top: 6px; }

/* ===== 滚动揭示动画 ===== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.in { opacity: 1; transform: none; }

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

/* ===== 响应式 ===== */
@media (max-width: 760px) {
  .shots { grid-template-columns: 1fr 1fr; }
  .shot-hero { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .nav-links a:not(.nav-gh) { display: none; }
  .shots { grid-template-columns: 1fr; }
  .dl-menu { min-width: 260px; }
}
