/* 掌机风首屏：深紫底 + 像素点阵 + 红白精灵球分隔线 */
.pa-hero { position: relative; color: #fff; background: radial-gradient(ellipse at 85% 0, #4a3699 0, transparent 60%), #1a1233; }
.pa-hero::before { content: ""; position: absolute; inset: 0; opacity: .5; background-image: radial-gradient(#ffffff14 1px, transparent 1.5px); background-size: 14px 14px; pointer-events: none; }
.pa-hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 12px; background: linear-gradient(#e63946 0 50%, #fff 50% 100%); border-top: 3px solid #0e0a1d; }
.pa-hero-in { position: relative; display: grid; align-items: center; grid-template-columns: .9fr 1.1fr; gap: clamp(22px, 4vw, 64px); padding-block: clamp(30px, 5vw, 64px) clamp(40px, 6vw, 80px); }
.eyebrow { color: var(--gold); font: 700 .9rem/1.2 monospace; letter-spacing: .12em; text-transform: uppercase; margin: 0 0 12px; }
.pa-hero h1 { font: 700 clamp(3rem, 5.6vw, 5.2rem)/.98 Pixelify, system-ui; letter-spacing: -.03em; margin: 0; text-shadow: 4px 4px 0 #e63946; }
.lead { max-width: 40ch; color: #e6e0f5; font-size: 1.1rem; margin: 16px 0 12px; }
.pa-tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0 0 22px; padding: 0; }
.pa-tags li { padding: 2px 10px; border: 2px solid #6e5bc0; background: #2a1f52; color: #ddd6f7; font: 700 .78rem/1.6 monospace; text-transform: uppercase; letter-spacing: .05em; }
#play { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; }
.pa-launch { color: #1a1233; background: var(--gold); border: 3px solid #0e0a1d; box-shadow: 4px 4px 0 #e63946; padding: 11px 20px; text-decoration: none; font-weight: 800; }
.pa-launch:hover { background: #ffe27a; transform: translate(-1px, -1px); }
.pa-secondary { color: #fff; font-size: .9rem; padding: 8px 0; }
.pa-caption { color: #c9c0e6; font-size: .8rem; margin: 12px 0 0; }
/* 截图装进掌机屏幕边框 */
.menu-shot { margin: 0; min-width: 0; padding: 10px 10px 0; background: #2d2358; border: 3px solid #0e0a1d; border-radius: 10px 10px 26px 10px; box-shadow: 8px 8px 0 #0e0a1d; }
.menu-shot img { display: block; width: 100%; height: auto; border: 3px solid #0e0a1d; background: #0e0a1d; }
.menu-shot figcaption { padding: 8px 4px 10px; display: flex; justify-content: space-between; gap: 8px; color: #d4cdee; font: 700 .72rem/1.3 monospace; text-transform: uppercase; }

.pa-notes { max-width: 900px; margin: 28px auto 0; }
.pa-notes section { margin: 34px auto; max-width: 72ch; scroll-margin-top: 15px; }
.pa-notes h2 { font: 700 clamp(1.8rem, 3vw, 2.5rem)/1.13 Pixelify, system-ui; margin: 0 0 12px; }
.pa-notes h2::before { content: ""; display: inline-block; width: .5em; height: .5em; margin-right: .4em; vertical-align: .05em; border-radius: 50%; background: linear-gradient(#e63946 0 42%, #231d3a 42% 58%, #fff 58% 100%); border: 2px solid #231d3a; }
.pa-notes p { margin: 10px 0; }

/* 步骤做成像素卡片 */
.pa-notes .steps { counter-reset: s; list-style: none; padding: 0; margin: 16px 0; display: grid; gap: 10px; }
.steps li { counter-increment: s; position: relative; padding: 12px 14px 12px 66px; background: #fff; border: 2px solid #231d3a; box-shadow: 4px 4px 0 #d9d0c0; }
.steps li::before { content: counter(s); position: absolute; left: 12px; top: 10px; width: 38px; height: 38px; display: grid; place-items: center; background: var(--blue); color: var(--gold); font: 700 1.4rem/1 Pixelify, system-ui; border: 2px solid #231d3a; }

/* 键位表：键帽样式 */
.keymap, .domains { margin: 16px 0; background: #fff; border: 2px solid #231d3a; }
.keymap div, .domains div { display: flex; align-items: center; gap: 20px; justify-content: space-between; border-bottom: 1px solid var(--line); padding: 12px 16px; }
.keymap div:last-child, .domains div:last-child { border-bottom: 0; }
dt { font-weight: 700; } dd { margin: 0; }
.domains dt { min-width: 12rem; }
kbd { display: inline-block; min-width: 2.2em; text-align: center; color: #231d3a; background: #f1ecff; border: 2px solid #231d3a; border-bottom-width: 4px; border-radius: 5px; font: 700 .85rem/1.5 monospace; padding: 0 7px; margin-left: 2px; }
.pa-notes .game-image { max-width: 720px; padding: 5px; margin: 20px auto; }
.pa-notes .game-image img { width: 100%; height: auto; max-height: min(70vh, 640px); object-fit: contain; display: block; }
.pa-guide .play-recommendations { border-top: 3px solid #231d3a; padding-top: 28px; margin-top: 40px; }

/* 补全：任务卡、数据表、定位徽章、FAQ 与子页首屏 */
.pa-updated { color: var(--gold); font: 700 .78rem/1.4 monospace; margin: 0 0 10px; }
.pa-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin: 18px 0; }
.pa-card { display: block; padding: 14px 16px; background: #fff; border: 2px solid #231d3a; box-shadow: 4px 4px 0 #d9d0c0; text-decoration: none; color: var(--ink); }
.pa-card:hover { transform: translate(-1px, -1px); box-shadow: 5px 5px 0 #231d3a; }
.pa-card strong { display: block; font-size: 1.05rem; color: var(--blue); margin-bottom: 4px; }
.pa-card span { display: block; font-size: .9rem; color: #3a3254; line-height: 1.45; }

.pa-wide { max-width: 1120px !important; }
.pa-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 16px 0; background: #fff; border: 2px solid #231d3a; box-shadow: 4px 4px 0 #d9d0c0; }
.pa-table { width: 100%; border-collapse: collapse; font-size: .92rem; min-width: 560px; }
.pa-table th, .pa-table td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.pa-table thead th { background: #1a1233; color: #fff; font: 700 .8rem/1.3 monospace; text-transform: uppercase; letter-spacing: .04em; white-space: nowrap; }
.pa-table tbody tr:last-child td { border-bottom: 0; }
.pa-table tbody tr:nth-child(even) td { background: #faf7f0; }

.pa-role { display: inline-block; padding: 2px 7px; border-radius: 4px; font: 700 .74rem/1.3 monospace; text-transform: uppercase; border: 1px solid #231d3a; }
.pa-role-physical { background: #fde2e4; color: #7a1c24; }
.pa-role-hybrid { background: #fff1cc; color: #664200; }
.pa-role-ranged { background: #dff1ff; color: #0f3f6e; }

.pa-callout { padding: 14px 16px; background: #fff; border: 2px solid #231d3a; border-left: 6px solid #e63946; margin: 16px 0; }
.pa-callout strong { color: #231d3a; }

.pa-faq { display: grid; gap: 10px; margin: 16px 0; }
.pa-faq details { background: #fff; border: 2px solid #231d3a; padding: 12px 16px; }
.pa-faq summary { font-weight: 700; cursor: pointer; color: var(--blue); }
.pa-faq details p { margin: 8px 0 0; }

.pa-subhero { padding-block: clamp(22px, 4vw, 44px) clamp(32px, 5vw, 56px); }
.pa-subhero h1 { font-size: clamp(2.1rem, 4.4vw, 3.4rem); }
.pa-crumb { font: 700 .8rem/1.3 monospace; color: #d4cdee; margin: 0 0 10px; }
.pa-crumb a { color: var(--gold); text-decoration: none; }
.pa-crumb a:hover { text-decoration: underline; }
.pa-toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 0; }
.pa-toc a { padding: 5px 11px; background: #2a1f52; border: 2px solid #6e5bc0; color: #fff; text-decoration: none; font: 700 .8rem/1.3 monospace; }
.pa-toc a:hover { border-color: var(--gold); color: var(--gold); }

.pa-related { margin: 36px auto; max-width: 72ch; }
.pa-related h2 { font: 700 1.45rem/1.2 Pixelify, system-ui; margin: 0 0 12px; }

@media (max-width: 740px) {
  .pa-hero-in { grid-template-columns: 1fr; gap: 16px; padding-block: 18px 28px; }
  .pa-subhero .pa-hero-in { gap: 12px; padding-block: 14px 20px; }
  .pa-subhero .lead { font-size: .95rem; margin: 8px 0; }
  .pa-subhero .menu-shot { padding: 6px 6px 0; }
  .pa-subhero .menu-shot img { max-height: 190px; object-fit: cover; }
  .pa-subhero .menu-shot figcaption { padding: 5px 4px 6px; }
  .lead { font-size: 1rem; margin: 10px 0 10px; }
  .pa-hero h1 { font-size: clamp(2.5rem, 10vw, 3.6rem); text-shadow: 3px 3px 0 #e63946; }
  .pa-subhero h1 { font-size: clamp(1.65rem, 7vw, 2.2rem); line-height: 1.05; }
  .menu-shot { box-shadow: 5px 5px 0 #0e0a1d; }
  .pa-notes section { margin: 20px auto; }
  .steps li { padding-left: 60px; }
  .domains div { display: grid; gap: 4px; }
  .keymap div { flex-wrap: wrap; gap: 6px 12px; }
}
