/* ================= LAK · Cyberpunk / Neon Terminal 主题 ================= */
/* 深空底 + 霓虹青/品红 + 网格 + 扫描线 + 辉光，保持既有类名不变           */

:root {
  /* 底色 */
  --bg: #04050a;
  --bg-soft: #080a12;
  --bg-elev: #0d1018;
  --bg-cyan: rgba(0, 229, 255, 0.07);
  --bg-magenta: rgba(255, 45, 149, 0.07);

  /* 文字 */
  --text: #e6f1ff;
  --muted: #8ea3bd;
  --dim: #5d7a99;

  /* 霓虹 */
  --neon: #00e5ff;
  --neon-600: #00b8cc;
  --neon-dim: rgba(0, 229, 255, 0.14);
  --neon-2: #ff2d95;
  --neon-2-dim: rgba(255, 45, 149, 0.14);
  --neon-3: #a855f7;
  --neon-4: #39ff14;

  --grad: linear-gradient(115deg, #00e5ff 0%, #a855f7 48%, #ff2d95 100%);
  --grad-soft: linear-gradient(180deg, rgba(0, 229, 255, 0.06) 0%, rgba(4, 5, 10, 0) 100%);

  /* 线 */
  --line: rgba(0, 229, 255, 0.14);
  --line-strong: rgba(0, 229, 255, 0.34);

  --r-lg: 6px;
  --r-md: 4px;
  --r-sm: 3px;

  --glow-cyan: 0 0 18px rgba(0, 229, 255, 0.4);
  --glow-magenta: 0 0 18px rgba(255, 45, 149, 0.4);
  --shadow-sm: 0 4px 18px rgba(0, 0, 0, 0.55);
  --shadow-md: 0 12px 40px rgba(0, 0, 0, 0.65);
  --shadow-neon: 0 0 0 1px rgba(0, 229, 255, 0.25), 0 0 26px rgba(0, 229, 255, 0.18);

  --maxw: 1200px;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ---------- 全局背景：网格 + 光晕 + 扫描线 ---------- */

body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    radial-gradient(900px 520px at 82% -10%, rgba(0, 229, 255, 0.13), transparent 62%),
    radial-gradient(760px 480px at 6% 8%, rgba(255, 45, 149, 0.10), transparent 60%),
    radial-gradient(900px 620px at 50% 108%, rgba(168, 85, 247, 0.10), transparent 64%),
    linear-gradient(rgba(0, 229, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 229, 255, 0.05) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 100% 100%, 48px 48px, 48px 48px;
  animation: gridDrift 22s linear infinite;
}

@keyframes gridDrift {
  from { background-position: 0 0, 0 0, 0 0, 0 0, 0 0; }
  to   { background-position: 0 0, 0 0, 0 0, 0 48px, 48px 0; }
}

/* 扫描线覆盖层 */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    rgba(0, 0, 0, 0.30) 0px,
    rgba(0, 0, 0, 0.30) 1px,
    transparent 1px,
    transparent 3px
  );
  opacity: 0.55;
  mix-blend-mode: multiply;
}

/* 粒子层（由 cyber-bg.js 绘制） */
#cyber-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.85;
}

/* 内容需浮在背景之上 */
.notice, .nav, main, footer { position: relative; z-index: 2; }

h1, h2, h3 { letter-spacing: -0.01em; font-weight: 800; }
a { color: inherit; text-decoration: none; }
::selection { background: rgba(0, 229, 255, 0.3); color: #fff; }

/* 滚动条 */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #06070d; }
::-webkit-scrollbar-thumb { background: rgba(0, 229, 255, 0.28); border-radius: 0; }
::-webkit-scrollbar-thumb:hover { background: rgba(0, 229, 255, 0.5); }

/* ---------------- 通告条 ---------------- */

.notice {
  background: linear-gradient(90deg, rgba(0, 229, 255, 0.16), rgba(255, 45, 149, 0.16));
  border-bottom: 1px solid var(--line);
  color: #cdf3ff;
  font-size: 13px;
  font-family: var(--mono);
  text-align: center;
  padding: 8px 20px;
  letter-spacing: 0.02em;
}
.notice span { opacity: 0.9; }
.notice b { font-weight: 700; color: #fff; text-shadow: var(--glow-cyan); }

/* ---------------- 导航 ---------------- */

.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(4, 5, 10, 0.82);
  backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(0, 229, 255, 0.08), 0 12px 40px rgba(0, 0, 0, 0.6);
}
.nav-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 13px 24px;
  display: flex; align-items: center; gap: 18px;
}
.brand { display: flex; align-items: center; gap: 12px; margin-right: auto; }
.brand .logo {
  width: 38px; height: 38px; border-radius: 4px;
  border: 1px solid var(--line-strong);
  box-shadow: 0 0 16px rgba(0, 229, 255, 0.35);
  background: #06080f;
}
.brand strong {
  display: block; font-size: 17px; font-weight: 800; letter-spacing: 0.22em;
  color: #fff; text-shadow: 0 0 12px rgba(0, 229, 255, 0.55);
}
.brand em {
  font-style: normal; font-size: 10.5px; color: var(--dim);
  letter-spacing: 0.12em; font-family: var(--mono); text-transform: uppercase;
}

.nav nav { display: flex; gap: 2px; }
.nav nav a {
  padding: 8px 13px; border-radius: 3px; font-size: 13.5px;
  color: var(--muted); font-weight: 500; font-family: var(--mono);
  letter-spacing: 0.04em; transition: 0.18s;
  border: 1px solid transparent;
}
.nav nav a:hover {
  color: var(--neon); border-color: var(--line);
  background: var(--bg-cyan); text-shadow: var(--glow-cyan);
}

/* ---------------- 按钮 ---------------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid var(--line-strong); border-radius: 3px;
  padding: 11px 22px; font-size: 13.5px; font-weight: 700;
  font-family: var(--mono); letter-spacing: 0.08em; text-transform: uppercase;
  cursor: pointer; white-space: nowrap; position: relative; overflow: hidden;
  transition: transform 0.16s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.btn::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, 0.22) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform 0.55s ease;
}
.btn:hover::after { transform: translateX(120%); }
.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: linear-gradient(120deg, rgba(0, 229, 255, 0.9), rgba(0, 180, 220, 0.9));
  color: #001018; border-color: transparent;
  box-shadow: 0 0 22px rgba(0, 229, 255, 0.42), inset 0 0 12px rgba(255, 255, 255, 0.25);
}
.btn-primary:hover {
  box-shadow: 0 0 34px rgba(0, 229, 255, 0.65), inset 0 0 16px rgba(255, 255, 255, 0.3);
}
.btn-ghost {
  background: rgba(0, 229, 255, 0.04); color: var(--neon);
  border-color: var(--line-strong);
}
.btn-ghost:hover {
  background: rgba(255, 45, 149, 0.1); color: #ffd6ea;
  border-color: rgba(255, 45, 149, 0.5);
  box-shadow: 0 0 22px rgba(255, 45, 149, 0.3);
}

main { max-width: var(--maxw); margin: 0 auto; padding: 0 24px 80px; }

/* ---------------- Hero ---------------- */

.hero { position: relative; padding: 70px 0 60px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); gap: 48px; align-items: center; }

.pill {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 6px 14px; border-radius: 3px;
  background: rgba(0, 229, 255, 0.07); color: var(--neon);
  border: 1px solid var(--line);
  font-size: 12px; font-weight: 600; font-family: var(--mono);
  letter-spacing: 0.12em; text-transform: uppercase;
}
.pill::before {
  content: ''; width: 7px; height: 7px; border-radius: 50%;
  background: var(--neon); box-shadow: 0 0 10px var(--neon);
  animation: pulse 1.8s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(0.8); }
}

.hero h1 {
  font-size: clamp(34px, 5.2vw, 62px);
  line-height: 1.06; font-weight: 900; margin: 22px 0 18px;
  text-shadow: 0 0 40px rgba(0, 229, 255, 0.22);
}
.grad {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 20px rgba(0, 229, 255, 0.45));
}
.hero .lead { color: var(--muted); font-size: 16px; max-width: 620px; margin: 0; }
.hero-actions { display: flex; gap: 12px; margin: 28px 0 34px; flex-wrap: wrap; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.stats div {
  background: linear-gradient(160deg, rgba(13, 16, 24, 0.92), rgba(8, 10, 18, 0.86));
  border: 1px solid var(--line); border-radius: 3px;
  padding: 12px 13px; display: flex; flex-direction: column; gap: 2px;
  position: relative; overflow: hidden;
}
.stats div::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--neon), transparent);
  opacity: 0.6;
}
.stats b {
  font-size: 20px; font-weight: 800; letter-spacing: -0.01em;
  color: var(--neon); font-family: var(--mono);
  text-shadow: 0 0 14px rgba(0, 229, 255, 0.5);
  font-variant-numeric: tabular-nums;
}
.stats span { font-size: 11.5px; color: var(--dim); line-height: 1.35; }

/* hero 右侧卡片 */
.hero-side { display: flex; justify-content: center; }
.hero-card {
  width: 100%; max-width: 420px;
  background: linear-gradient(160deg, rgba(13, 16, 24, 0.94), rgba(6, 8, 14, 0.9));
  border: 1px solid var(--line-strong); border-radius: 6px;
  padding: 24px; box-shadow: var(--shadow-md), var(--shadow-neon);
  position: relative;
}
.hero-card::before {
  content: ''; position: absolute; inset: -1px; border-radius: 6px; pointer-events: none;
  background: linear-gradient(140deg, rgba(0, 229, 255, 0.5), transparent 40%, transparent 60%, rgba(255, 45, 149, 0.45));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; padding: 1px;
}
.hero-card-top { display: flex; align-items: center; gap: 14px; }
.hero-logo {
  width: 62px; height: 62px; border-radius: 4px;
  border: 1px solid var(--line-strong); background: #06080f;
  box-shadow: 0 0 22px rgba(0, 229, 255, 0.4);
}
.hero-card-top strong {
  font-size: 20px; letter-spacing: 0.2em; display: block; color: #fff;
  text-shadow: 0 0 12px rgba(0, 229, 255, 0.5);
}
.hero-card-top em { font-style: normal; font-size: 11.5px; color: var(--dim); font-family: var(--mono); letter-spacing: 0.1em; }
.hero-lines { margin: 20px 0 18px; display: grid; gap: 8px; }
.hero-line {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  padding: 10px 13px; border-radius: 3px;
  background: rgba(0, 229, 255, 0.04); border: 1px solid var(--line);
  font-size: 13px; font-family: var(--mono);
}
.hero-line span { color: var(--muted); }
.hero-line b { font-variant-numeric: tabular-nums; color: var(--neon); text-shadow: 0 0 10px rgba(0, 229, 255, 0.4); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips span {
  font-size: 11px; padding: 4px 10px; border-radius: 3px;
  border: 1px solid var(--line); color: var(--muted);
  background: rgba(0, 229, 255, 0.03);
  font-family: var(--mono); letter-spacing: 0.05em;
  transition: 0.18s;
}
.chips span:hover { color: var(--neon); border-color: var(--line-strong); box-shadow: 0 0 12px rgba(0, 229, 255, 0.25); }

/* ---------------- 区块 ---------------- */

.panel { padding: 68px 0; border-top: 1px solid var(--line); scroll-margin-top: 84px; }
.panel:first-of-type { border-top: none; }
.panel.soft {
  background: linear-gradient(180deg, rgba(0, 229, 255, 0.035), rgba(4, 5, 10, 0));
  border: 1px solid var(--line); border-radius: 6px;
  margin-top: 24px; padding: 56px 28px;
}
.panel h2 {
  font-size: clamp(25px, 3.4vw, 36px); font-weight: 900; margin: 0 0 10px;
  letter-spacing: 0.01em;
  text-shadow: 0 0 30px rgba(0, 229, 255, 0.18);
}
.panel h2::before {
  content: '// '; color: var(--neon-2); font-family: var(--mono);
  font-size: 0.62em; vertical-align: 0.22em; letter-spacing: 0;
  text-shadow: var(--glow-magenta);
}
.sub { color: var(--muted); margin: 0 0 28px; font-size: 15px; max-width: 720px; }

.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* ---------------- 卡片 ---------------- */

.card {
  background: linear-gradient(160deg, rgba(13, 16, 24, 0.92), rgba(6, 8, 14, 0.86));
  border: 1px solid var(--line); border-radius: 4px;
  padding: 22px;
  box-shadow: inset 0 0 34px rgba(0, 229, 255, 0.035), var(--shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; margin-top: 18px; }
.card.mini { padding: 20px; display: flex; flex-direction: column; gap: 8px; }
.card.mini:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
  box-shadow: 0 0 0 1px rgba(0, 229, 255, 0.2), 0 14px 36px rgba(0, 0, 0, 0.6), 0 0 30px rgba(0, 229, 255, 0.14);
}
.card.mini .ico {
  width: 38px; height: 38px; border-radius: 3px; display: grid; place-items: center;
  background: rgba(0, 229, 255, 0.08); border: 1px solid var(--line);
  font-size: 18px; margin-bottom: 4px;
}
.card.mini b { font-size: 16px; font-weight: 700; color: #fff; }
.card.mini span { font-size: 13.5px; color: var(--muted); line-height: 1.55; }

/* ---------------- 表单 / 交互 ---------------- */

.row { display: flex; gap: 10px; margin-top: 10px; }
label {
  font-size: 12px; color: var(--dim); font-weight: 600;
  font-family: var(--mono); letter-spacing: 0.1em; text-transform: uppercase;
}
input {
  flex: 1; min-width: 0;
  background: rgba(0, 229, 255, 0.03);
  border: 1px solid var(--line); border-radius: 3px;
  padding: 11px 14px; color: var(--text);
  font-family: var(--mono); font-size: 14px;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}
input:focus {
  outline: none; border-color: var(--line-strong);
  background: rgba(0, 229, 255, 0.06);
  box-shadow: 0 0 0 3px rgba(0, 229, 255, 0.1), 0 0 20px rgba(0, 229, 255, 0.16);
}
input::placeholder { color: #40566e; }

.meta { margin-top: 12px; font-size: 13px; color: var(--muted); word-break: break-all; font-family: var(--mono); }
.bal { display: flex; flex-direction: column; gap: 2px; margin-bottom: 14px; }
.bal > span { font-size: 12px; color: var(--dim); font-family: var(--mono); letter-spacing: 0.1em; text-transform: uppercase; }
.bal strong {
  font-size: 30px; font-weight: 800; letter-spacing: -0.01em;
  font-family: var(--mono); font-variant-numeric: tabular-nums;
  color: #fff; text-shadow: 0 0 24px rgba(0, 229, 255, 0.45);
}
.bal em { font-style: normal; font-size: 12px; color: var(--neon); font-family: var(--mono); }
.msg { margin-top: 14px; font-size: 13px; min-height: 22px; color: var(--muted); word-break: break-all; font-family: var(--mono); }
.msg.err { color: #ff5c8a; text-shadow: 0 0 12px rgba(255, 45, 149, 0.5); }
.msg.ok { color: var(--neon-4); text-shadow: 0 0 12px rgba(57, 255, 20, 0.4); }

/* ---------------- 表格 ---------------- */

.table {
  border: 1px solid var(--line); border-radius: 4px; overflow: hidden;
  background: linear-gradient(160deg, rgba(13, 16, 24, 0.9), rgba(6, 8, 14, 0.84));
  box-shadow: inset 0 0 40px rgba(0, 229, 255, 0.03), var(--shadow-sm);
}
.tr {
  display: grid; grid-template-columns: 1.3fr 0.8fr 1fr 2fr; gap: 12px;
  padding: 13px 20px; font-size: 14px; align-items: center;
  position: relative; transition: background 0.18s ease;
}
.tr + .tr { border-top: 1px solid rgba(0, 229, 255, 0.09); }
.tr:not(.head):hover { background: rgba(0, 229, 255, 0.045); }
.tr:not(.head):hover::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 2px;
  background: var(--neon); box-shadow: 0 0 12px var(--neon);
}
.tr.head {
  color: var(--dim); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  background: rgba(0, 229, 255, 0.05); font-weight: 700; font-family: var(--mono);
}
.tr b {
  color: var(--neon); font-variant-numeric: tabular-nums;
  font-family: var(--mono); font-weight: 700;
  text-shadow: 0 0 12px rgba(0, 229, 255, 0.35);
}
.tr span { color: var(--muted); }
.tr span:nth-child(4) { color: var(--dim); font-size: 13.5px; }
.roles-table .tr { grid-template-columns: 1.1fr 1.3fr 1.3fr; }
.roles-table .tr span:first-child { color: var(--neon-2); font-family: var(--mono); font-size: 12.5px; }

/* ---------------- FAQ ---------------- */

details {
  border: 1px solid var(--line); border-radius: 3px;
  padding: 14px 18px; background: rgba(0, 229, 255, 0.025);
  margin-bottom: 9px;
  transition: border-color 0.18s ease, box-shadow 0.2s ease, background 0.2s ease;
}
details:hover { border-color: var(--line-strong); background: rgba(0, 229, 255, 0.05); }
details[open] {
  border-color: var(--line-strong);
  box-shadow: 0 0 0 1px rgba(0, 229, 255, 0.14), 0 0 26px rgba(0, 229, 255, 0.1);
}
summary {
  cursor: pointer; font-size: 15.5px; font-weight: 600; list-style: none;
  display: flex; justify-content: space-between; gap: 12px; color: #fff;
}
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; color: var(--neon); font-weight: 700; font-family: var(--mono); }
details[open] summary::after { content: '–'; color: var(--neon-2); }
details p { color: var(--muted); font-size: 14px; margin: 12px 0 0; }
code {
  background: rgba(0, 229, 255, 0.08); color: var(--neon);
  padding: 2px 7px; border-radius: 2px; font-size: 12.5px;
  font-family: var(--mono); border: 1px solid rgba(0, 229, 255, 0.18);
}

/* ---------------- 页脚 ---------------- */

footer { border-top: 1px solid var(--line); background: rgba(4, 5, 10, 0.9); }
.footer-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 52px 24px 38px;
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px;
}
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.footer-brand .logo {
  width: 34px; height: 34px; border-radius: 3px;
  border: 1px solid var(--line-strong); background: #06080f;
}
.footer-brand strong { letter-spacing: 0.2em; text-shadow: 0 0 12px rgba(0, 229, 255, 0.45); }
.footer-inner h4 {
  font-size: 11.5px; margin: 0 0 12px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--dim); font-family: var(--mono);
}
.footer-inner ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.footer-inner ul a { font-size: 14px; color: var(--muted); transition: 0.18s; }
.footer-inner ul a:hover { color: var(--neon); text-shadow: var(--glow-cyan); }
.footer-copy {
  max-width: var(--maxw); margin: 0 auto; padding: 18px 24px 34px;
  color: var(--dim); font-size: 12.5px; border-top: 1px solid var(--line);
  font-family: var(--mono);
}

/* ---------------- 响应式 ---------------- */

@media (max-width: 980px) {
  .nav nav { display: none; }
  .hero { padding: 48px 0 40px; }
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  main { padding: 0 16px 56px; }
  .nav-inner { padding: 12px 16px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .panel.soft { padding: 40px 18px; }
  .tr { grid-template-columns: 1fr 1fr; font-size: 13.5px; }
  .tr.head { display: none; }
  .tr span:nth-child(4) { grid-column: 1 / -1; }
  .roles-table .tr { grid-template-columns: 1fr; }
  .btn { width: 100%; }
  .row .btn { width: auto; }
  .footer-inner { grid-template-columns: 1fr; }
}

/* 降低动效偏好 */
@media (prefers-reduced-motion: reduce) {
  body::before { animation: none; }
  .pill::before { animation: none; }
  * { transition-duration: 0.01ms !important; }
}
