/* 本地游戏库 —— 公共样式（现代浅色风 · 仿源站设计语言 · 无外部资源） */
:root {
  --bg: #f3f5f9;
  --card: #ffffff;
  --card2: #f6f8fc;
  --border: #e6eaf2;
  --text: #1c2430;
  --muted: #66728a;
  --primary: #3b82f6;
  --primary-deep: #2563eb;
  --primary-dim: rgba(59, 130, 246, 0.10);
  --accent: #ff5c72;
  --accent-dim: rgba(255, 92, 114, 0.10);
  --amber: #f59e0b;
  --amber-dim: #fff7e8;
  --danger: #ef4444;
  --ok: #16a34a;
  --radius: 14px;
  --shadow-s: 0 2px 10px rgba(23, 43, 99, 0.06);
  --shadow-m: 0 12px 32px rgba(23, 43, 99, 0.12);
  --nav-h: 62px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: -apple-system, "Segoe UI", "Microsoft YaHei", "PingFang SC", "Noto Sans SC", sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.65;
  min-height: 100vh;
}
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: none; }
::selection { background: var(--primary); color: #fff; }

/* 入场动效 */
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes popIn { from { opacity: 0; transform: scale(0.96); } to { opacity: 1; transform: none; } }

/* —— 顶部导航 —— */
.nav {
  position: sticky; top: 0; z-index: 50;
  height: var(--nav-h);
  display: flex; align-items: center; gap: 16px;
  padding: 0 22px;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.brand { display: flex; align-items: center; gap: 8px; font-size: 17px; font-weight: 800; color: var(--text); white-space: nowrap; }
.brand::before {
  content: ""; width: 26px; height: 26px; flex: 0 0 auto;
  background: url("/assets/logo.svg") center / 26px 26px no-repeat;
}
.brand b { color: var(--primary); }
.nav-search { flex: 1; max-width: 460px; display: flex; height: 38px; border-radius: 999px; overflow: hidden;
  border: 1.5px solid var(--border); background: var(--card2); transition: border-color .2s, box-shadow .2s, background .2s; }
.nav-search:focus-within { border-color: var(--primary); background: #fff; box-shadow: 0 0 0 4px var(--primary-dim); }
.nav-search input { flex: 1; padding: 0 16px; border: none; outline: none; background: transparent; color: var(--text); font-size: 13.5px; }
.nav-search button {
  padding: 0 18px; border: none; cursor: pointer; font-size: 13px; font-weight: 700;
  background: var(--primary); color: #fff; transition: background .2s;
}
.nav-search button:hover { background: var(--primary-deep); }
.nav-links { display: flex; align-items: center; gap: 6px; margin-left: auto; white-space: nowrap; }
.nav-links a { color: var(--muted); font-size: 13.5px; font-weight: 500; padding: 7px 13px; border-radius: 999px; transition: color .2s, background .2s; }
.nav-links a:hover { color: var(--primary); background: var(--primary-dim); }
.nav-links a.active { color: var(--primary); background: var(--primary-dim); font-weight: 700; }
.nav-login { color: #fff !important; background: linear-gradient(135deg, var(--primary), #7c5cff); font-weight: 700 !important;
  box-shadow: 0 4px 14px rgba(124, 92, 255, .35); }
.nav-login:hover { filter: brightness(1.08); color: #fff !important; background: linear-gradient(135deg, var(--primary), #7c5cff) !important; }
.nav-user { display: inline-flex; align-items: center; gap: 2px; margin-left: 4px; padding-left: 10px;
  border-left: 1px solid var(--border); }
.nav-user a:first-child { color: var(--primary); font-weight: 700; }
.nav-user a:last-child { font-size: 12px; opacity: .75; }
.nav-user a:last-child:hover { opacity: 1; }

/* —— 布局容器 —— */
.wrap { max-width: 1240px; margin: 0 auto; padding: 24px 20px 60px; }
.page-title { font-size: 22px; font-weight: 800; margin-bottom: 4px; }
.page-sub { color: var(--muted); font-size: 13px; margin-bottom: 18px; }
/* —— 全部游戏页内搜索（盒子里导航被隐藏时也能搜） —— */
.page-search { display: flex; height: 46px; max-width: 560px; margin-bottom: 18px;
  border-radius: 999px; overflow: hidden; border: 1.5px solid var(--border);
  background: var(--card2); transition: border-color .2s, box-shadow .2s, background .2s; }
.page-search:focus-within { border-color: var(--primary); background: #fff; box-shadow: 0 0 0 4px var(--primary-dim); }
.page-search input { flex: 1; padding: 0 20px; border: none; outline: none; background: transparent; color: var(--text); font-size: 14.5px; }
.page-search input::placeholder { color: var(--muted); }
.page-search button { padding: 0 26px; border: none; cursor: pointer; font-size: 14px; font-weight: 700;
  background: var(--primary); color: #fff; transition: background .2s; }
.page-search button:hover { background: var(--primary-deep); }
.section-title { font-size: 17px; font-weight: 800; margin: 30px 0 16px; display: flex; align-items: center; gap: 10px; }
.section-title::before { content: ""; width: 4px; height: 18px; border-radius: 2px; background: linear-gradient(180deg, var(--primary), var(--accent)); }
.section-title small { color: var(--muted); font-weight: 400; font-size: 12px; }

/* —— Hero（首页横幅） —— */
.hero {
  position: relative; overflow: hidden;
  border-radius: 20px;
  background: linear-gradient(115deg, #2563eb 0%, #3b82f6 42%, #7c3aed 78%, #ff5c72 110%);
  color: #fff;
  padding: 44px 40px;
  box-shadow: 0 18px 44px rgba(37, 99, 235, 0.28);
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(600px 300px at 85% -10%, rgba(255,255,255,0.28), transparent 60%),
              radial-gradient(500px 260px at -5% 110%, rgba(255,255,255,0.14), transparent 60%);
}
.hero > * { position: relative; z-index: 1; }
.hero h1 { font-size: 28px; font-weight: 800; letter-spacing: 0.5px; }
.hero p { color: rgba(255,255,255,0.88); margin-top: 10px; max-width: 640px; font-size: 14px; }
.hero-stats { display: flex; gap: 12px; margin-top: 22px; flex-wrap: wrap; }
.hero-stats div {
  display: flex; align-items: baseline; gap: 6px;
  background: rgba(255,255,255,0.16); backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.25); border-radius: 999px; padding: 7px 16px;
  font-size: 12.5px; color: rgba(255,255,255,0.92);
}
.hero-stats b { font-size: 18px; font-weight: 800; color: #fff; }
.hero-search { display: flex; gap: 10px; margin-top: 24px; max-width: 620px; }
.hero-search input {
  flex: 1; height: 50px; padding: 0 22px; border: none; outline: none;
  border-radius: 999px; background: #fff; color: var(--text); font-size: 14.5px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.18);
  transition: box-shadow .25s, transform .25s;
}
.hero-search input:focus { box-shadow: 0 10px 30px rgba(0,0,0,0.26); transform: translateY(-1px); }
.hero-search input::placeholder { color: #9aa5b8; }
.hero-search button {
  height: 50px; padding: 0 34px; border: none; border-radius: 999px; cursor: pointer;
  background: #fff; color: var(--primary-deep); font-size: 15px; font-weight: 800;
  box-shadow: 0 8px 24px rgba(0,0,0,0.18);
  transition: transform .25s, box-shadow .25s, color .2s;
}
.hero-search button:hover { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(0,0,0,0.24); color: var(--primary); }

/* —— 分类网格 —— */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(148px, 1fr)); gap: 12px; }
.cat-card {
  display: flex; flex-direction: column; gap: 2px;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 15px 16px; box-shadow: var(--shadow-s);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.cat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-m); border-color: var(--primary); }
.cat-card .cn { font-size: 14px; font-weight: 700; color: var(--text); }
.cat-card:hover .cn { color: var(--primary); }
.cat-card .cc { font-size: 12px; color: var(--muted); }

/* —— 游戏卡片网格 —— */
.game-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(218px, 1fr)); gap: 14px; }
.game-card {
  display: flex; flex-direction: column; gap: 10px;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 10px; min-height: 108px; box-shadow: var(--shadow-s);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
  animation: fadeUp 0.5s ease both;
}
.game-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-m); border-color: var(--primary); }
.gc-cover { position: relative; width: 100%; aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden; background: var(--card2); border: 1px solid var(--border); }
.gc-cover img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s ease; }
.game-card:hover .gc-cover img { transform: scale(1.06); }
.gc-cover.placeholder {
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--primary-dim), var(--accent-dim));
  color: var(--primary); font-size: 32px; font-weight: 800;
}
.game-card .gt { font-size: 14px; font-weight: 700; color: var(--text); line-height: 1.45;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.game-card:hover .gt { color: var(--primary); }
.game-card .gm { margin-top: auto; display: flex; align-items: center; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; padding: 2.5px 10px; border-radius: 999px;
  font-size: 11.5px; font-weight: 600; background: var(--primary-dim); color: var(--primary);
}
.chip.plain { background: var(--card2); color: var(--muted); border: 1px solid var(--border); }
.src-badge {
  display: inline-flex; align-items: center; padding: 2.5px 9px; border-radius: 999px;
  font-size: 11px; font-weight: 600; background: var(--card2); color: var(--muted);
  border: 1px solid var(--border); white-space: nowrap;
}
.src-badge.src2 { background: var(--accent-dim); color: var(--accent); }
.link-badge { font-size: 11.5px; color: var(--muted); margin-left: auto; }
.link-badge b { color: var(--amber); }

/* —— 详情页：两栏布局（左正文 / 右下载） —— */
.detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 22px; align-items: start; }
.detail-main { min-width: 0; }
.detail-side { position: sticky; top: 78px; display: flex; flex-direction: column; gap: 14px; }

.detail-head { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px 26px; box-shadow: var(--shadow-s); animation: fadeUp 0.4s ease both; }
.detail-head h1 { font-size: 22px; font-weight: 800; line-height: 1.45; }
.detail-meta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; color: var(--muted); font-size: 13px; align-items: center; }
.orig-title { color: var(--muted); font-size: 12.5px; margin-top: 10px; }
.title-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 12px; }
.title-tag { font-size: 12px; line-height: 1; padding: 6px 10px; border-radius: 999px;
  color: var(--primary); background: var(--primary-dim); border: 1px solid rgba(124, 92, 255, .25);
  white-space: nowrap; }
.media-panel, .intro-panel {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px 26px; margin-top: 16px; box-shadow: var(--shadow-s); animation: fadeUp 0.5s ease both;
}
.media-panel h2, .intro-panel h2 { font-size: 16px; font-weight: 800; margin-bottom: 14px; }

/* 大图竖向排列（仿源站，不再用小缩略图） */
.shots-large { display: flex; flex-direction: column; gap: 14px; }
.shot-large { display: block; border-radius: 12px; overflow: hidden; border: 1px solid var(--border); background: var(--card2); transition: border-color .2s, box-shadow .25s, transform .25s; }
.shot-large:hover { border-color: var(--primary); box-shadow: var(--shadow-m); transform: translateY(-2px); }
.shot-large img { width: 100%; height: auto; display: block; }

/* —— 右侧下载面板（置顶吸顶，醒目） —— */
.dl-panel {
  background: var(--card); border: 1px solid var(--border); border-radius: 16px;
  overflow: hidden; box-shadow: var(--shadow-m); animation: popIn 0.4s ease both;
}
.dl-panel-head {
  display: flex; align-items: center; gap: 10px; padding: 15px 18px;
  background: linear-gradient(115deg, var(--primary-deep), var(--primary) 60%, #7c3aed 120%);
  color: #fff;
}
.dl-panel-head h2 { font-size: 15.5px; font-weight: 800; }
.dl-badge { background: rgba(255,255,255,0.22); border: 1px solid rgba(255,255,255,0.35); color: #fff;
  font-size: 11.5px; font-weight: 700; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.dl-panel .hint { color: var(--muted); font-size: 12px; margin: 12px 18px 4px; line-height: 1.6; }

/* 解压码横幅（核心信息，显眼 + 一键复制） */
.unzip-banner {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin: 12px 18px 0; padding: 12px 14px;
  background: linear-gradient(115deg, var(--amber-dim), #fdeef2);
  border: 1.5px dashed var(--amber); border-radius: 12px;
}
.unzip-banner .ub-label { font-size: 12.5px; font-weight: 700; color: #b45309; }
.unzip-banner .ub-code { font-size: 17px; font-weight: 800; color: #92400e; font-family: Consolas, Menlo, monospace; letter-spacing: 1px; }
.unzip-banner .ub-copy {
  margin-left: auto; padding: 6px 14px; border: none; border-radius: 8px; cursor: pointer;
  background: var(--amber); color: #fff; font-size: 12.5px; font-weight: 700;
  transition: transform .2s, filter .2s;
}
.unzip-banner .ub-copy:hover { transform: translateY(-1px); filter: brightness(1.06); }

.link-list { padding: 6px 18px 14px; }
.link-row { display: flex; flex-direction: column; gap: 8px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.link-row:last-child { border-bottom: none; }
.link-top { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; }
.link-text { font-size: 13.5px; font-weight: 600; color: var(--text); line-height: 1.5; }
.link-top .bad, .link-text .bad { color: var(--danger); font-size: 12px; font-weight: 400; margin-left: 8px; }
.link-pwd { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); }
.link-pwd code { padding: 2px 8px; border-radius: 6px; background: var(--card2); border: 1px solid var(--border);
  color: var(--text); font-weight: 700; font-family: Consolas, Menlo, monospace; }
.link-actions { display: flex; gap: 8px; }
.link-go {
  flex: 1 1 auto; display: block; text-align: center;
  padding: 10px 16px; border-radius: 10px; font-size: 13.5px; font-weight: 800;
  background: linear-gradient(115deg, var(--primary-deep), var(--primary)); color: #fff;
  box-shadow: 0 4px 14px rgba(59, 130, 246, 0.32);
  transition: transform .2s, box-shadow .2s, filter .2s;
}
a.link-go:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(59, 130, 246, 0.4); }
.link-go.bad { flex: 1 1 auto; background: var(--card2); color: var(--muted); border: 1px solid var(--border); box-shadow: none; pointer-events: none; }
.side-actions { display: flex; align-items: center; gap: 10px; }
.side-actions .muted { color: var(--muted); font-size: 12.5px; }

/* 简介排版（u-text-format 风格） */
.intro { color: var(--text); font-size: 14px; line-height: 1.9; word-break: break-word; }
.intro > :first-child { margin-top: 0; }
.intro > :last-child { margin-bottom: 0; }
.intro h3, .intro h4 { color: var(--text); font-weight: 800; line-height: 1.4; margin: 20px 0 10px; }
.intro h3 { font-size: 17px; padding-left: 10px; border-left: 4px solid var(--primary); }
.intro h4 { font-size: 15.5px; }
.intro p { margin: 0 0 10px; }
.intro strong, .intro b { color: var(--primary-deep); font-weight: 700; }
.intro em, .intro i { font-style: italic; }
.intro ul, .intro ol { margin: 0 0 12px; padding-left: 22px; }
.intro li { margin: 4px 0; }
.intro a { color: var(--primary); }
.intro img { max-width: 100%; height: auto; border-radius: 10px; margin: 8px 0; display: block; }
.intro blockquote { border-left: 3px solid var(--primary); background: var(--primary-dim); border-radius: 0 10px 10px 0; padding: 10px 14px; color: var(--muted); margin: 8px 0; }
.vid { margin-bottom: 12px; border-radius: 12px; overflow: hidden; border: 1px solid var(--border); background: #000; }
.vid video { width: 100%; max-height: 520px; display: block; background: #000; }

/* —— 按钮 —— */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 9px 18px;
  border-radius: 10px; border: 1px solid var(--border); background: var(--card);
  color: var(--text); font-size: 13.5px; font-weight: 600; cursor: pointer;
  transition: transform .2s, box-shadow .2s, background .2s, border-color .2s, color .2s;
}
.btn:hover { background: var(--primary-dim); border-color: var(--primary); color: var(--primary); transform: translateY(-1px); box-shadow: var(--shadow-s); }
.btn.primary { background: linear-gradient(115deg, var(--primary-deep), var(--primary)); border: none; color: #fff; font-weight: 700; box-shadow: 0 4px 14px rgba(59,130,246,0.32); }
.btn.primary:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(59,130,246,0.4); background: linear-gradient(115deg, var(--primary-deep), var(--primary)); }
.btn.danger { color: var(--danger); }
.btn.danger:hover { background: rgba(239, 68, 68, 0.08); border-color: var(--danger); color: var(--danger); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn.small { padding: 5px 12px; font-size: 12.5px; }

/* —— 表单 —— */
.form-panel { max-width: 400px; margin: 30px auto; background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 28px 30px; box-shadow: var(--shadow-m); animation: popIn 0.4s ease both; }
.form-panel h2 { font-size: 19px; font-weight: 800; margin-bottom: 18px; }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; font-weight: 600; }
.field input, .field textarea, .field select {
  width: 100%; padding: 10px 14px; background: var(--card2); border: 1.5px solid var(--border);
  border-radius: 10px; color: var(--text); outline: none; font-size: 14px; font-family: inherit;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.field input:focus, .field textarea:focus { border-color: var(--primary); background: #fff; box-shadow: 0 0 0 4px var(--primary-dim); }
.form-msg { font-size: 13px; margin-top: 10px; min-height: 18px; }
.form-msg.err { color: var(--danger); }
.form-msg.ok { color: var(--ok); }
.form-switch { text-align: center; font-size: 13px; color: var(--muted); margin-top: 12px; }
.form-switch a { cursor: pointer; color: var(--primary); font-weight: 600; }

/* —— 筛选条 —— */
.filter-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 18px; }
.cat-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.cat-tab {
  padding: 6px 15px; border-radius: 999px; border: 1px solid var(--border);
  background: var(--card); color: var(--muted); font-size: 12.5px; font-weight: 500; cursor: pointer;
  transition: all .2s;
}
.cat-tab:hover { color: var(--primary); border-color: var(--primary); transform: translateY(-1px); box-shadow: var(--shadow-s); }
.cat-tab.on { background: linear-gradient(115deg, var(--primary-deep), var(--primary)); border-color: transparent; color: #fff; font-weight: 700; box-shadow: 0 4px 14px rgba(59,130,246,0.3); }
.filter-right { margin-left: auto; display: flex; gap: 10px; align-items: center; }
.filter-right select {
  padding: 8px 12px; background: var(--card); border: 1px solid var(--border);
  border-radius: 10px; color: var(--text); font-size: 13px; outline: none; cursor: pointer;
  transition: border-color .2s;
}
.filter-right select:hover { border-color: var(--primary); }

/* —— 分页 —— */
.pager { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 26px; flex-wrap: wrap; }
.pager button, .pager span { min-width: 36px; height: 36px; padding: 0 10px; border-radius: 10px; }
.pager button { border: 1px solid var(--border); background: var(--card); color: var(--text); cursor: pointer; font-size: 13px; font-weight: 600; transition: all .2s; }
.pager button:hover:not(:disabled) { border-color: var(--primary); color: var(--primary); transform: translateY(-1px); box-shadow: var(--shadow-s); }
.pager button:disabled { opacity: 0.4; cursor: not-allowed; }
.pager .cur { background: linear-gradient(115deg, var(--primary-deep), var(--primary)); color: #fff; font-weight: 700; border: none; }
.pager .info { display: inline-flex; align-items: center; color: var(--muted); font-size: 12.5px; }

/* —— 个人中心 —— */
.me-head { display: flex; align-items: center; gap: 16px; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px 24px; margin-bottom: 18px; box-shadow: var(--shadow-s); }
.avatar { width: 54px; height: 54px; border-radius: 50%; color: #fff;
  background: linear-gradient(135deg, var(--primary), #7c3aed 60%, var(--accent));
  display: flex; align-items: center; justify-content: center; font-size: 22px; font-weight: 800;
  box-shadow: 0 6px 16px rgba(59,130,246,0.35); }
.me-head .un { font-size: 16px; font-weight: 800; }
.me-head .um { color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.me-head .actions { margin-left: auto; display: flex; gap: 10px; }
.list-row {
  display: flex; align-items: center; gap: 12px; padding: 13px 16px;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 10px;
  box-shadow: var(--shadow-s); transition: transform .2s, box-shadow .2s, border-color .2s;
}
.list-row:hover { transform: translateY(-2px); box-shadow: var(--shadow-m); border-color: var(--primary); }
.list-row .lt { flex: 1; font-size: 14px; color: var(--text); font-weight: 600;
  display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.list-row a.lt:hover { color: var(--primary); }
.list-row .lm { color: var(--muted); font-size: 12px; white-space: nowrap; }
.list-row .lc { width: 48px; height: 48px; border-radius: 10px; overflow: hidden; flex: 0 0 auto; background: var(--card2); border: 1px solid var(--border); }
.list-row .lc img { width: 100%; height: 100%; object-fit: cover; display: block; }
.list-row .lc.placeholder { display: flex; align-items: center; justify-content: center; color: var(--primary); font-weight: 800; font-size: 16px; }

/* —— 页脚 —— */
.footer { border-top: 1px solid var(--border); padding: 24px 20px 32px; text-align: center; color: var(--muted); font-size: 12.5px; background: var(--card); }
.footer a { color: var(--muted); margin: 0 8px; }
.footer a:hover { color: var(--primary); }
.footer .footer-text { margin-bottom: 10px; }
.footer .footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 14px; margin-bottom: 10px; }
.footer .footer-links a { margin: 0; }
.footer .footer-copy { opacity: 0.8; }

/* —— 文章页（免责声明 / FAQ）—— */
.doc { max-width: 880px; }
.doc h1 { font-size: 26px; font-weight: 800; margin: 10px 0 6px; }
.doc .doc-lead { color: var(--muted); margin-bottom: 26px; }
.doc h2 { font-size: 17px; font-weight: 800; margin: 28px 0 10px; padding-left: 10px; border-left: 4px solid var(--primary); line-height: 1.2; }
.doc p { line-height: 1.85; color: var(--text); margin: 8px 0; }
.doc ul { line-height: 1.9; padding-left: 22px; margin: 8px 0; }
.doc ul li { list-style: disc; }
.doc .notice { background: var(--card2); border: 1px solid var(--border); border-radius: 12px; padding: 14px 18px; margin: 14px 0; line-height: 1.8; }
.doc details { background: var(--card); border: 1px solid var(--border); border-radius: 12px; margin: 10px 0; overflow: hidden; }
.doc details summary { cursor: pointer; padding: 14px 18px; font-weight: 700; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.doc details summary::-webkit-details-marker { display: none; }
.doc details summary::after { content: "+"; color: var(--primary); font-size: 18px; font-weight: 800; flex: none; }
.doc details[open] summary::after { content: "−"; }
.doc details .faq-body { padding: 0 18px 16px; color: var(--text); line-height: 1.85; }
.doc details .faq-body p { margin: 6px 0; }

/* —— T18：灯箱 / 空态 / 个人中心 Tab / 相似推荐 —— */
.lightbox { position: fixed; inset: 0; z-index: 300; background: rgba(10, 14, 22, 0.88); display: none; align-items: center; justify-content: center; }
.lightbox.show { display: flex; }
.lightbox img { max-width: 92vw; max-height: 86vh; border-radius: 10px; box-shadow: 0 24px 70px rgba(0,0,0,.5); animation: popIn .18s ease both; }
.lb-close, .lb-nav { position: absolute; border: none; cursor: pointer; color: #fff; background: rgba(255,255,255,.12); border-radius: 999px; width: 46px; height: 46px; font-size: 22px; line-height: 1; display: flex; align-items: center; justify-content: center; transition: background .15s; }
.lb-close:hover, .lb-nav:hover { background: rgba(255,255,255,.26); }
.lb-close { top: 22px; right: 26px; }
.lb-prev { left: 24px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 24px; top: 50%; transform: translateY(-50%); }
.lb-count { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); color: rgba(255,255,255,.85); font-size: 13px; background: rgba(0,0,0,.35); padding: 5px 14px; border-radius: 999px; }

.empty-state { text-align: center; padding: 48px 20px; color: var(--muted); }
.empty-state .es-icon { font-size: 42px; margin-bottom: 12px; opacity: .7; }
.empty-state .es-title { font-size: 15px; font-weight: 700; color: var(--text); margin-bottom: 6px; }
.empty-state .es-desc { font-size: 13px; margin-bottom: 18px; }
.empty-state .es-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

.me-tabs { display: flex; gap: 8px; border-bottom: 1px solid var(--border); margin: 22px 0 18px; }
.me-tab { padding: 10px 18px; cursor: pointer; border: none; background: none; font-size: 14px; font-weight: 700; color: var(--muted); border-bottom: 2.5px solid transparent; margin-bottom: -1px; font-family: inherit; }
.me-tab.on { color: var(--primary); border-bottom-color: var(--primary); }
.me-pane { display: none; }
.me-pane.on { display: block; animation: fadeUp .2s ease both; }

.related-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
@media (max-width: 980px) { .related-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .related-grid { grid-template-columns: repeat(2, 1fr); } .lb-nav { width: 40px; height: 40px; } }

/* —— 失效链接举报浮层 —— */
.link-actions .link-report { background: none; border: none; color: var(--muted); font-size: 12px; cursor: pointer; padding: 4px 8px; }
.link-actions .link-report:hover { color: var(--danger); }
.link-actions .link-fast { background: none; border: 1px solid #3b82f6; color: inherit; font-size: 12px; cursor: pointer; padding: 4px 8px; border-radius: 6px; white-space: nowrap; }
.link-actions .link-fast:hover { background: #3b82f6; color: #fff; }
.link-actions .link-copy { background: none; border: none; color: var(--muted); font-size: 12px; cursor: pointer; padding: 4px 8px; }
.link-actions .link-copy:hover { color: #3b82f6; }
.modal-mask { position: fixed; inset: 0; background: rgba(15, 20, 30, 0.55); z-index: 200; display: none; align-items: center; justify-content: center; padding: 20px; }
.modal-mask.show { display: flex; }
.modal-box { background: var(--card); border: 1px solid var(--border); border-radius: 16px; width: 100%; max-width: 440px; padding: 22px; box-shadow: 0 20px 60px rgba(0,0,0,0.35); }
.modal-box h3 { font-size: 16px; font-weight: 800; margin-bottom: 14px; }
.modal-box label { display: block; font-size: 12.5px; color: var(--muted); margin: 12px 0 6px; }
.modal-box select, .modal-box input, .modal-box textarea {
  width: 100%; box-sizing: border-box; border: 1px solid var(--border); background: var(--card2);
  color: var(--text); border-radius: 10px; padding: 9px 12px; font-size: 13.5px; outline: none; font-family: inherit;
}
.modal-box select:focus, .modal-box input:focus, .modal-box textarea:focus { border-color: var(--primary); }
.modal-box textarea { resize: vertical; min-height: 64px; }
.modal-url { font-size: 12px; color: var(--muted); word-break: break-all; background: var(--card2); border-radius: 8px; padding: 8px 10px; margin-bottom: 4px; }
.modal-btns { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; }

/* —— 消息条 —— */
.toast {
  position: fixed; top: 78px; left: 50%; transform: translateX(-50%); z-index: 100;
  background: #1e2634; color: #fff; border-radius: 12px;
  padding: 11px 22px; font-size: 13.5px; font-weight: 600;
  box-shadow: 0 12px 32px rgba(0,0,0,0.28);
  animation: fadeUp 0.25s ease both;
}
.toast.err { background: var(--danger); }
.toast.ok { background: #1e2634; }
.empty-tip { color: var(--muted); padding: 26px 0; text-align: center; }

/* —— 会员标识（导航） —— */
.nav-vip {
  display: inline-flex; align-items: center; margin: 0 2px; padding: 2px 9px;
  border-radius: 999px; font-size: 11px; font-weight: 800; letter-spacing: .5px;
  color: #7a4f01; background: linear-gradient(115deg, #ffe6a8, #ffd166);
  border: 1px solid #f0c14b; box-shadow: 0 2px 8px rgba(245, 158, 11, 0.35);
}

/* —— 会员中心卡片（me.html） —— */
.vip-card { padding: 20px 22px; }
.vip-on, .vip-off { display: flex; align-items: center; gap: 14px; }
.vip-crown {
  width: 52px; height: 52px; border-radius: 14px; flex: 0 0 auto;
  display: flex; align-items: center; justify-content: center; font-size: 26px;
}
.vip-on .vip-crown { background: linear-gradient(135deg, #ffe6a8, #ffd166); box-shadow: 0 6px 16px rgba(245, 158, 11, 0.35); }
.vip-off .vip-crown { background: var(--card2); border: 1px solid var(--border); }
.vip-t { font-size: 16px; font-weight: 800; color: var(--text); }
.vip-d { color: var(--muted); font-size: 12.5px; margin-top: 3px; }
.vip-note { margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--border); color: var(--muted); font-size: 12.5px; }
.vip-form { display: flex; gap: 10px; margin-top: 16px; }
.vip-form input {
  flex: 1; padding: 11px 14px; background: var(--card2); border: 1.5px solid var(--border);
  border-radius: 10px; color: var(--text); outline: none; font-size: 14px; font-family: inherit;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.vip-form input:focus { border-color: var(--primary); background: #fff; box-shadow: 0 0 0 4px var(--primary-dim); }
.vip-form .btn { flex: 0 0 auto; }
.vip-msg { margin-top: 10px; font-size: 12.5px; min-height: 18px; }
.vip-msg.ok { color: var(--primary, #6d5cff); }
.vip-msg.err { color: #e5484d; }

/* 会员区底部：退出登录（小号、弱化，避免抢主视觉） */
.me-logout-mini { margin-top: 12px; text-align: right; }
.me-logout-mini button {
  background: none; border: 0; padding: 2px 0; margin: 0;
  font-size: 11.5px; color: #9aa5b8; cursor: pointer; font-family: inherit;
  transition: color .15s;
}
.me-logout-mini button:hover { color: #e5484d; text-decoration: underline; }

/* —— 详情页下载门禁（非会员引导） —— */
.member-gate {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  gap: 8px; padding: 26px 16px 20px;
}
.member-gate .mg-ico { font-size: 34px; }
.member-gate .mg-t { font-size: 15px; font-weight: 800; color: var(--text); }
.member-gate .mg-d { font-size: 12.5px; color: var(--muted); max-width: 240px; }
.member-gate .mg-btns { display: flex; gap: 10px; margin-top: 10px; flex-wrap: wrap; justify-content: center; }

@media (max-width: 960px) {
  .detail-layout { grid-template-columns: 1fr; }
  .detail-side { position: static; order: -1; }
}
@media (max-width: 720px) {
  .nav { padding: 0 12px; gap: 10px; flex-wrap: wrap; height: auto; padding-top: 10px; padding-bottom: 10px; }
  .nav-search { order: 3; flex-basis: 100%; max-width: none; }
  .game-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
  .hero { padding: 30px 22px; }
  .hero h1 { font-size: 22px; }
  .hero-search button { padding: 0 22px; }
}
