/* ========================================
   游戏攻略网站 - 主样式表
   白色简洁主题 · 响应式设计
   ======================================== */

/* ==================== CSS变量 ==================== */
:root {
  /* 主色调 */
  --primary: #6366f1;
  --primary-dark: #4f46e5;
  --primary-light: #818cf8;
  --primary-glow: rgba(99, 102, 241, 0.15);

  /* 强调色 */
  --accent: #f59e0b;
  --accent-dark: #d97706;
  --success: #10b981;
  --danger: #ef4444;
  --info: #3b82f6;

  /* 背景 */
  --bg-primary: #ffffff;
  --bg-secondary: #f5f5f7;
  --bg-card: #ffffff;
  --bg-card-hover: #f8f8fc;
  --bg-surface: #eef0f6;

  /* 文字 */
  --text-primary: #1a1a2e;
  --text-secondary: #555770;
  --text-muted: #9090a0;
  --text-inverse: #ffffff;

  /* 边框 */
  --border: #e5e5ee;
  --border-light: #d5d5de;

  /* 阴影 */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.1);
  --shadow-glow: 0 0 20px var(--primary-glow);

  /* 圆角 */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  /* 布局 */
  --max-width: 1200px;
  --header-height: 64px;
  --sidebar-width: 220px;

  /* 动画 */
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==================== Reset ==================== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC',
    'Hiragino Sans GB', 'Microsoft YaHei', 'Helvetica Neue', Arial, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

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

ul, ol {
  list-style: none;
}

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

button {
  cursor: pointer;
  font-family: inherit;
  border: none;
  outline: none;
}

input {
  font-family: inherit;
  outline: none;
  border: none;
}

/* ==================== 容器 ==================== */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* ==================== 顶部导航 ==================== */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  height: var(--header-height);
}

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

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  flex-shrink: 0;
}

.logo-icon {
  width: 36px;
  height: 36px;
  background: var(--primary);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.logo-text {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* 导航菜单 */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: all var(--transition);
  white-space: nowrap;
}

.nav-link:hover {
  color: var(--text-primary);
  background: rgba(99, 102, 241, 0.06);
}

.nav-link.active {
  color: var(--primary);
  background: rgba(99, 102, 241, 0.08);
  font-weight: 600;
}

/* 导航分隔符 */
.nav-sep {
  width: 1px;
  height: 20px;
  background: var(--border);
  margin: 0 4px;
}

/* 搜索框 */
.search-box {
  display: flex;
  align-items: center;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all var(--transition);
  max-width: 280px;
}

.search-box:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

.search-box input {
  width: 100%;
  padding: 8px 14px;
  background: transparent;
  color: var(--text-primary);
  font-size: 0.9rem;
}

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

.search-box button {
  padding: 8px 14px;
  background: transparent;
  color: var(--text-secondary);
  font-size: 1rem;
  transition: color var(--transition);
}

.search-box button:hover {
  color: var(--primary);
}

/* 移动端菜单按钮 */
.mobile-menu-btn {
  display: none;
  background: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  padding: 8px;
}

/* ==================== Hero轮播 ==================== */
.hero {
  position: relative;
  height: 420px;
  overflow: hidden;
}

.hero-slider {
  position: relative;
  height: 100%;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s ease;
  display: flex;
  align-items: center;
}

.hero-slide.active {
  opacity: 1;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.gradient-0 {
  background: linear-gradient(135deg, #f5f0ff 0%, #e8e0ff 30%, #f0eeff 70%);
}

.gradient-1 {
  background: linear-gradient(135deg, #f0faf5 0%, #d8f5e5 30%, #f0f5ff 70%);
}

.gradient-2 {
  background: linear-gradient(135deg, #fff8f0 0%, #ffe8d0 30%, #faf5f0 70%);
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(99, 102, 241, 0.06) 0%, transparent 70%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}

.hero-tag {
  display: inline-block;
  padding: 4px 14px;
  background: var(--primary);
  color: white;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 16px;
}

.hero-content h2 {
  font-size: 2.8rem;
  font-weight: 800;
  margin-bottom: 12px;
  letter-spacing: -1px;
  line-height: 1.2;
  color: var(--text-primary);
}

.hero-content p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.hero-dots {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 2;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(99, 102, 241, 0.2);
  cursor: pointer;
  transition: all var(--transition);
}

.dot.active {
  background: var(--primary);
  width: 28px;
  border-radius: 6px;
}

/* ==================== 按钮 ==================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  transition: all var(--transition);
}

.btn-primary {
  background: var(--primary);
  color: white;
}

.btn-primary:hover {
  background: var(--primary-dark);
  box-shadow: var(--shadow-glow);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 1.5px solid var(--primary);
  text-decoration: none;
}

.btn-outline:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-1px);
}

/* 攻略详情页操作按钮区 */
.guide-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

/* 攻略卡片内游戏名可点击 */
.guide-game-name[data-nav] {
  color: var(--primary);
  font-weight: 600;
}

.guide-game-name[data-nav]:hover {
  text-decoration: underline;
}

/* ==================== 区块标题 ==================== */
.section {
  padding: 60px 0;
}

.section-alt {
  background: var(--bg-secondary);
}

.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 32px;
}

.section-title {
  font-size: 1.5rem;
  font-weight: 700;
  position: relative;
  padding-left: 16px;
}

.section-title::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 24px;
  background: var(--primary);
  border-radius: 2px;
}

.section-sub {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.section-more {
  font-size: 0.9rem;
  color: var(--primary);
  transition: color var(--transition);
}

.section-more:hover {
  color: var(--accent);
}

.section-sub-block {
  margin-bottom: 40px;
}

/* ==================== 大分类卡片（首页单机/网游入口） ==================== */
.main-category-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.main-cat-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  cursor: pointer;
  transition: all var(--transition);
  border: 1px solid var(--border);
  min-height: 200px;
  display: flex;
  align-items: flex-end;
}

.main-cat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-light);
}

.main-cat-card.offline {
  background: linear-gradient(135deg, #f5f0ff 0%, #e8e0ff 100%);
}

.main-cat-card.online {
  background: linear-gradient(135deg, #f0f7ff 0%, #d8ecff 100%);
}

.main-cat-icon {
  font-size: 5rem;
  position: absolute;
  top: 20px;
  right: 30px;
  opacity: 0.2;
  transform: rotate(12deg);
}

.main-cat-card:hover .main-cat-icon {
  transform: rotate(0deg) scale(1.1);
  opacity: 0.3;
  transition: all 0.4s ease;
}

.main-cat-info h3 {
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 6px;
  color: var(--text-primary);
}

.main-cat-info p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 2px;
}

.main-cat-count {
  font-size: 0.85rem;
  color: var(--primary);
  font-weight: 600;
  margin-top: 4px;
}

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

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

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

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

.game-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-light);
  background: var(--bg-card-hover);
}

.game-card-cover {
  height: 140px;
  background: linear-gradient(135deg, var(--bg-surface) 0%, #e8eaf6 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.game-card-cover::after {
  content: none;
}

.cover-placeholder {
  font-size: 3rem;
  opacity: 0.25;
  transition: all var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 游戏卡片封面图 */
.game-cover-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

/* 游戏详情页封面图 */
.game-detail-cover {
  width: 120px;
  height: 160px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
  box-shadow: var(--shadow-md);
}

.game-card:hover .cover-placeholder {
  opacity: 0.4;
  transform: scale(1.1);
}

.game-rating {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 4px 10px;
  background: rgba(255, 255, 255, 0.85);
  color: var(--accent-dark);
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 700;
  backdrop-filter: blur(4px);
  z-index: 2;
}

.game-card-body {
  padding: 16px;
}

.game-card-body h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.game-card-body p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 12px;
  line-height: 1.5;
}

.game-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.guide-count {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.card-arrow {
  color: var(--primary);
  transition: transform var(--transition);
}

.game-card:hover .card-arrow {
  transform: translateX(4px);
}

/* 游戏卡片上的主分类标签 */
.game-main-cat {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 600;
  z-index: 2;
}

.game-main-cat.offline {
  background: rgba(99, 102, 241, 0.12);
  color: var(--primary);
}

.game-main-cat.online {
  background: rgba(59, 130, 246, 0.12);
  color: var(--info);
}

/* ==================== 攻略列表 ==================== */
.guide-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.guide-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  cursor: pointer;
  transition: all var(--transition);
  border: 1px solid var(--border);
}

.guide-card:hover {
  border-color: var(--primary-light);
  background: var(--bg-card-hover);
  transform: translateX(4px);
}

.guide-card-content h4 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 8px;
  line-height: 1.4;
}

.guide-card-content > p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.guide-card-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.guide-game-name {
  font-size: 0.78rem;
  color: var(--text-muted);
  padding: 2px 10px;
  background: rgba(99, 102, 241, 0.06);
  border-radius: 12px;
}

.guide-card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* 攻略分类标签 */
.guide-category-badge {
  display: inline-block;
  padding: 3px 10px;
  background: rgba(99, 102, 241, 0.08);
  color: var(--primary);
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
}

.guide-category-badge.small {
  font-size: 0.7rem;
  padding: 2px 8px;
}

/* 难度标签 */
.difficulty {
  font-weight: 600;
}

.difficulty-简单 { color: var(--success); }
.difficulty-普通 { color: var(--accent); }
.difficulty-困难 { color: var(--danger); }
.difficulty-入门 { color: var(--info); }
.difficulty-资料 { color: var(--primary); }

/* ==================== 互动地图容器 ==================== */
.gc-map-wrap {
  margin: 16px 0;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}
@media (max-width: 768px) {
  .gc-map-wrap { padding-bottom: 150% !important; }
}

/* ==================== 页面头部 ==================== */
.page-header {
  padding: 40px 0 32px;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
}

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

.breadcrumb a,
.breadcrumb .breadcrumb-link {
  color: var(--text-secondary);
  transition: color var(--transition);
  cursor: pointer;
}

.breadcrumb a:hover,
.breadcrumb .breadcrumb-link:hover {
  color: var(--primary);
}

.page-header h2 {
  font-size: 2rem;
  font-weight: 800;
}

.page-header > .container > p {
  margin-top: 8px;
  color: var(--text-secondary);
}

/* ==================== 分类侧边栏布局 ==================== */
.category-sidebar-layout {
  display: flex;
  gap: 32px;
}

.category-sidebar {
  width: var(--sidebar-width);
  flex-shrink: 0;
}

.category-sidebar h4 {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 12px;
  padding-left: 8px;
}

.category-nav li {
  margin-bottom: 2px;
}

.category-nav .cat-link {
  display: block;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: all var(--transition);
  cursor: pointer;
}

.category-nav .cat-link:hover {
  background: rgba(99, 102, 241, 0.04);
  color: var(--text-primary);
}

.category-nav li.active .cat-link {
  background: rgba(99, 102, 241, 0.08);
  color: var(--primary);
  font-weight: 600;
}

.category-main {
  flex: 1;
  min-width: 0;
}

/* ==================== 游戏详情页 ==================== */
.game-header {
  padding: 32px 0;
}

.game-info-bar {
  margin-top: 16px;
}

.game-info-main {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.game-cover-placeholder {
  width: 100px;
  height: 100px;
  background: var(--bg-surface);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  flex-shrink: 0;
  border: 1px solid var(--border);
}

.game-info-main > div > h2 {
  font-size: 1.8rem;
  margin-bottom: 8px;
}

.game-info-main > div > p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 12px;
  max-width: 600px;
}

.game-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.meta-stars {
  color: var(--accent-dark);
  font-weight: 700;
  font-size: 0.95rem;
}

.meta-count {
  color: var(--text-secondary);
  font-size: 0.85rem;
}

.meta-tag {
  padding: 3px 10px;
  background: rgba(99, 102, 241, 0.06);
  color: var(--primary);
  border-radius: 12px;
  font-size: 0.78rem;
}

/* ==================== 攻略详情页 ==================== */
.guide-detail {
  padding: 32px 0 60px;
}

.guide-header {
  margin: 24px 0 32px;
}

.guide-header .guide-category-badge {
  margin-bottom: 12px;
  font-size: 0.8rem;
}

.guide-header h1 {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 16px;
}

.guide-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  font-size: 0.85rem;
  color: var(--text-muted);
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.guide-game-link {
  margin-top: 16px;
  padding: 12px 16px;
  background: var(--bg-secondary);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.guide-game-link a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
}

.guide-game-link a:hover {
  text-decoration: underline;
  color: var(--primary-dark);
}

.guide-body {
  margin: 32px 0;
}

/* ========== 广告位 ========== */
.ad-slot {
  margin: 28px 0;
  padding: 16px;
  background: var(--bg-secondary);
  border: 1px dashed var(--border);
  border-radius: var(--radius-lg);
  text-align: center;
  min-height: 90px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.ad-slot-label {
  font-size: 0.75rem;
  color: var(--text-tertiary);
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  user-select: none;
}

.ad-slot-inner {
  width: 100%;
}

.ad-slot-inner iframe,
.ad-slot-inner img,
.ad-slot-inner ins {
  max-width: 100%;
}

/* 顶部Banner */
#ad-top {
  min-height: 90px;
}

/* 内容底部 */
#ad-bottom {
  min-height: 90px;
}

/* 分页导航下方 */
#ad-mid {
  min-height: 90px;
}

/* ========== 购买游戏区块 ========== */
.buy-section {
  margin: 32px 0;
  padding: 28px;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  border-radius: var(--radius-xl);
  border: 1px solid rgba(99, 102, 241, 0.3);
}

.buy-section-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.buy-section-icon {
  font-size: 1.5rem;
}

.buy-section-header h3 {
  font-size: 1.15rem;
  color: #fff;
  margin: 0;
}

.buy-section-sub {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
  margin-bottom: 20px;
}

.buy-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}

.buy-link-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  color: #fff;
  text-decoration: none;
  transition: all 0.2s;
}

.buy-link-card:hover {
  background: rgba(255,255,255,0.12);
  border-color: var(--accent);
  transform: translateY(-2px);
}

.buy-link-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
}

.buy-link-platform {
  font-weight: 600;
  font-size: 0.95rem;
  flex: 1;
}

.buy-link-arrow {
  font-size: 0.85rem;
  color: var(--accent);
  white-space: nowrap;
}

.guide-placeholder {
  text-align: center;
  padding: 60px 20px;
  background: var(--bg-secondary);
  border-radius: var(--radius-lg);
  border: 1px dashed var(--border);
}

.placeholder-icon {
  font-size: 4rem;
  margin-bottom: 16px;
}

.guide-placeholder h3 {
  font-size: 1.3rem;
  margin-bottom: 12px;
}

.guide-placeholder p {
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.guide-placeholder ul {
  display: inline-block;
  text-align: left;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.guide-placeholder ul li {
  padding: 6px 0;
  position: relative;
  padding-left: 20px;
}

.guide-placeholder ul li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--primary);
}

.guide-related {
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.guide-related h3 {
  font-size: 1.2rem;
  margin-bottom: 20px;
}

/* ==================== 空状态 ==================== */
.empty-state {
  text-align: center;
  padding: 60px 20px;
}

.empty-icon {
  font-size: 3rem;
  display: block;
  margin-bottom: 16px;
}

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

.empty-hint {
  font-size: 0.85rem !important;
  margin-top: 8px;
  color: var(--text-muted) !important;
}

/* ==================== 页脚 ==================== */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 48px 0 24px;
  margin-top: 60px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand .logo {
  margin-bottom: 12px;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.footer-col h4 {
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  color: var(--text-muted);
  font-size: 0.85rem;
  transition: color var(--transition);
}

.footer-col ul li a:hover {
  color: var(--primary);
}

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--text-muted);
  font-size: 0.8rem;
}

/* ==================== 攻略正文样式 ==================== */
.gc-intro {
  background: linear-gradient(135deg, rgba(99,102,241,0.06), rgba(99,102,241,0.02));
  border-left: 4px solid var(--primary);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 20px 24px;
  margin-bottom: 32px;
}
.gc-intro p {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-secondary);
  margin: 0;
}
.gc-section,
.gc-boss,
.gc-tips {
  margin-bottom: 36px;
}
.gc-step {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px dashed var(--border);
}
.gc-step-num {
  flex-shrink: 0;
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  background: var(--primary);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  border-radius: 50%;
  margin-top: 2px;
}
.gc-step p {
  flex: 1;
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-primary);
  margin: 0;
}
.gc-section-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
  padding-bottom: 10px;
  border-bottom: 2px solid var(--border);
  margin-bottom: 16px;
}
.gc-boss-title {
  color: #c0392b;
  border-bottom-color: rgba(192,57,43,0.3);
}
.gc-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.gc-list li {
  padding: 12px 16px;
  background: var(--bg-secondary);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  color: var(--text-secondary);
  border-left: 3px solid var(--border);
  line-height: 1.6;
}
.gc-tips-list li {
  border-left-color: #f39c12;
  background: rgba(243,156,18,0.04);
}
.gc-boss-phases {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}
.gc-phase {
  padding: 16px;
  background: rgba(192,57,43,0.04);
  border: 1px solid rgba(192,57,43,0.15);
  border-radius: var(--radius-sm);
}
.gc-phase-badge {
  display: inline-block;
  background: #c0392b;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 8px;
}
.gc-phase p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
}
.gc-rewards {
  padding: 14px 16px;
  background: rgba(39,174,96,0.06);
  border: 1px solid rgba(39,174,96,0.2);
  border-radius: var(--radius-sm);
}
.gc-rewards-label {
  font-weight: 700;
  color: #27ae60;
  font-size: 0.9rem;
  display: block;
  margin-bottom: 6px;
}
.gc-rewards p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

/* ==================== 回到顶部 ==================== */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 44px;
  height: 44px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all var(--transition);
  box-shadow: var(--shadow-md);
  z-index: 999;
}

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

.back-to-top:hover {
  background: var(--primary-dark);
  box-shadow: var(--shadow-glow);
  transform: translateY(-2px);
}

/* ==================== 响应式 ==================== */
@media (max-width: 1024px) {
  .game-grid-3,
  .game-grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .main-category-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 56px;
  }

  .mobile-menu-btn {
    display: block;
  }

  .nav-menu {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: stretch;
    padding: 20px;
    gap: 12px;
    transform: translateX(100%);
    transition: transform var(--transition);
    z-index: 999;
  }

  .nav-menu.open {
    transform: translateX(0);
  }

  .nav-links {
    flex-direction: column;
    align-items: stretch;
  }

  .nav-link {
    padding: 12px 16px;
    font-size: 1rem;
  }

  .nav-sep {
    display: none;
  }

  .header .search-box {
    display: none;
  }

  .hero {
    height: 320px;
  }

  .hero-content h2 {
    font-size: 1.8rem;
  }

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

  .game-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

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

  .main-category-grid {
    grid-template-columns: 1fr;
  }

  .category-sidebar-layout {
    flex-direction: column;
  }

  .category-sidebar {
    width: 100%;
  }

  .category-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
  }

  .category-nav li {
    margin-bottom: 0;
  }

  .category-nav a {
    padding: 6px 14px;
    font-size: 0.85rem;
  }

  .game-info-main {
    flex-direction: column;
    align-items: flex-start;
  }

  .game-cover-placeholder {
    width: 80px;
    height: 80px;
    font-size: 2rem;
  }

  .guide-meta {
    gap: 12px;
  }

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

  .back-to-top {
    bottom: 20px;
    right: 20px;
  }
}

@media (max-width: 480px) {
  .hero {
    height: 260px;
  }

  .hero-content h2 {
    font-size: 1.4rem;
  }

  .hero-content p {
    font-size: 0.85rem;
  }

  .game-grid,
  .game-grid-3,
  .game-grid-4 {
    grid-template-columns: 1fr;
  }

  .guide-card {
    padding: 16px;
  }

  .guide-card-meta {
    gap: 10px;
  }

  .section {
    padding: 40px 0;
  }

  .page-header h2 {
    font-size: 1.5rem;
  }
}

/* ==================== 动画工具类 ==================== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-in {
  animation: fadeInUp 0.4s ease forwards;
}

/* ==================== 攻略正文图片 ==================== */
.gc-figure {
  margin: 28px 0;
  text-align: center;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}
.gc-img {
  display: block;
  max-width: 100%;
  width: auto;
  height: auto;
  margin: 0 auto;
  cursor: zoom-in;
  transition: opacity 0.2s;
}
.gc-img:hover {
  opacity: 0.92;
}
.gc-caption {
  padding: 10px 16px;
  font-size: 0.85rem;
  color: var(--text-muted);
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
}

/* ==================== 图片灯箱 ==================== */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.88);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
  animation: lbFadeIn 0.2s ease;
}
.lightbox-overlay.closing {
  animation: lbFadeOut 0.2s ease forwards;
}
.lightbox-img {
  max-width: 94vw;
  max-height: 92vh;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.5);
}
@keyframes lbFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes lbFadeOut {
  from { opacity: 1; }
  to   { opacity: 0; }
}

/* ==================== 攻略分页导航（网格布局） ==================== */
.page-nav-section {
  margin-bottom: 28px;
}
.page-nav-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 14px;
  padding-left: 4px;
  border-left: 3px solid var(--primary);
  padding: 4px 0 4px 12px;
}
.page-nav-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.page-nav-item {
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-primary);
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s;
  line-height: 1.4;
}
.page-nav-item:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-glow);
}
.page-nav-item.active {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-glow);
  font-weight: 600;
  box-shadow: 0 0 0 1px var(--primary) inset;
}
@media (max-width: 640px) {
  .page-nav-grid {
    grid-template-columns: 1fr;
  }
}
.page-content-wrapper { position: relative; }
.page-panel { display: none; }
.page-panel.active { display: block; animation: pageFadeIn 0.25s ease; }
@keyframes pageFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* 底部分页导航 */
.page-bottom-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 32px;
  padding: 20px 0 8px;
  border-top: 1px solid var(--border);
}
.page-bottom-btn {
  padding: 8px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-primary);
  color: var(--text-secondary);
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
}
.page-bottom-btn:hover:not(:disabled) {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-glow);
}
.page-bottom-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}
.page-bottom-numbers {
  display: flex;
  gap: 6px;
}
.page-bottom-num {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-primary);
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}
.page-bottom-num:hover {
  border-color: var(--primary);
  color: var(--primary);
}
.page-bottom-num.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}
.page-bottom-info {
  font-size: 13px;
  color: var(--text-muted);
  margin-left: 8px;
}

@media (max-width: 640px) {
  .page-bottom-nav {
    flex-wrap: wrap;
    gap: 8px;
  }
  .page-bottom-info {
    width: 100%;
    text-align: center;
    margin-left: 0;
  }
}
