/* ============================================================
   找骑士 · 骑士私服发布网
   设计语言：鎏金纹章殿堂风（Gold Heraldic Hall）
   主色：#D4AF37 纯金 | 底色：#120D06 黑曜
   签名元素：金色盾徽 + 双翼纹章分隔线
   ============================================================ */

/* ---------- 设计令牌 ---------- */
:root {
  --gold: #d4af37;
  --gold-bright: #f5d67b;
  --gold-light: #fbe9b0;
  --gold-deep: #9a7b2d;
  --gold-dark: #6e571f;
  --gold-line: rgba(212, 175, 55, 0.28);
  --gold-line-soft: rgba(212, 175, 55, 0.14);
  --bg-deep: #120d06;
  --bg-panel: rgba(26, 19, 9, 0.9);
  --bg-panel-soft: rgba(24, 17, 8, 0.72);
  --bg-card: linear-gradient(160deg, rgba(38, 28, 12, 0.92), rgba(20, 14, 6, 0.96));
  --text-main: #f0e6c8;
  --text-sub: #c9b988;
  --text-dim: #9d8f6a;
  --red-hot: #e0442e;
  --green-ok: #4dbb6d;
  --shadow-gold: 0 6px 24px rgba(0, 0, 0, 0.55), 0 0 0 1px var(--gold-line);
  --radius: 10px;
  --font-display: "STZhongsong", "SimSun", "Noto Serif SC", "Songti SC", serif;
  --font-body: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", "Helvetica Neue", Arial, sans-serif;
  --header-h: 78px;
}

/* ---------- 基础 ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  color: var(--text-main);
  background-color: var(--bg-deep);
  background-image: url("../images/bj.png");
  background-repeat: no-repeat;
  background-position: center top;
  background-size: cover;
  background-attachment: fixed;
  min-height: 100vh;
  line-height: 1.65;
  font-size: 15px;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 7, 2, 0.62), rgba(10, 7, 2, 0.78) 45%, rgba(8, 5, 2, 0.88));
  z-index: -1;
  pointer-events: none;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; }
::selection { background: rgba(212, 175, 55, 0.35); color: #fff; }
::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-track { background: #14100a; }
::-webkit-scrollbar-thumb { background: linear-gradient(180deg, var(--gold-deep), var(--gold-dark)); border-radius: 6px; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; }

/* 金色文本渐变 */
.gold-text {
  background: linear-gradient(180deg, var(--gold-light) 0%, var(--gold) 45%, #a8812a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- 顶部公告栏 ---------- */
.topbar {
  background: linear-gradient(90deg, #0d0903, #2a1e09 50%, #0d0903);
  border-bottom: 1px solid var(--gold-line);
  font-size: 13px;
  color: var(--text-sub);
}
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 34px; }
.topbar .notice { display: flex; align-items: center; gap: 8px; min-width: 0; flex: 1; }
.topbar .notice-tag {
  flex: none;
  padding: 1px 9px;
  font-size: 12px;
  color: #14100a;
  background: linear-gradient(180deg, var(--gold-bright), var(--gold));
  border-radius: 3px;
  font-weight: 700;
}
.marquee { overflow: hidden; white-space: nowrap; position: relative; flex: 1; min-width: 0; }
.marquee-track { display: inline-block; padding-left: 100%; animation: marquee 26s linear infinite; }
.marquee-track span { margin-right: 44px; color: var(--text-sub); }
.marquee-track em { font-style: normal; color: var(--gold-bright); }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-100%); } }
.topbar-links { display: flex; gap: 14px; flex: none; }
.topbar-links a { color: var(--text-sub); transition: color 0.25s; }
.topbar-links a:hover { color: var(--gold-bright); }

/* ---------- 页头 ---------- */
.site-header {
  background: linear-gradient(180deg, rgba(20, 14, 5, 0.96), rgba(14, 10, 4, 0.94));
  border-bottom: 2px solid var(--gold);
  box-shadow: 0 4px 22px rgba(0, 0, 0, 0.5);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 14px 0; }
.brand { display: flex; align-items: center; gap: 14px; flex: none; }
.brand-logo { width: 58px; height: 58px; border-radius: 50%; overflow: hidden; border: 2px solid var(--gold); box-shadow: 0 0 14px rgba(212, 175, 55, 0.4); background: #0d0903; flex: none; }
.brand-logo img { width: 100%; height: 100%; object-fit: cover; }
.brand-name { line-height: 1.15; }
.brand-name .zh {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 900;
  letter-spacing: 5px;
  background: linear-gradient(180deg, #fff3c9 0%, var(--gold) 55%, #9c7c28 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 2px 0 rgba(0,0,0,.35);
  filter: drop-shadow(0 2px 6px rgba(212,175,55,.35));
}
.brand-name .en { font-size: 12px; color: var(--text-dim); letter-spacing: 2.5px; }
.brand-name .en b { color: var(--gold); font-weight: 600; }

.header-search { flex: 1; max-width: 460px; display: flex; align-items: center; gap: 10px; }
.search-box {
  flex: 1;
  display: flex;
  align-items: center;
  height: 42px;
  background: #0e0a04;
  border: 1px solid var(--gold-line);
  border-radius: 22px;
  overflow: hidden;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.search-box:focus-within { border-color: var(--gold); box-shadow: 0 0 14px rgba(212, 175, 55, 0.25); }
.search-box svg { flex: none; margin-left: 12px; fill: var(--gold-deep); }
.search-box input { flex: 1; border: 0; outline: 0; background: transparent; color: var(--text-main); font-size: 14px; padding: 0 6px; }
.search-box input::placeholder { color: var(--text-dim); }
.search-btn {
  flex: none;
  height: 100%;
  padding: 0 22px;
  border: 0;
  color: #14100a;
  font-size: 14px;
  font-weight: 700;
  background: linear-gradient(180deg, var(--gold-bright), var(--gold));
  transition: filter 0.25s;
}
.search-btn:hover { filter: brightness(1.1); }
.header-hot { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-dim); flex: none; }
.header-hot a { color: var(--text-sub); padding: 2px 6px; border: 1px solid transparent; border-radius: 4px; transition: 0.25s; }
.header-hot a:hover { color: var(--gold-bright); border-color: var(--gold-line); }

/* ---------- 导航 ---------- */
.main-nav {
  position: sticky;
  top: 0;
  z-index: 900;
  background: linear-gradient(180deg, #1a1307, #100b04);
  border-top: 1px solid var(--gold-line-soft);
  border-bottom: 1px solid var(--gold-line);
}
.nav-inner { display: flex; align-items: center; }
.nav-list { display: flex; align-items: stretch; flex: 1; }
.nav-list a {
  position: relative;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 13px 22px;
  font-size: 15px;
  color: var(--text-sub);
  transition: color 0.25s;
  white-space: nowrap;
}
.nav-list a svg { fill: currentColor; opacity: 0.85; }
.nav-list a:hover, .nav-list a.active { color: var(--gold-bright); }
.nav-list a::after {
  content: "";
  position: absolute;
  left: 22px; right: 22px; bottom: -1px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  transform: scaleX(0);
  transition: transform 0.3s;
}
.nav-list a:hover::after, .nav-list a.active::after { transform: scaleX(1); }
.nav-hot {
  flex: none;
  margin-left: auto;
  padding: 7px 16px;
  font-size: 13px;
  color: var(--gold-light);
  border: 1px solid var(--gold-line);
  border-radius: 18px;
  background: rgba(212, 175, 55, 0.08);
  transition: 0.25s;
}
.nav-hot:hover { background: rgba(212, 175, 55, 0.18); }
.nav-toggle { display: none; flex: none; width: 42px; height: 42px; margin-left: auto; background: transparent; border: 1px solid var(--gold-line); border-radius: 8px; align-items: center; justify-content: center; }
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--gold); position: relative; transition: 0.3s; }
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; width: 20px; height: 2px; background: var(--gold); transition: 0.3s; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-toggle.open span { background: transparent; }
.nav-toggle.open span::before { top: 0; transform: rotate(45deg); }
.nav-toggle.open span::after { top: 0; transform: rotate(-45deg); }

/* ---------- 章节标题（签名纹章） ---------- */
.sec { margin-top: 34px; }
.sec-head { display: flex; align-items: center; justify-content: center; gap: 18px; margin-bottom: 20px; }
.sec-title {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 900;
  letter-spacing: 4px;
  display: flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(180deg, #fff3c9 0%, var(--gold) 55%, #9c7c28 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.sec-title svg { fill: url(#goldGrad); filter: drop-shadow(0 0 6px rgba(212,175,55,.55)); flex: none; }
.sec-sub { text-align: center; font-size: 13px; color: var(--text-dim); margin: -12px 0 20px; letter-spacing: 1px; }
.sec-line {
  flex: 0 0 70px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-line) 60%);
  position: relative;
}
.sec-line.right { transform: scaleX(-1); }
.sec-line::after { content: ""; position: absolute; right: 0; top: -2px; width: 5px; height: 5px; background: var(--gold); transform: rotate(45deg); }
.sec-line.right::after { left: 0; right: auto; }
.sec-more { display: block; text-align: center; margin: 18px 0 4px; font-size: 13px; }
.sec-more a { color: var(--gold-deep); border-bottom: 1px dashed var(--gold-line); padding-bottom: 2px; transition: 0.25s; }
.sec-more a:hover { color: var(--gold-bright); }

/* ---------- 主视觉横幅 ---------- */
.hero { margin-top: 22px; position: relative; }
.hero-frame {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  border-radius: 14px;
  padding: 5px;
  background: linear-gradient(135deg, rgba(212,175,55,.55), rgba(212,175,55,.08) 30%, rgba(212,175,55,.08) 70%, rgba(212,175,55,.55));
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6), 0 0 30px rgba(212, 175, 55, 0.12);
  overflow: hidden;
}
.hero-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 240, 190, 0.28) 48%, transparent 62%);
  animation: heroSweep 5.5s ease-in-out infinite;
  pointer-events: none;
  z-index: 2;
}
@keyframes heroSweep { 0%, 60% { transform: translateX(-110%); } 100% { transform: translateX(110%); } }
.hero-banner { position: relative; border-radius: 10px; overflow: hidden; width: 100%; aspect-ratio: 1200 / 250; background: #0d0903; }
.hero-banner img { width: 100%; height: 100%; object-fit: cover; }
.hero-banner a { display: block; width: 100%; height: 100%; }
#fx-canvas { position: absolute; inset: 0; z-index: 3; pointer-events: none; border-radius: 10px; }

/* 横幅下方广告位 */
.hero-ad {
  max-width: 1200px;
  margin: 16px auto 0;
  padding: 10px;
  border: 1px dashed var(--gold-line);
  border-radius: 10px;
  background: rgba(14, 10, 4, 0.6);
  min-height: 40px;
  text-align: center;
}
.hero-ad #cq_tui { min-height: 30px; }
.hero-ad img { margin: 0 auto; }

/* ---------- 面板 ---------- */
.panel {
  background: var(--bg-card);
  border: 1px solid var(--gold-line);
  border-radius: var(--radius);
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.42);
  position: relative;
  overflow: hidden;
}
.panel::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold) 30%, var(--gold) 70%, transparent);
  opacity: 0.7;
}
.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 15px 20px 13px;
  border-bottom: 1px solid var(--gold-line-soft);
}
.panel-head h3 {
  font-family: var(--font-display);
  font-size: 19px;
  letter-spacing: 2px;
  color: var(--gold-bright);
  display: flex;
  align-items: center;
  gap: 9px;
}
.panel-head h3 svg { fill: var(--gold); }
.panel-head .tag { font-size: 12px; color: var(--text-dim); }
.panel-body { padding: 16px 18px; }

/* ---------- 今日新开横向卡片 ---------- */
.new-strip { position: relative; }
.new-scroll {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding: 4px 2px 14px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.new-scroll::-webkit-scrollbar { height: 6px; }
.g-card {
  flex: 0 0 262px;
  scroll-snap-align: start;
  background: var(--bg-card);
  border: 1px solid var(--gold-line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
  position: relative;
}
.g-card:hover { transform: translateY(-5px); border-color: var(--gold); box-shadow: var(--shadow-gold); }
.g-cover { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #0d0903; }
.g-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.g-card:hover .g-cover img { transform: scale(1.07); }
.g-cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(10, 7, 2, 0.85)); }
.badge {
  position: absolute;
  top: 10px; left: 10px;
  z-index: 2;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  padding: 2px 10px;
  border-radius: 3px;
  letter-spacing: 1px;
}
.badge-new { background: linear-gradient(90deg, #d43a2a, #a82517); box-shadow: 0 2px 8px rgba(212, 58, 42, 0.5); }
.badge-hot { background: linear-gradient(90deg, #d4af37, #8c6d1f); color: #1c1405; }
.badge-long { background: linear-gradient(90deg, #2f9e5c, #1e6b3d); }
.badge-star { background: linear-gradient(90deg, #b8860b, #6e4a08); }
.countdown-chip {
  position: absolute;
  right: 10px; bottom: 10px;
  z-index: 2;
  font-size: 12px;
  color: var(--gold-light);
  background: rgba(10, 7, 2, 0.78);
  border: 1px solid var(--gold-line);
  padding: 2px 9px;
  border-radius: 14px;
  font-variant-numeric: tabular-nums;
}
.g-info { padding: 12px 14px 14px; }
.g-info h4 { font-size: 16px; font-family: var(--font-display); letter-spacing: 1px; color: var(--gold-light); margin-bottom: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.g-meta { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 10px; }
.g-meta span { font-size: 11.5px; color: var(--text-dim); background: rgba(212, 175, 55, 0.08); border: 1px solid var(--gold-line-soft); padding: 1px 7px; border-radius: 3px; }
.g-actions { display: flex; gap: 8px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: 6px;
  font-size: 13.5px;
  padding: 8px 14px;
  border: 1px solid var(--gold-line);
  color: var(--gold-light);
  background: rgba(212, 175, 55, 0.07);
  transition: 0.25s;
  white-space: nowrap;
}
.btn svg { fill: currentColor; }
.btn:hover { background: rgba(212, 175, 55, 0.18); border-color: var(--gold); }
.btn-gold {
  color: #1c1405;
  font-weight: 700;
  border: 0;
  background: linear-gradient(180deg, var(--gold-bright), var(--gold) 60%, #b58e2c);
  box-shadow: 0 3px 10px rgba(212, 175, 55, 0.3);
}
.btn-gold:hover { filter: brightness(1.08); background: linear-gradient(180deg, var(--gold-bright), var(--gold) 60%, #b58e2c); }
.btn-sm { padding: 5px 11px; font-size: 12.5px; }
.btn-block { flex: 1; }
.btn-download { flex: 1; }

/* ---------- 热门TOP榜 ---------- */
.hot-rank { display: flex; flex-direction: column; }
.rank-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 11px 12px;
  border-bottom: 1px dashed var(--gold-line-soft);
  transition: background 0.25s;
}
.rank-item:last-child { border-bottom: 0; }
.rank-item:hover { background: rgba(212, 175, 55, 0.06); }
.rank-no {
  flex: none;
  width: 34px; height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 900;
  color: var(--text-dim);
  border: 1px solid var(--gold-line);
  border-radius: 6px;
  background: rgba(212, 175, 55, 0.05);
}
.rank-item:nth-child(1) .rank-no { color: #1c1405; background: linear-gradient(180deg, var(--gold-bright), var(--gold)); border-color: var(--gold); box-shadow: 0 0 10px rgba(212,175,55,.5); }
.rank-item:nth-child(2) .rank-no { color: #efe6d0; background: linear-gradient(180deg, #c9c2b5, #8f8a80); border-color: #c9c2b5; }
.rank-item:nth-child(3) .rank-no { color: #f2d9b8; background: linear-gradient(180deg, #c98f4a, #8a5a26); border-color: #c98f4a; }
.rank-thumb { flex: none; width: 92px; aspect-ratio: 16/9; border-radius: 6px; overflow: hidden; border: 1px solid var(--gold-line-soft); }
.rank-thumb img { width: 100%; height: 100%; object-fit: cover; }
.rank-main { flex: 1; min-width: 0; }
.rank-name { font-size: 15px; color: var(--gold-light); font-family: var(--font-display); display: flex; align-items: center; gap: 8px; }
.rank-name a:hover { color: #fff; }
.rank-tags { display: flex; gap: 5px; margin-top: 4px; flex-wrap: wrap; }
.rank-tags span { font-size: 11px; color: var(--text-dim); border: 1px solid var(--gold-line-soft); padding: 0 6px; border-radius: 3px; }
.rank-side { flex: none; text-align: right; }
.rank-side .num { font-family: var(--font-display); font-size: 16px; color: var(--gold-bright); font-weight: 900; }
.rank-side .lbl { font-size: 11px; color: var(--text-dim); }

/* ---------- 分类导航瓦片 ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.cat-tile {
  position: relative;
  padding: 22px 14px 18px;
  text-align: center;
  background: var(--bg-card);
  border: 1px solid var(--gold-line);
  border-radius: var(--radius);
  transition: 0.3s;
  overflow: hidden;
}
.cat-tile::after { content: ""; position: absolute; left: 50%; top: -30px; width: 120px; height: 120px; background: radial-gradient(circle, rgba(212,175,55,.22), transparent 70%); transform: translateX(-50%); }
.cat-tile:hover { transform: translateY(-4px); border-color: var(--gold); box-shadow: var(--shadow-gold); }
.cat-ico {
  width: 58px; height: 58px;
  margin: 0 auto 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 25%, rgba(212,175,55,.35), rgba(212,175,55,.08));
  border: 1px solid var(--gold-line);
}
.cat-ico svg { fill: var(--gold); width: 30px; height: 30px; }
.cat-tile h4 { font-family: var(--font-display); font-size: 17px; letter-spacing: 1px; color: var(--gold-light); margin-bottom: 6px; }
.cat-tile p { font-size: 12.5px; color: var(--text-dim); line-height: 1.55; }
.cat-tile .go { display: inline-block; margin-top: 10px; font-size: 12px; color: var(--gold-deep); border-bottom: 1px dashed var(--gold-line); }

/* ---------- 专区不对称网格 ---------- */
.zone-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 16px; }
.zone-grid .col { display: grid; gap: 16px; align-content: start; }
.zone-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--gold-line);
  transition: 0.3s;
}
.zone-card:hover { border-color: var(--gold); box-shadow: var(--shadow-gold); transform: translateY(-3px); }
.zone-card a.zc-link { display: block; position: relative; }
.zone-card img { width: 100%; aspect-ratio: 16/9; object-fit: cover; transition: transform 0.5s; }
.zone-card:hover img { transform: scale(1.05); }
.zc-mask {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(9, 6, 2, 0.92));
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 14px 16px;
}
.zc-mask h4 { font-family: var(--font-display); font-size: 19px; letter-spacing: 2px; color: var(--gold-light); margin-bottom: 3px; }
.zc-mask p { font-size: 12.5px; color: var(--text-sub); }
.zc-tag {
  position: absolute; top: 12px; right: 12px;
  font-size: 12px; color: #1c1405; font-weight: 700;
  background: linear-gradient(180deg, var(--gold-bright), var(--gold));
  padding: 2px 10px; border-radius: 3px;
}
.zone-card.tall img { aspect-ratio: 8/5; }

/* ---------- 开服表 ---------- */
.kaifu-tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.kaifu-tab {
  padding: 7px 18px;
  font-size: 13.5px;
  color: var(--text-sub);
  background: rgba(212, 175, 55, 0.06);
  border: 1px solid var(--gold-line);
  border-radius: 18px;
  transition: 0.25s;
}
.kaifu-tab:hover { color: var(--gold-bright); }
.kaifu-tab.active { color: #1c1405; font-weight: 700; background: linear-gradient(180deg, var(--gold-bright), var(--gold)); border-color: var(--gold); }
.table-wrap { overflow-x: auto; margin-top: 14px; }
.kaifu-table { width: 100%; min-width: 720px; border-collapse: collapse; font-size: 13.5px; }
.kaifu-table thead th {
  background: linear-gradient(90deg, rgba(212,175,55,.16), rgba(212,175,55,.05));
  color: var(--gold-bright);
  font-weight: 600;
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid var(--gold);
  white-space: nowrap;
}
.kaifu-table tbody td { padding: 10px 12px; border-bottom: 1px dashed var(--gold-line-soft); color: var(--text-sub); white-space: nowrap; }
.kaifu-table tbody tr:hover td { background: rgba(212, 175, 55, 0.05); color: var(--text-main); }
.kaifu-table .gname { color: var(--gold-light); font-weight: 600; }
.kaifu-table .gname a:hover { color: #fff; text-decoration: underline; }
.kaifu-table .t-icon { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; }
.t-open { background: var(--green-ok); box-shadow: 0 0 6px var(--green-ok); }
.t-soon { background: var(--gold); box-shadow: 0 0 6px var(--gold); animation: pulse 1.6s infinite; }
.t-hot { background: var(--red-hot); box-shadow: 0 0 6px var(--red-hot); }
@keyframes pulse { 50% { opacity: 0.35; } }
.kaifu-table .down { color: var(--gold-deep); }
.kaifu-table .down:hover { color: var(--gold-bright); }

/* ---------- 图鉴画廊 ---------- */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.gal-item { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--gold-line); transition: 0.3s; }
.gal-item:hover { border-color: var(--gold); box-shadow: var(--shadow-gold); transform: translateY(-4px); }
.gal-item img { width: 100%; aspect-ratio: 4/3; object-fit: cover; transition: transform 0.5s; }
.gal-item:hover img { transform: scale(1.08); }
.gal-cap {
  position: absolute; inset: auto 0 0 0;
  padding: 22px 12px 9px;
  background: linear-gradient(180deg, transparent, rgba(9, 6, 2, 0.92));
  font-family: var(--font-display);
  font-size: 14.5px;
  color: var(--gold-light);
  letter-spacing: 1px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.gal-cap a { color: var(--gold-deep); font-size: 12px; }
.gal-cap a:hover { color: var(--gold-bright); }

/* ---------- 资讯 ---------- */
.news-grid { display: grid; grid-template-columns: 1.7fr 1fr; gap: 16px; }
.news-list li { display: flex; align-items: center; gap: 12px; padding: 11px 4px; border-bottom: 1px dashed var(--gold-line-soft); }
.news-list li:last-child { border-bottom: 0; }
.news-dot { flex: none; width: 7px; height: 7px; background: var(--gold); transform: rotate(45deg); }
.news-list a { flex: 1; color: var(--text-sub); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; transition: 0.25s; }
.news-list a:hover { color: var(--gold-bright); }
.news-list time { flex: none; font-size: 12px; color: var(--text-dim); font-variant-numeric: tabular-nums; }
.tips-list { display: grid; gap: 10px; }
.tip-card { display: flex; gap: 12px; align-items: center; padding: 11px 13px; background: rgba(212,175,55,.05); border: 1px solid var(--gold-line-soft); border-radius: 8px; transition: 0.25s; }
.tip-card:hover { border-color: var(--gold-line); background: rgba(212,175,55,.09); }
.tip-card .ic { flex: none; width: 38px; height: 38px; border-radius: 50%; background: radial-gradient(circle at 30% 25%, rgba(212,175,55,.4), rgba(212,175,55,.08)); border: 1px solid var(--gold-line); display: flex; align-items: center; justify-content: center; }
.tip-card .ic svg { fill: var(--gold); width: 19px; height: 19px; }
.tip-card h5 { font-size: 14px; color: var(--gold-light); margin-bottom: 2px; }
.tip-card p { font-size: 12px; color: var(--text-dim); line-height: 1.5; }

/* ---------- FAQ 手风琴 ---------- */
.faq-list { max-width: 860px; margin: 0 auto; }
.faq-item { border: 1px solid var(--gold-line); border-radius: 8px; margin-bottom: 10px; background: rgba(20, 14, 6, 0.7); overflow: hidden; }
.faq-q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 18px; background: transparent; border: 0; color: var(--gold-light); font-size: 14.5px; text-align: left; }
.faq-q .q-mark { color: var(--gold); font-family: var(--font-display); font-weight: 900; margin-right: 4px; }
.faq-q .arrow { flex: none; width: 8px; height: 8px; border-right: 2px solid var(--gold); border-bottom: 2px solid var(--gold); transform: rotate(45deg); transition: 0.3s; }
.faq-item.open .arrow { transform: rotate(-135deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.35s ease; }
.faq-a p { padding: 0 18px 14px; font-size: 13.5px; color: var(--text-sub); line-height: 1.8; }

/* ---------- SEO 文本区 ---------- */
.seo-text { padding: 22px 24px; }
.seo-text p { font-size: 13.5px; color: var(--text-sub); line-height: 1.95; text-align: justify; margin-bottom: 12px; }
.seo-text p b { color: var(--gold); font-weight: 600; }
.seo-kws { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.seo-kws a { font-size: 12px; color: var(--text-dim); border: 1px solid var(--gold-line-soft); padding: 3px 10px; border-radius: 14px; transition: 0.25s; }
.seo-kws a:hover { color: var(--gold-bright); border-color: var(--gold-line); }

/* ---------- 友情链接 ---------- */
.links-strip { display: flex; flex-wrap: wrap; gap: 10px; padding: 16px 18px; }
.links-strip a { font-size: 12.5px; color: var(--text-dim); border: 1px solid var(--gold-line-soft); padding: 4px 12px; border-radius: 4px; transition: 0.25s; }
.links-strip a:hover { color: var(--gold-bright); border-color: var(--gold-line); }

/* ---------- 页脚 ---------- */
.site-footer {
  margin-top: 46px;
  background: linear-gradient(180deg, rgba(15, 10, 4, 0.97), rgba(8, 5, 2, 0.99));
  border-top: 2px solid var(--gold);
  padding: 34px 0 26px;
}
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 30px; margin-bottom: 26px; }
.footer-col h5 { font-family: var(--font-display); font-size: 16px; color: var(--gold-bright); letter-spacing: 2px; margin-bottom: 13px; display: flex; align-items: center; gap: 8px; }
.footer-col h5::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, var(--gold-line), transparent); }
.footer-col p { font-size: 12.8px; color: var(--text-dim); line-height: 1.85; }
.footer-col ul li { margin-bottom: 7px; }
.footer-col ul a { font-size: 13px; color: var(--text-sub); transition: 0.25s; }
.footer-col ul a:hover { color: var(--gold-bright); padding-left: 3px; }
.footer-bottom { border-top: 1px solid var(--gold-line-soft); padding-top: 18px; text-align: center; font-size: 12.5px; color: var(--text-dim); line-height: 2; }
.footer-bottom .domain { color: var(--gold); font-weight: 700; letter-spacing: 1px; }
.footer-bottom a { color: var(--text-dim); }
.footer-bottom a:hover { color: var(--gold-bright); }

/* ---------- 面包屑 ---------- */
.crumbs { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-dim); margin: 20px 0 0; flex-wrap: wrap; }
.crumbs a { color: var(--text-sub); transition: 0.25s; }
.crumbs a:hover { color: var(--gold-bright); }
.crumbs .sep { color: var(--gold-dark); }
.crumbs .cur { color: var(--gold); }

/* ---------- 列表页布局 ---------- */
.page-grid { display: grid; grid-template-columns: 1fr 320px; gap: 18px; margin-top: 18px; align-items: start; }
.game-list { display: grid; gap: 14px; }
.list-card { display: flex; gap: 16px; background: var(--bg-card); border: 1px solid var(--gold-line); border-radius: var(--radius); overflow: hidden; padding: 14px; transition: 0.3s; position: relative; }
.list-card:hover { border-color: var(--gold); box-shadow: var(--shadow-gold); transform: translateY(-2px); }
.list-card .lc-cover { flex: none; width: 250px; aspect-ratio: 16/9; border-radius: 8px; overflow: hidden; border: 1px solid var(--gold-line-soft); position: relative; }
.list-card .lc-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.list-card:hover .lc-cover img { transform: scale(1.06); }
.lc-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.lc-body h3 { font-family: var(--font-display); font-size: 19px; letter-spacing: 1px; color: var(--gold-light); margin-bottom: 6px; display: flex; align-items: center; gap: 10px; }
.lc-desc { font-size: 13px; color: var(--text-sub); line-height: 1.7; margin-bottom: 10px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.lc-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 11px; }
.lc-meta span { font-size: 12px; color: var(--text-dim); border: 1px solid var(--gold-line-soft); background: rgba(212,175,55,.05); padding: 2px 9px; border-radius: 3px; }
.lc-meta span b { color: var(--gold-bright); font-weight: 600; }
.lc-actions { margin-top: auto; display: flex; gap: 8px; }

/* 侧栏 */
.sidebar { display: grid; gap: 16px; position: sticky; top: 66px; }
.side-block { background: var(--bg-card); border: 1px solid var(--gold-line); border-radius: var(--radius); overflow: hidden; }
.side-block .sb-head { padding: 12px 16px; border-bottom: 1px solid var(--gold-line-soft); font-family: var(--font-display); font-size: 16px; letter-spacing: 2px; color: var(--gold-bright); display: flex; align-items: center; gap: 8px; }
.side-block .sb-head svg { fill: var(--gold); }
.side-block .sb-body { padding: 12px 14px; }
.side-links li { margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }
.side-links li::before { content: ""; width: 6px; height: 6px; border: 1px solid var(--gold); transform: rotate(45deg); flex: none; }
.side-links a { font-size: 13.5px; color: var(--text-sub); transition: 0.25s; }
.side-links a:hover { color: var(--gold-bright); padding-left: 3px; }
.side-rank .rank-item { padding: 8px 2px; }
.side-rank .rank-thumb { width: 76px; }
.down-box { text-align: center; padding: 20px 16px; }
.down-box .big { font-family: var(--font-display); font-size: 20px; color: var(--gold-light); letter-spacing: 1px; margin-bottom: 6px; }
.down-box p { font-size: 12.5px; color: var(--text-dim); margin-bottom: 14px; }
.down-box .btn { width: 100%; padding: 12px; font-size: 15px; }

/* ---------- 文章页 ---------- */
.article-wrap { max-width: 900px; margin: 18px auto 0; background: var(--bg-card); border: 1px solid var(--gold-line); border-radius: var(--radius); overflow: hidden; }
.article-head { padding: 26px 30px 18px; text-align: center; border-bottom: 1px solid var(--gold-line-soft); }
.article-head h1 { font-family: var(--font-display); font-size: 26px; letter-spacing: 2px; color: var(--gold-light); line-height: 1.5; }
.article-meta { margin-top: 12px; display: flex; justify-content: center; gap: 18px; font-size: 12.5px; color: var(--text-dim); flex-wrap: wrap; }
.article-body { padding: 26px 34px 34px; }
.article-body p { font-size: 14.5px; color: var(--text-sub); line-height: 2; margin-bottom: 15px; text-align: justify; }
.article-body h2 { font-family: var(--font-display); font-size: 20px; color: var(--gold-bright); letter-spacing: 1px; margin: 26px 0 12px; padding-left: 12px; border-left: 3px solid var(--gold); }
.article-body h3 { font-size: 16px; color: var(--gold-light); margin: 18px 0 8px; }
.article-body ul { margin-bottom: 15px; }
.article-body ul li { padding: 4px 0 4px 20px; position: relative; font-size: 14px; color: var(--text-sub); line-height: 1.8; }
.article-body ul li::before { content: ""; position: absolute; left: 4px; top: 13px; width: 7px; height: 7px; border: 1px solid var(--gold); transform: rotate(45deg); }
.article-body .fig { margin: 18px 0; border-radius: 8px; overflow: hidden; border: 1px solid var(--gold-line); }
.article-body .fig img { width: 100%; }
.article-body .fig figcaption { font-size: 12px; color: var(--text-dim); text-align: center; padding: 8px; background: rgba(212,175,55,.05); }
.article-body blockquote { border-left: 3px solid var(--gold); background: rgba(212,175,55,.06); padding: 12px 16px; margin: 16px 0; font-size: 13.5px; color: var(--text-sub); }
.article-body table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 13.5px; }
.article-body table th, .article-body table td { border: 1px solid var(--gold-line-soft); padding: 8px 12px; text-align: left; }
.article-body table th { background: rgba(212,175,55,.1); color: var(--gold-bright); }
.article-body table td { color: var(--text-sub); }
.article-tags { display: flex; flex-wrap: wrap; gap: 8px; padding: 16px 34px; border-top: 1px solid var(--gold-line-soft); }
.article-tags a { font-size: 12.5px; color: var(--text-dim); border: 1px solid var(--gold-line-soft); padding: 3px 11px; border-radius: 14px; transition: 0.25s; }
.article-tags a:hover { color: var(--gold-bright); border-color: var(--gold-line); }

/* ---------- 游戏详情页 ---------- */
.game-hero { margin-top: 18px; background: var(--bg-card); border: 1px solid var(--gold-line); border-radius: var(--radius); overflow: hidden; }
.game-hero-inner { display: flex; gap: 24px; padding: 24px; }
.game-hero .gh-cover { flex: none; width: 420px; max-width: 46%; aspect-ratio: 16/9; border-radius: 10px; overflow: hidden; border: 1px solid var(--gold-line-soft); position: relative; }
.game-hero .gh-cover img { width: 100%; height: 100%; object-fit: cover; }
.game-hero .gh-info { flex: 1; min-width: 0; }
.game-hero .gh-info h1 { font-family: var(--font-display); font-size: 28px; letter-spacing: 2px; color: var(--gold-light); margin-bottom: 4px; }
.game-hero .gh-ver { font-size: 13px; color: var(--gold-deep); margin-bottom: 12px; letter-spacing: 1px; }
.gh-specs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px 18px; margin: 12px 0 16px; }
.gh-specs div { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; padding: 6px 0; border-bottom: 1px dashed var(--gold-line-soft); }
.gh-specs dt { color: var(--text-dim); }
.gh-specs dd { color: var(--text-main); font-weight: 600; text-align: right; }
.gh-specs dd.gold { color: var(--gold-bright); }
.gh-btns { display: flex; gap: 12px; flex-wrap: wrap; }
.gh-btns .btn { padding: 12px 26px; font-size: 15px; }
.game-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.game-tags span { font-size: 12px; color: var(--text-dim); border: 1px solid var(--gold-line-soft); background: rgba(212,175,55,.05); padding: 2px 9px; border-radius: 3px; }
.screenshots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.screenshots figure { border: 1px solid var(--gold-line); border-radius: 8px; overflow: hidden; }
.screenshots img { width: 100%; aspect-ratio: 16/9; object-fit: cover; transition: transform 0.5s; }
.screenshots figure:hover img { transform: scale(1.05); }
.screenshots figcaption { font-size: 12px; color: var(--text-dim); text-align: center; padding: 7px; background: rgba(212,175,55,.05); }
.feature-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.feature-item { display: flex; gap: 11px; align-items: flex-start; padding: 13px 15px; background: rgba(212,175,55,.05); border: 1px solid var(--gold-line-soft); border-radius: 8px; transition: 0.25s; }
.feature-item:hover { border-color: var(--gold-line); }
.feature-item .fi-ic { flex: none; width: 34px; height: 34px; border-radius: 50%; background: radial-gradient(circle at 30% 25%, rgba(212,175,55,.4), rgba(212,175,55,.08)); border: 1px solid var(--gold-line); display: flex; align-items: center; justify-content: center; }
.feature-item .fi-ic svg { fill: var(--gold); width: 17px; height: 17px; }
.feature-item h4 { font-size: 14px; color: var(--gold-light); margin-bottom: 3px; }
.feature-item p { font-size: 12.5px; color: var(--text-dim); line-height: 1.6; }

/* ---------- 404 ---------- */
.error-page { text-align: center; padding: 90px 20px; }
.error-page .code { font-family: var(--font-display); font-size: 110px; font-weight: 900; line-height: 1; background: linear-gradient(180deg, var(--gold-light), var(--gold) 60%, var(--gold-deep)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.error-page h1 { font-family: var(--font-display); font-size: 24px; letter-spacing: 3px; color: var(--gold-light); margin: 12px 0 8px; }
.error-page p { color: var(--text-dim); font-size: 14px; margin-bottom: 24px; }

/* ---------- 返回顶部 ---------- */
.back-top {
  position: fixed;
  right: 22px; bottom: 26px;
  z-index: 950;
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 1px solid var(--gold);
  background: linear-gradient(180deg, #241a08, #120c04);
  color: var(--gold);
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(14px);
  pointer-events: none;
  transition: 0.35s;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
}
.back-top.show { opacity: 1; transform: translateY(0); pointer-events: auto; }
.back-top:hover { background: linear-gradient(180deg, #3a2a0c, #1a1204); box-shadow: 0 0 18px rgba(212, 175, 55, 0.35); }

/* 屏幕阅读器/SEO 专用 */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- 滚动显现 ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* 免打扰动效 */
@media (prefers-reduced-motion: reduce) {
  .marquee-track, .hero-frame::before { animation: none !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ============ 响应式 ============ */
@media (max-width: 1080px) {
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .page-grid { grid-template-columns: 1fr; }
  .sidebar { position: static; grid-template-columns: repeat(2, 1fr); }
  .game-hero-inner { flex-direction: column; }
  .game-hero .gh-cover { width: 100%; max-width: 100%; }
}

@media (max-width: 860px) {
  :root { --header-h: 64px; }
  .header-inner { flex-wrap: wrap; padding: 10px 0; }
  .header-search { order: 3; max-width: none; flex-basis: 100%; }
  .header-hot { display: none; }
  .brand-name .zh { font-size: 24px; letter-spacing: 3px; }
  .brand-logo { width: 48px; height: 48px; }
  .nav-toggle { display: flex; }
  .nav-list {
    position: fixed;
    top: 0; right: -86%;
    width: 82%;
    max-width: 340px;
    height: 100vh;
    flex-direction: column;
    background: linear-gradient(180deg, #191206, #0e0a03);
    border-left: 2px solid var(--gold);
    padding: 70px 20px 30px;
    gap: 4px;
    z-index: 960;
    transition: right 0.35s ease;
    overflow-y: auto;
  }
  .nav-list.open { right: 0; box-shadow: -10px 0 40px rgba(0, 0, 0, 0.6); }
  .nav-list a { padding: 14px 14px; font-size: 16px; }
  .nav-list a::after { display: none; }
  .nav-hot { display: none; }
  .nav-close { display: flex; }
  .zone-grid { grid-template-columns: 1fr; }
  .news-grid { grid-template-columns: 1fr; }
  .feature-list { grid-template-columns: 1fr; }
  .screenshots { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; gap: 22px; }
  .list-card { flex-direction: column; }
  .list-card .lc-cover { width: 100%; }
  .topbar-links a span { display: none; }
}

@media (max-width: 560px) {
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .sec-title { font-size: 21px; letter-spacing: 2px; }
  .sec-line { flex-basis: 34px; }
  .g-card { flex-basis: 230px; }
  .rank-thumb { width: 74px; }
  .article-body { padding: 20px 18px; }
  .article-head { padding: 20px 16px 14px; }
  .article-head h1 { font-size: 21px; }
  .game-hero-inner { padding: 16px; }
  .game-hero .gh-info h1 { font-size: 22px; }
  .hero-banner { aspect-ratio: 3/1.6; }
  .hero-frame { border-radius: 10px; }
  .crumbs { margin-top: 14px; }
  .panel-body { padding: 12px 12px; }
  .sidebar { grid-template-columns: 1fr; }
  .back-top { right: 14px; bottom: 16px; width: 42px; height: 42px; }
  .kaifu-tab { padding: 6px 13px; font-size: 12.5px; }
}
