/* ============================================================
   掌机小精灵 · 复古掌机 / 像素风 设计系统  pixel.css
   掌机墨黑底 + 荧光青绿单色高亮 + 像素字体 + CRT 扫描线
   ============================================================ */
:root {
  /* 掌机墨黑底色系（单色青绿高亮） */
  --hk-bg:      #0a0e0b;
  --hk-bg-2:    #0e1410;
  --hk-panel:   #111814;
  --hk-panel-2: #17221a;
  --hk-line:    #233629;
  --hk-line-hi: #2f4a39;
  --hk-text:    #a9d9b6;
  --hk-dim:     #5e7c68;
  --hk-faint:   #405243;

  /* 荧光青绿单色高亮 */
  --neon:         #38ff8b;
  --neon-2:       #8cffbb;
  --neon-soft:    rgba(56, 255, 139, 0.12);
  --neon-line:    rgba(56, 255, 139, 0.30);
  --neon-glow:    0 0 8px rgba(56,255,139,.45), 0 0 20px rgba(56,255,139,.18);

  /* 像素字体 */
  --f-px:  'Press Start 2P', 'VT323', 'NSimSun', '宋体', monospace;
  --f-body:'VT323', 'Courier New', 'NSimSun', '宋体', monospace;
}

/* ---------- 基础 ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background:
    linear-gradient(rgba(56,255,139,.045) 1px, transparent 1px) 0 0 / 100% 5px,
    linear-gradient(90deg, rgba(56,255,139,.035) 1px, transparent 1px) 0 0 / 5px 100%,
    radial-gradient(circle at 50% -10%, #142018 0%, var(--hk-bg) 60%);
  color: var(--hk-text);
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.75;
  min-height: 100vh;
  overflow-x: hidden;
}

/* CRT 扫描线 + 暗角 */
body::before {
  content: ""; position: fixed; inset: 0; z-index: 9998; pointer-events: none;
  background: repeating-linear-gradient(to bottom, rgba(0,0,0,0) 0 2px, rgba(0,0,0,.22) 2px 4px);
  mix-blend-mode: multiply;
}
body::after {
  content: ""; position: fixed; inset: 0; z-index: 9997; pointer-events: none;
  background: radial-gradient(circle at center, rgba(0,0,0,0) 55%, rgba(0,0,0,.55) 100%);
}

::selection { background: var(--neon); color: var(--hk-bg); }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font-family: inherit; }
.wrap { width: min(1180px, 92vw); margin: 0 auto; }

/* 像素字体标题 */
.hk-title, .pixel { font-family: var(--f-px); letter-spacing: .5px; }

/* ---------- 像素化组件：面板 / 屏幕 ---------- */
/* 硬朗双层描边 */
.bezel { border: 2px solid var(--hk-line-hi); box-shadow: 6px 6px 0 0 rgba(0,0,0,.55), inset 0 0 0 1px var(--hk-bg-2); background: var(--hk-panel); }
.screen {
  background: var(--hk-panel); border: 2px solid var(--hk-line-hi);
  box-shadow: inset 0 0 0 1px var(--hk-bg-2), inset 0 0 26px rgba(56,255,139,.05);
  position: relative;
}
.screen::before {
  content: attr(data-title); display: block;
  font-family: var(--f-px); font-size: 10px; letter-spacing: 2px;
  color: var(--hk-dim); background: var(--hk-bg-2);
  border-bottom: 2px solid var(--hk-line);
  padding: 8px 12px; text-transform: uppercase;
}

/* ---------- 像素化按钮 ---------- */
.px-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--f-px); font-size: 13px; letter-spacing: 1px;
  color: var(--neon); background: var(--hk-bg-2);
  border: 2px solid var(--neon); text-shadow: 0 0 6px rgba(56,255,139,.7);
  box-shadow: 0 0 0 1px var(--hk-bg), 4px 4px 0 0 rgba(56,255,139,.35);
  padding: 12px 22px; cursor: pointer;
  transition: background .12s, transform .12s, box-shadow .12s;
  position: relative;
}
.px-btn:hover { background: var(--neon-soft); box-shadow: 0 0 0 1px var(--hk-bg), 4px 4px 0 0 var(--neon); transform: translate(-1px,-1px); }
.px-btn:active { transform: translate(2px,2px); box-shadow: 0 0 0 1px var(--hk-bg), 1px 1px 0 0 var(--neon); }
.px-btn.solid { background: var(--neon); color: var(--hk-bg); text-shadow: none; box-shadow: 0 0 0 1px var(--hk-bg), 4px 4px 0 0 var(--hk-line-hi); }
.px-btn.solid:hover { background: var(--neon-2); }
.px-btn.block { display: flex; width: 100%; }
.px-btn.dim { color: var(--hk-dim); border-color: var(--hk-line-hi); text-shadow: none; box-shadow: 4px 4px 0 0 rgba(0,0,0,.4); }

/* ---------- 标题工具条（console tab） ---------- */
.sect-hd { text-align: center; margin: 0 0 40px; }
.kicker {
  display: inline-block; font-family: var(--f-px); font-size: 10px; letter-spacing: 3px;
  color: var(--hk-bg); background: var(--neon); padding: 5px 10px; margin-bottom: 18px;
  box-shadow: 0 0 0 2px var(--hk-bg), 5px 5px 0 0 var(--neon-line);
}
.sect-hd h2, .sect-hd h3 {
  font-family: var(--f-px); color: var(--neon); font-size: 22px;
  text-shadow: 2px 2px 0 rgba(0,0,0,.6); letter-spacing: 2px; margin-bottom: 12px;
}
.sect-hd p { color: var(--hk-dim); max-width: 640px; margin: 0 auto; }
.hk-rule { width: 120px; height: 6px; margin: 18px auto 0; background: repeating-linear-gradient(90deg, var(--neon) 0 8px, var(--hk-bg-2) 8px 16px); box-shadow: var(--neon-glow); }

/* ---------- 头部 / 导航 ---------- */
.hk-header {
  position: sticky; top: 0; z-index: 100;
  background: linear-gradient(180deg, var(--hk-bg) 0%, #0c120d 100%);
  border-bottom: 3px double var(--hk-line-hi);
  box-shadow: 0 3px 0 0 rgba(0,0,0,.6);
}
.hk-header-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 0; flex-wrap: wrap; }
.hk-brand { display: flex; align-items: center; gap: 12px; }
.hk-logo { width: 46px; height: 46px; image-rendering: pixelated; filter: drop-shadow(0 0 6px rgba(56,255,139,.45)); }
.hk-brand-name { font-family: var(--f-px); font-size: 18px; color: var(--neon); text-shadow: 2px 2px 0 rgba(0,0,0,.6), var(--neon-glow); letter-spacing: 2px; line-height: 1.1; }
.hk-brand-sub { display: inline-block; font-size: 10px; font-family: var(--f-px); color: var(--hk-bg); background: var(--neon); padding: 2px 5px; margin-left: 6px; vertical-align: middle; text-shadow: none; box-shadow: 0 0 0 1px var(--hk-bg); }
.hk-nav { display: flex; gap: 4px; flex-wrap: wrap; }
.hk-nav a {
  font-family: var(--f-px); font-size: 10px; letter-spacing: 1px; color: var(--hk-dim);
  border: 2px solid transparent; padding: 9px 11px; position: relative; text-transform: uppercase;
}
.hk-nav a:hover, .hk-nav a.on { color: var(--neon); border-color: var(--hk-line-hi); background: var(--neon-soft); text-shadow: 0 0 6px rgba(56,255,139,.6); }
.hk-nav a.on::after { content:""; position:absolute; left:50%; bottom:-3px; transform:translateX(-50%); width: 8px; height: 8px; background: var(--neon); box-shadow: var(--neon-glow); }
.hk-nav .ext { border-color: var(--hk-line-hi); }
.hk-tools { display: flex; align-items: center; gap: 10px; }
.hk-burger { display: none; background: none; border: 2px solid var(--neon); color: var(--neon); font-size: 16px; width: 42px; height: 42px; cursor: pointer; }
@media (max-width: 900px) {
  .hk-nav { display: none; width: 100%; flex-direction: column; order: 3; background: var(--hk-bg-2); border: 2px solid var(--hk-line-hi); padding: 8px; }
  .hk-nav.open { display: flex; }
  .hk-nav a { border-color: var(--hk-line); margin-bottom: 4px; }
  .hk-burger { display: inline-flex; align-items: center; justify-content: center; }
}

/* ---------- Hero ---------- */
.hk-hero { position: relative; border-bottom: 3px double var(--hk-line-hi); overflow: hidden; }
.hk-hero img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; filter: saturate(.6) contrast(1.1) brightness(.75); }
.hk-hero::after { content:""; position: absolute; inset: 0; background: repeating-linear-gradient(to bottom, rgba(0,0,0,.35) 0 3px, rgba(0,0,0,0) 3px 6px); }
.hk-hero-in { position: relative; z-index: 2; min-height: 300px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 60px 20px; }
.hk-hero h1 { font-family: var(--f-px); font-size: clamp(22px, 4.5vw, 40px); color: var(--neon); text-shadow: 3px 3px 0 rgba(0,0,0,.8), var(--neon-glow); letter-spacing: 3px; margin: 20px 0 16px; }
.hk-hero .hk-hero-sub { color: var(--hk-text); max-width: 680px; font-size: 19px; text-shadow: 2px 2px 0 rgba(0,0,0,.8); }

/* ---------- 区块 ---------- */
.hk-section { padding: 60px 16px; }
.hk-section.alt { background: linear-gradient(180deg, var(--hk-bg-2), var(--hk-bg)); border-top: 2px solid var(--hk-line); border-bottom: 2px solid var(--hk-line); }

/* 卡片网格 */
.hk-grid { display: grid; gap: 18px; }
.hk-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.hk-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.hk-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 760px){ .hk-grid.cols-3, .hk-grid.cols-4 { grid-template-columns: 1fr; } .hk-grid.cols-2{ grid-template-columns: 1fr; } }

.hk-card { border: 2px solid var(--hk-line-hi); background: var(--hk-panel); box-shadow: 5px 5px 0 0 rgba(0,0,0,.5), inset 0 0 0 1px var(--hk-bg-2); padding: 22px; position: relative; }
.hk-card .ico { width: 56px; height: 56px; margin: 0 auto 16px; display:flex; align-items:center; justify-content:center; font-size: 26px; color: var(--neon); border: 2px solid var(--hk-line-hi); box-shadow: inset 0 0 12px var(--neon-soft); background: var(--hk-bg-2); }
.hk-card h3, .hk-card h4 { font-family: var(--f-px); color: var(--neon); font-size: 13px; letter-spacing: 1px; margin-bottom: 12px; text-align: center; text-shadow: 0 0 8px rgba(56,255,139,.4); }
.hk-card p { color: var(--hk-dim); font-size: 15px; text-align: center; }
.hk-card .tag { display: inline-block; font-size: 11px; font-family: var(--f-px); color: var(--neon); border: 1px solid var(--neon-line); padding: 3px 6px; letter-spacing: 1px; }
.hk-card.fit { display: flex; flex-direction: column; align-items: center; gap: 8px; }

/* 统计 / 特性数据条 */
.hk-stat { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.hk-stat b { font-family: var(--f-px); font-size: 24px; color: var(--neon); text-shadow: 2px 2px 0 rgba(0,0,0,.6), var(--neon-glow); }
.hk-stat span { color: var(--hk-dim); font-size: 14px; }

/* 分栏内容 */
.hk-split { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; margin-bottom: 40px; }
@media (max-width: 760px){ .hk-split{ grid-template-columns: 1fr; } }
.hk-split img { border: 2px solid var(--hk-line-hi); box-shadow: 6px 6px 0 0 rgba(0,0,0,.55), var(--neon-glow); image-rendering: pixelated; width: 100%; }
.hk-split .cap { font-family: var(--f-px); font-size: 12px; color: var(--neon); letter-spacing: 1px; margin-bottom: 12px; text-shadow: 0 0 6px rgba(56,255,139,.5); }
.hk-split h3 { font-family: var(--f-px); font-size: 18px; color: var(--neon); margin-bottom: 16px; letter-spacing: 1px; }
.hk-split p { color: var(--hk-dim); margin-bottom: 14px; }

/* 步骤 / 列表 */
.hk-step { display: flex; gap: 16px; margin-bottom: 20px; align-items: flex-start; }
.hk-step .n { width: 42px; height: 42px; flex: 0 0 42px; display:flex; align-items:center; justify-content:center; font-family: var(--f-px); font-size: 16px; color: var(--hk-bg); background: var(--neon); box-shadow: 0 0 0 2px var(--hk-bg), 4px 4px 0 0 var(--hk-line-hi); text-shadow: none; }
.hk-step h4 { font-family: var(--f-px); font-size: 13px; color: var(--hk-text); margin-bottom: 6px; letter-spacing: 1px; }
.hk-step p { color: var(--hk-dim); }
.hk-list { list-style: none; }
.hk-list li { display: flex; gap: 12px; margin-bottom: 12px; color: var(--hk-dim); }
.hk-list li::before { content: "\25A0"; color: var(--neon); text-shadow: var(--neon-glow); flex: 0 0 auto; }

/* FAQ */
.hk-faq { border: 2px solid var(--hk-line-hi); background: var(--hk-panel); box-shadow: 5px 5px 0 0 rgba(0,0,0,.5); padding: 18px; margin-bottom: 16px; }
.hk-faq h4 { font-family: var(--f-px); font-size: 12px; color: var(--hk-text); letter-spacing: 1px; margin-bottom: 10px; }
.hk-faq h4::before { content: "[?] "; color: var(--neon); }
.hk-faq p { color: var(--hk-dim); }

/* 代码框 / 兑换码 */
.hk-code { font-family: var(--f-px); font-size: 16px; letter-spacing: 3px; color: var(--neon); text-shadow: var(--neon-glow); background: var(--hk-bg); border: 2px dashed var(--neon-line); padding: 12px 18px; text-align: center; }
.hk-tip { border: 2px dashed var(--neon-line); background: var(--neon-soft); padding: 18px; color: var(--hk-text); }
.hk-tip p { color: var(--hk-text); }

/* 公众号卡片 */
.hk-wechat { text-align: center; }
.hk-wechat .qr { display: inline-block; padding: 10px; background: #fff; border: 2px solid var(--neon); box-shadow: 6px 6px 0 0 var(--hk-line-hi); margin-bottom: 14px; }
.hk-wechat .qr img { width: 180px; height: 180px; object-fit: contain; }
.hk-wechat h3 { font-family: var(--f-px); color: var(--neon); letter-spacing: 2px; margin-bottom: 8px; text-shadow: 0 0 8px rgba(56,255,139,.5); }
.hk-wechat p { color: var(--hk-dim); font-size: 14px; }

/* ---------- 页脚 ---------- */
.hk-footer { border-top: 3px double var(--hk-line-hi); background: linear-gradient(180deg, var(--hk-bg) 0%, #0a0e0b 40%); padding: 44px 16px 26px; }
.hk-footer .grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 28px; margin-bottom: 26px; }
@media (max-width: 760px){ .hk-footer .grid{ grid-template-columns: 1fr; } }
.hk-footer h3 { font-family: var(--f-px); font-size: 11px; color: var(--neon); letter-spacing: 2px; margin-bottom: 14px; text-transform: uppercase; }
.hk-footer ul { list-style: none; }
.hk-footer ul li { margin-bottom: 8px; }
.hk-footer ul a { color: var(--hk-dim); }
.hk-footer ul a:hover { color: var(--neon); }
.hk-footer ul a::before { content: "> "; color: var(--neon); }
.hk-footer .disc { font-size: 13px; color: var(--hk-faint); text-align: center; line-height: 2; border-top: 2px solid var(--hk-line); padding-top: 18px; }
.hk-footer .brand-line { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.hk-foot-badges { display: flex; gap: 14px; margin-top: 6px; }
.hk-foot-badges .px-btn.dim { border: 2px solid var(--hk-line-hi); }

/* 悬浮按钮 */
.hk-fab { position: fixed; bottom: 22px; right: 22px; z-index: 200; }
.hk-fab.left { right: auto; left: 90px; bottom: 22px; }
.hk-fab .px-btn { font-size: 12px; }

/* 移动端固定下载条 */
.hk-mobilebar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 300; display: none; padding: 10px 14px; background: var(--hk-bg); border-top: 3px double var(--neon); box-shadow: 0 -4px 0 0 rgba(0,0,0,.6); }
@media (max-width: 760px){ .hk-mobilebar { display: block; } body { padding-bottom: 66px; } }
.hk-mobilebar .m { font-family: var(--f-px); font-size: 10px; color: var(--hk-dim); }
.hk-mobilebar .row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }

/* 面包屑/文章详情 */
.hk-article { max-width: 820px; margin: 0 auto; }
.hk-article .meta { display: flex; flex-wrap: wrap; gap: 16px; color: var(--hk-dim); font-family: var(--f-px); font-size: 10px; margin-bottom: 22px; }
.hk-article .meta span::before { content: "◆ "; color: var(--neon); }
.hk-article .body h2 { font-family: var(--f-px); font-size: 15px; color: var(--neon); margin: 26px 0 12px; letter-spacing: 1px; }
.hk-article .body p { color: var(--hk-dim); margin-bottom: 14px; }
.hk-article .body ol, .hk-article .body ul { margin: 0 0 16px 22px; color: var(--hk-dim); }
.hk-article .body li { margin-bottom: 8px; }
.hk-article .body .lead { color: var(--hk-text); border-left: 4px solid var(--neon); padding-left: 14px; }

/* 提示文案 */
.hk-note { font-size: 13px; color: var(--hk-faint); text-align: center; margin-top: 18px; }