@charset "utf-8";
/* ==========================================================================
   xinyouxi —— LECMS 游戏站主题
   作者：xinyouxi theme  |  仅依赖原生 HTML/CSS/JS，无第三方库
   结构：1 变量 2 基础 3 侧栏 4 顶栏 5 Tab 6 榜单列 7 分类页 8 榜单页
        9 详情页 10 标签/搜索 11 单页/合规 12 分页 13 页脚 14 响应式
   ========================================================================== */

/* 1 变量 ---------------------------------------------------------------- */
:root {
  --bg: #EDF3FC;
  --bg-2: #E4EDFA;
  --card: #FFFFFF;
  --border: rgba(19, 58, 116, 0.09);
  --border-2: rgba(19, 58, 116, 0.14);
  --text: #1B2230;
  --text-2: #5B6573;
  --text-3: #8A93A2;
  --blue: #1677FF;
  --blue-2: #4096FF;
  --blue-deep: #0B57D0;
  --blue-bg: rgba(22, 119, 255, 0.09);
  --blue-grad: linear-gradient(135deg, #4096FF 0%, #1668F5 100%);
  --shadow: 0 2px 12px rgba(22, 80, 170, 0.08);
  --shadow-hover: 0 8px 24px rgba(22, 80, 170, 0.14);
  --gold: #F5A623;
  --silver: #8FA3BF;
  --bronze: #C98B5A;
  --red: #F65E5E;
  --green: #00A84D;
  --divider: #E3EAF5;
  --radius: 14px;
  --radius-sm: 10px;
  --side-w: 216px;
  --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "Segoe UI", Roboto, Arial, sans-serif;
}

/* 2 基础 ---------------------------------------------------------------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
img { border: 0; vertical-align: middle; max-width: 100%; }
ul, ol { list-style: none; }
button, input, textarea, select { font-family: inherit; font-size: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { font-weight: 700; line-height: 1.3; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
::selection { background: rgba(22, 119, 255, .18); }

/* 细滚动条 */
.thin-scroll { scrollbar-width: thin; }
.thin-scroll::-webkit-scrollbar { width: 6px; height: 6px; }
.thin-scroll::-webkit-scrollbar-thumb { background: #C8D6EA; border-radius: 6px; }

/* 3 侧栏 ---------------------------------------------------------------- */
.app { display: flex; min-height: 100vh; }

.side {
  width: var(--side-w);
  flex: 0 0 var(--side-w);
  background: var(--card);
  border-right: 1px solid var(--border);
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 14px 12px 10px;
  z-index: 60;
}
.side-scroll { flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; }
.side-logo {
  display: flex; align-items: center; gap: 9px;
  font-size: 16px; font-weight: 800; letter-spacing: .2px;
  padding: 6px 8px 16px;
}
.side-logo .logo-mark {
  width: 32px; height: 32px; border-radius: 10px;
  background: var(--blue-grad);
  color: #fff; font-size: 15px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 12px rgba(22, 104, 245, .32);
  flex-shrink: 0;
}
.side-logo .logo-text { display: flex; flex-direction: column; line-height: 1.15; }
.side-logo .logo-text small { font-size: 10.5px; color: var(--text-3); font-weight: 500; letter-spacing: 1.6px; margin-top: 3px; }
.side-close { display: none; margin-left: auto; border: none; background: none; font-size: 15px; color: var(--text-2); width: 30px; height: 30px; border-radius: 8px; }
.side-close:hover { background: var(--bg); }

.side-sec {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 10px 7px;
  font-size: 11.5px; color: var(--text-3); letter-spacing: .6px; font-weight: 600;
}
.side-sec a { color: var(--text-3); font-weight: 500; letter-spacing: 0; }
.side-sec a:hover { color: var(--blue); }

.side-nav { display: flex; flex-direction: column; gap: 1px; }
.side-item {
  display: flex; align-items: center; gap: 9px;
  padding: 8px 10px; border-radius: 9px;
  font-size: 13.5px; color: var(--text-2);
  transition: background .14s ease, color .14s ease;
  min-width: 0;
}
.side-item:hover { background: var(--bg); color: var(--text); }
.side-item.active { background: var(--blue-bg); color: var(--blue); font-weight: 600; }
.side-item .si-ico {
  width: 22px; height: 22px; border-radius: 7px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 800; color: #fff;
  background: linear-gradient(135deg, #6FB1FF, #2C7BF5);
}
.side-item:nth-child(6n+2) .si-ico { background: linear-gradient(135deg, #7BD0A8, #17A45E); }
.side-item:nth-child(6n+3) .si-ico { background: linear-gradient(135deg, #FFC46B, #F0921A); }
.side-item:nth-child(6n+4) .si-ico { background: linear-gradient(135deg, #B79CFF, #7148EE); }
.side-item:nth-child(6n+5) .si-ico { background: linear-gradient(135deg, #FF9C9C, #EF5B5B); }
.side-item:nth-child(6n) .si-ico { background: linear-gradient(135deg, #7ED9DE, #16A6AE); }
.side-item span.txt { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-item .si-badge { margin-left: auto; font-size: 11px; color: var(--text-3); font-weight: 500; }

/* 侧栏标签云 */
.side-tags { display: flex; flex-wrap: wrap; gap: 6px; padding: 2px 8px 4px; }
.side-tags a {
  display: inline-block; max-width: 100%;
  padding: 4px 10px; border-radius: 20px;
  font-size: 12px; color: #1677FF; background: #E4F0FF;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  transition: transform .12s ease, filter .12s ease;
}
.side-tags a:nth-child(7n+2) { background: #E8F7EE; color: #0A8F45; }
.side-tags a:nth-child(7n+3) { background: #FFF1E0; color: #D97A00; }
.side-tags a:nth-child(7n+4) { background: #F1EBFE; color: #6A45E6; }
.side-tags a:nth-child(7n+5) { background: #FDEDED; color: #E04B4B; }
.side-tags a:nth-child(7n+6) { background: #E6F7F7; color: #0E9399; }
.side-tags a:nth-child(7n) { background: #FDEBF3; color: #D8478A; }
.side-tags a:hover { filter: brightness(.96); transform: translateY(-1px); }

.side-foot {
  margin-top: 8px; padding: 12px 8px 4px;
  border-top: 1px dashed var(--divider);
  display: flex; flex-wrap: wrap; gap: 6px 0;
  font-size: 12px; color: #77808F;
}
.side-foot a { flex: 0 0 50%; padding: 3px 0; }
.side-foot a:hover { color: var(--blue); }
.side-foot .sf-icp { flex: 0 0 100%; margin-top: 8px; font-size: 11px; color: #9AA3B0; line-height: 1.5; }

.side-mask { display: none; }

/* 4 顶栏 ---------------------------------------------------------------- */
.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }

.topbar {
  display: flex; align-items: center; gap: 14px;
  padding: 11px 22px;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 40;
}
.menu-btn {
  display: none; width: 36px; height: 36px; flex-shrink: 0;
  border: none; background: var(--bg); border-radius: 9px;
  font-size: 17px; color: var(--text); align-items: center; justify-content: center;
}
.search-box {
  flex: 1; max-width: 460px;
  display: flex; align-items: center; gap: 8px;
  background: var(--bg); border: 1px solid transparent; border-radius: 22px;
  padding: 8px 14px;
  transition: border-color .16s ease, background .16s ease, box-shadow .16s ease;
}
.search-box:focus-within { border-color: var(--blue); background: #fff; box-shadow: 0 0 0 4px rgba(22, 119, 255, .1); }
.search-box .search-ico { border: none; background: none; padding: 0; font-size: 15px; color: var(--text-3); line-height: 1; }
.search-box input[type="text"] { flex: 1; min-width: 0; border: none; background: none; outline: none; font-size: 14px; }
.search-box input::placeholder { color: var(--text-3); }
.search-box .search-btn {
  border: none; background: var(--blue-grad); color: #fff;
  padding: 5px 14px; border-radius: 16px; font-size: 12.5px; font-weight: 600;
}
.search-box .search-btn:hover { filter: brightness(1.05); }
.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.top-link {
  font-size: 13px; color: var(--text-2); padding: 7px 12px;
  border-radius: 9px; background: var(--bg); white-space: nowrap;
}
.top-link:hover { color: var(--blue); background: var(--blue-bg); }
.top-link.primary { color: #fff; background: var(--blue-grad); }

/* 5 Tab 栏 -------------------------------------------------------------- */
.tabbar {
  display: flex; align-items: stretch; gap: 0;
  background: var(--card);
  border-bottom: 1px solid var(--border);
  padding: 0 14px 0 8px;
  position: sticky; top: 59px; z-index: 35;
}
.tabbar-inner {
  flex: 1; min-width: 0; display: flex; align-items: stretch;
  overflow-x: auto; scrollbar-width: none;
}
.tabbar-inner::-webkit-scrollbar { display: none; }
.nav-item {
  flex: 0 0 auto;
  padding: 13px 14px 11px;
  border: none; background: none;
  font-size: 13.5px; color: var(--text-2);
  border-bottom: 2px solid transparent;
  transition: color .14s ease;
  white-space: nowrap;
}
.nav-item:hover { color: var(--text); }
.nav-item.active { color: var(--blue); border-bottom-color: var(--blue); font-weight: 700; }
.nav-item .ni-num { font-size: 11px; color: var(--text-3); margin-left: 4px; font-weight: 500; }

.os-switch {
  display: flex; align-items: center; gap: 0; flex-shrink: 0;
  padding: 8px 6px 8px 10px;
}
.os-switch button {
  border: 1px solid var(--border-2); background: #fff;
  font-size: 12px; color: var(--text-2);
  padding: 5px 13px;
}
.os-switch button:first-child { border-radius: 15px 0 0 15px; }
.os-switch button:last-child { border-radius: 0 15px 15px 0; border-left: none; }
.os-switch button.on { background: var(--blue); border-color: var(--blue); color: #fff; font-weight: 600; }

/* 6 榜单列（首页） ------------------------------------------------------ */
.content { padding: 18px 22px 26px; flex: 1; min-width: 0; }

.cols-wrap {
  position: relative;
  background: var(--bg-2);
  border-radius: 16px;
  padding: 14px;
  overflow: hidden;
}
.cols {
  display: flex; gap: 14px; align-items: stretch;
  transition: transform .45s cubic-bezier(.25, .8, .3, 1);
  will-change: transform;
}
.rank-col {
  flex: 0 0 336px; width: 336px;
  background: var(--card);
  border-radius: 13px;
  border: 1px solid var(--border);
  display: flex; flex-direction: column;
  padding: 12px 12px 8px;
  scroll-margin: 90px;
}
.col-head { padding: 2px 4px 10px; border-bottom: 1px solid var(--divider); margin-bottom: 4px; }
.col-title { font-size: 15px; display: flex; align-items: baseline; gap: 7px; }
.col-title a { display: inline-flex; align-items: baseline; gap: 7px; }
.col-title a:hover { color: var(--blue); }
.col-title em {
  font-style: normal; font-size: 10.5px; font-weight: 700; letter-spacing: .6px;
  color: var(--blue); background: var(--blue-bg);
  padding: 2px 6px; border-radius: 5px;
}
.col-note { font-size: 11.5px; color: var(--text-3); margin-top: 4px; }

.entry {
  display: flex; align-items: center; gap: 9px;
  padding: 8px 4px; border-radius: 9px;
  position: relative;
  transition: background .14s ease;
}
.entry:hover { background: #F5F9FF; }
.entry + .entry { border-top: 1px solid #F1F5FB; }
.rank-no {
  width: 19px; flex: 0 0 19px; text-align: center;
  font-size: 13px; font-weight: 800; color: var(--text-3);
  font-variant-numeric: tabular-nums;
}
.entry.r1 .rank-no { color: #E8890C; }
.entry.r2 .rank-no { color: #7C8DA6; }
.entry.r3 .rank-no { color: #B87446; }
.entry.r1 .rank-no, .entry.r2 .rank-no, .entry.r3 .rank-no { font-size: 14px; }
.thumb {
  width: 44px; height: 44px; flex: 0 0 44px;
  border-radius: 10px; overflow: hidden; background: var(--bg-2);
  position: relative;
}
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb .thumb-ph {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-size: 15px; font-weight: 800; color: #fff;
  background: linear-gradient(135deg, #6FB1FF, #2C7BF5);
}
.entry .body { flex: 1; min-width: 0; }
.entry .row1 { display: flex; align-items: center; gap: 5px; }
.entry .gname {
  font-size: 13.5px; font-weight: 600; color: var(--text);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.entry:hover .gname { color: var(--blue); }
.entry .row2 {
  font-size: 11.5px; color: var(--text-3); margin-top: 2px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.entry .row3 { font-size: 11px; color: #A6AEBB; margin-top: 2px; }
.entry .row3 b { font-weight: 600; color: var(--text-3); }
.entry .btn {
  flex-shrink: 0;
  padding: 5px 11px; border-radius: 14px;
  font-size: 12px; font-weight: 700; color: #fff;
  background: var(--blue-grad);
  box-shadow: 0 2px 8px rgba(22, 104, 245, .24);
  transition: filter .14s ease, transform .14s ease;
}
.entry .btn:hover { filter: brightness(1.06); transform: translateY(-1px); }
.col-foot {
  margin-top: auto; padding: 9px 4px 4px;
  border-top: 1px dashed var(--divider);
  font-size: 11px; color: #A6AEBB; text-align: center;
}

.nav-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 36px; height: 62px; z-index: 20;
  border: none; border-radius: 10px;
  background: rgba(255, 255, 255, .95); color: #5B6472;
  font-size: 24px; line-height: 1; font-family: Arial, sans-serif;
  box-shadow: 0 3px 12px rgba(16, 44, 90, .16);
  display: flex; align-items: center; justify-content: center;
  transition: opacity .18s ease, color .14s ease;
}
.nav-arrow:hover { color: var(--blue); }
.nav-arrow.disabled { opacity: 0; pointer-events: none; }
.arrow-left { left: 4px; }
.arrow-right { right: 4px; }

/* 首页小标题 */
.sec-head { display: flex; align-items: center; gap: 10px; margin: 22px 0 12px; }
.sec-head h2 { font-size: 16px; }
.sec-head .sh-sub { font-size: 12px; color: var(--text-3); }
.sec-head .sh-more { margin-left: auto; font-size: 12.5px; color: var(--text-2); }
.sec-head .sh-more:hover { color: var(--blue); }

/* 游戏卡片网格（首页推荐 / 分类页） */
.game-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(196px, 1fr)); gap: 13px; }
.game-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.game-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); border-color: rgba(22, 119, 255, .22); }
.gc-thumb { position: relative; aspect-ratio: 1 / 1; background: var(--bg-2); overflow: hidden; }
.gc-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s ease; }
.game-card:hover .gc-thumb img { transform: scale(1.04); }
.gc-thumb .thumb-ph {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-size: 30px; font-weight: 800; color: #fff;
  background: linear-gradient(135deg, #6FB1FF, #2C7BF5);
}
.gc-os {
  position: absolute; left: 8px; top: 8px;
  font-size: 10.5px; font-weight: 700; color: #fff;
  background: rgba(12, 26, 48, .55); backdrop-filter: blur(4px);
  padding: 2px 7px; border-radius: 6px;
}
.gc-body { padding: 10px 11px 12px; display: flex; flex-direction: column; gap: 5px; flex: 1; }
.gc-name { font-size: 13.5px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gc-tags {
  font-size: 11.5px; color: var(--text-3); line-height: 1.45;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  min-height: 32px;
}
.gc-foot { display: flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 4px; }
.gc-date { font-size: 11px; color: #A6AEBB; }
.gc-btn {
  margin-left: auto; font-size: 12px; font-weight: 700; color: var(--blue);
  padding: 4px 12px; border-radius: 13px; background: var(--blue-bg);
  border: none;
}
.game-card:hover .gc-btn { color: #fff; background: var(--blue-grad); }

/* 7 分类页 -------------------------------------------------------------- */
.cate-hero {
  background: linear-gradient(120deg, #FFFFFF 0%, #F3F8FF 60%, #E9F2FF 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  display: flex; flex-direction: column; gap: 8px;
  position: relative; overflow: hidden;
}
.cate-hero::after {
  content: ""; position: absolute; right: -40px; top: -60px;
  width: 200px; height: 200px; border-radius: 50%;
  background: radial-gradient(circle, rgba(22, 119, 255, .12), transparent 70%);
}
.ch-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ch-title { font-size: 21px; letter-spacing: -.2px; }
.ch-count {
  font-size: 12px; color: var(--blue); background: #fff;
  border: 1px solid rgba(22, 119, 255, .2); padding: 2px 9px; border-radius: 20px; font-weight: 600;
}
.ch-intro { font-size: 13px; color: var(--text-2); max-width: 900px; line-height: 1.65; }
.crumb { font-size: 12.5px; color: var(--text-3); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.crumb a { color: var(--text-2); }
.crumb a:hover { color: var(--blue); }
.crumb .sep { color: #C3CCDA; }

.cat-tabbar {
  display: flex; gap: 0; overflow-x: auto; scrollbar-width: none;
  background: var(--card); border: 1px solid var(--border); border-radius: 12px;
  padding: 6px; margin: 12px 0 14px;
}
.cat-tabbar::-webkit-scrollbar { display: none; }
.cat-item {
  flex: 0 0 auto; padding: 7px 14px; border-radius: 9px;
  font-size: 13px; color: var(--text-2); white-space: nowrap;
  transition: background .14s ease, color .14s ease;
}
.cat-item:hover { background: var(--bg); color: var(--text); }
.cat-item.active { background: var(--blue); color: #fff; font-weight: 600; }

.toolbar {
  display: flex; align-items: center; gap: 10px;
  margin: 4px 0 12px; font-size: 12.5px; color: var(--text-3);
}
.toolbar .tb-count { color: var(--text-2); }
.toolbar .tb-count b { color: var(--blue); }
.tb-sort { margin-left: auto; display: flex; gap: 4px; }
.tb-sort button {
  border: 1px solid var(--border); background: #fff; color: var(--text-2);
  font-size: 12px; padding: 5px 11px; border-radius: 8px;
}
.tb-sort button.on { color: var(--blue); border-color: rgba(22, 119, 255, .35); background: var(--blue-bg); font-weight: 600; }

/* 8 榜单页 -------------------------------------------------------------- */
.rank-banner {
  border-radius: var(--radius); border: 1px solid var(--border);
  background: linear-gradient(115deg, #0F2C55 0%, #17427C 45%, #1C5CC0 100%);
  color: #fff; padding: 22px 24px; position: relative; overflow: hidden;
}
.rank-banner::before {
  content: ""; position: absolute; right: -60px; top: -80px; width: 260px; height: 260px;
  border-radius: 50%; background: radial-gradient(circle, rgba(120, 190, 255, .35), transparent 68%);
}
.rank-banner h1 { font-size: 22px; }
.rank-banner .rb-sub { font-size: 12.5px; color: rgba(255, 255, 255, .72); margin-top: 6px; }
.rank-banner .rb-tags { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.rank-banner .rb-tags span {
  font-size: 11.5px; color: rgba(255, 255, 255, .9);
  background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .18);
  padding: 3px 10px; border-radius: 20px;
}

.podium { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 14px 0; }
.pod {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 14px; display: flex; gap: 12px; align-items: center;
  position: relative; overflow: hidden;
  transition: transform .16s ease, box-shadow .16s ease;
}
.pod:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.pod .pod-no {
  position: absolute; right: 8px; top: -6px;
  font-size: 46px; font-weight: 800; line-height: 1;
  color: rgba(22, 119, 255, .08); font-style: italic;
}
.pod .pod-thumb { width: 58px; height: 58px; border-radius: 13px; overflow: hidden; flex-shrink: 0; background: var(--bg-2); }
.pod .pod-thumb img { width: 100%; height: 100%; object-fit: cover; }
.pod .pod-body { min-width: 0; }
.pod .pod-name { font-size: 14.5px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pod .pod-tags { font-size: 11.5px; color: var(--text-3); margin-top: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pod .pod-meta { font-size: 11px; color: #A6AEBB; margin-top: 4px; }
.pod .pod-medal {
  position: absolute; left: 0; top: 0; width: 34px; height: 22px;
  border-radius: 0 0 10px 0; font-size: 11px; font-weight: 800; color: #fff;
  display: flex; align-items: center; justify-content: center;
}
.pod.p1 .pod-medal { background: linear-gradient(135deg, #FFC85C, #E8890C); }
.pod.p2 .pod-medal { background: linear-gradient(135deg, #B6C6D9, #7C8DA6); }
.pod.p3 .pod-medal { background: linear-gradient(135deg, #DFA97C, #B87446); }

.rank-table { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.rt-row {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid #F1F5FB;
  transition: background .14s ease;
}
.rt-row:last-child { border-bottom: none; }
.rt-row:hover { background: #F7FAFF; }
.rt-no {
  width: 26px; text-align: center; font-size: 13px; font-weight: 800;
  color: var(--text-3); font-variant-numeric: tabular-nums;
}
.rt-row:nth-child(1) .rt-no { color: #E8890C; }
.rt-row:nth-child(2) .rt-no { color: #7C8DA6; }
.rt-row:nth-child(3) .rt-no { color: #B87446; }
.rt-thumb { width: 46px; height: 46px; border-radius: 10px; overflow: hidden; flex-shrink: 0; background: var(--bg-2); }
.rt-thumb img { width: 100%; height: 100%; object-fit: cover; }
.rt-main { flex: 1; min-width: 0; }
.rt-name { font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rt-row:hover .rt-name { color: var(--blue); }
.rt-sub { font-size: 11.5px; color: var(--text-3); margin-top: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rt-btn {
  flex-shrink: 0; font-size: 12px; font-weight: 700; color: var(--blue);
  background: var(--blue-bg); padding: 5px 12px; border-radius: 13px;
}
.rt-btn:hover { color: #fff; background: var(--blue-grad); }

.rank-cols { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 14px; }

/* 9 详情页 -------------------------------------------------------------- */
.detail-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 296px; gap: 16px; align-items: start; }
.detail-main { min-width: 0; display: flex; flex-direction: column; gap: 14px; }

.detail-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; }

.game-head { display: flex; gap: 16px; align-items: flex-start; }
.gh-thumb {
  width: 96px; height: 96px; flex: 0 0 96px;
  border-radius: 20px; overflow: hidden; position: relative;
  background: linear-gradient(135deg, #6FB1FF, #2C7BF5);
  box-shadow: 0 8px 20px rgba(22, 104, 245, .22);
}
.gh-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gh-thumb .thumb-ph { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 34px; font-weight: 800; color: #fff; }
.gh-main { flex: 1; min-width: 0; }
.gh-name { font-size: 23px; letter-spacing: -.3px; line-height: 1.25; }
.gh-sub { font-size: 12.5px; color: var(--text-3); margin-top: 5px; }
.gh-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; }
.gh-tags a {
  font-size: 12px; color: #3E6FA8; background: #EFF5FD;
  padding: 3px 9px; border-radius: 6px;
  transition: background .14s ease, color .14s ease;
}
.gh-tags a:hover { color: #fff; background: var(--blue); }
.gh-meta {
  display: flex; flex-wrap: wrap; gap: 6px 16px;
  margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--divider);
  font-size: 12.5px; color: var(--text-2);
}
.gh-meta span { display: inline-flex; gap: 4px; }
.gh-meta span b { font-weight: 600; color: var(--text-3); }
.gh-actions { width: 176px; flex-shrink: 0; display: flex; flex-direction: column; gap: 8px; }
.dl-btn {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  padding: 12px 14px; border-radius: 12px;
  font-size: 14.5px; font-weight: 700; color: #fff;
  background: var(--blue-grad);
  box-shadow: 0 6px 16px rgba(22, 104, 245, .3);
  transition: filter .14s ease, transform .14s ease;
  border: none;
}
.dl-btn:hover { filter: brightness(1.05); transform: translateY(-1px); }
.dl-btn.ghost {
  background: #fff; color: var(--text-2); border: 1px solid var(--border-2);
  box-shadow: none; font-size: 13px; font-weight: 600; padding: 9px 12px;
}
.dl-btn.ghost:hover { border-color: var(--blue); color: var(--blue); transform: none; }
.dl-tip { font-size: 11px; color: var(--text-3); text-align: center; line-height: 1.5; }

.sec-title { font-size: 15.5px; display: flex; align-items: center; gap: 8px; }
.sec-title::before { content: ""; width: 3px; height: 15px; border-radius: 3px; background: var(--blue-grad); }

.shot-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.shot-nav { margin-left: auto; display: flex; gap: 6px; }
.shot-btn {
  width: 30px; height: 30px; border-radius: 8px; border: 1px solid var(--border);
  background: #fff; color: var(--text-2); font-size: 17px; line-height: 1; font-family: Arial, sans-serif;
}
.shot-btn:hover { border-color: var(--blue); color: var(--blue); }
.shot-btn.disabled { opacity: .38; pointer-events: none; }
.shots { display: flex; gap: 10px; overflow-x: auto; scroll-behavior: smooth; scrollbar-width: none; padding-bottom: 2px; }
.shots::-webkit-scrollbar { display: none; }
.shot {
  flex: 0 0 236px; height: 133px; border-radius: 10px; overflow: hidden;
  background: var(--bg-2); border: 1px solid var(--border);
}
.shot img { width: 100%; height: 100%; object-fit: cover; display: block; }

.intro-wrap { position: relative; margin-top: 12px; }
.intro { font-size: 14px; line-height: 1.85; color: #3A4352; overflow: hidden; }
.intro-wrap.collapsed .intro { max-height: 320px; }
.intro p { margin-bottom: 12px; }
.intro img { border-radius: 10px; margin: 6px 0; height: auto; }
.intro h2, .intro h3 { font-size: 15.5px; margin: 18px 0 8px; }
.intro strong { color: var(--text); }
.intro ul, .intro ol { padding-left: 20px; margin-bottom: 12px; list-style: disc; }
.intro-mask {
  display: none; position: absolute; left: 0; right: 0; bottom: 42px; height: 110px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0), #fff 82%);
  pointer-events: none;
}
.intro-wrap.collapsed .intro-mask { display: block; }
.intro-toggle {
  margin-top: 10px; width: 100%;
  border: 1px solid var(--border); background: #F7FAFF; color: var(--blue);
  font-size: 13px; font-weight: 600; padding: 9px; border-radius: 10px;
}
.intro-toggle:hover { background: var(--blue-bg); }

.dl-table { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 18px; margin-top: 12px; font-size: 13px; }
.dl-table div { display: flex; gap: 6px; color: var(--text-2); padding: 6px 0; border-bottom: 1px dashed var(--divider); }
.dl-table b { color: var(--text-3); font-weight: 500; flex: 0 0 66px; }

/* 详情页右侧栏 */
.side-panel { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px; }
.side-panel + .side-panel { margin-top: 14px; }
.sp-head { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; margin-bottom: 10px; }
.sp-head .sp-more { margin-left: auto; font-size: 12px; color: var(--text-3); font-weight: 500; }
.sp-head .sp-more:hover { color: var(--blue); }
.sp-list { display: flex; flex-direction: column; gap: 8px; }
.sp-item { display: flex; align-items: center; gap: 9px; }
.sp-item .sp-no {
  width: 18px; flex: 0 0 18px; text-align: center; font-size: 12px; font-weight: 800; color: var(--text-3);
}
.sp-item:nth-child(1) .sp-no { color: #E8890C; }
.sp-item:nth-child(2) .sp-no { color: #7C8DA6; }
.sp-item:nth-child(3) .sp-no { color: #B87446; }
.sp-item .sp-thumb { width: 34px; height: 34px; border-radius: 8px; overflow: hidden; flex-shrink: 0; background: var(--bg-2); }
.sp-item .sp-thumb img { width: 100%; height: 100%; object-fit: cover; }
.sp-item .sp-name { font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sp-item:hover .sp-name { color: var(--blue); }

/* 10 标签 / 搜索 -------------------------------------------------------- */
.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-cloud a {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 13px; border-radius: 20px;
  font-size: 13px; color: #2F5F98; background: #fff; border: 1px solid var(--border);
  transition: all .14s ease;
}
.tag-cloud a:hover { color: #fff; background: var(--blue-grad); border-color: transparent; transform: translateY(-1px); }
.tag-cloud a i { font-style: normal; font-size: 11px; opacity: .6; }
.tag-cloud a.hot { color: #fff; background: var(--blue-grad); border-color: transparent; }
.tag-cloud a.warm { color: #D97A00; background: #FFF6E8; border-color: #FBE0B8; }

.search-hero {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px; display: flex; flex-direction: column; gap: 12px;
}
.search-hero h1 { font-size: 19px; }
.search-hero .sh-kw { color: var(--blue); }
.search-form { display: flex; gap: 8px; max-width: 560px; }
.search-form input[type="text"] {
  flex: 1; padding: 11px 15px; border-radius: 11px;
  border: 1px solid var(--border-2); background: #F8FAFE; outline: none;
}
.search-form input[type="text"]:focus { border-color: var(--blue); background: #fff; box-shadow: 0 0 0 4px rgba(22, 119, 255, .09); }
.search-form button {
  padding: 11px 22px; border: none; border-radius: 11px;
  background: var(--blue-grad); color: #fff; font-weight: 700;
}
.empty-box { padding: 46px 20px; text-align: center; color: var(--text-3); font-size: 13.5px; }
.empty-box b { display: block; font-size: 15px; color: var(--text-2); margin-bottom: 6px; }

/* 11 单页 / 合规 -------------------------------------------------------- */
.page-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 296px; gap: 16px; align-items: start; }
.page-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px 28px; }
.page-head { padding-bottom: 16px; border-bottom: 1px solid var(--divider); margin-bottom: 18px; }
.page-head h1 { font-size: 22px; letter-spacing: -.2px; }
.page-head .ph-sub { font-size: 12.5px; color: var(--text-3); margin-top: 6px; }
.prose { font-size: 14.5px; line-height: 1.9; color: #39424F; }
.prose h2 { font-size: 17px; margin: 26px 0 10px; padding-left: 10px; border-left: 3px solid var(--blue); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 15px; margin: 20px 0 8px; }
.prose p { margin-bottom: 12px; }
.prose ul, .prose ol { margin: 0 0 14px 22px; list-style: disc; }
.prose ol { list-style: decimal; }
.prose li { margin-bottom: 6px; }
.prose a { color: var(--blue); }
.prose table { width: 100%; border-collapse: collapse; margin: 12px 0 18px; font-size: 13.5px; }
.prose th, .prose td { border: 1px solid var(--divider); padding: 9px 12px; text-align: left; }
.prose th { background: #F5F9FF; color: var(--text-2); font-weight: 600; }
.prose blockquote {
  margin: 14px 0; padding: 12px 16px; border-radius: 10px;
  background: #F5F9FF; border-left: 3px solid #A9C9F7; color: var(--text-2); font-size: 13.5px;
}
.prose .notice { background: #FFF8EC; border: 1px solid #FBE3BE; border-radius: 10px; padding: 13px 16px; font-size: 13.5px; color: #8A5A12; }

.policy-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.policy-nav a {
  font-size: 12.5px; color: var(--text-2); background: #fff;
  border: 1px solid var(--border); padding: 7px 13px; border-radius: 20px;
}
.policy-nav a:hover, .policy-nav a.active { color: var(--blue); border-color: rgba(22, 119, 255, .35); background: var(--blue-bg); font-weight: 600; }

/* 12 分页 --------------------------------------------------------------- */
.pager { display: flex; align-items: center; justify-content: center; gap: 6px; flex-wrap: wrap; padding: 22px 0 4px; }
.pager a, .pager span {
  min-width: 34px; height: 34px; padding: 0 10px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 9px; border: 1px solid var(--border); background: #fff;
  font-size: 13px; color: var(--text-2);
}
.pager a:hover { color: var(--blue); border-color: rgba(22, 119, 255, .4); }
.pager .current, .pager .on { background: var(--blue); border-color: var(--blue); color: #fff; font-weight: 700; }
.pager .disabled { opacity: .45; pointer-events: none; }
.pager .pg-info { border: none; background: none; color: var(--text-3); font-size: 12.5px; }
.pagebar a, .pagebar span { display: inline-flex; }

/* 13 页脚 --------------------------------------------------------------- */
.site-foot {
  margin-top: auto;
  background: var(--card);
  border-top: 1px solid var(--border);
  padding: 20px 22px 22px;
}
.foot-inner { display: flex; flex-direction: column; gap: 9px; }
.foot-row { font-size: 12.5px; color: var(--text-3); line-height: 1.7; }
.foot-links { display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: center; }
.foot-links .fl-title { color: var(--text-2); font-weight: 600; }
.foot-links a {
  color: var(--text-2); background: #F5F8FD; border: 1px solid var(--border);
  padding: 3px 10px; border-radius: 7px; font-size: 12px;
}
.foot-links a:hover { color: var(--blue); border-color: rgba(22, 119, 255, .3); }
.foot-icp a { color: var(--text-2); }
.foot-icp a:hover { color: var(--blue); }
.foot-desc { color: #A6AEBB; font-size: 12px; }
.foot-brand { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.foot-brand .fb-logo {
  width: 24px; height: 24px; border-radius: 7px; background: var(--blue-grad);
  color: #fff; font-size: 11px; font-weight: 800; display: flex; align-items: center; justify-content: center;
}
.foot-brand b { color: var(--text-2); font-size: 13px; }

.to-top {
  position: fixed; right: 22px; bottom: 26px; z-index: 50;
  width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--border);
  background: #fff; color: var(--text-2); font-size: 17px;
  box-shadow: var(--shadow);
  display: none; align-items: center; justify-content: center;
}
.to-top.show { display: flex; }
.to-top:hover { color: var(--blue); border-color: rgba(22, 119, 255, .35); }

/* 13.5 兼容细节（LECMS 原生分页 / 正文图片） --------------------------- */
.thumb, .gc-thumb, .gh-thumb { position: relative; }
.thumb img, .gc-thumb img, .gh-thumb img { position: relative; z-index: 1; }
.thumb .thumb-ph, .gc-thumb .thumb-ph, .gh-thumb .thumb-ph { z-index: 0; }
.gc-os { z-index: 2; }

.pager ul, .pagebar ul { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; justify-content: center; }
.pager li, .pagebar li { display: inline-flex; }
.pager li a, .pagebar li a, .pager li span, .pagebar li span,
.pager > a, .pager > span, .pagebar > a, .pagebar > span {
  min-width: 34px; height: 34px; padding: 0 10px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 9px; border: 1px solid var(--border); background: #fff;
  font-size: 13px; color: var(--text-2);
}
.pager li a:hover, .pagebar li a:hover { color: var(--blue); border-color: rgba(22, 119, 255, .4); }
.pager .current, .pager .on, .pager li.current > a, .pager li.on > a,
.pagebar .current, .pagebar .on, .pagebar li.current > a {
  background: var(--blue); border-color: var(--blue); color: #fff; font-weight: 700;
}
.prose img { max-width: 100%; height: auto; border-radius: 10px; margin: 8px 0; }
.prose code { background: #F1F5FB; padding: 1px 6px; border-radius: 5px; font-size: 13px; color: #2B5FA8; }
.sitemap-list ul { list-style: none; margin: 0 0 18px; columns: 2; column-gap: 26px; }
.sitemap-list li { margin-bottom: 7px; break-inside: avoid; }
.sitemap-list h3 { margin-top: 22px; }
@media (max-width: 640px) { .sitemap-list ul { columns: 1; } }

/* 14 响应式 ------------------------------------------------------------- */
@media (max-width: 1280px) {
  .detail-wrap, .page-wrap { grid-template-columns: minmax(0, 1fr) 272px; }
  .rank-col { flex: 0 0 318px; width: 318px; }
}
@media (max-width: 1080px) {
  .detail-wrap, .page-wrap { grid-template-columns: minmax(0, 1fr); }
  .podium { grid-template-columns: 1fr; }
  .game-head { flex-wrap: wrap; }
  .gh-actions { width: 100%; flex-direction: row; align-items: center; }
  .gh-actions .dl-btn { flex: 1; }
}
@media (max-width: 900px) {
  :root { --side-w: 240px; }
  .side {
    position: fixed; left: 0; top: 0; height: 100vh;
    transform: translateX(-100%); transition: transform .26s ease;
    box-shadow: 0 10px 40px rgba(10, 30, 60, .18);
    width: var(--side-w);
  }
  body.side-open .side { transform: translateX(0); }
  body.side-open .side-mask {
    display: block; position: fixed; inset: 0; z-index: 55;
    background: rgba(11, 26, 48, .42); backdrop-filter: blur(1px);
  }
  .side-close { display: flex; align-items: center; justify-content: center; }
  .menu-btn { display: flex; }
  .topbar { padding: 10px 14px; }
  .tabbar { top: 57px; padding: 0 6px; }
  .content { padding: 14px; }
  .cols-wrap { padding: 10px; }
  .rank-col { flex: 0 0 calc(100vw - 56px); width: calc(100vw - 56px); }
  .site-foot { padding: 16px 14px 80px; }
  .search-box .search-btn { display: none; }
  .topbar-right .top-link { display: none; }
}
@media (max-width: 640px) {
  .gh-thumb { width: 76px; height: 76px; flex: 0 0 76px; border-radius: 16px; }
  .gh-name { font-size: 19px; }
  .detail-card, .page-card { padding: 14px; }
  .page-card { padding: 18px 16px; }
  .shot { flex: 0 0 200px; height: 113px; }
  .game-grid { grid-template-columns: repeat(auto-fill, minmax(148px, 1fr)); gap: 10px; }
  .dl-table { grid-template-columns: 1fr; }
  .entry .row2 { display: none; }
  .rank-col { flex: 0 0 calc(100vw - 48px); width: calc(100vw - 48px); }
  .cate-hero { padding: 14px; }
  .ch-title { font-size: 18px; }
  .pager a, .pager span { min-width: 30px; height: 30px; font-size: 12.5px; }
  .foot-links a { font-size: 11.5px; }
}
