/* ==========================================================================
   主题：赛博朋克 · Neon Night City
   近黑 #08040f，洋红 #ff2e88，青 #00f0ff，警示黄 #ffe600，紫 #7b2cbf
   霓虹发光、等宽标签、扫描线、切角
   ========================================================================== */

:root {
  --brand: #00f0ff;
  --brand-dark: #00b8c4;
  --brand-deep: #0b0716;
  --brand-50: rgba(0, 240, 255, 0.1);
  --brand-100: rgba(0, 240, 255, 0.18);
  --brand-200: rgba(0, 240, 255, 0.34);

  --bg: #08040f;
  --bg-soft: #0d0819;
  --ink: #e9e7f5;
  --ink-soft: #cfcbe4;
  --muted: #9c93bd;
  --line: #2a1f45;
  --line-strong: #3d2c63;

  --surface: #0f0a1d;
  --surface-2: #150e27;
  --surface-3: #1b1231;
  --surface-4: #1d1436;
  --surface-5: #120b22;
  --surface-6: #150e28;
  --line-soft: #241a3c;
  --ink-faint: #7d7499;
  --ink-ghost: #6d6588;
  --ink-muted-2: #b3aad0;
  --code-bg: #050208;
  --code-ink: #7ef9ff;
  --hero-dot: #3a2b5c;
  --brand-shadow: rgba(0, 240, 255, 0.5);
  --amber: #ffd166;
  --amber-bg: rgba(255, 209, 102, 0.12);
  --amber-line: rgba(255, 209, 102, 0.34);
  --red: #ff6b6b;
  --red-bg: rgba(255, 107, 107, 0.12);
  --red-line: rgba(255, 107, 107, 0.32);
  --green: #4ef0a5;
  --green-bg: rgba(78, 240, 165, 0.12);
  --green-line: rgba(78, 240, 165, 0.3);
  --indigo: #a98bff;
  --indigo-line: rgba(169, 139, 255, 0.32);

  --radius: 4px;
  --radius-sm: 3px;
  --radius-pill: 3px;
  --shadow-sm: none;
  --shadow: 0 0 0 1px rgba(0, 240, 255, 0.16), 0 0 34px -14px rgba(255, 46, 136, 0.5);
  --shadow-lg: 0 0 0 1px rgba(0, 240, 255, 0.24), 0 0 46px -18px rgba(255, 46, 136, 0.6);

  --font: "Montserrat", "PingFang SC", "Microsoft YaHei", sans-serif;
  --cy-mono: ui-monospace, "SFMono-Regular", "Cascadia Code", Consolas, "Courier New", monospace;
  --cy-pink: #ff2e88;
  --cy-cyan: #00f0ff;
  --cy-yellow: #ffe600;
  --cy-purple: #7b2cbf;
}

body {
  font-size: 15.5px; line-height: 1.8;
  color: var(--ink);
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse 60% 40% at 12% 0%, rgba(123, 44, 191, 0.28), transparent 70%),
    radial-gradient(ellipse 50% 40% at 92% 8%, rgba(255, 46, 136, 0.16), transparent 70%),
    radial-gradient(ellipse 60% 50% at 50% 100%, rgba(0, 240, 255, 0.1), transparent 70%);
  background-attachment: fixed;
}

/* 扫描线 */
.cy-scan {
  position: fixed; inset: 0; z-index: 3; pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.32) 0 1px, transparent 1px 3px);
  opacity: 0.35;
  mix-blend-mode: multiply;
}

/* ---------- 页头 ---------- */
.cy-head {
  position: sticky; top: 0; z-index: 100;
  background: rgba(8, 4, 15, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 240, 255, 0.34);
  box-shadow: 0 1px 24px -8px rgba(0, 240, 255, 0.55);
}
.cy-head-in { display: flex; align-items: center; gap: 24px; height: 72px; max-width: 1240px; margin: 0 auto; padding: 0 30px; }

.cy-logo { display: flex; align-items: center; gap: 12px; flex: none; text-decoration: none; }
.cy-logo:hover { text-decoration: none; }
.cy-mark { display: block; flex: none; filter: drop-shadow(0 0 8px rgba(0, 240, 255, 0.6)); }
.cy-word { display: flex; flex-direction: column; line-height: 1.26; }
.cy-word strong {
  position: relative; font-size: 16.5px; font-weight: 700; letter-spacing: 0.05em;
  color: #f4f2ff; text-shadow: 0 0 14px rgba(0, 240, 255, 0.55);
}
.cy-word strong::before,
.cy-word strong::after {
  content: attr(data-text);
  position: absolute; left: 0; top: 0; width: 100%;
  clip-path: inset(0 0 55% 0); opacity: 0.55;
}
.cy-word strong::before { color: var(--cy-pink); transform: translate(-1.5px, -1px); }
.cy-word strong::after { color: var(--cy-cyan); clip-path: inset(58% 0 0 0); transform: translate(1.5px, 1px); }
.cy-word em {
  font-style: normal; font-family: var(--cy-mono); font-size: 8px; letter-spacing: 0.22em;
  color: var(--cy-cyan); opacity: 0.62; margin-top: 4px;
}

.cy-nav { margin-left: auto; gap: 4px; }
.cy-nav > a, .cy-nav .nav-more-btn {
  position: relative; padding: 7px 12px; border-radius: 3px; background: transparent;
  border: 1px solid transparent;
  font-size: 14.5px; font-weight: 600; color: var(--ink-soft); letter-spacing: 0.04em;
  transition: color 0.15s, border-color 0.15s, box-shadow 0.15s;
}
.cy-nav > a:hover, .cy-nav .nav-more-btn:hover {
  color: var(--cy-cyan); border-color: rgba(0, 240, 255, 0.45);
  box-shadow: 0 0 16px -4px rgba(0, 240, 255, 0.7), inset 0 0 12px -6px rgba(0, 240, 255, 0.6);
  background: rgba(0, 240, 255, 0.06);
}
.cy-nav > a.on {
  color: #08040f; background: var(--cy-cyan); border-color: var(--cy-cyan);
  box-shadow: 0 0 20px -4px rgba(0, 240, 255, 0.9);
}
.cy-nav .nav-more-panel {
  border: 1px solid rgba(0, 240, 255, 0.36); border-radius: 4px; padding: 6px;
  background: #0b0716; box-shadow: 0 0 26px -6px rgba(0, 240, 255, 0.5); min-width: 176px;
}
.cy-nav .nav-more-panel a {
  border-radius: 3px; font-size: 13.5px; padding: 9px 12px; color: var(--ink-soft);
}
.cy-nav .nav-more-panel a:hover { background: rgba(255, 46, 136, 0.16); color: #fff; }
.cy-search {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; margin-left: 8px; border-radius: 3px;
  border: 1px solid rgba(255, 46, 136, 0.45); color: var(--cy-pink);
}
.cy-search:hover { box-shadow: 0 0 18px -4px rgba(255, 46, 136, 0.9); color: #fff; background: rgba(255, 46, 136, 0.16); }

.cy-burger {
  display: none; width: 40px; height: 38px; margin-left: auto;
  align-items: center; justify-content: center; flex-direction: column; gap: 5px;
  cursor: pointer; border: 1px solid rgba(0, 240, 255, 0.4); border-radius: 3px;
}
.cy-burger span { display: block; width: 17px; height: 1.5px; background: var(--cy-cyan); box-shadow: 0 0 8px var(--cy-cyan); }

/* ---------- 排版 ---------- */
h1, h2, h3, h4 { color: #f4f2ff; font-weight: 700; letter-spacing: 0.005em; }
h2 { text-shadow: 0 0 22px rgba(0, 240, 255, 0.18); }
.wrap { max-width: 1240px; padding: 0 30px; }
.crumbs { max-width: 1240px; padding: 22px 30px 0; font-family: var(--cy-mono); font-size: 11px; color: var(--ink-faint); letter-spacing: 0.06em; }
.crumbs a { color: var(--cy-cyan); opacity: 0.85; }
.crumbs li + li::before { content: "//"; margin: 0 8px; color: var(--cy-pink); }
.crumbs a:hover { opacity: 1; text-decoration: none; }

.section { padding: 64px 0; }
.section.soft { background: rgba(21, 14, 39, 0.6); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head h2 { font-size: clamp(1.35rem, 2.2vw, 1.66rem); }
.section-head h2::after {
  content: ""; display: block; width: 54px; height: 2px; margin-top: 12px;
  background: linear-gradient(90deg, var(--cy-cyan), var(--cy-pink));
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.8);
}
.section-head p { color: var(--muted); font-size: 0.93rem; }

.page-head { padding: 46px 0 12px; }
.page-head h1 { font-size: clamp(1.8rem, 3.1vw, 2.4rem); text-shadow: 0 0 26px rgba(255, 46, 136, 0.28); }
.lead { color: var(--muted); }

/* ---------- 首屏 ---------- */
.hero { padding: 66px 0 56px; position: relative; }
.hero-in { grid-template-columns: 1.06fr 0.94fr; gap: 56px; align-items: center; }
.hero h1 {
  font-size: clamp(1.95rem, 3.3vw, 2.6rem); line-height: 1.24; letter-spacing: -0.01em; margin-top: 20px;
  text-shadow: 0 0 34px rgba(0, 240, 255, 0.22);
}
.hero h1 .hl {
  color: var(--cy-pink);
  text-shadow: 0 0 22px rgba(255, 46, 136, 0.85), 0 0 44px rgba(255, 46, 136, 0.4);
}
.hero-lead { color: var(--muted); max-width: 520px; line-height: 1.85; }
.hero-tag .pill {
  font-family: var(--cy-mono); font-size: 10.5px; letter-spacing: 0.1em;
  background: rgba(255, 230, 0, 0.08); border: 1px solid rgba(255, 230, 0, 0.4);
  color: var(--cy-yellow); border-radius: 3px; padding: 5px 10px;
}
.hero-actions { margin-top: 28px; gap: 12px; }
.hero-trust { margin-top: 30px; font-size: 11.5px; color: var(--ink-faint); font-family: var(--cy-mono); letter-spacing: 0.04em; }
.hero-trust svg { color: var(--cy-cyan); filter: drop-shadow(0 0 5px rgba(0, 240, 255, 0.8)); }

.btn { border-radius: 3px; font-size: 14px; font-weight: 600; letter-spacing: 0.04em; padding: 12px 22px; border-width: 1px; }
.btn-primary {
  background: var(--cy-pink); border-color: var(--cy-pink); color: #0a0412;
  box-shadow: 0 0 24px -6px rgba(255, 46, 136, 0.9);
}
.btn-primary:hover { background: #ff5b9f; box-shadow: 0 0 34px -4px rgba(255, 46, 136, 1); transform: none; }
.btn-secondary { background: transparent; border-color: rgba(0, 240, 255, 0.5); color: var(--cy-cyan); }
.btn-secondary:hover { background: rgba(0, 240, 255, 0.1); border-color: var(--cy-cyan); box-shadow: 0 0 22px -8px rgba(0, 240, 255, 0.9); }

/* 首屏卡：终端面板 */
.hero-card {
  position: relative; background: #0b0716;
  border: 1px solid rgba(0, 240, 255, 0.34); border-radius: 4px;
  box-shadow: 0 0 0 1px rgba(255, 46, 136, 0.16), 0 0 60px -22px rgba(0, 240, 255, 0.7);
  overflow: hidden;
}
.hero-card-bar { background: rgba(0, 240, 255, 0.08); border-bottom: 1px solid rgba(0, 240, 255, 0.26); border-radius: 0; color: var(--cy-cyan); padding: 9px 14px; }
.hero-card-bar i { background: #3a2b5c; border-radius: 50%; width: 7px; height: 7px; }
.hero-card-bar i:nth-child(1) { background: var(--cy-pink); box-shadow: 0 0 8px var(--cy-pink); }
.hero-card-bar i:nth-child(2) { background: var(--cy-yellow); box-shadow: 0 0 8px var(--cy-yellow); }
.hero-card-bar i:nth-child(3) { background: var(--cy-cyan); box-shadow: 0 0 8px var(--cy-cyan); }
.hero-card-bar span { font-family: var(--cy-mono); font-size: 10.5px; letter-spacing: 0.08em; color: var(--cy-cyan); opacity: 0.85; }
.hero-card-body { padding: 20px 22px; }
.hero-metric b { font-family: var(--cy-mono); font-size: 1.55rem; font-weight: 700; color: var(--cy-cyan); text-shadow: 0 0 16px rgba(0, 240, 255, 0.7); }
.hero-metric:nth-child(2) b { color: var(--cy-pink); text-shadow: 0 0 16px rgba(255, 46, 136, 0.7); }
.hero-metric:nth-child(3) b { color: var(--cy-yellow); text-shadow: 0 0 16px rgba(255, 230, 0, 0.6); }
.hero-metric span { font-family: var(--cy-mono); font-size: 10px; letter-spacing: 0.1em; color: var(--ink-faint); }
.hero-bar { background: #1b1231; border-radius: 0; height: 6px; }
.hero-bar i { background: linear-gradient(90deg, var(--cy-cyan), var(--cy-pink)); border-radius: 0; box-shadow: 0 0 10px rgba(0, 240, 255, 0.7); }
.hero-row p { font-size: 13.5px; color: var(--ink-soft); }
.hero-row + .hero-row { border-top: 1px solid var(--line-soft); padding-top: 10px; }
.hero-note { font-family: var(--cy-mono); font-size: 10px; color: var(--ink-faint); letter-spacing: 0.02em; }

/* ---------- 卡片 ---------- */
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 4px;
  box-shadow: none; padding: 24px;
  transition: border-color 0.18s, box-shadow 0.18s;
}
a.card:hover {
  border-color: rgba(0, 240, 255, 0.5);
  box-shadow: 0 0 0 1px rgba(0, 240, 255, 0.22), 0 0 42px -18px rgba(0, 240, 255, 0.8);
  transform: none;
}
.feature-card { position: relative; border-top: 1px solid rgba(255, 46, 136, 0.5); }
.feature-card:hover { border-top-color: var(--cy-pink); }
.feature-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: auto; height: auto; padding: 2px 9px; border-radius: 2px;
  background: rgba(255, 46, 136, 0.1); border: 1px solid rgba(255, 46, 136, 0.34);
  font-family: var(--cy-mono); font-size: 10.5px; letter-spacing: 0.14em; color: var(--cy-pink);
}
.hero-metric { background: rgba(0, 240, 255, 0.05); border: 1px solid rgba(0, 240, 255, 0.18); border-radius: 2px; }
.hero-row { border-radius: 2px; }
.grid { gap: 20px; }

/* ---------- 徽标 ---------- */
.badge { border-radius: 2px; font-family: var(--cy-mono); font-size: 10.5px; letter-spacing: 0.06em; font-weight: 700; }
.pill { border-radius: 3px; }
.pill { background: rgba(0, 240, 255, 0.1); color: var(--cy-cyan); border-color: rgba(0, 240, 255, 0.34); }
.pill-amber { background: rgba(255, 230, 0, 0.1); color: var(--cy-yellow); border-color: rgba(255, 230, 0, 0.34); }
.pill-gray { background: var(--surface-3); color: var(--ink-muted-2); border-color: var(--line); }

/* ---------- 表格 ---------- */
.table-wrap { border: 1px solid var(--line); border-radius: 4px; background: var(--surface); }
thead th {
  background: rgba(0, 240, 255, 0.07); color: var(--cy-cyan);
  border-bottom: 1px solid rgba(0, 240, 255, 0.3);
  font-family: var(--cy-mono); letter-spacing: 0.1em; font-size: 10.5px;
}
tbody td { border-bottom: 1px solid var(--line-soft); }
tbody tr:hover td { background: rgba(255, 46, 136, 0.06); }

/* ---------- 提示块 ---------- */
.callout { border-radius: 3px; background: rgba(0, 240, 255, 0.05); border: 1px solid rgba(0, 240, 255, 0.22); border-left: 2px solid var(--cy-cyan); }
.callout-info { border-left-color: var(--cy-cyan); }
.callout-warn { background: rgba(255, 230, 0, 0.06); border-color: rgba(255, 230, 0, 0.26); border-left-color: var(--cy-yellow); }
.callout-danger { background: rgba(255, 46, 136, 0.07); border-color: rgba(255, 46, 136, 0.26); border-left-color: var(--cy-pink); }
.callout-ok { background: rgba(78, 240, 165, 0.06); border-color: rgba(78, 240, 165, 0.26); border-left-color: var(--green); }
.callout-title { font-family: var(--cy-mono); font-size: 12.5px; letter-spacing: 0.06em; }
.review-meta { border-radius: 3px; background: var(--surface-2); border-color: var(--line); }
.review-meta dt { font-family: var(--cy-mono); font-size: 10.5px; letter-spacing: 0.06em; }

/* 详情 */
.detail-grid { grid-template-columns: 232px minmax(0, 1fr); gap: 46px; }
.side-nav { border-left: 1px solid var(--line); padding-left: 18px; }
.side-nav a { font-size: 12.5px; color: var(--muted); }
.side-nav a:hover { color: var(--cy-cyan); }

/* 文章 */
.article-body { font-size: 15.5px; }
.article-body h2 {
  font-size: 1.34rem; margin-top: 2.1em; padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}
.article-body h2::before {
  content: "▍"; color: var(--cy-pink); margin-right: 6px;
  text-shadow: 0 0 12px rgba(255, 46, 136, 0.8);
}
.article-body h3 { font-size: 1.1rem; color: var(--cy-cyan); }
.article-body blockquote {
  border: 0; border-left: 2px solid var(--cy-pink);
  background: rgba(255, 46, 136, 0.06);
  margin: 1.7em 0; padding: 14px 20px; color: var(--ink-soft);
}
.article-body a { color: var(--cy-cyan); border-bottom: 1px solid rgba(0, 240, 255, 0.4); }
.article-body a:hover { text-decoration: none; background: rgba(0, 240, 255, 0.1); }
.article-body code { background: #050208; color: var(--code-ink); padding: 2px 6px; border-radius: 2px; border: 1px solid var(--line); }

/* ---------- 页脚 ---------- */
.cy-foot {
  position: relative; background: #050208;
  border-top: 1px solid rgba(0, 240, 255, 0.3);
  box-shadow: 0 -1px 30px -12px rgba(0, 240, 255, 0.5);
  margin-top: 88px; padding: 58px 0 26px; color: var(--muted);
}
.cy-foot-in { max-width: 1240px; margin: 0 auto; padding: 0 30px; display: grid; grid-template-columns: 1.4fr 1.5fr; gap: 56px; }
.cy-foot-name { color: #f4f2ff; font-size: 16.5px; font-weight: 700; letter-spacing: 0.04em; text-shadow: 0 0 16px rgba(0, 240, 255, 0.4); }
.cy-foot-en { margin-top: 5px; font-family: var(--cy-mono); font-size: 8.5px; letter-spacing: 0.2em; color: var(--cy-cyan); opacity: 0.55; }
.cy-foot-note { margin-top: 16px; font-size: 12.5px; line-height: 1.9; max-width: 360px; }
.cy-foot-stats { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 20px; font-family: var(--cy-mono); font-size: 10.5px; letter-spacing: 0.08em; color: var(--ink-faint); }
.cy-foot-stats b { color: var(--cy-cyan); margin-left: 6px; font-size: 13px; }
.cy-foot-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.cy-foot-cols h3 { font-family: var(--cy-mono); font-size: 10.5px; letter-spacing: 0.14em; color: var(--cy-pink); margin-bottom: 14px; font-weight: 700; }
.cy-foot-cols a { display: block; font-size: 13px; color: var(--ink-soft); padding: 5px 0; }
.cy-foot-cols a:hover { color: var(--cy-cyan); text-decoration: none; }
.cy-foot-bottom {
  max-width: 1240px; margin: 44px auto 0; padding: 20px 30px 0;
  border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px;
  font-family: var(--cy-mono); font-size: 10.5px; color: var(--ink-ghost); letter-spacing: 0.03em;
}

/* 深色主题下 base 里少数硬编码处 */
.skip-link { background: var(--cy-pink); color: #08040f; }
::selection { background: rgba(255, 46, 136, 0.4); color: #fff; }

/* ---------- 响应式 ---------- */
@media (max-width: 1180px) {
  .cy-nav > a, .cy-nav .nav-more-btn { padding: 7px 9px; font-size: 14px; }
  .cy-word em { display: none; }
  .cy-head-in { padding: 0 24px; }
  .wrap, .crumbs { padding-left: 24px; padding-right: 24px; }
}
@media (max-width: 1024px) {
  .hero-in { gap: 40px; }
}
@media (max-width: 940px) {
  .cy-foot-in { grid-template-columns: 1fr; gap: 36px; }
  .detail-grid { grid-template-columns: 1fr; gap: 32px; }
  .side-nav { border-left: 0; padding-left: 0; }
}
@media (max-width: 840px) {
  .cy-head-in { height: 64px; padding: 0 20px; }
  .cy-burger { display: flex; }
  .cy-nav {
    position: fixed; inset: 65px 0 auto; margin: 0; padding: 12px 20px 20px;
    flex-direction: column; align-items: stretch; gap: 8px;
    background: #08040f; border-bottom: 1px solid rgba(0, 240, 255, 0.34);
    box-shadow: 0 18px 40px -20px rgba(0, 240, 255, 0.6);
    display: none;
  }
  .cy-head .nav-toggle:checked ~ .cy-nav { display: flex; }
  .cy-nav > a, .cy-nav .nav-more-btn {
    padding: 12px 12px; font-size: 15.5px; justify-content: flex-start; text-align: left;
  }
  .cy-nav > a.on { background: var(--cy-cyan); color: #08040f; }
  .cy-nav .nav-more { position: static; }
  .cy-nav .nav-more-panel { position: static; box-shadow: none; padding-left: 12px; background: transparent; border-color: var(--line); }
  .cy-search { display: none; }
  .wrap, .crumbs { padding-left: 20px; padding-right: 20px; }
  .hero { padding: 44px 0 40px; }
  .hero-in { grid-template-columns: 1fr; gap: 32px; }
  .section { padding: 46px 0; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .cy-foot-in, .cy-foot-bottom { padding-left: 20px; padding-right: 20px; }
  .cy-foot-cols { grid-template-columns: 1fr 1fr; gap: 20px; }
}
@media (max-width: 520px) {
  .cy-foot-cols { grid-template-columns: 1fr; }
  .hero h1 { font-size: 1.88rem; }
  .cy-scan { opacity: 0.22; }
}
