/* =========================================================================
   1232rve.icu — 视觉系统
   深空背景 / 玻璃拟态 / 数据驱动界面 / 硬件加速动效
   不依赖任何 CDN：字体用系统栈，图形全部为 CSS + 内联 SVG
   ========================================================================= */

:root {
  /* 基底 */
  --bg-0: #04060d;
  --bg-1: #070b16;
  --bg-2: #0b1020;
  --panel: rgba(14, 20, 36, .62);
  --panel-solid: #0d1322;
  --panel-hi: rgba(28, 36, 60, .55);
  --line: rgba(120, 160, 255, .13);
  --line-hi: rgba(120, 190, 255, .3);

  /* 文字 */
  --txt: #e8edf7;
  --txt-2: #a3b0c8;
  --txt-3: #6b7893;

  /* 主色（可被用户主题色覆盖） */
  --accent: #00e5ff;
  --accent-2: #7c5cff;
  --accent-soft: rgba(0, 229, 255, .14);
  --grad-accent: linear-gradient(120deg, #00e5ff, #7c5cff);
  --ok: #2ee6a8;
  --warn: #ffb454;
  --bad: #ff5c7a;

  --r-xs: 8px;
  --r-sm: 12px;
  --r-md: 16px;
  --r-lg: 22px;
  --r-xl: 28px;

  --shadow: 0 20px 60px -20px rgba(0, 0, 0, .8);
  --glow: 0 0 0 1px var(--line-hi), 0 0 40px -10px var(--accent-soft);

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
          "Microsoft YaHei UI", "Microsoft YaHei", "Noto Sans SC", Roboto, sans-serif;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", "Cascadia Code", Consolas,
          "Liberation Mono", monospace;

  --ease: cubic-bezier(.22, 1, .36, 1);
  --fast: .18s var(--ease);
  --med: .35s var(--ease);

  --nav-h: 64px;
  --maxw: 1240px;
}

[data-theme="light"] {
  --bg-0: #eef2fa;
  --bg-1: #e7ecf7;
  --bg-2: #dde4f2;
  --panel: rgba(255, 255, 255, .72);
  --panel-solid: #ffffff;
  --panel-hi: rgba(255, 255, 255, .9);
  --line: rgba(40, 70, 140, .14);
  --line-hi: rgba(40, 90, 200, .3);
  --txt: #0d1526;
  --txt-2: #44546f;
  --txt-3: #78859c;
  --accent: #0069ff;
  --accent-2: #7c3aed;
  --accent-soft: rgba(0, 105, 255, .12);
  --grad-accent: linear-gradient(120deg, #0069ff, #7c3aed);
  --shadow: 0 20px 50px -24px rgba(30, 50, 100, .35);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.65;
  color: var(--txt);
  background: var(--bg-0);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* ---------------------------------------------------------------- 背景层 */

.bg-layer { position: fixed; inset: 0; z-index: -3; pointer-events: none; overflow: hidden; }

.bg-layer::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(1100px 620px at 78% -12%, rgba(0, 229, 255, .14), transparent 62%),
    radial-gradient(900px 560px at 8% 8%, rgba(124, 92, 255, .16), transparent 60%),
    radial-gradient(760px 520px at 50% 118%, rgba(46, 230, 168, .08), transparent 60%),
    linear-gradient(180deg, var(--bg-0), var(--bg-1) 45%, var(--bg-0));
}

/* 细网格 */
.bg-grid {
  position: fixed; inset: -40% -10% -10%;
  z-index: -2; pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(120, 190, 255, .055) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(120, 190, 255, .055) 1px, transparent 1px);
  background-size: 64px 64px;
  transform: perspective(700px) rotateX(58deg) translateY(-6%);
  transform-origin: 50% 0;
  mask-image: linear-gradient(to bottom, transparent 0, #000 22%, #000 62%, transparent 88%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 22%, #000 62%, transparent 88%);
  animation: gridDrift 26s linear infinite;
  will-change: background-position;
}
@keyframes gridDrift { to { background-position: 0 640px, 0 640px; } }

/* 星尘噪点 */
.bg-noise {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  opacity: .22; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");
}

/* 顶部扫描光 */
.bg-scan {
  position: fixed; left: 0; right: 0; top: 0; height: 2px; z-index: 60;
  background: linear-gradient(90deg, transparent, var(--accent), var(--accent-2), transparent);
  opacity: .75;
  animation: scanY 9s var(--ease) infinite;
}
@keyframes scanY {
  0% { transform: translateY(0); opacity: 0; }
  10% { opacity: .8; }
  90% { opacity: .8; }
  100% { transform: translateY(100vh); opacity: 0; }
}

/* ---------------------------------------------------------------- 布局 */

.wrap { width: min(var(--maxw), calc(100% - 40px)); margin-inline: auto; }
.stack { display: grid; gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.row { display: flex; align-items: center; gap: 10px; }
.row.between { justify-content: space-between; }
.row.wrap { flex-wrap: wrap; }
.spacer { flex: 1; }
.mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; }
.mb-0 { margin-bottom: 0; }
.muted { color: var(--txt-2); }
.dim { color: var(--txt-3); }
.mono { font-family: var(--mono); font-size: .92em; letter-spacing: -.01em; }
.center { text-align: center; }
.hide { display: none !important; }
.nowrap { white-space: nowrap; }

main { min-height: 60vh; padding: 28px 0 90px; }

@media (max-width: 900px) {
  .grid-2, .grid-3 { grid-template-columns: minmax(0, 1fr); }
  .wrap { width: calc(100% - 28px); }
}

/* ---------------------------------------------------------------- 导航 */

.nav {
  position: sticky; top: 0; z-index: 50;
  height: var(--nav-h);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  background: linear-gradient(180deg, rgba(6, 10, 20, .86), rgba(6, 10, 20, .55));
  border-bottom: 1px solid var(--line);
}
[data-theme="light"] .nav { background: rgba(255, 255, 255, .72); }

.nav-inner {
  width: min(var(--maxw), calc(100% - 40px)); margin-inline: auto;
  height: 100%; display: flex; align-items: center; gap: 18px;
}

.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; color: inherit; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 11px; flex: 0 0 auto;
  background: var(--grad-accent);
  display: grid; place-items: center;
  box-shadow: 0 0 24px -4px var(--accent-soft), inset 0 0 0 1px rgba(255, 255, 255, .22);
  position: relative; overflow: hidden;
}
.brand-mark svg { width: 20px; height: 20px; }
.brand-mark::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, .5) 48%, transparent 62%);
  transform: translateX(-120%);
  animation: shine 5.5s var(--ease) infinite;
}
@keyframes shine { 0%, 62% { transform: translateX(-120%); } 82%, 100% { transform: translateX(120%); } }
.brand-text { display: grid; line-height: 1.15; }
.brand-name { font-weight: 760; letter-spacing: -.02em; font-size: 16px; }
.brand-sub { font-family: var(--mono); font-size: 10px; color: var(--txt-3); letter-spacing: .14em; }

.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-link {
  position: relative; padding: 8px 13px; border-radius: 10px;
  color: var(--txt-2); text-decoration: none; font-size: 14px; font-weight: 550;
  transition: color var(--fast), background var(--fast);
  white-space: nowrap;
}
.nav-link:hover { color: var(--txt); background: rgba(120, 190, 255, .07); }
.nav-link.active { color: var(--txt); }
.nav-link.active::after {
  content: ""; position: absolute; left: 13px; right: 13px; bottom: 2px; height: 2px;
  border-radius: 2px; background: var(--grad-accent);
  animation: growIn .4s var(--ease);
}
@keyframes growIn { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.nav-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }

/* 搜索 */
.search {
  display: flex; align-items: center; gap: 8px;
  height: 38px; padding: 0 6px 0 12px;
  border: 1px solid var(--line); border-radius: 12px;
  background: rgba(255, 255, 255, .03);
  transition: border-color var(--fast), box-shadow var(--fast), background var(--fast);
}
.search:focus-within { border-color: var(--line-hi); box-shadow: 0 0 0 4px var(--accent-soft); background: rgba(255, 255, 255, .05); }
.search input {
  border: 0; outline: 0; background: transparent; color: var(--txt);
  width: 168px; font: inherit; font-size: 13.5px;
}
.search input::placeholder { color: var(--txt-3); }
.search svg { width: 15px; height: 15px; color: var(--txt-3); flex: 0 0 auto; }
.search .kbd { font-family: var(--mono); font-size: 10px; color: var(--txt-3); border: 1px solid var(--line); border-radius: 5px; padding: 1px 5px; }

/* 图标按钮 */
.icon-btn {
  width: 38px; height: 38px; display: grid; place-items: center;
  border-radius: 11px; border: 1px solid var(--line);
  background: rgba(255, 255, 255, .03); color: var(--txt-2);
  cursor: pointer; transition: var(--fast); position: relative;
}
.icon-btn:hover { color: var(--txt); border-color: var(--line-hi); background: rgba(120, 190, 255, .1); transform: translateY(-1px); }
.icon-btn svg { width: 17px; height: 17px; }
.icon-btn .dot {
  position: absolute; top: 7px; right: 8px; width: 7px; height: 7px; border-radius: 50%;
  background: var(--bad); box-shadow: 0 0 0 2px var(--bg-1);
  animation: pulse 1.8s infinite;
}
@keyframes pulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.35); opacity: .6; } }

/* 头像 + 菜单 */
.avatar-btn { border: 0; padding: 0; background: none; cursor: pointer; border-radius: 50%; position: relative; }
.avatar-btn img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; display: block; box-shadow: 0 0 0 2px rgba(255, 255, 255, .1); transition: var(--fast); }
.avatar-btn:hover img { box-shadow: 0 0 0 2px var(--accent); }

.menu {
  position: absolute; right: 0; top: calc(100% + 12px);
  width: 300px; padding: 8px; z-index: 70;
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--r-md); box-shadow: var(--shadow);
  backdrop-filter: blur(22px) saturate(160%);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  opacity: 0; transform: translateY(-6px) scale(.98); pointer-events: none;
  transition: opacity var(--fast), transform var(--fast);
}
.dd.open .menu { opacity: 1; transform: none; pointer-events: auto; }
.menu-item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 11px; border-radius: 10px; text-decoration: none; color: var(--txt);
  font-size: 14px; transition: background var(--fast);
}
.menu-item:hover { background: rgba(120, 190, 255, .1); }
.menu-item.locked { color: var(--txt-3); }
.menu-item .k { margin-left: auto; font-family: var(--mono); font-size: 10.5px; color: var(--txt-3); border: 1px solid var(--line); border-radius: 5px; padding: 1px 5px; }
.menu-sep { height: 1px; background: var(--line); margin: 6px 4px; }
.menu-title { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--txt-3); padding: 8px 11px 4px; font-family: var(--mono); }

.dd { position: relative; }

/* 用户菜单头部：等级卡 */
.lvl-card { padding: 12px; border-radius: 12px; background: rgba(120, 190, 255, .07); border: 1px solid var(--line); margin: 4px 4px 8px; }
.lvl-card .who { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.lvl-card .who img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; }
.lvl-card .who b { display: block; font-size: 14px; }
.lvl-card .who span { font-size: 11.5px; color: var(--txt-3); }
.bar { height: 6px; border-radius: 99px; background: rgba(120, 190, 255, .14); overflow: hidden; position: relative; }
.bar > i {
  display: block; height: 100%; border-radius: 99px; background: var(--grad-accent);
  position: relative; transition: width .6s var(--ease);
}
.bar > i::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .55), transparent);
  transform: translateX(-100%); animation: shimmer 2.4s infinite;
}
@keyframes shimmer { to { transform: translateX(100%); } }

.history {
  max-height: 190px; overflow: auto; padding: 2px 4px;
  scrollbar-width: thin; scrollbar-color: var(--line-hi) transparent;
}
.history a {
  display: block; padding: 6px 9px; border-radius: 8px; font-size: 12.8px;
  color: var(--txt-2); text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.history a:hover { background: rgba(120, 190, 255, .1); color: var(--txt); }

/* 移动端导航 */
.nav-toggle { display: none; }

@media (max-width: 1080px) {
  .nav-links { display: none; }
  .nav-toggle { display: grid; }
  .search input { width: 110px; }
  .nav.mobile-open .nav-links {
    display: flex; flex-direction: column; align-items: stretch;
    position: absolute; left: 0; right: 0; top: var(--nav-h);
    padding: 10px; gap: 4px;
    background: rgba(8, 12, 22, .96); border-bottom: 1px solid var(--line);
    backdrop-filter: blur(18px);
  }
  .nav.mobile-open .nav-link { padding: 12px 14px; }
}

/* ---------------------------------------------------------------- 按钮 */

.btn {
  --b-bg: rgba(255, 255, 255, .045);
  --b-bd: var(--line);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 38px; padding: 0 16px; border-radius: 11px;
  border: 1px solid var(--b-bd); background: var(--b-bg); color: var(--txt);
  font: inherit; font-size: 13.5px; font-weight: 600; letter-spacing: .01em;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform var(--fast), box-shadow var(--fast), background var(--fast), border-color var(--fast), color var(--fast);
  position: relative; overflow: hidden;
}
.btn:hover { transform: translateY(-1px); border-color: var(--line-hi); background: rgba(120, 190, 255, .1); }
.btn:active { transform: translateY(0) scale(.985); }
.btn svg { width: 15px; height: 15px; }

.btn-primary {
  --b-bg: var(--grad-accent);
  --b-bd: transparent;
  color: #04101a;
  box-shadow: 0 10px 30px -12px var(--accent-soft), inset 0 1px 0 rgba(255, 255, 255, .35);
}
.btn-primary:hover { filter: brightness(1.07); background: var(--grad-accent); box-shadow: 0 14px 34px -10px rgba(0, 229, 255, .45); }
[data-theme="light"] .btn-primary { color: #fff; }

.btn-ghost { --b-bg: transparent; }
.btn-soft { --b-bg: var(--accent-soft); --b-bd: var(--line-hi); }
.btn-danger { --b-bg: rgba(255, 92, 122, .12); --b-bd: rgba(255, 92, 122, .35); color: #ff8ba0; }
.btn-danger:hover { background: rgba(255, 92, 122, .2); border-color: rgba(255, 92, 122, .5); }
.btn-lg { height: 46px; padding: 0 22px; font-size: 14.5px; border-radius: 13px; }
.btn-sm { height: 30px; padding: 0 11px; font-size: 12.5px; border-radius: 9px; }
.btn-xs { height: 26px; padding: 0 9px; font-size: 12px; border-radius: 8px; gap: 5px; }
.btn-block { width: 100%; }
.btn[disabled], .btn.disabled { opacity: .42; pointer-events: none; }

.btn.on { --b-bg: var(--accent-soft); --b-bd: var(--line-hi); color: var(--accent); }
.btn.on svg { color: var(--accent); }
.btn-danger.on { --b-bg: rgba(255, 92, 122, .18); color: #ff8ba0; }

/* 涟漪 */
.ripple { position: absolute; border-radius: 50%; transform: scale(0); background: rgba(255, 255, 255, .35); animation: ripple .6s var(--ease); pointer-events: none; }
@keyframes ripple { to { transform: scale(3.5); opacity: 0; } }

/* ---------------------------------------------------------------- 卡片 / 面板 */

.card {
  position: relative;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, .035), rgba(255, 255, 255, .012)), var(--panel);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  box-shadow: var(--shadow);
  padding: 22px;
  transition: border-color var(--med), transform var(--med), box-shadow var(--med);
}
.card.hoverable:hover { border-color: var(--line-hi); transform: translateY(-3px); box-shadow: 0 28px 70px -30px rgba(0, 0, 0, .9); }
.card.flat { box-shadow: none; }
.card.pad-0 { padding: 0; overflow: hidden; }

.card-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.card-title { font-size: 15px; font-weight: 700; letter-spacing: -.01em; display: flex; align-items: center; gap: 9px; }
.card-title::before {
  content: ""; width: 4px; height: 16px; border-radius: 3px; background: var(--grad-accent);
  box-shadow: 0 0 12px var(--accent-soft);
}
.card-head .more { margin-left: auto; font-size: 12.5px; color: var(--txt-3); text-decoration: none; display: inline-flex; align-items: center; gap: 4px; }
.card-head .more:hover { color: var(--accent); }

/* 角标玻璃边 */
.glass-edge::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(140deg, rgba(255, 255, 255, .16), transparent 28%, transparent 72%, rgba(0, 229, 255, .12));
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude; -webkit-mask-composite: xor;
  padding: 1px;
}

/* HUD 角框 */
.hud { position: relative; }
.hud::before, .hud::after {
  content: ""; position: absolute; width: 16px; height: 16px; pointer-events: none;
  border: 1px solid var(--accent); opacity: .55;
}
.hud::before { top: -1px; left: -1px; border-right: 0; border-bottom: 0; border-top-left-radius: var(--r-lg); }
.hud::after { bottom: -1px; right: -1px; border-left: 0; border-top: 0; border-bottom-right-radius: var(--r-lg); }

/* ---------------------------------------------------------------- 首屏 */

.hero { position: relative; padding: 54px 0 34px; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; }
@media (max-width: 980px) { .hero-grid { grid-template-columns: minmax(0, 1fr); } .hero { padding-top: 30px; } }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  height: 30px; padding: 0 13px 0 9px; border-radius: 99px;
  border: 1px solid var(--line-hi); background: rgba(120, 190, 255, .07);
  font-size: 12px; color: var(--txt-2); letter-spacing: .04em;
}
.eyebrow .live {
  width: 7px; height: 7px; border-radius: 50%; background: var(--ok);
  box-shadow: 0 0 0 3px rgba(46, 230, 168, .18);
  animation: pulse 2s infinite;
}

.hero h1 {
  margin: 20px 0 14px;
  font-size: clamp(34px, 5.2vw, 62px);
  line-height: 1.04; letter-spacing: -.045em; font-weight: 800;
}
.hero h1 .grad {
  background: var(--grad-accent); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 26px var(--accent-soft));
}
.hero p.lead { font-size: 16.5px; color: var(--txt-2); max-width: 54ch; margin: 0 0 26px; }
.hero .cta { display: flex; flex-wrap: wrap; gap: 12px; }

.typing::after {
  content: "▍"; margin-left: 2px; color: var(--accent);
  animation: blink 1.05s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* 数据环 */
.orb-wrap { display: grid; place-items: center; position: relative; }
.orb { position: relative; width: min(360px, 78vw); aspect-ratio: 1; }
.orb .ring {
  position: absolute; inset: 0; border-radius: 50%;
  border: 1px solid rgba(120, 190, 255, .16);
}
.orb .ring.r2 { inset: 9%; border-style: dashed; animation: spin 40s linear infinite; }
.orb .ring.r3 { inset: 20%; border-color: rgba(124, 92, 255, .22); animation: spin 26s linear infinite reverse; }
.orb .ring.r4 { inset: 31%; border-color: rgba(0, 229, 255, .2); }
@keyframes spin { to { transform: rotate(360deg); } }
.orb .core {
  position: absolute; inset: 38%; border-radius: 50%;
  background: radial-gradient(circle at 34% 30%, #ffffff33, transparent 46%), var(--grad-accent);
  box-shadow: 0 0 70px -8px var(--accent), inset 0 0 30px rgba(255, 255, 255, .35);
  display: grid; place-items: center; animation: breathe 5s var(--ease) infinite;
}
@keyframes breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.045); } }
.orb .core span { font-family: var(--mono); font-size: 13px; font-weight: 700; color: #04101a; letter-spacing: .06em; text-shadow: 0 1px 0 rgba(255, 255, 255, .35); }
.orb .sat {
  position: absolute; width: 9px; height: 9px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 14px var(--accent);
}
.orb .sat.s1 { top: 4%; left: 46%; animation: orbit1 9s linear infinite; }
.orb .sat.s2 { bottom: 12%; left: 12%; background: var(--accent-2); box-shadow: 0 0 14px var(--accent-2); animation: orbit2 13s linear infinite; }
@keyframes orbit1 { from { transform: rotate(0) translateX(0); } to { transform: rotate(360deg); } }
@keyframes orbit2 { to { transform: rotate(-360deg); } }

/* ---------------------------------------------------------------- 指标 */

.metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 780px) { .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.metric {
  padding: 16px 18px; border-radius: var(--r-md);
  border: 1px solid var(--line); background: rgba(255, 255, 255, .025);
  position: relative; overflow: hidden;
}
.metric::after {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: var(--grad-accent); opacity: .8;
}
.metric .v { font-family: var(--mono); font-size: 26px; font-weight: 700; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.metric .k { font-size: 12px; color: var(--txt-3); margin-top: 2px; letter-spacing: .03em; }
.metric .d { position: absolute; right: 14px; top: 14px; font-size: 11px; color: var(--ok); font-family: var(--mono); }

/* ---------------------------------------------------------------- 标签 / 徽章 */

.chip {
  display: inline-flex; align-items: center; gap: 6px;
  height: 24px; padding: 0 10px; border-radius: 99px;
  font-size: 11.5px; font-weight: 600; letter-spacing: .02em;
  border: 1px solid var(--line); background: rgba(255, 255, 255, .04); color: var(--txt-2);
  white-space: nowrap;
}
.chip.accent { color: var(--accent); border-color: var(--line-hi); background: var(--accent-soft); }
.chip.ok { color: var(--ok); border-color: rgba(46, 230, 168, .35); background: rgba(46, 230, 168, .1); }
.chip.warn { color: var(--warn); border-color: rgba(255, 180, 84, .35); background: rgba(255, 180, 84, .1); }
.chip.bad { color: var(--bad); border-color: rgba(255, 92, 122, .35); background: rgba(255, 92, 122, .1); }
.chip .pulse-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; animation: pulse 1.8s infinite; }

.tag {
  display: inline-flex; align-items: center; height: 22px; padding: 0 9px;
  border-radius: 7px; font-size: 11.5px; font-family: var(--mono);
  background: rgba(120, 190, 255, .08); color: var(--txt-2);
  border: 1px solid var(--line);
}

.lvl {
  display: inline-grid; place-items: center; height: 19px; min-width: 30px; padding: 0 6px;
  border-radius: 6px; font-family: var(--mono); font-size: 10.5px; font-weight: 700;
  background: var(--grad-accent); color: #04101a;
}
.lvl.l0, .lvl.l1 { background: rgba(120, 190, 255, .16); color: var(--txt-2); box-shadow: none; }
.lvl.l2, .lvl.l3 { background: rgba(46, 230, 168, .2); color: var(--ok); }
.lvl.l4 { background: rgba(124, 92, 255, .24); color: #b9a6ff; }
.lvl.l5 { background: rgba(255, 180, 84, .22); color: var(--warn); }
.lvl.l6 { background: var(--grad-accent); color: #04101a; box-shadow: 0 0 16px -4px var(--accent); }

.gf { color: #ff7aa8; } .gm { color: #6cc4ff; }

/* ---------------------------------------------------------------- 项目卡 */

.proj {
  position: relative; border-radius: var(--r-lg); overflow: hidden;
  border: 1px solid var(--line); background: var(--panel);
  padding: 22px; display: flex; flex-direction: column; gap: 14px;
  transition: transform var(--med), border-color var(--med), box-shadow var(--med);
  isolation: isolate;
}
.proj::before {
  content: ""; position: absolute; inset: -1px; z-index: -1; opacity: 0;
  background: radial-gradient(420px 220px at var(--mx, 50%) var(--my, 0%), var(--pc, #00e5ff), transparent 66%);
  filter: blur(46px); transition: opacity var(--med);
}
.proj:hover { transform: translateY(-4px); border-color: var(--line-hi); box-shadow: 0 30px 70px -34px rgba(0, 0, 0, .95); }
.proj:hover::before { opacity: .3; }
.proj-top { display: flex; align-items: flex-start; gap: 12px; }
.proj-icon {
  width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; flex: 0 0 auto;
  background: color-mix(in srgb, var(--pc, #00e5ff) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--pc, #00e5ff) 34%, transparent);
  color: var(--pc, #00e5ff);
}
.proj-icon svg { width: 21px; height: 21px; }
.proj h3 { margin: 0; font-size: 17px; letter-spacing: -.02em; }
.proj .sub { font-size: 12px; color: var(--txt-3); font-family: var(--mono); letter-spacing: .03em; }
.proj p { margin: 0; color: var(--txt-2); font-size: 13.6px; }
.proj .stack { display: flex; flex-wrap: wrap; gap: 6px; }
.proj-foot { display: flex; align-items: center; gap: 10px; margin-top: auto; padding-top: 6px; }

/* 版本条 */
.rel { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; background: rgba(120, 190, 255, .05); border: 1px solid var(--line); }
.rel + .rel { margin-top: 8px; }
.rel .nm { font-size: 13.5px; font-weight: 600; }
.rel .meta { font-size: 11.5px; color: var(--txt-3); font-family: var(--mono); }

/* ---------------------------------------------------------------- 列表 / 条目 */

.item {
  display: flex; gap: 14px; padding: 15px 4px; border-bottom: 1px solid var(--line);
  transition: background var(--fast); border-radius: 10px;
}
.item:last-child { border-bottom: 0; }
.item:hover { background: rgba(120, 190, 255, .045); }
.item .body { min-width: 0; flex: 1; }
.item .t { font-weight: 600; font-size: 14.5px; color: var(--txt); text-decoration: none; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.item .t:hover { color: var(--accent); }
.item .s { font-size: 12.5px; color: var(--txt-3); margin-top: 3px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.item .idx { font-family: var(--mono); font-size: 12px; color: var(--txt-3); width: 26px; flex: 0 0 auto; padding-top: 2px; }

.linkable { cursor: pointer; }

/* 帖子卡 */
.post-card {
  position: relative; padding: 18px 20px; border-radius: var(--r-md);
  border: 1px solid var(--line); background: rgba(255, 255, 255, .022);
  cursor: pointer; transition: var(--med); overflow: hidden;
}
.post-card + .post-card { margin-top: 10px; }
.post-card:hover { border-color: var(--line-hi); background: rgba(120, 190, 255, .06); transform: translateX(3px); }
.post-card::before {
  content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 2px;
  background: var(--grad-accent); opacity: 0; transition: opacity var(--fast); border-radius: 2px;
}
.post-card:hover::before { opacity: 1; }
.post-card .pt { font-size: 15.5px; font-weight: 650; letter-spacing: -.01em; margin-bottom: 5px; line-height: 1.4; }
.post-card .pe { font-size: 13px; color: var(--txt-3); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 10px; }
.post-card .pm { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 12px; color: var(--txt-3); }
.post-card .pm .mi { display: inline-flex; align-items: center; gap: 4px; }
.post-card .pm svg { width: 13px; height: 13px; }

/* 头像 */
.av { border-radius: 50%; object-fit: cover; background: rgba(120, 190, 255, .1); display: block; flex: 0 0 auto; }
.av-xs { width: 20px; height: 20px; }
.av-sm { width: 28px; height: 28px; }
.av-md { width: 38px; height: 38px; }
.av-lg { width: 96px; height: 96px; border-radius: 26px; box-shadow: 0 0 0 3px rgba(255, 255, 255, .06), 0 20px 40px -20px rgba(0, 0, 0, .9); }

.avatar-wrap { position: relative; display: inline-block; flex: 0 0 auto; }
.avatar-wrap .gender-badge {
  position: absolute; right: -3px; bottom: -2px; width: 17px; height: 17px; border-radius: 50%;
  display: grid; place-items: center; font-size: 10px; font-weight: 700;
  background: var(--bg-2); border: 1px solid var(--line-hi);
}

.user-line { display: inline-flex; align-items: center; gap: 7px; text-decoration: none; color: var(--txt); font-weight: 600; font-size: 13.5px; }
.user-line:hover { color: var(--accent); }

/* ---------------------------------------------------------------- 表单 */

.field { display: grid; gap: 7px; }
.field > label, .lbl { font-size: 12.5px; color: var(--txt-2); font-weight: 600; letter-spacing: .02em; }
.input, .select, .textarea, textarea, input[type="text"], input[type="email"],
input[type="password"], input[type="number"], select {
  width: 100%; font: inherit; font-size: 14px; color: var(--txt);
  background: rgba(255, 255, 255, .035);
  border: 1px solid var(--line); border-radius: 11px;
  padding: 10px 13px; outline: none; min-height: 42px;
  transition: border-color var(--fast), box-shadow var(--fast), background var(--fast);
}
input:focus, select:focus, textarea:focus {
  border-color: var(--line-hi); box-shadow: 0 0 0 4px var(--accent-soft);
  background: rgba(255, 255, 255, .055);
}
input::placeholder, textarea::placeholder { color: var(--txt-3); }
textarea { resize: vertical; min-height: 120px; line-height: 1.7; }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--txt-3) 50%), linear-gradient(135deg, var(--txt-3) 50%, transparent 50%); background-position: calc(100% - 18px) 18px, calc(100% - 13px) 18px; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; padding-right: 34px; }
select option { background: var(--panel-solid); color: var(--txt); }
input[type="color"] { width: 52px; height: 42px; padding: 4px; border-radius: 11px; background: rgba(255, 255, 255, .04); border: 1px solid var(--line); cursor: pointer; }
input[type="file"] { padding: 8px; font-size: 13px; color: var(--txt-2); }
input[type="file"]::file-selector-button {
  font: inherit; font-size: 12.5px; margin-right: 10px; padding: 6px 12px; border-radius: 8px;
  border: 1px solid var(--line-hi); background: var(--accent-soft); color: var(--accent); cursor: pointer;
}
input[type="checkbox"], input[type="radio"] { accent-color: var(--accent); width: 16px; height: 16px; }

.hint { font-size: 12px; color: var(--txt-3); }
.error-text { font-size: 12.5px; color: var(--bad); }

/* 开关 */
.switch { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.switch:last-of-type { border-bottom: 0; }
.switch input { appearance: none; width: 42px; height: 24px; border-radius: 99px; background: rgba(120, 190, 255, .16); position: relative; cursor: pointer; transition: var(--fast); flex: 0 0 auto; }
.switch input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform var(--fast); }
.switch input:checked { background: var(--grad-accent); }
.switch input:checked::after { transform: translateX(18px); }

/* 认证页 */
.auth-wrap { min-height: calc(100vh - var(--nav-h) - 120px); display: grid; place-items: center; padding: 20px 0; }
.auth-card { width: min(440px, 100%); padding: 30px; }
.auth-card h2 { margin: 0 0 6px; font-size: 24px; letter-spacing: -.03em; }
.auth-card .sub { margin: 0 0 22px; color: var(--txt-3); font-size: 13.5px; }
.auth-foot { margin-top: 18px; text-align: center; font-size: 13px; color: var(--txt-3); }
.auth-foot a { color: var(--accent); text-decoration: none; }

/* 提示条 */
.flash-area { display: grid; gap: 8px; margin-bottom: 18px; }
.flash {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 15px; border-radius: 12px; font-size: 13.5px;
  border: 1px solid var(--line-hi); background: var(--accent-soft); color: var(--txt);
  animation: slideIn .4s var(--ease);
}
.flash::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); flex: 0 0 auto; box-shadow: 0 0 10px var(--accent); }
@keyframes slideIn { from { opacity: 0; transform: translateY(-8px); } }

.empty {
  text-align: center; padding: 44px 20px; color: var(--txt-3); font-size: 13.5px;
  border: 1px dashed var(--line); border-radius: var(--r-md);
}
.empty .big { font-size: 28px; margin-bottom: 8px; opacity: .5; }

/* ---------------------------------------------------------------- 帖子正文 */

.article h1 { font-size: clamp(24px, 3.4vw, 34px); line-height: 1.2; letter-spacing: -.035em; margin: 12px 0 18px; }
.article-meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.post-content { font-size: 15.5px; line-height: 1.9; color: #d6deee; word-break: break-word; padding: 22px 2px; }
[data-theme="light"] .post-content { color: #1d2739; }
.post-content img { max-width: 100%; border-radius: 12px; margin: 10px 0; }
.post-content a { color: var(--accent); }
.post-content p { margin: 0 0 1em; }
.action-bar { display: flex; flex-wrap: wrap; gap: 9px; padding-top: 18px; border-top: 1px solid var(--line); }

/* 评论 */
.comment { padding: 18px 0; border-bottom: 1px solid var(--line); animation: fadeUp .35s var(--ease); }
.comment:first-child { border-top: 1px solid var(--line); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(6px); } }
.c-head { display: flex; align-items: center; gap: 10px; margin-bottom: 9px; }
.c-name { font-weight: 650; font-size: 13.5px; }
.c-time { font-size: 11.5px; color: var(--txt-3); margin-left: auto; }
.c-body { font-size: 14.3px; line-height: 1.8; color: var(--txt-2); white-space: pre-wrap; word-break: break-word; }
.c-actions { display: flex; gap: 6px; margin-top: 9px; }
.replies { margin: 12px 0 0 16px; padding-left: 14px; border-left: 1px solid var(--line); display: grid; gap: 12px; }
.reply { display: flex; gap: 10px; }
.r-body { flex: 1; min-width: 0; }
.r-line { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; font-size: 13px; }
.r-content { font-size: 13.8px; color: var(--txt-2); line-height: 1.75; white-space: pre-wrap; margin-top: 2px; }
.reply-form { display: flex; gap: 8px; align-items: flex-start; }
.reply-form textarea { min-height: 40px; height: 40px; padding: 9px 12px; }

.composer { display: flex; gap: 12px; margin-top: 18px; align-items: flex-start; }
.composer textarea { min-height: 52px; }
.composer .cbox { flex: 1; display: grid; gap: 8px; }

/* 编辑器 */
.editor { border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; background: rgba(255, 255, 255, .02); }
.toolbar { display: flex; flex-wrap: wrap; gap: 3px; padding: 7px; border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, .03); }
.toolbar button, .toolbar select {
  height: 30px; min-height: 30px; padding: 0 9px; border-radius: 8px; font-size: 12.5px;
  border: 1px solid transparent; background: transparent; color: var(--txt-2); cursor: pointer;
  width: auto; display: inline-grid; place-items: center;
}
.toolbar button:hover { background: rgba(120, 190, 255, .12); color: var(--txt); }
.toolbar select { min-width: 96px; background-color: transparent; border: 1px solid var(--line); }
.editor textarea { border: 0; border-radius: 0; background: transparent; min-height: 280px; font-family: var(--mono); font-size: 13.5px; }
.editor textarea:focus { box-shadow: none; }

/* ---------------------------------------------------------------- 投票 */

.vote-t { font-size: clamp(21px, 3vw, 28px); font-weight: 750; letter-spacing: -.03em; margin: 0 0 10px; }
.vopt {
  display: flex; align-items: center; gap: 12px; padding: 14px 16px; margin-bottom: 9px;
  border-radius: 12px; border: 1px solid var(--line); background: rgba(255, 255, 255, .025);
  cursor: pointer; transition: var(--fast); position: relative; overflow: hidden;
}
.vopt:hover { border-color: var(--line-hi); background: var(--accent-soft); }
.vopt input { position: absolute; opacity: 0; pointer-events: none; }
.vopt .rd { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--line-hi); flex: 0 0 auto; transition: var(--fast); display: grid; place-items: center; }
.vopt input:checked + .rd { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.vopt input:checked + .rd::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.vopt .tx { font-size: 14px; font-weight: 550; }
.vopt.disabled { cursor: default; opacity: .85; }
.vrow { margin-bottom: 12px; }
.vlabel { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 5px; color: var(--txt-2); }
.vbar { height: 9px; border-radius: 99px; background: rgba(120, 190, 255, .1); overflow: hidden; }
.vfill { height: 100%; border-radius: 99px; background: var(--grad-accent); transition: width .8s var(--ease); min-width: 3px; }

/* ---------------------------------------------------------------- 个人主页 */

.banner {
  height: 220px; border-radius: var(--r-lg); border: 1px solid var(--line);
  background-size: cover; background-position: center;
  position: relative; overflow: hidden;
}
.banner .fallback {
  position: absolute; inset: 0;
  background:
    radial-gradient(500px 240px at 20% 10%, rgba(0, 229, 255, .28), transparent 62%),
    radial-gradient(420px 240px at 82% 90%, rgba(124, 92, 255, .3), transparent 60%),
    linear-gradient(120deg, #0a1428, #131a33);
}
.banner .fallback::after {
  content: ""; position: absolute; inset: 0; opacity: .35;
  background-image: linear-gradient(to right, rgba(255, 255, 255, .06) 1px, transparent 1px),
                    linear-gradient(to bottom, rgba(255, 255, 255, .06) 1px, transparent 1px);
  background-size: 30px 30px;
  mask-image: radial-gradient(circle at 50% 40%, #000, transparent 76%);
  -webkit-mask-image: radial-gradient(circle at 50% 40%, #000, transparent 76%);
}
.profile-row { display: flex; gap: 20px; align-items: flex-end; margin-top: -46px; padding: 0 8px; position: relative; flex-wrap: wrap; }
.profile-info { flex: 1; min-width: 220px; padding-bottom: 6px; }
.pname { font-size: 26px; font-weight: 800; letter-spacing: -.035em; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.pcounts { display: flex; gap: 22px; margin-top: 10px; }
.pcounts button { border: 0; background: none; color: var(--txt-2); font: inherit; font-size: 13px; cursor: pointer; padding: 0; }
.pcounts button b { color: var(--txt); font-size: 16px; font-family: var(--mono); margin-right: 4px; }
.pcounts button:hover b { color: var(--accent); }

.tabs { display: flex; gap: 4px; padding: 5px; border-radius: 13px; background: rgba(255, 255, 255, .035); border: 1px solid var(--line); width: fit-content; max-width: 100%; overflow-x: auto; }
.tab { border: 0; background: none; color: var(--txt-2); font: inherit; font-size: 13.5px; font-weight: 600; padding: 7px 15px; border-radius: 9px; cursor: pointer; white-space: nowrap; transition: var(--fast); }
.tab:hover { color: var(--txt); }
.tab.active { background: var(--grad-accent); color: #04101a; box-shadow: 0 8px 22px -12px var(--accent); }
[data-theme="light"] .tab.active { color: #fff; }
.sec[hidden] { display: none; }

/* ---------------------------------------------------------------- 私信 */

.dm-layout { display: grid; grid-template-columns: 280px 1fr; gap: 0; min-height: 560px; }
.dm-list { border-right: 1px solid var(--line); overflow: auto; max-height: 660px; }
@media (max-width: 820px) { .dm-layout { grid-template-columns: 1fr; } .dm-list { border-right: 0; border-bottom: 1px solid var(--line); max-height: 220px; } }
.conv { display: flex; align-items: center; gap: 11px; padding: 12px 15px; cursor: pointer; border-bottom: 1px solid var(--line); transition: background var(--fast); }
.conv:hover { background: rgba(120, 190, 255, .06); }
.conv.active { background: var(--accent-soft); box-shadow: inset 2px 0 0 var(--accent); }
.conv .nm { font-size: 13.5px; font-weight: 600; }
.conv .tm { margin-left: auto; font-size: 11px; color: var(--txt-3); }
.dm-chat { display: flex; flex-direction: column; min-height: 420px; }
.chat-head { display: flex; align-items: center; gap: 10px; padding: 13px 16px; border-bottom: 1px solid var(--line); }
.chat-msgs { flex: 1; overflow: auto; padding: 18px 16px; display: flex; flex-direction: column; gap: 10px; max-height: 460px; }
.bubble { max-width: 72%; padding: 9px 13px; border-radius: 14px; font-size: 13.8px; line-height: 1.6; word-break: break-word; animation: fadeUp .3s var(--ease); }
.bubble.theirs { align-self: flex-start; background: rgba(255, 255, 255, .06); border: 1px solid var(--line); border-bottom-left-radius: 5px; }
.bubble.mine { align-self: flex-end; background: var(--grad-accent); color: #04101a; border-bottom-right-radius: 5px; font-weight: 500; }
.bubble .bt { font-size: 10.5px; opacity: .6; margin-top: 3px; font-family: var(--mono); }
.chat-input { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); }
.chat-input textarea { min-height: 40px; height: 40px; padding: 9px 12px; }

.ntf { display: flex; gap: 12px; padding: 14px 6px; border-bottom: 1px solid var(--line); }
.ntf:last-child { border-bottom: 0; }
.ntf .body { flex: 1; min-width: 0; }
.ntf .tx { font-size: 13.5px; }
.ntf .tm { font-size: 11.5px; color: var(--txt-3); margin-top: 2px; font-family: var(--mono); }
.tab-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--bad); display: inline-block; margin-left: 6px; box-shadow: 0 0 8px var(--bad); }

/* ---------------------------------------------------------------- 表格 */

.table { width: 100%; border-collapse: collapse; font-size: 13px; }
.table th { text-align: left; font-weight: 600; color: var(--txt-3); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; padding: 9px 10px; border-bottom: 1px solid var(--line); }
.table td { padding: 9px 10px; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.table tr:hover td { background: rgba(120, 190, 255, .04); }

/* ---------------------------------------------------------------- 图表 */

.chart { display: flex; align-items: flex-end; gap: 6px; height: 140px; padding-top: 10px; }
.chart .col { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; gap: 2px; height: 100%; position: relative; min-width: 0; }
.chart .col i {
  display: block; width: 100%; border-radius: 4px 4px 2px 2px; background: var(--grad-accent); opacity: .85;
  min-height: 0; transition: height .8s var(--ease); transform-origin: bottom;
}
.chart .col:hover i { opacity: 1; box-shadow: 0 0 18px -2px var(--accent); }
.chart .col i.zero { background: rgba(120, 190, 255, .1); box-shadow: none; }
.chart .col .tx { font-size: 9.5px; color: var(--txt-3); text-align: center; font-family: var(--mono); margin-top: 4px; overflow: hidden; white-space: nowrap; }
.chart .col .tip {
  position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%);
  background: var(--panel-solid); border: 1px solid var(--line-hi); border-radius: 7px;
  padding: 3px 7px; font-size: 11px; font-family: var(--mono); white-space: nowrap;
  opacity: 0; pointer-events: none; transition: var(--fast); z-index: 5;
}
.chart .col:hover .tip { opacity: 1; }

.spark { width: 100%; height: 56px; display: block; }
.spark path.ln { fill: none; stroke: var(--accent); stroke-width: 1.6; stroke-linejoin: round; }
.spark path.area { fill: url(#sparkGrad); }

/* 实时终端 */
.term {
  font-family: var(--mono); font-size: 12px; line-height: 1.75;
  background: rgba(2, 6, 14, .72); border: 1px solid var(--line); border-radius: 12px;
  padding: 12px 14px; height: 240px; overflow: auto; color: #9fe8ff;
  scrollbar-width: thin; scrollbar-color: var(--line-hi) transparent;
}
.term .ln { white-space: pre-wrap; word-break: break-all; opacity: 0; animation: fadeIn .4s var(--ease) forwards; }
@keyframes fadeIn { to { opacity: 1; } }
.term .k { color: var(--accent-2); }
.term .ok { color: var(--ok); }
.term .warn { color: var(--warn); }
.term .dim { color: var(--txt-3); }

/* ---------------------------------------------------------------- 页面头 */

.page-head { display: flex; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin: 6px 0 22px; }
.page-head h1 { margin: 0; font-size: clamp(26px, 3.6vw, 38px); letter-spacing: -.04em; line-height: 1.1; }
.page-head .desc { color: var(--txt-3); font-size: 13.5px; margin-top: 6px; max-width: 60ch; }
.page-head .acts { margin-left: auto; display: flex; gap: 9px; flex-wrap: wrap; }

.crumb { display: flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--txt-3); margin-bottom: 14px; font-family: var(--mono); }
.crumb a { color: var(--txt-3); text-decoration: none; }
.crumb a:hover { color: var(--accent); }

/* ---------------------------------------------------------------- 站点矩阵 */

.site-row {
  display: grid; grid-template-columns: 52px 1fr auto; gap: 16px; align-items: center;
  padding: 18px 20px; border-radius: var(--r-md); border: 1px solid var(--line);
  background: rgba(255, 255, 255, .022); transition: var(--med); position: relative; overflow: hidden;
}
.site-row + .site-row { margin-top: 10px; }
.site-row:hover { border-color: var(--line-hi); background: rgba(120, 190, 255, .05); }
.site-row::after {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--sc, var(--accent));
  opacity: .8;
}
.site-row h3 { margin: 0; font-size: 16px; letter-spacing: -.02em; }
.site-row .host { font-family: var(--mono); font-size: 12.5px; color: var(--txt-3); }
.site-row .ic { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; background: color-mix(in srgb, var(--sc, #00e5ff) 14%, transparent); border: 1px solid color-mix(in srgb, var(--sc, #00e5ff) 34%, transparent); color: var(--sc, #00e5ff); }
.site-row .ic svg { width: 22px; height: 22px; }

/* ---------------------------------------------------------------- 页脚 */

.footer { border-top: 1px solid var(--line); padding: 30px 0; margin-top: 40px; }
.footer-inner { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; font-size: 12.5px; color: var(--txt-3); }
.footer a { color: var(--txt-3); text-decoration: none; }
.footer a:hover { color: var(--accent); }
.footer .sep { width: 1px; height: 12px; background: var(--line); }
.status-pill { display: inline-flex; align-items: center; gap: 7px; font-family: var(--mono); font-size: 11.5px; color: var(--ok); }
.status-pill i { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 10px var(--ok); animation: pulse 2s infinite; }

/* ---------------------------------------------------------------- 反馈 */

#toast-root { position: fixed; left: 50%; bottom: 34px; transform: translateX(-50%); z-index: 200; display: grid; gap: 8px; justify-items: center; pointer-events: none; }
.toast {
  display: flex; align-items: center; gap: 9px;
  padding: 11px 18px; border-radius: 13px; font-size: 13.5px; font-weight: 550;
  background: rgba(12, 18, 32, .92); color: var(--txt);
  border: 1px solid var(--line-hi); box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  animation: toastIn .35s var(--ease);
}
.toast.out { animation: toastOut .3s var(--ease) forwards; }
.toast::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); }
.toast.ok::before { background: var(--ok); box-shadow: 0 0 10px var(--ok); }
.toast.bad::before { background: var(--bad); box-shadow: 0 0 10px var(--bad); }
@keyframes toastIn { from { opacity: 0; transform: translateY(14px) scale(.96); } }
@keyframes toastOut { to { opacity: 0; transform: translateY(8px) scale(.98); } }

/* 模态 */
.mask {
  position: fixed; inset: 0; z-index: 150; display: grid; place-items: center; padding: 20px;
  background: rgba(2, 5, 12, .68); backdrop-filter: blur(8px);
  animation: fadeIn2 .25s var(--ease);
}
@keyframes fadeIn2 { from { opacity: 0; } }
.modal {
  width: min(560px, 100%); max-height: 82vh; overflow: auto;
  background: var(--panel-solid); border: 1px solid var(--line-hi);
  border-radius: var(--r-lg); box-shadow: var(--shadow); padding: 22px;
  animation: modalIn .35s var(--ease);
}
@keyframes modalIn { from { opacity: 0; transform: translateY(16px) scale(.97); } }
.modal-head { display: flex; align-items: center; margin-bottom: 14px; }
.modal-head .t { font-weight: 700; font-size: 16px; }
.modal-head button { margin-left: auto; }

/* 进度条（顶栏） */
#progress {
  position: fixed; top: 0; left: 0; height: 2px; width: 0; z-index: 300;
  background: var(--grad-accent); box-shadow: 0 0 12px var(--accent);
  transition: width .3s var(--ease), opacity .3s;
}

/* 滚动渐显 */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* 选择 / 滚动条 */
::selection { background: var(--accent-soft); color: var(--txt); }
* { scrollbar-width: thin; scrollbar-color: rgba(120, 190, 255, .3) transparent; }
::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-thumb { background: rgba(120, 190, 255, .24); border-radius: 99px; border: 2px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-thumb:hover { background: rgba(120, 190, 255, .42); background-clip: padding-box; }
::-webkit-scrollbar-track { background: transparent; }

/* 键盘焦点可见 */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

/* 打印 */
@media print {
  .nav, .footer, .bg-layer, .bg-grid, .bg-noise, .bg-scan, .action-bar, #toast-root { display: none !important; }
  body { background: #fff; color: #000; }
  .card { border: 1px solid #ddd; box-shadow: none; background: #fff; }
}

/* ---------------------------------------------------------------- 图标基线 */
/* 所有内联 SVG 走 currentColor，尺寸由上下文决定；默认不参与排版撑高 */
svg { display: inline-block; vertical-align: middle; flex: 0 0 auto; }
.icn { width: 1em; height: 1em; }
.mi svg, .chip svg, .tag svg, .mono svg { width: 1em; height: 1em; }
.btn > svg, .menu-item > svg, .more > svg { width: 15px; height: 15px; }
.more > svg { width: 13px; height: 13px; }
.spacer > svg, .item > svg, .site-row > svg { width: 16px; height: 16px; color: var(--txt-3); }
.item .dim svg { width: 15px; height: 15px; }
/* 指标条：等宽分栏，标签可换行，不溢出卡片 */
.proj .proj-foot { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; align-items: stretch; }
.proj .proj-foot .chip { width: 100%; justify-content: space-between; min-width: 0; height: auto; min-height: 26px; padding: 4px 9px; white-space: normal; line-height: 1.35; font-size: 11px; }
.proj .proj-foot .chip b { margin-left: 6px; white-space: nowrap; }
.proj .proj-foot > .spacer, .proj .proj-foot > .dim { display: none; }
@media (min-width: 1180px) and (max-width: 1360px) {
  .proj .proj-foot { grid-template-columns: minmax(0, 1fr); }
}
/* ---------------------------------------------------------------- 响应式精修 */
@media (max-width: 720px) {
  body { font-size: 14.5px; }
  .wrap, .nav-inner { width: calc(100% - 24px); }
  .nav-inner { gap: 10px; }
  .nav-actions { gap: 6px; }
  .search { display: none; }
  .brand-sub { display: none; }
  .brand-name { font-size: 15px; }
  .nav-link { padding: 11px 12px; }

  .hero { padding: 22px 0 10px; }
  .hero h1 { font-size: clamp(30px, 9vw, 40px); }
  .hero p.lead { font-size: 14.5px; }
  .hero .cta { gap: 8px; }
  .hero .cta .btn { flex: 1 1 46%; min-width: 0; padding: 0 12px; font-size: 13.5px; }
  .eyebrow { font-size: 11px; }
  .orb-wrap { display: none; }

  .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .metric { padding: 13px 14px; }
  .metric .v { font-size: 22px; }

  .page-head { gap: 12px; }
  .page-head .acts { margin-left: 0; width: 100%; }
  .page-head .acts .btn { flex: 1; }

  .card { padding: 16px; border-radius: 18px; }
  .grid-auto { grid-template-columns: minmax(0, 1fr) !important; }
  .site-row { grid-template-columns: 40px minmax(0, 1fr) !important; gap: 12px; padding: 14px; }
  .site-row .ic { width: 40px !important; height: 40px !important; }
  .site-row > .row:last-child { grid-column: 2; justify-content: flex-start; }

  .proj { padding: 16px; }
  .proj .proj-foot { grid-template-columns: minmax(0, 1fr) !important; }
  .post-card { padding: 14px 15px; }
  .post-card .pt { font-size: 14.5px; }
  .tabs { width: 100%; }
  .tab { padding: 7px 11px; font-size: 13px; flex: 1; }
  .dm-layout { grid-template-columns: minmax(0, 1fr); }
  .bubble { max-width: 86%; }
  .profile-row { margin-top: -38px; gap: 12px; }
  .pname { font-size: 21px; }
  .pcounts { gap: 14px; }
  .banner { height: 160px; }
  .composer { gap: 8px; }
  .auth-card { padding: 20px; }
  .footer-inner { gap: 10px; font-size: 12px; }
  .crumb { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
  .table { font-size: 12px; }
  .table th, .table td { padding: 7px 6px; }
  .chart .col .tx { font-size: 8px; }
}

@media (max-width: 420px) {
  .hero .cta .btn { flex: 1 1 100%; }
  .metrics { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}