/* ============================================================
   霓虹游戏港 NEON GAME PORT - 赛博像素主题
   ============================================================ */

:root {
  --bg: #212121;
  --bg-2: #1a1a1a;
  --panel: #262626;
  --panel-2: #2e2e2e;
  --line: #3a3a3a;
  --line-bright: #4d4d4d;
  --text: #f2f2f2;
  --text-dim: #b8b8b8;
  --text-faint: #8a8a8a;
  --neon-cyan: #f6cb23;
  --neon-magenta: #8dffed;
  --neon-yellow: #8dffed;
  --neon-green: #8dffed;
  --neon-red: #ff5c7a;
  --neon-purple: #8dffed;
  --neon-cyan-rgb: 246, 203, 35;
  --neon-magenta-rgb: 141, 255, 237;
  --neon-yellow-rgb: 141, 255, 237;
  --neon-green-rgb: 141, 255, 237;
  --font-pixel: 'Press Start 2P', 'Fusion Pixel 12px', 'Courier New', monospace;
  --font-head: 'Fusion Pixel 12px', 'Press Start 2P', 'Microsoft YaHei', 'PingFang SC', sans-serif;
  --font-body: 'Fusion Pixel 12px', 'Microsoft YaHei', 'PingFang SC', sans-serif;
  --radius: 2px;
  --shadow-neon: 0 0 18px rgba(141, 255, 237, 0.18), 0 0 4px rgba(141, 255, 237, 0.25);
}

/* ---------------- 游戏攻略（论坛） ---------------- */

.forum-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.forum-cats {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.forum-search {
  display: flex;
  gap: 8px;
  margin-left: auto;
}

.forum-search input {
  min-width: 220px;
}

.forum-cat {
  font-size: 13px;
  padding: 6px 12px;
  border: 1px solid var(--line-bright);
  border-radius: 4px;
  color: var(--text-dim);
  background: rgba(13, 19, 38, 0.6);
}

.forum-cat:hover {
  color: var(--neon-cyan);
  border-color: var(--neon-cyan);
}

.forum-cat.active {
  color: var(--bg);
  background: var(--neon-cyan);
  border-color: var(--neon-cyan);
  font-weight: 700;
}

.forum-thread-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.forum-thread {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 14px 18px;
  text-decoration: none;
}

.forum-thread:hover {
  border-color: var(--neon-cyan);
  box-shadow: 0 0 14px rgba(var(--neon-cyan-rgb), 0.18);
}

.ft-badge {
  font-size: 11px;
  padding: 3px 9px;
  border: 1px solid var(--line-bright);
  border-radius: 3px;
  color: var(--neon-cyan);
  white-space: nowrap;
  font-family: var(--font-head);
}

.ft-main {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}

.ft-title {
  font-family: var(--font-head);
  font-size: 15px;
  color: var(--text);
  line-height: 1.4;
}

.forum-thread:hover .ft-title {
  color: var(--neon-cyan);
}

.ft-meta {
  font-size: 12px;
  color: var(--text-faint);
}

.ft-counts {
  font-size: 12px;
  color: var(--text-dim);
  white-space: nowrap;
}

.forum-pager {
  margin-top: 16px;
}

.forum-detail {
  padding: 22px;
  margin-bottom: 18px;
}

.forum-detail-head {
  border-bottom: 1px dashed var(--line-bright);
  padding-bottom: 14px;
  margin-bottom: 16px;
}

.forum-detail-head h1 {
  font-family: var(--font-head);
  font-size: 22px;
  color: var(--text);
  margin: 10px 0 6px;
}

.forum-detail-meta {
  font-size: 12px;
  color: var(--text-faint);
}

.guide-content {
  white-space: pre-wrap;
  line-height: 1.9;
  color: var(--text);
  font-size: 14px;
}

.forum-replies {
  padding: 20px;
  margin-bottom: 16px;
}

.forum-replies h2 {
  font-family: var(--font-head);
  font-size: 16px;
  color: var(--neon-yellow);
  margin-bottom: 14px;
}

.forum-reply {
  border-top: 1px dashed var(--line-bright);
  padding: 12px 0;
}

.forum-reply b {
  color: var(--neon-cyan);
  font-size: 13px;
}

.forum-reply-time {
  float: right;
  font-size: 11px;
  color: var(--text-faint);
}

.forum-reply p {
  margin-top: 6px;
  color: var(--text);
  font-size: 13px;
  line-height: 1.7;
  white-space: pre-wrap;
}

.forum-reply-form {
  padding: 20px;
}

/* ---------------- @ 艾特模糊预选 ---------------- */

.mention-menu {
  position: fixed;
  z-index: 9999;
  min-width: 220px;
  max-width: 300px;
  max-height: 280px;
  overflow-y: auto;
  background: linear-gradient(160deg, rgba(17, 26, 51, 0.99), rgba(8, 12, 26, 0.99));
  border: 1px solid rgba(var(--neon-cyan-rgb), 0.4);
  border-radius: 10px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.6), 0 0 18px rgba(var(--neon-cyan-rgb), 0.15);
  padding: 6px;
}

.mm-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 6px;
  cursor: pointer;
}

.mm-item:hover,
.mm-item.active {
  background: rgba(var(--neon-cyan-rgb), 0.12);
}

.mm-name {
  font-size: 13px;
  color: var(--text);
  white-space: nowrap;
}

.mm-bio {
  font-size: 11px;
  color: var(--text-faint);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
  text-align: right;
}

.guide-reply-to {
  font-size: 12px;
  color: var(--neon-magenta);
  margin-top: 4px;
}

/* 赛博紫主题 */
html[data-theme="violet"] {
  --bg: #0a0514;
  --bg-2: #130a24;
  --panel: #170c2c;
  --panel-2: #1d1038;
  --line: #2c1b52;
  --line-bright: #412a75;
  --text: #e6d9ff;
  --text-dim: #a78fd6;
  --text-faint: #6f5a9e;
  --neon-cyan: #b45cff;
  --neon-magenta: #ff3d81;
  --neon-yellow: #ffc233;
  --neon-green: #3ddc97;
  --neon-red: #ff5c7a;
  --neon-purple: #d08bff;
  --neon-cyan-rgb: 180, 92, 255;
  --neon-magenta-rgb: 255, 61, 129;
  --neon-yellow-rgb: 255, 194, 51;
  --neon-green-rgb: 61, 220, 151;
  --shadow-neon: 0 0 18px rgba(180, 92, 255, 0.18), 0 0 4px rgba(180, 92, 255, 0.25);
}

html[data-theme="violet"] body {
  background-image:
    radial-gradient(ellipse 900px 420px at 12% -6%, rgba(180, 92, 255, 0.12), transparent 60%),
    radial-gradient(ellipse 900px 420px at 88% 4%, rgba(255, 61, 129, 0.09), transparent 60%),
    linear-gradient(rgba(70, 40, 120, 0.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(70, 40, 120, 0.16) 1px, transparent 1px);
}

/* 蔷薇粉主题 */
html[data-theme="rose"] {
  --bg: #ce434e;
  --bg-2: #b83742;
  --panel: #d84f5b;
  --panel-2: #e05a66;
  --line: #a83340;
  --line-bright: #8f2a36;
  --text: #f7eef6;
  --text-dim: #e0c8dc;
  --text-faint: #b28aa8;
  --neon-cyan: #edd9ec;
  --neon-magenta: #2a2230;
  --neon-yellow: #2a2230;
  --neon-green: #edd9ec;
  --neon-red: #ff8fa0;
  --neon-purple: #2a2230;
  --neon-cyan-rgb: 237, 217, 236;
  --neon-magenta-rgb: 42, 34, 48;
  --neon-yellow-rgb: 42, 34, 48;
  --neon-green-rgb: 237, 217, 236;
  --shadow-neon: 0 0 18px rgba(237, 217, 236, 0.18), 0 0 4px rgba(237, 217, 236, 0.25);
}

html[data-theme="rose"] body {
  background-image:
    radial-gradient(ellipse 900px 420px at 12% -6%, rgba(237, 217, 236, 0.14), transparent 60%),
    radial-gradient(ellipse 900px 420px at 88% 4%, rgba(42, 34, 48, 0.2), transparent 60%),
    linear-gradient(rgba(120, 40, 50, 0.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120, 40, 50, 0.16) 1px, transparent 1px);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.7;
  font-size: 15px;
  background-image:
    radial-gradient(ellipse 900px 420px at 12% -6%, rgba(141, 255, 237, 0.1), transparent 60%),
    radial-gradient(ellipse 900px 420px at 88% 4%, rgba(246, 203, 35, 0.08), transparent 60%),
    linear-gradient(rgba(70, 70, 70, 0.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(70, 70, 70, 0.16) 1px, transparent 1px);
  background-size: auto, auto, 44px 44px, 44px 44px;
  background-attachment: fixed;
}

/* CRT 扫描线覆盖层 */
.crt-overlay {
  position: fixed;
  inset: 0;
  z-index: 9990;
  pointer-events: none;
  background:
    repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.16) 0 1px, transparent 1px 3px);
  mix-blend-mode: multiply;
  opacity: 0.55;
  animation: crt-flicker 7s infinite steps(1);
}

@keyframes crt-flicker {
  0%, 96%, 100% { opacity: 0.55; }
  97% { opacity: 0.38; }
  98% { opacity: 0.62; }
}

::selection {
  background: var(--neon-cyan);
  color: #031018;
}

a {
  color: var(--neon-cyan);
  text-decoration: none;
}

a:hover {
  color: var(--neon-yellow);
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: min(1180px, 100% - 32px);
  margin: 0 auto;
}

.main-content {
  min-height: 62vh;
  padding: 28px 0 56px;
}

/* ---------------- 顶部导航 ---------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(5, 8, 18, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 2px solid var(--line);
  box-shadow: 0 2px 0 rgba(var(--neon-cyan-rgb), 0.12), 0 8px 24px rgba(0, 0, 0, 0.5);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 12px 0;
  flex-wrap: wrap;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.logo-pixel {
  width: 34px;
  height: 34px;
  align-self: center;
  image-rendering: pixelated;
  filter: drop-shadow(0 0 6px rgba(var(--neon-cyan-rgb), 0.8));
}

.logo-text {
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 2px;
  color: var(--text);
  text-shadow: 0 0 10px rgba(var(--neon-cyan-rgb), 0.55);
  display: flex;
  flex-direction: column;
  gap: 6px;
  line-height: 1.15;
}

.logo-en {
  font-family: var(--font-pixel);
  font-size: 8px;
  letter-spacing: 2px;
  color: var(--neon-cyan);
}

.user-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 2px solid var(--line-bright);
  background: rgba(13, 19, 38, 0.7);
  padding: 4px 10px 4px 4px;
  color: var(--text);
  font-family: var(--font-head);
  font-size: 13px;
  transition: all 0.15s;
}

.user-chip:hover {
  border-color: var(--neon-cyan);
  box-shadow: 0 0 12px rgba(var(--neon-cyan-rgb), 0.25);
  color: var(--text);
}

.admin-tag {
  font-style: normal;
  font-family: var(--font-pixel);
  font-size: 7px;
  color: var(--neon-magenta);
  border: 1px solid var(--neon-magenta);
  padding: 2px 4px;
  text-shadow: 0 0 6px var(--neon-magenta);
}

.main-nav {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

.main-nav a {
  font-family: var(--font-head);
  color: var(--text-dim);
  padding: 7px 12px;
  border: 2px solid transparent;
  position: relative;
  transition: all 0.15s;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--neon-cyan);
  border-color: rgba(var(--neon-cyan-rgb), 0.4);
  background: rgba(var(--neon-cyan-rgb), 0.06);
  text-shadow: 0 0 8px rgba(var(--neon-cyan-rgb), 0.8);
  box-shadow: inset 0 0 12px rgba(var(--neon-cyan-rgb), 0.08);
}

.header-search {
  display: flex;
  gap: 6px;
  margin-left: auto;
  flex: 1;
  max-width: 340px;
  min-width: 200px;
}

.header-search input {
  flex: 1;
  min-width: 0;
}

.header-user {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.theme-toggle {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 1px solid var(--line-bright);
  background: conic-gradient(#f6cb23 0 33%, #b45cff 33% 66%, #edd9ec 66% 100%);
  cursor: pointer;
  box-shadow:
    0 0 10px rgba(var(--neon-cyan-rgb), 0.25),
    inset 0 0 6px rgba(255, 255, 255, 0.08);
  transition: transform 0.18s, box-shadow 0.18s;
}

.theme-toggle:hover {
  transform: rotate(180deg) scale(1.08);
  box-shadow: 0 0 14px rgba(180, 92, 255, 0.5);
}

.skeleton-line {
  height: 14px;
  background: linear-gradient(90deg, var(--line), var(--line-bright), var(--line));
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite linear;
  border-radius: 2px;
}

@keyframes shimmer {
  from { background-position: 200% 0; }
  to { background-position: -200% 0; }
}

/* ---------------- 通用控件 ---------------- */
.btn {
  font-family: var(--font-head);
  font-size: 13px;
  letter-spacing: 1px;
  border: 2px solid var(--line-bright);
  background: var(--panel-2);
  color: var(--text);
  padding: 9px 16px;
  cursor: pointer;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.12s;
  user-select: none;
  text-shadow: none;
}

.btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.12);
}

.btn:active {
  transform: translateY(2px);
  box-shadow: none !important;
}

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none !important;
}

.btn-primary {
  background: var(--neon-cyan);
  border-color: var(--neon-cyan);
  color: #031018;
  font-weight: 700;
  box-shadow: 0 4px 0 #0b6e63, 0 0 14px rgba(var(--neon-cyan-rgb), 0.4);
}

.btn-magenta {
  background: var(--neon-magenta);
  border-color: var(--neon-magenta);
  color: #14020f;
  font-weight: 700;
  box-shadow: 0 4px 0 #8a6d00, 0 0 14px rgba(var(--neon-magenta-rgb), 0.4);
}

.btn-green {
  background: var(--neon-green);
  border-color: var(--neon-green);
  color: #03180b;
  font-weight: 700;
  box-shadow: 0 4px 0 #0b6e63, 0 0 14px rgba(var(--neon-green-rgb), 0.35);
}

.btn-yellow {
  background: var(--neon-yellow);
  border-color: var(--neon-yellow);
  color: #170f00;
  font-weight: 700;
  box-shadow: 0 4px 0 #8a6d00, 0 0 14px rgba(var(--neon-yellow-rgb), 0.35);
}

.btn-ghost {
  background: transparent;
  border-color: var(--line-bright);
  color: var(--text-dim);
}

.btn-ghost:hover {
  color: var(--neon-cyan);
  border-color: var(--neon-cyan);
}

.btn-danger {
  background: transparent;
  border-color: rgba(255, 75, 107, 0.6);
  color: var(--neon-red);
}

.btn-sm {
  padding: 6px 10px;
  font-size: 11px;
}

.btn-lg {
  padding: 13px 24px;
  font-size: 14px;
}

input[type="text"],
input[type="search"],
input[type="password"],
input[type="url"],
input[type="number"],
textarea,
select {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text);
  background: #070c1a;
  border: 2px solid var(--line-bright);
  padding: 9px 12px;
  outline: none;
  border-radius: 0;
  width: 100%;
  transition: border-color 0.15s, box-shadow 0.15s;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--neon-cyan);
  box-shadow: 0 0 0 2px rgba(var(--neon-cyan-rgb), 0.18), 0 0 14px rgba(var(--neon-cyan-rgb), 0.2);
}

input::placeholder,
textarea::placeholder {
  color: var(--text-faint);
}

textarea {
  resize: vertical;
  min-height: 110px;
  line-height: 1.7;
}

select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--neon-cyan) 50%), linear-gradient(135deg, var(--neon-cyan) 50%, transparent 50%);
  background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%;
  background-size: 5px 5px;
  background-repeat: no-repeat;
  padding-right: 34px;
}

.pixel-card {
  background: var(--panel);
  border: 2px solid var(--line-bright);
  position: relative;
  box-shadow: 0 0 0 2px var(--bg), 0 6px 18px rgba(0, 0, 0, 0.45);
}

.pixel-card::before,
.pixel-card::after {
  content: '';
  position: absolute;
  width: 7px;
  height: 7px;
  background: var(--neon-cyan);
  box-shadow: 0 0 8px var(--neon-cyan);
  z-index: 2;
}

.pixel-card::before {
  top: -2px;
  left: -2px;
}

.pixel-card::after {
  bottom: -2px;
  right: -2px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-head);
  font-size: 12px;
  letter-spacing: 1px;
  color: var(--text-dim);
  border: 2px solid var(--line);
  background: rgba(13, 19, 38, 0.75);
  padding: 6px 11px;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}

.chip:hover {
  color: var(--neon-cyan);
  border-color: var(--neon-cyan);
  box-shadow: 0 0 12px rgba(var(--neon-cyan-rgb), 0.2);
}

.chip.active {
  color: #031018;
  background: var(--neon-cyan);
  border-color: var(--neon-cyan);
  box-shadow: 0 0 14px rgba(var(--neon-cyan-rgb), 0.45);
}

.tag {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 10px;
  letter-spacing: 0.5px;
  color: var(--neon-green);
  border: 1px solid rgba(var(--neon-green-rgb), 0.45);
  background: rgba(var(--neon-green-rgb), 0.07);
  padding: 2px 7px;
  margin: 0 4px 4px 0;
}

.badge {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 10px;
  letter-spacing: 1px;
  padding: 3px 8px;
  border: 1px solid;
}

.badge-cyan { color: var(--neon-cyan); border-color: var(--neon-cyan); background: rgba(var(--neon-cyan-rgb), 0.08); }
.badge-magenta { color: var(--neon-magenta); border-color: var(--neon-magenta); background: rgba(var(--neon-magenta-rgb), 0.08); }
.badge-yellow { color: var(--neon-yellow); border-color: var(--neon-yellow); background: rgba(var(--neon-yellow-rgb), 0.08); }
.badge-green { color: var(--neon-green); border-color: var(--neon-green); background: rgba(var(--neon-green-rgb), 0.08); }

.section-title {
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 3px;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  text-shadow: 0 0 12px rgba(var(--neon-cyan-rgb), 0.35);
}

.section-title::before {
  content: '▮';
  color: var(--neon-magenta);
  text-shadow: 0 0 10px var(--neon-magenta);
  font-size: 14px;
}

.section-title .sub {
  font-family: var(--font-pixel);
  font-size: 9px;
  color: var(--text-faint);
  letter-spacing: 2px;
  align-self: flex-end;
  margin-bottom: 4px;
}

/* ---------------- 首页 Hero ---------------- */
.hero {
  position: relative;
  padding: 52px 0 40px;
  text-align: center;
}

.hero-eyebrow {
  font-family: var(--font-pixel);
  font-size: 10px;
  color: var(--neon-magenta);
  letter-spacing: 4px;
  text-shadow: 0 0 12px rgba(var(--neon-magenta-rgb), 0.8);
  animation: blink 1.6s infinite steps(1);
}

@keyframes blink {
  50% { opacity: 0.35; }
}

.hero h1 {
  font-family: var(--font-head);
  font-size: clamp(34px, 6vw, 62px);
  font-weight: 900;
  letter-spacing: 6px;
  line-height: 1.2;
  margin: 14px 0 8px;
}

.glitch {
  position: relative;
  display: inline-block;
}

.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  overflow: hidden;
  opacity: 0;
}

.glitch::before {
  color: var(--neon-magenta);
  animation: glitch-a 3.2s infinite steps(1);
}

.glitch::after {
  color: var(--neon-cyan);
  animation: glitch-b 3.7s infinite steps(1);
}

@keyframes glitch-a {
  0%, 86%, 100% { opacity: 0; }
  87% { opacity: 0.85; transform: translate(-3px, 1px); clip-path: inset(18% 0 52% 0); }
  89% { opacity: 0.85; transform: translate(3px, -1px); clip-path: inset(62% 0 8% 0); }
  91% { opacity: 0; }
}

@keyframes glitch-b {
  0%, 88%, 100% { opacity: 0; }
  89% { opacity: 0.85; transform: translate(3px, 2px); clip-path: inset(42% 0 38% 0); }
  91% { opacity: 0.85; transform: translate(-2px, -2px); clip-path: inset(8% 0 74% 0); }
  93% { opacity: 0; }
}

.hero-sub {
  color: var(--text-dim);
  max-width: 640px;
  margin: 0 auto 26px;
  font-size: 15px;
}

.hero-search {
  display: flex;
  gap: 0;
  max-width: 560px;
  margin: 0 auto;
  border: 2px solid var(--neon-cyan);
  box-shadow: 0 0 22px rgba(var(--neon-cyan-rgb), 0.28), 0 4px 0 #0b6e63;
  background: #070c1a;
}

.hero-search input {
  border: none;
  background: transparent;
  box-shadow: none !important;
  flex: 1;
  padding: 14px 16px;
  font-size: 15px;
}

.hero-search .btn {
  border: none;
  border-left: 2px solid var(--neon-cyan);
  box-shadow: none;
  padding: 0 22px;
  font-family: var(--font-pixel);
  font-size: 12px;
  background: rgba(var(--neon-cyan-rgb), 0.12);
  color: var(--neon-cyan);
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: clamp(20px, 6vw, 64px);
  margin-top: 34px;
}

.hero-stat {
  font-family: var(--font-pixel);
  font-size: 18px;
  color: var(--neon-yellow);
  text-shadow: 0 0 12px rgba(var(--neon-yellow-rgb), 0.6);
}

.hero-stat small {
  display: block;
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--text-faint);
  letter-spacing: 2px;
  margin-top: 6px;
  text-shadow: none;
}

.hot-search {
  margin-top: 18px;
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--text-faint);
}

.hot-search a {
  color: var(--text-dim);
  border-bottom: 1px dashed var(--line-bright);
}

.hot-search a:hover {
  color: var(--neon-magenta);
  border-color: var(--neon-magenta);
}

/* ---------------- 滚动公告 ---------------- */
.ticker {
  overflow: hidden;
  border-bottom: 2px solid var(--line);
  background: rgba(10, 15, 32, 0.85);
  padding: 8px 0;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

.ticker-track {
  display: flex;
  gap: 48px;
  white-space: nowrap;
  width: max-content;
  animation: marquee 42s linear infinite;
  font-family: var(--font-head);
  font-size: 12px;
  letter-spacing: 1px;
  color: var(--text-dim);
}

.ticker-track span:nth-child(odd) { color: var(--neon-cyan); }
.ticker-track span:nth-child(even) { color: var(--neon-yellow); }

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (max-width: 768px) {
  .ticker {
    padding: 6px 0;
  }
  .ticker-track {
    font-size: 11px;
    line-height: 1.5;
    letter-spacing: 0.5px;
    gap: 36px;
  }
}

/* ---------------- 分类区 ---------------- */
.category-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 6px 0 26px;
}

.category-row .chip {
  padding: 9px 14px;
  font-size: 13px;
}

/* ---------------- 游戏卡片 ---------------- */
.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(252px, 1fr));
  gap: 20px;
}

.game-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.16s, box-shadow 0.16s;
}

.game-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 0 2px var(--bg), 0 0 22px rgba(var(--neon-cyan-rgb), 0.3);
}

.game-cover {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #070c1a;
  overflow: hidden;
  border-bottom: 2px solid var(--line);
}

.game-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  image-rendering: pixelated;
  transition: transform 0.25s;
}

.game-card:hover .game-cover img {
  transform: scale(1.05);
}

.game-cover .cat-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  font-family: var(--font-head);
  font-size: 11px;
  letter-spacing: 1px;
  color: #031018;
  background: var(--neon-cyan);
  padding: 3px 8px;
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.5);
}

.game-cover .size-badge {
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 2;
  font-family: var(--font-pixel);
  font-size: 9px;
  color: var(--neon-yellow);
  background: rgba(5, 7, 15, 0.82);
  border: 1px solid rgba(var(--neon-yellow-rgb), 0.5);
  padding: 3px 7px;
}

.game-info {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.game-info h3 {
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 1px;
  line-height: 1.35;
}

.game-info h3 a {
  color: var(--text);
}

.game-info h3 a:hover {
  color: var(--neon-cyan);
  text-shadow: 0 0 10px rgba(var(--neon-cyan-rgb), 0.7);
}

.game-en {
  font-family: var(--font-pixel);
  font-size: 8px;
  color: var(--text-faint);
  letter-spacing: 2px;
}

.game-meta {
  margin-top: auto;
  display: flex;
  gap: 14px;
  font-family: var(--font-pixel);
  font-size: 9px;
  color: var(--text-dim);
  border-top: 1px dashed var(--line);
  padding-top: 10px;
}

.game-meta .dl { color: var(--neon-cyan); }
.game-meta .fav { color: var(--neon-magenta); }
.game-meta .view { color: var(--text-faint); }

.empty-state {
  text-align: center;
  padding: 70px 20px;
  color: var(--text-faint);
  font-family: var(--font-head);
}

.game-grid .empty-state,
.latest-grid .empty-state {
  grid-column: 1 / -1;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.empty-state .big {
  font-family: var(--font-pixel);
  font-size: 22px;
  color: var(--neon-magenta);
  display: block;
  margin-bottom: 14px;
  text-shadow: 0 0 16px rgba(var(--neon-magenta-rgb), 0.6);
}

/* ---------------- 页签 ---------------- */
.tab-row {
  display: flex;
  gap: 8px;
  margin-bottom: 22px;
  border-bottom: 2px solid var(--line);
  padding-bottom: 12px;
}

.tab {
  font-family: var(--font-head);
  font-size: 14px;
  letter-spacing: 2px;
  color: var(--text-dim);
  padding: 8px 16px;
  cursor: pointer;
  border: 2px solid transparent;
  position: relative;
}

.tab:hover {
  color: var(--text);
}

.tab.active {
  color: var(--neon-cyan);
  border-color: var(--line-bright);
  background: rgba(var(--neon-cyan-rgb), 0.06);
  box-shadow: inset 0 -3px 0 var(--neon-cyan), 0 0 14px rgba(var(--neon-cyan-rgb), 0.12);
}

/* ---------------- 侧栏 ---------------- */
.home-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 26px;
  align-items: start;
}

.rank-list {
  display: flex;
  flex-direction: column;
}

.rank-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-bottom: 1px dashed var(--line);
  transition: background 0.15s;
  min-width: 0;
}

.rank-item:hover {
  background: rgba(var(--neon-cyan-rgb), 0.05);
}

.rank-item > span:last-child {
  flex: 1;
  min-width: 0;
  display: block;
}

.rank-no {
  font-family: var(--font-pixel);
  font-size: 12px;
  color: var(--neon-yellow);
  width: 28px;
  text-align: center;
  flex-shrink: 0;
}

.rank-item:nth-child(1) .rank-no,
.rank-item:nth-child(2) .rank-no,
.rank-item:nth-child(3) .rank-no {
  color: var(--neon-magenta);
  text-shadow: 0 0 8px var(--neon-magenta);
}

.rank-cover {
  width: 76px;
  height: 43px;
  object-fit: cover;
  image-rendering: pixelated;
  border: 1px solid var(--line);
  flex-shrink: 0;
}

.rank-title {
  font-family: var(--font-head);
  font-size: 13px;
  color: var(--text);
  line-height: 1.4;
  display: block;
  width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-meta {
  font-family: var(--font-pixel);
  font-size: 8px;
  color: var(--neon-cyan);
  margin-top: 4px;
}

/* ---------------- 详情页 ---------------- */
.detail-head {
  display: grid;
  grid-template-columns: 460px 1fr;
  gap: 28px;
  align-items: start;
  margin-bottom: 28px;
}

.detail-cover {
  border: 2px solid var(--line-bright);
  box-shadow: 0 0 0 2px var(--bg), 0 0 28px rgba(var(--neon-cyan-rgb), 0.15);
  position: relative;
  background: #070c1a;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.detail-cover img {
  width: 100%;
  height: auto;
  max-height: 430px;
  aspect-ratio: auto;
  object-fit: contain;
  image-rendering: pixelated;
}

.detail-title {
  font-family: var(--font-head);
  font-size: clamp(24px, 3.4vw, 36px);
  font-weight: 900;
  letter-spacing: 3px;
  line-height: 1.3;
  margin-bottom: 6px;
  text-shadow: 0 0 16px rgba(var(--neon-cyan-rgb), 0.3);
}

.detail-en {
  font-family: var(--font-pixel);
  font-size: 10px;
  color: var(--neon-magenta);
  letter-spacing: 3px;
  margin-bottom: 14px;
}

.detail-tags {
  margin-bottom: 16px;
}

.detail-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.info-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.info-table td {
  padding: 8px 10px;
  border: 1px solid var(--line);
}

.info-table td:first-child {
  width: 110px;
  color: var(--text-faint);
  font-family: var(--font-head);
  font-size: 12px;
  letter-spacing: 1px;
  background: rgba(13, 19, 38, 0.7);
}

.info-table a.author-link {
  color: var(--neon-yellow);
}

.panel {
  background: var(--panel);
  border: 2px solid var(--line-bright);
  padding: 22px;
  margin-bottom: 26px;
  position: relative;
}

.panel h2 {
  font-family: var(--font-head);
  font-size: 17px;
  letter-spacing: 2px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.panel h2::before {
  content: '▶';
  color: var(--neon-green);
  font-size: 11px;
}

.description {
  white-space: pre-line;
  color: #c3d3f2;
  font-size: 15px;
  line-height: 1.9;
}

.screenshot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
  grid-auto-rows: 130px;
}

.screenshot-grid img {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  object-fit: contain;
  background: #070c1a;
  image-rendering: pixelated;
  border: 1px solid var(--line);
  cursor: zoom-in;
  transition: all 0.15s;
}

.screenshot-grid img:hover {
  border-color: var(--neon-cyan);
  box-shadow: 0 0 14px rgba(var(--neon-cyan-rgb), 0.3);
  transform: scale(1.02);
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}

/* ---------------- 评论 ---------------- */
.comment-box {
  display: flex;
  gap: 12px;
  margin-bottom: 22px;
}

.avatar {
  width: 42px;
  height: 42px;
  border: 2px solid var(--line-bright);
  flex-shrink: 0;
  image-rendering: pixelated;
  background: var(--panel-2);
}

.avatar-sm {
  width: 32px;
  height: 32px;
}

.comment-box form {
  flex: 1;
}

.comment-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.comment-item {
  border: 1px solid var(--line);
  background: rgba(13, 19, 38, 0.6);
  padding: 14px;
}

.comment-item.reply {
  margin-left: 42px;
  border-color: rgba(var(--neon-magenta-rgb), 0.3);
  background: rgba(var(--neon-magenta-rgb), 0.04);
}

.comment-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.comment-name {
  font-family: var(--font-head);
  font-size: 13px;
  color: var(--neon-cyan);
}

.comment-time {
  font-size: 12px;
  color: var(--text-faint);
  margin-left: auto;
}

.comment-content {
  white-space: pre-line;
  font-size: 14px;
  color: #c3d3f2;
}

.comment-actions {
  margin-top: 8px;
  display: flex;
  gap: 12px;
}

.like-btn.liked {
  color: var(--neon-red);
}

.link-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--text-faint);
  padding: 0;
}

.link-btn:hover {
  color: var(--neon-cyan);
}

.reply-indicator {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(var(--neon-magenta-rgb), 0.08);
  border: 1px dashed rgba(var(--neon-magenta-rgb), 0.5);
  color: var(--neon-magenta);
  font-size: 12px;
  padding: 5px 10px;
  margin-bottom: 10px;
}

/* ---------------- 表单 ---------------- */
.auth-wrap {
  max-width: 440px;
  margin: 30px auto;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-bottom: 0;
}

.auth-tabs .tab {
  text-align: center;
  border: 2px solid var(--line);
  border-bottom: none;
}

.auth-tabs .tab.active {
  background: var(--panel);
  border-color: var(--line-bright);
  border-bottom-color: var(--panel);
  color: var(--neon-cyan);
}

.auth-body {
  padding: 28px 24px;
}

.field {
  margin-bottom: 16px;
}

.field label {
  display: block;
  font-family: var(--font-head);
  font-size: 12px;
  letter-spacing: 1px;
  color: var(--text-dim);
  margin-bottom: 7px;
}

.field .hint {
  font-size: 12px;
  color: var(--text-faint);
  margin-top: 5px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 16px;
}

.form-error {
  color: var(--neon-red);
  border: 1px solid rgba(255, 75, 107, 0.5);
  background: rgba(255, 75, 107, 0.07);
  padding: 9px 12px;
  font-size: 13px;
  margin-bottom: 14px;
  display: none;
}

.cover-preview {
  margin-top: 10px;
  max-width: 320px;
  border: 2px solid var(--line);
  display: none;
}

.cover-preview img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  image-rendering: pixelated;
}

.thumb-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.thumb-row .thumb {
  position: relative;
  width: 120px;
  aspect-ratio: 16 / 9;
  border: 2px solid var(--line);
}

.thumb-row .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  image-rendering: pixelated;
}

.thumb-row .thumb button {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 20px;
  height: 20px;
  border: 1px solid var(--neon-red);
  background: #16060b;
  color: var(--neon-red);
  cursor: pointer;
  line-height: 1;
}

.radio-row {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.radio-row label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--text-dim);
  cursor: pointer;
  margin: 0;
}

/* ---------------- 个人主页 ---------------- */
.profile-head {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 26px;
  margin-bottom: 26px;
}

.profile-head .avatar {
  width: 72px;
  height: 72px;
}

.profile-name {
  font-family: var(--font-head);
  font-size: 24px;
  font-weight: 900;
  letter-spacing: 2px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.profile-bio {
  color: var(--text-dim);
  margin-top: 6px;
  font-size: 14px;
}

.profile-stats {
  margin-left: auto;
  display: flex;
  gap: 26px;
  text-align: center;
}

.profile-stats .num {
  font-family: var(--font-pixel);
  font-size: 18px;
  color: var(--neon-yellow);
  text-shadow: 0 0 10px rgba(var(--neon-yellow-rgb), 0.5);
}

.profile-stats .lbl {
  font-size: 12px;
  color: var(--text-faint);
}

.profile-tabs {
  margin-bottom: 0;
}

/* ---------------- 关于页 ---------------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.about-grid .panel {
  margin-bottom: 0;
}

.feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.feature-list li {
  display: flex;
  gap: 10px;
  color: #c3d3f2;
  font-size: 14px;
}

.feature-list li::before {
  content: '▸';
  color: var(--neon-green);
  flex-shrink: 0;
}

code {
  font-family: 'Consolas', 'Courier New', monospace;
  background: #05070f;
  border: 1px solid var(--line);
  color: var(--neon-green);
  padding: 2px 7px;
  font-size: 13px;
}

/* ---------------- 加载 ---------------- */
.loading {
  text-align: center;
  padding: 60px 0;
  font-family: var(--font-pixel);
  font-size: 12px;
  color: var(--neon-cyan);
  animation: blink 1s infinite steps(1);
}

.load-more-wrap {
  text-align: center;
  margin-top: 30px;
}

/* ---------------- 弹窗 / 轻量框 ---------------- */
.modal-mask {
  position: fixed;
  inset: 0;
  z-index: 9500;
  background: rgba(2, 4, 10, 0.88);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: fade-in 0.15s ease;
}

.modal-box {
  width: min(92vw, 460px);
  max-height: 86vh;
  overflow: auto;
  background: linear-gradient(160deg, rgba(17, 26, 51, 0.98), rgba(8, 12, 26, 0.98));
  border: 1px solid rgba(var(--neon-cyan-rgb), 0.35);
  border-radius: 14px;
  padding: 20px;
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.6),
    0 0 24px rgba(var(--neon-cyan-rgb), 0.15);
}

.modal-box h3 {
  margin-bottom: 12px;
  color: var(--neon-cyan);
}

.popup-content {
  max-height: 50vh;
  overflow: auto;
  line-height: 1.7;
  color: var(--text);
}

.popup-content h2 {
  font-size: 17px;
  color: var(--neon-yellow);
  margin: 10px 0 6px;
}

.popup-content h3 {
  font-size: 15px;
  color: var(--neon-cyan);
  margin: 10px 0 6px;
}

.popup-content h4 {
  font-size: 13px;
  color: var(--neon-magenta);
  margin: 8px 0 4px;
}

.popup-content ul,
.popup-content ol {
  margin: 6px 0 8px;
  padding-left: 22px;
}

.popup-content li {
  margin: 3px 0;
}

.popup-content p {
  margin: 6px 0;
}

.popup-content a {
  color: var(--neon-cyan);
  text-decoration: underline;
}

.withdraw-big {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 10px 0 8px;
}

.withdraw-big b {
  font-family: var(--font-pixel);
  font-size: 22px;
  color: var(--neon-yellow);
}

.withdraw-big span {
  font-size: 12px;
  color: var(--text-dim);
}

.cell-title {
  color: var(--neon-cyan);
  text-decoration: none;
}

@keyframes fade-in {
  from { opacity: 0; }
}

.lightbox {
  max-width: min(1000px, 100%);
  border: 2px solid var(--neon-cyan);
  box-shadow: 0 0 34px rgba(var(--neon-cyan-rgb), 0.35);
}

.lightbox img {
  max-height: 78vh;
  width: auto;
  margin: 0 auto;
  image-rendering: pixelated;
}

.lightbox-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  width: 36px;
  height: 36px;
  background: var(--neon-magenta);
  border: 2px solid var(--neon-magenta);
  color: #14020f;
  font-family: var(--font-pixel);
  font-size: 14px;
  cursor: pointer;
  box-shadow: 0 3px 0 #8a6d00;
}

.lightbox-close:hover {
  filter: brightness(1.15);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 40px;
  height: 52px;
  background: rgba(5, 8, 18, 0.8);
  border: 2px solid var(--neon-cyan);
  color: var(--neon-cyan);
  font-family: var(--font-pixel);
  font-size: 16px;
  cursor: pointer;
}

.lightbox-nav:hover {
  background: rgba(var(--neon-cyan-rgb), 0.2);
}

.lightbox-prev { left: -8px; }
.lightbox-next { right: -8px; }

/* ---------------- Toast ---------------- */
.toast-root {
  position: fixed;
  top: 84px;
  right: 20px;
  z-index: 9800;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  font-family: var(--font-head);
  font-size: 13px;
  letter-spacing: 1px;
  padding: 12px 18px;
  border: 2px solid;
  background: rgba(8, 12, 26, 0.94);
  max-width: 340px;
  animation: toast-in 0.18s ease;
  pointer-events: auto;
}

.toast.success { border-color: var(--neon-green); color: var(--neon-green); box-shadow: 0 0 16px rgba(var(--neon-green-rgb), 0.25); }
.toast.error { border-color: var(--neon-red); color: var(--neon-red); box-shadow: 0 0 16px rgba(255, 75, 107, 0.25); }
.toast.info { border-color: var(--neon-cyan); color: var(--neon-cyan); box-shadow: 0 0 16px rgba(var(--neon-cyan-rgb), 0.25); }

@keyframes toast-in {
  from { transform: translateX(30px); opacity: 0; }
}

.toast.out {
  transition: all 0.3s;
  opacity: 0;
  transform: translateX(30px);
}

/* ---------------- 页脚 ---------------- */
.site-footer {
  border-top: 2px solid var(--line);
  background: rgba(5, 7, 15, 0.94);
  margin-top: 30px;
}

.footer-inner {
  padding: 26px 0 30px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}

.footer-brand .logo-text {
  font-size: 17px;
  align-items: center;
  gap: 10px;
}

.footer-brand p,
.footer-disclaimer {
  font-size: 12px;
  color: var(--text-faint);
}

.footer-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-links a {
  font-family: var(--font-head);
  font-size: 13px;
  color: var(--text-dim);
}

.footer-links a:hover {
  color: var(--neon-cyan);
}

/* ---------------- 响应式 ---------------- */
@media (max-width: 960px) {
  .detail-head {
    grid-template-columns: 1fr;
  }

  .home-layout {
    grid-template-columns: 1fr;
  }

  .profile-head {
    flex-wrap: wrap;
  }

  .profile-stats {
    margin-left: 0;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .header-inner {
    gap: 10px;
  }

  .header-search {
    order: 3;
    max-width: none;
    flex-basis: 100%;
  }

  .main-nav {
    order: 4;
    flex-basis: 100%;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .game-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
  }

  .game-info {
    padding: 10px;
  }

  .game-info h3 {
    font-size: 13px;
  }

  .comment-item.reply {
    margin-left: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ============================================================
   公告 + 管理后台
   ============================================================ */

.announcement {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 22px 0 4px;
  padding: 12px 16px;
  border: 1px solid var(--line-bright);
  background: linear-gradient(90deg, rgba(var(--neon-cyan-rgb), 0.08), rgba(var(--neon-magenta-rgb), 0.06));
  color: var(--text);
  font-size: 14px;
  box-shadow: inset 0 0 18px rgba(var(--neon-cyan-rgb), 0.05);
}

.ann-label {
  flex: none;
  padding: 2px 8px;
  font-family: var(--font-pixel);
  font-size: 10px;
  color: #05070f;
  background: var(--neon-yellow);
  box-shadow: 0 0 10px rgba(var(--neon-yellow-rgb), 0.5);
}

.admin-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0 22px;
  padding-bottom: 12px;
  border-bottom: 1px dashed var(--line);
}

.admin-tabs .tab {
  border: 1px solid var(--line-bright);
  background: var(--panel);
  color: var(--text-dim);
  font-family: var(--font-head);
  padding: 8px 16px;
  cursor: pointer;
}

.admin-tabs .tab:hover {
  color: var(--neon-cyan);
  border-color: var(--neon-cyan);
}

.admin-tabs .tab.active {
  color: #05070f;
  background: var(--neon-cyan);
  border-color: var(--neon-cyan);
  box-shadow: var(--shadow-neon);
}

.virtual-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 16px;
}

.virtual-grid .panel h3 {
  margin-bottom: 10px;
}

@media (max-width: 860px) {
  .virtual-grid {
    grid-template-columns: 1fr;
  }
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.stat-card {
  padding: 18px 14px;
  text-align: center;
}

.stat-num {
  font-family: var(--font-pixel);
  font-size: 24px;
  color: var(--neon-cyan);
  text-shadow: 0 0 12px rgba(var(--neon-cyan-rgb), 0.45);
}

.stat-num-sm {
  font-size: 18px;
}

.stat-label {
  margin-top: 6px;
  font-size: 13px;
  color: var(--text);
}

.stat-en {
  margin-top: 2px;
  font-family: var(--font-pixel);
  font-size: 8px;
  color: var(--text-faint);
}

.stat-sub {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 6px;
  font-size: 11px;
  color: var(--text-dim);
}

.stat-sub span {
  white-space: nowrap;
}

.admin-dash {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 16px;
}

.dash-panel {
  grid-column: span 6;
  min-width: 0;
}

.dash-panel.trend {
  grid-column: span 8;
}

.dash-panel.search {
  grid-column: span 4;
}

.dash-panel.report {
  grid-column: span 4;
}

.dash-panel.content {
  grid-column: span 8;
}

.dash-panel.full {
  grid-column: span 12;
}

.trend-scroll {
  overflow-x: auto;
  padding-bottom: 4px;
}

.trend-chart {
  min-width: 640px;
}

@media (max-width: 1200px) {
  .dash-panel.trend,
  .dash-panel.search,
  .dash-panel.report,
  .dash-panel.content {
    grid-column: span 12;
  }
}

.admin-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 16px;
}

.admin-cols .panel {
  padding: 16px;
}

.admin-cols .panel h2 {
  font-size: 14px;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px dashed var(--line);
}

.admin-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 0;
  font-size: 13px;
  border-bottom: 1px dotted rgba(29, 42, 77, 0.6);
  min-width: 0;
}

.admin-row:last-child {
  border-bottom: none;
}

.admin-row > span:not(.muted):not(.rank-no):not(.comment-snip) {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-row img {
  flex-shrink: 0;
}

.admin-row a {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}

.admin-row > .comment-snip {
  flex: 1;
  min-width: 0;
  max-width: none;
}

.admin-row > .comment-snip + .muted {
  flex-shrink: 0;
}

.admin-row .rank-no {
  font-family: var(--font-pixel);
  font-size: 9px;
  color: var(--neon-magenta);
  width: 22px;
  flex-shrink: 0;
}

.muted {
  color: var(--text-faint);
  font-size: 12px;
}

.comment-snip {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 320px;
  display: inline-block;
  vertical-align: bottom;
}

.cat-bar-row {
  display: grid;
  grid-template-columns: 64px 1fr 30px;
  align-items: center;
  gap: 8px;
  padding: 5px 0;
  font-size: 12px;
}

.cat-bar {
  height: 10px;
  background: var(--panel-2);
  border: 1px solid var(--line);
}

.cat-bar i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--neon-cyan), var(--neon-magenta));
  box-shadow: 0 0 8px rgba(var(--neon-cyan-rgb), 0.4);
}

.trend-chart {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 140px;
  padding: 8px 6px 0;
  border-bottom: 1px solid var(--line);
}

.trend-day {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
  min-width: 0;
  height: 100%;
}

.trend-bars {
  flex: 1;
  width: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 3px;
}

.trend-bar {
  flex: 0 0 auto;
  width: 13px;
  max-width: none;
  height: 100%;
  display: flex;
  align-items: flex-end;
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 4px 4px 0 0;
  overflow: hidden;
}

.trend-bar.uv {
  width: 7px;
  background: rgba(141, 255, 237, 0.06);
}

.trend-bar i.pv {
  display: block;
  width: 100%;
  background: linear-gradient(180deg, var(--neon-cyan), var(--neon-magenta));
  box-shadow: 0 0 8px rgba(var(--neon-cyan-rgb), 0.35);
}

.trend-bar.uv i.uv {
  display: block;
  width: 100%;
  background: rgba(141, 255, 237, 0.7);
  box-shadow: 0 0 6px rgba(141, 255, 237, 0.3);
}

.trend-legend {
  display: flex;
  justify-content: flex-end;
  gap: 14px;
  margin-top: 6px;
  font-size: 11px;
  color: var(--text-faint);
}

.trend-legend span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.trend-legend i {
  display: inline-block;
  width: 10px;
  height: 10px;
  border: 1px solid var(--line);
}

.trend-legend .lg-pv {
  background: linear-gradient(180deg, var(--neon-cyan), var(--neon-magenta));
}

.trend-legend .lg-uv {
  background: rgba(141, 255, 237, 0.7);
}

.trend-num {
  font-family: var(--font-pixel);
  font-size: 9px;
  color: var(--text-dim);
}

.trend-day small {
  font-size: 10px;
  color: var(--text-faint);
}

.hotsearch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 0;
  font-size: 12px;
  border-bottom: 1px dotted rgba(29, 42, 77, 0.6);
}

.hotsearch-row b {
  color: var(--neon-yellow);
}

.report-mini {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.report-mini div {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 10px 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-2);
}

.report-mini b {
  font-family: var(--font-pixel);
  font-size: 18px;
  color: var(--neon-red);
}

.report-mini span {
  font-size: 10px;
  color: var(--text-dim);
}

.cat-count {
  text-align: right;
  color: var(--neon-yellow);
  font-family: var(--font-pixel);
  font-size: 9px;
}

.admin-search {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.admin-search input[type='search'],
.admin-search select {
  background: var(--panel);
  border: 1px solid var(--line-bright);
  color: var(--text);
  padding: 8px 12px;
  font-family: var(--font-body);
  min-width: 200px;
}

.admin-search input:focus,
.admin-search select:focus {
  outline: none;
  border-color: var(--neon-cyan);
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  background: var(--panel);
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  min-width: 860px;
}

.admin-table th {
  font-family: var(--font-head);
  font-size: 12px;
  color: var(--neon-cyan);
  text-align: left;
  padding: 10px 12px;
  background: var(--panel-2);
  border-bottom: 1px solid var(--line-bright);
  white-space: nowrap;
}

.admin-table td {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(29, 42, 77, 0.7);
  vertical-align: middle;
}

.admin-table tbody tr:hover {
  background: rgba(var(--neon-cyan-rgb), 0.04);
}

.cell-game {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cell-game img {
  width: 42px;
  height: 42px;
  object-fit: cover;
  border: 1px solid var(--line-bright);
}

.cell-game .avatar {
  border-radius: 0;
}

.cell-game b {
  display: block;
  font-size: 13px;
}

.cell-game small {
  color: var(--text-faint);
  font-size: 11px;
}

.cell-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  white-space: nowrap;
}

.admin-pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
  font-size: 13px;
  color: var(--text-dim);
}

.admin-pager button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.admin-pager .pager-jump {
  width: 72px;
  padding: 6px 10px;
  font-size: 11px;
  text-align: center;
  border: 2px solid var(--line-bright);
  border-radius: 0;
  background: var(--panel-2);
  color: var(--text);
  outline: none;
  font-family: var(--font-head);
}

.admin-pager .pager-jump:focus {
  border-color: var(--neon-cyan);
  box-shadow: 0 0 8px rgba(var(--neon-cyan-rgb), 0.3);
}

.check-line {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.check-line input {
  accent-color: var(--neon-cyan);
  width: 16px;
  height: 16px;
}

@media (max-width: 720px) {
  .admin-search input[type='search'] {
    min-width: 100%;
  }

  .admin-search select {
    min-width: calc(50% - 5px);
  }
}

/* ============================================================
   参考站布局：统一顶栏 / 分类导航 / 抽屉 / 首页模块 / 详情页
   ============================================================ */

.header-top {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 12px 0;
  flex-wrap: nowrap;
}

.header-top .main-nav {
  flex-wrap: nowrap;
  flex: 0 0 auto;
}

.main-nav a {
  white-space: nowrap;
}

.header-top .header-search {
  flex: 1 1 280px;
  min-width: 150px;
  max-width: 340px;
  margin-left: auto;
}

.header-top .user-chip span {
  max-width: 90px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mobile-menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: 2px solid var(--line-bright);
  background: var(--panel);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.mobile-menu-toggle:hover {
  border-color: var(--neon-cyan);
  box-shadow: 0 0 12px rgba(var(--neon-cyan-rgb), 0.25);
}

.hamburger,
.hamburger::before,
.hamburger::after {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--neon-cyan);
  content: '';
  position: relative;
}

.hamburger::before { top: -6px; position: absolute; }
.hamburger::after { top: 6px; position: absolute; }

.nav-cats {
  display: flex;
  gap: 2px;
  flex-wrap: nowrap;
  overflow-x: auto;
  border-top: 1px solid var(--line);
  padding: 0;
  scrollbar-width: none;
}

.nav-cats::-webkit-scrollbar { display: none; }

.nav-cat {
  flex: none;
  font-family: var(--font-head);
  font-size: 13px;
  color: var(--text-dim);
  padding: 9px 13px;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}

.nav-cat:hover,
.nav-cat.active {
  color: var(--neon-cyan);
  border-bottom-color: var(--neon-cyan);
  text-shadow: 0 0 8px rgba(var(--neon-cyan-rgb), 0.7);
}

.drawer-overlay {
  position: fixed;
  inset: 0;
  z-index: 9500;
  background: rgba(2, 4, 10, 0.78);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.18s, visibility 0.18s;
}

.drawer-overlay.open {
  opacity: 1;
  visibility: visible;
}

.drawer {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 9600;
  width: min(320px, 86vw);
  background: var(--bg-2);
  border-right: 2px solid var(--line-bright);
  box-shadow: 8px 0 30px rgba(0, 0, 0, 0.55);
  transform: translateX(-102%);
  transition: transform 0.22s ease;
  display: flex;
  flex-direction: column;
}

.drawer.open {
  transform: translateX(0);
}

.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  border-bottom: 2px solid var(--line);
  background: var(--panel);
}

.drawer-head .logo-text {
  font-size: 15px;
}

.drawer-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 14px 16px 30px;
}

.drawer-section {
  margin-bottom: 18px;
}

.drawer-title {
  font-family: var(--font-head);
  font-size: 13px;
  letter-spacing: 2px;
  color: var(--neon-cyan);
  margin-bottom: 10px;
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.drawer-en {
  font-family: var(--font-pixel);
  font-size: 8px;
  color: var(--text-faint);
}

.drawer-cats,
.drawer-tools {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.drawer-cats a,
.drawer-tools a {
  font-family: var(--font-head);
  font-size: 13px;
  color: var(--text-dim);
  border: 1px solid var(--line);
  background: rgba(13, 19, 38, 0.6);
  padding: 9px 10px;
  text-align: center;
}

.drawer-cats a:hover,
.drawer-tools a:hover {
  color: var(--neon-cyan);
  border-color: var(--neon-cyan);
}

.drawer-themes {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.theme-option {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 6px;
  border: 1px solid var(--line-bright);
  border-radius: 8px;
  background: var(--panel-2);
  color: var(--text);
  font-size: 12px;
  font-family: var(--font-head);
  cursor: pointer;
  transition: border-color 0.18s, box-shadow 0.18s, color 0.18s;
}

.theme-option i {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
}

.theme-option.active {
  color: var(--neon-cyan);
  border-color: var(--neon-cyan);
  box-shadow: 0 0 8px rgba(var(--neon-cyan-rgb), 0.35);
}

.drawer-user {
  border-top: 1px dashed var(--line);
  padding-top: 14px;
}

.drawer-points {
  background: var(--panel);
  border: 1px solid var(--line-bright);
  padding: 10px 12px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.dp-label {
  font-size: 12px;
  color: var(--text-faint);
}

.drawer-points b {
  color: var(--neon-yellow);
  font-family: var(--font-pixel);
  font-size: 14px;
}

.dp-streak {
  font-size: 12px;
  color: var(--neon-magenta);
  margin-left: auto;
}

.drawer-user-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.drawer-login-tip {
  font-size: 12px;
  color: var(--text-faint);
  margin-bottom: 10px;
}

body.drawer-open {
  overflow: hidden;
}

/* ---------- 快捷卡片 ---------- */

.quick-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin: 22px 0 8px;
}

.quick-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  transition: transform 0.15s, box-shadow 0.15s;
}

.quick-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 20px rgba(var(--neon-cyan-rgb), 0.25);
}

.qc-icon {
  flex: none;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--neon-cyan);
  border: 2px solid var(--neon-cyan);
  box-shadow: 0 0 12px rgba(var(--neon-cyan-rgb), 0.3);
  background: rgba(var(--neon-cyan-rgb), 0.06);
}

.qc-body b {
  display: block;
  font-family: var(--font-head);
  font-size: 14px;
  color: var(--text);
}

.qc-body small {
  display: block;
  margin-top: 3px;
  font-size: 12px;
  color: var(--text-faint);
}

/* ---------- 首页布局 ---------- */

.home-main {
  min-width: 0;
}

.home-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 18px;
  margin-bottom: 26px;
  align-items: stretch;
}

.home-section {
  margin-bottom: 30px;
}

.hero-carousel {
  position: relative;
  min-height: 300px;
  overflow: hidden;
}

.carousel-viewport,
.carousel-slide {
  position: absolute;
  inset: 0;
}

.carousel-slide {
  background-size: cover;
  background-position: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.45s ease, visibility 0.45s;
}

.carousel-slide.active {
  opacity: 1;
  visibility: visible;
}

.carousel-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(3, 6, 16, 0.94) 0%, rgba(3, 6, 16, 0.72) 55%, rgba(3, 6, 16, 0.25) 100%);
}

.carousel-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 30px 42px;
}

.carousel-cat {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 11px;
  letter-spacing: 1px;
  border: 1px solid;
  padding: 3px 8px;
  margin-bottom: 12px;
}

.carousel-content h2 {
  font-family: var(--font-head);
  font-size: clamp(22px, 3vw, 34px);
  font-weight: 900;
  letter-spacing: 2px;
  text-shadow: 0 0 18px rgba(var(--neon-cyan-rgb), 0.45);
}

.carousel-content p {
  font-family: var(--font-pixel);
  font-size: 10px;
  color: var(--neon-magenta);
  letter-spacing: 2px;
  margin-top: 8px;
}

.carousel-tags {
  display: flex;
  gap: 8px;
  margin-top: 14px;
  flex-wrap: wrap;
}

.carousel-tags span {
  font-size: 12px;
  color: var(--text-dim);
  border: 1px solid var(--line-bright);
  padding: 3px 9px;
}

.carousel-btns {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 4;
  width: 34px;
  height: 44px;
  background: rgba(5, 8, 18, 0.78);
  border: 2px solid var(--line-bright);
  color: var(--neon-cyan);
  font-size: 20px;
  cursor: pointer;
}

.carousel-nav:hover {
  border-color: var(--neon-cyan);
  box-shadow: 0 0 14px rgba(var(--neon-cyan-rgb), 0.35);
}

.carousel-prev { left: 6px; }
.carousel-next { right: 6px; }

.carousel-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 12px;
  z-index: 4;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.carousel-dot {
  width: 22px;
  height: 6px;
  border: 1px solid var(--line-bright);
  background: rgba(13, 19, 38, 0.7);
  cursor: pointer;
  padding: 0;
}

.carousel-dot.active {
  background: var(--neon-cyan);
  box-shadow: 0 0 10px rgba(var(--neon-cyan-rgb), 0.6);
}

.signin-widget {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: 100%;
  min-height: 300px;
  justify-content: space-between;
}

.signin-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.signin-icon {
  flex: none;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--neon-yellow);
  border: 2px solid var(--neon-yellow);
  background: rgba(var(--neon-yellow-rgb), 0.08);
  box-shadow: 0 0 12px rgba(var(--neon-yellow-rgb), 0.3);
}

.signin-widget h2 {
  font-family: var(--font-head);
  font-size: 15px;
  letter-spacing: 2px;
  color: var(--neon-yellow);
  line-height: 1.3;
}

.signin-head p {
  font-size: 11px;
  color: var(--text-faint);
  margin-top: 2px;
}

.signin-points {
  display: flex;
  gap: 10px;
}

.sp-box {
  flex: 1;
  border: 1px solid var(--line-bright);
  background: rgba(13, 19, 38, 0.65);
  padding: 9px 10px;
  text-align: center;
}

.sp-box small {
  display: block;
  font-size: 11px;
  color: var(--text-faint);
  margin-bottom: 4px;
}

.sp-box b {
  font-family: var(--font-pixel);
  font-size: 17px;
  color: var(--neon-yellow);
  text-shadow: 0 0 10px rgba(var(--neon-yellow-rgb), 0.45);
}

.signin-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  text-align: center;
}

.signin-days span {
  font-size: 10px;
  color: var(--text-faint);
  border: 1px solid var(--line);
  padding: 7px 2px;
  line-height: 1.4;
}

.signin-days span.done {
  color: var(--neon-green);
  border-color: var(--neon-green);
  background: rgba(var(--neon-green-rgb), 0.07);
}

.signin-progress {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  color: var(--text-dim);
}

.signin-progress span {
  flex: none;
  white-space: nowrap;
}

.sp-bar {
  flex: 1;
  height: 8px;
  background: var(--panel-2);
  border: 1px solid var(--line);
  overflow: hidden;
}

.sp-bar i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--neon-cyan), var(--neon-magenta));
  box-shadow: 0 0 8px rgba(var(--neon-cyan-rgb), 0.5);
  transition: width 0.3s ease;
}

.signin-actions {
  display: flex;
  gap: 8px;
  justify-content: center;
}

.btn-block {
  width: auto;
  min-width: 180px;
  margin: 0 auto;
}

.h-scroll {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding: 4px 2px 14px;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}

.h-card {
  flex: none;
  width: 250px;
  scroll-snap-align: start;
}

.section-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.more-link {
  font-size: 12px;
  letter-spacing: 1px;
  color: var(--neon-cyan);
  text-decoration: none;
  border: 1px solid rgba(var(--neon-cyan-rgb), 0.35);
  border-radius: 8px;
  background: rgba(var(--neon-cyan-rgb), 0.06);
  padding: 5px 12px;
  transition: background 0.18s, box-shadow 0.18s, color 0.18s;
}

.more-link:hover {
  color: #031018;
  background: var(--neon-cyan);
  box-shadow: 0 0 14px rgba(var(--neon-cyan-rgb), 0.45);
}

.hot-scroller-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.hot-scroller {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  flex: 1;
  padding: 4px 2px 14px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.hot-scroller::-webkit-scrollbar {
  display: none;
}

.hot-card {
  position: relative;
  flex: none;
  width: 250px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 9px;
  padding: 10px;
  scroll-snap-align: start;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(13, 19, 38, 0.72);
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.18s, box-shadow 0.18s, transform 0.18s;
}

.hot-card:hover {
  border-color: rgba(var(--neon-cyan-rgb), 0.55);
  box-shadow: 0 0 14px rgba(var(--neon-cyan-rgb), 0.18);
  transform: translateY(-2px);
}

.hot-rank {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 2;
  font-family: var(--font-pixel);
  font-size: 10px;
  color: #05070f;
  background: var(--neon-cyan);
  padding: 2px 5px;
  border-radius: 4px;
  box-shadow: 0 0 8px rgba(var(--neon-cyan-rgb), 0.5);
}

.hot-cover {
  position: relative;
  display: block;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--line-bright);
  background: var(--panel-2);
}

.hot-card-cover {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

.hot-cat {
  position: absolute;
  top: 6px;
  right: 6px;
  z-index: 2;
  font-family: var(--font-pixel);
  font-size: 8px;
  letter-spacing: 0.5px;
  padding: 2px 5px;
  border-radius: 3px;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.35);
  max-width: calc(100% - 12px);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hot-card-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  flex: 1;
}

.hot-card-title {
  font-size: clamp(12px, 1.6vw, 14px);
  line-height: 1.4;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hot-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  font-size: 10px;
  color: var(--text-dim);
  white-space: nowrap;
}

.hot-card-meta span {
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.hot-arrow {
  flex: none;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(var(--neon-cyan-rgb), 0.45);
  border-radius: 10px;
  background: rgba(10, 15, 32, 0.85);
  color: var(--neon-cyan);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.18s, box-shadow 0.18s, color 0.18s;
}

.hot-arrow:hover {
  color: #031018;
  background: var(--neon-cyan);
  box-shadow: 0 0 14px rgba(var(--neon-cyan-rgb), 0.45);
}

.latest-grid {
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  gap: 10px;
}

.l-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(13, 19, 38, 0.55);
  transition: border-color 0.18s, box-shadow 0.18s, transform 0.18s;
}

.l-card:hover {
  border-color: rgba(var(--neon-cyan-rgb), 0.5);
  box-shadow: 0 0 10px rgba(var(--neon-cyan-rgb), 0.15);
  transform: translateY(-2px);
}

.l-cover {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--line-bright);
  background: var(--panel-2);
}

.l-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.l-cat {
  position: absolute;
  top: 5px;
  left: 5px;
  z-index: 2;
  font-family: var(--font-pixel);
  font-size: 8px;
  letter-spacing: 0.5px;
  padding: 2px 5px;
  border-radius: 3px;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.35);
  max-width: calc(100% - 10px);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.l-title {
  font-size: clamp(10px, 2.6vw, 13px);
  line-height: 1.4;
  font-weight: 700;
  text-align: center;
  color: var(--text);
  text-decoration: none;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  overflow-wrap: anywhere;
  min-height: 30px;
}

.l-title:hover {
  color: var(--neon-cyan);
}

.l-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  font-size: 10px;
  color: var(--text-dim);
  white-space: nowrap;
}

.l-meta span {
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.latest-pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.latest-pager .page-num {
  min-width: 34px;
  text-align: center;
}

.latest-pager .page-num.active {
  color: var(--neon-cyan);
  border-color: rgba(var(--neon-cyan-rgb), 0.7);
  background: rgba(var(--neon-cyan-rgb), 0.16);
  box-shadow: 0 0 8px rgba(var(--neon-cyan-rgb), 0.3);
}

.page-dots {
  color: var(--text-dim);
  padding: 0 2px;
}

.pager-info {
  font-size: 12px;
  color: var(--text-dim);
  margin-left: 6px;
}

.home-comments {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 10px;
}

.home-comment {
  display: flex;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  background: rgba(13, 19, 38, 0.55);
}

.hc-body {
  min-width: 0;
}

.hc-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.hc-name {
  font-family: var(--font-head);
  font-size: 13px;
  color: var(--neon-cyan);
}

.hc-time {
  font-size: 11px;
  color: var(--text-faint);
}

.hc-text {
  font-size: 13px;
  color: #c3d3f2;
  margin-top: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.hc-game {
  display: inline-block;
  font-size: 12px;
  color: var(--text-faint);
  margin-top: 5px;
}

.hc-game:hover {
  color: var(--neon-magenta);
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag-link {
  cursor: pointer;
  transition: all 0.15s;
}

.tag-link:hover {
  color: var(--neon-yellow);
  border-color: var(--neon-yellow);
  box-shadow: 0 0 10px rgba(var(--neon-yellow-rgb), 0.3);
}

.recent-search {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.recent-search a {
  font-size: 13px;
  color: var(--text-dim);
  border-bottom: 1px dashed var(--line);
  padding: 4px 0;
}

.recent-search a:hover {
  color: var(--neon-cyan);
}

.panel-loading {
  color: var(--text-faint);
  font-family: var(--font-pixel);
  font-size: 10px;
  padding: 10px 0;
  animation: blink 1s infinite steps(1);
}

/* ---------- 面包屑 / 列表页 ---------- */

.breadcrumb {
  font-size: 13px;
  color: var(--text-faint);
  margin-bottom: 18px;
}

.breadcrumb a {
  color: var(--text-dim);
}

.breadcrumb a:hover {
  color: var(--neon-cyan);
}

.breadcrumb b {
  color: var(--neon-cyan);
  font-weight: 500;
}

.list-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 26px;
  align-items: start;
}

.list-main {
  min-width: 0;
}

.list-side,
.detail-side,
.home-side {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
  position: sticky;
  top: 96px;
  align-self: start;
}

.home-side .panel,
.list-side .panel {
  padding: 14px 16px;
  margin-bottom: 0;
}

.home-side .panel h2,
.list-side .panel h2 {
  font-size: 14px;
  margin-bottom: 10px;
}

.home-side .rank-item,
.list-side .rank-item {
  padding: 7px 8px;
  gap: 9px;
}

.home-side .rank-cover,
.list-side .rank-cover {
  width: 64px;
  height: 36px;
}

.home-side .rank-title,
.list-side .rank-title {
  font-size: 12px;
}

.home-side .rank-meta,
.list-side .rank-meta {
  font-size: 8px;
}

.home-side .tag-cloud .tag,
.list-side .tag-cloud .tag {
  padding: 3px 8px;
  font-size: 11px;
}

.home-side .recent-search a,
.list-side .recent-search a {
  font-size: 12px;
  padding: 3px 0;
}

.sort-tabs {
  overflow-x: auto;
  flex-wrap: nowrap;
  scrollbar-width: none;
  padding-bottom: 8px;
  margin-bottom: 18px;
}

.sort-tabs::-webkit-scrollbar { display: none; }

.sort-tabs .tab {
  flex: none;
  padding: 6px 16px;
}

.sort-tabs #result-count {
  flex: 0 0 auto;
  white-space: nowrap;
  align-self: center;
  margin-left: auto;
}

/* ---------- 排行榜页 ---------- */

.rank-page {
  padding: 8px 14px;
}

.rank-page-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 8px;
  border-bottom: 1px dashed var(--line);
  transition: background 0.15s;
}

.rank-page-item:hover {
  background: rgba(var(--neon-cyan-rgb), 0.05);
}

.rank-page-item:last-child {
  border-bottom: none;
}

.rank-big {
  font-size: 16px;
  width: 40px;
}

.rank-page-cover {
  width: 110px;
  height: 62px;
  object-fit: cover;
  image-rendering: pixelated;
  border: 1px solid var(--line-bright);
  flex-shrink: 0;
}

.rank-page-body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.rank-page-body b {
  font-family: var(--font-head);
  font-size: 15px;
  color: var(--text);
}

.rank-page-body small {
  color: var(--text-faint);
  font-size: 12px;
}

.rank-page-stats {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

/* ---------- 详情页 ---------- */

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 26px;
  align-items: start;
}

.detail-main {
  min-width: 0;
  max-width: 760px;
  margin: 0 auto;
}

.detail-head {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 16px;
  align-items: stretch;
}

.detail-cover {
  flex: none;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 2px solid var(--line-bright);
  box-shadow: 0 0 24px rgba(var(--neon-cyan-rgb), 0.12);
  background: #070c1a;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.detail-cover img {
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  image-rendering: pixelated;
}

.detail-info {
  min-width: 0;
  flex: 1;
}

.detail-rating-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 12px 0 10px;
  flex-wrap: wrap;
}

.detail-score {
  font-family: var(--font-pixel);
  font-size: 16px;
  color: var(--neon-yellow);
  text-shadow: 0 0 10px rgba(var(--neon-yellow-rgb), 0.5);
}

.safe-badges {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.safe-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--neon-green);
  border: 1px solid rgba(var(--neon-green-rgb), 0.4);
  background: rgba(var(--neon-green-rgb), 0.06);
  padding: 6px 12px;
}

.safe-badge i {
  font-style: normal;
  color: var(--neon-green);
}

.dl-panel {
  background: linear-gradient(180deg, rgba(var(--neon-cyan-rgb), 0.05), transparent);
}

.dl-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 12px;
}

.dl-item {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border: 2px solid var(--neon-green);
  color: var(--neon-green);
  background: rgba(var(--neon-green-rgb), 0.08);
  padding: 13px 14px;
  font-family: var(--font-head);
  font-size: 14px;
  transition: all 0.15s;
}

.dl-item:hover {
  background: var(--neon-green);
  color: #03180b;
  box-shadow: 0 0 18px rgba(var(--neon-green-rgb), 0.4);
}

.dl-mirror {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.dl-code {
  font-size: 11px;
  font-family: var(--font-head);
  letter-spacing: 1px;
  color: var(--neon-yellow);
}

.dl-tag {
  font-size: 10px;
  font-style: normal;
  color: inherit;
  opacity: 0.8;
}

.score-box {
  text-align: center;
  padding: 8px 0;
}

.score-num {
  font-family: var(--font-pixel);
  font-size: 42px;
  color: var(--neon-yellow);
  text-shadow: 0 0 18px rgba(var(--neon-yellow-rgb), 0.55);
  line-height: 1.2;
}

.author-card {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.author-card .avatar {
  flex: none;
}

.author-body {
  min-width: 0;
}

.author-body b {
  font-family: var(--font-head);
  font-size: 15px;
  color: var(--neon-cyan);
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.author-body p {
  font-size: 12px;
  color: var(--text-dim);
  margin-top: 4px;
}

.author-body small {
  font-size: 11px;
  color: var(--text-faint);
}

/* ---------- 评分星星 / 评论 ---------- */

.stars {
  color: var(--neon-yellow);
  letter-spacing: 1px;
  text-shadow: 0 0 8px rgba(var(--neon-yellow-rgb), 0.4);
  white-space: nowrap;
}

.stars-xs { font-size: 11px; }
.stars-sm { font-size: 13px; }
.stars-md { font-size: 18px; }

.game-rating {
  display: flex;
  align-items: center;
  gap: 6px;
}

.rating-num {
  font-family: var(--font-pixel);
  font-size: 9px;
  color: var(--text-faint);
}

.rating-summary {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  background: rgba(13, 19, 38, 0.6);
  font-size: 13px;
}

.rating-pick {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 8px;
  font-size: 13px;
  color: var(--text-dim);
}

.rating-stars {
  display: inline-flex;
  gap: 2px;
}

.rate-star {
  background: none;
  border: none;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  color: var(--text-faint);
  padding: 0 1px;
  transition: color 0.12s, text-shadow 0.12s;
}

.rate-star:hover,
.rate-star.active {
  color: var(--neon-yellow);
  text-shadow: 0 0 10px rgba(var(--neon-yellow-rgb), 0.6);
}

.comment-stars {
  display: inline-flex;
}

/* ---------- 发布页下载方式编辑 ---------- */

.dl-editor {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 10px;
}

.dl-row {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr) 120px 36px;
  gap: 8px;
  align-items: center;
}

/* ---------- 广告位 ---------- */

.ad-slot {
  margin-bottom: 26px;
}

.ad-banner {
  position: relative;
  display: block;
  overflow: hidden;
  border: 1px solid var(--line-bright);
  background: var(--panel-2);
}

.ad-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ad-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 2;
  font-family: var(--font-pixel);
  font-size: 8px;
  letter-spacing: 1px;
  color: var(--neon-cyan);
  background: rgba(10, 15, 32, 0.72);
  border: 1px solid rgba(var(--neon-cyan-rgb), 0.5);
  padding: 3px 6px;
  border-radius: 4px;
}

.ad-banner.ad-horizontal {
  width: 100%;
  height: 110px;
  border-radius: 10px;
  box-shadow: 0 0 14px rgba(var(--neon-cyan-rgb), 0.12);
}

.ad-banner.ad-side {
  width: 100%;
  height: 220px;
  border-radius: 8px;
}

.ad-footer-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 16px 0;
}

.ad-banner.ad-footer {
  width: 100%;
  height: 80px;
  border-radius: 8px;
}

@media (max-width: 768px) {
  .ad-banner.ad-horizontal {
    height: 90px;
  }

  .ad-banner.ad-footer {
    height: 70px;
  }
}

/* ---------- 页脚 ---------- */

.footer-grid {
  display: block;
  text-align: center;
  padding: 30px 0;
}

.footer-col h4 {
  font-family: var(--font-head);
  font-size: 13px;
  letter-spacing: 2px;
  color: var(--neon-cyan);
  margin-bottom: 12px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  text-align: center;
}

.footer-col a {
  font-size: 13px;
  color: var(--text-dim);
}

.footer-col a:hover {
  color: var(--neon-yellow);
}

/* ============================================================
   响应式
   ============================================================ */

@media (max-width: 1100px) {
  .header-top {
    gap: 10px;
  }

  .header-top .logo-text {
    font-size: 16px;
  }

  .header-top .main-nav a {
    padding: 7px 9px;
    font-size: 13px;
  }

  .header-top .header-search {
    max-width: 260px;
    min-width: 140px;
  }

  .home-top {
    grid-template-columns: 1fr;
  }

  .home-comments {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }

  .home-layout,
  .list-layout,
  .detail-layout {
    grid-template-columns: 1fr;
  }

  .home-side,
  .list-side,
  .detail-side {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    position: static;
    max-height: none;
    overflow: visible;
  }

  .detail-cover {
    width: 100%;
    max-width: none;
    margin: 0;
  }
}

@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: flex;
  }

  .header-top {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
  }

  .header-top .logo {
    min-width: 0;
    justify-self: start;
  }

  .header-top .logo-text {
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .header-top .logo-en {
    display: none;
  }

  .header-top .main-nav {
    display: none;
  }

  .header-top .header-search {
    grid-column: 1 / -1;
    order: 5;
    max-width: none;
    width: 100%;
    min-width: 0;
    display: none;
  }

  .header-top .header-user {
    justify-self: end;
    min-width: 0;
  }

  .header-top .header-user .btn {
    padding: 6px 8px;
    font-size: 12px;
  }

  .header-top .user-chip {
    padding: 3px 6px 3px 3px;
    gap: 5px;
  }

  .header-top .user-chip span {
    max-width: 56px;
  }

  .nav-cats {
    display: none;
  }

  .quick-cards {
    grid-template-columns: 1fr 1fr;
  }

  .home-top {
    grid-template-columns: 1fr;
  }

  .carousel-content {
    padding: 22px 34px;
  }

  .carousel-content h2 {
    font-size: 22px;
  }

  .h-card {
    width: 210px;
  }

  .hot-card {
    width: 216px;
  }

  .detail-head {
    flex-direction: column;
    padding: 14px;
  }

  .detail-cover {
    width: 100%;
  }

  .detail-actions {
    gap: 6px;
  }

  .detail-actions .btn {
    flex: 1 1 30%;
    min-width: 0;
    max-width: 100%;
    justify-content: center;
    padding: 10px 6px;
    font-size: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .safe-badges {
    flex-wrap: nowrap;
    gap: 6px;
    align-items: flex-start;
    margin-top: 0;
  }

  .safe-badge {
    flex: 1;
    justify-content: center;
    padding: 6px 4px;
    font-size: 11px;
    white-space: nowrap;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 22px;
  }

  .footer-brand .logo-text {
    gap: 10px;
    line-height: 1.55;
  }

  .footer-brand .logo-en {
    margin-top: 2px;
  }

  .footer-col {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 6px 16px;
  }

  .footer-col h4 {
    flex-basis: 100%;
    margin-bottom: 2px;
  }

  .footer-col:last-child {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
  }

  .footer-col:last-child h4 {
    grid-column: 1 / -1;
  }

  .footer-col:last-child a {
    justify-self: center;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .rank-page-cover {
    width: 90px;
    height: 52px;
  }

  .rank-page-body b {
    font-size: 13px;
  }

  .dl-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .quick-cards {
    grid-template-columns: 1fr;
  }

  .hero-carousel {
    min-height: 250px;
  }

  .carousel-btns .btn {
    font-size: 12px;
    padding: 8px 12px;
  }

  .h-card {
    width: 170px;
  }

  .hot-card {
    width: 176px;
  }

  .detail-actions .btn {
    flex: 1 1 45%;
  }

  .hot-arrow {
    display: none;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-brand {
    grid-column: auto;
  }

  .rank-page-item {
    gap: 10px;
  }
}

/* ---------- 验证码 / 第三方登录 ---------- */

.captcha-row {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.captcha-row input {
  flex: 1;
  min-width: 120px;
}

.captcha-img {
  width: 130px;
  height: 46px;
  flex: none;
  border: 2px solid var(--line-bright);
  cursor: pointer;
  image-rendering: pixelated;
}

.captcha-img:hover {
  border-color: var(--neon-cyan);
  box-shadow: 0 0 12px rgba(var(--neon-cyan-rgb), 0.25);
}

.oauth-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 16px 0 10px;
  color: var(--text-faint);
  font-size: 12px;
}

.oauth-divider::before,
.oauth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--line);
}

.oauth-buttons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.oauth-block {
  border: 1px solid var(--line);
  padding: 10px 12px;
  margin-bottom: 12px;
  background: rgba(13, 19, 38, 0.4);
}

.oauth-block .hint {
  word-break: break-all;
}

/* ============================================================
   认证标识 / 签到规则 / 消息中心 / 页脚
   ============================================================ */

.badge-verify {
  color: var(--neon-cyan);
  border-color: var(--neon-cyan);
  background: linear-gradient(90deg, rgba(var(--neon-cyan-rgb), 0.16), rgba(var(--neon-magenta-rgb), 0.14));
  box-shadow: 0 0 10px rgba(var(--neon-cyan-rgb), 0.35);
  font-family: var(--font-pixel);
  font-size: 9px;
  letter-spacing: 1px;
}

.badge-verify-pending {
  color: var(--neon-yellow);
  border-color: var(--neon-yellow);
  border-style: dashed;
  background: rgba(var(--neon-yellow-rgb), 0.08);
  font-family: var(--font-pixel);
  font-size: 9px;
  letter-spacing: 1px;
}

.profile-panels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 26px;
}

.verify-panel .verify-ok,
.verify-panel .verify-pending {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
}

.rules-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.rules-list li {
  position: relative;
  padding-left: 14px;
  font-size: 13px;
  color: #c3d3f2;
}

.rules-list li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--neon-yellow);
}

.rules-list b {
  color: var(--neon-yellow);
}

.level-badge {
  color: var(--neon-yellow);
  border-color: rgba(var(--neon-yellow-rgb), 0.6);
  background: rgba(var(--neon-yellow-rgb), 0.08);
}

.points-big {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 10px 0 8px;
}

.points-big b {
  font-family: var(--font-pixel);
  font-size: 26px;
  color: var(--neon-yellow);
  text-shadow: 0 0 10px rgba(var(--neon-yellow-rgb), 0.55);
}

.points-big span {
  font-size: 12px;
  color: var(--text-dim);
}

.level-progress {
  height: 10px;
  border: 1px solid var(--line-bright);
  border-radius: 6px;
  background: var(--panel-2);
  overflow: hidden;
  margin: 8px 0;
}

.level-progress i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--neon-cyan), var(--neon-yellow));
  box-shadow: 0 0 10px rgba(var(--neon-cyan-rgb), 0.45);
}

.points-log {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 260px;
  overflow: auto;
  margin-top: 6px;
}

.pl-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  padding: 5px 0;
  border-bottom: 1px dashed var(--line);
}

.pl-row span {
  flex: 1;
  color: #c3d3f2;
}

.pl-row b.plus {
  color: var(--neon-green, #8dffed);
}

.pl-row b.minus {
  color: var(--neon-red);
}

.pl-row small {
  color: var(--text-faint);
}

.pr-row,
.fav-row,
.hist-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 13px;
}

.pr-row .rank-no {
  font-family: var(--font-pixel);
  color: var(--neon-cyan);
  font-size: 10px;
}

.pr-row a,
.fav-title {
  flex: 1;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pr-row a:hover,
.fav-title:hover {
  color: var(--neon-cyan);
}

.pr-row b {
  color: var(--neon-yellow);
}

.fav-row .fav-cover,
.hist-row .fav-cover {
  flex: none;
  width: 64px;
  height: 40px;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--line-bright);
}

.fav-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.fav-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.fav-meta {
  font-size: 11px;
  color: var(--text-dim);
}

.hist-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-dim);
  margin-bottom: 4px;
}

.fav-manage-list {
  display: flex;
  flex-direction: column;
}

/* ---------- 消息中心 ---------- */

.msg-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 22px;
  align-items: start;
}

.msg-main {
  padding: 4px 14px 14px;
}

.msg-list {
  display: flex;
  flex-direction: column;
}

.msg-item {
  padding: 12px 10px;
  border-bottom: 1px dashed var(--line);
}

.msg-item.unread {
  background: rgba(var(--neon-cyan-rgb), 0.05);
}

.msg-head {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.msg-icon {
  color: var(--neon-cyan);
}

.msg-name {
  font-family: var(--font-head);
  font-size: 13px;
  color: var(--text);
}

.msg-name b {
  color: var(--neon-magenta);
}

.msg-type {
  font-size: 10px;
  border: 1px solid;
  padding: 1px 6px;
}

.msg-type.sys {
  color: var(--neon-magenta);
  border-color: var(--neon-magenta);
}

.msg-type.user {
  color: var(--neon-cyan);
  border-color: var(--neon-cyan);
}

.msg-time {
  margin-left: auto;
  font-size: 11px;
  color: var(--text-faint);
}

.msg-unread-dot {
  font-family: var(--font-pixel);
  font-size: 8px;
  color: #fff;
  background: var(--neon-red);
  padding: 2px 4px;
  box-shadow: 0 0 8px rgba(255, 75, 107, 0.5);
}

.msg-content {
  font-size: 13px;
  color: #c3d3f2;
  margin-top: 6px;
  white-space: pre-line;
}

.msg-bell {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 2px solid var(--line-bright);
  color: var(--text-dim);
  text-decoration: none;
  flex-shrink: 0;
}

.msg-bell:hover {
  color: var(--neon-cyan);
  border-color: var(--neon-cyan);
  box-shadow: 0 0 12px rgba(var(--neon-cyan-rgb), 0.25);
}

.msg-count {
  position: absolute;
  top: -8px;
  right: -8px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  font-family: var(--font-pixel);
  font-size: 8px;
  line-height: 18px;
  text-align: center;
  color: #05070f;
  background: var(--line-bright);
  border-radius: 0;
}

.msg-count.has {
  background: var(--neon-red);
  color: #fff;
  box-shadow: 0 0 8px rgba(255, 75, 107, 0.6);
}

.msg-count-sm {
  display: inline-block;
  min-width: 16px;
  height: 16px;
  line-height: 16px;
  margin-left: 4px;
  padding: 0 4px;
  font-family: var(--font-pixel);
  font-size: 8px;
  text-align: center;
  color: #05070f;
  background: var(--line-bright);
}

.msg-count-sm.has {
  background: var(--neon-red);
  color: #fff;
}

/* ---------- 页脚 ---------- */

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
}

.friend-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
}

.friend-links a {
  font-size: 13px;
  color: var(--text-dim);
}

.friend-links a:hover {
  color: var(--neon-yellow);
}

@media (max-width: 1100px) {
  .msg-layout {
    grid-template-columns: 1fr;
  }

  .profile-panels {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  html,
  body,
  a,
  button,
  input,
  select,
  textarea,
  label,
  [data-action] {
    touch-action: manipulation;
  }

  input,
  select,
  textarea {
    font-size: 16px !important;
  }

  .hot-arrow {
    display: none;
  }

  .latest-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
    overflow: hidden;
  }

  .l-card {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    padding: 5px;
    gap: 4px;
    border-radius: 8px;
  }

  .latest-grid .empty-state {
    padding: 28px 16px 24px;
  }

  .l-cover {
    border-radius: 6px;
  }

  .l-title {
    font-size: clamp(10px, 2.8vw, 12px);
    line-height: 1.3;
    min-height: 20px;
  }

  .l-meta {
    font-size: 10px;
  }

  .latest-pager {
    gap: 4px;
    margin-top: 10px;
  }

  .footer-col {
    justify-content: center;
  }

  .footer-col:last-child {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px 16px;
  }

  .footer-col:last-child h4 {
    flex-basis: 100%;
  }

  .friend-links {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    width: 100%;
  }

  .friend-links a {
    justify-self: center;
    text-align: center;
  }

  .msg-side {
    display: grid;
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   关于我们
   ============================================================ */

.about-hero {
  text-align: center;
  padding: 44px 22px;
  border: 2px solid var(--line-bright);
  background:
    radial-gradient(ellipse 700px 260px at 50% -10%, rgba(var(--neon-cyan-rgb), 0.12), transparent 65%),
    rgba(10, 15, 32, 0.55);
  margin-bottom: 20px;
}

.about-hero-eyebrow {
  font-family: var(--font-pixel);
  font-size: 10px;
  color: var(--neon-magenta);
  letter-spacing: 4px;
  text-shadow: 0 0 10px rgba(var(--neon-magenta-rgb), 0.7);
}

.about-hero h1 {
  font-family: var(--font-head);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 900;
  letter-spacing: 4px;
  margin-top: 12px;
  text-shadow: 0 0 18px rgba(var(--neon-cyan-rgb), 0.4);
}

.about-hero p {
  max-width: 760px;
  margin: 14px auto 0;
  color: var(--text-dim);
  line-height: 1.9;
}

.about-tags {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.about-tags span {
  border: 1px solid var(--line-bright);
  color: var(--neon-cyan);
  padding: 5px 12px;
  font-size: 12px;
}

.about-mission {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 18px 22px;
  margin-bottom: 28px;
  font-family: var(--font-head);
  color: var(--neon-yellow);
  font-size: 16px;
  letter-spacing: 1px;
}

.about-mission span {
  font-size: 22px;
  color: var(--neon-cyan);
}

.about-section {
  margin-bottom: 34px;
}

.about-section h2 {
  font-family: var(--font-head);
  font-size: 22px;
  letter-spacing: 2px;
  margin-bottom: 16px;
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.about-section h2::before {
  content: '▮';
  color: var(--neon-magenta);
  font-size: 13px;
  text-shadow: 0 0 8px var(--neon-magenta);
}

.about-section h2 .sub {
  font-family: var(--font-pixel);
  font-size: 9px;
  color: var(--text-faint);
}

.about-vision p {
  color: #c3d3f2;
  margin-bottom: 10px;
  line-height: 1.9;
  max-width: 920px;
}

.about-card-grid {
  display: grid;
  gap: 16px;
}

.about-card-grid--three {
  grid-template-columns: repeat(3, 1fr);
}

.about-card-grid--four {
  grid-template-columns: repeat(4, 1fr);
}

.about-card {
  padding: 18px;
}

.about-card b {
  font-family: var(--font-head);
  font-size: 15px;
  color: var(--neon-cyan);
  display: block;
  margin-bottom: 8px;
}

.about-card p {
  font-size: 13px;
  color: #c3d3f2;
  line-height: 1.8;
}

.about-cta {
  text-align: center;
  padding: 34px 24px;
  margin-bottom: 30px;
  background:
    radial-gradient(ellipse 600px 220px at 50% 120%, rgba(var(--neon-magenta-rgb), 0.14), transparent 65%),
    var(--panel);
}

.about-cta h2 {
  font-family: var(--font-head);
  font-size: 24px;
  letter-spacing: 2px;
  color: var(--neon-yellow);
}

.about-cta p {
  max-width: 680px;
  margin: 12px auto 0;
  color: var(--text-dim);
  line-height: 1.9;
}

.about-cta-btns {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 18px;
  flex-wrap: wrap;
}

.about-contact-text {
  color: var(--text-dim);
  margin-bottom: 12px;
}

.about-contact {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.about-contact span {
  font-size: 14px;
  color: var(--text-dim);
  border: 1px solid var(--line);
  padding: 8px 14px;
}

.about-contact b {
  color: var(--neon-yellow);
}

@media (max-width: 900px) {
  .about-card-grid--three,
  .about-card-grid--four {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .about-card-grid--three,
  .about-card-grid--four {
    grid-template-columns: 1fr;
  }
}

/* ---------- 后台配置编辑器 ---------- */

.cfg-inline {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
}

.cfg-row {
  display: grid;
  gap: 8px;
  align-items: center;
  margin-bottom: 8px;
}

.cat-row {
  grid-template-columns: 120px minmax(0, 1fr) 60px 120px 36px;
}

.qc-row {
  grid-template-columns: 48px minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr) 36px;
}

.cs-row {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.6fr) minmax(0, 1.2fr) 36px;
}

.two-col-row {
  grid-template-columns: 160px minmax(0, 1fr) 36px;
}

@media (max-width: 768px) {
  .cfg-inline {
    grid-template-columns: 1fr;
  }

  .cat-row {
    grid-template-columns: 1fr 1fr;
  }

  .qc-row {
    grid-template-columns: 1fr 1fr;
  }

  .cs-row {
    grid-template-columns: 1fr 1fr;
  }

  .two-col-row {
    grid-template-columns: 1fr;
  }
}

/* ---------- 一键上浮 / 下沉悬浮键 ---------- */

.mobile-bottom-nav {
  display: none;
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: max(14px, calc(env(safe-area-inset-bottom, 0px) + 8px));
  z-index: 9600;
  width: min(92%, 460px);
  padding: 7px 10px;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
  border-radius: 999px;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.055) 38%, rgba(255, 255, 255, 0.015) 62%, rgba(255, 255, 255, 0.12)),
    linear-gradient(115deg, rgba(255, 255, 255, 0.14), transparent 36%),
    rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(26px) saturate(210%);
  -webkit-backdrop-filter: blur(26px) saturate(210%);
  box-shadow:
    0 12px 38px rgba(0, 0, 0, 0.46),
    0 0 22px rgba(var(--neon-cyan-rgb), 0.12),
    inset 0 1px 1px rgba(255, 255, 255, 0.24),
    inset 0 -1px 1px rgba(255, 255, 255, 0.08),
    inset 1px 0 1px rgba(255, 255, 255, 0.12),
    inset -1px 0 1px rgba(255, 255, 255, 0.12);
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .mobile-bottom-nav {
    background: rgba(12, 18, 38, 0.86);
  }
}

.mbn-indicator {
  position: absolute;
  top: 7px;
  bottom: 7px;
  left: 10px;
  width: calc((100% - 20px) / var(--mbn-count, 4));
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.36), rgba(255, 255, 255, 0.1) 34%, rgba(255, 255, 255, 0.03) 62%, rgba(255, 255, 255, 0.14)),
    linear-gradient(115deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.03) 44%, transparent 72%),
    rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(18px) saturate(220%);
  -webkit-backdrop-filter: blur(18px) saturate(220%);
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.42),
    inset 0 -8px 16px rgba(255, 255, 255, 0.08),
    inset 2px 0 6px rgba(255, 255, 255, 0.16),
    inset -2px 0 6px rgba(255, 255, 255, 0.16),
    0 10px 28px rgba(0, 0, 0, 0.38),
    0 0 26px rgba(var(--neon-cyan-rgb), 0.3);
  transition:
    transform 0.52s cubic-bezier(0.22, 1.25, 0.36, 1),
    top 0.45s cubic-bezier(0.22, 1.25, 0.36, 1),
    bottom 0.45s cubic-bezier(0.22, 1.25, 0.36, 1),
    box-shadow 0.45s ease,
    background 0.45s ease,
    opacity 0.25s ease;
  pointer-events: none;
  z-index: 0;
  will-change: transform;
}

.mobile-bottom-nav.mbn-dragging .mbn-indicator {
  top: 3px;
  bottom: 3px;
  transition: none !important;
}

.mobile-bottom-nav.mbn-dragging {
  box-shadow:
    0 14px 42px rgba(0, 0, 0, 0.5),
    0 0 30px rgba(var(--neon-cyan-rgb), 0.22),
    inset 0 1px 1px rgba(255, 255, 255, 0.24),
    inset 0 -1px 1px rgba(255, 255, 255, 0.08),
    inset 1px 0 1px rgba(255, 255, 255, 0.12),
    inset -1px 0 1px rgba(255, 255, 255, 0.12);
}

.mobile-bottom-nav a {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  position: relative;
  z-index: 1;
  padding: 7px 4px;
  color: var(--text-dim);
  border-radius: 14px;
  font-size: 11px;
  letter-spacing: 1px;
  text-decoration: none;
  transition: color 0.18s, background 0.18s, box-shadow 0.18s;
}

.mobile-bottom-nav a .mbn-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 24px;
  transition: transform 0.5s cubic-bezier(0.22, 1.25, 0.36, 1), filter 0.35s ease;
}

.mobile-bottom-nav a .mbn-icon svg {
  width: 22px;
  height: 22px;
  display: block;
  filter: drop-shadow(0 0 3px rgba(var(--neon-cyan-rgb), 0.35));
}

.mobile-bottom-nav a:hover .mbn-icon {
  transform: translateY(-1px);
}

.mobile-bottom-nav a.active {
  color: var(--neon-cyan);
}

.mobile-bottom-nav a.active .mbn-icon {
  transform: translateY(-2px) scale(1.14);
}

.mobile-bottom-nav a.active .mbn-icon svg {
  filter: drop-shadow(0 0 8px rgba(var(--neon-cyan-rgb), 0.95));
}

.mobile-bottom-nav.hidden,
.float-nav.hidden {
  display: none !important;
}

body.drawer-open .mobile-bottom-nav,
body.drawer-open .float-nav {
  display: none !important;
}

.float-nav {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 9500;
  display: flex;
}

.pixel-sprite {
  position: relative;
  width: 58px;
  height: 58px;
  border: 2px solid rgba(var(--neon-cyan-rgb), 0.6);
  border-radius: 18px;
  background: linear-gradient(160deg, rgba(17, 26, 51, 0.94), rgba(8, 12, 26, 0.94));
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow:
    0 4px 14px rgba(0, 0, 0, 0.45),
    inset 0 0 14px rgba(var(--neon-cyan-rgb), 0.12),
    0 0 14px rgba(var(--neon-cyan-rgb), 0.18);
  transition: transform 0.2s, box-shadow 0.2s;
}

.pixel-sprite svg {
  width: 36px;
  height: 36px;
  display: block;
  filter: drop-shadow(0 0 6px rgba(var(--neon-cyan-rgb), 0.6));
}

.pixel-sprite:hover {
  transform: translateY(-4px);
  box-shadow:
    0 8px 22px rgba(0, 0, 0, 0.45),
    0 0 26px rgba(var(--neon-cyan-rgb), 0.5);
  animation: sprite-hop 0.45s ease;
}

@keyframes sprite-hop {
  0%, 100% { transform: translateY(-4px); }
  50% { transform: translateY(-9px); }
}

.pixel-sprite:active {
  transform: translateY(0) scale(0.95);
}

.fs-label {
  position: absolute;
  right: calc(100% + 10px);
  top: 50%;
  transform: translateY(-50%) translateX(4px);
  white-space: nowrap;
  font-size: 11px;
  letter-spacing: 1px;
  color: var(--neon-cyan);
  background: rgba(10, 15, 32, 0.94);
  border: 1px solid var(--line-bright);
  border-radius: 6px;
  padding: 4px 9px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.18s, transform 0.18s, visibility 0.18s;
  pointer-events: none;
}

.pixel-sprite:hover .fs-label {
  opacity: 1;
  visibility: visible;
  transform: translateY(-50%) translateX(0);
}

@media (max-width: 768px) {
  .mobile-bottom-nav {
    display: flex;
    bottom: max(12px, calc(env(safe-area-inset-bottom, 0px) + 8px));
  }

  .site-footer {
    padding-bottom: 96px;
  }

  .float-nav {
    display: none;
  }
}

/* ---------- 版权声明页 ---------- */

.copyright-grid {
  grid-template-columns: repeat(2, 1fr);
}

.copyright-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.copyright-en {
  font-family: var(--font-pixel);
  font-size: 9px;
  color: var(--neon-magenta);
  letter-spacing: 1px;
}

.copyright-note {
  margin-top: 0;
}

@media (max-width: 768px) {
  .copyright-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- 后台站点设置分板块 ---------- */

.admin-subtabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px dashed var(--line);
}

.admin-subtabs .tab {
  border: 1px solid var(--line-bright);
  background: var(--panel);
  color: var(--text-dim);
  font-family: var(--font-head);
  font-size: 13px;
  padding: 7px 12px;
  cursor: pointer;
}

.admin-subtabs .tab:hover {
  color: var(--neon-cyan);
  border-color: var(--neon-cyan);
}

.admin-subtabs .tab.active {
  color: #05070f;
  background: var(--neon-cyan);
  border-color: var(--neon-cyan);
  box-shadow: 0 0 12px rgba(var(--neon-cyan-rgb), 0.35);
}

.settings-panel {
  display: none;
}

.settings-panel.active {
  display: block;
}

/* ---------- 用户反馈 ---------- */

.feedback-layout {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.feedback-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.feedback-item {
  border: 1px solid var(--line);
  padding: 12px 14px;
  background: rgba(13, 19, 38, 0.5);
}

.fb-head {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.fb-type {
  font-family: var(--font-head);
  font-size: 12px;
  color: var(--neon-cyan);
  border: 1px solid var(--line-bright);
  padding: 2px 8px;
}

.fb-status {
  font-size: 11px;
  padding: 2px 8px;
}

.fb-status.open {
  color: var(--neon-yellow);
  border: 1px solid var(--neon-yellow);
}

.fb-status.done {
  color: var(--neon-green);
  border: 1px solid var(--neon-green);
}

.fb-time {
  margin-left: auto;
  font-size: 11px;
  color: var(--text-faint);
}

.fb-content {
  font-size: 13px;
  color: #c3d3f2;
  margin-top: 8px;
  white-space: pre-line;
}

.fb-reply {
  margin-top: 8px;
  font-size: 13px;
  color: var(--neon-green);
  border-left: 2px solid var(--neon-green);
  padding-left: 10px;
}

@media (max-width: 900px) {
  .feedback-layout {
    grid-template-columns: 1fr;
  }
}

/* ---------------- 评论 @提及 / 回复折叠 ---------------- */
.mention {
  color: var(--neon-cyan);
  font-weight: 700;
  text-shadow: 0 0 6px rgba(246, 203, 35, 0.35);
}

.comment-item.reply .mention {
  color: var(--neon-magenta);
}

.reply-toggle {
  margin: 6px 0 2px 46px;
  font-size: 12px;
  color: var(--text-faint);
}

.reply-toggle:hover {
  color: var(--neon-cyan);
}

/* ---------------- 签到日历 ---------------- */
.cal-head {
  font-family: var(--font-head);
  font-size: 13px;
  letter-spacing: 1px;
  margin-bottom: 8px;
  color: var(--neon-yellow);
}

.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.cal-week {
  text-align: center;
  font-size: 11px;
  color: var(--text-faint);
  padding: 2px 0;
}

.cal-cell {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 30px;
  border: 1px solid var(--line);
  border-radius: 3px;
  font-size: 12px;
  color: var(--text-dim);
  background: var(--panel);
}

.cal-cell.signed {
  color: #05070f;
  background: var(--neon-cyan);
  border-color: var(--neon-cyan);
  font-weight: 700;
}

.cal-cell.today {
  box-shadow: 0 0 8px rgba(246, 203, 35, 0.55);
  border-color: var(--neon-magenta);
}

.cal-cell .cal-dot {
  position: absolute;
  bottom: 2px;
  width: 3px;
  height: 3px;
  background: #05070f;
  border-radius: 50%;
}

.cal-empty {
  height: 30px;
}

/* ---------------- 成就徽章 ---------------- */
.ach-summary {
  font-size: 13px;
  color: var(--text-dim);
  margin-bottom: 10px;
}

.ach-summary b {
  color: var(--neon-yellow);
}

.ach-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(118px, 1fr));
  gap: 8px;
}

.ach-card {
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 8px 6px;
  text-align: center;
  background: var(--panel);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}

.ach-card.unlocked {
  border-color: var(--neon-cyan);
  box-shadow: 0 0 10px rgba(246, 203, 35, 0.2);
}

.ach-card.locked {
  opacity: 0.45;
  filter: grayscale(1);
}

.ach-icon {
  font-size: 20px;
  line-height: 1;
}

.ach-name {
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
}

.ach-desc {
  font-size: 10px;
  color: var(--text-faint);
  line-height: 1.35;
  min-height: 26px;
}

.ach-time {
  font-size: 10px;
  color: var(--neon-green);
}

.ach-reward {
  font-size: 10px;
  color: var(--neon-yellow);
}

/* ---------------- 后台链接巡检 ---------------- */
.link-stat-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 8px;
  margin: 10px 0 14px;
}

.link-stat {
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 8px;
  text-align: center;
  background: var(--panel);
}

.link-stat .lbl {
  display: block;
  font-size: 11px;
  color: var(--text-faint);
}

.link-stat b {
  font-size: 18px;
  color: var(--text);
}

.link-stat.dead b {
  color: var(--neon-red);
}

.link-stat.ok b {
  color: var(--neon-green);
}

.link-stat.pending b,
.link-stat.unknown b {
  color: var(--neon-yellow);
}

/* ---------------- 数据看板整合 ---------------- */
.dash-split2 {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 18px;
}

.dash-split3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.dash-block {
  min-width: 0;
}

.dash-block h3 {
  font-family: var(--font-head);
  font-size: 12px;
  letter-spacing: 1px;
  color: var(--neon-yellow);
  margin-bottom: 8px;
  padding-bottom: 6px;
  border-bottom: 1px dashed var(--line);
}

@media (max-width: 900px) {
  .dash-split2,
  .dash-split3 {
    grid-template-columns: 1fr;
  }
}

/* ---------------- 彩色昵称 / 光环 ---------------- */
.nick-name {
  color: inherit;
}

.halo-badge {
  display: inline-block;
  margin-left: 3px;
  color: var(--neon-yellow);
  text-shadow: 0 0 8px rgba(246, 203, 35, 0.8);
  animation: halo-pulse 2s ease-in-out infinite;
  font-size: 0.9em;
}

@keyframes halo-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.15); }
}

/* ---------------- 邀请奖励 ---------------- */
.invite-code-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
}

.invite-code {
  font-family: var(--font-pixel);
  font-size: 16px;
  color: var(--neon-cyan);
  background: var(--panel-2);
  border: 1px dashed var(--neon-cyan);
  border-radius: 4px;
  padding: 8px 12px;
  letter-spacing: 2px;
}

.invite-list {
  list-style: none;
  margin-top: 6px;
}

.invite-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  border-bottom: 1px dotted rgba(29, 42, 77, 0.6);
  font-size: 13px;
}

/* ---------------- 积分商城 ---------------- */
.shop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.shop-card {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 12px 10px;
  background: var(--panel);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  text-align: center;
}

.shop-card .shop-icon {
  font-size: 22px;
  line-height: 1;
}

.shop-card .shop-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}

.shop-card .shop-desc {
  font-size: 11px;
  color: var(--text-faint);
  line-height: 1.4;
  min-height: 30px;
}

.shop-card .shop-active {
  font-size: 11px;
  color: var(--neon-green);
}

.rename-form {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  margin-top: 6px;
}

@media (max-width: 560px) {
  .rename-form {
    flex-direction: column;
    align-items: stretch;
  }
}

/* ---------------- 邮箱绑定 ---------------- */
.email-bind-form {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  margin-top: 10px;
}

.email-bind-form .field {
  margin: 0;
}

.email-status-ok {
  border: 1px solid var(--neon-green);
  border-radius: 6px;
  background: rgba(57, 255, 136, 0.06);
  padding: 10px 12px;
  font-size: 13px;
}

.email-status-ok b {
  color: var(--neon-green);
}

@media (max-width: 560px) {
  .email-bind-form {
    flex-direction: column;
    align-items: stretch;
  }
}
