/* AIMA 官网样式：深色科技风 + 玻璃质感，无外部依赖 */
:root {
  --bg: #070b14;
  --bg-soft: #0c1220;
  --panel: rgba(255, 255, 255, 0.045);
  --panel-strong: rgba(255, 255, 255, 0.075);
  --line: rgba(140, 170, 220, 0.18);
  --line-strong: rgba(140, 170, 220, 0.32);
  --text: #e8eefb;
  --text-dim: #9fb0cb;
  --text-faint: #6d7f9c;
  --brand: #3b82f6;
  --brand-bright: #6aa6ff;
  --cyan: #22d3ee;
  --ok: #34d399;
  --warn: #fbbf24;
  --radius: 16px;
  --shadow: 0 24px 60px -30px rgba(6, 20, 48, 0.9);
  --mono: 'Cascadia Mono', 'JetBrains Mono', Consolas, monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background:
    radial-gradient(900px 520px at 12% -8%, rgba(59, 130, 246, 0.22) 0%, rgba(7, 11, 20, 0) 62%),
    radial-gradient(760px 460px at 88% 4%, rgba(34, 211, 238, 0.14) 0%, rgba(7, 11, 20, 0) 58%),
    var(--bg);
  color: var(--text);
  font-family: 'PingFang SC', 'Microsoft YaHei', -apple-system, 'Segoe UI', sans-serif;
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

.wrap { width: min(1120px, calc(100% - 48px)); margin: 0 auto; }

/* ---------- 顶栏 ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px) saturate(150%);
  background: rgba(7, 11, 20, 0.72);
  border-bottom: 1px solid var(--line);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  height: 64px;
}

.brand { display: flex; align-items: center; gap: 10px; font-weight: 650; letter-spacing: 0.3px; }

.brand-mark {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--brand-bright), #1d4ed8 70%);
  box-shadow: 0 8px 20px -8px rgba(59, 130, 246, 0.9);
  display: grid;
  place-items: center;
  font-size: 14px;
  font-weight: 700;
}

.brand-sub { color: var(--text-faint); font-size: 12px; font-weight: 400; margin-left: 2px; }

.nav { display: flex; align-items: center; gap: 22px; font-size: 13.5px; color: var(--text-dim); }
.nav a:hover { color: var(--text); }

.nav-cta {
  padding: 8px 16px;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  background: var(--panel);
  color: var(--text);
}

.nav-cta:hover { background: var(--panel-strong); }

/* ---------- 首屏 ---------- */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 48px;
  align-items: center;
  padding: 76px 0 64px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--text-dim);
  font-size: 12px;
  letter-spacing: 0.4px;
}

.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 10px var(--ok); }

.hero h1 {
  margin: 20px 0 16px;
  font-size: clamp(30px, 4.2vw, 46px);
  line-height: 1.24;
  letter-spacing: -0.5px;
  font-weight: 680;
}

.hero h1 em {
  font-style: normal;
  background: linear-gradient(100deg, var(--brand-bright), var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p.lead { margin: 0 0 28px; color: var(--text-dim); font-size: 15.5px; max-width: 34em; }

.actions { display: flex; flex-wrap: wrap; gap: 12px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 22px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 550;
  border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
  cursor: pointer;
  font-family: inherit;
}

.btn-primary {
  background: linear-gradient(135deg, var(--brand-bright), #2563eb 72%);
  color: #fff;
  box-shadow: 0 16px 34px -16px rgba(59, 130, 246, 0.95);
}

.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 20px 40px -16px rgba(59, 130, 246, 1); }

.btn-ghost { border-color: var(--line-strong); background: var(--panel); color: var(--text); }
.btn-ghost:hover { background: var(--panel-strong); }

.btn[disabled] { opacity: 0.55; cursor: not-allowed; transform: none; box-shadow: none; }

.hero-note { margin: 18px 0 0; color: var(--text-faint); font-size: 12.5px; }

/* 首屏右侧面板 */
.env-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--panel-strong), var(--panel));
  box-shadow: var(--shadow);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.env-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 13px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(7, 12, 24, 0.6);
}

.env-name { display: flex; align-items: center; gap: 10px; font-size: 13px; }

.env-avatar {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.5), rgba(34, 211, 238, 0.35));
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 600;
}

.env-tag { font-size: 11.5px; color: var(--text-faint); font-family: var(--mono); }

.pill { padding: 2px 9px; border-radius: 999px; font-size: 11px; border: 1px solid var(--line-strong); color: var(--text-dim); }
.pill.ok { color: var(--ok); border-color: rgba(52, 211, 153, 0.4); background: rgba(52, 211, 153, 0.1); }

/* ---------- 通用区块 ---------- */
section.block { padding: 56px 0; }

.block-head { max-width: 640px; margin-bottom: 30px; }
.block-head h2 { margin: 0 0 10px; font-size: 26px; letter-spacing: -0.3px; font-weight: 650; }
.block-head p { margin: 0; color: var(--text-dim); font-size: 14px; }

.grid { display: grid; gap: 14px; }
.grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.card {
  padding: 20px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--panel-strong), var(--panel));
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.card:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.card h3 { margin: 0 0 8px; font-size: 15px; font-weight: 600; }
.card p { margin: 0; color: var(--text-dim); font-size: 13.5px; line-height: 1.75; }

.card-icon {
  width: 34px;
  height: 34px;
  margin-bottom: 14px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 15px;
  background: rgba(59, 130, 246, 0.16);
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.steps { counter-reset: step; display: grid; gap: 12px; }
.step {
  display: flex;
  gap: 14px;
  padding: 16px 18px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--panel);
}
.step::before {
  counter-increment: step;
  content: counter(step);
  flex: 0 0 26px;
  height: 26px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 600;
  color: var(--brand-bright);
  background: rgba(59, 130, 246, 0.14);
  border: 1px solid rgba(59, 130, 246, 0.28);
}
.step strong { display: block; font-size: 14px; margin-bottom: 2px; }
.step span { color: var(--text-dim); font-size: 13px; }

/* ---------- 版本历史 / 下载 ---------- */
.release {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 16px;
  align-items: start;
}

.release-card {
  padding: 22px;
  border-radius: var(--radius);
  border: 1px solid var(--line-strong);
  background:
    radial-gradient(600px 240px at 8% -30%, rgba(59, 130, 246, 0.22) 0%, rgba(7, 11, 20, 0) 70%),
    linear-gradient(180deg, var(--panel-strong), var(--panel));
  box-shadow: var(--shadow);
}

.version-line { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.version-line .v { font-size: 30px; font-weight: 680; letter-spacing: -0.5px; font-family: var(--mono); }
.meta-line { margin: 10px 0 18px; color: var(--text-faint); font-size: 12.5px; display: flex; gap: 16px; flex-wrap: wrap; }

.notes { margin: 16px 0 0; padding-left: 18px; color: var(--text-dim); font-size: 13px; line-height: 1.9; }
.notes li::marker { color: var(--brand-bright); }

.sha {
  margin-top: 16px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px dashed var(--line-strong);
  background: rgba(7, 12, 24, 0.55);
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--text-dim);
  word-break: break-all;
}

.history { display: flex; flex-direction: column; gap: 10px; }

.history-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 13px 16px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--panel);
}

.history-item .hv { font-family: var(--mono); font-size: 13.5px; font-weight: 600; }
.history-item .hm { color: var(--text-faint); font-size: 12px; }

.empty {
  padding: 22px;
  border-radius: 12px;
  border: 1px dashed var(--line-strong);
  color: var(--text-faint);
  font-size: 13px;
  text-align: center;
}

table.versions { width: 100%; border-collapse: collapse; font-size: 13px; }
table.versions th, table.versions td { padding: 11px 12px; text-align: left; border-bottom: 1px solid var(--line); }
table.versions th { color: var(--text-faint); font-weight: 500; font-size: 12px; }
table.versions td.mono { font-family: var(--mono); }

.tag {
  display: inline-block;
  padding: 1px 8px;
  border-radius: 999px;
  font-size: 11px;
  color: var(--brand-bright);
  border: 1px solid rgba(59, 130, 246, 0.35);
  background: rgba(59, 130, 246, 0.12);
}

.callout {
  display: flex;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid rgba(251, 191, 36, 0.32);
  background: rgba(251, 191, 36, 0.09);
  color: #f6dfa8;
  font-size: 13px;
}

code, .mono { font-family: var(--mono); }
code {
  padding: 1px 6px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 12px;
}

/* ---------- 页脚 ---------- */
footer {
  margin-top: 40px;
  padding: 30px 0 44px;
  border-top: 1px solid var(--line);
  color: var(--text-faint);
  font-size: 12.5px;
}

.foot-inner { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.foot-links { display: flex; gap: 18px; }
.foot-links a:hover { color: var(--text-dim); }

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 32px; padding: 52px 0 44px; }
  .grid.cols-3 { grid-template-columns: 1fr 1fr; }
  .release { grid-template-columns: 1fr; }
  .nav { gap: 14px; }
  .nav a.hide-sm { display: none; }
}

@media (max-width: 620px) {
  .wrap { width: calc(100% - 32px); }
  .grid.cols-3 { grid-template-columns: 1fr; }
  .hero h1 { font-size: 28px; }
  .nav-cta { padding: 7px 12px; }
}
