/* ==========================================================================
   CC-Monitor 官网样式
   配色取自项目 logo：暖橙（#ff9d43 → #ec5615）+ 电蓝（#4f8cff），深色底。
   ========================================================================== */

:root {
  --bg: #0b0d14;
  --bg-2: #10131c;
  --bg-3: #161a26;
  --panel: rgba(22, 26, 38, 0.72);
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #e8eaf1;
  --text-2: #a7adbe;
  --text-3: #6f7689;
  --orange: #ff9d43;
  --orange-2: #ec5615;
  --blue: #4f8cff;
  --green: #3ddc97;
  --red: #ff5f6d;
  --yellow: #ffd166;
  --purple: #b48cff;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Noto Sans CJK SC", "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", "SF Mono", Menlo, Consolas, "Liberation Mono", "Noto Sans Mono CJK SC",
    monospace;
  --max: 1160px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

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

/* 背景光晕 */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(900px 500px at 15% -10%, rgba(236, 86, 21, 0.18), transparent 60%),
    radial-gradient(800px 500px at 90% 10%, rgba(79, 140, 255, 0.14), transparent 60%),
    radial-gradient(700px 600px at 50% 110%, rgba(180, 140, 255, 0.08), transparent 60%);
  pointer-events: none;
}

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

code, pre, kbd {
  font-family: var(--mono);
  font-size: 0.9em;
}

code {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 0.1em 0.4em;
  color: #ffd9b8;
  white-space: nowrap;
}

pre {
  margin: 0;
  padding: 16px 18px;
  background: #0a0c12;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow-x: auto;
  line-height: 1.6;
  color: #d5d9e6;
}
pre code {
  background: none;
  border: 0;
  padding: 0;
  color: inherit;
  white-space: pre;
}

.c-cmt { color: #6f7689; }
.c-cmd { color: #7dd3fc; }
.c-str { color: #a5e39a; }
.c-key { color: #ff9d43; }
.c-num { color: #ffd166; }
.c-flag { color: #b48cff; }

.wrap {
  width: min(var(--max), 100% - 40px);
  margin: 0 auto;
}

/* --------------------------------------------------------------------------
   顶部导航
   -------------------------------------------------------------------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(11, 13, 20, 0.72);
  border-bottom: 1px solid var(--line);
}
.nav .wrap {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 64px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
  color: var(--text);
  letter-spacing: 0.2px;
}
.brand:hover { text-decoration: none; }
.brand img { width: 30px; height: 30px; }
.nav-links {
  display: flex;
  gap: 4px;
  margin-left: auto;
  list-style: none;
  padding: 0;
  margin-block: 0;
}
.nav-links a {
  display: block;
  padding: 6px 12px;
  border-radius: 999px;
  color: var(--text-2);
  font-size: 14px;
  transition: background 0.15s, color 0.15s;
}
.nav-links a:hover, .nav-links a.active {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  text-decoration: none;
}
.nav-gh {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}
.nav-gh:hover { background: rgba(255, 255, 255, 0.06); text-decoration: none; }
.nav-lang {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--text-2);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}
.nav-lang:hover { color: var(--text); background: rgba(255, 255, 255, 0.06); text-decoration: none; }
.nav-toggle {
  display: none;
  margin-left: auto;
  background: none;
  border: 1px solid var(--line-strong);
  color: var(--text);
  border-radius: 8px;
  width: 40px;
  height: 36px;
  font-size: 18px;
  cursor: pointer;
}

/* --------------------------------------------------------------------------
   通用 section / 标题
   -------------------------------------------------------------------------- */
section { padding: 96px 0; }
section + section { border-top: 1px solid var(--line); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: linear-gradient(90deg, var(--orange), var(--orange-2));
  border-radius: 2px;
}
h1, h2, h3, h4 { margin: 0; line-height: 1.25; font-weight: 700; letter-spacing: -0.01em; }
h2 { font-size: clamp(28px, 3.6vw, 40px); margin-bottom: 14px; }
h3 { font-size: 20px; }
.lead {
  font-size: 17px;
  color: var(--text-2);
  max-width: 760px;
  margin: 0 0 44px;
}
.section-head { max-width: 800px; }

.grid {
  display: grid;
  gap: 18px;
}
/* 长代码 / 长 URL 不许把 grid 列撑得比视口还宽 */
.grid > *, .mech > *, .rules-layout > *, .cli-grid > *, .steps > *, .limits > *,
.ui-tour > *, .hero .wrap > *, .feature-list > * { min-width: 0; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  transition: transform 0.2s, border-color 0.2s, background 0.2s;
}
.card:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  background: rgba(22, 26, 38, 0.95);
}
.card h3 { margin-bottom: 8px; font-size: 17px; }
.card p { margin: 0; color: var(--text-2); font-size: 14.5px; }
.card .icon {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  font-size: 20px;
  background: linear-gradient(135deg, rgba(255, 157, 67, 0.22), rgba(236, 86, 21, 0.12));
  border: 1px solid rgba(255, 157, 67, 0.28);
}
.card .icon.blue {
  background: linear-gradient(135deg, rgba(79, 140, 255, 0.22), rgba(79, 140, 255, 0.08));
  border-color: rgba(79, 140, 255, 0.3);
}
.card .icon.green {
  background: linear-gradient(135deg, rgba(61, 220, 151, 0.2), rgba(61, 220, 151, 0.06));
  border-color: rgba(61, 220, 151, 0.3);
}
.card .icon.purple {
  background: linear-gradient(135deg, rgba(180, 140, 255, 0.22), rgba(180, 140, 255, 0.06));
  border-color: rgba(180, 140, 255, 0.3);
}
.card .icon.red {
  background: linear-gradient(135deg, rgba(255, 95, 109, 0.22), rgba(255, 95, 109, 0.06));
  border-color: rgba(255, 95, 109, 0.3);
}

.tag {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  border: 1px solid transparent;
  white-space: nowrap;
}
.tag-high { color: #ff8a94; background: rgba(255, 95, 109, 0.14); border-color: rgba(255, 95, 109, 0.35); }
.tag-med { color: #ffd166; background: rgba(255, 209, 102, 0.12); border-color: rgba(255, 209, 102, 0.35); }
.tag-low { color: #3ddc97; background: rgba(61, 220, 151, 0.12); border-color: rgba(61, 220, 151, 0.35); }
.tag-info { color: #8fb4ff; background: rgba(79, 140, 255, 0.12); border-color: rgba(79, 140, 255, 0.35); }
.tag-block { color: #ff8a94; background: rgba(255, 95, 109, 0.14); border-color: rgba(255, 95, 109, 0.35); }
.tag-confirm { color: #ffd166; background: rgba(255, 209, 102, 0.12); border-color: rgba(255, 209, 102, 0.35); }
.tag-log { color: #a7adbe; background: rgba(255, 255, 255, 0.06); border-color: var(--line-strong); }
.tag-linux { color: #ffb36b; background: rgba(255, 157, 67, 0.12); border-color: rgba(255, 157, 67, 0.35); }
.tag-mac { color: #c9d1e3; background: rgba(255, 255, 255, 0.07); border-color: var(--line-strong); }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
  padding: 96px 0 72px;
  border-top: 0;
}
.hero .wrap {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 56px;
  align-items: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px 5px 6px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.04);
  font-size: 13px;
  color: var(--text-2);
  margin-bottom: 26px;
  flex-wrap: wrap;
  max-width: 100%;
}
.hero-badge b {
  color: var(--bg);
  background: linear-gradient(90deg, var(--orange), var(--orange-2));
  border-radius: 999px;
  padding: 1px 9px;
  font-size: 12px;
}
.hero h1 {
  font-size: clamp(26px, 2.5vw, 34px);
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}
.lang-en .hero h1 { font-size: clamp(24px, 2.2vw, 30px); }
.hero h1 .grad {
  white-space: nowrap;
  background: linear-gradient(90deg, #ffb36b 0%, var(--orange) 40%, var(--orange-2) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p.sub {
  font-size: 18px;
  color: var(--text-2);
  max-width: 560px;
  margin: 0 0 30px;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-bottom: 26px; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 15px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary {
  color: #1a0d05;
  background: linear-gradient(90deg, var(--orange), var(--orange-2));
  box-shadow: 0 8px 28px rgba(236, 86, 21, 0.35);
}
.btn-primary:hover { box-shadow: 0 12px 34px rgba(236, 86, 21, 0.45); }
.btn-ghost {
  color: var(--text);
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.04);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.08); }

.install-box {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px 12px 18px;
  border-radius: 10px;
  background: #0a0c12;
  border: 1px solid var(--line-strong);
  font-family: var(--mono);
  font-size: 14px;
  color: #d5d9e6;
  max-width: 560px;
}
.install-box .dollar { color: var(--orange); user-select: none; }
.install-box span.cmd { flex: 1; min-width: 0; overflow-x: auto; white-space: nowrap; }
.copy-btn {
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  color: var(--text-2);
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 12px;
  font-family: var(--font);
  cursor: pointer;
}
.copy-btn:hover { color: var(--text); background: rgba(255, 255, 255, 0.1); }
.copy-btn.ok { color: var(--green); border-color: rgba(61, 220, 151, 0.4); }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, auto);
  gap: 20px;
  margin-top: 30px;
  max-width: 560px;
}
.hero-stats div b {
  display: block;
  font-size: 26px;
  font-weight: 700;
  line-height: 1.1;
  background: linear-gradient(90deg, #fff, #c9d1e3);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-stats div span { font-size: 13px; color: var(--text-3); }

.hero-visual { position: relative; }
.hero-shot {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow);
  background: var(--bg-2);
  transform: perspective(1400px) rotateY(-6deg) rotateX(2deg);
  transition: transform 0.4s ease;
}
.hero-shot:hover { transform: perspective(1400px) rotateY(0) rotateX(0); }
.hero-shot img { display: block; width: 100%; height: auto; }
.hero-shot .titlebar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 12px;
  background: #141826;
  border-bottom: 1px solid var(--line);
}
.hero-shot .titlebar i {
  width: 11px; height: 11px; border-radius: 50%; display: block;
}
.hero-shot .titlebar i:nth-child(1) { background: #ff5f57; }
.hero-shot .titlebar i:nth-child(2) { background: #febc2e; }
.hero-shot .titlebar i:nth-child(3) { background: #28c840; }
.hero-shot .titlebar span {
  margin-left: 10px;
  font-size: 12px;
  color: var(--text-3);
  font-family: var(--mono);
}
.float-card {
  position: absolute;
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(16, 19, 28, 0.92);
  border: 1px solid var(--line-strong);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  font-size: 13px;
  backdrop-filter: blur(10px);
  animation: floaty 6s ease-in-out infinite;
}
.float-card b { display: block; font-size: 12px; color: var(--text-3); font-weight: 500; margin-bottom: 4px; }
.float-card code { white-space: nowrap; }
.float-1 { left: -28px; bottom: 36px; }
.float-2 { right: -22px; top: 30px; animation-delay: -3s; }
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* --------------------------------------------------------------------------
   痛点
   -------------------------------------------------------------------------- */
.pain-card {
  position: relative;
  padding-top: 28px;
}
.pain-card .num {
  position: absolute;
  top: 14px;
  right: 18px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-3);
}
.pain-card .fix {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed var(--line-strong);
  font-size: 14px;
  color: var(--text);
}
.pain-card .fix::before {
  content: "CC-Monitor 的做法 → ";
  color: var(--green);
  font-weight: 600;
}
.lang-en .pain-card .fix::before { content: "What CC-Monitor does → "; }

/* --------------------------------------------------------------------------
   架构图
   -------------------------------------------------------------------------- */
.arch {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  overflow-x: auto;
  margin-bottom: 40px;
}
.arch svg { width: 100%; min-width: 760px; height: auto; display: block; }
.arch .lbl { fill: var(--text); font-size: 13px; font-weight: 600; font-family: var(--font); }
.arch .sub { fill: var(--text-2); font-size: 11px; font-family: var(--mono); }
.arch .box { fill: rgba(22, 26, 38, 0.9); stroke: rgba(255, 255, 255, 0.16); rx: 10; }
.arch .box.orange { stroke: rgba(255, 157, 67, 0.6); }
.arch .box.blue { stroke: rgba(79, 140, 255, 0.6); }
.arch .box.green { stroke: rgba(61, 220, 151, 0.6); }
.arch .box.purple { stroke: rgba(180, 140, 255, 0.6); }
.arch .flow { stroke: rgba(255, 255, 255, 0.35); stroke-width: 1.6; fill: none; marker-end: url(#arrow); }
.arch .flow.orange { stroke: var(--orange); }
.arch .flow.blue { stroke: var(--blue); }
.arch .flow.dashed { stroke-dasharray: 5 5; }
.arch .layer { fill: none; stroke: rgba(255, 255, 255, 0.12); stroke-dasharray: 6 6; rx: 14; }
.arch .layer-lbl { fill: var(--text-3); font-size: 11px; letter-spacing: 0.1em; font-weight: 700; font-family: var(--font); }

.mech {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.mech .card { display: flex; flex-direction: column; gap: 10px; }
.mech .card h3 { display: flex; align-items: center; gap: 10px; }
.mech .card h3 .k {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--orange);
  background: rgba(255, 157, 67, 0.1);
  border: 1px solid rgba(255, 157, 67, 0.3);
  border-radius: 5px;
  padding: 1px 7px;
  font-weight: 600;
}
.mech .card pre { font-size: 12.5px; margin-top: 6px; }
.mech .card ul { margin: 0; padding-left: 18px; color: var(--text-2); font-size: 14px; }
.mech .card li + li { margin-top: 4px; }

/* --------------------------------------------------------------------------
   规则
   -------------------------------------------------------------------------- */
.rules-layout {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 28px;
  align-items: start;
}
.stat-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 18px; }
.stat-tile {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
}
.stat-tile b { display: block; font-size: 28px; font-weight: 700; line-height: 1.1; }
.stat-tile span { font-size: 12px; color: var(--text-3); }
.stat-tile.high b { color: var(--red); }
.stat-tile.med b { color: var(--yellow); }
.stat-tile.low b { color: var(--green); }

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
th, td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
th { color: var(--text-3); font-weight: 600; font-size: 12.5px; letter-spacing: 0.04em; text-transform: uppercase; }
td { color: var(--text-2); }
td:first-child { color: var(--text); }
.table-wrap {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow-x: auto;
}
.table-wrap table { min-width: 520px; }

.rule-examples { margin-top: 18px; }
.rule-examples ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.rule-examples li {
  display: block;
  font-size: 14px;
  color: var(--text-2);
}
.rule-examples li .tag { min-width: 52px; text-align: center; margin-right: 8px; vertical-align: 1px; }

/* --------------------------------------------------------------------------
   Web UI 导览（tab 切换）
   -------------------------------------------------------------------------- */
.ui-tour {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 24px;
  align-items: start;
}
.ui-tabs {
  position: sticky;
  top: 84px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 8px;
}
.ui-tabs button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  text-align: left;
  background: none;
  border: 1px solid transparent;
  border-radius: 9px;
  padding: 10px 12px;
  color: var(--text-2);
  font: inherit;
  font-size: 14.5px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.ui-tabs button .em { width: 22px; text-align: center; }
.ui-tabs button:hover { background: rgba(255, 255, 255, 0.05); color: var(--text); }
.ui-tabs button.active {
  background: linear-gradient(90deg, rgba(255, 157, 67, 0.18), rgba(236, 86, 21, 0.06));
  border-color: rgba(255, 157, 67, 0.35);
  color: var(--text);
  font-weight: 600;
}
.ui-panel { display: none; }
.ui-panel.active { display: block; animation: fadein 0.25s ease; }
@keyframes fadein { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.ui-panel .panel-head {
  display: flex;
  align-items: baseline;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.ui-panel .panel-head h3 { font-size: 24px; }
.ui-panel .panel-head .cli { font-family: var(--mono); font-size: 13px; color: var(--text-3); }
.ui-panel .purpose {
  color: var(--text-2);
  margin: 0 0 20px;
  font-size: 15.5px;
}
.ui-panel .purpose b { color: var(--orange); font-weight: 600; }
.feature-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.feature-list li {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-size: 14px;
  color: var(--text-2);
}
.feature-list li b { display: block; color: var(--text); margin-bottom: 4px; font-size: 14.5px; }
.feature-list li.wide { grid-column: 1 / -1; }
.ui-shot {
  margin-top: 20px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow);
}
.ui-shot img { display: block; width: 100%; height: auto; }
.ui-shot-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 20px; }
.ui-shot-grid figure { margin: 0; }
.ui-shot-grid figcaption { font-size: 13px; color: var(--text-3); margin-top: 8px; text-align: center; }
.ui-shot-grid .ui-shot { margin-top: 0; }
.note {
  margin-top: 16px;
  padding: 12px 16px;
  border-left: 3px solid var(--blue);
  background: rgba(79, 140, 255, 0.08);
  border-radius: 0 8px 8px 0;
  font-size: 14px;
  color: var(--text-2);
}
.note.warn { border-left-color: var(--yellow); background: rgba(255, 209, 102, 0.08); }
.note.danger { border-left-color: var(--red); background: rgba(255, 95, 109, 0.08); }

/* --------------------------------------------------------------------------
   CLI
   -------------------------------------------------------------------------- */
.cli-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 24px; align-items: start; }
.cli-grid pre { font-size: 13.5px; }
.term {
  background: #0a0c12;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.term .bar {
  display: flex; align-items: center; gap: 6px; padding: 10px 12px;
  background: #141826; border-bottom: 1px solid var(--line);
}
.term .bar i { width: 11px; height: 11px; border-radius: 50%; display: block; }
.term .bar i:nth-child(1) { background: #ff5f57; }
.term .bar i:nth-child(2) { background: #febc2e; }
.term .bar i:nth-child(3) { background: #28c840; }
.term .bar span { margin-left: 10px; font-size: 12px; color: var(--text-3); font-family: var(--mono); }
.term pre { border: 0; border-radius: 0; }
.t-time { color: #6f7689; }
.t-pre { color: #7dd3fc; }
.t-post { color: #b48cff; }
.t-block { color: #ff5f6d; font-weight: 700; }
.t-allow { color: #3ddc97; }
.t-confirm { color: #ffd166; }
.t-rule { color: #ff9d43; }

/* --------------------------------------------------------------------------
   安装步骤
   -------------------------------------------------------------------------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: step; }
.step { position: relative; }
.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  display: block;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--orange);
  margin-bottom: 10px;
  font-weight: 700;
}
.step pre { margin-top: 12px; font-size: 13px; }
.install-note { margin-top: 24px; }
.platform { margin-top: 44px; }
.platform .table-wrap table { min-width: 620px; }
.yes { color: var(--green); font-weight: 600; }
.no { color: var(--text-3); }
.partial { color: var(--yellow); font-weight: 600; }

/* --------------------------------------------------------------------------
   限制 / 免责
   -------------------------------------------------------------------------- */
.limits { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.limits ul { margin: 0; padding-left: 20px; color: var(--text-2); font-size: 14.5px; }
.limits li + li { margin-top: 10px; }
.limits li b { color: var(--text); }
.limits .card h3 { margin-bottom: 14px; }

/* --------------------------------------------------------------------------
   CTA + footer
   -------------------------------------------------------------------------- */
.cta {
  text-align: center;
  padding: 80px 0;
}
.cta .box {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 32px;
  border-radius: 20px;
  border: 1px solid rgba(255, 157, 67, 0.3);
  background:
    radial-gradient(500px 220px at 50% 0%, rgba(236, 86, 21, 0.25), transparent 70%),
    var(--panel);
}
.cta h2 { margin-bottom: 10px; }
.cta p { color: var(--text-2); margin: 0 0 26px; }
.cta .install-box { margin: 0 auto 20px; }

footer {
  border-top: 1px solid var(--line);
  padding: 36px 0;
  color: var(--text-3);
  font-size: 13.5px;
}
footer .wrap { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; align-items: center; }
footer a { color: var(--text-2); }
footer .links { display: flex; gap: 18px; flex-wrap: wrap; }

/* --------------------------------------------------------------------------
   滚动进场
   -------------------------------------------------------------------------- */
.js-reveal .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.js-reveal .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js-reveal .reveal { opacity: 1; transform: none; transition: none; }
  .float-card { animation: none; }
  html { scroll-behavior: auto; }
}

/* --------------------------------------------------------------------------
   响应式
   -------------------------------------------------------------------------- */
@media (max-width: 1020px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .hero .wrap { grid-template-columns: 1fr; gap: 40px; }
  .hero-shot { transform: none; }
  .float-1 { left: 8px; bottom: -14px; }
  .float-2 { right: 8px; top: -14px; }
  .rules-layout, .cli-grid, .limits { grid-template-columns: 1fr; }
  .ui-tour { grid-template-columns: 1fr; }
  .ui-tabs { position: static; flex-direction: row; flex-wrap: wrap; }
  .ui-tabs button { width: auto; }
  .steps { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .nav-links, .nav .nav-gh { display: none; }
  .nav-lang { margin-left: auto; }
  .nav-toggle { margin-left: 0; }
  .nav-toggle { display: block; }
  .nav.open .nav-links {
    display: flex;
    flex-direction: column;
    position: absolute;
    left: 0; right: 0; top: 64px;
    padding: 10px 20px 16px;
    background: rgba(11, 13, 20, 0.97);
    border-bottom: 1px solid var(--line);
  }
  .nav.open .nav-links a { padding: 10px 12px; }
}
@media (max-width: 640px) {
  section { padding: 64px 0; }
  .hero { padding: 56px 0 48px; }
  .grid-2, .grid-3, .grid-4, .mech, .feature-list, .ui-shot-grid { grid-template-columns: 1fr; }
  .stat-tiles { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .stat-tile b { font-size: 22px; }
  .float-card { display: none; }
  .hero-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .h1-brk { display: none; }
  .cta .box { padding: 32px 18px; }
}
