/* ========================================
   游戏兑换码聚合站 - 全局样式
   ======================================== */

:root {
  --bg-primary: #0f1117;
  --bg-secondary: #1a1d27;
  --bg-card: #1e2130;
  --bg-hover: #252838;
  --text-primary: #e8eaf0;
  --text-secondary: #9498a8;
  --text-muted: #646878;
  --accent: #6366f1;
  --accent-light: #818cf8;
  --accent-glow: rgba(99, 102, 241, 0.15);
  --success: #22c55e;
  --warning: #f59e0b;
  --danger: #ef4444;
  --info: #3b82f6;
  --border: #2a2d3a;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-mono: "SF Mono", "Fira Code", "Consolas", monospace;
  --max-width: 1200px;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-sans);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
}

a { color: var(--accent-light); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent); }

img { max-width: 100%; height: auto; }

/* Header */
.site-header {
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
}

.logo-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--accent), #a855f7);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.header-nav {
  display: flex;
  gap: 24px;
  list-style: none;
}

.header-nav a {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
}

.header-nav a:hover,
.header-nav a.active {
  color: var(--text-primary);
  border-bottom-color: var(--accent);
}

/* Main container */
.main-content {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 32px 20px 60px;
}

/* Hero section */
.hero {
  text-align: center;
  padding: 48px 20px 40px;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  pointer-events: none;
}

.hero h1 {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 12px;
  position: relative;
  background: linear-gradient(135deg, var(--text-primary), var(--accent-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 580px;
  margin: 0 auto 24px;
  position: relative;
}

/* Search bar */
.search-bar {
  max-width: 480px;
  margin: 0 auto;
  position: relative;
}

.search-bar input {
  width: 100%;
  padding: 14px 50px 14px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 50px;
  color: var(--text-primary);
  font-size: 0.95rem;
  outline: none;
  transition: all 0.3s;
}

.search-bar input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-glow);
}

.search-bar input::placeholder {
  color: var(--text-muted);
}

.search-bar button {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: none;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  font-size: 1rem;
  transition: all 0.2s;
}

.search-bar button:hover {
  background: var(--accent-light);
  transform: translateY(-50%) scale(1.05);
}

/* Stats bar */
.stats-bar {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin: 36px 0 48px;
  flex-wrap: wrap;
}

.stat-item {
  text-align: center;
}

.stat-num {
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent-light);
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Section titles */
.section-title {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-title::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 22px;
  background: var(--accent);
  border-radius: 2px;
}

/* Game grid */
.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
  margin-bottom: 48px;
}

.game-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  cursor: pointer;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

.game-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.15);
}

.game-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), #a855f7);
  opacity: 0;
  transition: opacity 0.3s;
}

.game-card:hover::before {
  opacity: 1;
}

.game-card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 14px;
}

.game-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.game-card p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 14px;
}

.game-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.game-card-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
}

.badge-active {
  background: rgba(34, 197, 94, 0.12);
  color: var(--success);
}

.badge-expired {
  background: rgba(239, 68, 68, 0.12);
  color: var(--danger);
}

/* Code page */
.code-page-header {
  text-align: center;
  padding: 40px 20px 32px;
}

.code-page-header .game-icon {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto 16px;
}

.code-page-header h1 {
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.code-page-header p {
  color: var(--text-secondary);
  max-width: 500px;
  margin: 0 auto;
}

/* Code list */
.code-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.code-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transition: all 0.2s;
}

.code-item:hover {
  border-color: var(--accent);
}

.code-item.expired {
  opacity: 0.55;
}

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

.code-text {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent-light);
  letter-spacing: 1px;
  margin-bottom: 6px;
  word-break: break-all;
}

.code-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.code-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.code-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  font-family: var(--font-sans);
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-light);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px var(--accent-glow);
}

.btn-secondary {
  background: var(--bg-hover);
  color: var(--text-secondary);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: var(--border);
  color: var(--text-primary);
}

.btn-sm {
  padding: 6px 14px;
  font-size: 0.8rem;
}

.btn-copy.copied {
  background: var(--success);
  color: #fff;
}

/* Status filter */
.filter-bar {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 8px 18px;
  border-radius: 50px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-secondary);
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s;
  font-family: var(--font-sans);
}

.filter-btn:hover {
  border-color: var(--accent);
  color: var(--text-primary);
}

.filter-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* Tool page */
.tool-container {
  max-width: 800px;
  margin: 0 auto;
}

.tool-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin-bottom: 24px;
}

.tool-card h2 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.form-group select {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 0.95rem;
  outline: none;
  cursor: pointer;
  font-family: var(--font-sans);
}

.form-group select:focus {
  border-color: var(--accent);
}

.result-box {
  background: var(--bg-secondary);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-top: 20px;
}

.result-box h3 {
  font-size: 1.1rem;
  margin-bottom: 16px;
  color: var(--success);
}

.result-item {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}

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

.result-item .label {
  color: var(--text-secondary);
}

.result-item .value {
  font-weight: 600;
}

.result-item .value.good { color: var(--success); }
.result-item .value.ok { color: var(--warning); }
.result-item .value.bad { color: var(--danger); }

/* Periodic updates notice */
.update-notice {
  background: rgba(99, 102, 241, 0.08);
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
}

.update-notice .dot {
  width: 8px;
  height: 8px;
  background: var(--success);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

/* Footer */
.site-footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 32px 20px;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--text-secondary);
  font-size: 0.85rem;
}

.footer-links a:hover {
  color: var(--text-primary);
}

.beian-links {
  margin-top: 12px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.beian-links a {
  color: var(--text-muted);
  text-decoration: none;
}

.beian-links a:hover {
  color: var(--text-primary);
  text-decoration: underline;
}

.beian-links img {
  height: 16px;
  vertical-align: middle;
  margin-right: 4px;
  border: 0;
}

/* Toast */
.toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--success);
  color: #fff;
  padding: 12px 24px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.toast.show {
  opacity: 1;
}

/* 404 / empty state */
.empty-state {
  text-align: center;
  padding: 64px 20px;
}

.empty-state .empty-icon {
  font-size: 3rem;
  margin-bottom: 16px;
  opacity: 0.6;
}

.empty-state h2 {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.empty-state p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Breadcrumb */
.breadcrumb {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

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

.breadcrumb .sep {
  color: var(--text-muted);
}

/* Mobile nav toggle */
.mobile-nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 4px;
}

/* Responsive */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 1.6rem;
  }

  .hero p {
    font-size: 0.9rem;
  }

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

  .game-card {
    padding: 16px;
  }

  .game-card h3 {
    font-size: 0.95rem;
  }

  .code-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .code-actions {
    width: 100%;
  }

  .code-actions .btn {
    flex: 1;
    justify-content: center;
  }

  .stats-bar {
    gap: 24px;
  }

  .stat-num {
    font-size: 1.5rem;
  }

  .header-nav {
    display: none;
  }

  .mobile-nav-toggle {
    display: block;
  }

  .header-nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background: var(--bg-secondary);
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    gap: 12px;
  }

  .tool-card {
    padding: 20px;
  }
}

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

  .filter-bar {
    gap: 6px;
  }

  .filter-btn {
    padding: 6px 14px;
    font-size: 0.8rem;
  }
}

/* ============ 表单（输入框 / 文本域） ============ */
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 0.95rem;
  outline: none;
  font-family: var(--font-sans);
  box-sizing: border-box;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group textarea {
  resize: vertical;
  min-height: 110px;
  line-height: 1.6;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.25);
}

.form-group .req {
  color: #ef4444;
  margin-left: 2px;
}

.field-error {
  border-color: #ef4444 !important;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2) !important;
}

.field-msg {
  display: block;
  color: #ef4444;
  font-size: 0.8rem;
  margin-top: 6px;
}

/* 反馈表单布局 */
.feedback-form {
  max-width: 560px;
  margin-top: 12px;
}

.feedback-form .btn {
  margin-top: 4px;
}

/* ============ Toast 错误态 ============ */
.toast.error {
  background: #ef4444;
}

/* ============ 返回顶部 ============ */
.back-to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 46px;
  height: 46px;
  border: none;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  z-index: 900;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.25s, transform 0.25s, visibility 0.25s;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--accent-light);
}

/* ============ 全局焦点可见性（无障碍） ============ */
:focus-visible {
  outline: 2px solid var(--accent-light);
  outline-offset: 2px;
  border-radius: 4px;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
.cat-btn:focus-visible,
.filter-btn:focus-visible {
  outline: 2px solid var(--accent-light);
  outline-offset: 2px;
}

/* ============ 动效降级（无障碍） ============ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* Print */
@media print {
  .site-header, .site-footer, .search-bar, .filter-bar, .code-actions {
    display: none;
  }

  body {
    background: #fff;
    color: #000;
  }
}

/* ============ 内容板块（教程/FAQ/相关） ============ */
.guide-block,
.faq-block,
.related-block,
.editor-note {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  margin-bottom: 24px;
}

.guide-block h2,
.faq-block h2,
.related-block h2,
.editor-note h2 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.guide-block h2::before,
.faq-block h2::before,
.related-block h2::before,
.editor-note h2::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 20px;
  background: var(--accent);
  border-radius: 2px;
}

/* 编辑核验说明：信任信号高亮 */
.editor-note {
  background: linear-gradient(135deg, rgba(99,102,241,0.08), rgba(99,102,241,0.02));
  border-color: rgba(99,102,241,0.35);
}
.editor-note p {
  color: var(--text-secondary);
  line-height: 1.75;
  font-size: 0.95rem;
}

/* 教程步骤 */
.steps {
  list-style: none;
  counter-reset: step;
  margin: 0 0 16px;
}

.steps li {
  position: relative;
  padding: 10px 0 10px 44px;
  border-bottom: 1px dashed var(--border);
  font-size: 0.95rem;
  color: var(--text-primary);
}

.steps li:last-child {
  border-bottom: none;
}

.steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: 8px;
  width: 28px;
  height: 28px;
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
}

.tip {
  background: rgba(99, 102, 241, 0.08);
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* FAQ 手风琴 */
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  background: var(--bg-secondary);
  overflow: hidden;
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 14px 18px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: '+';
  font-size: 1.3rem;
  color: var(--accent-light);
  font-weight: 400;
  transition: transform 0.2s;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-a {
  padding: 0 18px 16px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.8;
}

/* 相关游戏 */
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 14px;
}

.related-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: all 0.2s;
}

.related-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.related-card .rc-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.related-card .rc-text strong {
  display: block;
  font-size: 0.95rem;
  color: var(--text-primary);
}

.related-card .rc-text span {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ============ 攻略文章页 ============ */
.article-body {
  max-width: 760px;
  margin: 0 auto;
}

.article-body h2 {
  font-size: 1.3rem;
  font-weight: 700;
  margin: 32px 0 14px;
  color: var(--text-primary);
}

.article-body h3 {
  font-size: 1.08rem;
  font-weight: 600;
  margin: 22px 0 10px;
  color: var(--text-primary);
}

.article-body p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.9;
  margin-bottom: 14px;
}

.article-body ul,
.article-body ol {
  margin: 0 0 16px 22px;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.9;
}

.article-body li { margin-bottom: 6px; }

.article-body strong { color: var(--text-primary); font-weight: 700; }

.article-body a.inline { color: var(--accent-light); border-bottom: 1px solid rgba(129,140,248,0.4); }

.article-body .callout {
  background: rgba(99, 102, 241, 0.08);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  margin: 18px 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.8;
}

.article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 0.88rem;
}

.article-body th,
.article-body td {
  border: 1px solid var(--border);
  padding: 10px 12px;
  text-align: left;
  color: var(--text-secondary);
}

.article-body th {
  background: var(--bg-secondary);
  color: var(--text-primary);
  font-weight: 600;
}

.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 24px 0;
}

.article-tags a {
  font-size: 0.8rem;
  padding: 5px 14px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 50px;
  color: var(--text-secondary);
}

.article-tags a:hover { border-color: var(--accent); color: var(--text-primary); }

/* 免责声明条 */
.disclaimer-box {
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-top: 16px;
}

/* 相关攻略交叉链接块 */
.related-guides {
  margin: 28px 0 8px;
}
.related-guides h3 {
  font-size: 1.05rem;
  margin: 0 0 12px;
  color: var(--text-primary);
}
.related-guides ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 8px 16px;
}
.related-guides li a {
  display: block;
  padding: 8px 14px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 0.84rem;
  text-decoration: none;
}
.related-guides li a:hover {
  border-color: var(--accent);
  color: var(--text-primary);
}

/* 分类筛选 */
.category-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 28px 0 8px;
}

.cat-btn {
  padding: 8px 22px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 50px;
  color: var(--text-secondary);
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s;
}

.cat-btn:hover { border-color: var(--accent); color: var(--text-primary); }

.cat-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* 分类筛选时隐藏的卡片 */
.game-card.hidden { display: none; }

/* 暂无兑换码提示框 */
.empty-codes-box {
  background: var(--bg-secondary);
  border: 1px dashed var(--border);
  border-radius: var(--radius-md);
  padding: 22px 24px;
  margin: 18px 0;
}

.empty-codes-box h3 {
  font-size: 1.1rem;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.empty-codes-box p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin: 6px 0;
}

.empty-codes-box b { color: var(--accent-light); }

/* 游戏资料信息框（v2 资料库化） */
.game-info-box {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin: 18px 0;
}
.game-info-box h2 {
  font-size: 1.05rem;
  color: var(--text-primary);
  margin-bottom: 14px;
}
.info-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
.info-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
.info-k {
  flex: 0 0 84px;
  color: var(--text-muted);
  font-size: 0.85rem;
}
.info-v {
  color: var(--text-primary);
  font-size: 0.92rem;
  font-weight: 500;
}
.info-v a {
  color: var(--accent-light);
  text-decoration: none;
}
.info-v a:hover { text-decoration: underline; }
.info-v a:first-child { margin-right: 12px; }
.info-note {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-top: 12px;
}
@media (min-width: 640px) {
  .info-grid { grid-template-columns: 1fr 1fr; }
}

/* 单机游戏：购买渠道区块 */
.buy-block {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin: 24px 0;
}

.buy-block h2 { font-size: 1.2rem; color: var(--text-primary); margin-bottom: 14px; }

.buy-block .steps li {
  font-size: 0.92rem;
  color: var(--text-secondary);
  margin: 10px 0;
  line-height: 1.7;
}

.buy-block .steps b { color: var(--text-primary); }

.buy-block .tip {
  margin-top: 14px;
  font-size: 0.85rem;
  color: var(--text-muted);
  background: rgba(34, 197, 94, 0.08);
  border-left: 3px solid var(--accent);
  padding: 10px 14px;
  border-radius: 4px;
}


/* ===== 分类导航（首页 / 分类页） ===== */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px;
  margin-bottom: 36px;
}
.cat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px 24px;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
  text-decoration: none;
}
.cat-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.15);
}
.cat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), #a855f7);
  opacity: 0;
  transition: opacity 0.3s;
}
.cat-card:hover::before { opacity: 1; }
.cat-card h3 {
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}
.cat-card p {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}
.cat-intro {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin: -8px 0 18px;
}
.cat-banner {
  font-size: 0.9rem;
  color: var(--text-secondary);
  background: rgba(99, 102, 241, 0.08);
  border-left: 3px solid var(--accent);
  padding: 10px 14px;
  border-radius: 4px;
  margin-bottom: 16px;
}
.cat-banner a {
  color: var(--accent-light);
  font-weight: 600;
  text-decoration: none;
}
.cat-banner a:hover { text-decoration: underline; }
.cat-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.cat-link-pill {
  display: inline-block;
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: 50px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.25s;
}
.cat-link-pill:hover {
  border-color: var(--accent);
  color: var(--text-primary);
  background: rgba(99, 102, 241, 0.08);
}

/* 游戏页 → 攻略页 推荐区块 */
.guide-rec-block {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px 28px;
  margin-bottom: 24px;
}
.guide-rec-block h2 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.guide-rec-block h2::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 20px;
  background: var(--accent);
  border-radius: 2px;
}
.guide-rec-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* ===== 首页「关于本站」信任区块 ===== */
.about-site-block {
  margin-top: 36px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px 30px;
}
.about-text {
  font-size: 0.95rem;
  line-height: 1.85;
  color: var(--text-secondary);
  margin: 0 0 22px;
}
.about-text strong { color: var(--text-primary); }
.about-tips {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}
.about-tip {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 16px;
  background: rgba(99, 102, 241, 0.05);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
.tip-ico {
  flex: 0 0 auto;
  font-size: 1.2rem;
  line-height: 1.4;
}
.about-tip b { color: var(--text-primary); font-size: 0.9rem; }
.about-tip div div { font-size: 0.82rem; color: var(--text-secondary); line-height: 1.6; margin-top: 2px; }
.faq-block {
  margin-top: 36px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px 30px;
}
.faq-list { display: grid; gap: 14px; margin-top: 18px; }
.faq-item {
  padding: 16px 18px;
  background: rgba(99, 102, 241, 0.05);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
.faq-item h3 { font-size: 1rem; color: var(--text-primary); margin: 0 0 8px; }
.faq-item p { font-size: 0.9rem; line-height: 1.75; color: var(--text-secondary); margin: 0; }
.faq-item a { color: var(--accent, #6366f1); text-decoration: underline; }

/* ===== 分类页：编辑长简介 + 热门精选 ===== */
.cat-editorial {
  margin: 18px 0 26px;
}
.cat-editorial > p:first-child {
  font-size: 0.95rem;
  line-height: 1.9;
  color: var(--text-secondary);
  margin: 0 0 14px;
}
.hl-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 14px;
  margin: 8px 0 32px;
}
.hl-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  text-decoration: none;
  transition: all 0.25s;
  border-left: 3px solid var(--accent);
}
.hl-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(99, 102, 241, 0.15);
  border-color: var(--accent);
}
.hl-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}
.hl-reason {
  font-size: 0.82rem;
  line-height: 1.6;
  color: var(--text-secondary);
}
