:root {
  color-scheme: dark;
  --bg: #070c0a;
  --bg-2: #0b1210;
  --panel: #0f1714;
  --panel-2: #141f1a;
  --line: rgba(214, 255, 234, 0.08);
  --line-2: rgba(214, 255, 234, 0.14);
  --line-3: rgba(214, 255, 234, 0.22);
  --text: #ecf3ef;
  --text-2: #a5b5ad;
  --text-3: #6d7f77;
  --green: #40d48c;
  --green-2: #2fb574;
  --green-3: #1d7a4e;
  --green-soft: rgba(64, 212, 140, 0.12);
  --green-glow: rgba(64, 212, 140, 0.35);
  --amber: #f0b54a;
  --red: #ff7a6e;
  --radius: 22px;
  --container: 1200px;
  --gutter: 24px;
  --nav-h: 68px;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang SC", "HarmonyOS Sans SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", sans-serif;
  --mono: "SF Mono", ui-monospace, "JetBrains Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 12px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  color: var(--text);
  background: var(--bg);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-synthesis: none;
}

::selection {
  color: #04140c;
  background: var(--green);
}

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

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

h1,
h2,
h3,
p {
  margin: 0;
}

code,
kbd {
  font-family: var(--mono);
}

:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
  border-radius: 6px;
}

.i {
  width: 1em;
  height: 1em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.grad {
  color: transparent;
  background: linear-gradient(100deg, #c9ffe3 0%, #5fe3a2 38%, #2fb574 72%, #1f8f5c 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

/* ---------- 按钮 ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 46px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background-color 0.25s, border-color 0.25s, box-shadow 0.25s, color 0.25s;
}

.btn .i {
  font-size: 18px;
}

.btn-sm {
  height: 36px;
  padding: 0 16px;
  border-radius: 10px;
  font-size: 14px;
}

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

.btn-lg .i {
  font-size: 20px;
}

.btn-block {
  width: 100%;
}

.btn-primary {
  color: #03130b;
  background: linear-gradient(180deg, #5ce4a0 0%, #34c07c 100%);
  border-color: rgba(160, 255, 205, 0.55);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.45),
    0 12px 32px -12px var(--green-glow),
    0 0 0 1px rgba(10, 60, 36, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    0 18px 44px -12px rgba(64, 212, 140, 0.6),
    0 0 0 1px rgba(10, 60, 36, 0.35);
}

.btn-ghost {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--line-2);
  backdrop-filter: blur(8px);
}

.btn-ghost:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--line-3);
}

/* ---------- 导航 ---------- */

.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--nav-h);
  border-bottom: 1px solid transparent;
  transition: background-color 0.3s, border-color 0.3s, backdrop-filter 0.3s;
}

.nav.scrolled {
  background: rgba(7, 12, 10, 0.72);
  border-bottom-color: var(--line);
  backdrop-filter: saturate(160%) blur(18px);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
}

.nav-inner {
  display: flex;
  align-items: center;
  height: 100%;
  gap: 32px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.brand img {
  border-radius: 8px;
}

.nav-links {
  display: flex;
  gap: 4px;
  margin-left: 12px;
}

.nav-links a {
  padding: 6px 14px;
  border-radius: 8px;
  color: var(--text-2);
  font-size: 14.5px;
  transition: color 0.2s, background-color 0.2s;
}

.nav-links a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.icon-link {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  color: var(--text-2);
  font-size: 20px;
  transition: color 0.2s, background-color 0.2s;
}

.icon-link:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

/* ---------- 首屏 ---------- */

.hero {
  position: relative;
  padding-top: calc(var(--nav-h) + clamp(48px, 7vw, 92px));
  overflow: hidden;
  isolation: isolate;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.hero-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 72px 72px;
  background-position: center top;
  -webkit-mask-image: radial-gradient(ellipse 75% 55% at 50% 0%, #000 20%, transparent 78%);
  mask-image: radial-gradient(ellipse 75% 55% at 50% 0%, #000 20%, transparent 78%);
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 48% 36% at 50% -4%, rgba(64, 212, 140, 0.32), transparent 72%),
    radial-gradient(ellipse 60% 30% at 50% 58%, rgba(47, 181, 116, 0.16), transparent 70%);
}

.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px 7px 12px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  color: var(--text-2);
  background: rgba(255, 255, 255, 0.03);
  font-size: 13.5px;
  backdrop-filter: blur(8px);
  transition: border-color 0.2s, color 0.2s;
}

.pill:hover {
  color: var(--text);
  border-color: var(--line-3);
}

.pill .i {
  font-size: 14px;
}

.pill-dot {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 12px var(--green);
}

.pill-dot::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid var(--green);
  animation: ping 2.4s var(--ease) infinite;
}

@keyframes ping {
  0% { transform: scale(0.6); opacity: 0.9; }
  80%, 100% { transform: scale(1.8); opacity: 0; }
}

.hero h1 {
  margin-top: 30px;
  font-size: clamp(46px, 8.6vw, 116px);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.035em;
}

.lead {
  max-width: 660px;
  text-wrap: pretty;
  margin-top: 28px;
  color: var(--text-2);
  font-size: clamp(16px, 1.6vw, 19px);
  line-height: 1.8;
}

.cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 40px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 0;
  margin-top: 22px;
  color: var(--text-3);
  font-size: 13.5px;
}

.hero-meta span + span::before {
  content: "·";
  margin: 0 10px;
  opacity: 0.6;
}

/* ---------- 界面预览 ---------- */

.showcase {
  position: relative;
  margin-top: clamp(48px, 6vw, 76px);
}

.showcase::before {
  content: "";
  position: absolute;
  left: 10%;
  right: 10%;
  top: 8%;
  bottom: -4%;
  z-index: -1;
  background: radial-gradient(ellipse at center, rgba(64, 212, 140, 0.28), transparent 68%);
  filter: blur(40px);
}

.stage-frame {
  position: relative;
  max-width: 1180px;
  margin: 0 auto;
  perspective: 2400px;
}

.stage {
  transform-origin: 50% 0%;
  transform: rotateX(var(--tilt, 0deg)) scale(var(--zoom, 1));
  will-change: transform;
}

.window {
  --s: 1;
  width: 1180px;
  overflow: hidden;
  border-radius: 14px;
  background: #f7f9f8;
  transform: scale(var(--s));
  transform-origin: 0 0;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.1),
    0 2px 0 0 rgba(255, 255, 255, 0.06) inset,
    0 60px 120px -30px rgba(0, 0, 0, 0.85),
    0 30px 60px -30px rgba(0, 0, 0, 0.6);
  font-family: var(--sans);
  line-height: 1.4;
  color: #17211d;
  text-align: left;
  user-select: none;
}

.titlebar {
  position: relative;
  display: flex;
  align-items: center;
  height: 38px;
  padding: 0 16px;
  background: linear-gradient(#eef1ef, #e4e8e6);
  border-bottom: 1px solid #d3d9d6;
}

.lights {
  display: flex;
  gap: 8px;
}

.lights i {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ff5f57;
  box-shadow: inset 0 0 0 0.5px rgba(0, 0, 0, 0.15);
}

.lights i:nth-child(2) { background: #febc2e; }
.lights i:nth-child(3) { background: #28c840; }

.titlebar .title {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  color: #4b5a53;
  font-size: 13px;
  font-weight: 600;
}

.app {
  display: grid;
  grid-template-columns: 184px 1fr;
  min-height: 660px;
}

.app-side {
  display: flex;
  flex-direction: column;
  padding: 22px 0 18px;
  background: #111a17;
  color: #c6d0cb;
}

.app-brand {
  padding: 0 22px 20px;
  color: #fff;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.app-nav {
  display: grid;
  gap: 2px;
}

.app-nav span {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 46px;
  padding: 0 22px;
  font-size: 15px;
  border-left: 3px solid transparent;
}

.app-nav .i {
  font-size: 18px;
  stroke-width: 1.8;
}

.app-nav .on {
  color: #fff;
  background: #1f2d27;
  border-left-color: #2fb574;
}

.app-conn {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: auto 16px 0;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: #e6ece9;
  font-size: 12px;
  font-weight: 600;
}

.app-conn i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #2fcf7f;
  box-shadow: 0 0 8px #2fcf7f;
}

.app-conn em {
  margin-left: auto;
  color: #7f8f88;
  font-style: normal;
  font-weight: 400;
}

.app-main {
  display: flex;
  flex-direction: column;
  padding: 26px 28px 22px;
  min-width: 0;
}

.app-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}

.app-title {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #111a17;
}

.app-sub {
  margin-top: 6px;
  color: #52645c;
  font-size: 14px;
}

.app-stats {
  margin-top: 10px;
  color: #52645c;
  font-size: 14px;
}

.app-stats b {
  color: #17211d;
  font-size: 16px;
  font-weight: 700;
}

.app-stats b.g {
  color: #21854f;
}

.app-stats s {
  margin: 0 6px;
  color: #97a29d;
  text-decoration: none;
}

.app-tools {
  display: flex;
  align-items: center;
  gap: 10px;
}

.app-search,
.app-select,
.app-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 42px;
  padding: 0 14px;
  border-radius: 8px;
  font-size: 14px;
  white-space: nowrap;
}

.app-search {
  width: 238px;
  border: 1px solid #d5dcd8;
  background: #fff;
  color: #97a29d;
}

.app-select {
  width: 118px;
  justify-content: space-between;
  border: 1px solid #d5dcd8;
  background: #fff;
  color: #36483f;
}

.app-btn {
  font-weight: 600;
}

.app-btn.outline {
  border: 1px solid #21754c;
  color: #1c6a44;
  background: #fff;
}

.app-btn.solid {
  background: #21754c;
  color: #fff;
}

.app-table {
  border: 1px solid #dce2df;
  border-radius: 10px;
  background: #fff;
  overflow: hidden;
}

.tr {
  display: grid;
  grid-template-columns: 188px 104px 68px minmax(0, 1fr) 162px 104px;
  align-items: center;
  gap: 12px;
  height: 58px;
  padding: 0 20px;
  border-top: 1px solid #edf1ef;
  font-size: 14px;
  color: #24332d;
  transition: background-color 0.4s;
}

.tr.th {
  height: 44px;
  border-top: 0;
  background: #fbfcfb;
  color: #52645c;
  font-size: 13px;
  font-weight: 600;
}

.tr.sel {
  background: #eef8f2;
}

.svc {
  display: grid;
  line-height: 1.3;
}

.svc b {
  font-weight: 600;
  color: #17211d;
}

.svc small {
  margin-top: 3px;
  color: #708078;
  font-size: 12.5px;
}

.st {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #52645c;
}

.st i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #b4bdb9;
  transition: background-color 0.3s, box-shadow 0.3s;
}

.st em {
  font-style: normal;
}

.st.run i {
  background: #22a060;
  box-shadow: 0 0 0 3px rgba(34, 160, 96, 0.16);
}

.st.boot i {
  background: #e4a11b;
  box-shadow: 0 0 0 3px rgba(228, 161, 27, 0.18);
  animation: blink 0.8s ease-in-out infinite;
}

@keyframes blink {
  50% { opacity: 0.35; }
}

.mono {
  font-family: var(--mono);
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mono.dir {
  color: #36483f;
}

.ops {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #52645c;
}

.ops .i {
  font-size: 18px;
}

.op {
  display: inline-grid;
  place-items: center;
  width: 64px;
  height: 34px;
  border: 1px solid #c3ccc7;
  border-radius: 7px;
  background: #fff;
  color: #24332d;
  font-size: 13.5px;
  transition: transform 0.15s, background-color 0.2s, border-color 0.2s, color 0.2s;
}

.op.start {
  border-color: #2a8a5b;
  color: #1c6a44;
}

.op.press {
  transform: scale(0.92);
  background: #e6f4ec;
}

.app-log {
  display: flex;
  flex-direction: column;
  margin-top: 16px;
  border: 1px solid #dce2df;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}

.log-head {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 42px;
  padding: 0 18px;
  font-size: 14px;
}

.log-target {
  color: #52645c;
}

.log-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22a060;
}

.log-tools {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-left: auto;
  color: #52645c;
  font-size: 13px;
}

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

.log-tools .i {
  font-size: 16px;
}

.chk {
  display: inline-grid;
  place-items: center;
  width: 16px;
  height: 16px;
  border-radius: 4px;
  background: #21854f;
  color: #fff;
}

.chk .i {
  font-size: 12px;
  stroke-width: 3;
}

.log-body {
  height: 158px;
  padding: 12px 18px;
  overflow: hidden;
  background: #0f1714;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 26px;
  color: #d4ded9;
}

.log-line {
  display: flex;
  gap: 22px;
  white-space: nowrap;
  animation: line-in 0.35s var(--ease);
}

@keyframes line-in {
  from { opacity: 0; transform: translateY(6px); }
}

.log-line .t { color: #6e7f78; }
.log-line .k { width: 38px; color: #4fd49a; }
.log-line .u { color: #6cc6ff; }
.log-line .y { color: #f0c674; }
.log-line .ok { color: #4fd49a; }

/* ---------- 技术栈条 ---------- */

.stack {
  margin-top: clamp(64px, 9vw, 110px);
  text-align: center;
}

.stack-label {
  color: var(--text-3);
  font-size: 14px;
}

.stack-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.stack-list li {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 46px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.02);
  font-size: 15px;
  font-weight: 600;
}

.stack-list i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--c);
  box-shadow: 0 0 12px var(--c);
}

.stack-list code {
  color: var(--text-3);
  font-size: 12.5px;
  font-weight: 400;
}

/* ---------- 通用区块 ---------- */

.section {
  position: relative;
  padding: clamp(96px, 13vw, 168px) 0 0;
}

.section-tight {
  padding-top: clamp(88px, 11vw, 140px);
}

.section-head {
  max-width: 720px;
  margin-bottom: clamp(40px, 5vw, 64px);
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  color: var(--green);
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.18em;
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: currentColor;
}

.section h2 {
  font-size: clamp(34px, 5vw, 60px);
  font-weight: 800;
  line-height: 1.16;
  letter-spacing: -0.025em;
}

.section-lead {
  margin-top: 20px;
  color: var(--text-2);
  font-size: clamp(16px, 1.5vw, 18px);
}

.section-lead a {
  color: var(--green);
  border-bottom: 1px solid rgba(64, 212, 140, 0.4);
}

/* ---------- 功能卡片 ---------- */

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

.card {
  --mx: 50%;
  --my: 0%;
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(420px circle at var(--mx) var(--my), rgba(64, 212, 140, 0.08), transparent 60%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.012));
  transition: border-color 0.3s, transform 0.4s var(--ease);
}

.card:hover {
  border-color: var(--line-2);
}

.span-2 {
  grid-column: span 2;
}

.visual {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 220px;
  padding: 26px 28px 0;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(180deg, #000 72%, transparent);
  mask-image: linear-gradient(180deg, #000 72%, transparent);
}

.card-body {
  padding: 8px 28px 30px;
}

.card-icon {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-bottom: 16px;
  border: 1px solid rgba(64, 212, 140, 0.28);
  border-radius: 11px;
  background: var(--green-soft);
  color: var(--green);
  font-size: 19px;
}

.card h3 {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.4;
}

.card-body p {
  margin-top: 10px;
  color: var(--text-2);
  font-size: 15px;
  line-height: 1.75;
}

/* 一键启停 */
.v-toggle {
  gap: 10px;
}

.mini-row {
  display: grid;
  grid-template-columns: 1fr auto 88px auto;
  align-items: center;
  gap: 18px;
  height: 52px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  font-size: 14px;
}

.mini-row.live {
  border-color: var(--line-2);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 16px 40px -20px rgba(0, 0, 0, 0.7);
}

.mini-name {
  font-family: var(--mono);
  font-weight: 600;
}

.mini-port {
  color: var(--text-3);
  font-family: var(--mono);
  font-size: 13px;
}

.mini-st {
  position: relative;
  color: var(--text-3);
  font-size: 13px;
}

.mini-st.on {
  color: var(--green);
}

.mini-st .on-label {
  position: absolute;
  left: 0;
  color: var(--green);
  opacity: 0;
}

.switch {
  position: relative;
  width: 40px;
  height: 24px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  transition: background-color 0.3s;
}

.switch::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
  transition: transform 0.3s var(--ease);
}

.switch.on {
  background: var(--green-2);
}

.switch.on::after {
  transform: translateX(16px);
}

.live .switch { animation: switch-bg 5s var(--ease) infinite; }
.live .switch::after { animation: switch-knob 5s var(--ease) infinite; }
.live .off-label { animation: label-off 5s var(--ease) infinite; }
.live .on-label { animation: label-on 5s var(--ease) infinite; }

@keyframes switch-bg {
  0%, 30% { background: rgba(255, 255, 255, 0.12); }
  36%, 86% { background: var(--green-2); }
  92%, 100% { background: rgba(255, 255, 255, 0.12); }
}

@keyframes switch-knob {
  0%, 30% { transform: translateX(0); }
  36%, 86% { transform: translateX(16px); }
  92%, 100% { transform: translateX(0); }
}

@keyframes label-off {
  0%, 30% { opacity: 1; }
  34%, 88% { opacity: 0; }
  92%, 100% { opacity: 1; }
}

@keyframes label-on {
  0%, 30% { opacity: 0; }
  34%, 88% { opacity: 1; }
  92%, 100% { opacity: 0; }
}

/* 实时日志 */
.term {
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #050907;
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 25px;
  color: #cfdad4;
}

.term p {
  display: flex;
  gap: 12px;
  white-space: nowrap;
}

.term span { color: var(--text-3); }
.term b { width: 34px; color: var(--green); font-weight: 400; }
.term u { color: #6cc6ff; text-decoration: none; }

.term .cursor i {
  width: 8px;
  height: 16px;
  margin-top: 5px;
  background: var(--green);
  animation: caret 1.1s steps(1) infinite;
}

@keyframes caret {
  50% { opacity: 0; }
}

/* 自动扫描 */
.tree {
  font-family: var(--mono);
  font-size: 13px;
  line-height: 30px;
  color: var(--text);
}

.tree p {
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}

.tree .root {
  color: var(--text-3);
}

.tree .b {
  color: var(--text-3);
}

.tree code {
  padding: 1px 7px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-2);
  font-size: 11.5px;
  line-height: 20px;
}

.tree em {
  margin-left: auto;
  color: var(--green);
  font-style: normal;
}

.sweep {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 48px;
  background: linear-gradient(180deg, transparent, rgba(64, 212, 140, 0.14), transparent);
  border-bottom: 1px solid rgba(64, 212, 140, 0.35);
  animation: sweep 3.6s var(--ease) infinite;
}

@keyframes sweep {
  0% { transform: translateY(-40px); opacity: 0; }
  12% { opacity: 1; }
  85% { opacity: 1; }
  100% { transform: translateY(210px); opacity: 0; }
}

/* 端口 */
.port-search {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 42px;
  padding: 0 14px;
  border: 1px solid var(--line-2);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-3);
  font-size: 13.5px;
}

.port-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 14px;
}

.port-grid span {
  display: grid;
  place-items: center;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--text-3);
  font-family: var(--mono);
  font-size: 13.5px;
}

.port-grid .lit {
  border-color: rgba(64, 212, 140, 0.4);
  background: rgba(64, 212, 140, 0.1);
  color: #aef5cf;
}

/* 安全停止 */
.v-guard {
  gap: 10px;
}

.proc {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
}

.proc b {
  display: block;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
}

.proc small {
  display: block;
  color: var(--text-3);
  font-family: var(--mono);
  font-size: 11.5px;
  line-height: 1.5;
}

.proc em {
  font-style: normal;
  font-size: 12.5px;
}

.proc-icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  font-size: 15px;
}

.proc.ok .proc-icon { background: rgba(64, 212, 140, 0.14); color: var(--green); }
.proc.ok em { color: var(--green); }
.proc.no .proc-icon { background: rgba(240, 181, 74, 0.14); color: var(--amber); }
.proc.no em { color: var(--amber); }

/* 环境变量 */
.env {
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #050907;
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 27px;
  white-space: nowrap;
}

.env .k { color: #9fd8ff; }
.env .v { color: #f0c674; }

.env .health {
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px dashed var(--line-2);
  color: var(--text-2);
}

.env .m { color: var(--text-3); }
.env .ok { margin-left: 8px; color: var(--green); }

/* 原生应用 */
.v-keys {
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
}

.shortcut {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 22px 26px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.025);
  color: var(--text-2);
  font-size: 13.5px;
}

.keys {
  display: flex;
  gap: 8px;
}

kbd {
  display: inline-grid;
  place-items: center;
  min-width: 46px;
  height: 46px;
  padding: 0 10px;
  border: 1px solid var(--line-2);
  border-bottom-width: 3px;
  border-radius: 11px;
  background: linear-gradient(180deg, #1b2621, #121a17);
  color: var(--text);
  font-family: var(--sans);
  font-size: 18px;
  font-weight: 600;
}

/* ---------- 工作方式 ---------- */

.steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.step {
  position: relative;
  padding: 30px 28px;
  border-top: 1px solid var(--line-2);
}

.step::before {
  content: "";
  position: absolute;
  top: -4px;
  left: 28px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 5px rgba(64, 212, 140, 0.15), 0 0 16px var(--green);
}

.step-num {
  display: block;
  margin-bottom: 18px;
  color: transparent;
  background: linear-gradient(180deg, rgba(120, 240, 180, 0.95), rgba(64, 212, 140, 0.08));
  -webkit-background-clip: text;
  background-clip: text;
  font-family: var(--mono);
  font-size: 60px;
  font-weight: 700;
  line-height: 1;
}

.step h3 {
  font-size: 21px;
  font-weight: 700;
}

.step p {
  margin-top: 12px;
  color: var(--text-2);
  font-size: 15px;
}

.step code {
  display: block;
  margin-top: 20px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.025);
  color: var(--text-2);
  font-size: 13px;
  line-height: 1.8;
}

.step code .g {
  color: var(--green);
}

/* ---------- 隐私 ---------- */

.privacy {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(40px, 6vw, 88px);
  padding: clamp(36px, 6vw, 72px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 28px;
  background:
    radial-gradient(ellipse 60% 80% at 0% 100%, rgba(64, 212, 140, 0.14), transparent 70%),
    linear-gradient(160deg, #0e1814, #0a110e);
}

.privacy::after {
  content: "127.0.0.1";
  position: absolute;
  right: -12px;
  bottom: -40px;
  color: rgba(255, 255, 255, 0.025);
  font-family: var(--mono);
  font-size: clamp(80px, 14vw, 180px);
  font-weight: 700;
  line-height: 1;
  pointer-events: none;
}

.privacy-copy .section-lead {
  max-width: 420px;
}

.privacy-list {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 26px;
  align-content: center;
  margin: 0;
  padding: 0;
  list-style: none;
}

.privacy-list li {
  display: flex;
  gap: 18px;
}

.privacy-list .card-icon {
  margin: 2px 0 0;
}

.privacy-list h3 {
  font-size: 18px;
  font-weight: 700;
}

.privacy-list p {
  margin-top: 6px;
  color: var(--text-2);
  font-size: 15px;
}

.privacy-list code {
  color: var(--text);
  font-size: 13px;
}

/* ---------- 下载 ---------- */

.download {
  isolation: isolate;
}

.download-glow {
  position: absolute;
  top: 60px;
  left: 50%;
  z-index: -1;
  width: min(900px, 100%);
  height: 520px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(64, 212, 140, 0.16), transparent 65%);
  pointer-events: none;
}

.download-icon {
  margin: 0 auto 28px;
  border-radius: 26px;
  filter: drop-shadow(0 24px 48px rgba(64, 212, 140, 0.25));
}

.dl-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  max-width: 980px;
  margin: 0 auto;
}

.dl-card {
  display: flex;
  flex-direction: column;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015));
}

.dl-card.primary {
  border-color: rgba(64, 212, 140, 0.35);
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(64, 212, 140, 0.14), transparent 70%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015));
  box-shadow: 0 30px 80px -40px rgba(64, 212, 140, 0.45);
}

.dl-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 18px;
}

.dl-top .card-icon {
  margin: 0;
  width: 46px;
  height: 46px;
  font-size: 22px;
}

.dl-badge {
  padding: 4px 11px;
  border-radius: 999px;
  background: rgba(64, 212, 140, 0.14);
  color: var(--green);
  font-size: 12.5px;
  font-weight: 600;
}

.dl-badge.muted {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-2);
}

.dl-card h3 {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.dl-card > p {
  margin-top: 8px;
  color: var(--text-2);
  font-size: 15px;
}

.dl-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 20px;
  margin: 26px 0 28px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  flex: 1;
  align-content: start;
}

.dl-meta dt {
  color: var(--text-3);
  font-size: 12.5px;
}

.dl-meta dd {
  margin: 2px 0 0;
  font-size: 15px;
  font-weight: 600;
}

.dl-meta .full {
  grid-column: 1 / -1;
}

.dl-meta code {
  display: block;
  color: var(--text-2);
  font-size: 11.5px;
  font-weight: 400;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.dl-foot {
  display: grid;
  place-items: center;
  min-height: 44px;
  margin-top: 14px;
  color: var(--text-3);
  font-size: 12.5px;
  text-align: center;
  overflow-wrap: anywhere;
}

.dl-foot a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-2);
  font-size: 14px;
  transition: color 0.2s;
}

.dl-foot a:hover {
  color: var(--green);
}

.install {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 20px;
  max-width: 980px;
  margin: 20px auto 0;
}

.install-col {
  padding: 28px 30px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.02);
}

.install h3 {
  margin-bottom: 18px;
  font-size: 17px;
  font-weight: 700;
}

.req {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.req li {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-2);
  font-size: 15px;
}

.req .i {
  color: var(--green);
  font-size: 18px;
}

.how-install {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.how-install li {
  position: relative;
  padding-left: 38px;
  color: var(--text-2);
  font-size: 15px;
  counter-increment: step;
}

.how-install li::before {
  content: counter(step);
  position: absolute;
  top: 1px;
  left: 0;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(64, 212, 140, 0.14);
  color: var(--green);
  font-family: var(--mono);
  font-size: 12.5px;
  font-weight: 700;
}

.cmd {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  padding: 8px 8px 8px 16px;
  border: 1px solid var(--line-2);
  border-radius: 12px;
  background: #050907;
}

.cmd code {
  flex: 1;
  min-width: 0;
  color: var(--text);
  font-size: 13px;
  line-height: 1.6;
}

.cmd .nowrap {
  white-space: nowrap;
}

.copy {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: none;
  height: 32px;
  padding: 0 12px;
  border: 1px solid var(--line-2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-2);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
  transition: color 0.2s, background-color 0.2s, border-color 0.2s;
}

.copy:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.09);
}

.copy.done {
  color: var(--green);
  border-color: rgba(64, 212, 140, 0.4);
}

/* ---------- 常见问题 ---------- */

.faq-wrap {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}

.faq-wrap .section-head {
  position: sticky;
  top: calc(var(--nav-h) + 32px);
  margin-bottom: 0;
}

.faq {
  border-top: 1px solid var(--line-2);
}

.faq details {
  border-bottom: 1px solid var(--line-2);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 0;
  font-size: 17.5px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  transition: color 0.2s;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary:hover {
  color: var(--green);
}

.faq summary .i {
  color: var(--text-3);
  font-size: 20px;
  transition: transform 0.3s var(--ease), color 0.2s;
}

.faq details[open] summary .i {
  transform: rotate(45deg);
  color: var(--green);
}

.faq details p {
  padding: 0 40px 26px 0;
  color: var(--text-2);
  font-size: 15.5px;
  line-height: 1.85;
}

.faq code {
  padding: 1px 6px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  font-size: 13px;
  overflow-wrap: anywhere;
}

.faq kbd {
  min-width: 26px;
  height: 26px;
  margin: 0 2px;
  padding: 0 6px;
  border-bottom-width: 2px;
  border-radius: 6px;
  font-size: 13px;
  vertical-align: middle;
}

/* ---------- 页脚 ---------- */

main > .section:last-child {
  padding-bottom: clamp(96px, 12vw, 160px);
}

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

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 32px;
}

.footer .brand {
  font-size: 16px;
}

.footer .brand small {
  margin-left: 4px;
  color: var(--text-3);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 24px;
  margin-left: auto;
  color: var(--text-2);
  font-size: 14px;
}

.footer-links a:hover {
  color: var(--text);
}

.footer-copy {
  color: var(--text-3);
  font-size: 13px;
}

/* ---------- 进场动画 ---------- */

.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  transition-delay: var(--delay, 0s);
}

.js .reveal.in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
  }
}

/* ---------- 响应式 ---------- */

@media (max-width: 1024px) {
  .nav-links {
    display: none;
  }

  .bento {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .bento .span-2:last-child {
    grid-column: span 2;
  }

  .privacy {
    grid-template-columns: 1fr;
  }

  .faq-wrap {
    grid-template-columns: 1fr;
  }

  .faq-wrap .section-head {
    position: static;
  }
}

@media (max-width: 820px) {
  .steps {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .dl-grid,
  .install {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  :root {
    --gutter: 16px;
    --nav-h: 60px;
  }

  .bento {
    grid-template-columns: 1fr;
  }

  .span-2,
  .bento .span-2:last-child {
    grid-column: auto;
  }

  .visual {
    height: 200px;
    padding: 22px 20px 0;
  }

  .card-body {
    padding: 6px 22px 26px;
  }

  .mini-row {
    grid-template-columns: 1fr 72px auto;
    gap: 12px;
    padding: 0 14px;
  }

  .mini-port {
    display: none;
  }

  .v-keys {
    gap: 10px;
  }

  .shortcut {
    padding: 16px 14px;
    font-size: 12.5px;
  }

  kbd {
    min-width: 38px;
    height: 38px;
    font-size: 15px;
  }

  .hero-meta {
    gap: 4px 16px;
  }

  .hero-meta span + span::before {
    display: none;
  }

  .cta {
    width: 100%;
  }

  .cta .btn {
    flex: 1 1 100%;
  }

  .dl-card {
    padding: 24px 20px;
  }

  .install-col {
    padding: 22px 20px;
  }

  .faq summary {
    font-size: 16px;
  }

  .faq details p {
    padding-right: 0;
  }

  .footer-links {
    margin-left: 0;
    width: 100%;
  }
}
