/* ============================================================
   4411.site 终端皮肤 · theme-terminal.css
   用于 /models/ 与 /tools/ 等子页面：原工作台业务 HTML/JS 一律不动，
   只在原内联样式之后加载本文件，通过变量覆盖 + 选择器覆盖整体换肤。
   磷光绿体系：#0a0b0d 底 / #32f08c 主强调 / 冷白字 / 直角
   用法：<link rel="stylesheet" href="../theme-terminal.css">
         （必须放在页面所有内联 <style> 与原皮肤之后）
   ============================================================ */

:root {
  /* 底色与文字：中性冷黑 + 冷白（Trae 荧光绿体系） */
  --bg: #0a0b0d;
  --card: #0d0f11;
  --border: #262a30;
  --text: #f5f9fe;
  --muted: #a6aab5;

  /* 主强调：磷光绿；hover 加深 */
  --brand: #32f08c;
  --brand-soft: rgba(50, 240, 140, .12);

  /* 语义色 */
  --green: #32f08c;
  --green-soft: rgba(50, 240, 140, .10);
  --orange: #ffb03a;
  --orange-soft: rgba(255, 176, 58, .12);
  --red: #ff6b6b;
  --red-soft: rgba(255, 107, 107, .14);

  /* 终端形态：直角、无投影 */
  --radius: 0px;
  --shadow: none;
}

/* ---------- 页面底子：冷黑 + 极淡绿辉 + 细扫描线 ---------- */
html, body { max-width: 100%; overflow-x: hidden; }

body {
  background-color: #0a0b0d;
  background-image:
    radial-gradient(900px 480px at 82% -6%, rgba(50, 240, 140, .055), transparent 60%),
    radial-gradient(760px 460px at 6% 108%, rgba(100, 180, 255, .04), transparent 55%),
    #0a0b0d;
  background-attachment: fixed;
  color: var(--text);
}
body::after {
  content: "";
  position: fixed; inset: 0;
  z-index: 2147483000;
  pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(255, 255, 255, .012) 0 1px, rgba(255, 255, 255, 0) 1px 3px);
}

/* ---------- 玻璃感收掉，换成实面直角面板 ---------- */
.badge, .src-tab, .ov-card, .stat, .modal, .panel {
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  background: var(--card);
  border-color: var(--border);
}
.ov-card:hover, .stat:hover { border-color: rgba(50, 240, 140, .45); }

/* ---------- 标题：加一点终端的克制字距 ---------- */
h1, h2, h3 { letter-spacing: .015em; }

/* ---------- 表格：实色表头 + 磷光绿行反馈 ---------- */
thead th {
  background: #0d0f11;
  border-bottom-color: rgba(50, 240, 140, .22);
  color: var(--muted);
  font-family: ui-monospace, "SFMono-Regular", Consolas, Menlo, monospace;
  font-size: 12px;
  letter-spacing: .06em;
}
tbody td { border-bottom-color: rgba(50, 240, 140, .08); }
tbody tr:hover { background: rgba(50, 240, 140, .06); }

/* ---------- 原皮肤里硬编码的浅色，逐个换到终端值 ---------- */
.mask { background: rgba(5, 6, 8, .78); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.cap.off { background: rgba(255, 255, 255, .06); color: var(--muted); }

.codebox {
  background: #0c0f11;
  border: 1px solid rgba(50, 240, 140, .16);
  color: #d7e6dc;
}

.copybar button { background: rgba(50, 240, 140, .12); color: var(--brand); }
.copybar button:hover { background: rgba(50, 240, 140, .22); }

/* 提示条（.note + .hint） */
.note {
  background: rgba(50, 240, 140, .06);
  border-color: rgba(50, 240, 140, .2);
  color: #c3cdc6;
  line-height: 2;
  overflow-wrap: anywhere;
  word-wrap: break-word;
  word-break: break-word;
}
.note code {
  display: inline-block;
  max-width: 100%;
  line-height: 1.45;
  padding: 1px 6px;
  background: rgba(50, 240, 140, .10);
  border-color: rgba(50, 240, 140, .22);
  color: var(--brand);
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-all;
}
.note b { color: var(--brand); }

.hint { line-height: 2; }
.hint code {
  display: inline-block;
  line-height: 1.55;
  margin: 1px 0;
  padding: 1px 6px;
  background: rgba(50, 240, 140, .10);
  border: 1px solid rgba(50, 240, 140, .18);
  color: var(--brand);
  word-break: break-all;
}

.mob-kv { background: rgba(255, 255, 255, .05); }

/* 浅灰底标签/胶囊压成中性半透明 */
.pill.paid, .pill.na, .tag, .cap {
  background: rgba(255, 255, 255, .06);
  color: var(--muted);
}
.tag.in { background: rgba(50, 240, 140, .12); color: var(--brand); }

/* ---------- 滚动条 / 选中 / 链接 / 输入 ---------- */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: rgba(50, 240, 140, .22);
  border-radius: 0;
  border: 2px solid transparent;
  background-clip: content-box;
}
::-webkit-scrollbar-thumb:hover { background: rgba(50, 240, 140, .38); background-clip: content-box; }

::selection { background: rgba(50, 240, 140, .28); color: #f5f9fe; }

a { color: var(--brand); }
input, select {
  background: rgba(255, 255, 255, .04) !important;
  border-color: var(--border) !important;
  color: var(--text) !important;
}
input::placeholder { color: #5f646d; }
input:focus, select:focus, button:focus-visible, a:focus-visible {
  outline: 2px solid rgba(50, 240, 140, .8);
  outline-offset: 2px;
}

/* ---------- 页面顶部给导航留出呼吸空间 ---------- */
.wrap { padding-top: 4px; }

/* ---------- 移动端 ---------- */
@media (max-width: 560px) {
  body { padding-left: 14px; padding-right: 14px; }
}

/* ---------- 减少动效：全部静态 ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
