/* 贰周目Hub 霓虹双色主题 */
@font-face { font-family: 'Smiley Sans'; src: url('fonts/SmileySans.woff2') format('woff2'); font-display: swap; }
@font-face { font-family: 'Bungee'; src: url('fonts/Bungee.woff2') format('woff2'); font-display: swap; }
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg: #0a0e17;
  --bg-2: #111827;
  --card-bg: #151e2e;
  --card-bg-hover: #1a2538;
  --primary: #8b5cf6;
  --primary-light: #22d3ee;
  --accent: #22d3ee;
  --danger: #f43f5e;
  --text: #e5e7eb;
  --text-muted: #94a3b8;
  --border: #233047;
  --radius: 14px;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  --glow: 0 0 24px rgba(34, 211, 238, 0.35);
}

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

.container { max-width: 1600px; margin: 0 auto; padding: 0 24px; }

/* 顶部渐变装饰线 */
.site-header {
  background: rgba(17, 24, 39, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 84px;
  position: relative;
}
.logo {
  position: absolute;
  left: 8px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text);
}
.logo-img { height: 74px; width: auto; display: block; }
.logo-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #0a0e17;
  font-family: 'Bungee', sans-serif;
  font-weight: 700;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--glow);
}
.logo-icon-img {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  object-fit: cover;
  object-position: center 30%;
  box-shadow: var(--glow);
}
.logo-text {
  font-size: 24px;
  font-weight: 700;
  font-family: 'Smiley Sans', sans-serif;
  background: linear-gradient(100deg, #a855f7 0%, #22d3ee 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.logo-text .logo-hub {
  font-family: 'Bungee', sans-serif;
  font-weight: 400;
  background: none;
  -webkit-background-clip: initial;
  background-clip: initial;
  -webkit-text-fill-color: #22d3ee;
  color: #22d3ee;
  text-shadow: 0 0 14px rgba(34, 211, 238, 0.6);
  margin-left: 5px;
  font-size: 22px;
}
.main-nav {
  display: flex;
  gap: 6px;
  flex-wrap: nowrap;
  justify-content: center;
  grid-column: 2;
  align-self: center;
}
.main-nav a {
  text-decoration: none;
  color: var(--text-muted);
  padding: 8px 8px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 500;
  justify-content: center;
  display: flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  transition: all 0.25s;
}
.main-nav a .nav-ico {
  font-size: 16px;
  line-height: 1;
  display: inline-block;
}
.main-nav a:hover { color: #fff; background: rgba(99, 102, 241, 0.15); transform: translateY(-1px); }
.main-nav a.active {
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  box-shadow: var(--glow);
}

/* ===== Hero 区（首页大搜索） ===== */
.hero {
  position: relative;
  padding: 70px 0 60px;
  text-align: center;
  background:
    radial-gradient(ellipse 80% 60% at 50% -10%, rgba(99, 102, 241, 0.25), transparent),
    radial-gradient(ellipse 50% 40% at 85% 20%, rgba(34, 211, 238, 0.12), transparent),
    linear-gradient(180deg, #0d1322 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--border);
}
.hero h1 {
  font-size: 44px;
  font-weight: 800;
  letter-spacing: 1px;
  margin-bottom: 10px;
  background: linear-gradient(90deg, #fff 20%, var(--accent) 80%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero p {
  color: var(--text-muted);
  font-size: 17px;
  margin-bottom: 32px;
}
.hero-search {
  position: relative; /* 下拉面板定位锚点 */
  max-width: 580px;
  width: 90%;
  margin: 0 auto;
  display: flex;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 50px;
  padding: 5px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
  transition: border-color 0.3s, box-shadow 0.3s;
}
.hero-search:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.25), 0 8px 30px rgba(0, 0, 0, 0.5);
}
.hero-search input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  color: var(--text);
  font-size: 15px;
  padding: 11px 18px;
}
.hero-search input::placeholder { color: #64748b; }
.hero-search button {
  border: none;
  cursor: pointer;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  padding: 0 22px;
  border-radius: 50px;
  transition: all 0.25s;
}
.hero-search button:hover { filter: brightness(1.15); box-shadow: var(--glow); }
.hero-tags {
  margin-top: 14px;
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}
.hero-tags a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-size: 12px;
  padding: 5px 12px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(10, 14, 23, 0.4);
  transition: all 0.25s;
  backdrop-filter: blur(4px);
}
.hero-tags a:hover { color: #fff; background: rgba(99, 102, 241, 0.6); border-color: transparent; }

/* 区块 */
.page { padding: 40px 24px 60px; }
section.container { padding: 36px 24px; }
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 26px;
  flex-wrap: wrap;
  gap: 10px;
}
.page-title {
  font-size: 26px;
  font-weight: 700;
  position: relative;
  padding-left: 16px;
}
.page-title::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 5px;
  height: 24px;
  border-radius: 3px;
  background: linear-gradient(180deg, var(--primary), var(--accent));
  box-shadow: 0 0 12px rgba(99, 102, 241, 0.6);
}
.section-sub { font-size: 14px; color: var(--text-muted); }
.more-link {
  color: var(--accent);
  text-decoration: none;
  font-size: 15px;
  transition: all 0.25s;
}
.more-link:hover { text-shadow: 0 0 12px rgba(34, 211, 238, 0.6); }

/* 游戏卡片网格 */
.game-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 22px;
}
.game-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}
.game-card:hover {
  transform: translateY(-6px);
  border-color: rgba(99, 102, 241, 0.6);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.55), 0 0 20px rgba(99, 102, 241, 0.15);
}
.game-thumb {
  height: 148px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
  background: #0d1424;
}
.game-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s;
}
.game-card:hover .game-thumb img { transform: scale(1.06); }
.game-thumb .thumb-fallback {
  font-size: 46px;
  font-weight: 800;
  letter-spacing: 2px;
  color: rgba(255, 255, 255, 0.75);
}
.game-thumb .play-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: linear-gradient(135deg, #10b981, #22d3ee);
  color: #fff;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 6px;
  font-weight: bold;
  z-index: 2;
}
.game-thumb .cheat-tag {
  position: absolute;
  top: 8px;
  right: 8px;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #fff;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 6px;
  font-weight: bold;
  z-index: 2;
  box-shadow: 0 2px 8px rgba(217, 119, 6, 0.45);
}
.game-info { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 9px; flex: 1; }
.game-info h3 {
  font-size: 17px;
  font-weight: 600;
  line-height: 1.4;
  transition: color 0.25s;
}
.game-card:hover .game-info h3 { color: #fff; }
.game-desc {
  font-size: 14px;
  color: var(--text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}
.game-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag {
  font-size: 13px;
  padding: 3px 12px;
  border-radius: 20px;
  background: rgba(99, 102, 241, 0.12);
  color: #a5b4fc;
  border: 1px solid rgba(99, 102, 241, 0.25);
}
.tag.hot { background: rgba(244, 63, 94, 0.12); color: #fda4af; border-color: rgba(244, 63, 94, 0.3); }
.tag.new { background: rgba(34, 211, 238, 0.12); color: #67e8f9; border-color: rgba(34, 211, 238, 0.3); }
.game-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  padding-top: 11px;
}
.meta-views { display: flex; align-items: center; gap: 4px; }

/* 筛选栏 */
.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 26px; }
.filter-btn {
  padding: 9px 20px;
  border-radius: 24px;
  border: 1px solid var(--border);
  background: var(--card-bg);
  color: var(--text-muted);
  font-size: 14px;
  cursor: pointer;
  transition: all 0.25s;
}
.filter-btn:hover { color: #fff; border-color: var(--primary); }
.filter-btn.active {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff;
  border-color: transparent;
  box-shadow: var(--glow);
}

/* 页面搜索栏（游戏库） */
.search-wrap { display: flex; max-width: 720px; margin: 0 auto 30px; }
.search-input {
  flex: 1;
  padding: 15px 24px;
  border-radius: 50px 0 0 50px;
  border: 1px solid var(--border);
  border-right: none;
  background: var(--card-bg);
  color: var(--text);
  font-size: 16px;
  outline: none;
  transition: border-color 0.3s;
}
.search-input:focus { border-color: var(--primary); }
.search-btn {
  padding: 0 30px;
  border: none;
  border-radius: 0 50px 50px 0;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s;
}
.search-btn:hover { filter: brightness(1.15); }

/* 详情页 */
.detail-header {
  display: flex;
  gap: 26px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  margin-bottom: 22px;
}
.detail-cover {
  width: 340px;
  height: 190px;
  border-radius: 12px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}
.detail-cover img { width: 100%; height: 100%; object-fit: cover; }
.detail-cover .thumb-fallback { font-size: 44px; font-weight: 800; }
.detail-main { flex: 1; min-width: 300px; }
.detail-main h1 {
  font-size: 30px;
  margin-bottom: 12px;
  background: linear-gradient(90deg, #fff, #a5b4fc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.detail-info { font-size: 15px; color: var(--text-muted); line-height: 2.1; }
.detail-info b { color: var(--text); }
.detail-buy { margin-top: 16px; display: flex; gap: 12px; flex-wrap: wrap; }

.btn {
  display: inline-block;
  padding: 11px 24px;
  border-radius: 10px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.25s;
}
.btn-primary { background: linear-gradient(135deg, var(--primary), var(--primary-light)); color: #fff; box-shadow: var(--glow); }
.btn-primary:hover { filter: brightness(1.15); transform: translateY(-2px); }
.btn-steam { background: #1b2838; color: #66c0f4; border: 1px solid #2a475e; }
.btn-steam:hover { background: #2a475e; }
.btn-epic { background: #2a2a2a; color: #fff; border: 1px solid #444; }
.btn-epic:hover { background: #404040; }

/* 下载按钮 */
.btn-download {
  background: linear-gradient(135deg, #16a34a, #22c55e);
  color: #fff;
  font-size: 16px;
  padding: 13px 30px;
  display: inline-block;
  box-shadow: 0 4px 18px rgba(34, 197, 94, 0.35);
}
.btn-download:hover { filter: brightness(1.12); transform: translateY(-2px); }
.download-box {
  margin: 14px 0 6px;
  padding: 14px 18px;
  background: rgba(22, 163, 74, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
  border-radius: 12px;
  display: inline-block;
}
.download-note { font-size: 13px; color: #4ade80; margin-top: 9px; }

/* 卡片下载角标 */
.dl-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: linear-gradient(135deg, #16a34a, #22c55e);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  z-index: 2;
  box-shadow: 0 2px 8px rgba(34, 197, 94, 0.5);
}

/* 游戏海报画廊（上下滚动展示全部） */
.gallery-main {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
.gallery-item {
  border-radius: 12px;
  overflow: hidden;
  background: #0d1424;
  border: 1px solid var(--border);
}
.gallery-item img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
  cursor: zoom-in;
  transition: opacity 0.3s;
}

/* 通用卡片区块 */
.detail-section {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 24px 26px;
  border: 1px solid var(--border);
  margin-bottom: 22px;
}
.detail-section h2 {
  font-size: 20px;
  margin-bottom: 16px;
  position: relative;
  padding-left: 14px;
}
.detail-section h2::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 18px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--primary), var(--accent));
}
.detail-section h2 .title-note { font-size: 13px; color: var(--text-muted); font-weight: 400; margin-left: 8px; }
.detail-section p { color: var(--text); font-size: 15px; line-height: 1.9; }
.req-block { margin-bottom: 14px; }
.req-block h3 { font-size: 16px; color: var(--accent); margin-bottom: 10px; }
.req-block ul { list-style: none; }
.req-block li {
  padding: 9px 14px;
  border-radius: 8px;
  background: rgba(99, 102, 241, 0.06);
  border: 1px solid var(--border);
  margin-bottom: 8px;
  font-size: 14px;
  color: var(--text-muted);
}

/* 公告 */
.news-item {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 26px;
  margin-bottom: 16px;
  transition: border-color 0.3s;
}
.news-item:hover { border-color: rgba(99, 102, 241, 0.5); }
.news-item h3 { font-size: 19px; margin-bottom: 6px; }
.news-date { font-size: 13px; color: var(--text-muted); margin-bottom: 10px; }
.news-item p { color: var(--text-muted); line-height: 1.9; }

/* 关于页 */
.about-card { max-width: 900px; }
.about-card h2 {
  font-size: 20px;
  margin: 18px 0 10px;
  color: #fff;
}
.about-card p, .about-card li { color: var(--text-muted); line-height: 1.9; font-size: 15px; }
.about-card ul { padding-left: 22px; margin-bottom: 14px; }

/* 加载与空状态 */
.loading { color: var(--text-muted); text-align: center; padding: 40px; grid-column: 1 / -1; }
.empty { color: var(--text-muted); text-align: center; padding: 40px; grid-column: 1 / -1; font-size: 15px; }

/* 页脚 */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-2);
  padding: 26px 0;
  margin-top: 30px;
}
.site-footer p { font-size: 14px; color: var(--text-muted); text-align: center; }

/* ===== 首页海报轮播（参考 asd233 首屏风格） ===== */
.hero-carousel {
  position: relative;
  height: 420px;
  overflow: hidden;
  background: #0d1322;
}
.carousel-slides {
  position: absolute;
  inset: 0;
}
.carousel-slides .slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease;
  overflow: hidden;
}
.carousel-slides .slide.active { opacity: 1; z-index: 2; }
/* 整块海报背景图：拉抻铺满整个轮播区 */
.carousel-slides .slide .slide-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  z-index: 1;
}
/* 底部渐变遮罩：保证游戏名/分类文字可读 */
.carousel-slides .slide .slide-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10, 14, 23, 0.25) 0%, rgba(10, 14, 23, 0.05) 40%, rgba(10, 14, 23, 0.88) 100%);
  z-index: 1;
  pointer-events: none;
}
.carousel-slides .slide .slide-inner {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 12px;
  display: flex;
  align-items: flex-end;
  gap: 8px;
  z-index: 2;
  pointer-events: none;
}
/* 大字符占位：无海报图时回退显示，绝对居中 */
.carousel-slides .slide .slide-fb {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120px;
  height: 160px;
  border-radius: 12px;
  align-items: center;
  justify-content: center;
  font-size: 56px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.96);
  letter-spacing: 3px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.55);
  text-shadow: 0 4px 14px rgba(0, 0, 0, 0.6);
}
/* 当前海报游戏名小字（不抢意境，贴在左下角） */
.carousel-slides .slide .slide-title {
  font-size: 15px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.95);
  padding: 0;
  z-index: 3;
  max-width: 480px;
  line-height: 1.3;
  letter-spacing: 0.3px;
}
.carousel-slides .slide .slide-cats {
  display: none;
}
.carousel-slides .slide .slide-cat {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.85);
  padding: 2px 8px;
  border-radius: 12px;
  background: rgba(10, 14, 23, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(4px);
}
.carousel-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10, 14, 23, 0.45) 0%, rgba(10, 14, 23, 0.2) 40%, rgba(10, 14, 23, 0.6) 100%);
  z-index: 1;
  pointer-events: none;
}
.hero-content {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 24px;
  pointer-events: none;
}
.hero-content > * { pointer-events: auto; }
.hero-title {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: #fff;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.7);
  margin-bottom: 4px;
  background: linear-gradient(90deg, #fff 20%, #22d3ee 90%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 4px 14px rgba(0, 0, 0, 0.6));
}
.hero-sub {
  color: rgba(255, 255, 255, 0.85);
  font-size: 13px;
  margin-bottom: 16px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
}
.hero-search {
  position: relative; /* 下拉面板定位锚点 */
}
.search-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  right: 0;
  background: #111827;
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.7);
  overflow: hidden;
  z-index: 60;
  display: none;
  text-align: left;
  max-height: 420px;
  overflow-y: auto;
}
.search-dropdown.open { display: block; }
.sd-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  cursor: pointer;
  border-bottom: 1px solid rgba(35, 48, 71, 0.6);
  transition: background 0.2s;
}
.sd-item:last-child { border-bottom: none; }
.sd-item:hover { background: rgba(99, 102, 241, 0.15); }
.sd-item img {
  width: 64px;
  height: 36px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
  background: #0d1424;
}
.sd-item .sd-fallback {
  width: 64px;
  height: 36px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}
.sd-info { flex: 1; min-width: 0; }
.sd-info .sd-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sd-info .sd-tags {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sd-empty {
  padding: 18px;
  text-align: center;
  color: var(--text-muted);
  font-size: 14px;
}

/* 轮播控制 */
.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 6;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(10, 14, 23, 0.45);
  color: #fff;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s;
  backdrop-filter: blur(6px);
}
.carousel-arrow:hover { background: rgba(99, 102, 241, 0.7); border-color: transparent; }
.carousel-arrow.prev { left: 18px; }
.carousel-arrow.next { right: 18px; }
.carousel-dots {
  position: absolute;
  bottom: 18px;
  left: 0;
  right: 0;
  z-index: 6;
  display: flex;
  justify-content: center;
  gap: 8px;
}
.carousel-dots .dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  transition: all 0.3s;
}
.carousel-dots .dot.active {
  width: 26px;
  border-radius: 6px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
}

/* ===== 热门排行（参考 asd233 合集风格） ===== */
.hot-ranking {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 14px;
}
.hot-item {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 16px;
  cursor: pointer;
  transition: all 0.25s;
}
.hot-item:hover {
  border-color: rgba(99, 102, 241, 0.6);
  background: var(--card-bg-hover);
  transform: translateY(-2px);
}
.hot-rank {
  font-size: 22px;
  font-weight: 800;
  width: 34px;
  text-align: center;
  color: var(--text-muted);
  font-style: italic;
  flex-shrink: 0;
}
.hot-item:nth-child(1) .hot-rank { color: #f59e0b; }
.hot-item:nth-child(2) .hot-rank { color: #94a3b8; }
.hot-item:nth-child(3) .hot-rank { color: #d97706; }
.hot-thumb {
  width: 92px;
  height: 52px;
  border-radius: 8px;
  object-fit: cover;
  background: #0d1424;
  flex-shrink: 0;
}
.hot-info { flex: 1; min-width: 0; }
.hot-info h3 {
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.2s;
}
.hot-item:hover .hot-info h3 { color: #fff; }
.hot-meta {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 3px;
  display: flex;
  gap: 10px;
}

/* 响应式 */
@media (max-width: 1360px) {
  .game-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 1100px) {
  .game-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
  .header-inner { display: flex; flex-direction: column; height: auto; padding: 12px 0; gap: 10px; }
  .logo { position: static; transform: none; justify-self: center; }
  .main-nav { grid-column: auto; flex-wrap: wrap; justify-content: center; }
  .game-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
  .detail-cover { width: 100%; }
  .search-input { width: 100%; }
  .hero h1 { font-size: 30px; }
  .hero-search { flex-direction: column; border-radius: 20px; }
  .hero-search input { border-radius: 14px; text-align: center; }
  .hero-search button { border-radius: 14px; padding: 13px; }
  .hero-carousel { height: 320px; }
  .hero-title { font-size: 26px; }
  .hero-sub { font-size: 12px; }
  .carousel-slides .slide .slide-title { font-size: 13px; }
  .carousel-slides .slide .slide-fb { width: 90px; height: 120px; font-size: 40px; border-radius: 10px; }
  .carousel-slides .slide .slide-inner { left: 12px; right: 12px; bottom: 8px; }
  .carousel-arrow { width: 34px; height: 34px; font-size: 20px; }
  .carousel-arrow.prev { left: 8px; }
  .carousel-arrow.next { right: 8px; }
  .search-dropdown { max-height: 300px; }
  .hot-ranking { grid-template-columns: 1fr; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .detail-header { flex-direction: column; }
}

/* ========== 首页免责声明 ========== */
.disclaimer {
  max-width: 1352px;
  margin: 22px auto 4px;
  padding: 16px 22px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  background: linear-gradient(135deg, rgba(99,102,241,0.06), rgba(139,92,246,0.04));
  border: 1px solid rgba(99,102,241,0.15);
  border-radius: 12px;
  text-align: center;
}
.disclaimer-ico {
  font-size: 18px;
  line-height: 1;
  opacity: 0.85;
  margin-bottom: 4px;
}
.disclaimer p {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.85;
  color: var(--text-muted);
  letter-spacing: 0.2px;
  text-align: center;
}
.disclaimer-main { font-weight: 500; }
.disclaimer-sub { opacity: 0.92; }
@media (max-width: 640px) {
  .disclaimer { padding: 12px 14px; }
  .disclaimer p { font-size: 11.5px; line-height: 1.7; }
}

/* ===== 详情页右侧下载面板（新版） ===== */
.detail-layout { display: flex; gap: 24px; align-items: flex-start; }
.detail-main-col { flex: 1; min-width: 0; }
.download-sidebar {
  width: 320px; flex-shrink: 0;
  position: sticky; top: 80px;
  background: var(--card-bg); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.5);
}
.dl-head {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.25), rgba(34, 211, 238, 0.15));
  border-bottom: 1px solid var(--border);
  padding: 16px 18px;
  display: flex; align-items: center; justify-content: space-between;
}
.dl-head-title { font-size: 15px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.dl-head-title .pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: #34d399; box-shadow: 0 0 8px #34d399; animation: dlpulse 1.6s infinite; }
@keyframes dlpulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }
.dl-head-count { font-size: 12px; color: var(--text-muted); background: rgba(0, 0, 0, 0.3); padding: 2px 10px; border-radius: 20px; }
.dl-body { padding: 16px 18px 20px; }
.pan-btn {
  display: flex; align-items: center; gap: 14px;
  width: 100%; padding: 13px 15px; margin-bottom: 12px;
  border-radius: 12px; border: 1px solid var(--border);
  background: var(--bg-2); color: var(--text);
  text-decoration: none; cursor: pointer; transition: all .2s;
  position: relative; overflow: hidden;
}
.pan-btn:hover { transform: translateY(-2px); border-color: var(--primary); box-shadow: 0 4px 16px rgba(139, 92, 246, 0.25); }
.pan-icon {
  width: 40px; height: 40px; border-radius: 10px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 800;
}
.pan-info { flex: 1; min-width: 0; }
.pan-name { font-size: 14px; font-weight: 600; }
.pan-desc { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.pan-arrow { color: var(--text-muted); font-size: 16px; transition: transform .2s; }
.pan-btn:hover .pan-arrow { transform: translateX(4px); color: var(--accent); }
.pan-btn.disabled { opacity: 0.55; cursor: not-allowed; }
.pan-btn.disabled:hover { transform: none; box-shadow: none; border-color: var(--border); }
.pan-badge { position: absolute; top: 10px; right: 10px; font-size: 10px; padding: 1px 8px; border-radius: 10px; background: rgba(244, 63, 94, 0.2); color: #fda4af; }
.pan-quark .pan-icon { background: linear-gradient(135deg, #22c55e, #16a34a); color: #fff; }
.pan-baidu .pan-icon { background: linear-gradient(135deg, #3b82f6, #2563eb); color: #fff; }
.pan-xunlei .pan-icon { background: linear-gradient(135deg, #f59e0b, #d97706); color: #fff; }
.dl-btn-quark {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; padding: 15px; margin-bottom: 10px;
  border-radius: 12px; border: none; cursor: pointer;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: #fff; font-size: 15px; font-weight: 700;
  box-shadow: 0 4px 18px rgba(34, 197, 94, 0.35);
  transition: all .2s; text-decoration: none; display: flex;
}
.dl-btn-quark:hover { transform: translateY(-2px); filter: brightness(1.1); box-shadow: 0 6px 24px rgba(34, 197, 94, 0.5); }
.dl-btn-quark.disabled { background: var(--bg-2); color: var(--text-muted); box-shadow: none; cursor: not-allowed; border: 1px dashed var(--border); }
.dl-btn-quark.disabled:hover { transform: none; filter: none; box-shadow: none; }
.code-chip { display: inline-flex; align-items: center; gap: 6px; background: rgba(0, 0, 0, 0.35); padding: 3px 10px; border-radius: 6px; font-family: monospace; color: #67e8f9; cursor: pointer; font-size: 13px; }
.code-chip:hover { background: rgba(34, 211, 238, 0.2); }
.dl-meta { border-top: 1px solid var(--border); margin-top: 14px; padding-top: 14px; }
.dl-meta-row { display: flex; justify-content: space-between; font-size: 13px; color: var(--text-muted); margin-bottom: 8px; }
.dl-meta-row b { color: var(--text); font-weight: 500; }
.dl-tip { margin-top: 12px; padding: 10px 12px; background: rgba(34, 211, 238, 0.08); border: 1px solid rgba(34, 211, 238, 0.2); border-radius: 8px; font-size: 12px; color: #a5b4fc; line-height: 1.7; }
.dl-tip b { color: #67e8f9; }
/* ===== 详情页二维码 ===== */
.dl-qr-wrap { margin: 16px 0 6px; text-align: center; }
.dl-qr-label { font-size: 12px; color: var(--text-muted); margin-bottom: 8px; }
.dl-qr { display: inline-block; padding: 8px; background: #fff; border-radius: 12px; box-shadow: 0 4px 16px rgba(0, 0, 0, 0.45); line-height: 0; }
.dl-qr img, .dl-qr canvas { display: block; width: 148px; height: 148px; border-radius: 6px; }
.dl-qr-hint { font-size: 11px; color: var(--text-muted); margin-top: 6px; }
@media (max-width: 900px) {
  .detail-layout { flex-direction: column; }
  .download-sidebar { width: 100%; position: static; }
}
/* ===== SWITCH 必下：资源入口 ===== */
.sub-filter-wrap { width: 94%; margin: 16px auto 10px; padding: 18px 20px; background: linear-gradient(135deg, #1e1b4b 0%, #111a3a 60%, #0f172a 100%); border: 1px solid rgba(129,140,248,0.35); border-radius: 16px; box-shadow: 0 8px 30px rgba(0,0,0,0.35); position: relative; overflow: hidden; }
.sub-filter-wrap::before { content: ''; position: absolute; inset: 0; background: radial-gradient(600px 120px at 10% 0%, rgba(99,102,241,0.18), transparent 60%); pointer-events: none; }
.sub-filter-title { display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 14px; position: relative; }
.sub-filter-title .sft-ico { font-size: 20px; }
.sub-filter-title .sft-text { font-size: 18px; font-weight: 800; letter-spacing: 1px; background: linear-gradient(90deg, #a5b4fc, #67e8f9); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sub-filter-title .sft-badge { font-size: 11px; color: #fbbf24; border: 1px solid rgba(251,191,36,0.5); padding: 2px 10px; border-radius: 999px; background: rgba(251,191,36,0.08); }
.sub-filter-btns { display: flex; flex-wrap: wrap; justify-content: center; align-items: stretch; gap: 16px; position: relative; width: 100%; max-width: 880px; margin: 0 auto; }
.sub-filter-item { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 9px; flex: 1 1 0; min-width: 170px; max-width: 220px; }
.sfb-qr { padding: 6px; background: #fff; border-radius: 10px; box-shadow: 0 4px 14px rgba(0,0,0,0.45); line-height: 0; }
.sfb-qr canvas, .sfb-qr img { display: block; width: 100px; height: 100px; border-radius: 4px; }
.sub-filter-btn { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 12px; border-radius: 14px; text-decoration: none; color: #fff; font-size: 15px; font-weight: 600; border: 1px solid; transition: all .18s; cursor: pointer; width: 100%; box-sizing: border-box; text-align: center; white-space: nowrap; overflow: hidden; }
.sub-filter-btn:hover { transform: translateY(-2px); color: #fff; }
.sub-filter-btn .sfb-ico { font-size: 17px; flex: 0 0 auto; }
.sub-filter-btn .sfb-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sub-filter-btn .sfb-arrow { color: #ffffff; font-weight: 700; opacity: 0.9; flex: 0 0 auto; }
.sub-filter-btn--pc { background: linear-gradient(135deg, #4f46e5, #7c3aed); border-color: rgba(139,92,246,0.65); }
.sub-filter-btn--pc:hover { box-shadow: 0 8px 20px rgba(99,102,241,0.5); }
.sub-filter-btn--android { background: linear-gradient(135deg, #059669, #10b981); border-color: rgba(16,185,129,0.65); }
.sub-filter-btn--android:hover { box-shadow: 0 8px 20px rgba(16,185,129,0.5); }
.sub-filter-btn--ios { background: linear-gradient(135deg, #e11d48, #f43f5e); border-color: rgba(244,63,94,0.65); }
.sub-filter-btn--ios:hover { box-shadow: 0 8px 20px rgba(244,63,94,0.5); }
.sub-filter-btn--patch { background: linear-gradient(135deg, #d97706, #f59e0b); border-color: rgba(245,158,11,0.65); }
.sub-filter-btn--patch:hover { box-shadow: 0 8px 20px rgba(245,158,11,0.5); }
.sub-filter-btn.is-pending { border-style: dashed; opacity: 0.85; cursor: default; }
.sub-filter-btn.is-pending:hover { transform: none; box-shadow: none; }
.sub-filter-btn.is-pending .sfb-note { font-size: 11px; color: rgba(255,255,255,0.9); }
@media (max-width: 600px) { .sub-filter-wrap { padding: 14px; width: 100%; } .sub-filter-btns { gap: 12px; max-width: 480px; } .sub-filter-item { flex: 1 1 45%; min-width: 0; max-width: none; } .sub-filter-btn { width: 100%; justify-content: center; padding: 12px 10px; font-size: 14px; } .sfb-qr canvas, .sfb-qr img { width: 84px; height: 84px; } .sub-filter-title .sft-badge { display: none; } }
/* ===== SWITCH 必下：独立下载页（扫码下载） ===== */
.sd-page { display: flex; justify-content: center; padding: 16px 0 40px; }
.sd-card { width: 100%; max-width: 420px; text-align: center; padding: 30px 24px 26px; background: linear-gradient(135deg, #1e1b4b 0%, #111a3a 60%, #0f172a 100%); border: 1px solid rgba(129,140,248,0.35); border-radius: 20px; box-shadow: 0 12px 40px rgba(0,0,0,0.4); position: relative; overflow: hidden; }
.sd-card::before { content: ''; position: absolute; inset: 0; background: radial-gradient(400px 140px at 50% 0%, rgba(99,102,241,0.16), transparent 60%); pointer-events: none; }
.sd-head { display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 4px; position: relative; }
.sd-ico { font-size: 36px; }
.sd-title { font-size: 24px; font-weight: 800; color: #fff; margin: 0; letter-spacing: 1px; }
.sd-sub { color: #94a3b8; font-size: 13px; margin-bottom: 22px; position: relative; }
.sd-qr-box { background: #fff; border-radius: 16px; padding: 12px; display: inline-block; box-shadow: 0 8px 26px rgba(0,0,0,0.5); position: relative; }
.sd-qr canvas, .sd-qr img { display: block; width: 220px; height: 220px; border-radius: 6px; }
.sd-scan-hint { margin-top: 16px; font-size: 17px; font-weight: 700; color: #67e8f9; letter-spacing: 3px; position: relative; }
.sd-pwd { margin-top: 8px; font-size: 14px; color: #cbd5e1; position: relative; }
.sd-pwd b { color: #fbbf24; font-size: 15px; }
.sd-tip { margin-top: 16px; font-size: 12px; color: #64748b; line-height: 1.8; position: relative; }
@media (max-width: 600px) { .sd-card { padding: 24px 16px 22px; } .sd-qr canvas, .sd-qr img { width: 190px; height: 190px; } .sd-title { font-size: 21px; } }

/* ============================================================
   移动端全面适配（2026-09-08）
   修复：中等宽度导航与 logo 叠字、小屏布局溢出
   ============================================================ */

/* —— 中屏（≤1200px）：logo 取消绝对定位，导航允许换行，防止叠字 —— */
@media (max-width: 1200px) {
  .header-inner {
    display: flex;
    flex-wrap: wrap;
    height: auto;
    padding: 10px 0;
    gap: 8px 14px;
    justify-content: center;
  }
  .logo { position: static; transform: none; }
  .logo-img { height: 54px; }
  .main-nav { flex-wrap: wrap; justify-content: center; grid-column: auto; }
}

/* —— 小屏（≤640px）：整体紧凑化 —— */
@media (max-width: 640px) {
  .container { padding: 0 14px; }
  .logo-img { height: 44px; }
  .main-nav a { padding: 6px 7px; font-size: 13px; gap: 3px; }
  .main-nav a .nav-ico { font-size: 13px; }
  .hero { padding: 36px 0 30px; }
  .hero h1 { font-size: 26px; letter-spacing: 0; }
  .hero p { font-size: 13px; }
  .section-head h2 { font-size: 20px; }
  .detail-header { padding: 16px; gap: 14px; }
  .detail-cover { width: 100%; height: auto; aspect-ratio: 16/9; }
  .detail-main { min-width: 0; }
  .detail-main h1 { font-size: 22px; }
  .filter-bar { gap: 8px; margin-bottom: 16px; }
  .filter-btn { padding: 7px 14px; font-size: 13px; }
  .search-wrap { max-width: 100%; }
  .hot-ranking { gap: 12px; }
  .game-grid { gap: 10px; }
  .site-footer { padding: 18px 0 26px; font-size: 12px; }
}
/* 热门榜单：修复长游戏名 nowrap 撑破移动端布局 */
.hot-item { min-width: 0; }
.hot-meta { flex-wrap: wrap; }
