/* =========================================================
   飞牛服务器 · 主样式
   风格：明亮清爽卡片风 + 趣味动画 + 专业感
   ========================================================= */

/* ---------- Design Tokens ---------- */
:root {
  /* 颜色 */
  --c-bg: #FBFAF6;
  --c-bg-alt: #F5F3EC;
  --c-surface: #FFFFFF;
  --c-surface-soft: #F8FAFC;

  --c-primary: #16A34A;
  --c-primary-strong: #15803D;
  --c-primary-soft: #DCFCE7;

  --c-accent: #0EA5E9;
  --c-accent-soft: #E0F2FE;

  --c-warm: #F59E0B;
  --c-warm-soft: #FEF3C7;

  --c-pink: #EC4899;
  --c-pink-soft: #FCE7F3;

  --c-purple: #A855F7;
  --c-purple-soft: #F3E8FF;

  --c-danger: #EF4444;
  --c-danger-soft: #FEE2E2;

  --c-text: #0F172A;
  --c-text-soft: #475569;
  --c-text-mute: #94A3B8;
  --c-border: #E2E8F0;
  --c-border-soft: #F1F5F9;

  /* 阴影 */
  --sh-xs: 0 1px 2px rgba(15, 23, 42, .04);
  --sh-sm: 0 2px 8px rgba(15, 23, 42, .05), 0 1px 2px rgba(15, 23, 42, .04);
  --sh-md: 0 6px 20px rgba(15, 23, 42, .06), 0 2px 6px rgba(15, 23, 42, .04);
  --sh-lg: 0 18px 40px rgba(15, 23, 42, .10), 0 4px 12px rgba(15, 23, 42, .05);
  --sh-glow-green: 0 8px 24px rgba(22, 163, 74, .25);
  --sh-glow-blue: 0 8px 24px rgba(14, 165, 233, .25);

  /* 圆角 */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 18px;
  --r-xl: 24px;
  --r-pill: 999px;

  /* 间距 */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 24px;
  --sp-6: 32px;
  --sp-7: 48px;
  --sp-8: 64px;
  --sp-9: 96px;

  /* 字体 */
  --f-sans: 'Inter', 'PingFang SC', 'Microsoft YaHei', 'Noto Sans SC', system-ui, -apple-system, sans-serif;
  --f-mono: 'JetBrains Mono', 'SF Mono', Menlo, Consolas, monospace;
  --f-pixel: 'Press Start 2P', 'Courier New', monospace;

  /* 动画 */
  --e-out: cubic-bezier(.22, 1, .36, 1);
  --e-spring: cubic-bezier(.34, 1.56, .64, 1);
  --t-fast: .18s;
  --t-base: .32s;
  --t-slow: .6s;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--f-sans);
  color: var(--c-text);
  background: var(--c-bg);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, h5 { margin: 0; line-height: 1.25; font-weight: 800; letter-spacing: -.02em; }
p { margin: 0; }

::selection { background: var(--c-primary-soft); color: var(--c-primary-strong); }

/* ---------- 全局装饰：漂浮方块背景 ---------- */
.bg-decor {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.bg-decor::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 15% 20%, rgba(134, 239, 172, .25) 0%, transparent 40%),
    radial-gradient(circle at 85% 10%, rgba(186, 230, 253, .3) 0%, transparent 40%),
    radial-gradient(circle at 50% 90%, rgba(253, 230, 138, .2) 0%, transparent 45%);
}
.bg-decor .grid-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(148, 163, 184, .07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, .07) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at center, black 20%, transparent 75%);
}
.floating-block {
  position: absolute;
  width: 44px;
  height: 44px;
  image-rendering: pixelated;
  animation: float-block 14s ease-in-out infinite;
  opacity: .55;
  filter: drop-shadow(0 6px 12px rgba(15, 23, 42, .08));
}
.floating-block:nth-child(3) { top: 12%; left: 6%; animation-delay: 0s; animation-duration: 16s; }
.floating-block:nth-child(4) { top: 22%; right: 8%; animation-delay: -3s; animation-duration: 18s; width: 36px; height: 36px; }
.floating-block:nth-child(5) { top: 62%; left: 4%; animation-delay: -6s; animation-duration: 20s; width: 32px; height: 32px; }
.floating-block:nth-child(6) { top: 78%; right: 6%; animation-delay: -9s; animation-duration: 15s; }
.floating-block:nth-child(7) { top: 40%; right: 15%; animation-delay: -12s; animation-duration: 22s; width: 28px; height: 28px; }

@keyframes float-block {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(-4deg); }
  25% { transform: translate3d(20px, -30px, 0) rotate(6deg); }
  50% { transform: translate3d(-15px, -50px, 0) rotate(-8deg); }
  75% { transform: translate3d(25px, -20px, 0) rotate(4deg); }
}

/* ---------- 布局 ---------- */
.shell {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--sp-5);
}
main { flex: 1; padding-top: 88px; }

/* ---------- 导航栏 ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(251, 250, 246, .78);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t-base), box-shadow var(--t-base);
}
.nav.scrolled {
  border-bottom-color: var(--c-border);
  box-shadow: 0 4px 20px rgba(15, 23, 42, .04);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: var(--sp-5);
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  transition: transform var(--t-fast) var(--e-spring);
}
.nav-brand:hover { transform: translateY(-2px); }
.nav-brand img { height: 40px; width: auto; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-links a {
  position: relative;
  padding: 8px 14px;
  border-radius: var(--r-sm);
  font-weight: 600;
  font-size: 14px;
  color: var(--c-text-soft);
  transition: color var(--t-fast), background var(--t-fast);
}
.nav-links a:hover {
  color: var(--c-text);
  background: rgba(15, 23, 42, .04);
}
.nav-links a.active {
  color: var(--c-primary-strong);
  background: var(--c-primary-soft);
}
.nav-links a.active::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 2px;
  transform: translateX(-50%);
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--c-primary);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* 服务器状态药丸（导航栏） */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px 6px 10px;
  border-radius: var(--r-pill);
  background: var(--c-primary-soft);
  color: var(--c-primary-strong);
  font-size: 12px;
  font-weight: 700;
  border: 1px solid rgba(22, 163, 74, .18);
  transition: transform var(--t-fast) var(--e-spring);
}
.status-pill:hover { transform: translateY(-1px); }
.status-pill.offline {
  background: var(--c-danger-soft);
  color: #991B1B;
  border-color: rgba(239, 68, 68, .2);
}
.status-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: currentColor;
  position: relative;
}
.status-dot::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid currentColor;
  opacity: .5;
  animation: pulse-ring 1.8s ease-out infinite;
}
@keyframes pulse-ring {
  0% { transform: scale(.6); opacity: .8; }
  100% { transform: scale(1.6); opacity: 0; }
}

/* 移动端菜单按钮 */
.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  border-radius: var(--r-sm);
  align-items: center;
  justify-content: center;
}
.nav-toggle span {
  display: block;
  width: 18px; height: 2px;
  background: var(--c-text);
  border-radius: 2px;
  position: relative;
  transition: background var(--t-fast);
}
.nav-toggle span::before,
.nav-toggle span::after {
  content: '';
  position: absolute;
  left: 0;
  width: 18px; height: 2px;
  background: var(--c-text);
  border-radius: 2px;
  transition: transform var(--t-base) var(--e-out);
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

/* ---------- 通用组件 ---------- */
.card {
  background: var(--c-surface);
  border-radius: var(--r-lg);
  border: 1px solid var(--c-border);
  padding: var(--sp-5);
  box-shadow: var(--sh-sm);
  transition: transform var(--t-base) var(--e-out), box-shadow var(--t-base), border-color var(--t-base);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--sh-md);
  border-color: #D6DEE8;
}
.card-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 4px;
}
.card-desc {
  font-size: 13px;
  color: var(--c-text-soft);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--r-sm);
  font-weight: 600;
  font-size: 14px;
  transition: transform var(--t-fast) var(--e-spring), box-shadow var(--t-fast), background var(--t-fast), color var(--t-fast);
  white-space: nowrap;
}
.btn-primary {
  background: var(--c-primary);
  color: white;
  box-shadow: var(--sh-glow-green);
}
.btn-primary:hover {
  background: var(--c-primary-strong);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(22, 163, 74, .35);
}
.btn-ghost {
  background: transparent;
  color: var(--c-text);
  border: 1px solid var(--c-border);
}
.btn-ghost:hover {
  background: var(--c-surface);
  border-color: #CBD5E1;
  transform: translateY(-2px);
}
.btn-accent {
  background: var(--c-accent);
  color: white;
  box-shadow: var(--sh-glow-blue);
}
.btn-accent:hover {
  background: #0284C7;
  transform: translateY(-2px);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--r-pill);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  background: var(--c-surface-soft);
  color: var(--c-text-soft);
  border: 1px solid var(--c-border);
}
.badge-green { background: var(--c-primary-soft); color: var(--c-primary-strong); border-color: rgba(22,163,74,.2); }
.badge-blue { background: var(--c-accent-soft); color: #075985; border-color: rgba(14,165,233,.2); }
.badge-warm { background: var(--c-warm-soft); color: #92400E; border-color: rgba(245,158,11,.25); }
.badge-pink { background: var(--c-pink-soft); color: #9D174D; border-color: rgba(236,72,153,.2); }
.badge-purple { background: var(--c-purple-soft); color: #6B21A8; border-color: rgba(168,85,247,.2); }
.badge-red { background: var(--c-danger-soft); color: #991B1B; border-color: rgba(239,68,68,.2); }

/* 区块标题 */
.section { padding: var(--sp-8) 0; position: relative; }
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--sp-5);
  margin-bottom: var(--sp-6);
  flex-wrap: wrap;
}
.section-title {
  font-size: 30px;
  letter-spacing: -.03em;
}
.section-title .accent {
  background: linear-gradient(120deg, var(--c-primary) 0%, var(--c-accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.section-sub {
  color: var(--c-text-soft);
  font-size: 14px;
  margin-top: 6px;
}
.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px;
  border-radius: var(--r-pill);
  background: var(--c-primary-soft);
  color: var(--c-primary-strong);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: var(--sp-3);
}
.section-eyebrow::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: currentColor;
  animation: pulse-soft 2s ease-in-out infinite;
}
@keyframes pulse-soft {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .4; transform: scale(.85); }
}

/* ---------- Hero ---------- */
.hero {
  padding: var(--sp-8) 0 var(--sp-7);
  position: relative;
  overflow: hidden;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: var(--sp-7);
  align-items: center;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 6px 8px;
  border-radius: var(--r-pill);
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  box-shadow: var(--sh-xs);
  font-size: 13px;
  font-weight: 600;
  color: var(--c-text-soft);
  margin-bottom: var(--sp-5);
  animation: fade-in-up .8s var(--e-out) both;
}
.hero-eyebrow .chip {
  padding: 3px 8px;
  border-radius: var(--r-pill);
  background: var(--c-warm-soft);
  color: #92400E;
  font-size: 11px;
  font-weight: 700;
}
.hero-title {
  font-size: clamp(38px, 5.4vw, 62px);
  line-height: 1.08;
  letter-spacing: -.035em;
  margin-bottom: var(--sp-4);
  animation: fade-in-up .8s .1s var(--e-out) both;
}
.hero-title .grad {
  background: linear-gradient(120deg, #16A34A 0%, #0EA5E9 50%, #A855F7 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: grad-shift 8s ease infinite;
}
@keyframes grad-shift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
.hero-sub {
  font-size: 17px;
  color: var(--c-text-soft);
  max-width: 520px;
  margin-bottom: var(--sp-6);
  animation: fade-in-up .8s .2s var(--e-out) both;
}
.hero-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  animation: fade-in-up .8s .3s var(--e-out) both;
}
.hero-meta {
  display: flex;
  gap: var(--sp-6);
  margin-top: var(--sp-7);
  padding-top: var(--sp-5);
  border-top: 1px dashed var(--c-border);
  animation: fade-in-up .8s .4s var(--e-out) both;
  flex-wrap: wrap;
}
.hero-meta-item .k {
  font-size: 11px;
  color: var(--c-text-mute);
  text-transform: uppercase;
  letter-spacing: .12em;
  font-weight: 700;
}
.hero-meta-item .v {
  font-size: 22px;
  font-weight: 800;
  color: var(--c-text);
  margin-top: 4px;
  font-variant-numeric: tabular-nums;
}

/* Hero 右侧：动态服务器状态展示 */
.hero-visual {
  position: relative;
  animation: fade-in-up .9s .25s var(--e-out) both;
}
.hero-card {
  position: relative;
  background: var(--c-surface);
  border-radius: var(--r-xl);
  border: 1px solid var(--c-border);
  padding: var(--sp-5);
  box-shadow: var(--sh-lg);
  overflow: hidden;
}
.hero-card::before {
  content: '';
  position: absolute;
  top: -60%; right: -30%;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(134, 239, 172, .35) 0%, transparent 70%);
  pointer-events: none;
}
.hero-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--sp-4);
  position: relative;
}
.hero-card-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
}
.hero-card-title .cube {
  width: 28px; height: 28px;
  border-radius: 6px;
  background: linear-gradient(135deg, #4ADE80 0%, #16A34A 100%);
  display: grid; place-items: center;
  color: white;
  font-family: var(--f-mono);
  font-size: 12px;
  font-weight: 800;
  box-shadow: 0 4px 10px rgba(22, 163, 74, .3);
  animation: tilt 6s ease-in-out infinite;
}
@keyframes tilt {
  0%, 100% { transform: rotate(-6deg); }
  50% { transform: rotate(6deg); }
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: var(--sp-4);
  position: relative;
}
.metric-tile {
  background: var(--c-surface-soft);
  border-radius: var(--r-md);
  padding: 14px;
  border: 1px solid var(--c-border-soft);
  transition: transform var(--t-fast) var(--e-spring), background var(--t-fast);
}
.metric-tile:hover {
  transform: translateY(-2px);
  background: white;
}
.metric-tile .label {
  font-size: 11px;
  color: var(--c-text-mute);
  text-transform: uppercase;
  letter-spacing: .1em;
  font-weight: 700;
}
.metric-tile .value {
  font-size: 24px;
  font-weight: 800;
  margin-top: 4px;
  color: var(--c-text);
  font-variant-numeric: tabular-nums;
  display: flex;
  align-items: baseline;
  gap: 4px;
}
.metric-tile .unit {
  font-size: 12px;
  color: var(--c-text-soft);
  font-weight: 600;
}
.metric-tile .trend {
  font-size: 11px;
  margin-top: 4px;
  color: var(--c-primary);
  font-weight: 600;
}
.metric-tile .trend.down { color: var(--c-danger); }

/* IP 复制条 */
.ip-copy {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px 10px 14px;
  background: var(--c-text);
  color: white;
  border-radius: var(--r-md);
  margin-top: var(--sp-4);
  font-family: var(--f-mono);
  font-size: 14px;
  position: relative;
  transition: transform var(--t-fast) var(--e-spring);
}
.ip-copy:hover { transform: translateY(-2px); }
.ip-copy .ip-text { flex: 1; letter-spacing: .05em; }
.ip-copy button {
  padding: 5px 10px;
  border-radius: 6px;
  background: rgba(255, 255, 255, .12);
  color: white;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .05em;
  transition: background var(--t-fast);
  font-family: var(--f-sans);
}
.ip-copy button:hover { background: rgba(255, 255, 255, .22); }
.ip-copy.copied { background: var(--c-primary); }

/* Hero 装饰小方块 */
.hero-decor-block {
  position: absolute;
  width: 48px; height: 48px;
  image-rendering: pixelated;
  filter: drop-shadow(0 8px 16px rgba(15,23,42,.12));
  pointer-events: none;
}
.hero-decor-block.b1 { top: -18px; left: -22px; animation: bob 4s ease-in-out infinite; }
.hero-decor-block.b2 { bottom: 40px; right: -30px; width: 40px; height: 40px; animation: bob 5s ease-in-out infinite reverse; }
.hero-decor-block.b3 { top: 40%; right: -18px; width: 32px; height: 32px; animation: bob 6s ease-in-out infinite; }
@keyframes bob {
  0%, 100% { transform: translateY(0) rotate(-6deg); }
  50% { transform: translateY(-14px) rotate(6deg); }
}

/* ---------- Grid / 通用布局 ---------- */
.grid { display: grid; gap: var(--sp-4); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ---------- 通知卡片 ---------- */
.notif-list { display: flex; flex-direction: column; gap: 12px; }
.notif-item {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  gap: var(--sp-4);
  padding: var(--sp-4);
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  transition: transform var(--t-fast) var(--e-out), box-shadow var(--t-fast), border-color var(--t-fast);
  cursor: pointer;
  align-items: center;
}
.notif-item:hover {
  transform: translateX(4px);
  border-color: #CBD5E1;
  box-shadow: var(--sh-sm);
}
.notif-icon {
  width: 44px; height: 44px;
  border-radius: var(--r-sm);
  display: grid;
  place-items: center;
  font-size: 20px;
  flex-shrink: 0;
}
.notif-icon.update { background: var(--c-primary-soft); }
.notif-icon.event { background: var(--c-pink-soft); }
.notif-icon.maintenance { background: var(--c-warm-soft); }
.notif-icon.announce { background: var(--c-accent-soft); }

.notif-body { min-width: 0; }
.notif-title {
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 2px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.notif-excerpt {
  color: var(--c-text-soft);
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.notif-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--c-text-mute);
  font-size: 12px;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

/* 新贴红点 */
.notif-new::before {
  content: '';
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--c-danger);
  box-shadow: 0 0 0 3px rgba(239, 68, 68, .18);
  animation: pulse-soft 1.6s ease-in-out infinite;
}

/* ---------- 分类过滤器 ---------- */
.filter-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding: 6px;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-pill);
  box-shadow: var(--sh-xs);
  width: fit-content;
}
.filter-btn {
  padding: 7px 16px;
  border-radius: var(--r-pill);
  font-size: 13px;
  font-weight: 600;
  color: var(--c-text-soft);
  transition: background var(--t-fast), color var(--t-fast), transform var(--t-fast);
}
.filter-btn:hover { color: var(--c-text); background: var(--c-surface-soft); }
.filter-btn.active {
  background: var(--c-text);
  color: white;
  transform: scale(1.02);
}

/* ---------- 时间线 ---------- */
.timeline { position: relative; padding-left: 28px; }
.timeline::before {
  content: '';
  position: absolute;
  left: 8px; top: 8px; bottom: 8px;
  width: 2px;
  background: linear-gradient(to bottom, var(--c-primary) 0%, var(--c-accent) 50%, var(--c-purple) 100%);
  opacity: .25;
  border-radius: 2px;
}
.timeline-group { margin-bottom: var(--sp-6); }
.timeline-date {
  font-size: 12px;
  font-weight: 700;
  color: var(--c-text-mute);
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: var(--sp-3);
  position: relative;
}
.timeline-date::before {
  content: '';
  position: absolute;
  left: -26px; top: 6px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--c-surface);
  border: 3px solid var(--c-primary);
}

/* ---------- 地图页 ---------- */
.map-wrap {
  position: relative;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--sh-md);
}
.map-wrap img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 1.2s var(--e-out);
}
.map-wrap:hover img { transform: scale(1.02); }
.map-overlay {
  position: absolute;
  top: var(--sp-4);
  left: var(--sp-4);
  padding: 10px 14px;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(8px);
  border-radius: var(--r-md);
  border: 1px solid var(--c-border);
  font-size: 12px;
  font-weight: 600;
  color: var(--c-text-soft);
  box-shadow: var(--sh-sm);
}
.map-compass {
  position: absolute;
  top: var(--sp-4);
  right: var(--sp-4);
  width: 56px; height: 56px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(8px);
  display: grid; place-items: center;
  border: 1px solid var(--c-border);
  box-shadow: var(--sh-sm);
  font-weight: 800;
  color: var(--c-text);
  font-family: var(--f-mono);
  font-size: 14px;
  animation: rotate-slow 40s linear infinite;
}
@keyframes rotate-slow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* 地标列表 */
.landmark-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: var(--r-md);
  transition: background var(--t-fast), transform var(--t-fast);
  cursor: pointer;
}
.landmark-item:hover {
  background: var(--c-surface-soft);
  transform: translateX(3px);
}
.landmark-dot {
  width: 12px; height: 12px;
  border-radius: 3px;
  flex-shrink: 0;
  box-shadow: 0 0 0 3px rgba(255,255,255,.9), 0 0 0 4px currentColor;
}
.landmark-name { font-weight: 600; font-size: 14px; flex: 1; }
.landmark-coord { font-family: var(--f-mono); font-size: 12px; color: var(--c-text-mute); }

/* ---------- 状态页 ---------- */
.stat-hero-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: var(--sp-4);
}
.stat-panel {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  padding: var(--sp-5);
  box-shadow: var(--sh-sm);
}
.stat-panel-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 700;
  color: var(--c-text-soft);
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: var(--sp-4);
}
.big-number {
  font-size: 56px;
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(120deg, var(--c-primary) 0%, var(--c-accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.big-number-label { font-size: 13px; color: var(--c-text-soft); margin-top: 6px; }

/* 进度条 */
.progress {
  height: 8px;
  background: var(--c-border-soft);
  border-radius: var(--r-pill);
  overflow: hidden;
  position: relative;
}
.progress-bar {
  height: 100%;
  border-radius: var(--r-pill);
  background: linear-gradient(90deg, var(--c-primary), var(--c-accent));
  width: 0;
  transition: width 1.2s var(--e-out);
  position: relative;
  overflow: hidden;
}
.progress-bar::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.4), transparent);
  animation: shimmer 2s linear infinite;
}
@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}
.progress.warm .progress-bar { background: linear-gradient(90deg, var(--c-warm), var(--c-pink)); }
.progress.danger .progress-bar { background: linear-gradient(90deg, var(--c-danger), #B91C1C); }

/* 玩家列表 */
.player-list { display: flex; flex-direction: column; gap: 8px; max-height: 420px; overflow-y: auto; }
.player-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  background: var(--c-surface-soft);
  border-radius: var(--r-md);
  transition: background var(--t-fast), transform var(--t-fast);
  border: 1px solid transparent;
}
.player-item:hover {
  background: white;
  border-color: var(--c-border);
  transform: translateX(3px);
}
.player-avatar {
  width: 36px; height: 36px;
  border-radius: var(--r-sm);
  background: linear-gradient(135deg, var(--c-primary-soft), var(--c-accent-soft));
  display: grid; place-items: center;
  font-weight: 800;
  color: var(--c-primary-strong);
  font-family: var(--f-mono);
  font-size: 14px;
  image-rendering: pixelated;
  flex-shrink: 0;
}
.player-name { font-weight: 600; font-size: 14px; flex: 1; }
.player-ping { font-family: var(--f-mono); font-size: 12px; color: var(--c-text-mute); }
.player-role {
  padding: 2px 8px;
  border-radius: var(--r-pill);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.role-owner { background: var(--c-warm-soft); color: #92400E; }
.role-admin { background: var(--c-pink-soft); color: #9D174D; }
.role-mod { background: var(--c-purple-soft); color: #6B21A8; }
.role-vip { background: var(--c-accent-soft); color: #075985; }
.role-member { background: var(--c-surface-soft); color: var(--c-text-soft); border: 1px solid var(--c-border); }

/* Uptime 条 */
.uptime-bars {
  display: flex;
  gap: 3px;
  height: 40px;
  align-items: flex-end;
}
.uptime-bar {
  flex: 1;
  background: var(--c-primary);
  border-radius: 2px 2px 0 0;
  transition: transform var(--t-fast), opacity var(--t-fast);
  min-height: 6px;
  cursor: pointer;
  position: relative;
}
.uptime-bar:hover { transform: scaleY(1.08); opacity: .85; }
.uptime-bar.partial { background: var(--c-warm); }
.uptime-bar.down { background: var(--c-danger); }

/* Sparkline (状态页 TPS/内存) */
.spark-wrap {
  background: var(--c-surface-soft);
  border-radius: var(--r-md);
  padding: var(--sp-4);
  border: 1px solid var(--c-border-soft);
}
.spark-title {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 8px;
}
.spark-title .k { font-size: 12px; color: var(--c-text-mute); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.spark-title .v { font-size: 20px; font-weight: 800; font-variant-numeric: tabular-nums; }

/* ---------- 关于页 ---------- */
.about-hero {
  padding: var(--sp-7) 0;
  text-align: center;
}
.about-hero h1 {
  font-size: clamp(36px, 4.5vw, 54px);
  margin-bottom: var(--sp-4);
}
.about-hero p {
  max-width: 640px;
  margin: 0 auto;
  color: var(--c-text-soft);
  font-size: 17px;
}
.timeline-horizontal {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-4);
  position: relative;
}
.timeline-horizontal::before {
  content: '';
  position: absolute;
  top: 24px;
  left: 5%; right: 5%;
  height: 2px;
  background: linear-gradient(90deg, var(--c-primary-soft), var(--c-primary), var(--c-accent), var(--c-purple-soft));
  z-index: 0;
}
.tl-node { position: relative; z-index: 1; text-align: center; }
.tl-dot {
  width: 48px; height: 48px;
  margin: 0 auto var(--sp-3);
  border-radius: 50%;
  background: var(--c-surface);
  border: 3px solid var(--c-primary);
  display: grid; place-items: center;
  font-weight: 800;
  color: var(--c-primary-strong);
  font-family: var(--f-mono);
  transition: transform var(--t-base) var(--e-spring), box-shadow var(--t-base);
}
.tl-node:hover .tl-dot {
  transform: scale(1.12);
  box-shadow: 0 8px 20px rgba(22, 163, 74, .25);
}

/* 服务器矩阵卡 */
.server-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  padding: var(--sp-5);
  position: relative;
  overflow: hidden;
  transition: transform var(--t-base) var(--e-out), box-shadow var(--t-base);
}
.server-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--c-primary), var(--c-accent));
}
.server-card.coming::before { background: linear-gradient(90deg, #CBD5E1, #94A3B8); }
.server-card.coming { opacity: .7; }
.server-card:hover { transform: translateY(-4px); box-shadow: var(--sh-md); }
.server-card h3 { font-size: 20px; margin-bottom: 4px; }
.server-card .tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: var(--r-pill);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: var(--sp-3);
}

/* ---------- 页脚 ---------- */
.footer {
  margin-top: var(--sp-8);
  padding: var(--sp-7) 0 var(--sp-5);
  background: var(--c-bg-alt);
  border-top: 1px solid var(--c-border);
  position: relative;
  overflow: hidden;
}
.footer::before {
  content: '';
  position: absolute;
  top: -1px; left: 0; right: 0;
  height: 4px;
  background: repeating-linear-gradient(
    90deg,
    var(--c-primary) 0 32px,
    var(--c-accent) 32px 64px,
    var(--c-warm) 64px 96px,
    var(--c-pink) 96px 128px
  );
  opacity: .6;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: var(--sp-6);
  margin-bottom: var(--sp-6);
}
.footer-brand img { height: 44px; margin-bottom: var(--sp-3); }
.footer-brand p { color: var(--c-text-soft); font-size: 13px; max-width: 280px; }
.footer-col h4 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--c-text-mute);
  margin-bottom: var(--sp-3);
  font-weight: 700;
}
.footer-col a {
  display: block;
  padding: 5px 0;
  font-size: 14px;
  color: var(--c-text-soft);
  transition: color var(--t-fast), transform var(--t-fast);
}
.footer-col a:hover {
  color: var(--c-primary-strong);
  transform: translateX(3px);
}
.footer-bottom {
  padding-top: var(--sp-5);
  border-top: 1px solid var(--c-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--c-text-mute);
  flex-wrap: wrap;
  gap: var(--sp-3);
}

/* ---------- 滚动显现动画 ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s var(--e-out), transform .7s var(--e-out);
}
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal.delay-1 { transition-delay: .08s; }
.reveal.delay-2 { transition-delay: .16s; }
.reveal.delay-3 { transition-delay: .24s; }
.reveal.delay-4 { transition-delay: .32s; }

@keyframes fade-in-up {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  padding: 12px 20px;
  background: var(--c-text);
  color: white;
  border-radius: var(--r-pill);
  font-size: 13px;
  font-weight: 600;
  box-shadow: var(--sh-lg);
  z-index: 200;
  opacity: 0;
  transition: transform .4s var(--e-spring), opacity .3s;
  display: flex;
  align-items: center;
  gap: 8px;
}
.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}
.toast.success { background: var(--c-primary-strong); }

/* ---------- 空状态 ---------- */
.empty {
  padding: var(--sp-8) var(--sp-5);
  text-align: center;
  color: var(--c-text-mute);
}
.empty-icon {
  font-size: 48px;
  margin-bottom: var(--sp-3);
  opacity: .5;
}

/* ---------- 响应式 ---------- */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; gap: var(--sp-6); }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .stat-hero-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--sp-5); }
  .timeline-horizontal { grid-template-columns: repeat(2, 1fr); gap: var(--sp-5); }
  .timeline-horizontal::before { display: none; }
}
@media (max-width: 720px) {
  main { padding-top: 72px; }
  .nav-links {
    position: fixed;
    top: 72px; left: 0; right: 0;
    background: rgba(251, 250, 246, .98);
    backdrop-filter: blur(16px);
    flex-direction: column;
    align-items: stretch;
    padding: var(--sp-4);
    gap: 4px;
    border-bottom: 1px solid var(--c-border);
    transform: translateY(-120%);
    transition: transform var(--t-base) var(--e-out);
    box-shadow: var(--sh-md);
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { padding: 12px 16px; font-size: 15px; }
  .nav-toggle { display: flex; }
  .status-pill .label { display: none; }
  .status-pill { padding: 6px 10px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .section { padding: var(--sp-6) 0; }
  .hero { padding: var(--sp-6) 0; }
  .hero-meta { gap: var(--sp-4); }
  .footer-grid { grid-template-columns: 1fr; }
  .notif-item { grid-template-columns: 36px 1fr; }
  .notif-item .notif-meta { grid-column: 2; justify-content: flex-start; margin-top: 4px; }
  .notif-icon { width: 36px; height: 36px; font-size: 16px; }
  .section-title { font-size: 24px; }
  .big-number { font-size: 44px; }
  .floating-block:nth-child(5),
  .floating-block:nth-child(7) { display: none; }
}

/* ---------- 无障碍 ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

:focus-visible {
  outline: 3px solid var(--c-accent);
  outline-offset: 2px;
  border-radius: 4px;
}
