:root {
  color-scheme: dark;
  --bg0: #09010c;
  --bg1: #17001f;
  --bg2: #33003d;
  --pink: #ff4fd8;
  --pink2: #ff87eb;
  --violet: #b56bff;
  --cyan: #55f7ff;
  --mint: #6dff9f;
  --warn: #ffb84d;
  --danger: #ff5e5e;
  --text: #ffe9fb;
  --muted: rgba(255, 233, 251, 0.74);
  --glass: rgba(255, 255, 255, 0.08);
  --stroke: rgba(255, 255, 255, 0.14);
  --shadow: 0 26px 80px rgba(255, 79, 216, 0.18);
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --sans: "DM Sans", "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  width: 100%;
  min-height: 100%;
  overflow-x: hidden;
  font-family: var(--sans);
  color: var(--text);
  background:
    radial-gradient(900px 520px at 18% 14%, rgba(255, 79, 216, 0.22), transparent 60%),
    radial-gradient(760px 520px at 88% 12%, rgba(85, 247, 255, 0.12), transparent 58%),
    radial-gradient(900px 680px at 55% 92%, rgba(181, 107, 255, 0.18), transparent 62%),
    linear-gradient(180deg, var(--bg0), var(--bg1) 42%, var(--bg2));
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: radial-gradient(circle at 40% 22%, black 28%, transparent 72%);
  opacity: 0.85;
}

.ambient {
  position: fixed;
  inset: -20%;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 30% 40%, rgba(255, 79, 216, 0.28), transparent 42%),
    radial-gradient(circle at 78% 35%, rgba(181, 107, 255, 0.22), transparent 46%),
    radial-gradient(circle at 62% 78%, rgba(85, 247, 255, 0.14), transparent 46%);
  filter: blur(38px);
  opacity: 0.55;
  animation: drift 18s ease-in-out infinite alternate;
}

#particle-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  mix-blend-mode: screen;
  opacity: 0.85;
}

/* ==================== 动画角色样式 ==================== */
.character-container {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

.character {
  position: relative;
  width: 80px;
  height: 100px;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.character:hover {
  transform: scale(1.1);
}

.char-body {
  position: relative;
  width: 70px;
  height: 80px;
  margin: 0 auto;
  background: linear-gradient(135deg, var(--pink), var(--violet));
  border-radius: 20px 20px 15px 15px;
  box-shadow: 0 10px 30px rgba(255, 79, 216, 0.4);
  animation: char-bounce 2s ease-in-out infinite;
}

@keyframes char-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

.char-face {
  position: absolute;
  top: 15px;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 30px;
}

.char-eyes {
  display: flex;
  justify-content: space-around;
  margin-bottom: 8px;
}

.char-eye {
  width: 10px;
  height: 10px;
  background: white;
  border-radius: 50%;
  position: relative;
  animation: blink 4s ease-in-out infinite;
}

.char-eye::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 3px;
  width: 4px;
  height: 4px;
  background: #333;
  border-radius: 50%;
}

@keyframes blink {
  0%, 90%, 100% { transform: scaleY(1); }
  95% { transform: scaleY(0.1); }
}

.char-mouth {
  width: 20px;
  height: 10px;
  margin: 0 auto;
  border-bottom: 3px solid white;
  border-radius: 0 0 50% 50%;
  transition: all 0.3s ease;
}

.char-mouth.happy {
  width: 25px;
  height: 12px;
  border-bottom: 4px solid white;
}

.char-mouth.worried {
  width: 15px;
  height: 8px;
  border-top: 3px solid white;
  border-bottom: none;
  border-radius: 50% 50% 0 0;
}

.char-screen {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  width: 45px;
  height: 25px;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.char-screen-content {
  font-size: 16px;
  color: var(--cyan);
  animation: pulse-text 2s ease-in-out infinite;
}

@keyframes pulse-text {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.char-arms {
  position: absolute;
  top: 35px;
  left: -15px;
  right: -15px;
  height: 30px;
}

.char-arm {
  position: absolute;
  width: 12px;
  height: 30px;
  background: linear-gradient(135deg, var(--pink), var(--violet));
  border-radius: 6px;
}

.char-arm.left {
  left: 0;
  transform-origin: top center;
  animation: wave-left 3s ease-in-out infinite;
}

.char-arm.right {
  right: 0;
  transform-origin: top center;
  animation: wave-right 3s ease-in-out infinite;
}

@keyframes wave-left {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(-15deg); }
  75% { transform: rotate(15deg); }
}

@keyframes wave-right {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(15deg); }
  75% { transform: rotate(-15deg); }
}

.char-shadow {
  width: 60px;
  height: 10px;
  margin: 5px auto 0;
  background: radial-gradient(ellipse, rgba(255, 79, 216, 0.3), transparent);
  border-radius: 50%;
  animation: shadow-pulse 3s ease-in-out infinite;
}

@keyframes shadow-pulse {
  0%, 100% { transform: scaleX(1); opacity: 0.3; }
  50% { transform: scaleX(0.8); opacity: 0.2; }
}

.character-speech {
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 8px 12px;
  border-radius: 12px;
  font-size: 12px;
  max-width: 150px;
  text-align: center;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 79, 216, 0.3);
}

.character-container:hover .character-speech {
  opacity: 1;
  transform: translateY(0);
}

/* ==================== 角色状态面板 ==================== */
.character-status-panel {
  display: flex;
  gap: 15px;
  margin: 15px 0;
  flex-wrap: wrap;
}

.status-item {
  flex: 1;
  min-width: 150px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 15px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  border: 1px solid var(--stroke);
  transition: all 0.3s ease;
}

.status-item:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-2px);
}

.status-icon {
  font-size: 24px;
  animation: icon-bounce 2s ease-in-out infinite;
}

@keyframes icon-bounce {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

.status-info {
  flex: 1;
}

.status-label {
  font-size: 11px;
  color: var(--muted);
  display: block;
  margin-bottom: 5px;
}

.status-bar {
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  overflow: hidden;
}

.status-fill {
  height: 100%;
  width: 0%;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--pink), var(--cyan));
  transition: width 0.5s ease;
  position: relative;
}

.status-fill.mem {
  background: linear-gradient(90deg, var(--violet), var(--pink2));
}

.status-fill.net {
  background: linear-gradient(90deg, var(--cyan), var(--mint));
}

.status-fill::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.shell {
  position: relative;
  z-index: 1;
  max-width: 1220px;
  margin: 0 auto;
  padding: 28px 18px 56px;
}

.mast {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.mast-left {
  display: flex;
  gap: 14px;
  align-items: center;
  min-width: min(520px, 100%);
}

.sigil {
  width: 54px;
  height: 54px;
  position: relative;
  display: grid;
  place-items: center;
}

.sigil-ring {
  position: absolute;
  inset: 0;
  border-radius: 16px;
  background: conic-gradient(var(--pink), var(--violet), var(--cyan), var(--pink));
  filter: blur(0.2px);
  animation: spin 10s linear infinite;
  opacity: 0.95;
}

.sigil-core {
  position: relative;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: radial-gradient(circle at 30% 25%, rgba(255, 255, 255, 0.22), rgba(10, 0, 14, 0.76));
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 0 22px rgba(255, 79, 216, 0.22);
}

.mast-text h1 {
  margin: 6px 0 6px;
  font-size: clamp(26px, 4.2vw, 36px);
  letter-spacing: -0.02em;
  text-shadow: 0 0 26px rgba(255, 79, 216, 0.55);
}

.eyebrow {
  margin: 0;
  font-size: 11px;
  letter-spacing: 0.22em;
  color: #ffc9f8;
  opacity: 0.85;
}

.lede {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
  max-width: 52ch;
}

.mast-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.06));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(10px);
}

.chip-text {
  font-size: 13px;
}

.chip.ghost {
  color: var(--muted);
}

.chip.warn {
  border-color: rgba(255, 184, 77, 0.45);
  color: #ffe8cc;
}

.chip.ok {
  border-color: rgba(109, 255, 159, 0.35);
  color: #d8ffe6;
}

.chip.mono .chip-text {
  font-family: var(--mono);
  letter-spacing: 0.02em;
}

.dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--pink);
  box-shadow: 0 0 16px rgba(255, 79, 216, 0.95);
}

.chip.drive {
  text-decoration: none;
  color: #fff;
  border-color: rgba(255, 79, 216, 0.45);
  background: linear-gradient(135deg, rgba(255, 79, 216, 0.26), rgba(181, 107, 255, 0.22));
  box-shadow: 0 14px 26px rgba(255, 79, 216, 0.22);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.chip.drive:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 34px rgba(255, 79, 216, 0.32);
}

.chip.drive:focus-visible {
  outline: 2px solid rgba(85, 247, 255, 0.55);
  outline-offset: 3px;
}

.drive-ico {
  font-size: 14px;
  opacity: 0.95;
}

.kpi {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0 16px;
}

@media (max-width: 980px) {
  .kpi {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .kpi {
    grid-template-columns: 1fr;
  }
}

.kpi-card {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  padding: 14px 14px 12px;
  border: 1px solid var(--stroke);
  background: linear-gradient(155deg, rgba(255, 79, 216, 0.18), rgba(22, 0, 28, 0.55));
  box-shadow: var(--shadow);
}

.kpi-card::after {
  content: "";
  position: absolute;
  inset: -55% -70%;
  background: linear-gradient(
    120deg,
    transparent 38%,
    rgba(255, 255, 255, 0.24) 50%,
    transparent 62%
  );
  transform: translateX(-48%);
  animation: sweep 5.2s linear infinite;
  opacity: 0.55;
}

.kpi-label {
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.18em;
  color: #ffd6fb;
  opacity: 0.85;
}

.kpi-value {
  margin: 8px 0 6px;
  font-size: clamp(22px, 3.4vw, 30px);
  letter-spacing: -0.02em;
}

.kpi-hint {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
}

.k1 {
  box-shadow:
    var(--shadow),
    inset 0 0 40px rgba(255, 79, 216, 0.12);
}
.k2 {
  box-shadow:
    var(--shadow),
    inset 0 0 40px rgba(181, 107, 255, 0.12);
}
.k3 {
  box-shadow:
    var(--shadow),
    inset 0 0 40px rgba(85, 247, 255, 0.1);
}
.k4 {
  box-shadow:
    var(--shadow),
    inset 0 0 40px rgba(255, 184, 77, 0.08);
}

.deck {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 14px;
}

.card {
  border-radius: 18px;
  padding: 16px 16px 14px;
  border: 1px solid var(--stroke);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.12), rgba(18, 0, 22, 0.55));
  backdrop-filter: blur(14px);
  box-shadow:
    0 18px 46px rgba(0, 0, 0, 0.35),
    inset 0 0 0 1px rgba(255, 255, 255, 0.06);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow:
    0 26px 60px rgba(255, 79, 216, 0.18),
    inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.col-4 {
  grid-column: span 4;
}
.col-8 {
  grid-column: span 8;
}
.col-12 {
  grid-column: span 12;
}

.stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

@media (max-width: 980px) {
  .col-4,
  .col-8,
  .col-12 {
    grid-column: span 12;
  }
}

.card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.card-head h2 {
  margin: 0;
  font-size: 16px;
  letter-spacing: 0.06em;
  color: #ffc6f6;
}

.card-sub {
  margin: 6px 0 0;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.45;
}

.tag {
  font-size: 11px;
  letter-spacing: 0.18em;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
  color: #ffe5fb;
}

.tag.pink {
  border-color: rgba(255, 79, 216, 0.35);
}
.tag.violet {
  border-color: rgba(181, 107, 255, 0.35);
}
.tag.cyan {
  border-color: rgba(85, 247, 255, 0.35);
}
.tag.warn {
  border-color: rgba(255, 184, 77, 0.35);
  color: #ffe7c7;
}

.mono {
  font-family: var(--mono);
}

.faint {
  color: rgba(255, 233, 251, 0.55);
}

.cpu-layout {
  display: grid;
  grid-template-columns: 168px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
}

@media (max-width: 720px) {
  .cpu-layout {
    grid-template-columns: 1fr;
  }
}

.gauge {
  --p: 0;
  width: 168px;
  height: 168px;
  border-radius: 26px;
  position: relative;
  place-self: center;
  background: conic-gradient(
    from 220deg,
    var(--pink) 0 calc(var(--p) * 1%),
    rgba(255, 255, 255, 0.12) 0
  );
  box-shadow:
    0 20px 50px rgba(255, 79, 216, 0.25),
    inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.gauge::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 27px;
  padding: 1px;
  background: linear-gradient(135deg, rgba(255, 79, 216, 0.65), rgba(85, 247, 255, 0.25));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0.65;
}

.gauge-inner {
  position: absolute;
  inset: 14px;
  border-radius: 20px;
  background: radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.12), rgba(10, 0, 14, 0.78));
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: grid;
  place-items: center;
}

.gauge-num {
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.gauge-cap {
  position: absolute;
  bottom: 14px;
  font-size: 11px;
  letter-spacing: 0.22em;
  color: rgba(255, 233, 251, 0.55);
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.metric {
  border-radius: 14px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.18);
}

.metric-label {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
}

.metric-value {
  margin: 6px 0 0;
  font-size: 18px;
  color: #fff;
}

.metric-value.tight {
  font-size: 14px;
  line-height: 1.35;
}

.loadbars {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.load-item {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.load-tag {
  color: rgba(255, 233, 251, 0.7);
  font-size: 12px;
}

.load-track {
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.load-fill {
  height: 100%;
  border-radius: 999px;
  width: 0%;
  background: linear-gradient(90deg, var(--pink), var(--pink2));
  box-shadow: 0 0 18px rgba(255, 79, 216, 0.45);
  transition: width 0.35s ease;
}

.load-fill.slow {
  background: linear-gradient(90deg, var(--violet), var(--pink));
}
.load-fill.slow2 {
  background: linear-gradient(90deg, var(--cyan), var(--violet));
}

.spark-wrap {
  margin-top: 12px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.22);
}

.spark-wrap.tight {
  margin-top: 2px;
}

.spark-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px;
  font-size: 12px;
  color: rgba(255, 233, 251, 0.72);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.spark-wrap canvas {
  display: block;
  width: 100%;
  height: auto;
}

.mem-meter {
  display: grid;
  gap: 10px;
}

.mem-track {
  position: relative;
  height: 14px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.mem-fill {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, #c86bff, var(--pink), var(--pink2));
  box-shadow: 0 0 18px rgba(255, 79, 216, 0.45);
  transition: width 0.35s ease;
}

.mem-sheen {
  position: absolute;
  inset: -40% -80%;
  background: linear-gradient(
    120deg,
    transparent 38%,
    rgba(255, 255, 255, 0.35) 50%,
    transparent 62%
  );
  animation: sweep 6s linear infinite;
  opacity: 0.35;
}

.mem-cap {
  margin: 0;
  font-size: 13px;
  color: rgba(255, 233, 251, 0.78);
}

.disk-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.disk-item {
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.18);
}

.disk-item .row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.mini-bar {
  height: 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.mini-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--violet), var(--pink));
}

.small {
  margin: 8px 0 0;
  font-size: 12px;
  color: rgba(255, 233, 251, 0.66);
}

.net-board {
  display: grid;
  gap: 12px;
}

.net-main {
  border-radius: 16px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: radial-gradient(circle at 18% 20%, rgba(255, 79, 216, 0.14), rgba(0, 0, 0, 0.2));
}

.net-label {
  margin: 0;
  font-size: 11px;
  letter-spacing: 0.24em;
  color: rgba(255, 233, 251, 0.6);
}

.net-iface {
  margin: 8px 0 0;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(90deg, #fff, #ffc9ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.net-split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

@media (max-width: 520px) {
  .net-split {
    grid-template-columns: 1fr;
  }
}

.net-box {
  border-radius: 16px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.18);
}

.net-box.down {
  box-shadow: inset 0 0 40px rgba(85, 247, 255, 0.08);
}
.net-box.up {
  box-shadow: inset 0 0 40px rgba(255, 79, 216, 0.08);
}

.net-mini {
  margin: 0;
  font-size: 11px;
  letter-spacing: 0.22em;
  color: rgba(255, 233, 251, 0.62);
}

.net-big {
  margin: 8px 0 0;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.table-head,
.proc-row {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) 92px 92px;
  gap: 12px;
  align-items: center;
}

.table-head {
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.06);
  font-size: 12px;
  color: rgba(255, 233, 251, 0.72);
}

.table-head .num {
  text-align: right;
}

.table-body {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.proc-row {
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.16);
  font-size: 13px;
}

.proc-row.hot {
  border-color: rgba(255, 94, 94, 0.45);
  background: rgba(255, 94, 94, 0.12);
}

.proc-name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.proc-row span.num {
  text-align: right;
  font-family: var(--mono);
}

@media (max-width: 720px) {
  .table-head,
  .proc-row {
    grid-template-columns: 68px minmax(0, 1fr) 68px 68px;
    gap: 8px;
    font-size: 12px;
  }
}

.foot {
  padding: 16px;
}

.foot-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: 14px;
  align-items: start;
}

@media (max-width: 980px) {
  .foot-grid {
    grid-template-columns: 1fr;
  }
}

.foot-label {
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.18em;
  color: rgba(255, 233, 251, 0.68);
}

.foot-uptime {
  margin: 8px 0 0;
  font-size: clamp(22px, 3.4vw, 30px);
  letter-spacing: -0.02em;
}

.foot-note p {
  margin: 0 0 8px;
  color: rgba(255, 233, 251, 0.72);
  line-height: 1.55;
}

@keyframes drift {
  0% {
    transform: translate3d(-2%, -1%, 0) scale(1);
  }
  100% {
    transform: translate3d(2%, 2%, 0) scale(1.05);
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes sweep {
  0% {
    transform: translateX(-45%);
  }
  100% {
    transform: translateX(45%);
  }
}

@keyframes blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.45;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sigil-ring,
  .ambient,
  .kpi-card::after,
  .mem-sheen {
    animation: none !important;
  }
}

/* ==================== 现代KPI卡片样式 ==================== */
.kpi-icon {
  font-size: 28px;
  margin-bottom: 8px;
  animation: icon-float 3s ease-in-out infinite;
  display: block;
}

@keyframes icon-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

.kpi-ring {
  width: 50px;
  height: 50px;
  margin: 10px auto 0;
  border-radius: 50%;
  background: conic-gradient(from 0deg, var(--pink) 0%, transparent 0%);
  position: relative;
  transition: background 0.5s ease;
}

.kpi-ring::before {
  content: '';
  position: absolute;
  inset: 4px;
  background: var(--bg1);
  border-radius: 50%;
}

.kpi-card {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  padding: 14px 14px 12px;
  border: 1px solid var(--stroke);
  background: linear-gradient(155deg, rgba(255, 79, 216, 0.18), rgba(22, 0, 28, 0.55));
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
}

.kpi-card:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 15px 40px rgba(255, 79, 216, 0.3);
}

/* ==================== CPU可视化区域 ==================== */
.cpu-visual {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

@media (max-width: 720px) {
  .cpu-visual {
    grid-template-columns: 1fr;
  }
}

.cpu-character-section {
  display: flex;
  justify-content: center;
  align-items: center;
}

.cpu-bot {
  width: 80px;
  height: 100px;
  position: relative;
  animation: bot-bounce 2s ease-in-out infinite;
}

@keyframes bot-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

.bot-head {
  width: 60px;
  height: 45px;
  margin: 0 auto;
  background: linear-gradient(135deg, var(--pink), var(--violet));
  border-radius: 15px 15px 10px 10px;
  position: relative;
  box-shadow: 0 5px 15px rgba(255, 79, 216, 0.3);
}

.bot-eyes {
  display: flex;
  justify-content: space-around;
  padding-top: 15px;
}

.bot-eye {
  width: 8px;
  height: 8px;
  background: white;
  border-radius: 50%;
  position: relative;
}

.bot-eye::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 3px;
  height: 3px;
  background: #333;
  border-radius: 50%;
}

.bot-mouth {
  text-align: center;
  color: white;
  font-size: 14px;
  margin-top: 5px;
  transition: all 0.3s ease;
}

.bot-body {
  width: 70px;
  height: 45px;
  margin: 5px auto 0;
  background: linear-gradient(135deg, var(--violet), var(--cyan));
  border-radius: 10px 10px 15px 15px;
  position: relative;
  box-shadow: 0 5px 15px rgba(181, 107, 255, 0.3);
}

.bot-screen {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, 0.5);
  padding: 5px 8px;
  border-radius: 5px;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.bot-screen span {
  font-size: 10px;
  color: var(--cyan);
  font-family: var(--mono);
}

.cpu-chart-area {
  flex: 1;
}

.chart-label {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 10px;
}

.bar-chart {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 100px;
  padding: 10px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.bar {
  flex: 1;
  background: linear-gradient(to top, var(--pink), var(--pink2));
  border-radius: 3px 3px 0 0;
  min-height: 5px;
  transition: height 0.3s ease;
  position: relative;
}

.bar::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.3), transparent);
  border-radius: 3px 3px 0 0;
}

.cpu-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 15px;
}

.detail-item {
  padding: 10px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.detail-label {
  font-size: 11px;
  color: var(--muted);
  display: block;
  margin-bottom: 5px;
}

.detail-value {
  font-size: 16px;
  color: white;
  font-weight: 600;
}

/* ==================== 负载动画条形图 ==================== */
.load-animation {
  margin-top: 15px;
}

.load-bars-animated {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.load-bar-item {
  display: grid;
  grid-template-columns: 50px minmax(0, 1fr) 60px;
  gap: 10px;
  align-items: center;
}

.load-label {
  font-size: 12px;
  color: var(--muted);
  font-family: var(--mono);
}

.load-bar-track {
  height: 12px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.load-bar-fill {
  height: 100%;
  width: 0%;
  border-radius: 6px;
  background: linear-gradient(90deg, var(--pink), var(--cyan));
  transition: width 0.5s ease;
  position: relative;
}

.load-bar-fill.animated {
  animation: pulse-bar 2s ease-in-out infinite;
}

.load-bar-fill.slow {
  background: linear-gradient(90deg, var(--violet), var(--pink));
  animation-delay: 0.3s;
}

.load-bar-fill.slower {
  background: linear-gradient(90deg, var(--cyan), var(--violet));
  animation-delay: 0.6s;
}

@keyframes pulse-bar {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

.load-value {
  font-size: 12px;
  color: var(--text);
  font-family: var(--mono);
  text-align: right;
}

/* ==================== 内存圆形进度和波浪动画 ==================== */
.mem-visual {
  display: flex;
  flex-direction: column;
  gap: 15px;
  align-items: center;
}

.mem-circle-container {
  position: relative;
  width: 120px;
  height: 120px;
}

.mem-circle-svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.mem-circle-bg {
  fill: none;
  stroke: rgba(255, 255, 255, 0.1);
  stroke-width: 8;
}

.mem-circle-progress {
  fill: none;
  stroke: url(#mem-gradient);
  stroke-width: 8;
  stroke-linecap: round;
  stroke-dasharray: 327;
  stroke-dashoffset: 327;
  transition: stroke-dashoffset 0.5s ease;
  filter: drop-shadow(0 0 6px rgba(255, 79, 216, 0.5));
}

.mem-circle-glow {
  fill: none;
  stroke: rgba(255, 79, 216, 0.2);
  stroke-width: 12;
  stroke-dasharray: 327;
  stroke-dashoffset: 327;
  transition: stroke-dashoffset 0.5s ease;
}

.mem-circle-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

.mem-pct {
  font-size: 24px;
  font-weight: 700;
  color: white;
  display: block;
  font-family: var(--mono);
}

.mem-label {
  font-size: 11px;
  color: var(--muted);
}

.mem-wave-container {
  width: 100%;
  height: 60px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.mem-wave {
  position: absolute;
  bottom: 0;
  left: -100%;
  width: 300%;
  height: 60%;
  background: linear-gradient(180deg, rgba(255, 79, 216, 0.3), rgba(181, 107, 255, 0.5));
  border-radius: 50% 50% 0 0;
  animation: wave-move 3s ease-in-out infinite;
}

@keyframes wave-move {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(25%); }
}

.mem-detail {
  font-size: 13px;
  color: var(--muted);
  text-align: center;
}

/* ==================== 磁盘进度环 ==================== */
.disk-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.disk-item {
  padding: 15px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.disk-item:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateX(5px);
}

.disk-item .row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.disk-item .mono:first-child {
  font-size: 14px;
  color: var(--text);
  font-weight: 600;
}

.disk-item .mono:last-child {
  font-size: 14px;
  color: var(--pink);
  font-weight: 700;
}

.mini-bar {
  height: 10px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 5px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.mini-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--violet), var(--pink));
  border-radius: 5px;
  transition: width 0.5s ease;
  position: relative;
}

.mini-fill::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.3), transparent);
  border-radius: 5px 5px 0 0;
}

.small {
  margin: 8px 0 0;
  font-size: 12px;
  color: var(--muted);
}

/* ==================== 网络脉冲动画 ==================== */
.net-visual {
  padding: 10px;
}

.net-pulse-container {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.net-interface-label {
  display: flex;
  align-items: center;
  gap: 10px;
}

.net-label-text {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.net-iface {
  font-size: 18px;
  color: white;
  font-weight: 700;
  font-family: var(--mono);
}

.net-pulse-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px;
}

@media (max-width: 520px) {
  .net-pulse-grid {
    grid-template-columns: 1fr;
  }
}

.net-pulse-box {
  position: relative;
  padding: 20px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  overflow: hidden;
}

.net-pulse-box.down {
  border-color: rgba(85, 247, 255, 0.3);
}

.net-pulse-box.up {
  border-color: rgba(255, 79, 216, 0.3);
}

.pulse-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 2px solid rgba(255, 79, 216, 0.3);
  animation: pulse-ring 2s ease-out infinite;
}

.net-pulse-box.down .pulse-ring {
  border-color: rgba(85, 247, 255, 0.3);
}

@keyframes pulse-ring {
  0% {
    transform: translate(-50%, -50%) scale(0.5);
    opacity: 1;
  }
  100% {
    transform: translate(-50%, -50%) scale(1.5);
    opacity: 0;
  }
}

.net-pulse-icon {
  font-size: 32px;
  margin-bottom: 10px;
  position: relative;
  z-index: 1;
}

.net-pulse-label {
  display: block;
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 5px;
  position: relative;
  z-index: 1;
}

.net-pulse-value {
  display: block;
  font-size: 16px;
  color: white;
  font-weight: 700;
  position: relative;
  z-index: 1;
}

/* ==================== 进程动态列表 ==================== */
.process-visual {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.process-header {
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr) 70px 70px 100px;
  gap: 10px;
  padding: 10px 15px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
}

@media (max-width: 720px) {
  .process-header {
    grid-template-columns: 60px minmax(0, 1fr) 50px 50px 80px;
    gap: 5px;
    font-size: 11px;
  }
}

.proc-col {
  text-align: left;
}

.proc-col.num {
  text-align: right;
}

.proc-col.visual {
  text-align: center;
}

.process-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.process-row {
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr) 70px 70px 100px;
  gap: 10px;
  padding: 10px 15px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.3s ease;
  align-items: center;
}

.process-row:hover {
  background: rgba(255, 255, 255, 0.05);
  transform: translateX(5px);
}

.process-row.hot {
  border-color: rgba(255, 94, 94, 0.5);
  background: rgba(255, 94, 94, 0.1);
  animation: hot-glow 2s ease-in-out infinite;
}

@keyframes hot-glow {
  0%, 100% { box-shadow: 0 0 5px rgba(255, 94, 94, 0.3); }
  50% { box-shadow: 0 0 15px rgba(255, 94, 94, 0.5); }
}

.process-row .proc-pid {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--cyan);
}

.process-row .proc-name {
  font-size: 13px;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.process-row .proc-cpu,
.process-row .proc-mem {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--pink);
  text-align: right;
  font-weight: 600;
}

.process-row .proc-activity {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
}

.activity-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--mint);
  animation: activity-pulse 1.5s ease-in-out infinite;
}

.activity-dot:nth-child(2) {
  animation-delay: 0.3s;
}

.activity-dot:nth-child(3) {
  animation-delay: 0.6s;
}

@keyframes activity-pulse {
  0%, 100% { opacity: 0.3; transform: scale(0.8); }
  50% { opacity: 1; transform: scale(1.2); }
}

/* ==================== 页脚角色 ==================== */
.foot-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1.4fr);
  gap: 14px;
  align-items: start;
}

@media (max-width: 980px) {
  .foot-grid {
    grid-template-columns: 1fr;
  }
}

.foot-character {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 15px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.mini-char {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--pink), var(--violet));
  border-radius: 50%;
  display: grid;
  place-items: center;
  animation: mini-char-bounce 2s ease-in-out infinite;
}

@keyframes mini-char-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

.mini-char-face {
  font-size: 20px;
}

.foot-note-text {
  font-size: 13px;
  color: var(--muted);
}
