/* ==========================================================================
   Hydra Launcher 官网 全局样式
   设计语言：单色扁平现代风（取自品牌 Logo：近黑 #09090B + 白）
   域名：www.hydralauncher.cn
   ========================================================================== */

/* ---------- 设计令牌 ---------- */
:root {
  --bg: #FFFFFF;
  --bg-soft: #FAFAFA;
  --surface: #FFFFFF;
  --surface-2: #F4F4F5;
  --surface-3: #E4E4E7;
  --border: #E4E4E7;
  --border-strong: #D4D4D8;
  --text-1: #09090B;
  --text-2: #52525B;
  --text-3: #71717A;
  --text-4: #A1A1AA;
  --white: #FFFFFF;

  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 8px;

  --container: 1160px;
  --header-h: 68px;

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", "Helvetica Neue",
    Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas,
    "Liberation Mono", monospace;

  --ease: cubic-bezier(0.25, 0.6, 0.3, 1);
}

/* ---------- 重置 ---------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text-2);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body.is-locked {
  overflow: hidden;
}

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

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

ul,
ol {
  list-style: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

::selection {
  background: var(--text-1);
  color: var(--bg);
}

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

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg);
}
::-webkit-scrollbar-thumb {
  background: #D4D4D8;
  border-radius: 5px;
  border: 2px solid var(--bg);
}
::-webkit-scrollbar-thumb:hover {
  background: #A1A1AA;
}

/* ---------- 布局基础 ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 200;
  background: var(--text-1);
  color: var(--bg);
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  transition: top 0.2s var(--ease);
}
.skip-link:focus {
  top: 12px;
}

/* ---------- 顶部导航 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.86);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.brand-logo {
  width: 36px;
  height: 36px;
  border-radius: 9px;
}

.brand-name {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-1);
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.brand-name em {
  font-style: normal;
  font-weight: 500;
  color: var(--text-3);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 2px;
}

.site-nav a {
  display: block;
  padding: 8px 14px;
  font-size: 14.5px;
  color: var(--text-2);
  border-radius: var(--radius-sm);
  transition: color 0.18s var(--ease), background 0.18s var(--ease);
}

.site-nav a:hover {
  color: var(--text-1);
  background: var(--surface-2);
}

.site-nav a[aria-current="page"] {
  color: var(--text-1);
  font-weight: 600;
}

.site-nav a[aria-current="page"]::after {
  content: "";
  display: block;
  height: 2px;
  width: 16px;
  margin: 2px auto 0;
  background: var(--text-1);
  border-radius: 1px;
}

.nav-cta {
  margin-left: 14px;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  align-items: center;
  justify-content: center;
  color: var(--text-1);
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 46px;
  padding: 0 24px;
  border-radius: var(--radius-md);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  white-space: nowrap;
  transition: background 0.18s var(--ease), border-color 0.18s var(--ease),
    color 0.18s var(--ease);
}

.btn .icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.btn-primary {
  background: var(--text-1);
  color: var(--bg);
}
.btn-primary:hover {
  background: #27272A;
}

.btn-secondary {
  background: transparent;
  color: var(--text-1);
  border-color: var(--border-strong);
}
.btn-secondary:hover {
  border-color: #A1A1AA;
  background: var(--surface-2);
}

.btn-lg {
  height: 56px;
  padding: 0 32px;
  font-size: 16px;
  border-radius: 14px;
}

.btn-sm {
  height: 38px;
  padding: 0 16px;
  font-size: 13.5px;
  border-radius: var(--radius-sm);
}

.btn-block {
  width: 100%;
}

/* ---------- 徽标 / 标签 ---------- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 32px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  font-size: 13px;
  color: var(--text-2);
  white-space: nowrap;
}
.chip .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-1);
}

.tag {
  display: inline-block;
  padding: 3px 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  border-radius: 6px;
  background: var(--surface-3);
  border: 1px solid var(--border-strong);
  color: var(--text-2);
}
.tag-solid {
  background: var(--text-1);
  color: var(--bg);
  border-color: var(--text-1);
}

/* ---------- 区块结构 ---------- */
.section {
  padding: 96px 0;
}

.section-alt {
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-head {
  max-width: 680px;
  margin-bottom: 56px;
}

.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--text-2);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--text-1);
  border-radius: 2px;
}
.eyebrow span {
  color: var(--text-4);
  font-weight: 500;
  letter-spacing: 0.12em;
}

.section-head h2 {
  font-size: clamp(1.8rem, 3.4vw, 2.4rem);
  font-weight: 700;
  color: var(--text-1);
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin-bottom: 18px;
}

.section-head p {
  font-size: 16.5px;
  color: var(--text-2);
}

/* ---------- 通用卡片 ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.card:hover {
  border-color: var(--border-strong);
  background: var(--surface-2);
}

.card-icon {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-md);
  background: var(--surface-3);
  border: 1px solid var(--border-strong);
  display: grid;
  place-items: center;
  color: var(--text-1);
  margin-bottom: 20px;
}
.card-icon .icon {
  width: 22px;
  height: 22px;
}

.card h3 {
  font-size: 17.5px;
  font-weight: 650;
  color: var(--text-1);
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.card p {
  font-size: 14.5px;
  color: var(--text-2);
}

/* ---------- 首页 Hero ---------- */
.hero {
  position: relative;
  padding: 120px 0 96px;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(
    ellipse 90% 70% at 50% 0%,
    #000 0%,
    transparent 68%
  );
  mask-image: radial-gradient(
    ellipse 90% 70% at 50% 0%,
    #000 0%,
    transparent 68%
  );
  opacity: 0.5;
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: 64px;
  align-items: center;
}

.hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 26px;
}

.hero h1 {
  font-size: clamp(2.5rem, 5.2vw, 3.75rem);
  font-weight: 750;
  line-height: 1.14;
  letter-spacing: -0.025em;
  color: var(--text-1);
  margin-bottom: 22px;
}

.hero-lead {
  font-size: 17px;
  line-height: 1.85;
  color: var(--text-2);
  max-width: 540px;
  margin-bottom: 34px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 30px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 22px;
  font-size: 13.5px;
  color: var(--text-3);
}

.hero-meta .item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.hero-meta .item .icon {
  width: 15px;
  height: 15px;
}
.hero-meta .mono {
  font-family: var(--mono);
  color: var(--text-2);
}

/* 应用界面展示框 */
.hero-visual {
  position: relative;
}

.visual-frame {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 20px;
  padding: 14px;
}

.visual-frame svg {
  width: 100%;
  height: auto;
  border-radius: 10px;
}

.visual-caption {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 16px;
  font-size: 13px;
  color: var(--text-3);
}
.visual-caption .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-1);
}

/* ---------- 数据统计带 ---------- */
.stats-band {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-soft);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.stat {
  padding: 40px 24px;
  text-align: center;
  position: relative;
}

.stat + .stat::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 48px;
  background: var(--border);
}

.stat-number {
  font-size: clamp(2rem, 3.6vw, 2.7rem);
  font-weight: 750;
  letter-spacing: -0.02em;
  color: var(--text-1);
  font-variant-numeric: tabular-nums;
  line-height: 1.15;
}

.stat-number .unit {
  font-size: 0.55em;
  font-weight: 600;
  margin-left: 2px;
  color: var(--text-3);
}

.stat-label {
  margin-top: 8px;
  font-size: 13.5px;
  color: var(--text-3);
  letter-spacing: 0.04em;
}

/* ---------- 功能特性网格 ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.feature-grid .card {
  position: relative;
}

.feature-index {
  position: absolute;
  top: 26px;
  right: 26px;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--text-4);
  letter-spacing: 0.06em;
}

/* ---------- 使用场景 ---------- */
.scenario {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  padding: 56px 0;
}

.scenario + .scenario {
  border-top: 1px solid var(--border);
}

.scenario:nth-child(even) .scenario-visual {
  order: -1;
}

.scenario-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--text-3);
  margin-bottom: 16px;
}
.scenario-tag b {
  font-family: var(--mono);
  font-weight: 600;
  color: var(--text-1);
  font-size: 14px;
}

.scenario h3 {
  font-size: clamp(1.35rem, 2.2vw, 1.7rem);
  font-weight: 700;
  color: var(--text-1);
  letter-spacing: -0.015em;
  margin-bottom: 14px;
  line-height: 1.3;
}

.scenario p {
  font-size: 15.5px;
  margin-bottom: 18px;
}

.check-list {
  display: grid;
  gap: 10px;
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14.5px;
  color: var(--text-2);
}

.check-list .icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 5px;
  color: var(--text-1);
}

/* ---------- 快速上手步骤 ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  counter-reset: step;
}

.step {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
}

.step-num {
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 600;
  color: var(--bg);
  background: var(--text-1);
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  display: grid;
  place-items: center;
  margin-bottom: 20px;
}

.step h3 {
  font-size: 17px;
  font-weight: 650;
  color: var(--text-1);
  margin-bottom: 10px;
}

.step p {
  font-size: 14.5px;
}

/* ---------- CTA 横幅 ---------- */
.cta-band {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border-strong);
  border-radius: 24px;
  background: var(--surface);
  padding: 72px 48px;
  text-align: center;
}

.cta-band::before {
  content: "";
  position: absolute;
  right: -140px;
  top: 50%;
  transform: translateY(-50%);
  width: 480px;
  height: 480px;
  background: url("../assets/img/logo.png") center / contain no-repeat;
  opacity: 0.05;
  pointer-events: none;
}

.cta-band h2 {
  font-size: clamp(1.7rem, 3.2vw, 2.3rem);
  font-weight: 750;
  color: var(--text-1);
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}

.cta-band p {
  max-width: 560px;
  margin: 0 auto 32px;
  font-size: 15.5px;
}

.cta-band .hero-meta {
  justify-content: center;
  margin-top: 26px;
}

/* ---------- GitHub 仓库信息卡 ---------- */
.repo-panel {
  padding: 26px;
}

.repo-head {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-1);
  margin-bottom: 14px;
}

.repo-path {
  font-family: var(--mono);
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text-1);
}

.repo-desc {
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-3);
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 18px;
}

.repo-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 18px;
}

.rs {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.rs-k {
  font-size: 12.5px;
  color: var(--text-3);
}

.rs-v {
  font-family: var(--mono);
  font-size: 16px;
  font-weight: 700;
  color: var(--text-1);
}

.lang-bar {
  display: flex;
  width: 100%;
  height: 8px;
  border-radius: 4px;
  overflow: hidden;
  background: var(--bg);
}

.lang-bar span {
  display: block;
  height: 100%;
}

.lang-bar span:nth-child(1) { background: #09090B; }
.lang-bar span:nth-child(2) { background: #52525B; }
.lang-bar span:nth-child(3) { background: #A1A1AA; }
.lang-bar span:nth-child(4) { background: #D4D4D8; }

.lang-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-top: 10px;
  font-size: 11.5px;
  color: var(--text-3);
}

.lang-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.lang-legend i {
  width: 8px;
  height: 8px;
  border-radius: 2px;
  display: inline-block;
}

.lang-legend .l1 { background: #09090B; }
.lang-legend .l2 { background: #52525B; }
.lang-legend .l3 { background: #A1A1AA; }

.repo-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

/* ---------- 四列步骤 ---------- */
.steps-4 {
  grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 1024px) {
  .steps-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .steps-4 {
    grid-template-columns: 1fr;
  }
}

/* ---------- 子页头部 ---------- */
.page-hero {
  position: relative;
  padding: 88px 0 64px;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(
    ellipse 80% 90% at 60% 0%,
    #000 0%,
    transparent 70%
  );
  mask-image: radial-gradient(
    ellipse 80% 90% at 60% 0%,
    #000 0%,
    transparent 70%
  );
  opacity: 0.5;
  pointer-events: none;
}

.breadcrumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13px;
  color: var(--text-3);
  margin-bottom: 22px;
  position: relative;
}

.breadcrumbs a:hover {
  color: var(--text-1);
}

.breadcrumbs .sep {
  color: var(--text-4);
}

.breadcrumbs .current {
  color: var(--text-2);
}

.page-hero h1 {
  font-size: clamp(2.1rem, 4.2vw, 3rem);
  font-weight: 750;
  letter-spacing: -0.025em;
  color: var(--text-1);
  line-height: 1.2;
  margin-bottom: 18px;
  position: relative;
}

.page-hero .lead {
  font-size: 16.5px;
  max-width: 640px;
  position: relative;
}

/* ---------- 功能详情（分栏） ---------- */
.feature-detail {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 64px;
  align-items: center;
  padding: 64px 0;
}

.feature-detail + .feature-detail {
  border-top: 1px solid var(--border);
}

.feature-detail:nth-of-type(even) .fd-visual {
  order: -1;
}

.fd-visual {
  position: relative;
}

.fd-panel {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 18px;
  padding: 18px;
}

.fd-panel svg {
  width: 100%;
  height: auto;
  border-radius: 10px;
}

.feature-detail h3 {
  font-size: clamp(1.3rem, 2vw, 1.6rem);
  font-weight: 700;
  color: var(--text-1);
  letter-spacing: -0.015em;
  margin-bottom: 14px;
  line-height: 1.35;
}

.feature-detail .desc {
  font-size: 15.5px;
  margin-bottom: 20px;
}

/* ---------- 技术栈 ---------- */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}

.tech-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px 18px;
  text-align: center;
  transition: border-color 0.2s var(--ease);
}
.tech-item:hover {
  border-color: var(--border-strong);
}

.tech-item .name {
  font-family: var(--mono);
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text-1);
}

.tech-item .role {
  margin-top: 6px;
  font-size: 12.5px;
  color: var(--text-3);
}

/* ---------- 下载页 ---------- */
.version-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 28px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 18px;
  padding: 26px 30px;
  margin-bottom: 24px;
}

.version-banner .v-num {
  font-family: var(--mono);
  font-size: 26px;
  font-weight: 700;
  color: var(--text-1);
  letter-spacing: -0.01em;
}

.version-banner .v-info {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  font-size: 13.5px;
  color: var(--text-3);
}

.version-banner .v-info .item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.version-banner .v-info .icon {
  width: 15px;
  height: 15px;
}

.version-banner .spacer {
  flex: 1;
}

.platform-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.platform-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px 28px;
  transition: border-color 0.2s var(--ease);
}
.platform-card:hover {
  border-color: var(--border-strong);
}

.platform-card .card-icon {
  margin-bottom: 18px;
}

.platform-card h3 {
  font-size: 19px;
  font-weight: 700;
  color: var(--text-1);
  margin-bottom: 4px;
}

.platform-card .req {
  font-size: 13px;
  color: var(--text-3);
  margin-bottom: 18px;
}

.platform-card .file {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--text-3);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 9px 12px;
  margin-bottom: 22px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.platform-card .btn {
  margin-top: auto;
}

.recommend-flag {
  align-self: flex-start;
  margin-bottom: 14px;
}

/* ---------- 表格 ---------- */
.table-wrap {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface);
}

.table-wrap table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.table-wrap th {
  text-align: left;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--text-3);
  padding: 14px 20px;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.table-wrap td {
  padding: 15px 20px;
  border-bottom: 1px solid var(--border);
  color: var(--text-2);
  vertical-align: top;
}

.table-wrap tr:last-child td {
  border-bottom: none;
}

.table-wrap tbody tr:hover td {
  background: var(--surface-2);
}

.table-wrap .mono {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--text-1);
}

.table-wrap a {
  color: var(--text-1);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--text-4);
}
.table-wrap a:hover {
  text-decoration-color: var(--text-1);
}

/* ---------- 安装指南 ---------- */
.install-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.install-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px;
}

.install-card h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 650;
  color: var(--text-1);
  margin-bottom: 16px;
}
.install-card h3 .icon {
  width: 18px;
  height: 18px;
}

.install-card ol {
  counter-reset: inst;
  display: grid;
  gap: 12px;
}

.install-card ol li {
  counter-increment: inst;
  display: flex;
  gap: 12px;
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.65;
}

.install-card ol li::before {
  content: counter(inst);
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-3);
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  min-width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  margin-top: 2px;
}

/* ---------- 更新日志 ---------- */
.changelog-note {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-top: 24px;
}

/* ---------- 时间线 ---------- */
.timeline {
  position: relative;
  max-width: 800px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 6px;
  bottom: 6px;
  width: 1px;
  background: var(--border-strong);
}

.tl-item {
  position: relative;
  padding: 0 0 44px 40px;
}
.tl-item:last-child {
  padding-bottom: 0;
}

.tl-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 11px;
  height: 11px;
  background: var(--bg);
  border: 2px solid var(--text-1);
  border-radius: 3px;
}

.tl-item .tl-date {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--text-3);
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}

.tl-item h3 {
  font-size: 17px;
  font-weight: 650;
  color: var(--text-1);
  margin-bottom: 8px;
}

.tl-item p {
  font-size: 14.5px;
}

/* ---------- 路线图 ---------- */
.roadmap-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.roadmap-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
}

.roadmap-card .phase {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--text-3);
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}

.roadmap-card h3 {
  font-size: 17px;
  font-weight: 650;
  color: var(--text-1);
  margin-bottom: 16px;
}

.roadmap-card .check-list {
  gap: 12px;
}

/* ---------- FAQ 手风琴 ---------- */
.faq-list {
  display: grid;
  gap: 12px;
  max-width: 860px;
}

.acc-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: border-color 0.2s var(--ease);
}

.acc-item.is-open {
  border-color: var(--border-strong);
}

.acc-head {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 19px 24px;
  text-align: left;
  font-size: 15.5px;
  font-weight: 600;
  color: var(--text-1);
  letter-spacing: -0.005em;
}

.acc-head:hover {
  color: var(--text-1);
}

.acc-head .acc-icon {
  position: relative;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}
.acc-head .acc-icon::before,
.acc-head .acc-icon::after {
  content: "";
  position: absolute;
  background: var(--text-2);
  transition: transform 0.25s var(--ease), opacity 0.25s var(--ease);
}
.acc-head .acc-icon::before {
  left: 0;
  top: 7px;
  width: 16px;
  height: 2px;
}
.acc-head .acc-icon::after {
  left: 7px;
  top: 0;
  width: 2px;
  height: 16px;
}
.acc-item.is-open .acc-icon::after {
  transform: rotate(90deg);
  opacity: 0;
}

.acc-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.32s var(--ease);
}

.acc-inner {
  padding: 0 24px 22px;
  font-size: 14.5px;
  line-height: 1.8;
  color: var(--text-2);
}

.acc-inner a {
  color: var(--text-1);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--text-4);
}

/* ---------- 社区/支持渠道 ---------- */
.channel-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.channel-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.channel-card:hover {
  border-color: var(--border-strong);
  background: var(--surface-2);
}

.channel-card .card-icon {
  width: 40px;
  height: 40px;
  margin-bottom: 10px;
}

.channel-card h3 {
  font-size: 15.5px;
  font-weight: 650;
  color: var(--text-1);
}

.channel-card p {
  font-size: 13.5px;
  color: var(--text-3);
}

.channel-card .go {
  margin-top: 12px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-1);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.channel-card .go .icon {
  width: 14px;
  height: 14px;
  transition: transform 0.18s var(--ease);
}
.channel-card:hover .go .icon {
  transform: translateX(3px);
}

/* ---------- 下载弹窗 ---------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(9, 9, 11, 0.45);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.24s var(--ease);
}

.modal-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
}
button { outline: none } 
.modal {
  width: 100%;
  max-width: 660px;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  background: var(--bg-soft);
  border: 1px solid var(--border-strong);
  border-radius: 22px;
  transform: translateY(14px) scale(0.985);
  transition: transform 0.26s var(--ease);
}

.modal-overlay.is-open .modal {
  transform: none;
}

.modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 28px 30px 0;
}

.modal-head h2 {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 21px;
  font-weight: 700;
  color: var(--text-1);
  letter-spacing: -0.015em;
}

.modal-head h2 img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
}

.modal-sub {
  margin-top: 10px;
  font-size: 13.5px;
  color: var(--text-3);
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
}

.modal-close {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  color: var(--text-2);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition: color 0.18s, border-color 0.18s;
}
.modal-close:hover {
  color: var(--text-1);
  border-color: #A1A1AA;
}

.modal-body {
  padding: 26px 30px 30px;
}

.platform-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.plat-btn {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  text-align: left;
  transition: border-color 0.18s var(--ease), background 0.18s var(--ease);
}

.plat-btn:hover {
  border-color: #A1A1AA;
  background: var(--surface-2);
}

.plat-btn .icon {
  width: 22px;
  height: 22px;
  color: var(--text-1);
  margin-bottom: 10px;
}

.plat-btn .p-name {
  font-size: 15px;
  font-weight: 650;
  color: var(--text-1);
}

.plat-btn .p-meta {
  font-size: 12px;
  color: var(--text-3);
}

.plat-btn .p-flag {
  font-size: 11px;
  font-weight: 600;
  color: var(--bg);
  background: var(--text-1);
  padding: 2px 7px;
  border-radius: 4px;
  margin-bottom: 10px;
}

.modal-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 26px 0;
  color: var(--text-4);
  font-size: 12px;
  letter-spacing: 0.1em;
}
.modal-divider::before,
.modal-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}

.qr-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.qr-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
}

.qr-item .qr-img {
  width: 160px;
  height: 160px;
  background: var(--white);
  border-radius: var(--radius-sm);
  padding: 8px;
  flex-shrink: 0;
   margin:0 auto;
  display: block;
}
.qr-item .qr-img img {
  width: 100%;
  height: 100%;
 margin:0 auto;
  display: block;
}

.qr-item .qr-info {
  min-width: 0;
  text-align: center;
}

.qr-item .qr-title {
  font-size: 14.5px;
  font-weight: 650;
  color: var(--text-1);
  margin-bottom: 4px;
}

.qr-item .qr-desc {
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--text-3);
}

.modal-foot {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  font-size: 12.5px;
  color: var(--text-4);
  line-height: 1.7;
}

.modal-foot a {
  color: var(--text-2);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.modal-foot a:hover {
  color: var(--text-1);
}

/* ---------- 页脚 ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-soft);
  margin-top: 96px;
}

.footer-main {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding: 64px 0 48px;
}

.footer-brand .brand {
  margin-bottom: 18px;
}

.footer-brand p {
  font-size: 14px;
  color: var(--text-3);
  max-width: 340px;
  margin-bottom: 22px;
}

.footer-social {
  display: flex;
  gap: 10px;
}

.footer-social a {
  width: 40px;
  height: 40px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  display: grid;
  place-items: center;
  color: var(--text-2);
  transition: color 0.18s, border-color 0.18s;
}
.footer-social a:hover {
  color: var(--text-1);
  border-color: #A1A1AA;
}
.footer-social .icon {
  width: 18px;
  height: 18px;
}

.footer-col h4 {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--text-1);
  margin-bottom: 18px;
}

.footer-col ul {
  display: grid;
  gap: 12px;
}

.footer-col a {
  font-size: 14px;
  color: var(--text-3);
  transition: color 0.18s;
}
.footer-col a:hover {
  color: var(--text-1);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 24px 0;
}

.footer-bottom .inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  font-size: 12.5px;
  color: var(--text-4);
}

.footer-bottom a {
  color: var(--text-3);
}
.footer-bottom a:hover {
  color: var(--text-1);
}

.footer-bottom .links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}

/* ---------- 返回顶部 ---------- */
.back-top {
  position: fixed;
  right: 26px;
  bottom: 26px;
  z-index: 80;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  color: var(--text-2);
  display: grid;
  place-items: center;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.22s var(--ease), transform 0.22s var(--ease),
    color 0.18s, border-color 0.18s;
}
.back-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}
.back-top:hover {
  color: var(--text-1);
  border-color: #A1A1AA;
}
.back-top .icon {
  width: 18px;
  height: 18px;
}

/* ---------- 通用工具 ---------- */
.mono {
  font-family: var(--mono);
}

.text-link {
  color: var(--text-1);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: var(--text-4);
  transition: text-decoration-color 0.18s;
}
.text-link:hover {
  text-decoration-color: var(--text-1);
}

.note-box {
  display: flex;
  gap: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  font-size: 13.5px;
  color: var(--text-3);
  line-height: 1.75;
}
.note-box .icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 3px;
  color: var(--text-2);
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

/* ---------- 入场动效 ---------- */
/* 仅在 JS 可用时才隐藏待入场元素，保证无 JS 环境（含部分爬虫）内容完整可见 */
html.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

html.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

.reveal-d1 {
  transition-delay: 0.08s;
}
.reveal-d2 {
  transition-delay: 0.16s;
}
.reveal-d3 {
  transition-delay: 0.24s;
}

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
  .hero-grid {
    gap: 44px;
  }
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .tech-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .channel-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-main {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
}

@media (max-width: 880px) {
  .section {
    padding: 72px 0;
  }
  .hero {
    padding: 88px 0 72px;
  }
  .hero-grid,
  .scenario,
  .feature-detail {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .scenario:nth-child(even) .scenario-visual {
    order: 0;
  }
  .feature-detail:nth-of-type(even) .fd-visual {
    order: 0;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .stat + .stat::before {
    display: none;
  }
  .steps,
  .platform-grid,
  .install-grid,
  .roadmap-grid {
    grid-template-columns: 1fr;
  }
  .grid-2 {
    grid-template-columns: 1fr;
  }
  .cta-band {
    padding: 56px 24px;
  }
  .version-banner {
    align-items: flex-start;
    flex-direction: column;
  }
  .version-banner .spacer {
    display: none;
  }

  /* 移动端导航 */
  .nav-toggle {
    display: flex;
  }
  .site-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 14px 24px 24px;
    display: none;
  }
  .site-nav.is-open {
    display: flex;
  }
  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
  }
  .site-nav a {
    padding: 13px 14px;
    font-size: 15.5px;
  }
  .site-nav a[aria-current="page"]::after {
    display: none;
  }
  .nav-cta {
    margin: 12px 0 0;
  }
  .nav-cta .btn {
    width: 100%;
  }
}

@media (max-width: 640px) {
  .container {
    padding: 0 18px;
  }
  .feature-grid {
    grid-template-columns: 1fr;
  }
  .tech-grid,
  .channel-grid,
  .footer-main {
    grid-template-columns: 1fr;
  }
  .qr-row {
    grid-template-columns: 1fr;
  }
  .platform-row {
    grid-template-columns: 1fr;
  }
  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }
  .stat {
    padding: 28px 12px;
  }
  .hero-actions .btn {
    width: 100%;
  }
  .modal-head,
  .modal-body {
    padding-left: 20px;
    padding-right: 20px;
  }
  .table-wrap {
    overflow-x: auto;
  }
  .table-wrap table {
    min-width: 560px;
  }
}

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

