/* ==========================================================================
   星河游戏门户 · 静态原型样式（TapTap 视觉基准）
   说明：无框架纯手写，颜色/圆角/阴影统一走 CSS 变量，方便后续移植进 PHP 模板
   ========================================================================== */

:root {
  --brand: #12c2a6;
  --brand-2: #0aa88f;
  --brand-soft: #e6fbf7;
  --brand-glow: rgba(18, 194, 166, 0.28);

  --ink: #14171a;
  --ink-2: #3f4650;
  --muted: #8a929c;
  --bg: #f5f7fa;
  --card: #ffffff;
  --line: #eef1f4;
  --star: #ffb400;

  --radius-lg: 20px;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 4px 20px rgba(20, 23, 26, 0.06);
  --shadow-hover: 0 12px 30px rgba(20, 23, 26, 0.1);
  --container: 1200px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei",
    "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

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

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

button {
  font: inherit;
  color: inherit;
  border: 0;
  background: none;
  cursor: pointer;
}

ul,
ol {
  list-style: none;
}

.container {
  width: min(var(--container), calc(100% - 48px));
  margin: 0 auto;
}

/* ---------- 顶部导航 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.4px;
  white-space: nowrap;
}

.logo-mark {
  position: relative;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: linear-gradient(135deg, #1ee0be, #0a9f88);
  box-shadow: 0 6px 16px var(--brand-glow);
}

.logo-mark::after {
  content: "";
  position: absolute;
  inset: 7px;
  border: 2px solid rgba(255, 255, 255, 0.88);
  border-radius: 5px;
  transform: rotate(45deg);
}

.logo small {
  display: block;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 2px;
  color: var(--muted);
  line-height: 1;
}

.search {
  position: relative;
  flex: 1;
  max-width: 520px;
}

.search input {
  width: 100%;
  height: 42px;
  padding: 0 46px 0 18px;
  font-size: 14px;
  color: var(--ink);
  background: #f1f3f6;
  border: 1px solid transparent;
  border-radius: 999px;
  outline: none;
  transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.search input::placeholder {
  color: #a4abb4;
}

.search input:focus {
  background: #fff;
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(18, 194, 166, 0.12);
}

.search-btn {
  position: absolute;
  top: 5px;
  right: 6px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 32px;
  color: var(--brand-2);
  border-radius: 999px;
  transition: background 0.2s;
}

.search-btn:hover {
  background: var(--brand-soft);
}

.main-nav {
  display: flex;
  gap: 2px;
  margin-left: auto;
}

.main-nav a {
  padding: 8px 13px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-2);
  border-radius: 999px;
  transition: color 0.2s, background 0.2s;
}

.main-nav a:hover {
  color: var(--brand-2);
  background: var(--brand-soft);
}

.main-nav a.active {
  font-weight: 700;
  color: var(--brand-2);
  background: var(--brand-soft);
}

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

.btn-ghost {
  padding: 9px 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-2);
  border-radius: 999px;
  transition: background 0.2s;
}

.btn-ghost:hover {
  background: #f1f3f6;
}

.btn-primary {
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #17d2b4, #0a9f88);
  border-radius: 999px;
  box-shadow: 0 8px 18px var(--brand-glow);
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px var(--brand-glow);
}

/* ---------- 首屏轮播 ---------- */
.hero {
  display: grid;
  grid-template-columns: 1.62fr 1fr;
  gap: 18px;
  margin-top: 22px;
}

.hero-main {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  aspect-ratio: 16 / 8.4;
  background: #0d1117;
  box-shadow: var(--shadow);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.7s ease;
}

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

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 12, 18, 0.05) 35%, rgba(8, 12, 18, 0.82) 100%);
}

.hero-copy {
  position: absolute;
  left: 34px;
  right: 34px;
  bottom: 30px;
  z-index: 2;
  color: #fff;
}

.hero-badge {
  display: inline-block;
  padding: 4px 10px;
  margin-bottom: 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  color: #08120f;
  background: var(--brand);
  border-radius: 999px;
}

.hero-title {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.35);
}

.hero-desc {
  max-width: 520px;
  margin-top: 8px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.78);
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
}

.hero-dots {
  position: absolute;
  right: 26px;
  bottom: 26px;
  z-index: 3;
  display: flex;
  gap: 7px;
}

.hero-dots button {
  width: 7px;
  height: 7px;
  background: rgba(255, 255, 255, 0.35);
  border-radius: 99px;
  transition: width 0.25s, background 0.25s;
}

.hero-dots button.active {
  width: 22px;
  background: var(--brand);
}

.hero-side {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 18px;
}

.side-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: #0d1117;
  box-shadow: var(--shadow);
}

.side-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.side-card:hover img {
  transform: scale(1.05);
}

.side-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 12, 18, 0.12), rgba(8, 12, 18, 0.8));
}

.side-copy {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 18px;
  z-index: 2;
  color: #fff;
}

.side-kicker {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.2px;
  color: var(--brand);
}

.side-title {
  margin-top: 4px;
  font-size: 19px;
  font-weight: 800;
}

.side-meta {
  margin-top: 4px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.72);
}

/* ---------- 区块标题 ---------- */
.section {
  margin-top: 40px;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.section-title {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.3px;
}

.section-title em {
  font-style: normal;
  color: var(--brand-2);
}

.section-sub {
  margin-top: 4px;
  font-size: 13px;
  color: var(--muted);
}

.section-more {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  transition: color 0.2s;
}

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

/* ---------- 今日推荐卡片 ---------- */
.pick-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.pick-card {
  overflow: hidden;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform 0.25s, box-shadow 0.25s;
}

.pick-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.pick-cover {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: linear-gradient(135deg, #dfe7ef, #c7d3df);
}

.pick-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s;
}

.pick-card:hover .pick-cover img {
  transform: scale(1.04);
}

.pick-float {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 3px 9px;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  background: rgba(10, 14, 20, 0.62);
  border-radius: 999px;
  backdrop-filter: blur(6px);
}

.pick-body {
  padding: 14px 16px 16px;
}

.pick-name {
  font-size: 15px;
  font-weight: 700;
}

.pick-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  font-size: 12px;
  color: var(--muted);
}

.rating {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-weight: 700;
  color: var(--star);
}

.rating span {
  color: var(--ink-2);
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.tag {
  padding: 2px 8px;
  font-size: 11px;
  color: #5b6470;
  background: #f1f3f6;
  border-radius: 6px;
}

.pick-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
}

.dl-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 14px;
  font-size: 12px;
  font-weight: 700;
  color: var(--brand-2);
  background: var(--brand-soft);
  border-radius: 999px;
  transition: background 0.2s, color 0.2s;
}

.dl-btn:hover {
  color: #fff;
  background: linear-gradient(135deg, #17d2b4, #0a9f88);
}

/* ---------- 排行榜 ---------- */
.rank-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 26px;
  padding: 10px 18px 18px;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.rank-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 9px 8px;
  border-radius: 12px;
  transition: background 0.2s;
}

.rank-row:hover {
  background: #f6f8fa;
}

.rank-no {
  width: 24px;
  font-size: 15px;
  font-weight: 800;
  color: var(--muted);
  text-align: center;
}

.rank-no.hot {
  color: #ff6b35;
}

.rank-no.top {
  color: var(--brand-2);
}

.rank-icon {
  width: 46px;
  height: 46px;
  overflow: hidden;
  background: #e8edf2;
  border-radius: 12px;
  flex: none;
}

.rank-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rank-info {
  display: block;
  flex: 1;
  min-width: 0;
}

.rank-name {
  display: block;
  font-size: 14px;
  font-weight: 700;
}

.rank-cat {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  color: var(--muted);
}

.rank-score {
  font-size: 14px;
  font-weight: 800;
  color: var(--star);
}

.rank-trend {
  width: 48px;
  font-size: 11px;
  font-weight: 700;
  text-align: right;
  color: var(--brand-2);
}

.rank-trend.down {
  color: #ff6b6b;
}

/* ---------- 新游横滑 ---------- */
.new-scroll {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 176px;
  gap: 14px;
  padding-bottom: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}

.new-scroll::-webkit-scrollbar {
  display: none;
}

.new-card {
  overflow: hidden;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform 0.25s;
}

.new-card:hover {
  transform: translateY(-3px);
}

.new-cover {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #e8edf2;
}

.new-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.new-body {
  padding: 12px 13px 14px;
}

.new-name {
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.new-meta {
  margin-top: 4px;
  font-size: 11px;
  color: var(--muted);
}

.new-state {
  display: inline-block;
  margin-top: 8px;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 700;
  color: var(--brand-2);
  background: var(--brand-soft);
  border-radius: 6px;
}

/* ---------- 分类广场 ---------- */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 12px;
}

.cat-item {
  display: grid;
  place-items: center;
  padding: 18px 8px 16px;
  background: var(--card);
  border-radius: 14px;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}

.cat-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.cat-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 9px;
  color: var(--brand-2);
  background: var(--brand-soft);
  border-radius: 13px;
}

.cat-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
}

/* ---------- 社区热帖 ---------- */
.post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.post-card {
  padding: 18px;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}

.post-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.post-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.avatar {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  font-size: 13px;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, #17d2b4, #0a9f88);
  border-radius: 50%;
  flex: none;
}

.avatar.alt-1 {
  background: linear-gradient(135deg, #ff9a62, #ff6b35);
}

.avatar.alt-2 {
  background: linear-gradient(135deg, #7d8cff, #5a67d8);
}

.post-user {
  font-size: 13px;
  font-weight: 700;
}

.post-time {
  font-size: 11px;
  color: var(--muted);
}

.post-title {
  margin-top: 12px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.45;
}

.post-desc {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-top: 8px;
  font-size: 13px;
  color: #6b727c;
}

.post-foot {
  display: flex;
  gap: 18px;
  margin-top: 14px;
  font-size: 12px;
  color: var(--muted);
}

/* ---------- 列表页 ---------- */
.page-head {
  margin-top: 26px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
}

.breadcrumb a:hover {
  color: var(--brand-2);
}

.page-title {
  margin-top: 10px;
  font-size: 28px;
  font-weight: 800;
}

.page-desc {
  margin-top: 6px;
  font-size: 13px;
  color: var(--muted);
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 24px;
  padding: 16px 18px;
  margin-top: 20px;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.filter-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.filter-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
}

.chip {
  padding: 6px 14px;
  font-size: 13px;
  color: var(--ink-2);
  background: #f3f5f8;
  border-radius: 999px;
  transition: color 0.2s, background 0.2s;
}

.chip:hover {
  background: var(--brand-soft);
  color: var(--brand-2);
}

.chip.active {
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #17d2b4, #0a9f88);
}

.filter-sort {
  display: flex;
  gap: 6px;
  margin-left: auto;
}

.sort-btn {
  padding: 6px 12px;
  font-size: 12px;
  color: var(--muted);
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
}

.sort-btn:hover {
  background: #f3f5f8;
}

.sort-btn.active {
  font-weight: 700;
  color: var(--brand-2);
  background: var(--brand-soft);
}

.game-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
  margin-top: 20px;
}

.game-card {
  overflow: hidden;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform 0.25s, box-shadow 0.25s;
}

.game-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.game-cover {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #e8edf2;
}

.game-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s;
}

.game-card:hover .game-cover img {
  transform: scale(1.05);
}

.game-body {
  padding: 12px 14px 14px;
}

.game-name {
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.game-sub {
  margin-top: 4px;
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.game-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
  font-size: 12px;
}

.game-size {
  color: var(--muted);
}

.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 34px 0 10px;
}

.page-btn {
  display: grid;
  place-items: center;
  min-width: 38px;
  height: 38px;
  padding: 0 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
  background: var(--card);
  border-radius: 10px;
  box-shadow: var(--shadow);
  transition: color 0.2s, background 0.2s;
}

.page-btn:hover {
  color: var(--brand-2);
}

.page-btn.active {
  color: #fff;
  background: linear-gradient(135deg, #17d2b4, #0a9f88);
}

/* ---------- 详情页 ---------- */
.detail-hero {
  position: relative;
  overflow: hidden;
  min-height: 360px;
  margin-top: 20px;
  background: #0d1117;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.detail-bg {
  position: absolute;
  inset: 0;
}

.detail-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(3px);
  transform: scale(1.06);
}

.detail-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(8, 12, 18, 0.94) 8%, rgba(8, 12, 18, 0.62) 55%, rgba(8, 12, 18, 0.32) 100%);
}

.detail-inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 26px;
  padding: 44px 40px;
  color: #fff;
}

.detail-cover {
  width: 168px;
  height: 168px;
  overflow: hidden;
  border: 3px solid rgba(255, 255, 255, 0.16);
  border-radius: 20px;
  flex: none;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

.detail-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-copy {
  flex: 1;
  min-width: 0;
}

.detail-title {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: 0.4px;
}

.detail-sub {
  margin-top: 6px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.72);
}

.detail-stats {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  margin-top: 16px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.82);
}

.detail-score {
  font-size: 26px;
  font-weight: 800;
  color: var(--star);
}

.detail-score small {
  margin-left: 4px;
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.62);
}

.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 16px;
}

.detail-tags .tag {
  color: rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.12);
}

.detail-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 22px;
}

.big-dl {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 30px;
  font-size: 15px;
  font-weight: 800;
  color: #07120f;
  background: linear-gradient(135deg, #1ee0be, #0dbfa4);
  border-radius: 999px;
  box-shadow: 0 10px 26px rgba(18, 194, 166, 0.4);
  transition: transform 0.2s;
}

.big-dl:hover {
  transform: translateY(-2px);
}

.big-dl-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  transition: background 0.2s;
}

.big-dl-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
}

.detail-panel {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 24px;
  margin-top: 24px;
}

.content-card {
  padding: 24px;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.shot-scroll {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 288px;
  gap: 12px;
  overflow-x: auto;
  scrollbar-width: none;
}

.shot-scroll::-webkit-scrollbar {
  display: none;
}

.shot {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #e8edf2;
  border-radius: 12px;
}

.shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tab-bar {
  display: flex;
  gap: 28px;
  margin-top: 22px;
  border-bottom: 1px solid var(--line);
}

.tab-btn {
  position: relative;
  padding: 14px 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--muted);
  transition: color 0.2s;
}

.tab-btn:hover {
  color: var(--ink-2);
}

.tab-btn.active {
  font-weight: 800;
  color: var(--ink);
}

.tab-btn.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 3px;
  background: var(--brand);
  border-radius: 3px 3px 0 0;
}

.tab-panel {
  display: none;
  padding-top: 18px;
}

.tab-panel.active {
  display: block;
  animation: fade-up 0.35s ease;
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.article p {
  margin-bottom: 14px;
  font-size: 14px;
  line-height: 1.9;
  color: #454c56;
}

.article h4 {
  margin: 20px 0 10px;
  font-size: 16px;
  font-weight: 800;
}

.info-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px 20px;
  padding: 16px;
  margin-top: 20px;
  background: #f7f9fb;
  border-radius: 12px;
}

.info-item {
  display: flex;
  gap: 10px;
  font-size: 13px;
}

.info-key {
  color: var(--muted);
  flex: none;
  width: 62px;
}

.info-val {
  color: var(--ink-2);
}

.update-item {
  display: flex;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px dashed var(--line);
}

.update-item:last-child {
  border-bottom: 0;
}

.update-date {
  width: 96px;
  font-size: 12px;
  color: var(--muted);
  flex: none;
}

.update-body {
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.7;
}

.review {
  display: flex;
  gap: 14px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.review:last-child {
  border-bottom: 0;
}

.review-main {
  flex: 1;
}

.review-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.review-name {
  font-size: 13px;
  font-weight: 700;
}

.review-time {
  font-size: 11px;
  color: var(--muted);
}

.review-stars {
  font-size: 13px;
  color: var(--star);
  letter-spacing: 1px;
}

.review-text {
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.75;
  color: #4d545e;
}

.side-box {
  padding: 20px;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.side-box + .side-box {
  margin-top: 18px;
}

.side-title {
  font-size: 15px;
  font-weight: 800;
}

.side-list {
  margin-top: 14px;
  display: grid;
  gap: 12px;
}

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

.side-game-icon {
  width: 52px;
  height: 52px;
  overflow: hidden;
  background: #e8edf2;
  border-radius: 12px;
  flex: none;
}

.side-game-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.side-game-name {
  display: block;
  font-size: 13px;
  font-weight: 700;
}

.side-game-meta {
  display: block;
  margin-top: 3px;
  font-size: 11px;
  color: var(--muted);
}

/* ---------- 页脚 ---------- */
.site-footer {
  margin-top: 56px;
  padding: 34px 0 40px;
  background: #fff;
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 24px;
}

.footer-brand {
  max-width: 360px;
}

.footer-brand p {
  margin-top: 10px;
  font-size: 12px;
  line-height: 1.8;
  color: var(--muted);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
}

.footer-col h5 {
  margin-bottom: 10px;
  font-size: 13px;
  font-weight: 800;
}

.footer-col a {
  display: block;
  margin-bottom: 7px;
  font-size: 12px;
  color: var(--muted);
}

.footer-col a:hover {
  color: var(--brand-2);
}

.footer-copy {
  margin-top: 28px;
  padding-top: 18px;
  font-size: 11px;
  color: #a4abb4;
  border-top: 1px solid var(--line);
}

/* ---------- 轻提示 ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 36px;
  z-index: 90;
  padding: 11px 22px;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  background: rgba(20, 23, 26, 0.9);
  border-radius: 999px;
  transform: translate(-50%, 20px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s, transform 0.25s;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ---------- 滚动渐显 ---------- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.in {
  opacity: 1;
  transform: none;
}

/* ---------- 响应式 ---------- */
@media (max-width: 1080px) {
  .header-inner {
    gap: 18px;
  }

  .main-nav a {
    padding: 8px 9px;
  }

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

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

@media (max-width: 900px) {
  .container {
    width: calc(100% - 32px);
  }

  .main-nav,
  .header-actions .btn-ghost {
    display: none;
  }

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

  .hero-main {
    aspect-ratio: 16 / 10;
  }

  .hero-side {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: none;
  }

  .side-card {
    aspect-ratio: 16 / 9;
  }

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

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

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

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

  .detail-panel {
    grid-template-columns: 1fr;
  }

  .detail-inner {
    padding: 28px 22px;
    flex-direction: column;
    align-items: flex-start;
  }

  .detail-cover {
    width: 120px;
    height: 120px;
  }

  .detail-title {
    font-size: 26px;
  }
}

@media (max-width: 640px) {
  .header-inner {
    height: 58px;
  }

  .logo span {
    display: none;
  }

  .search {
    max-width: none;
  }

  .header-actions .btn-primary {
    padding: 9px 14px;
    font-size: 12px;
  }

  .hero-copy {
    left: 18px;
    right: 18px;
    bottom: 18px;
  }

  .hero-title {
    font-size: 22px;
  }

  .hero-desc {
    display: none;
  }

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

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

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

  .new-scroll {
    grid-auto-columns: 148px;
  }

  .detail-stats {
    gap: 12px;
  }

  .info-list {
    grid-template-columns: 1fr;
  }

  .filter-sort {
    margin-left: 0;
  }
}
