/* ========== 游戏攻略站 - 深色科技风 ========== */
:root {
  --bg-primary: #0a0e17;
  --bg-secondary: #111827;
  --bg-card: #1a2234;
  --bg-card-hover: #222d42;
  --border: #2a3548;
  --border-light: #374151;
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --accent-cyan: #00d4ff;
  --accent-purple: #a855f7;
  --accent-orange: #ff6b35;
  --accent-green: #10b981;
  --accent-red: #ef4444;
  --accent-yellow: #fbbf24;
  --gradient-main: linear-gradient(135deg, #00d4ff 0%, #a855f7 100%);
  --gradient-orange: linear-gradient(135deg, #ff6b35 0%, #fbbf24 100%);
  --shadow-glow: 0 0 20px rgba(0, 212, 255, 0.3);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }

/* 背景装饰 */
body::before {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background:
    radial-gradient(ellipse at 20% 0%, rgba(0, 212, 255, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 100%, rgba(168, 85, 247, 0.08) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

/* 顶部导航 */
.header {
  background: rgba(10, 14, 23, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 100;
}
.header-inner {
  max-width: 1400px; margin: 0 auto; padding: 14px 24px;
  display: flex; align-items: center; gap: 24px;
}
.logo { display: flex; align-items: center; gap: 10px; font-size: 22px; font-weight: 800; }
.logo-icon {
  width: 40px; height: 40px; background: var(--gradient-main);
  border-radius: 10px; display: flex; align-items: center; justify-content: center;
  font-size: 22px; box-shadow: var(--shadow-glow);
}
.logo-text {
  background: var(--gradient-main);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.search-box { flex: 1; max-width: 500px; position: relative; }
.search-box input {
  width: 100%; padding: 10px 16px 10px 42px;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 8px; color: var(--text-primary); font-size: 14px;
  outline: none; transition: all .2s;
}
.search-box input:focus { border-color: var(--accent-cyan); box-shadow: 0 0 0 3px rgba(0,212,255,0.1); }
.search-icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); font-size: 16px; }
.header-nav { display: flex; gap: 16px; }
.header-nav a {
  color: var(--text-secondary); font-size: 14px; padding: 6px 12px;
  border-radius: 6px; transition: all .2s;
}
.header-nav a:hover { color: var(--accent-cyan); background: rgba(0,212,255,0.1); }

.container { max-width: 1400px; margin: 0 auto; padding: 24px; position: relative; z-index: 1; }

/* Hero区 */
.hero {
  background: linear-gradient(135deg, rgba(10,22,40,0.7) 0%, rgba(26,10,46,0.7) 50%, rgba(13,31,60,0.7) 100%);
  border: 1px solid rgba(0,212,255,0.3);
  border-radius: var(--radius-lg);
  padding: 24px 40px; text-align: center; margin-bottom: 20px;
  position: relative; overflow: hidden;
  max-width: 100%;
}
.hero-bg {
  position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background-image: url('https://aka.doubaocdn.com/s/riQF3PF4cC');
  background-size: cover;
  background-position: center;
  filter: blur(1px) brightness(0.5);
  pointer-events: none;
}
.hero-bg::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(135deg, rgba(10,22,40,0.5) 0%, rgba(26,10,46,0.5) 50%, rgba(13,31,60,0.5) 100%);
}
.hero-content { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; }
.hero-subtitle { color: #e0e0e0; font-size: 15px; max-width: 900px; margin: 0 auto 18px; line-height: 1.6; text-shadow: 0 2px 8px rgba(0,0,0,0.8); }
.hero-tags { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; width: 100%; max-width: 1100px; }
.hero-tag {
  background: rgba(0,212,255,0.15);
  border: 1px solid rgba(0,212,255,0.4);
  color: #00d4ff;
  padding: 8px 18px; border-radius: 20px;
  font-size: 14px; font-weight: 600;
  transition: all 0.3s;
  flex: 1;
  text-align: center;
  backdrop-filter: blur(4px);
}
.hero-tag:hover {
  background: rgba(0,212,255,0.25);
  transform: translateY(-2px);
}
.hero-stats { display: flex; justify-content: space-between; gap: 20px; margin-top: 4px; width: 100%; max-width: 900px; }
.hero-stat { text-align: center; flex: 1; }
.hero-stat-num { font-size: 30px; font-weight: 900; color: #00d4ff; text-shadow: 0 0 20px rgba(0,212,255,0.6), 0 2px 8px rgba(0,0,0,0.8); }
.hero-stat-label { font-size: 13px; color: #b0b0b0; margin-top: 4px; text-shadow: 0 1px 4px rgba(0,0,0,0.8); }

/* 筛选栏 */
.filter-bar {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px 20px; margin-bottom: 24px;
  display: flex; flex-wrap: wrap; gap: 16px; align-items: center;
}
.filter-group { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.filter-label { font-size: 13px; color: var(--text-muted); font-weight: 600; }
.filter-btn {
  padding: 5px 14px; border-radius: 16px; border: 1px solid var(--border);
  background: transparent; color: var(--text-secondary); font-size: 13px;
  cursor: pointer; transition: all .2s;
}
.filter-btn:hover { border-color: var(--accent-cyan); color: var(--accent-cyan); }
.filter-btn.active {
  background: var(--gradient-main); color: #fff; border-color: transparent;
}

/* 游戏列表 */
.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}
.game-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden; cursor: pointer;
  transition: all .25s;
}
.game-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-cyan);
  box-shadow: 0 8px 24px rgba(0,212,255,0.15);
}
.game-cover {
  width: 100%; aspect-ratio: 16/9;
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
}
.game-cover img {
  width: 100%; height: 100%; object-fit: cover;
  object-position: center;
  transition: transform .3s;
}
.game-card:hover .game-cover img { transform: scale(1.05); }
.game-cover-placeholder {
  width: 100%; height: 100%;
  display: flex; flex-direction: column;
  align-items: center; justify-content: flex-end;
  gap: 6px; padding: 16px; text-align: center;
}
.game-cover-placeholder .cover-icon { font-size: 40px; opacity: 0.9; }
.game-cover-placeholder .cover-name {
  font-size: 13px; font-weight: 700; color: #fff;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
  line-height: 1.3;
}
.game-cover::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 50px;
  background: linear-gradient(transparent, rgba(0,0,0,0.6));
  pointer-events: none;
}
.game-info { padding: 10px 12px; }
.game-name { font-size: 14px; font-weight: 700; margin-bottom: 4px; line-height: 1.3; }
.game-meta { font-size: 11px; color: var(--text-muted); margin-bottom: 6px; }
.game-bottom {
  display: flex; align-items: center; justify-content: space-between;
}
.game-rating {
  font-size: 13px; font-weight: 700;
  padding: 2px 8px; border-radius: 4px;
}
.rating-high { color: var(--accent-green); background: rgba(16,185,129,0.15); }
.rating-mid { color: var(--accent-yellow); background: rgba(251,191,36,0.15); }
.rating-low { color: var(--accent-red); background: rgba(239,68,68,0.15); }
.game-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.game-tag {
  font-size: 10px; padding: 2px 6px; border-radius: 4px;
  background: rgba(0,212,255,0.1); color: var(--accent-cyan);
}

/* 广告位 */
.ad-slot {
  background: rgba(0,212,255,0.03);
  border: 2px dashed rgba(0,212,255,0.15);
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); font-size: 13px;
}
.ad-banner { height: 90px; margin: 24px 0; }
.ad-rectangle { height: 250px; max-width: 300px; margin: 20px auto; }
.ad-inline { height: 80px; margin: 20px 0; }
.ad-side { width: 160px; height: 600px; position: sticky; top: 40px; }
.ad-native {
  height: 90px;
  margin: 20px 0;
  background: rgba(0,212,255,0.05);
  border: 2px dashed rgba(0,212,255,0.2);
  border-radius: 8px;
}

/* 详情页弹窗 */
.modal-overlay {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.85); backdrop-filter: blur(4px);
  z-index: 200; display: none; align-items: flex-start;
  justify-content: center; padding: 40px 20px;
  overflow-y: auto;
  gap: 20px;
}
.modal-overlay.show { display: flex; }
.modal-side-ad {
  display: none;
  flex-shrink: 0;
}
.modal {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  max-width: 860px; width: 100%;
  max-height: 90vh; overflow-y: auto;
  position: relative;
  flex-shrink: 1;
}

/* 宽屏显示两侧广告 */
@media (min-width: 1400px) {
  .modal-side-ad { display: block; }
  .modal { max-width: 820px; }
}
@media (min-width: 1700px) {
  .modal { max-width: 900px; }
}
.modal-close {
  position: absolute; top: 16px; right: 16px;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--bg-card); border: 1px solid var(--border);
  color: var(--text-secondary); font-size: 18px;
  cursor: pointer; z-index: 10;
  display: flex; align-items: center; justify-content: center;
}
.modal-close:hover { background: var(--accent-red); color: #fff; }
.modal-hero {
  height: 320px; position: relative; overflow: hidden;
  background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
}
.modal-hero img {
  width: 100%; height: 100%; object-fit: cover;
  object-position: center 30%;
}
.modal-hero-placeholder {
  width: 100%; height: 100%;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 12px;
}
.modal-hero-placeholder .cover-icon { font-size: 72px; }
.modal-hero-placeholder .cover-name {
  font-size: 24px; font-weight: 800; color: #fff;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}
.modal-hero::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 100px;
  background: linear-gradient(transparent, var(--bg-secondary));
  pointer-events: none;
}
.modal-body { padding: 24px; }
.modal-title { font-size: 28px; font-weight: 800; margin-bottom: 8px; }
.modal-meta {
  display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 20px;
  font-size: 13px; color: var(--text-secondary);
}
.modal-meta span { display: flex; align-items: center; gap: 4px; }
.modal-score {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(16,185,129,0.1); color: var(--accent-green);
  padding: 4px 12px; border-radius: 6px; font-weight: 700;
}

/* 标签页 */
.modal-tabs {
  display: flex; gap: 4px; border-bottom: 1px solid var(--border);
  margin-bottom: 20px; overflow-x: auto;
}
.modal-tab {
  padding: 10px 18px; font-size: 14px; font-weight: 600;
  color: var(--text-secondary); cursor: pointer;
  border-bottom: 2px solid transparent; transition: all .2s;
  white-space: nowrap;
}
.modal-tab:hover { color: var(--text-primary); }
.modal-tab.active { color: var(--accent-cyan); border-bottom-color: var(--accent-cyan); }
.modal-tab-content { display: none; }
.modal-tab-content.active { display: block; }

/* 攻略内容 */
.guide-section { margin-bottom: 24px; }
.guide-section h3 {
  font-size: 18px; font-weight: 700; margin-bottom: 12px;
  color: var(--accent-cyan); display: flex; align-items: center; gap: 8px;
}
.guide-section h4 {
  font-size: 15px; font-weight: 600; margin: 16px 0 8px;
  color: var(--text-primary);
}
.guide-section p { color: var(--text-secondary); margin-bottom: 10px; line-height: 1.8; }
.guide-section ul, .guide-section ol {
  margin-left: 20px; margin-bottom: 12px; color: var(--text-secondary);
}
.guide-section li { margin-bottom: 6px; line-height: 1.7; }
.guide-tip {
  background: rgba(0,212,255,0.08); border-left: 3px solid var(--accent-cyan);
  padding: 12px 16px; border-radius: 0 6px 6px 0; margin: 12px 0;
  font-size: 14px; color: var(--text-secondary);
}
.guide-warning {
  background: rgba(255,107,53,0.08); border-left: 3px solid var(--accent-orange);
  padding: 12px 16px; border-radius: 0 6px 6px 0; margin: 12px 0;
  font-size: 14px; color: var(--text-secondary);
}

/* 彩蛋卡片 */
.easter-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 16px; margin-bottom: 12px;
}
.easter-card h4 { color: var(--accent-yellow); margin-bottom: 6px; }
.easter-card p { color: var(--text-secondary); font-size: 14px; }

/* 页脚 */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  margin-top: 40px; padding: 32px 0; text-align: center;
}
.footer-links { margin-bottom: 16px; }
.footer-links a { color: var(--text-secondary); font-size: 13px; margin: 0 12px; }
.footer-copy { font-size: 12px; color: var(--text-muted); line-height: 1.8; }

/* 分页 */
.pagination {
  display: flex; justify-content: center; gap: 8px; margin-top: 32px;
}
.page-btn {
  width: 36px; height: 36px; border-radius: 6px;
  border: 1px solid var(--border); background: var(--bg-card);
  color: var(--text-secondary); cursor: pointer; font-size: 14px;
  display: flex; align-items: center; justify-content: center;
}
.page-btn:hover { border-color: var(--accent-cyan); color: var(--accent-cyan); }
.page-btn.active { background: var(--gradient-main); color: #fff; border-color: transparent; }

/* 回到顶部按钮 */
.back-to-top {
  position: fixed; bottom: 30px; right: 30px;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--gradient-main); color: #fff;
  border: none; font-size: 22px; font-weight: 700;
  cursor: pointer; z-index: 99;
  box-shadow: 0 4px 16px rgba(0,212,255,0.4);
  opacity: 0; visibility: hidden;
  transition: all .3s;
}
.back-to-top.show { opacity: 1; visibility: visible; }
.back-to-top:hover { transform: translateY(-3px); box-shadow: 0 6px 20px rgba(0,212,255,0.6); }

/* 响应式 */
@media (max-width: 768px) {
  .hero { padding: 20px 16px; }
  .hero-subtitle { font-size: 13px; }
  .hero-stats { gap: 16px; }
  .hero-stat-num { font-size: 18px; }
  .hero-tags { gap: 6px; }
  .hero-tag { font-size: 11px; padding: 4px 10px; }
  .header-nav { display: none; }
  .game-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .game-cover { height: 100px; font-size: 36px; }
  .modal-title { font-size: 22px; }
}
