/* ===== RoverPod 复刻版 · 全局样式 ===== */
:root {
  --bg: #0a0e17;
  --bg-elev: #111726;
  --surface: #161e2e;
  --surface-2: #1c2638;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #e9edf6;
  --muted: #8b95a9;
  --muted-2: #6b7689;
  --accent: #7a5cff;
  --accent-2: #00d4ff;
  --pink: #ff4d8d;
  --green: #36d399;
  --yellow: #fbbf24;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.75);
  --maxw: 1240px;
  --font: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", system-ui,
    -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== 顶部导航 ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 14, 23, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 20px;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.brand .logo-mark {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  font-size: 18px;
  font-weight: 900;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 6px 16px -4px rgba(122, 92, 255, 0.6);
}

.brand .brand-sub {
  font-size: 11px;
  color: var(--muted);
  font-weight: 600;
  letter-spacing: 1px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}

.main-nav a {
  padding: 9px 14px;
  border-radius: 9px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--muted);
  transition: 0.2s;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--text);
  background: var(--surface);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: 0.2s;
}

.btn-icon:hover {
  border-color: var(--border-strong);
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
}

/* ===== Hero ===== */
.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.08);
  filter: saturate(1.05);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
      180deg,
      rgba(10, 14, 23, 0.55) 0%,
      rgba(10, 14, 23, 0.78) 55%,
      rgba(10, 14, 23, 1) 100%
    ),
    radial-gradient(
      120% 80% at 50% 0%,
      rgba(122, 92, 255, 0.28),
      transparent 60%
    );
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 96px 20px 84px;
}

.brand-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 16px 7px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-strong);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 26px;
  backdrop-filter: blur(8px);
}

.live-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 0 rgba(54, 211, 153, 0.6);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(54, 211, 153, 0.6);
  }
  70% {
    box-shadow: 0 0 0 9px rgba(54, 211, 153, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(54, 211, 153, 0);
  }
}

.hero-title {
  font-size: clamp(34px, 6vw, 64px);
  font-weight: 900;
  letter-spacing: 2px;
  line-height: 1.1;
  margin-bottom: 18px;
  position: relative;
  display: inline-block;
}

/* 故障字效果 */
.glitch {
  position: relative;
  color: #fff;
}
.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.glitch::before {
  left: 2px;
  text-shadow: -2px 0 var(--pink);
  animation: glitch-1 2.6s infinite linear alternate-reverse;
  clip-path: inset(0 0 55% 0);
}
.glitch::after {
  left: -2px;
  text-shadow: -2px 0 var(--accent-2);
  animation: glitch-2 2s infinite linear alternate-reverse;
  clip-path: inset(55% 0 0 0);
}
@keyframes glitch-1 {
  0% { transform: translate(0); }
  20% { transform: translate(-2px, 1px); }
  40% { transform: translate(2px, -1px); }
  60% { transform: translate(-1px, 0); }
  100% { transform: translate(1px, 1px); }
}
@keyframes glitch-2 {
  0% { transform: translate(0); }
  25% { transform: translate(2px, -1px); }
  50% { transform: translate(-2px, 1px); }
  75% { transform: translate(1px, 1px); }
  100% { transform: translate(-1px, 0); }
}

.hero-subtitle {
  font-size: clamp(15px, 2vw, 19px);
  color: var(--muted);
  margin-bottom: 34px;
}

.hero-search {
  max-width: 620px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  padding: 7px 7px 7px 18px;
  backdrop-filter: blur(10px);
  transition: 0.25s;
}
.hero-search:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(122, 92, 255, 0.18);
}
.hero-search svg {
  flex: none;
  color: var(--muted);
}
.hero-search input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text);
  font-size: 16px;
  padding: 10px 0;
  font-family: inherit;
}
.hero-search input::placeholder {
  color: var(--muted-2);
}
.hero-search button {
  flex: none;
  border: none;
  cursor: pointer;
  padding: 12px 26px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 15px;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  transition: 0.2s;
}
.hero-search button:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

/* ===== 公告条 ===== */
.notice-bar {
  margin: 36px auto 0;
  max-width: var(--maxw);
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: linear-gradient(
    100deg,
    rgba(122, 92, 255, 0.14),
    rgba(0, 212, 255, 0.08)
  );
  border: 1px solid rgba(122, 92, 255, 0.35);
  border-radius: var(--radius);
  padding: 16px 20px;
}
.notice-bar .notice-icon {
  font-size: 22px;
  line-height: 1.2;
}
.notice-bar .notice-body strong {
  color: #fff;
  font-size: 15.5px;
}
.notice-bar .notice-body p {
  color: var(--muted);
  font-size: 13.5px;
  margin-top: 2px;
}

/* ===== 区块标题 ===== */
.section {
  padding: 48px 0;
}
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}
.section-title {
  font-size: 24px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 12px;
}
.section-title::before {
  content: "";
  width: 5px;
  height: 24px;
  border-radius: 3px;
  background: linear-gradient(var(--accent), var(--accent-2));
}
.section-more {
  font-size: 14px;
  color: var(--muted);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: 0.2s;
}
.section-more:hover {
  color: var(--accent-2);
}

/* ===== 游戏网格 + 侧栏 ===== */
.games-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 28px;
  align-items: start;
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.resource-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: 0.25s;
  display: flex;
  flex-direction: column;
}
.resource-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow), 0 0 0 1px rgba(122, 92, 255, 0.25);
}

.card-thumbnail {
  position: relative;
  aspect-ratio: 460 / 215;
  overflow: hidden;
  background: var(--surface-2);
}
.card-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 0.4s;
}
.resource-card:hover .card-thumbnail img {
  transform: scale(1.06);
}

.sticky-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 3;
  background: linear-gradient(135deg, var(--pink), #ff7a59);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 7px;
}
.view-count-badge {
  position: absolute;
  bottom: 10px;
  right: 10px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(10, 14, 23, 0.7);
  backdrop-filter: blur(6px);
  color: #fff;
  font-size: 11.5px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 7px;
}

.card-content {
  padding: 13px 14px 15px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.card-meta-top {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
}
.resource-category-pill {
  background: rgba(122, 92, 255, 0.16);
  color: #b9a7ff;
  padding: 2px 9px;
  border-radius: 6px;
  font-weight: 700;
}
.resource-date {
  color: var(--muted-2);
}
.resource-title {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--text);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.title-status-badge {
  font-size: 11px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 6px;
  white-space: nowrap;
}
.is-new-release {
  background: rgba(54, 211, 153, 0.18);
  color: var(--green);
}
.is-update {
  background: rgba(0, 212, 255, 0.16);
  color: var(--accent-2);
}
.card-file-info {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: auto;
  font-size: 12px;
  color: var(--muted);
}
.card-file-info span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.no-result {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 0;
  color: var(--muted);
}

/* ===== 侧栏 ===== */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: sticky;
  top: 86px;
}
.side-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
}
.side-card h4 {
  font-size: 15px;
  font-weight: 800;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.rank-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.rank-list li {
  display: flex;
  align-items: center;
  gap: 11px;
  cursor: pointer;
  padding: 6px;
  border-radius: 9px;
  transition: 0.2s;
}
.rank-list li:hover {
  background: var(--surface-2);
}
.rank-no {
  width: 24px;
  height: 24px;
  flex: none;
  border-radius: 7px;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 800;
  background: var(--surface-2);
  color: var(--muted);
}
.rank-list li:nth-child(1) .rank-no {
  background: linear-gradient(135deg, #ff5f6d, #ffc371);
  color: #fff;
}
.rank-list li:nth-child(2) .rank-no {
  background: linear-gradient(135deg, #7a5cff, #b9a7ff);
  color: #fff;
}
.rank-list li:nth-child(3) .rank-no {
  background: linear-gradient(135deg, #00d4ff, #36d399);
  color: #06121a;
}
.rank-thumb {
  width: 54px;
  height: 30px;
  border-radius: 5px;
  object-fit: cover;
  flex: none;
}
.rank-title {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.checkin-card {
  text-align: center;
}
.checkin-card .coin {
  font-size: 30px;
}
.checkin-btn {
  margin-top: 12px;
  width: 100%;
  border: none;
  cursor: pointer;
  padding: 11px;
  border-radius: 10px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  transition: 0.2s;
}
.checkin-btn:hover {
  filter: brightness(1.08);
}
.checkin-btn.done {
  background: var(--surface-2);
  color: var(--muted);
  cursor: default;
}

.random-pick {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.random-pick img {
  width: 100%;
  aspect-ratio: 460/215;
  object-fit: cover;
  border-radius: 10px;
}
.random-pick .rp-title {
  font-size: 14px;
  font-weight: 700;
}
.random-btn {
  border: 1px solid var(--border-strong);
  background: var(--surface-2);
  color: var(--text);
  padding: 9px;
  border-radius: 9px;
  font-weight: 700;
  cursor: pointer;
  transition: 0.2s;
}
.random-btn:hover {
  border-color: var(--accent);
}

/* ===== 统计条 ===== */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 8px 0 0;
}
.stat-card {
  background: linear-gradient(160deg, var(--surface), var(--surface-2));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  text-align: center;
}
.stat-card .num {
  font-size: 30px;
  font-weight: 900;
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat-card .label {
  font-size: 13px;
  color: var(--muted);
  margin-top: 4px;
}

/* ===== 分类方块 ===== */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.cat-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 16/10;
  display: flex;
  align-items: flex-end;
  padding: 18px;
  border: 1px solid var(--border);
  transition: 0.25s;
}
.cat-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--c, none);
  background-size: cover;
  background-position: center;
  filter: brightness(0.55);
  transition: 0.4s;
}
.cat-card:hover::before {
  transform: scale(1.08);
  filter: brightness(0.7);
}
.cat-card span {
  position: relative;
  font-size: 19px;
  font-weight: 800;
  z-index: 2;
}
.cat-card small {
  position: relative;
  display: block;
  z-index: 2;
  color: rgba(255, 255, 255, 0.75);
  font-size: 12px;
}

/* ===== 页脚 ===== */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-elev);
  margin-top: 30px;
  padding: 44px 0 26px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 30px;
}
.footer-grid h5 {
  font-size: 14px;
  font-weight: 800;
  margin-bottom: 14px;
  color: #fff;
}
.footer-grid a {
  display: block;
  color: var(--muted);
  font-size: 13.5px;
  padding: 5px 0;
  transition: 0.2s;
}
.footer-grid a:hover {
  color: var(--accent-2);
}
.footer-about p {
  color: var(--muted);
  font-size: 13.5px;
  margin-top: 10px;
}
.footer-bottom {
  margin-top: 34px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--muted-2);
  font-size: 13px;
}

/* ===== 详情页 ===== */
.detail-bread {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 18px;
}
.detail-bread a:hover {
  color: var(--accent-2);
}
.detail-main {
  display: grid;
  grid-template-columns: 460px 1fr;
  gap: 30px;
  align-items: start;
}
.detail-cover {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  aspect-ratio: 460 / 215;
  background: var(--surface-2);
}
.detail-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.detail-info h1 {
  font-size: 26px;
  font-weight: 900;
  line-height: 1.3;
  margin-bottom: 14px;
}
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}
.detail-meta .chip {
  font-size: 12.5px;
  padding: 5px 11px;
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--muted);
  border: 1px solid var(--border);
}
.detail-meta .chip b {
  color: var(--text);
}
.detail-desc {
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.85;
  margin-bottom: 22px;
}
.detail-desc ul {
  margin: 10px 0 0 18px;
}
.detail-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.qr-box {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}
.qr-box img {
  width: 180px;
  height: 180px;
  border-radius: 12px;
  background: #fff;
  padding: 8px;
  border: 1px solid var(--border);
}
.qr-box p {
  font-size: 13px;
  color: var(--muted);
}
.qr-empty {
  margin-top: 22px;
  padding: 22px;
  border: 1px dashed var(--border-strong);
  border-radius: 12px;
  color: var(--muted-2);
  font-size: 13px;
  text-align: center;
}
.btn-download {
  border: none;
  cursor: pointer;
  padding: 14px 34px;
  border-radius: 12px;
  font-weight: 800;
  font-size: 16px;
  color: #fff;
  background: linear-gradient(135deg, var(--pink), #ff7a59);
  transition: 0.2s;
}
.btn-download:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}
.btn-ghost {
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text);
  padding: 14px 24px;
  border-radius: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: 0.2s;
}
.btn-ghost:hover {
  border-color: var(--accent);
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
@media (max-width: 860px) {
  .detail-main {
    grid-template-columns: 1fr;
  }
  .related-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ===== 移动端 ===== */
@media (max-width: 980px) {
  .games-layout {
    grid-template-columns: 1fr;
  }
  .sidebar {
    position: static;
  }
  .games-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .stats,
  .cat-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 1080px) {
  .header-inner { gap: 14px; }
  .main-nav {
    gap: 2px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  .main-nav::-webkit-scrollbar { display: none; }
  .main-nav a { padding: 8px 10px; font-size: 13.5px; white-space: nowrap; }
}
@media (max-width: 640px) {
  .main-nav {
    position: fixed;
    inset: 68px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--bg-elev);
    border-bottom: 1px solid var(--border);
    padding: 14px;
    gap: 4px;
    transform: translateY(-130%);
    transition: 0.3s;
  }
  .main-nav.open {
    transform: translateY(0);
  }
  .menu-toggle {
    display: grid;
  }
  .games-grid {
    grid-template-columns: 1fr;
  }
  .hero-content {
    padding: 70px 16px 60px;
  }
}

/* ============================================================
   ===== UI 增强（氛围背景 / 卡片光效 / 滚动入场 / 滚动条）=====
   ============================================================ */

/* ---- 全局氛围背景：固定光晕 + 细网格 ---- */
body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}
body::before {
  background:
    radial-gradient(900px circle at 12% -8%, rgba(122, 92, 255, 0.20), transparent 45%),
    radial-gradient(820px circle at 92% 4%, rgba(0, 212, 255, 0.14), transparent 42%),
    radial-gradient(760px circle at 50% 118%, rgba(255, 77, 141, 0.12), transparent 46%);
}
body::after {
  opacity: 0.5;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 28%, #000 25%, transparent 80%);
  mask-image: radial-gradient(ellipse 80% 60% at 50% 28%, #000 25%, transparent 80%);
}

/* ---- 自定义滚动条 ---- */
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
  border-radius: 10px;
  border: 3px solid var(--bg);
}
::-webkit-scrollbar-thumb:hover { filter: brightness(1.15); }
html { scrollbar-color: var(--accent) var(--bg); }

/* ---- 文本选中 ---- */
::selection { background: rgba(122, 92, 255, 0.35); color: #fff; }

/* ---- 导航：滚动时强化阴影 ---- */
.site-header.scrolled {
  box-shadow: 0 12px 34px -14px rgba(0, 0, 0, 0.7);
  border-color: var(--border-strong);
  background: rgba(10, 14, 23, 0.9);
}

/* ---- Hero 标题霓虹辉光 + 背景缓慢推进 ---- */
.hero-title .glitch { text-shadow: 0 0 26px rgba(122, 92, 255, 0.4), 0 0 60px rgba(0, 212, 255, 0.18); }
.hero-bg { animation: heroZoom 18s ease-in-out infinite alternate; }
@keyframes heroZoom {
  0% { transform: scale(1.08); }
  100% { transform: scale(1.16); }
}
.brand-pill { box-shadow: 0 8px 24px -10px rgba(122, 92, 255, 0.6); }

/* ---- 卡片：鼠标跟随光圈 + 封面扫光 ---- */
.resource-card { box-shadow: 0 10px 28px -16px rgba(0, 0, 0, 0.6); }
.resource-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: var(--radius);
  background: radial-gradient(
    260px circle at var(--mx, 50%) var(--my, 50%),
    rgba(122, 92, 255, 0.22),
    transparent 62%
  );
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}
.resource-card:hover::after { opacity: 1; }
.card-thumbnail::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(
    115deg,
    transparent 32%,
    rgba(255, 255, 255, 0.22) 50%,
    transparent 68%
  );
  transform: translateX(-130%);
  transition: transform 0.75s ease;
  pointer-events: none;
}
.resource-card:hover .card-thumbnail::after { transform: translateX(130%); }
.resource-card:hover .resource-title-text {
  background: linear-gradient(90deg, var(--accent-2), var(--pink));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.resource-title-text { transition: 0.25s; }

/* ---- 分类卡片：渐变描边 + 上浮 ---- */
.cat-card {
  box-shadow: 0 14px 30px -18px rgba(0, 0, 0, 0.7);
}
.cat-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition: 0.3s;
  pointer-events: none;
}
.cat-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 26px 50px -20px rgba(122, 92, 255, 0.55);
}
.cat-card:hover::after { border-color: rgba(122, 92, 255, 0.7); }
.cat-card span {
  background: linear-gradient(90deg, #fff, #cdd6ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---- 侧栏卡片：轻微光泽 ---- */
.side-card {
  box-shadow: 0 12px 28px -18px rgba(0, 0, 0, 0.6);
  transition: transform 0.25s, border-color 0.25s;
}
.side-card:hover { border-color: var(--border-strong); transform: translateY(-2px); }

/* ---- 统计卡片：数字微光 + hover ---- */
.stat-card {
  position: relative;
  overflow: hidden;
  transition: transform 0.25s, border-color 0.25s;
}
.stat-card:hover { transform: translateY(-4px); border-color: var(--border-strong); }
.stat-card::before {
  content: "";
  position: absolute;
  top: -40%; left: -40%;
  width: 80%; height: 80%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.12), transparent 60%);
  opacity: 0;
  transition: opacity 0.3s;
}
.stat-card:hover::before { opacity: 1; }

/* ---- 详情页封面光泽 + hover ---- */
.detail-cover { transition: 0.45s ease; }
.detail-cover:hover {
  transform: scale(1.015);
  box-shadow: 0 26px 54px -22px rgba(0, 212, 255, 0.45);
}
.btn-download { box-shadow: 0 14px 30px -12px rgba(255, 77, 141, 0.6); }
.btn-download:hover { box-shadow: 0 18px 38px -12px rgba(255, 77, 141, 0.8); }

/* ---- 滚动入场动画 ---- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-bg { animation: none; }
}

/* ===== 打开公告弹窗 ===== */
.announce-mask {
  position: fixed;
  inset: 0;
  background: rgba(8, 10, 20, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.announce-mask.show { opacity: 1; pointer-events: auto; }
.announce-modal {
  position: relative;
  width: 100%;
  max-width: 420px;
  background: #fff;
  color: #2a2a2a;
  border-radius: 20px;
  padding: 38px 30px 26px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.32);
  transform: translateY(20px) scale(0.96);
  transition: transform 0.4s cubic-bezier(0.2, 0.9, 0.3, 1.2);
}
.announce-mask.show .announce-modal { transform: translateY(0) scale(1); }
.announce-handle {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 4px;
  background: #d8d8d8;
  border-radius: 2px;
}
.announce-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: none;
  background: #f0f0f0;
  color: #888;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.2s, color 0.2s;
}
.announce-close:hover { background: #e0e0e0; color: #333; }
.announce-icon {
  width: 60px;
  height: 60px;
  margin: 6px auto 14px;
  border-radius: 16px;
  background: linear-gradient(135deg, #4d8bff 0%, #2c5fe6 100%);
  display: grid;
  place-items: center;
  box-shadow: 0 8px 22px rgba(45, 95, 230, 0.35);
}
.announce-title {
  text-align: center;
  font-size: 19px;
  font-weight: 700;
  margin: 0 0 14px;
  color: #1a1a1a;
}
.announce-text {
  text-align: center;
  color: #555;
  font-size: 14px;
  line-height: 1.95;
  margin-bottom: 22px;
}
.announce-text p { margin: 0; }
.announce-text kbd {
  display: inline-block;
  padding: 1px 6px;
  font-size: 12px;
  font-family: ui-monospace, "SF Mono", Consolas, monospace;
  background: #f0f2f5;
  border: 1px solid #d8d8d8;
  border-bottom-width: 2px;
  border-radius: 4px;
  color: #333;
}
.announce-switch-row {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
  font-size: 14px;
  color: #555;
  margin-bottom: 18px;
  cursor: pointer;
  user-select: none;
}
.announce-switch {
  position: relative;
  display: inline-block;
  width: 40px;
  height: 22px;
  flex-shrink: 0;
}
.announce-switch input { opacity: 0; width: 0; height: 0; }
.announce-switch-slider {
  position: absolute;
  inset: 0;
  background: #d8d8d8;
  border-radius: 22px;
  transition: background 0.25s;
}
.announce-switch-slider::before {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  transition: transform 0.25s;
}
.announce-switch input:checked + .announce-switch-slider {
  background: linear-gradient(135deg, #4d8bff, #2c5fe6);
}
.announce-switch input:checked + .announce-switch-slider::before {
  transform: translateX(18px);
}
.announce-btn {
  width: 100%;
  padding: 13px 0;
  border: none;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #4d8bff 0%, #2c5fe6 100%);
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(45, 95, 230, 0.3);
  transition: transform 0.15s, box-shadow 0.2s;
}
.announce-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(45, 95, 230, 0.4);
}
.announce-btn:active { transform: translateY(0); }
@media (max-width: 480px) {
  .announce-modal { padding: 32px 22px 22px; border-radius: 16px; }
  .announce-title { font-size: 17px; }
  .announce-text { font-size: 13.5px; }
}

/* ============================================================
   ===== 列表页：分类筛选 / 排序 / 分页（复刻 rxgame 归档页）=====
   ============================================================ */
.pc-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 4px 0 22px;
  padding: 14px 16px;
  background: linear-gradient(160deg, var(--surface), var(--surface-2));
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chip-btn {
  border: 1px solid var(--border-strong);
  background: var(--bg-elev);
  color: var(--muted);
  padding: 7px 15px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: 0.2s;
  white-space: nowrap;
}
.chip-btn:hover { color: var(--text); border-color: var(--accent); }
.chip-btn.active {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 8px 20px -10px rgba(122, 92, 255, 0.7);
}
.sort-select {
  border: 1px solid var(--border-strong);
  background: var(--bg-elev);
  color: var(--text);
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  outline: none;
}
.sort-select:focus { border-color: var(--accent); }
.toolbar-count {
  font-size: 13px;
  color: var(--muted);
  margin-left: auto;
}
.toolbar-count b { color: var(--accent-2); }

/* ---- 分页 ---- */
.pager {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 30px 0 6px;
}
.pager button {
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--muted);
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: 0.2s;
}
.pager button:hover:not(:disabled) {
  color: var(--text);
  border-color: var(--accent);
}
.pager button.active {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 8px 20px -10px rgba(122, 92, 255, 0.7);
}
.pager button:disabled { opacity: 0.4; cursor: not-allowed; }

/* ============================================================
   ===== 帮助中心：双栏 FAQ 手风琴（复刻 rxgame 帮助中心）=====
   ============================================================ */
.help-intro {
  display: flex;
  gap: 14px;
  margin: -6px 0 26px;
  padding: 20px 22px;
  background: linear-gradient(160deg, var(--surface), var(--surface-2));
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent-2);
  border-radius: var(--radius);
}
.help-intro .hi-icon {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
}
.help-intro h4 { margin: 0 0 6px; font-size: 15px; }
.help-intro p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.85; }
.help-intro .exe {
  display: inline-block;
  margin: 2px 0;
  padding: 2px 8px;
  border-radius: 6px;
  background: var(--bg-elev);
  border: 1px solid var(--border-strong);
  color: var(--accent-2);
  font-family: ui-monospace, Consolas, monospace;
  font-size: 13px;
}

.help-layout {
  display: grid;
  grid-template-columns: 248px 1fr;
  gap: 28px;
  align-items: start;
}
.help-side {
  position: sticky;
  top: 88px;
  background: linear-gradient(160deg, var(--surface), var(--surface-2));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
}
.help-side h5 {
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 12px;
  padding-left: 6px;
  letter-spacing: 0.04em;
}
.help-nav { display: flex; flex-direction: column; gap: 4px; }
.help-nav a {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 12px;
  border-radius: 9px;
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  transition: 0.2s;
  border: 1px solid transparent;
}
.help-nav a .nav-no {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  display: grid;
  place-items: center;
  background: var(--bg-elev);
  border: 1px solid var(--border-strong);
  font-size: 12px;
  font-weight: 800;
  color: var(--accent-2);
}
.help-nav a:hover { color: var(--text); background: var(--bg-elev); }
.help-nav a.active {
  color: #fff;
  background: linear-gradient(135deg, rgba(122, 92, 255, 0.25), rgba(0, 212, 255, 0.18));
  border-color: var(--accent);
}
.help-nav a.active .nav-no {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  border-color: transparent;
}

.faq-wrap { display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: linear-gradient(160deg, var(--surface), var(--surface-2));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.faq-item.open { border-color: var(--accent); box-shadow: 0 14px 30px -18px rgba(122, 92, 255, 0.6); }
.faq-q {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  cursor: pointer;
  user-select: none;
}
.faq-q .q-no {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  background: var(--bg-elev);
  border: 1px solid var(--border-strong);
  font-size: 13px;
  font-weight: 800;
  color: var(--accent-2);
}
.faq-q .q-text { flex: 1; font-size: 15px; font-weight: 700; color: var(--text); }
.faq-q .q-arrow {
  flex-shrink: 0;
  color: var(--muted);
  transition: transform 0.3s ease;
}
.faq-item.open .q-arrow { transform: rotate(180deg); color: var(--accent-2); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}
.faq-a-inner {
  padding: 0 18px 18px 56px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.95;
}
.faq-a-inner p { margin: 0 0 10px; }
.faq-a-inner ul { margin: 0 0 10px 18px; }
.faq-a-inner li { margin: 4px 0; }
.faq-a-inner code {
  padding: 1px 7px;
  border-radius: 5px;
  background: var(--bg-elev);
  border: 1px solid var(--border-strong);
  color: var(--accent-2);
  font-family: ui-monospace, Consolas, monospace;
  font-size: 13px;
}
.faq-a-inner .warn {
  display: block;
  margin: 6px 0;
  padding: 10px 14px;
  border-radius: 9px;
  background: rgba(255, 122, 89, 0.1);
  border: 1px solid rgba(255, 122, 89, 0.35);
  color: #ffb199;
  font-size: 13.5px;
}

@media (max-width: 860px) {
  .help-layout { grid-template-columns: 1fr; }
  .help-side { position: static; }
  .help-nav { flex-direction: row; flex-wrap: wrap; }
  .help-nav a { flex: 1 1 calc(50% - 4px); }
  .faq-a-inner { padding-left: 18px; }
}

/* ============================================================
   ===== 详情页：电脑端点击下载 -> 弹出二维码扫码跳转（手机端保存）=====
   ============================================================ */
.qr-modal-mask {
  position: fixed;
  inset: 0;
  background: rgba(8, 10, 20, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  padding: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.qr-modal-mask.show { opacity: 1; pointer-events: auto; }
.qr-modal {
  position: relative;
  width: 100%;
  max-width: 360px;
  background: linear-gradient(160deg, var(--surface), var(--surface-2));
  border: 1px solid var(--border-strong);
  border-radius: 22px;
  padding: 34px 28px 26px;
  text-align: center;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.45);
  transform: translateY(20px) scale(0.96);
  transition: transform 0.35s cubic-bezier(0.2, 0.9, 0.3, 1.2);
}
.qr-modal-mask.show .qr-modal { transform: translateY(0) scale(1); }
.qr-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: none;
  background: var(--bg-elev);
  color: var(--muted);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.2s, color 0.2s;
}
.qr-modal-close:hover { background: var(--surface); color: var(--text); }
.qr-modal-phone {
  width: 46px;
  height: 46px;
  margin: 0 auto 12px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  box-shadow: 0 8px 22px rgba(122, 92, 255, 0.4);
}
.qr-modal h3 {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 800;
  color: var(--text);
}
.qr-modal .qr-sub {
  margin: 0 0 18px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
}
.qr-modal-img-box {
  width: 220px;
  height: 220px;
  margin: 0 auto 16px;
  border-radius: 16px;
  background: #fff;
  display: grid;
  place-items: center;
  padding: 12px;
  box-shadow: 0 12px 30px -16px rgba(0, 0, 0, 0.6);
}
.qr-modal-img-box img { width: 100%; height: 100%; object-fit: contain; }
.qr-modal-copy {
  width: 100%;
  padding: 12px 0;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  background: var(--bg-elev);
  cursor: pointer;
  transition: 0.2s;
}
.qr-modal-copy:hover { border-color: var(--accent); color: var(--accent-2); }
.qr-modal-copy:active { transform: translateY(1px); }
@media (max-width: 480px) {
  .qr-modal { padding: 30px 22px 22px; }
}
