/* ============================================================
   MILLENNIUMIC — 系统控制台 · 海报错位 · 硬核直角 · 无卡片
   布局骨架与 zakoflare-hc 完全不同:
   命令栏 / 跑马灯 / 错位面板 / 阶梯条目 / 数字墙 / 大字网格
   ============================================================ */

:root {
  --bg: #0b0b0c;
  --panel: #111113;
  --hover: #161619;
  --ink: #f2f2f0;
  --dim: #8f8f92;
  --line: #26262b;
  --acid: #d7ff00;      /* 荧光酸绿 — 主强调 */
  --acid-ink: #0b0b0c;  /* 酸绿底上的文字 */

  --font: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: ui-monospace, "Cascadia Mono", Consolas, "JetBrains Mono", "Courier New", monospace;
}

/* ---------- 重置 ---------- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; border-radius: 0 !important; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; background: none; border: none; color: inherit; cursor: pointer; }
em { font-style: normal; }

.mono { font-family: var(--mono); letter-spacing: .02em; }

[v-cloak] { display: none; }

::selection { background: var(--acid); color: var(--acid-ink); }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #333338; border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: var(--acid); }

.live-dot {
  display: inline-block;
  width: 9px; height: 9px;
  background: #39ff88;
  animation: blink 1.1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* ============================================================
   命令栏
   ============================================================ */
.cmdbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  height: 56px;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 0 4vw;
  background: var(--panel);
  border-bottom: 2px solid var(--ink);
}

.cmd-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
}

.brand-name {
  font-size: .95rem;
  font-weight: 900;
  letter-spacing: .1em;
}
.brand-tag {
  font-size: .66rem;
  color: var(--dim);
  border: 1px solid var(--line);
  padding: 2px 6px;
}

.cmd-nav {
  display: flex;
  gap: 6px;
  margin-left: 2vw;
}
.cmd-nav a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  font-size: .9rem;
  font-weight: 600;
  color: var(--dim);
  transition: color .15s, background .15s;
}
.cmd-nav a:hover { color: var(--ink); background: var(--hover); }
.cmd-nav a.active { background: var(--acid); color: var(--acid-ink); font-weight: 800; }
.nav-no { font-size: .68rem; opacity: .7; }

.cmd-status {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .74rem;
  color: var(--dim);
  white-space: nowrap;
}
.status-text { color: #39ff88; font-weight: 700; }
.status-divider { color: var(--line); }

.burger {
  display: none;
  margin-left: auto;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}
.burger span { display: block; width: 22px; height: 3px; background: var(--ink); }

/* 移动端菜单 */
.mobile-menu {
  position: fixed;
  top: 56px; left: 0; right: 0;
  z-index: 190;
  background: var(--panel);
  border-bottom: 2px solid var(--ink);
  transform: translateY(-120%);
  transition: transform .22s ease;
  padding: 10px 4vw 16px;
}
.mobile-menu.open { transform: none; }
.mobile-menu a {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 4px;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--dim);
  border-bottom: 1px solid var(--line);
}
.mobile-menu a.active { color: var(--acid); }
.mobile-foot { margin-top: 14px; font-size: .74rem; color: var(--dim); }

.mask {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .6);
  z-index: 185;
}

/* ============================================================
   主内容
   ============================================================ */
.main { padding-top: 56px; } /* 命令栏高度 */

/* ---------- 通用两栏 section ---------- */
.section { padding: 110px 4vw; }

.sec-grid {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 6vw;
}

.sec-index {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  position: sticky;
  top: 140px;
  align-self: start;
}
.sec-no {
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 900;
  line-height: .9;
  color: var(--acid);
  letter-spacing: -.03em;
}
.sec-en {
  font-size: .8rem;
  letter-spacing: .3em;
  color: var(--dim);
  font-weight: 700;
  margin-top: 10px;
}
.sec-cn {
  font-size: .86rem;
  font-weight: 600;
  color: var(--dim);
  border-left: 3px solid var(--acid);
  padding-left: 10px;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  padding: clamp(70px, 9vh, 130px) 4vw;
  border-bottom: 2px solid var(--ink);
  overflow: hidden;
  position: relative;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(90deg, rgba(255,255,255,.022) 0 1px, transparent 1px 6vw);
  pointer-events: none;
}

.hero-tag {
  display: inline-block;
  font-size: .76rem;
  color: var(--acid);
  border: 2px solid var(--acid);
  padding: 6px 13px;
  margin-bottom: 30px;
  letter-spacing: .12em;
}

.hero-title {
  font-size: clamp(3.2rem, 11.5vw, 9rem);
  font-weight: 900;
  line-height: .9;
  letter-spacing: -.04em;
  text-transform: uppercase;
}
.hero-title em { color: var(--acid); }

.hero-sub {
  margin-top: 28px;
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  color: var(--dim);
  max-width: 620px;
}
.hero-sub strong {
  color: var(--ink);
  font-weight: 700;
  border-bottom: 3px solid var(--acid);
}

.hero-actions {
  margin-top: 38px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 14px 28px;
  font-size: .94rem;
  font-weight: 800;
  letter-spacing: .06em;
  border: 2px solid var(--ink);
  transition: background .15s, color .15s, border-color .15s;
}
.btn-acid { background: var(--acid); color: var(--acid-ink); border-color: var(--acid); }
.btn-acid:hover { background: transparent; color: var(--acid); }
.btn-ghost { color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--bg); }

/* ============================================================
   数据带(hero 下方独立板块,替代原错位面板)
   ============================================================ */
.usage-band {
  display: grid;
  grid-template-columns: minmax(300px, 1fr) 2fr;
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
}

/* 左: LIVE 使用量 acid 实心块 */
.ub-live {
  background: var(--acid);
  color: var(--acid-ink);
  padding: 34px 4vw;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
}
.ub-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .7rem;
  font-weight: 900;
  letter-spacing: .22em;
}
.ub-refresh { font-size: .6rem; opacity: .6; margin-left: auto; }
.ub-live .live-dot { background: var(--acid-ink); }

.ub-retry {
  margin-left: auto;
  width: 30px; height: 30px;
  border: 2px solid var(--acid-ink);
  color: var(--acid-ink);
  font-size: 1rem;
  line-height: 1;
  transition: background .15s, color .15s;
}
.ub-retry:hover { background: var(--acid-ink); color: var(--acid); }

.ub-state {
  display: inline-block;
  margin-top: 4px;
  font-size: .62rem;
  font-weight: 800;
  letter-spacing: .14em;
  color: rgba(11, 11, 12, .55);
}
.ub-state.is-ok { color: rgba(11, 11, 12, .75); }
.ub-state.is-error {
  background: #fff;
  color: var(--acid-ink);
  padding: 3px 8px;
}

.ub-live .ub-num {
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -.02em;
  word-break: break-all;
}
.ub-live .ub-label { font-size: .92rem; font-weight: 700; }

/* 右: 四个计数 */
.ub-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.ub-stat {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  padding: 34px 24px;
}
.ub-stat + .ub-stat { border-left: 2px solid var(--ink); }
.ub-stat:hover { background: var(--hover); }

.ub-stat .ub-num {
  font-size: clamp(1.9rem, 3.2vw, 3rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -.02em;
  color: var(--ink);
  transition: color .15s;
}
.ub-stat:hover .ub-num { color: var(--acid); }
.ub-tag { font-size: .82rem; color: var(--dim); font-weight: 600; }

/* ============================================================
   产品:阶梯条目
   ============================================================ */
.entry {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto 30px;
  align-items: baseline;
  gap: 18px;
  padding: 26px 6px;
  border-bottom: 2px solid var(--ink);
  transition: background .15s, padding-left .15s;
}
.entry:hover { background: var(--hover); padding-left: 14px; }

.entry-no { font-size: .78rem; font-weight: 800; color: var(--acid); }
.entry-name {
  font-size: clamp(1.1rem, 1.7vw, 1.5rem);
  font-weight: 900;
  letter-spacing: -.01em;
  transition: color .15s;
}
.entry:hover .entry-name { color: var(--acid); }
.entry-meta {
  font-size: .86rem;
  color: var(--dim);
  text-align: right;
}
.entry:hover .entry-meta { color: var(--ink); }
.entry-arrow {
  font-size: 1.1rem;
  color: var(--dim);
  transition: transform .15s, color .15s;
}
.entry:hover .entry-arrow { color: var(--acid); transform: translateX(4px); }

/* 阶梯缩进 */
.entry.indent-1 { margin-left: 9%; }
.entry.indent-2 { margin-left: 18%; }
.entry.indent-1 .entry-no,
.entry.indent-2 .entry-no { color: var(--dim); }
.entry.indent-1:hover .entry-no,
.entry.indent-2:hover .entry-no { color: var(--acid); }

/* ============================================================
   理念:错位大字
   ============================================================ */
.philosophy {
  position: relative;
  background: var(--acid);
  color: var(--acid-ink);
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  padding: clamp(90px, 13vh, 160px) 4vw;
  overflow: hidden;
}
.philosophy::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(45deg, rgba(11,11,12,.06) 0 2px, transparent 2px 14px);
  pointer-events: none;
}

.philo-main {
  position: relative;
  font-size: clamp(2.6rem, 7.5vw, 6.5rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -.03em;
}
.philo-indent { margin-left: .45em; }

.philo-sub {
  position: absolute;
  right: 4vw;
  bottom: clamp(26px, 4vh, 44px);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .32em;
  color: rgba(11, 11, 12, .65);
}

.philo-corner {
  position: absolute;
  left: 4vw;
  bottom: clamp(14px, 3vh, 30px);
  font-size: clamp(1.6rem, 3vw, 2.6rem);
  font-weight: 900;
  color: rgba(11, 11, 12, .18);
  line-height: 1;
}

/* ============================================================
   资源:大字网格
   ============================================================ */
.wall {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 2px solid var(--ink);
}

.wall-cell {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 150px;
  padding: 22px 20px;
  transition: background .15s, color .15s;
}
.wall-cell + .wall-cell { border-left: 2px solid var(--ink); }
.wall-cell:nth-child(n + 4) { border-top: 2px solid var(--ink); }
.wall-cell:nth-child(3n + 1) { border-left: none; }

.wall-name {
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  font-weight: 900;
  letter-spacing: -.01em;
  line-height: 1.15;
}
.wall-meta {
  font-size: .72rem;
  color: var(--dim);
  letter-spacing: .04em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}
.wall-cell:hover { background: var(--acid); color: var(--acid-ink); }
.wall-cell:hover .wall-meta { color: var(--acid-ink); }

/* ============================================================
   页脚
   ============================================================ */
.foot {
  background: var(--panel);
  padding: 26px 4vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: .78rem;
  color: var(--dim);
}
.foot-right { display: flex; align-items: center; gap: 18px; }
.foot-right a { transition: color .15s; }
.foot-right a:hover { color: var(--acid); }
.ipv6 {
  border: 1.5px solid var(--dim);
  padding: 3px 10px;
  font-size: .72rem;
  transition: all .15s;
}
.ipv6:hover { border-color: var(--acid); }

/* ============================================================
   响应式
   ============================================================ */
@media (max-width: 1024px) {
  .cmd-nav { display: none; }
  .cmd-status .status-text,
  .cmd-status .status-divider { display: none; }
  .burger { display: flex; }
  .main { padding-top: 56px; }

  .sec-grid { grid-template-columns: 1fr; gap: 34px; }
  .sec-index { position: static; flex-direction: row; align-items: baseline; gap: 16px; }
  .sec-en { margin-top: 0; }
  .sec-cn { margin-left: auto; }

  /* 数据带: 平板单列 */
  .usage-band { grid-template-columns: 1fr; }
  .ub-stats { grid-template-columns: repeat(4, 1fr); }
  .ub-live { padding: 30px 5vw; }

  .entry { grid-template-columns: 40px minmax(0, 1fr) 26px; }
  .entry-meta { display: none; }
  .entry.indent-1 { margin-left: 5%; }
  .entry.indent-2 { margin-left: 10%; }
  /* 资源墙: 保持 3 列(9 格正好 3×3, 2 列会余 1 格产生空框) */
  .wall-cell { min-height: 132px; }
}

@media (max-width: 680px) {
  .main { padding-top: 56px; }
  .section { padding: 80px 5vw; }

  .cmdbar { padding: 0 5vw; }
  .brand-tag { display: none; }

  .hero { padding: 60px 5vw 70px; }
  .hero-title { font-size: clamp(2.7rem, 15vw, 4.6rem); }

  /* 数据带: 移动端竖排 */
  .usage-band { grid-template-columns: 1fr; }
  .ub-stats { grid-template-columns: repeat(2, 1fr); }
  .ub-stat:nth-child(odd) { border-left: none; }
  .ub-stat + .ub-stat { border-left: 2px solid var(--ink); }
  .ub-stat:nth-child(n + 3) { border-top: 2px solid var(--ink); }
  .ub-stat:nth-child(2n + 1) { border-left: none; }
  .ub-live { padding: 28px 5vw; }

  .wall { grid-template-columns: 1fr; }
  .wall-cell:nth-child(2n + 1) { border-left: none; }
  .wall-cell + .wall-cell { border-left: none; border-top: 2px solid var(--ink); }
  .wall-cell { min-height: 108px; }

  .philosophy { padding: 80px 5vw; }
  .philo-indent { margin-left: .3em; }
  .hide-mobile { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .live-dot { animation: none; }
}
