/* 堕忘者官网样式 · 550C 琥珀终端版
   2026.10 改版：整体换成琥珀色 CRT 终端风格（视觉参考 550C 自检程序）
   - 琥珀色终端配色 + 等宽字体
   - 全屏扫描线 + CRT 暗角
   - 卡片 / 面板加四角标记（跟 550C 的窗口边框一致）
   - 保留多页面结构、顶部导航与正常滚动
   - 背景粒子网格保留（见 site.js 的 initGrid），底色改成近黑
*/

:root {
  --bg:         #050403;
  --bg-2:       #0a0805;
  --panel:      #0d0a06;
  --panel-2:    #141008;
  --line:       #8a5e10;
  --line-soft:  rgba(232, 160, 32, .22);
  --amber:      #e8a020;
  --amber-b:    #ffc043;
  --amber-d:    #8a5e10;
  --amber-fade: rgba(232, 160, 32, .35);
  --text:       #d8c090;
  --text-hi:    #f0dfae;
  --text-dim:   #8a7248;
  --text-faint: #4a3f28;
  --red:        #e05030;
  --green:      #b8c840;
  --cyan:       #4fd1c5;
  --radius:     4px;
  --maxw:       940px;
  --mono: "SF Mono", Menlo, Monaco, Consolas, "Courier New",
          "Noto Sans Mono CJK SC", "PingFang SC", "Microsoft YaHei", monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--mono);
  font-size: 14.5px;
  line-height: 1.8;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ---------- 全屏扫描线 + CRT 暗角 ---------- */
body::before {
  content: "";
  position: fixed; top: 0; right: 0; bottom: 0; left: 0;
  pointer-events: none;
  z-index: 900;
  background: repeating-linear-gradient(to bottom,
    rgba(232, 160, 32, .035) 0, rgba(232, 160, 32, .035) 1px,
    transparent 1px, transparent 3px);
}
body::after {
  content: "";
  position: fixed; top: 0; right: 0; bottom: 0; left: 0;
  pointer-events: none;
  z-index: 899;
  background: radial-gradient(ellipse at center, transparent 45%, rgba(0, 0, 0, .82) 100%);
}

/* ---------- 背景粒子网格（由 site.js 驱动） ---------- */
#bgGrid {
  position: fixed; top: 0; right: 0; bottom: 0; left: 0;
  width: 100%; height: 100%;
  z-index: -1;
  display: block;
  pointer-events: none;
}

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

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

code {
  font-family: var(--mono);
  font-size: 12px;
  padding: 1px 5px;
  background: var(--panel-2);
  border: 1px solid var(--line);
  color: var(--amber);
}

h1, h2, h3 { font-weight: 700; letter-spacing: .06em; color: var(--text-hi); }

/* 终端光标 */
.cur {
  display: inline-block;
  width: .55em; height: 1em;
  background: var(--amber);
  vertical-align: -.12em;
  margin-left: .12em;
  box-shadow: 0 0 8px var(--amber-fade);
  animation: blink 1s steps(1) infinite;
}
@keyframes blink { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }

/* =========================================================
   顶栏
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 8, 5, .93);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .16em;
  color: var(--amber);
  text-decoration: none;
  white-space: nowrap;
  text-shadow: 0 0 12px var(--amber-fade);
}
.logo:hover { text-decoration: none; }
.logo .dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
  animation: pulse 1.6s ease-in-out infinite;
  flex: none;
}
.logo .en {
  font-size: 9px;
  letter-spacing: .22em;
  color: var(--text-faint);
  text-shadow: none;
  font-weight: 400;
}
/* 尾随光标 */
.logo::after {
  content: "█";
  font-size: 12px;
  color: var(--amber);
  animation: blink 1.1s steps(1) infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }

/* 导航 */
.nav {
  margin-left: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.nav a {
  font-size: 12px;
  letter-spacing: .12em;
  padding: 5px 10px;
  color: var(--text-dim);
  border: 1px solid transparent;
  border-radius: 2px;
  text-decoration: none;
  transition: color .18s ease, background .18s ease, border-color .18s ease;
}
.nav a:hover {
  color: var(--amber);
  border-color: var(--line);
  background: rgba(232, 160, 32, .06);
  text-decoration: none;
}
.nav a.active {
  color: var(--bg);
  background: var(--amber);
  border-color: var(--amber);
  font-weight: 700;
  box-shadow: 0 0 12px var(--amber-fade);
}

.menu-btn {
  display: none;
  margin-left: auto;
  font-family: var(--mono);
  font-size: 15px;
  line-height: 1;
  padding: 6px 11px;
  color: var(--amber);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 2px;
  cursor: pointer;
}
.menu-btn:hover { background: rgba(232, 160, 32, .08); }

/* =========================================================
   布局
   ========================================================= */
.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 28px 16px 60px;
  position: relative;
  z-index: 1;
}

.breadcrumb {
  font-size: 11.5px;
  letter-spacing: .1em;
  color: var(--text-faint);
  margin-bottom: 14px;
}
.breadcrumb a { color: var(--text-dim); }
.breadcrumb a:hover { color: var(--amber); }

.page-title {
  font-size: clamp(1.35rem, 4vw, 1.95rem);
  letter-spacing: .12em;
  color: var(--amber);
  text-shadow: 0 0 16px var(--amber-fade);
  line-height: 1.35;
}
.page-sub {
  color: var(--text-dim);
  font-size: 12.5px;
  margin-top: 10px;
  max-width: 72ch;
}

/* =========================================================
   区块
   ========================================================= */
section.block { margin-top: 42px; }

section.block > h2 {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13.5px;
  letter-spacing: .22em;
  color: var(--amber);
  padding-bottom: 9px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 4px;
  text-shadow: 0 0 10px rgba(232, 160, 32, .2);
}
section.block > h2::before {
  content: "//";
  color: var(--amber-d);
  letter-spacing: 0;
  font-weight: 400;
}

/* =========================================================
   卡片
   ========================================================= */
.grid {
  display: grid;
  gap: 12px;
  margin-top: 14px;
  grid-template-columns: repeat(auto-fit, minmax(228px, 1fr));
}

.card {
  position: relative;
  padding: 18px;
  background: var(--panel);
  border: 1px solid var(--line);
  transition: border-color .22s ease, background .22s ease, box-shadow .22s ease;
}
.card::before,
.card::after {
  content: "";
  position: absolute;
  width: 7px; height: 7px;
  border-color: var(--text-faint);
  z-index: 2;
  pointer-events: none;
  transition: border-color .22s ease;
}
.card::before { top: -1px; left: -1px; border-top: 1px solid; border-left: 1px solid; }
.card::after { bottom: -1px; right: -1px; border-bottom: 1px solid; border-right: 1px solid; }
.card:hover {
  border-color: var(--amber);
  background: var(--panel-2);
  box-shadow: 0 0 0 1px rgba(232, 160, 32, .12), inset 0 0 34px rgba(232, 160, 32, .05);
}
.card:hover::before,
.card:hover::after { border-color: var(--amber); }

.card h3 {
  font-size: 13px;
  letter-spacing: .1em;
  color: var(--amber-b);
  margin-bottom: 8px;
}
.card p { font-size: 12.5px; color: var(--text-dim); }
.card b { color: var(--text-hi); font-weight: 700; }

.card .tag {
  display: inline-block;
  font-size: 9.5px;
  letter-spacing: .2em;
  padding: 2px 7px;
  margin-bottom: 10px;
  color: var(--amber);
  border: 1px solid var(--line);
  background: rgba(232, 160, 32, .08);
}

/* 占位框 */
.placeholder {
  margin-top: 14px;
  padding: 18px;
  text-align: center;
  font-size: 12px;
  color: var(--text-faint);
  border: 1px dashed var(--line-soft);
  background: rgba(232, 160, 32, .025);
}

/* =========================================================
   键值表
   ========================================================= */
.kv {
  margin-top: 14px;
  padding: 4px 16px;
  background: var(--panel);
  border: 1px solid var(--line);
  display: grid;
  grid-template-columns: 128px 1fr;
  gap: 0 14px;
  font-size: 12.5px;
}
.kv dt { color: var(--text-faint); letter-spacing: .06em; }
.kv dd { color: var(--text); }
.kv > * { padding: 9px 0; border-bottom: 1px dotted var(--line-soft); }
.kv > *:last-child,
.kv > *:nth-last-child(2) { border-bottom: none; }

/* =========================================================
   序号列表
   ========================================================= */
.m-list {
  list-style: none;
  margin-top: 14px;
  padding: 4px 16px;
  background: var(--panel);
  border: 1px solid var(--line);
}
.m-list li {
  display: flex;
  gap: 14px;
  padding: 9px 0;
  font-size: 12.5px;
  border-bottom: 1px dotted var(--line-soft);
}
.m-list li:last-child { border-bottom: none; }
.m-list .no {
  flex: none;
  min-width: 54px;
  color: var(--amber);
  font-weight: 700;
  letter-spacing: .06em;
}
.m-list li span:last-child { color: var(--text-dim); }

/* =========================================================
   开发进度条
   ========================================================= */
.meter {
  margin-top: 14px;
  padding: 14px 16px;
  background: var(--panel);
  border: 1px solid var(--line);
}
.meter .row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  font-size: 11.5px;
  letter-spacing: .1em;
  color: var(--text-dim);
}
.meter .row span:last-child {
  font-size: 15px;
  font-weight: 700;
  color: var(--amber);
  text-shadow: 0 0 10px var(--amber-fade);
}
.meter .bar {
  position: relative;
  height: 9px;
  margin-top: 10px;
  background: #000;
  border: 1px solid var(--line);
  overflow: hidden;
}
.meter .fill {
  height: 100%;
  width: 0;
  background: repeating-linear-gradient(90deg,
    var(--amber) 0, var(--amber) 5px,
    rgba(232, 160, 32, .4) 5px, rgba(232, 160, 32, .4) 10px);
  box-shadow: 0 0 12px var(--amber-fade);
  transition: width 1.4s cubic-bezier(.22, .75, .2, 1);
}

/* =========================================================
   首屏
   ========================================================= */
.hero {
  position: relative;
  padding: 46px 26px;
  text-align: center;
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line);
  box-shadow: inset 0 0 46px rgba(232, 160, 32, .04);
}
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  width: 10px; height: 10px;
  border-color: var(--amber);
  z-index: 2;
  pointer-events: none;
}
.hero::before { top: -1px; left: -1px; border-top: 2px solid; border-left: 2px solid; }
.hero::after { bottom: -1px; right: -1px; border-bottom: 2px solid; border-right: 2px solid; }

.hero h1 {
  font-size: clamp(1.8rem, 6vw, 2.8rem);
  letter-spacing: .16em;
  color: var(--amber);
  line-height: 1.3;
  text-shadow: 0 0 20px var(--amber-fade), 0 0 46px rgba(232, 160, 32, .14);
}
.hero-en {
  margin-top: 8px;
  font-size: 10.5px;
  letter-spacing: .42em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.hero p {
  color: var(--text-dim);
  font-size: 13px;
  margin: 16px auto 0;
  max-width: 58ch;
}
.hero b { color: var(--text-hi); }

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

/* =========================================================
   按钮
   ========================================================= */
.btn {
  display: inline-block;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .14em;
  padding: 9px 18px;
  color: var(--amber);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 2px;
  cursor: pointer;
  text-decoration: none;
  transition: color .18s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.btn:hover {
  color: var(--amber-b);
  border-color: var(--amber);
  background: rgba(232, 160, 32, .08);
  box-shadow: 0 0 16px rgba(232, 160, 32, .18);
  text-decoration: none;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  color: var(--bg);
  background: var(--amber);
  border-color: var(--amber);
  font-weight: 700;
}
.btn-primary:hover {
  color: var(--bg);
  background: var(--amber-b);
  box-shadow: 0 0 22px var(--amber-fade);
}

/* =========================================================
   弹窗
   ========================================================= */
.modal {
  position: fixed; top: 0; right: 0; bottom: 0; left: 0;
  z-index: 1500;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(3, 2, 1, .88);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
}
.modal.open { display: flex; }

.modal-box {
  position: relative;
  width: 100%;
  max-width: 400px;
  padding: 30px 24px 22px;
  text-align: center;
  background: var(--panel);
  border: 1px solid var(--amber);
  box-shadow: 0 0 44px rgba(232, 160, 32, .18), inset 0 0 44px rgba(232, 160, 32, .04);
}
.modal-box::before {
  content: "// SYSTEM MESSAGE";
  position: absolute;
  top: -1px; left: -1px;
  font-size: 9px;
  letter-spacing: .18em;
  padding: 2px 8px;
  background: var(--amber);
  color: var(--bg);
}
.modal-box p {
  font-size: 13px;
  color: var(--text);
  margin: 16px 0 18px;
}

/* =========================================================
   页脚
   ========================================================= */
.site-footer {
  position: relative;
  z-index: 1;
  margin-top: 54px;
  padding: 20px 16px;
  text-align: center;
  color: var(--text-faint);
  font-size: 11.5px;
  letter-spacing: .1em;
  border-top: 1px solid var(--line);
}
.fnote { color: #3a3122; margin-top: 5px; }

/* =========================================================
   顶部滚动进度条
   ========================================================= */
.progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 0;
  z-index: 950;
  background: var(--amber);
  box-shadow: 0 0 10px var(--amber);
}

/* =========================================================
   滚动淡入（JS 可用时才隐藏内容）
   ========================================================= */
.js .reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .7s ease, transform .7s cubic-bezier(.22, .75, .2, 1);
  transition-delay: var(--d, 0ms);
}
.js .reveal.in { opacity: 1; transform: none; }

/* =========================================================
   开机动画（index.html 专用 · 与 404 同款展开效果）
   ========================================================= */
#boot {
  /* 显式写四边，不用 inset 简写：不认 inset 的浏览器会让这个盒子
     失去定位滑到左上角，开机动画就会缩在屏幕一角 */
  position: fixed; top: 0; right: 0; bottom: 0; left: 0;
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  /* 暖黑底，跟 404 的纯黑区分开 */
  background: var(--bg);
  font-family: var(--mono);
  transition: opacity .55s ease;
  /* 兜底：万一脚本彻底没跑起来，40 秒后自己消失，不至于挡住页面。
     注意别改小 —— 真机上粒子网格 + 47 个 SVG 一起跑会比较慢，
     手机渲染也慢，实际耗时会比理论值长不少，
     这里要是短于实际动画时长，就会把开机动画腰斩（横条都看不到） */
  animation: bootFallback 0s linear 40s forwards;
}
html.js #boot { display: flex; }
#boot.done { opacity: 0; pointer-events: none; }

@keyframes bootFallback {
  to { opacity: 0; visibility: hidden; pointer-events: none; }
}

#boot::before {
  content: "";
  position: absolute; top: 0; right: 0; bottom: 0; left: 0;
  pointer-events: none;
  background: repeating-linear-gradient(to bottom,
    rgba(232, 160, 32, .05) 0, rgba(232, 160, 32, .05) 1px,
    transparent 1px, transparent 3px);
}
#boot::after {
  content: "";
  position: absolute; top: 0; right: 0; bottom: 0; left: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 40%, rgba(0, 0, 0, .9) 100%);
}

.boot-stage {
  position: relative;
  z-index: 1;
  width: min(680px, 90vw);
  margin: 0 auto;
  text-align: center;
  transition: opacity .22s ease;
}

/* 标记：堕 忘 者（逐个从左往右刷出，由 site.js 驱动）
   配色刻意跟 404 区分开：
     404  = 白字 + 红 ✕  → 系统故障
     首页 = 琥珀字 + 绿 ✓ → 正常进站 */
.boot-stage svg {
  width: 100%;
  height: auto;
  overflow: visible;
}
.boot-stage svg text {
  font-family: var(--mono);
  font-weight: 700;
}
.boot-stage svg .boot-char { font-size: 130px; fill: var(--amber); }
.boot-stage svg .boot-sym  { font-size: 96px;  fill: var(--green); }

#bootLogo.finished .boot-char { animation: charGlow 2.2s ease-in-out infinite; }
#bootLogo.finished .boot-sym  { animation: symGlow 2.2s ease-in-out infinite; }
@keyframes charGlow {
  0%, 100% { filter: drop-shadow(0 0 6px rgba(232, 160, 32, .5)); }
  50%      { filter: drop-shadow(0 0 16px rgba(232, 160, 32, .95)); }
}
@keyframes symGlow {
  0%, 100% { filter: drop-shadow(0 0 8px rgba(184, 200, 64, .6)); }
  50%      { filter: drop-shadow(0 0 18px rgba(184, 200, 64, 1)); }
}

.boot-text {
  margin-top: 12px;
  font-size: 11px;
  letter-spacing: .38em;
  padding-left: .38em;
  color: rgba(232, 160, 32, .5);
  opacity: 0;
}
.boot-text.show { animation: fadeIn .6s ease forwards; }
.boot-text .cursor {
  display: inline-block;
  width: 6px; height: 11px;
  background: var(--amber);
  box-shadow: 0 0 8px var(--amber-fade);
  margin-left: 8px;
  vertical-align: -2px;
  animation: blink 1s steps(1) infinite;
}
@keyframes fadeIn { to { opacity: 1; } }

/* 终端界面：结构照搬 550C（四窗口 + 上下 HUD） */
.boot-term {
  position: absolute;
  left: 50%; top: 50%;
  -webkit-transform: translate(-50%, -50%);
          transform: translate(-50%, -50%);
  z-index: 3;
  width: min(980px, 95vw);
  height: min(600px, 84vh);
  display: flex;
  flex-direction: column;
  gap: 3px;
  opacity: 0;
  -webkit-transition: opacity .16s ease;
          transition: opacity .16s ease;
  pointer-events: none;
}
.boot-term.show { opacity: 1; }

/* 顶部 / 底部 HUD */
.bt-hud, .bt-bot {
  flex: none;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 3px 8px;
  background: linear-gradient(180deg, #141008, #0a0805);
  border: 1px solid var(--line);
  font-size: 8.5px;
  letter-spacing: .16em;
  color: var(--amber);
  overflow: hidden;
  white-space: nowrap;
}
.bt-bot { background: linear-gradient(0deg, #141008, #0a0805); color: var(--text-dim); }
.bt-brand { font-weight: 700; letter-spacing: .2em; text-shadow: 0 0 8px var(--amber-fade); }
.bt-sep { color: var(--text-faint); }
.bt-item { color: var(--text-dim); }
.bt-item b { color: var(--amber); font-weight: 400; }
.bt-spacer { flex: 1; }
.bt-live { color: var(--red); animation: blink 1s steps(1) infinite; }

/* 四窗口网格：跟 550C 一样 tele 竖跨两行 */
.bt-grid {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: 1fr 1.7fr 1fr;
  grid-template-rows: 1.1fr 1fr;
  grid-template-areas: "tele main code" "tele main node";
  gap: 3px;
}
.bt-tele { grid-area: tele; }
.bt-main { grid-area: main; }
.bt-code { grid-area: code; }
.bt-node { grid-area: node; }

.bt-win {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #080604;
  border: 1px solid var(--line);
}
.bt-head {
  flex: none;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 3px 7px;
  background: linear-gradient(180deg, #161006, #0a0805);
  border-bottom: 1px solid var(--line);
  font-size: 8.5px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--amber);
}
.bt-head i {
  flex: none;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 5px var(--green);
  animation: pulse 1.2s infinite;
}
.bt-head i.red { background: var(--red); box-shadow: 0 0 5px var(--red); }

.bt-body {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  padding: 4px 6px;
  font-size: 9.5px;
  line-height: 1.55;
  color: var(--text-dim);
}

/* 遥测键值行 */
.bt-sect {
  font-size: 8px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--amber-d);
  padding: 4px 0 2px;
  border-bottom: 1px dotted var(--amber-fade);
  margin-bottom: 2px;
}
.bt-sect:first-child { padding-top: 0; }
.bt-dt {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1px 8px;
  font-variant-numeric: tabular-nums;
}
.bt-dt .k { color: var(--text-faint); }
.bt-dt .v { color: var(--text); text-align: right; }
.bt-dt .v.ok { color: var(--green); }
.bt-dt .v.warn { color: var(--amber-b); }

/* 主终端日志 */
.bt-ln { white-space: pre-wrap; word-break: break-word; }
.bt-ln.sys { color: var(--amber); }
.bt-ln.inf { color: var(--text-dim); }
.bt-ln.warn { color: var(--amber-b); }
.bt-ln.bad { color: var(--red-b); }
.bt-ln.cmd { color: #fff; font-weight: 500; }

/* 代码流 */
.bt-code-ln { white-space: pre; color: var(--amber-d); }

/* 无人机节点矩阵 */
.bt-nodes {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(15px, 1fr));
  gap: 2px;
}
.bt-uav {
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(138, 94, 16, .5);
  color: var(--text-faint);
  transition: border-color .15s ease, color .15s ease;
}
.bt-uav svg { width: 78%; height: 78%; }
.bt-uav.on {
  border-color: var(--amber);
  color: var(--amber);
  box-shadow: 0 0 5px rgba(232, 160, 32, .5);
}

/* 底部进度条 */
.bt-prog {
  flex: none;
  width: min(200px, 34vw);
  height: 6px;
  background: #000;
  border: 1px solid var(--line);
  overflow: hidden;
}
.bt-fill {
  height: 100%;
  width: 0;
  background: var(--amber);
  box-shadow: 0 0 8px var(--amber-fade);
  transition: width .12s linear;
}
.bt-pct {
  flex: none;
  color: var(--amber);
  font-variant-numeric: tabular-nums;
}

/* 窄屏：换成 2×3 网格，四个窗口都保留 */
@media (max-width: 720px) {
  .boot-term { height: min(660px, 90vh); }
  .bt-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1.25fr 1fr 0.85fr;
    grid-template-areas: "main main" "tele code" "node node";
  }
  .bt-body { font-size: 8.5px; line-height: 1.45; }
  .bt-hud, .bt-bot { font-size: 7.5px; gap: 7px; letter-spacing: .1em; }
  .bt-node { min-height: 0; }
  .bt-nodes { grid-template-columns: repeat(auto-fill, minmax(12px, 1fr)); }
}

/* =========================================================
   移动端：动画过渡时长
   当前 site.js 的 CFG.mobileSlow = 1.0，所以这里的值和电脑一致。
   如果以后要把手机调慢/调快，这里的数值要跟着同倍数改（两边必须一致）
   ========================================================= */
@media (pointer: coarse), (max-width: 720px) {
  #boot { transition-duration: .55s; }              /* = 电脑 */
  .boot-term { transition-duration: .16s; }
  .boot-final {
    -webkit-transition: -webkit-clip-path .34s cubic-bezier(.7,0,.2,1), opacity .14s ease;
            transition: clip-path .34s cubic-bezier(.7,0,.2,1), opacity .14s ease;
  }
  .boot-final.show::before,
  .boot-final.show::after { animation-duration: .34s; }
  .boot-text.show { animation-duration: .6s; }
  .bt-fill { transition-duration: .12s; }
  .bt-uav { transition-duration: .15s; }
}

/* 结尾横条：欢迎语 */
.boot-final {
  position: absolute; left: 50%; top: 50%;
  -webkit-transform: translate(-50%, -50%);
          transform: translate(-50%, -50%);
  z-index: 5;
  padding: clamp(20px, 3.4vw, 40px) clamp(22px, 4.6vw, 78px);
  background: #0d0905;
  border-top: 1px solid var(--amber);
  border-bottom: 1px solid var(--amber);
  box-shadow: 0 0 80px rgba(232, 160, 32, .45), 0 0 180px rgba(232, 160, 32, .18),
              inset 0 0 80px rgba(232, 160, 32, .06);
  color: var(--amber-b);
  font-size: clamp(17px, 3.4vw, 42px);
  letter-spacing: .14em;
  white-space: nowrap;
  font-weight: 500;
  text-shadow: 0 0 14px rgba(255, 192, 67, .95), 0 0 40px rgba(232, 160, 32, .6);
  opacity: 0;
  -webkit-clip-path: inset(0 50% 0 50%);
          clip-path: inset(0 50% 0 50%);
  -webkit-transition: -webkit-clip-path .34s cubic-bezier(.7,0,.2,1), opacity .14s ease;
          transition: clip-path .34s cubic-bezier(.7,0,.2,1), opacity .14s ease;
  pointer-events: none;
}
.boot-final.show {
  opacity: 1;
  -webkit-clip-path: inset(0 0 0 0);
          clip-path: inset(0 0 0 0);
}
.boot-final::before,
.boot-final::after {
  content: "";
  position: absolute; top: -2px; bottom: -2px; width: 2px;
  background: var(--amber-b);
  box-shadow: 0 0 20px 4px rgba(232, 160, 32, .9);
  opacity: 0;
  pointer-events: none;
}
.boot-final::before { left: 50%; }
.boot-final::after  { right: 50%; }
.boot-final.show::before { animation: edgeLeft .34s cubic-bezier(.7,0,.2,1) forwards; }
.boot-final.show::after  { animation: edgeRight .34s cubic-bezier(.7,0,.2,1) forwards; }
@keyframes edgeLeft  { 0% { left: 50%; opacity: 1; } 90% { left: 0; opacity: 1; } 100% { left: 0; opacity: 0; } }
@keyframes edgeRight { 0% { right: 50%; opacity: 1; } 90% { right: 0; opacity: 1; } 100% { right: 0; opacity: 0; } }

/* 窄屏（≤720px）那套：菜单按钮 / 下拉导航 / 单列 kv / hero 内边距 ……
   2026.10 起全部在 styles-m.css 里，本文件用 media="(min-width:721px)"
   引入、窄屏根本不加载，所以这里不再保留一份。 */

/* =========================================================
   开机动画 iframe
   ---------------------------------------------------------
   整段开机（标记 + 终端 + 全部弹窗）照搬 550C，放在独立文件
   boot.html 里，用 iframe 全屏盖住首页 —— 这样两边样式/脚本
   完全隔离，零冲突。

   boot.html 播完后 postMessage("dwwz-boot-done")，
   index.html 里的脚本收到就把 iframe 淡出撤掉。

   注意：老的 #boot 那套样式还留在文件里没删（index.html 已经
   不再用它们了），留着不影响任何东西。
   ========================================================= */
#bootFrame {
  position: fixed;
  top: 0; right: 0; bottom: 0; left: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: #000;
  z-index: 3000;
  display: block;
  opacity: 1;
  -webkit-transition: opacity .6s ease;
          transition: opacity .6s ease;
}
#bootFrame.done {
  opacity: 0;
  pointer-events: none;
}

/* =========================================================
   无障碍：减少动态
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
  #boot { display: none !important; }
  #bootFrame { display: none !important; }
}
