/* =========================================================
   Ben 的工具箱 · 官网样式
   深色 + 蓝调强调色，和工具界面（蓝色标题栏）呼应
   ========================================================= */
:root {
  --bg: #05070d;
  --bg2: #080c14;
  --panel: rgba(14, 21, 33, 0.78);
  --panel-solid: #0d1420;
  --line: rgba(96, 156, 255, 0.16);
  --line-strong: rgba(96, 156, 255, 0.36);
  --text: #e9f1ff;
  --dim: #9db0c9;
  --mute: #6c809b;
  --accent: #4f8cff;
  --accent2: #7ab0ff;
  --gold: #ffc857;
  --radius: 16px;
  --sans: "Segoe UI", "Microsoft YaHei", "PingFang SC", system-ui, -apple-system, sans-serif;
  --mono: "Cascadia Mono", "Consolas", "SFMono-Regular", monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }

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

h1, h2, h3, h4 { margin: 0; line-height: 1.22; font-weight: 800; letter-spacing: -0.01em; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
img { display: block; max-width: 100%; }
.mono { font-family: var(--mono); letter-spacing: 0.01em; }
::selection { background: rgba(79, 140, 255, 0.35); color: #fff; }

/* ---------- 背景 ---------- */
.bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(620px 340px at 16% 6%, rgba(79, 140, 255, 0.16), transparent 70%),
    radial-gradient(560px 320px at 86% 10%, rgba(122, 176, 255, 0.1), transparent 72%),
    radial-gradient(900px 460px at 50% 108%, rgba(8, 14, 24, 0.9), transparent 70%);
}
.bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(96, 156, 255, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(96, 156, 255, 0.05) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 55% at 50% 0%, #000 10%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 55% at 50% 0%, #000 10%, transparent 75%);
}

main, .site-header, .site-footer { position: relative; z-index: 1; }
.wrap { width: min(1160px, 100% - 48px); margin-inline: auto; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 24px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.18s ease, box-shadow 0.25s ease, background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.btn-primary {
  background: linear-gradient(135deg, #6ba4ff 0%, var(--accent) 55%, #2f6fe6 100%);
  color: #04101f;
  box-shadow: 0 12px 30px -14px rgba(79, 140, 255, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 38px -14px rgba(79, 140, 255, 1), inset 0 1px 0 rgba(255, 255, 255, 0.45); }
.btn-ghost {
  border-color: var(--line-strong);
  color: var(--text);
  background: rgba(79, 140, 255, 0.06);
}
.btn-ghost:hover { border-color: rgba(122, 176, 255, 0.7); background: rgba(79, 140, 255, 0.14); transform: translateY(-2px); }
.btn-small { padding: 9px 16px; font-size: 13.5px; border-radius: 8px; }
.btn-block { width: 100%; }
.btn:active { transform: translateY(0) scale(0.99); }

a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 2px solid var(--accent2);
  outline-offset: 3px;
  border-radius: 8px;
}

.linkish {
  padding: 0;
  border: 0;
  background: none;
  color: var(--dim);
  font-size: 14px;
  text-align: left;
  cursor: pointer;
  transition: color 0.18s ease;
}
.linkish:hover { color: var(--accent2); }

/* ---------- 顶栏 ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  border-bottom: 1px solid transparent;
  transition: background-color 0.25s ease, border-color 0.25s ease, backdrop-filter 0.25s ease;
}
.site-header.scrolled {
  background: rgba(5, 7, 13, 0.84);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.header-inner { display: flex; align-items: center; gap: 24px; height: 76px; }

.brand { display: inline-flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: linear-gradient(140deg, #6ba4ff, #2f6fe6);
  color: #04101f;
  font-family: var(--mono);
  font-size: 21px;
  font-weight: 800;
  box-shadow: 0 10px 26px -12px rgba(79, 140, 255, 0.95);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-text strong { font-size: 18px; font-weight: 800; letter-spacing: 0.01em; }
.brand-text em { font-style: normal; font-size: 10.5px; letter-spacing: 0.16em; color: var(--mute); }

.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav a {
  position: relative;
  padding: 9px 13px;
  border-radius: 8px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--dim);
  transition: color 0.18s ease, background-color 0.18s ease;
}
.nav a:hover { color: var(--text); background: rgba(255, 255, 255, 0.04); }
.nav a.active { color: var(--accent2); }
.nav a.active::after {
  content: "";
  position: absolute;
  left: 13px; right: 13px; bottom: 2px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--accent2), transparent);
}
.nav-cta {
  margin-left: 10px;
  border: 1px solid var(--line-strong) !important;
  background: rgba(79, 140, 255, 0.1) !important;
  color: var(--text) !important;
}
.nav-cta:hover { background: rgba(79, 140, 255, 0.2) !important; border-color: var(--accent2) !important; }

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 10px;
  margin-left: auto;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  background: rgba(79, 140, 255, 0.08);
  cursor: pointer;
  flex-direction: column;
  justify-content: space-between;
}
.nav-toggle span { display: block; height: 2px; border-radius: 2px; background: var(--text); transition: transform 0.22s ease, opacity 0.22s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { padding: 166px 0 0; }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 54px;
  align-items: center;
  padding-bottom: 70px;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  padding: 7px 14px 7px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(79, 140, 255, 0.07);
  color: var(--accent2);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
}
.kicker .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent2); box-shadow: 0 0 12px var(--accent2); }

.hero h1 {
  font-size: clamp(44px, 6.6vw, 78px);
  font-weight: 900;
  letter-spacing: -0.035em;
  margin-bottom: 4px;
}
.hero h1 .grad {
  background: linear-gradient(100deg, #ffffff 6%, #bcd6ff 40%, var(--accent) 78%, #2f6fe6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 8px 26px rgba(79, 140, 255, 0.35));
}

.lead { max-width: 52ch; margin: 20px 0 32px; color: var(--dim); font-size: 16.5px; line-height: 1.85; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 40px; }

.facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  padding: 0;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}
.facts > div { padding: 14px 16px; background: rgba(7, 11, 18, 0.86); }
.facts dt { font-size: 11.5px; letter-spacing: 0.1em; color: var(--mute); text-transform: uppercase; }
.facts dd { margin: 4px 0 0; font-size: 15px; font-weight: 700; color: var(--text); }

/* ---------- Hero 卡片 ---------- */
.hero-card {
  padding: 24px;
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(18, 28, 44, 0.92) 0%, rgba(9, 14, 22, 0.94) 100%);
  box-shadow: 0 26px 60px -34px rgba(0, 0, 0, 0.95), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(12px);
}
.hc-head { display: flex; align-items: center; gap: 13px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.hc-logo {
  display: grid; place-items: center;
  width: 48px; height: 48px;
  border-radius: 12px;
  background: linear-gradient(140deg, #6ba4ff, #2f6fe6);
  color: #04101f;
  font-family: var(--mono);
  font-size: 24px;
  font-weight: 800;
}
.hc-id { display: flex; flex-direction: column; min-width: 0; }
.hc-name { font-size: 16.5px; font-weight: 800; }
.hc-sub { font-size: 12.5px; color: var(--mute); }
.pill {
  display: inline-flex; align-items: center; gap: 7px;
  margin-left: auto;
  padding: 6px 12px;
  border: 1px solid rgba(122, 255, 190, 0.28);
  border-radius: 999px;
  background: rgba(60, 220, 150, 0.1);
  color: #8effc4;
  font-size: 12.5px;
  font-weight: 700;
  white-space: nowrap;
}
.pill i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; animation: pulse 2.2s ease-out infinite; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(142, 255, 196, 0.5); }
  70% { box-shadow: 0 0 0 9px rgba(142, 255, 196, 0); }
  100% { box-shadow: 0 0 0 0 rgba(142, 255, 196, 0); }
}

.hc-rows { list-style: none; margin: 0 0 20px; padding: 0; display: grid; gap: 2px; }
.hc-rows li { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; padding: 9px 2px; border-bottom: 1px solid rgba(255, 255, 255, 0.05); font-size: 14px; }
.hc-rows li:last-child { border-bottom: 0; }
.hc-rows span { color: var(--mute); }
.hc-rows b { font-weight: 700; }
.hc-actions { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
.hc-foot { margin-top: 14px; font-size: 12px; color: var(--mute); }

/* ---------- 跑马灯 ---------- */
.ticker {
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(90deg, rgba(5, 8, 14, 0.4), rgba(79, 140, 255, 0.07), rgba(5, 8, 14, 0.4));
  padding: 12px 0;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.ticker-track {
  display: flex; align-items: center; gap: 26px;
  width: max-content;
  animation: ticker 38s linear infinite;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.14em;
  color: var(--dim);
  white-space: nowrap;
}
.ticker-track i { color: var(--accent); font-style: normal; opacity: 0.6; font-size: 10px; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- 区块 ---------- */
.section { padding: 100px 0; }
.section-alt {
  background: radial-gradient(700px 300px at 50% 0%, rgba(79, 140, 255, 0.07), transparent 70%), rgba(8, 12, 19, 0.6);
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.sec-head { max-width: 760px; margin-bottom: 50px; }
.sec-head h2 { font-size: clamp(30px, 4vw, 42px); font-weight: 900; letter-spacing: -0.02em; margin-bottom: 14px; }
.sec-lead { color: var(--dim); font-size: 16px; line-height: 1.85; max-width: 64ch; }

/* ---------- 工具卡 ---------- */
.tool-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.tool-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 28px 26px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(18, 27, 41, 0.86), rgba(9, 14, 21, 0.94));
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.3s ease;
}
.tool-card:hover { transform: translateY(-4px); border-color: rgba(122, 176, 255, 0.4); box-shadow: 0 28px 56px -38px rgba(0, 0, 0, 0.95); }
.tool-main {
  border-color: rgba(79, 140, 255, 0.45);
  background:
    radial-gradient(420px 200px at 82% -10%, rgba(79, 140, 255, 0.16), transparent 70%),
    linear-gradient(180deg, rgba(18, 28, 44, 0.92), rgba(9, 14, 21, 0.96));
  box-shadow: 0 30px 60px -42px rgba(79, 140, 255, 0.5);
}
.tag {
  position: absolute; top: -11px; left: 26px;
  padding: 3px 11px;
  border-radius: 999px;
  background: linear-gradient(120deg, var(--gold), #ffab3d);
  color: #241a04;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
}
.tool-top { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.tool-ico {
  display: grid; place-items: center;
  min-width: 52px; height: 52px;
  padding: 0 8px;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  background: rgba(79, 140, 255, 0.12);
  color: var(--accent2);
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
}
.tool-card h3 { font-size: 19px; margin-bottom: 4px; }
.tool-sub { font-size: 13px; color: var(--mute); }
.tool-desc { color: var(--dim); font-size: 14px; line-height: 1.8; min-height: 5.2em; }

.meta {
  list-style: none;
  margin: 16px 0 20px;
  padding: 14px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  display: grid; gap: 8px;
}
.meta li { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; }
.meta span { color: var(--mute); }
.meta b { font-weight: 600; }
.tool-card .btn { margin-top: auto; }
.hint { margin-top: 12px; font-size: 12px; color: var(--mute); line-height: 1.6; }

/* ---------- 外网穿透 ---------- */
.tunnel-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 18px; align-items: start; }
.panel {
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  background: rgba(11, 17, 26, 0.72);
}
.panel-title { font-size: 16px; margin-bottom: 16px; }

.steps { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 18px; }
.steps li { display: grid; grid-template-columns: 44px 1fr; gap: 14px; }
.step-num {
  display: inline-grid; place-items: center;
  width: 40px; height: 30px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: rgba(79, 140, 255, 0.1);
  color: var(--accent2);
  font-size: 12.5px;
  font-weight: 700;
}
.steps h3 { font-size: 15.5px; margin-bottom: 6px; }
.steps p { color: var(--dim); font-size: 13.5px; line-height: 1.8; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.shot {
  margin: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(18, 27, 41, 0.7), rgba(9, 14, 21, 0.9));
}
.shot img { width: 100%; border-radius: 10px; border: 1px solid rgba(255, 255, 255, 0.07); }
.shot figcaption { margin-top: 10px; font-size: 12.5px; color: var(--mute); text-align: center; }

.notes { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.note {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background: rgba(79, 140, 255, 0.05);
  color: var(--dim);
  font-size: 13px;
}
.note::before {
  content: "";
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent2);
  box-shadow: 0 0 10px rgba(122, 176, 255, 0.85);
}

/* ---------- 讨论群 ---------- */
.group-wrap { max-width: 1000px; }
.group-card {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 30px;
  align-items: center;
  padding: 36px;
  border: 1px solid rgba(255, 200, 87, 0.32);
  border-radius: 22px;
  background:
    radial-gradient(520px 240px at 88% 0%, rgba(255, 200, 87, 0.14), transparent 70%),
    radial-gradient(520px 240px at 6% 100%, rgba(79, 140, 255, 0.14), transparent 70%),
    linear-gradient(180deg, rgba(20, 26, 36, 0.94), rgba(9, 13, 20, 0.96));
  box-shadow: 0 34px 70px -46px rgba(0, 0, 0, 0.95);
}
.group-card h2 { font-size: clamp(28px, 3.6vw, 38px); font-weight: 900; letter-spacing: -0.02em; margin-bottom: 12px; }
.gc-desc { color: var(--dim); font-size: 15px; line-height: 1.85; max-width: 46ch; }
.qq { display: flex; align-items: baseline; gap: 14px; margin: 22px 0 22px; flex-wrap: wrap; }
.qq-label { font-size: 12px; letter-spacing: 0.16em; color: var(--mute); }
.qq-num {
  font-size: clamp(30px, 4.4vw, 44px);
  font-weight: 800;
  color: var(--gold);
  letter-spacing: 0.02em;
  text-shadow: 0 0 30px rgba(255, 200, 87, 0.28);
}
.gc-tip { margin-top: 16px; font-size: 13px; color: var(--mute); }

.gc-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 30px 22px;
  border: 1px dashed rgba(255, 200, 87, 0.4);
  border-radius: 18px;
  background: rgba(5, 8, 14, 0.6);
}
.gc-badge-label { font-family: var(--mono); font-size: 11px; letter-spacing: 0.3em; color: var(--mute); }
.gc-badge-num { font-size: clamp(24px, 3.6vw, 34px); font-weight: 800; color: var(--text); }
.gc-badge-sub { font-size: 12.5px; color: var(--mute); }

/* ---------- 关于 ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.about-text { color: var(--dim); font-size: 14.5px; line-height: 1.9; margin-bottom: 16px; }
.about-text strong { color: var(--text); }
.about-text.dim { color: var(--mute); font-size: 13.5px; margin-bottom: 0; }
.kv { width: 100%; border-collapse: collapse; margin-top: 6px; }
.kv th, .kv td { padding: 10px 0; text-align: left; font-size: 14px; border-bottom: 1px solid rgba(255, 255, 255, 0.06); vertical-align: top; }
.kv tr:last-child th, .kv tr:last-child td { border-bottom: 0; }
.kv th { width: 34%; color: var(--mute); font-weight: 500; }
.kv td { font-weight: 600; }

/* ---------- CTA ---------- */
.cta-band {
  padding: 74px 0;
  border-top: 1px solid var(--line);
  background:
    radial-gradient(620px 220px at 20% 0%, rgba(79, 140, 255, 0.16), transparent 70%),
    radial-gradient(520px 200px at 84% 100%, rgba(255, 200, 87, 0.1), transparent 70%),
    rgba(7, 11, 18, 0.85);
}
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.cta-inner h2 { font-size: clamp(24px, 3.2vw, 32px); margin-bottom: 10px; letter-spacing: -0.02em; }
.cta-inner p { color: var(--dim); font-size: 15px; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- 页脚 ---------- */
.site-footer { padding: 60px 0 32px; border-top: 1px solid rgba(255, 255, 255, 0.05); background: rgba(4, 6, 11, 0.92); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 0.8fr 0.9fr; gap: 38px; padding-bottom: 36px; border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
.foot-brand .brand { margin-bottom: 14px; }
.foot-desc { color: var(--mute); font-size: 13.5px; line-height: 1.9; }
.foot-nav { display: flex; flex-direction: column; align-items: flex-start; gap: 9px; }
.foot-nav h4 { font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--mute); margin-bottom: 4px; }
.foot-nav a, .foot-nav .linkish { font-size: 14px; color: var(--dim); }
.foot-nav a:hover { color: var(--accent2); }
.foot-muted { font-size: 13px; color: var(--mute); }
.foot-bottom { display: flex; justify-content: space-between; gap: 24px; padding-top: 24px; color: var(--mute); font-size: 12.5px; line-height: 1.8; }
.foot-legal { max-width: 58ch; text-align: right; }

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 32px;
  z-index: 90;
  max-width: min(460px, calc(100vw - 40px));
  padding: 13px 20px;
  border: 1px solid rgba(122, 176, 255, 0.4);
  border-radius: 10px;
  background: rgba(9, 16, 26, 0.97);
  box-shadow: 0 20px 50px -24px rgba(0, 0, 0, 0.9);
  color: var(--text);
  font-size: 14px;
  text-align: center;
  opacity: 0;
  transform: translate(-50%, 16px);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- 进场动画 ---------- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.7s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- 响应式 ---------- */
@media (max-width: 1080px) {
  .hero { padding-top: 136px; }
  .hero-grid { grid-template-columns: 1fr; gap: 38px; padding-bottom: 56px; }
  .hero-card { max-width: 560px; }
  .shots { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .group-card { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: span 2; }
  .foot-legal { text-align: left; }
}
@media (max-width: 1120px) and (min-width: 781px) {
  .nav a { padding: 9px 10px; font-size: 14px; }
  .nav-cta { display: none; }
}
@media (max-width: 780px) {
  .wrap { width: min(1160px, 100% - 36px); }
  .nav {
    position: fixed;
    top: 76px; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 14px 18px 20px;
    background: rgba(5, 8, 13, 0.97);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(16px);
    transform: translateY(-14px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s;
    max-height: calc(100vh - 76px);
    overflow-y: auto;
  }
  .nav.open { opacity: 1; transform: none; visibility: visible; }
  .nav a { padding: 13px 12px; font-size: 16px; }
  .nav a.active::after { display: none; }
  .nav-cta { margin-left: 0; text-align: center; margin-top: 6px; }
  .nav-toggle { display: flex; }

  .hero { padding-top: 116px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .facts { grid-template-columns: 1fr 1fr; }
  .hero-card { padding: 20px; }

  .section { padding: 72px 0; }
  .sec-head { margin-bottom: 36px; }
  .tool-grid { grid-template-columns: 1fr; }
  .tool-desc { min-height: 0; }
  .panel { padding: 22px 20px; }
  .group-card { padding: 26px 22px; }
  .shot-row { grid-template-columns: 1fr; }
  .cta-inner { flex-direction: column; align-items: flex-start; }
  .cta-actions { width: 100%; }
  .cta-actions .btn { flex: 1 1 auto; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .foot-brand { grid-column: span 1; }
  .foot-bottom { flex-direction: column; gap: 10px; }
}
@media (max-width: 430px) {
  .hero h1 { font-size: 40px; }
  .hc-actions { grid-template-columns: 1fr; }
}

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

/* ---------- 工具界面截图 ---------- */
.shots {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.shot-fig {
  margin: 0;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(18, 27, 41, 0.75), rgba(9, 14, 21, 0.92));
  transition: border-color 0.25s ease, transform 0.25s ease;
}
.shot-fig:hover { border-color: rgba(122, 176, 255, 0.42); transform: translateY(-2px); }

.shot-fig img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  cursor: zoom-in;
}

.shot-fig figcaption {
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--dim);
}
.shot-fig figcaption b { color: var(--text); margin-right: 6px; }
.shot-fig figcaption code {
  padding: 1px 5px;
  border-radius: 4px;
  background: rgba(79, 140, 255, 0.14);
  color: var(--accent2);
  font-family: var(--mono);
  font-size: 12px;
}

.shot-row {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.shot-fig.small img { aspect-ratio: auto; }

.shot-fig.wide { grid-column: 1 / -1; }

/* ---------- 图片放大 ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 95;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(3, 6, 12, 0.92);
  backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  cursor: zoom-out;
}
.lightbox.show { opacity: 1; pointer-events: auto; }
.lightbox img {
  max-width: 96vw;
  max-height: 92vh;
  border-radius: 12px;
  border: 1px solid rgba(122, 176, 255, 0.35);
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.95);
}