@charset "UTF-8";
/* ==========================================================================
   WhatsApp 网页版 · 运行日志（Runtime Log）
   设计方向：运维控制台 / 状态面板
   深墨底 + 荧光绿单色 + 等宽字体 + 44px 网格 + 角标面板 + 行号表格
   无圆角、无阴影、无渐变装饰。所有颜色走变量。
   ========================================================================== */

:root {
  --bg: #080b0a;
  --bg-2: #0d1211;
  --panel: #101715;
  --panel-2: #141d1a;
  --line: #22312b;
  --line-2: #2e463b;
  --text: #e2ece7;
  --text-2: #a9bab2;
  --muted: #6f837a;
  --green: #6ef2a8;
  --green-dim: #2f8f5e;
  --green-soft: rgba(110, 242, 168, 0.09);
  --cyan: #4fd8c8;
  --amber: #ffb454;
  --red: #ff6b5e;

  --mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, "Courier New", monospace;
  --sans: system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", sans-serif;

  --fs-xxs: 0.6875rem;
  --fs-xs: 0.75rem;
  --fs-sm: 0.8125rem;
  --fs-base: 1rem;
  --fs-md: 1.0625rem;
  --fs-lg: 1.25rem;
  --fs-xl: clamp(1.35rem, 2.4vw, 1.75rem);
  --fs-2xl: clamp(1.7rem, 3vw, 2.4rem);
  --fs-hero: clamp(1.9rem, 4.2vw, 3.15rem);

  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.5rem;
  --sp-6: 2.25rem;
  --sp-7: 3.5rem;
  --sp-8: 5rem;

  --wrap: 1180px;
  --radius: 0px;
}

* { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: var(--fs-base);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* 网格底纹：固定层，不参与滚动 */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(110, 242, 168, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(110, 242, 168, 0.035) 1px, transparent 1px);
  background-size: 44px 44px;
}

body::after {
  content: "";
  position: fixed;
  left: 0;
  top: 0;
  width: calc(var(--prog, 1) * 100%);
  height: 2px;
  z-index: 60;
  pointer-events: none;
  background: linear-gradient(90deg, var(--green-dim), var(--green));
  box-shadow: 0 0 8px rgba(110, 242, 168, 0.45);
}

img { max-width: 100%; height: auto; }

a {
  color: var(--green);
  text-decoration: none;
  text-underline-offset: 3px;
}
a:hover { text-decoration: underline; }

strong { color: var(--text); font-weight: 700; }
em { font-style: normal; color: var(--green); }

code {
  font-family: var(--mono);
  font-size: 0.9em;
  color: var(--cyan);
  background: rgba(79, 216, 200, 0.08);
  border: 1px solid rgba(79, 216, 200, 0.18);
  padding: 0.05em 0.35em;
  white-space: nowrap;
}

ul, ol { margin: 0; padding: 0; list-style: none; }
p { margin: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; line-height: 1.25; }

.wrap {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2.5rem);
}

/* ---------- 顶部状态条 ---------- */
.statusbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #050807;
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: var(--fs-xxs);
  letter-spacing: 0.08em;
  color: var(--muted);
}
.sb-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 34px;
}
.sb-l, .sb-r { display: flex; align-items: center; gap: 0.6rem; white-space: nowrap; }
.dot {
  width: 6px; height: 6px;
  background: var(--green);
  box-shadow: 0 0 6px rgba(110, 242, 168, 0.8);
  flex: none;
}
.sb-l b { color: var(--text); font-weight: 600; }

/* ---------- 导航 ---------- */
.nav {
  position: sticky;
  top: 34px;
  z-index: 45;
  background: rgba(8, 11, 10, 0.96);
  border-bottom: 1px solid var(--line);
}
.nav-in {
  display: flex;
  align-items: stretch;
  gap: clamp(0.75rem, 2vw, 1.75rem);
  min-height: 54px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-right: 0;
  padding-right: 1rem;
  border-right: 1px solid var(--line);
  flex: none;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 30px; height: 30px;
  border: 1px solid var(--green-dim);
  color: var(--green);
  font-family: var(--mono);
  font-size: var(--fs-xs);
  letter-spacing: -0.05em;
}
.brand-text {
  font-family: var(--mono);
  font-size: var(--fs-xxs);
  letter-spacing: 0.14em;
  color: var(--text-2);
  line-height: 1.35;
}
.brand-text span { display: block; color: var(--muted); letter-spacing: 0.18em; }

.nav-links { display: flex; align-items: stretch; gap: clamp(0.5rem, 1.6vw, 1.4rem); overflow-x: auto; margin-right: auto; }
.nav-links a {
  display: flex;
  align-items: center;
  padding-block: 0.9rem;
  border-bottom: 2px solid transparent;
  color: var(--text-2);
  font-size: var(--fs-sm);
  white-space: nowrap;
}
.nav-links a:hover { color: var(--text); text-decoration: none; border-bottom-color: var(--line-2); }
.nav-links a[aria-current="page"] { color: var(--green); border-bottom-color: var(--green); }

.nav-cta {
  display: none;
  align-items: center;
  padding-inline: 0.9rem;
  border: 1px solid var(--green-dim);
  color: var(--green);
  font-family: var(--mono);
  font-size: var(--fs-xxs);
  letter-spacing: 0.1em;
  white-space: nowrap;
  margin-block: 0.7rem;
}
.nav-cta:hover { background: var(--green-soft); text-decoration: none; }

/* ---------- 首屏 ---------- */
.hero { padding-block: clamp(2.5rem, 6vw, 5rem); }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.18em;
  color: var(--green);
  margin-bottom: 1.1rem;
}
.hero-kicker::before { content: ""; width: 22px; height: 1px; background: var(--green); }

.hero h1 {
  font-size: var(--fs-hero);
  line-height: 1.08;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.hero h1 em {
  display: inline-block;
  padding: 0 0.14em;
  background: var(--green-soft);
  border-bottom: 2px solid var(--green);
}
.hero-lead {
  margin-top: 1.4rem;
  max-width: 44em;
  color: var(--text-2);
  font-size: var(--fs-md);
  line-height: 1.85;
}
.hero-acts { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 2rem; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.72rem 1.25rem;
  border: 1px solid var(--line-2);
  background: transparent;
  color: var(--text);
  font-family: var(--mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.06em;
  cursor: pointer;
}
.btn:hover { border-color: var(--green-dim); color: var(--green); text-decoration: none; }
.btn-solid { background: var(--green); border-color: var(--green); color: #04110a; font-weight: 700; }
.btn-solid:hover { background: #8bf7ba; color: #04110a; }

/* 终端面板 */
.term {
  border: 1px solid var(--line);
  background: var(--panel);
  font-family: var(--mono);
  font-size: var(--fs-sm);
}
.term-bar {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 0.8rem;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: var(--fs-xxs);
  letter-spacing: 0.1em;
}
.term-bar i { width: 6px; height: 6px; background: var(--line-2); display: block; }
.term-bar i:first-child { background: var(--green-dim); }
.term-bar span { margin-left: auto; }
.term-body { padding: 1rem; line-height: 2; color: var(--text-2); }
.term-body .ln { display: block; white-space: pre-wrap; }
.term-body .pr { color: var(--green); }
.term-body .k { color: var(--cyan); }
.term-body .dim { color: var(--muted); }
.term-body .ok { color: var(--green); }

/* ---------- 指标条 ---------- */
.strip { border-block: 1px solid var(--line); background: var(--bg-2); }
.strip-in { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.metric { padding: 1.1rem clamp(0.9rem, 2vw, 1.4rem); border-left: 1px solid var(--line); }
.metric:first-child { border-left: 0; }
.metric b {
  display: block;
  font-family: var(--mono);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--green);
  line-height: 1.3;
}
.metric span { display: block; margin-top: 0.15rem; font-size: var(--fs-xxs); color: var(--muted); line-height: 1.5; }

/* ---------- 章节 ---------- */
.sec { padding-block: clamp(2.75rem, 5.5vw, 4.5rem); }
.sec-alt { background: var(--bg-2); border-block: 1px solid var(--line); }
.sec-head { margin-bottom: clamp(1.6rem, 3vw, 2.5rem); }
.sec-no {
  display: block;
  font-family: var(--mono);
  font-size: var(--fs-xxs);
  letter-spacing: 0.22em;
  color: var(--green);
  margin-bottom: 0.6rem;
}
.sec-title { font-size: var(--fs-2xl); letter-spacing: -0.015em; text-wrap: balance; }
.sec-sub { margin-top: 0.8rem; max-width: 46em; color: var(--text-2); }

/* ---------- 时间轴 ---------- */
.timeline { border-left: 1px solid var(--line-2); margin-left: 5px; }
.tl-item { position: relative; padding: 0 0 2.1rem 1.9rem; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  content: "";
  position: absolute;
  left: -4px;
  top: 0.62em;
  width: 7px; height: 7px;
  background: var(--bg);
  border: 1px solid var(--green);
}
.tl-mark {
  display: block;
  font-family: var(--mono);
  font-size: var(--fs-xxs);
  letter-spacing: 0.16em;
  color: var(--green);
  margin-bottom: 0.3rem;
}
.tl-item h3 { font-size: var(--fs-lg); }
.tl-item p { margin-top: 0.4rem; color: var(--text-2); max-width: 42em; }
.tl-item a { font-family: var(--mono); font-size: var(--fs-xs); letter-spacing: 0.06em; }

/* ---------- 面板（带角标） ---------- */
.panel {
  position: relative;
  border: 1px solid var(--line);
  background: var(--panel);
}
.panel::before,
.panel::after {
  content: "";
  position: absolute;
  width: 9px; height: 9px;
  border: 1px solid var(--green-dim);
  pointer-events: none;
}
.panel::before { left: -1px; top: -1px; border-right: 0; border-bottom: 0; }
.panel::after { right: -1px; bottom: -1px; border-left: 0; border-top: 0; }
.panel-head {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 1rem;
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: var(--fs-xxs);
  letter-spacing: 0.14em;
  color: var(--muted);
}
.panel-head b { color: var(--green); font-weight: 600; }
.panel-head span { margin-left: auto; }
.panel-body { padding: clamp(1rem, 2.4vw, 1.6rem); }
.panel-body h3 { font-size: var(--fs-md); margin-bottom: 0.5rem; }
.panel-body p { color: var(--text-2); font-size: var(--fs-sm); }
.panel-body p + p { margin-top: 0.7rem; }

/* 卡片网格 */
.g2, .g3 { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* ---------- 步骤 ---------- */
.steps { border-top: 1px solid var(--line); }
.step {
  display: grid;
  grid-template-columns: 5.2rem minmax(0, 1fr);
  gap: clamp(0.8rem, 2.5vw, 1.8rem);
  padding-block: clamp(1.2rem, 2.4vw, 1.9rem);
  border-bottom: 1px solid var(--line);
}
.step-no {
  font-family: var(--mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.12em;
  color: var(--green);
  padding-top: 0.2rem;
}
.step h3 { font-size: var(--fs-lg); margin-bottom: 0.45rem; }
.step p { color: var(--text-2); max-width: 52em; }
.step p + p { margin-top: 0.6rem; }

/* ---------- 日志块 ---------- */
.log {
  border: 1px solid var(--line);
  background: #050807;
  padding: 1rem 1.1rem;
  font-family: var(--mono);
  font-size: var(--fs-sm);
  line-height: 2;
  color: var(--text-2);
  overflow-x: auto;
}
.log-line { display: block; white-space: pre; }
.log-line .p { color: var(--green); }
.log-line .w { color: var(--amber); }
.log-line .d { color: var(--muted); }

/* ---------- 表格 ---------- */
.tbl-wrap { overflow-x: auto; max-width: 100%; border: 1px solid var(--line); background: var(--panel); }
.tbl {
  width: 100%;
  min-width: 34rem;
  border-collapse: collapse;
  font-size: var(--fs-sm);
  text-align: left;
}
.tbl th {
  padding: 0.7rem 0.9rem;
  background: var(--panel-2);
  border-bottom: 1px solid var(--line-2);
  color: var(--text-2);
  font-family: var(--mono);
  font-size: var(--fs-xxs);
  font-weight: 600;
  letter-spacing: 0.1em;
  white-space: nowrap;
}
.tbl td {
  padding: 0.7rem 0.9rem;
  border-bottom: 1px solid var(--line);
  color: var(--text-2);
  vertical-align: top;
}
.tbl tr:last-child td { border-bottom: 0; }
.tbl td strong { color: var(--text); }
.tbl .rn {
  width: 3rem;
  color: var(--muted);
  font-family: var(--mono);
  font-size: var(--fs-xxs);
}
.tbl code { white-space: nowrap; }

/* ---------- 徽标 ---------- */
.badge {
  display: inline-block;
  padding: 0.1rem 0.45rem;
  border: 1px solid var(--line-2);
  font-family: var(--mono);
  font-size: var(--fs-xxs);
  letter-spacing: 0.08em;
  color: var(--text-2);
  white-space: nowrap;
}
.badge-ok { color: var(--green); border-color: var(--green-dim); background: var(--green-soft); }
.badge-warn { color: var(--amber); border-color: rgba(255, 180, 84, 0.4); background: rgba(255, 180, 84, 0.08); }
.badge-no { color: var(--red); border-color: rgba(255, 107, 94, 0.4); background: rgba(255, 107, 94, 0.08); }

/* ---------- 提示块 ---------- */
.note {
  border-left: 2px solid var(--green);
  background: var(--panel);
  padding: 1rem 1.1rem;
  margin-block: 1.8rem;
}
.note strong {
  display: block;
  margin-bottom: 0.4rem;
  font-family: var(--mono);
  font-size: var(--fs-xxs);
  letter-spacing: 0.14em;
  color: var(--green);
  font-weight: 600;
}
.note p { color: var(--text-2); font-size: var(--fs-sm); }
.note p + p { margin-top: 0.6rem; }

/* ---------- 问答 ---------- */
.qa { border-top: 1px solid var(--line); }
.qa details { border-bottom: 1px solid var(--line); }
.qa summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
  cursor: pointer;
  color: var(--text);
  list-style: none;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after {
  content: "+";
  font-family: var(--mono);
  color: var(--green);
  flex: none;
  line-height: 1.5;
}
.qa details[open] summary::after { content: "−"; }
.ans { padding: 0 0 1.2rem; color: var(--text-2); font-size: var(--fs-sm); }
.ans p + p { margin-top: 0.7rem; }

/* ---------- 键值表 ---------- */
.kv { border-top: 1px solid var(--line); font-size: var(--fs-sm); }
.kv > div {
  display: grid;
  grid-template-columns: 9rem minmax(0, 1fr);
  gap: 1rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--line);
}
.kv dt { font-family: var(--mono); font-size: var(--fs-xxs); letter-spacing: 0.1em; color: var(--muted); padding-top: 0.2rem; }
.kv dd { margin: 0; color: var(--text-2); }

/* ---------- 相关阅读 ---------- */
.related { margin-top: clamp(2.2rem, 4vw, 3.2rem); }
.related h2 {
  font-family: var(--mono);
  font-size: var(--fs-xxs);
  letter-spacing: 0.2em;
  color: var(--muted);
  margin-bottom: 0.8rem;
  font-weight: 600;
}
.related ul { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.related a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 0.9rem 1rem;
  background: var(--panel);
  color: var(--text-2);
  font-size: var(--fs-sm);
  line-height: 1.5;
}
.related a:hover { background: var(--panel-2); color: var(--green); text-decoration: none; }
.related a i {
  font-family: var(--mono);
  font-style: normal;
  font-size: var(--fs-xxs);
  color: var(--muted);
  flex: none;
}

/* ---------- 页面头 ---------- */
.page-head { padding-block: clamp(1.6rem, 3.5vw, 2.6rem) 0; }
.crumb {
  font-family: var(--mono);
  font-size: var(--fs-xxs);
  letter-spacing: 0.08em;
  color: var(--muted);
  padding-block: 1.1rem 0;
}
.crumb ol { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.crumb li + li::before { content: "/"; margin-right: 0.5rem; color: var(--line-2); }
.crumb a { color: var(--muted); }
.crumb a:hover { color: var(--green); }
.crumb [aria-current] { color: var(--text-2); }

.page-head h1 { font-size: var(--fs-2xl); letter-spacing: -0.015em; text-wrap: balance; }
.page-head .lead { margin-top: 1rem; max-width: 46em; color: var(--text-2); }
.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.4rem;
  margin-top: 1.3rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: var(--fs-xxs);
  letter-spacing: 0.08em;
  color: var(--muted);
}

/* ---------- 页脚 ---------- */
.foot { border-top: 1px solid var(--line); background: #050807; margin-top: clamp(2rem, 5vw, 4rem); }
.foot-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  padding-block: clamp(2rem, 4vw, 3rem);
}
.foot h2 {
  font-family: var(--mono);
  font-size: var(--fs-xxs);
  letter-spacing: 0.18em;
  color: var(--muted);
  margin-bottom: 0.9rem;
  font-weight: 600;
}
.foot p { color: var(--text-2); font-size: var(--fs-sm); max-width: 24em; }
.foot li + li { margin-top: 0.45rem; }
.foot li a { color: var(--text-2); font-size: var(--fs-sm); }
.foot li a:hover { color: var(--green); }
.foot-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.6rem;
  border-top: 1px solid var(--line);
  padding-block: 1rem;
  font-family: var(--mono);
  font-size: var(--fs-xxs);
  letter-spacing: 0.08em;
  color: var(--muted);
}

/* ---------- 404 ---------- */
.err { min-height: 58vh; display: grid; grid-template-columns: minmax(0, 1fr); place-items: center; text-align: center; padding-block: 3rem; }
.err-code { font-family: var(--mono); font-size: clamp(3.5rem, 15vw, 8rem); line-height: 1; color: var(--green); letter-spacing: -0.04em; }
.err h1 { font-size: var(--fs-xl); margin-top: 1rem; }
.err .lead { margin-top: 0.8rem; color: var(--text-2); max-width: 34em; }
.err .hero-acts { justify-content: center; }

/* ---------- 工具 ---------- */
.mono { font-family: var(--mono); }
.dim { color: var(--muted); }
.nowrap { white-space: nowrap; }
.mt-4 { margin-top: var(--sp-4); }
.mt-6 { margin-top: var(--sp-6); }

/* ---------- 响应式 ---------- */
@media (min-width: 900px) {
  .nav-cta { display: inline-flex; }
  .mnav { display: none; }
}

@media (max-width: 899px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .term { max-width: 32rem; }
  .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .related ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  .strip-in { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metric:nth-child(3) { border-left: 0; }
  .metric:nth-child(n+3) { border-top: 1px solid var(--line); }
  .g2, .g3 { grid-template-columns: minmax(0, 1fr); }
  .related ul { grid-template-columns: minmax(0, 1fr); }
  .foot-grid { grid-template-columns: minmax(0, 1fr); }
  .step { grid-template-columns: minmax(0, 1fr); gap: 0.5rem; }
  .kv > div { grid-template-columns: minmax(0, 1fr); gap: 0.2rem; }
  .brand { border-right: 0; padding-right: 0; }
  .nav-in { gap: 0.9rem; }
  .sb-r { display: none; }
}

@media (max-width: 480px) {
  .hero-acts .btn { flex: 1 1 auto; }
  .hero-acts .btn:first-child { flex: 1 1 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}
