/* ==========================================================================
   琉璃控制台 · 涂鸦风格视觉层
   纯 CSS：喷漆噪点 / 撕纸卡片 / 硬阴影 / 手写排版 / 霓虹喷点
   ========================================================================== */

:root {
  --ink: #0b0b0f;
  --ink-2: #17171d;
  --paper: #f7f2e4;
  --paper-2: #efe8d5;
  --lime: #c9ff3d;
  --pink: #ff2f87;
  --cyan: #25e6ff;
  --orange: #ff8a1f;
  --purple: #a06bff;
  --muted: #8b8b96;
  --hand: "Permanent Marker", "Comic Sans MS", "Chalkboard SE", "STKaiti", "KaiTi", "楷体", "Kaiti SC", cursive;
  --mono: "JetBrains Mono", "Cascadia Mono", Consolas, "Courier New", monospace;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  min-height: 100vh;
  background:
    radial-gradient(circle at 12% 8%, rgba(201, 255, 61, .16), transparent 42%),
    radial-gradient(circle at 88% 4%, rgba(255, 47, 135, .16), transparent 40%),
    radial-gradient(circle at 78% 86%, rgba(37, 230, 255, .12), transparent 45%),
    radial-gradient(circle at 8% 82%, rgba(160, 107, 255, .14), transparent 42%),
    repeating-linear-gradient(46deg, rgba(255, 255, 255, .022) 0 2px, transparent 2px 7px),
    #101014;
  color: #f4f1e8;
  font-family: var(--hand);
  font-size: 16px;
  overflow-x: hidden;
}

/* 喷漆噪点 + 网点 */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    radial-gradient(rgba(255, 255, 255, .055) 1px, transparent 1.6px);
  background-size: 7px 7px;
  mix-blend-mode: screen;
  opacity: .7;
}

/* 手绘涂鸦层（SVG 由 base.html 注入） */
.doodle-layer {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: .5;
}

.spray {
  position: fixed;
  border-radius: 50%;
  filter: blur(52px);
  pointer-events: none;
  z-index: 0;
  opacity: .5;
}
.spray.a { width: 380px; height: 380px; left: -120px; top: -80px; background: rgba(201, 255, 61, .55); }
.spray.b { width: 320px; height: 320px; right: -90px; top: 120px; background: rgba(255, 47, 135, .5); }
.spray.c { width: 420px; height: 420px; left: 40%; bottom: -180px; background: rgba(37, 230, 255, .35); }

.wrap {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: 28px 0 80px;
}

/* ---------------------------------------------------------------- 顶部导航 */
.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 20px;
  background: rgba(11, 11, 15, .88);
  border-bottom: 3px solid #000;
  box-shadow: 0 4px 0 rgba(201, 255, 61, .55);
  backdrop-filter: blur(6px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 1px;
  color: var(--lime);
  transform: rotate(-1.2deg);
  text-shadow: 2px 2px 0 #000;
  text-decoration: none;
}

.brand .blob {
  width: 30px;
  height: 30px;
  background: var(--pink);
  border: 3px solid #000;
  border-radius: 46% 54% 38% 62% / 52% 40% 60% 48%;
  box-shadow: 3px 3px 0 #000;
  transform: rotate(8deg);
}

.nav { display: flex; gap: 8px; flex-wrap: wrap; margin-left: auto; }

.nav a, .nav button {
  font-family: var(--hand);
  font-size: 14px;
  font-weight: 800;
  color: #0b0b0f;
  text-decoration: none;
  background: var(--paper);
  border: 2.5px solid #000;
  border-radius: 12px 5px 12px 5px;
  padding: 6px 12px;
  transform: rotate(-.8deg);
  box-shadow: 3px 3px 0 #000;
  cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}
.nav a:nth-child(even), .nav button:nth-child(even) { transform: rotate(.9deg); }
.nav a:hover, .nav button:hover { background: var(--lime); transform: translate(2px, 2px) rotate(0); box-shadow: 1px 1px 0 #000; }
.nav a.on { background: var(--lime); }

/* ------------------------------------------------------------------ 标题 */
.graffiti {
  margin: 0;
  font-size: clamp(34px, 6vw, 74px);
  line-height: .95;
  letter-spacing: 2px;
  color: var(--lime);
  -webkit-text-stroke: 3px #000;
  paint-order: stroke fill;
  text-shadow: 6px 6px 0 #000, 11px 11px 0 rgba(255, 47, 135, .38);
  transform: rotate(-2deg);
}

.kicker {
  display: inline-block;
  font-size: 13px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #0b0b0f;
  background: var(--cyan);
  border: 2.5px solid #000;
  padding: 4px 12px;
  transform: rotate(-1.4deg);
  box-shadow: 3px 3px 0 #000;
  font-weight: 900;
}

.marker {
  display: inline-block;
  position: relative;
}
.marker::after {
  content: "";
  position: absolute;
  left: -4px;
  right: -4px;
  bottom: 2px;
  height: 10px;
  background: rgba(255, 138, 31, .75);
  transform: rotate(-1.2deg) skewX(-14deg);
  z-index: -1;
}

/* --------------------------------------------------------------- 通用纸卡 */
.card {
  position: relative;
  background: var(--paper);
  color: #14141a;
  border: 3px solid #000;
  border-radius: 18px 7px 16px 9px;
  box-shadow: 9px 9px 0 #000;
  padding: 20px;
  transform: rotate(-.55deg);
  transition: transform .16s ease, box-shadow .16s ease;
}
.card:nth-child(even) { transform: rotate(.65deg); }
.card:hover { transform: rotate(0) translateY(-3px); box-shadow: 12px 12px 0 #000; }

.card .tape {
  position: absolute;
  top: -13px;
  left: 26px;
  width: 96px;
  height: 24px;
  background: rgba(201, 255, 61, .8);
  border-left: 1px dashed rgba(0, 0, 0, .25);
  border-right: 1px dashed rgba(0, 0, 0, .25);
  transform: rotate(-5deg);
  z-index: 3;
}
.card:nth-child(even) .tape { left: auto; right: 30px; transform: rotate(4deg); background: rgba(255, 47, 135, .7); }

.card h3 { margin: 6px 0 6px; font-size: 21px; letter-spacing: .5px; }
.card p { margin: 4px 0; color: #3a3a44; font-size: 14px; line-height: 1.55; }

.grid { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid.tight { gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

/* ----------------------------------------------------------------- 按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--hand);
  font-size: 15px;
  font-weight: 900;
  letter-spacing: .4px;
  background: var(--lime);
  color: #0b0b0f;
  border: 3px solid #000;
  border-radius: 14px 6px 14px 6px;
  padding: 10px 16px;
  box-shadow: 5px 5px 0 #000;
  cursor: pointer;
  text-decoration: none;
  transform: rotate(-1deg);
  transition: transform .12s ease, box-shadow .12s ease, filter .12s ease;
}
.btn:hover { transform: translate(3px, 3px) rotate(-1deg); box-shadow: 1px 1px 0 #000; }
.btn:active { transform: translate(5px, 5px) rotate(-1deg); box-shadow: 0 0 0 #000; }
.btn.pink { background: var(--pink); color: #fff; }
.btn.cyan { background: var(--cyan); }
.btn.orange { background: var(--orange); }
.btn.ghost { background: #fff; }
.btn.sm { font-size: 12.5px; padding: 6px 10px; box-shadow: 3px 3px 0 #000; border-width: 2.5px; }
.btn.big { font-size: 20px; padding: 16px 28px; box-shadow: 8px 8px 0 #000; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }

/* ------------------------------------------------------------------ 标签 */
.tags { display: flex; flex-wrap: wrap; gap: 7px; }
.tag {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: .3px;
  padding: 3px 9px;
  border: 2px solid #000;
  border-radius: 10px 4px 10px 4px;
  background: #fff;
  color: #0b0b0f;
  transform: rotate(-1deg);
}
.tag.lime { background: var(--lime); }
.tag.pink { background: var(--pink); color: #fff; }
.tag.cyan { background: var(--cyan); }
.tag.orange { background: var(--orange); }
.tag.purple { background: var(--purple); color: #fff; }
.tag.dark { background: #14141a; color: #fff; }

/* ------------------------------------------------------------------ 首页 */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: 34px;
  align-items: center;
  padding: 40px 0 24px;
}
@media (max-width: 900px) { .hero { grid-template-columns: 1fr; padding-top: 24px; } }

.hero .lead {
  font-size: 17px;
  line-height: 1.7;
  color: #cfcabd;
  max-width: 46ch;
  margin: 18px 0 22px;
}
.hero .lead b { color: var(--lime); }

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

.hero-sticker {
  position: relative;
  background: var(--paper);
  border: 3px solid #000;
  box-shadow: 12px 12px 0 #000;
  border-radius: 24px 8px 22px 10px;
  padding: 14px;
  transform: rotate(2.4deg);
}
.hero-sticker .shot { display: block; width: 100%; border: 3px solid #000; border-radius: 14px; }
.hero-sticker .cap {
  margin-top: 10px;
  font-size: 12px;
  color: #34343c;
  display: flex;
  justify-content: space-between;
}
.hero-sticker .pin {
  position: absolute;
  top: -16px;
  right: 28px;
  width: 54px;
  height: 20px;
  background: rgba(255, 47, 135, .78);
  transform: rotate(-8deg);
  border: 1px dashed rgba(0, 0, 0, .3);
}

.stats { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 26px; }
.stat {
  background: #0b0b0f;
  border: 3px solid var(--lime);
  border-radius: 14px 5px 14px 5px;
  padding: 10px 16px;
  box-shadow: 5px 5px 0 rgba(201, 255, 61, .5);
  transform: rotate(-1.5deg);
}
.stat:nth-child(even) { border-color: var(--pink); box-shadow: 5px 5px 0 rgba(255, 47, 135, .45); transform: rotate(1.4deg); }
.stat b { display: block; font-size: 26px; color: var(--lime); line-height: 1; }
.stat span { font-size: 11px; letter-spacing: 2px; color: #b7b3a6; text-transform: uppercase; }

.section { margin-top: 54px; }
.section-head { display: flex; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.section-head h2 {
  margin: 0;
  font-size: clamp(24px, 3.4vw, 38px);
  color: #fff;
  -webkit-text-stroke: 2px #000;
  text-shadow: 4px 4px 0 rgba(37, 230, 255, .55);
  transform: rotate(-1deg);
  letter-spacing: 1px;
}
.section-head .hint { font-size: 12.5px; color: var(--muted); letter-spacing: 1px; }

.feature .ico {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 3px solid #000;
  border-radius: 48% 52% 40% 60% / 55% 42% 58% 45%;
  background: var(--cyan);
  box-shadow: 3px 3px 0 #000;
  font-size: 21px;
  margin-bottom: 6px;
}
.feature:nth-child(2) .ico { background: var(--pink); }
.feature:nth-child(3) .ico { background: var(--lime); }
.feature:nth-child(4) .ico { background: var(--orange); }
.feature:nth-child(5) .ico { background: var(--purple); }
.feature:nth-child(6) .ico { background: #fff; }

.shots { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 26px; }
.polaroid {
  background: #fff;
  border: 3px solid #000;
  box-shadow: 8px 8px 0 #000;
  padding: 10px 10px 16px;
  transform: rotate(-2deg);
}
.polaroid:nth-child(even) { transform: rotate(2.2deg); }
.polaroid img { display: block; width: 100%; border: 2px solid #000; }
.polaroid p { margin: 10px 0 0; text-align: center; font-size: 13px; color: #2b2b33; }

.log-item { display: flex; gap: 14px; align-items: flex-start; padding: 12px 0; border-bottom: 2px dashed rgba(0, 0, 0, .22); }
.log-item:last-child { border-bottom: 0; }
.log-item .ver { font-size: 15px; font-weight: 900; background: #14141a; color: var(--lime); padding: 3px 8px; border-radius: 8px 3px 8px 3px; }
.log-item .txt { font-size: 13px; color: #3a3a44; white-space: pre-line; line-height: 1.55; }

/* ------------------------------------------------------------------ 登录 */
.login-wrap { min-height: 100vh; display: grid; place-items: center; padding: 30px 18px; }
.login-card { width: min(430px, 100%); transform: rotate(-1.6deg); }
.login-card .graffiti { font-size: 42px; -webkit-text-stroke-width: 2.5px; }
.code-input {
  width: 100%;
  font-family: var(--mono);
  font-size: 40px;
  letter-spacing: 14px;
  text-align: center;
  padding: 14px 6px 14px 20px;
  background: #fff;
  color: #0b0b0f;
  border: 3px solid #000;
  border-radius: 14px 5px 14px 5px;
  box-shadow: inset 4px 4px 0 rgba(0, 0, 0, .08);
  outline: none;
}
.code-input:focus { background: #fffde9; box-shadow: 4px 4px 0 var(--pink); }
.err {
  margin: 12px 0 0;
  background: #ff2f87;
  color: #fff;
  border: 2.5px solid #000;
  border-radius: 10px 4px 10px 4px;
  padding: 8px 12px;
  font-size: 13px;
  transform: rotate(-.6deg);
}
.hintline { font-size: 12px; color: var(--muted); margin-top: 14px; line-height: 1.6; }

/* ------------------------------------------------------------------ 后台 */
.admin-head {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  padding: 26px 0 8px;
}
.tabs { display: flex; gap: 8px; flex-wrap: wrap; padding: 14px 0 8px; }
.tabs a {
  font-size: 14px;
  font-weight: 900;
  color: #0b0b0f;
  background: var(--paper);
  border: 3px solid #000;
  border-radius: 16px 6px 16px 6px;
  padding: 8px 16px;
  text-decoration: none;
  box-shadow: 4px 4px 0 #000;
  transform: rotate(-1deg);
}
.tabs a:nth-child(even) { transform: rotate(1deg); }
.tabs a.active { background: var(--lime); box-shadow: 1px 1px 0 #000; transform: translate(3px, 3px) rotate(0); }

.panel { margin-top: 22px; }

.item {
  position: relative;
  background: var(--paper);
  color: #14141a;
  border: 3px solid #000;
  border-radius: 16px 6px 14px 8px;
  box-shadow: 7px 7px 0 #000;
  padding: 16px 18px;
  transform: rotate(-.4deg);
}
.item:nth-child(even) { transform: rotate(.45deg); }
.item:hover { box-shadow: 9px 9px 0 #000; }

.item-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.item-top h4 { margin: 0; font-size: 18px; letter-spacing: .3px; }
.item .sub { font-family: var(--mono); font-size: 12px; color: #55555f; margin-top: 4px; }
.item .row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }

.dot { width: 12px; height: 12px; border: 2px solid #000; border-radius: 50%; background: #bbb; display: inline-block; }
.dot.ok { background: var(--lime); }
.dot.bad { background: var(--pink); }
.dot.warn { background: var(--orange); }

.meter { height: 8px; background: rgba(0, 0, 0, .12); border: 2px solid #000; border-radius: 6px; overflow: hidden; margin-top: 6px; }
.meter i { display: block; height: 100%; background: var(--cyan); }
.meter.disk i { background: var(--orange); }
.meter.mem i { background: var(--lime); }

.probe-out { font-family: var(--mono); font-size: 12px; white-space: pre-wrap; background: #14141a; color: #cfead0;
  border: 2.5px solid #000; border-radius: 8px; padding: 10px; margin-top: 10px; max-height: 220px; overflow: auto; }

.hr { height: 3px; background: repeating-linear-gradient(90deg, #000 0 8px, transparent 8px 14px); margin: 22px 0; opacity: .35; }

/* 表单 */
.field { margin-top: 12px; }
.field label { display: block; font-size: 12px; letter-spacing: 1px; color: #4a4a55; margin-bottom: 4px; font-weight: 800; }
.input, .select, .textarea {
  width: 100%;
  font-family: var(--hand);
  font-size: 14.5px;
  color: #0b0b0f;
  background: #fff;
  border: 2.5px solid #000;
  border-radius: 10px 4px 10px 4px;
  padding: 9px 12px;
  outline: none;
  box-shadow: 3px 3px 0 rgba(0, 0, 0, .16);
}
.textarea { min-height: 96px; resize: vertical; font-family: var(--mono); font-size: 13px; }
.input:focus, .select:focus, .textarea:focus { box-shadow: 3px 3px 0 var(--pink); background: #fffdf0; }
.form-grid { display: grid; gap: 0 16px; grid-template-columns: 1fr 1fr; }
@media (max-width: 620px) { .form-grid { grid-template-columns: 1fr; } }
.check { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.check input { width: 18px; height: 18px; accent-color: #ff2f87; }

/* 弹窗 */
.modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  place-items: center;
  padding: 18px;
  background: rgba(6, 6, 10, .74);
  backdrop-filter: blur(3px);
}
.modal.open { display: grid; }
.sheet {
  width: min(720px, 100%);
  max-height: 88vh;
  overflow: auto;
  background: var(--paper);
  color: #14141a;
  border: 4px solid #000;
  border-radius: 22px 8px 20px 10px;
  box-shadow: 14px 14px 0 rgba(0, 0, 0, .8), 0 0 0 3px var(--lime) inset;
  padding: 22px 24px 26px;
  transform: rotate(-.7deg);
  position: relative;
}
.sheet h3 { margin: 0 0 4px; font-size: 24px; letter-spacing: .5px; }
.sheet .close {
  position: absolute;
  right: 12px;
  top: 10px;
  background: var(--pink);
  color: #fff;
  border: 2.5px solid #000;
  border-radius: 50%;
  width: 34px;
  height: 34px;
  font-size: 18px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 3px 3px 0 #000;
  font-family: var(--hand);
}
.sheet-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 18px; flex-wrap: wrap; }

/* 提示 */
#toast { position: fixed; right: 20px; bottom: 22px; z-index: 90; display: flex; flex-direction: column; gap: 10px; align-items: flex-end; }
.toast {
  background: #0b0b0f;
  color: var(--lime);
  border: 3px solid var(--lime);
  border-radius: 12px 4px 12px 4px;
  padding: 10px 16px;
  font-size: 13.5px;
  box-shadow: 5px 5px 0 rgba(201, 255, 61, .35);
  transform: rotate(-1.2deg);
  max-width: 320px;
  animation: pop .22s ease;
}
.toast.bad { color: #fff; border-color: var(--pink); box-shadow: 5px 5px 0 rgba(255, 47, 135, .4); }
@keyframes pop { from { transform: translateY(12px) rotate(-1.2deg) scale(.96); opacity: 0 } to { opacity: 1 } }

.flash { margin: 14px 0; }
.flash .toast { display: inline-block; animation: none; }

/* 二维码 */
.qr-box { display: flex; gap: 18px; flex-wrap: wrap; align-items: center; }
.qr-box img { width: 168px; height: 168px; background: #fff; border: 3px solid #000; border-radius: 10px; box-shadow: 5px 5px 0 #000; }
.secret { font-family: var(--mono); font-size: 12.5px; background: #14141a; color: var(--cyan); padding: 8px 10px; border-radius: 8px; word-break: break-all; }

.footer {
  margin-top: 64px;
  padding-top: 22px;
  border-top: 3px dashed rgba(255, 255, 255, .18);
  color: var(--muted);
  font-size: 12.5px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.mono { font-family: var(--mono); }
.small { font-size: 12px; color: var(--muted); }
.center { text-align: center; }
.spacer { height: 18px; }
.hidden { display: none !important; }

@media (max-width: 640px) {
  .wrap { width: calc(100% - 24px); }
  .topbar { padding: 10px 12px; }
  .brand { font-size: 17px; }
  .graffiti { -webkit-text-stroke-width: 2px; text-shadow: 4px 4px 0 #000, 7px 7px 0 rgba(255, 47, 135, .35); }
  .card, .item { box-shadow: 6px 6px 0 #000; }
}

/* ------------------------------------------------- 表格 / 统计卡 / 柱图 */
.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.tbl th {
  text-align: left; font-size: 11px; letter-spacing: 1px; text-transform: uppercase;
  color: #55555f; padding: 6px 8px; border-bottom: 2.5px solid #000;
}
.tbl td { padding: 9px 8px; border-bottom: 2px dashed rgba(0,0,0,.16); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
@media (max-width: 760px) {
  .tbl { font-size: 12px; }
  .tbl th:nth-child(4), .tbl td:nth-child(4),
  .tbl th:nth-child(5), .tbl td:nth-child(5),
  .tbl th:nth-child(6), .tbl td:nth-child(6) { display: none; }
}

.stat-link { text-decoration: none; display: block; }
.big-num { font-size: 34px; font-weight: 900; line-height: 1; color: #14141a; }
.stat-link .sub { font-size: 12px; color: #4a4a55; margin-top: 6px; }

.bars { display: flex; align-items: flex-end; gap: 8px; height: 120px; padding: 8px 0 0; }
.bars.tall { height: 200px; }
.bar-wrap { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 6px; }
.bar {
  width: 100%; min-height: 3px; border: 2.5px solid #000; border-radius: 6px 6px 2px 2px;
  background: var(--cyan); box-shadow: 2px 2px 0 rgba(0,0,0,.5);
}
.bar-wrap:nth-child(even) .bar { background: var(--lime); }
.bar-wrap span { font-size: 10px; color: #55555f; font-family: var(--mono); }

/* ------------------------------------------------ 后台风格选择器 */
.theme-picker { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 620px) { .theme-picker { grid-template-columns: 1fr; } }
.theme-opt {
  display: block; cursor: pointer; position: relative;
  background: #fff; border: 3px solid #000; border-radius: 14px 6px 12px 8px;
  box-shadow: 4px 4px 0 #000; padding: 10px 12px 12px;
  transform: rotate(-.6deg);
}
.theme-opt:nth-child(even) { transform: rotate(.6deg); }
.theme-opt input { position: absolute; opacity: 0; }
.theme-opt b { display: block; font-size: 14px; margin-top: 8px; }
.theme-opt i { display: block; font-size: 11px; color: #666; font-style: normal; }
.theme-opt.on { border-color: var(--pink); box-shadow: 4px 4px 0 var(--pink); }
.theme-preview { display: flex; gap: 6px; height: 46px; padding: 6px; border-radius: 8px; }
.preview-graffiti { background: #101014; }
.preview-graffiti .pv-bar { width: 14px; background: var(--lime); border: 2px solid #000; border-radius: 4px; }
.preview-graffiti .pv-card { flex: 1; background: #f7f2e4; border: 2px solid #000; border-radius: 6px; transform: rotate(-2deg); }
.preview-clean { background: #f6f8fb; border: 1px solid #e5e7eb; }
.preview-clean .pv-bar { width: 14px; background: #e5e7eb; border-radius: 4px; }
.preview-clean .pv-card { flex: 1; background: #fff; border: 1px solid #e5e7eb; border-radius: 5px; }

body.theme-clean .theme-opt {
  border: 1px solid #d1d5db; box-shadow: none; transform: none; border-radius: 9px;
}
body.theme-clean .theme-opt.on { border-color: #2563eb; box-shadow: 0 0 0 3px rgba(37,99,235,.12); }
body.theme-clean .theme-opt i { color: #6b7280; }

/* ------------------------------------------------ 服务器实时指标（哪吒风格） */
.metric-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px;
  background: rgba(0,0,0,.04); border: 2px dashed rgba(0,0,0,.18);
  border-radius: 10px; padding: 10px;
}
.metric-grid .m { display: flex; flex-direction: column; gap: 2px; }
.metric-grid .m span { font-size: 10px; color: #6b6b74; letter-spacing: .5px; }
.metric-grid .m b { font-size: 14px; font-family: var(--mono); color: #14141a; }
.metric-bars { display: flex; flex-direction: column; gap: 5px; }
.metric-bars .meter { height: 7px; margin: 0; }
body.theme-clean .metric-grid { background: #f8fafc; border: 1px solid var(--line); }
body.theme-clean .metric-grid .m span { color: var(--muted); }
body.theme-clean .metric-grid .m b { color: var(--ink); font-weight: 600; }

/* ==========================================================================
   首页（Landing）· 简洁布局 + 三端自适应
   ========================================================================== */

.lp-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  min-width: 0;
  gap: 48px;
  align-items: center;
  padding: 36px 0 20px;
}

.lp-kicker {
  display: inline-block;
  padding: 4px 10px;
  border: 1px solid #e9e9ef;
  background: #fafafa;
  border-radius: 6px;
  font-size: 10.5px;
  letter-spacing: 1.4px;
  color: #8a8a93;
  font-weight: 600;
}

.lp-title {
  margin: 14px 0 10px;
  font-size: clamp(44px, 6vw, 68px);
  line-height: 1.02;
  letter-spacing: -2.4px;
  font-weight: 700;
  color: #18181b;
}

.lp-copy, .lp-visual { min-width: 0; }
.lp-lead {
  margin: 0 0 22px;
  font-size: 15.5px;
  line-height: 1.8;
  color: #52525b;
  max-width: 46ch;
}
.lp-lead b { color: #18181b; font-weight: 600; }

.lp-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

.lp-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 30px;
}

.lp-stat {
  background: #fff;
  border: 1px solid #e9e9ef;
  border-radius: 12px;
  padding: 13px 15px;
}
.lp-stat b {
  display: block;
  font-size: 21px;
  font-weight: 650;
  letter-spacing: -.6px;
  color: #18181b;
  line-height: 1.2;
}
.lp-stat b em { font-style: normal; font-size: 11px; font-weight: 500; color: #8a8a93; margin-left: 2px; }
.lp-stat span { font-size: 11px; color: #8a8a93; letter-spacing: .3px; }

/* 手机模型 */
.lp-visual { display: flex; justify-content: center; }

.brand, body.theme-clean .brand { white-space: nowrap; flex: none; }

.phone {
  width: 300px;
  max-width: 100%;
  background: #fff;
  border: 1px solid #e4e4e9;
  border-radius: 30px;
  padding: 10px;
  box-shadow: 0 18px 50px rgba(24, 24, 27, .10);
  position: relative;
}
.phone-screen { border-radius: 22px; overflow: hidden; background: #f4f4f6; }
.phone-screen img { display: block; width: 100%; }
.phone-bar {
  position: absolute;
  top: 16px; left: 50%;
  transform: translateX(-50%);
  width: 72px; height: 5px;
  border-radius: 3px;
  background: #e4e4e9;
}

/* 分区 */
.lp-section { margin-top: 66px; }
.lp-section-head { margin-bottom: 22px; }
.lp-section-head h2 {
  margin: 0 0 6px;
  font-size: clamp(21px, 2.6vw, 28px);
  font-weight: 650;
  letter-spacing: -.6px;
  color: #18181b;
}
.lp-section-head p { margin: 0; font-size: 13px; color: #8a8a93; }

/* 功能卡 */
.lp-features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.lp-feature {
  background: #fff;
  border: 1px solid #e9e9ef;
  border-radius: 14px;
  padding: 20px;
  transition: border-color .15s, box-shadow .15s;
}
.lp-feature:hover { border-color: #dcdce4; box-shadow: 0 2px 8px rgba(16,24,40,.06); }
.lp-ico {
  display: inline-grid;
  place-items: center;
  width: 36px; height: 36px;
  border-radius: 10px;
  border: 1px solid #e9e9ef;
  background: #fafafa;
  font-size: 17px;
  margin-bottom: 12px;
}
.lp-feature h3 { margin: 0 0 6px; font-size: 15px; font-weight: 600; color: #18181b; }
.lp-feature p { margin: 0; font-size: 13px; line-height: 1.7; color: #52525b; }

/* 截图 */
.lp-shots {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.lp-shot {
  margin: 0;
  background: #fff;
  border: 1px solid #e9e9ef;
  border-radius: 12px;
  padding: 10px;
  box-shadow: 0 1px 2px rgba(16,24,40,.04);
}
.lp-shot img { display: block; width: 100%; border-radius: 8px; border: 1px solid #f0f0f4; }
.lp-shot figcaption { margin-top: 9px; text-align: center; font-size: 12px; color: #8a8a93; }

/* 下载 */
.lp-download {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, .65fr);
  gap: 18px;
  align-items: start;
}

.lp-release {
  background: #fff;
  border: 1px solid #e9e9ef;
  border-radius: 14px;
  padding: 20px;
}
.lp-release-top { display: flex; align-items: flex-start; gap: 12px; }
.lp-release-top h3 { margin: 0 0 4px; font-size: 19px; font-weight: 650; letter-spacing: -.3px; }
.lp-release-top .mono { margin: 0; font-size: 12px; color: #8a8a93; }
.lp-badge {
  margin-left: auto;
  flex: none;
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
}

.lp-changelog {
  margin: 16px 0 18px;
  padding: 0;
  list-style: none;
  border-top: 1px solid #f0f0f4;
  padding-top: 14px;
}
.lp-changelog li {
  position: relative;
  padding-left: 14px;
  font-size: 13px;
  line-height: 1.85;
  color: #52525b;
}
.lp-changelog li::before {
  content: "";
  position: absolute;
  left: 0; top: 9px;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: #c4c4cc;
}

.lp-sha {
  margin: 12px 0 0;
  font-size: 10.5px;
  color: #8a8a93;
  word-break: break-all;
}

.lp-notes {
  background: #fafafa;
  border: 1px solid #e9e9ef;
  border-radius: 14px;
  padding: 20px;
}
.lp-notes h3 { margin: 0 0 10px; font-size: 14px; font-weight: 600; }
.lp-notes ul { margin: 0; padding-left: 16px; }
.lp-notes li { font-size: 12.5px; line-height: 1.9; color: #52525b; }
.lp-note-foot { margin: 12px 0 0; font-size: 11px; color: #8a8a93; }

/* ---------------- 三端自适应 ---------------- */
@media (max-width: 1024px) {
  .lp-hero { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 32px; padding-top: 24px; }
  .lp-features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lp-stats { gap: 10px; }
  .lp-stat b { font-size: 19px; }
  .lp-download { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .lp-hero { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .lp-lead { max-width: 100%; }
  .lp-visual { order: 0; }
  body.theme-clean .nav { overflow-x: auto; scrollbar-width: none; }
  body.theme-clean .nav::-webkit-scrollbar { display: none; }
  body.theme-clean .nav a, body.theme-clean .nav button { flex: none; }
  .phone { width: 240px; }
  .lp-shots { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lp-section { margin-top: 52px; }
}

@media (max-width: 768px) {
  body.theme-clean .nav { gap: 2px; }
  body.theme-clean .nav a, body.theme-clean .nav button { padding: 6px 9px; font-size: 12.5px; }
  body.theme-clean .brand { font-size: 14px; }
  .lp-title { font-size: 40px; letter-spacing: -1.4px; }
  .lp-lead { font-size: 14.5px; }
  .lp-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lp-features { grid-template-columns: 1fr; }
  .lp-actions .btn { flex: 1 1 100%; justify-content: center; text-align: center; }
  .lp-shot:last-child { display: none; }
  .lp-shots { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .lp-hero { padding-top: 14px; }
  .lp-title { font-size: 34px; }
  .lp-kicker { font-size: 9.5px; letter-spacing: 1px; }
  .lp-actions { gap: 10px; }
  .lp-actions .btn.big { width: 100%; font-size: 15px; padding: 12px 16px; }
  .lp-stat { padding: 11px 12px; }
  .lp-stat b { font-size: 18px; }
  .lp-release, .lp-notes, .lp-feature { padding: 16px; }
  .phone { width: 200px; }
}

/* ==========================================================================
   服务器卡片（哪吒风格）：状态点 + CPU 走势 + 三条占用条 + 上下行 + 四宫格
   ========================================================================== */
.srv-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.srv-actions .small { color: var(--muted, #8a8a93); }

.srv { display: flex; flex-direction: column; gap: 10px; }

.srv-head { display: flex; align-items: flex-start; gap: 8px; }
.srv-id { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.srv-id b { font-size: 15px; font-weight: 650; letter-spacing: -.2px; }
.srv-id span { font-size: 11px; color: var(--muted, #8a8a93); font-family: ui-monospace, Menlo, Consolas, monospace; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.srv-tags { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }

.srv-spark { height: 26px; }
.srv-spark svg { display: block; width: 100%; height: 26px; }
.srv-spark polyline { stroke: #12a67a; stroke-width: 1.4; stroke-linejoin: round; stroke-linecap: round; }

.srv-bars { display: flex; flex-direction: column; gap: 7px; }
.sb { display: grid; grid-template-columns: 34px 1fr 92px; align-items: center; gap: 8px; }
.sb-k { font-size: 11px; color: var(--muted, #8a8a93); }
.sb-track { display: block; height: 6px; border-radius: 999px; background: rgba(120, 120, 135, .16); overflow: hidden; }
.sb-track i { display: block; height: 100%; width: 0; border-radius: 999px; background: #12a67a; transition: width .4s ease, background .4s; }
.sb-v { font-size: 11.5px; text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }

.srv-net { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.net-item { display: flex; align-items: baseline; gap: 5px; min-width: 0; }
.net-ic { font-size: 11px; }
.net-ic.down { color: #0ea5e9; }
.net-ic.up { color: #8b5cf6; }
.net-item b { font-size: 12.5px; font-variant-numeric: tabular-nums; }
.net-sub { font-size: 10px; color: var(--muted, #8a8a93); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.srv-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; padding: 8px 0; border-top: 1px dashed rgba(120, 120, 135, .18); border-bottom: 1px dashed rgba(120, 120, 135, .18); }
.srv-stats div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.srv-stats span { font-size: 10px; color: var(--muted, #8a8a93); }
.srv-stats b { font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.srv-foot { display: flex; flex-direction: column; gap: 2px; font-size: 10.5px; color: var(--muted, #8a8a93); }
.srv-bound { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 11px; color: var(--muted, #8a8a93); }
.srv-btns { flex-wrap: wrap; gap: 6px; }
.srv-btns .btn { flex: 0 0 auto; }
.srv-more { margin-top: 8px; }
.srv-more summary { cursor: pointer; }

/* 服务器卡片：套餐规格行 */
.srv-spec {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 10px;
  font-size: 11px;
  color: var(--muted, #8a8a93);
  margin-top: -2px;
}
.srv-spec > span { white-space: nowrap; }
.srv-spec > span + span::before {
  content: "·";
  margin-right: 8px;
  opacity: .5;
}
.srv-spec .sp-plan { color: var(--ink, #18181b); font-weight: 600; }
body.theme-clean .srv-spec .sp-plan { color: var(--c-ink); }
body.theme-clean .srv-spec .sp-price { color: #0f766e; font-weight: 600; }
.srv-spec .sp-dim { opacity: .8; }

/* 服务器卡片：单节点盈亏 */
.srv-pnl {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 10px;
  font-size: 10.5px;
  color: var(--muted, #8a8a93);
  padding-top: 2px;
  border-top: 1px dashed rgba(120, 120, 135, .18);
}
.srv-pnl .pnl-pill {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 600;
}
.srv-pnl .pnl-pill.ok { background: #ecfdf5; color: #047857; border: 1px solid #a7f3d0; }
.srv-pnl .pnl-pill.bad { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }
.srv-pnl .pnl-item { white-space: nowrap; }
