/* =========================================================
   找服网 www.ZhaoFW.com —— 传奇私服发布网 全站样式
   主题：暗色东方玄幻游戏门户（暗红 × 鎏金）
   结构：基础 -> 布局 -> 组件 -> 表格 -> 侧栏 -> 页脚 -> 响应式
   ========================================================= */

/* ---------- 1. 变量与重置 ---------- */
:root {
  --bg: #0a0b10;
  --panel: #12151f;
  --panel2: #181c2a;
  --panel3: #20263a;
  --line: #2a3044;
  --line2: #3a415c;
  --red: #c92b33;
  --red-d: #8e1a21;
  --red-grad: linear-gradient(135deg, #e0343c 0%, #8e1a21 100%);
  --gold: #d4a437;
  --gold-l: #f2d489;
  --text: #eae5d9;
  --text2: #9aa3b6;
  --text3: #6d7688;
  --blue: #57a7e0;
  --green: #58c08a;
  --shadow: 0 8px 30px rgba(0, 0, 0, .45);
  --radius: 10px;
  --font: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "Source Han Sans SC", Arial, sans-serif;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.7;
  color: var(--text);
  background-color: var(--bg);
  min-height: 100vh;
  position: relative;
}

/* 全页背景图（images/bj.png）+ 压暗遮罩 */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background: url("../images/bj.png") center / cover no-repeat fixed;
  background-attachment: fixed;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(7, 8, 13, .92) 0%, rgba(9, 10, 16, .94) 100%);
}

img { max-width: 100%; height: auto; border: 0; }

a { color: var(--gold); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--gold-l); }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

ul, ol { list-style: none; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 14px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px;
  padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- 2. 顶部信息条 ---------- */
.topbar {
  background: rgba(10, 11, 17, .9);
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  color: var(--text2);
}
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 10px; height: 34px; }
.topbar a { color: var(--text2); margin: 0 8px; }
.topbar a:hover { color: var(--gold-l); }
.topbar .tb-hot { color: var(--gold); }

/* ---------- 3. 头部（Logo + 搜索 + 下载） ---------- */
.site-header { padding: 16px 0 14px; }
.header-inner { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 14px; min-width: 300px; }
.brand .logo { height: 62px; width: auto; filter: drop-shadow(0 0 12px rgba(212, 164, 55, .35)); }
.brand-text h1 { font-size: 0; }
.brand-text .site-name { font-size: 28px; font-weight: 900; color: var(--gold-l); letter-spacing: 4px; text-shadow: 0 0 18px rgba(212, 164, 55, .5); }
.brand-text .site-slogan { font-size: 13px; color: var(--text2); letter-spacing: 1px; }
.brand-text .site-slogan b { color: var(--red); font-weight: 700; }

.header-search { flex: 1; min-width: 260px; max-width: 520px; margin-left: auto; display: flex; }
.search-box {
  flex: 1; display: flex; background: var(--panel2);
  border: 1px solid var(--line2); border-radius: 999px; overflow: hidden;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.search-box:focus-within { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(212, 164, 55, .18); }
.search-box input {
  flex: 1; border: 0; background: transparent; color: var(--text);
  padding: 10px 18px; font-size: 14px; outline: none; font-family: var(--font);
}
.search-box input::placeholder { color: var(--text3); }
.search-box button {
  border: 0; background: var(--red-grad); color: #fff; font-size: 14px;
  padding: 0 22px; cursor: pointer; font-family: var(--font); font-weight: 700; letter-spacing: 2px;
}
.search-box button:hover { filter: brightness(1.12); }

.btn-dl {
  display: inline-block; background: var(--red-grad); color: #fff !important;
  padding: 10px 20px; border-radius: 999px; font-weight: 700; font-size: 14px;
  letter-spacing: 1px; box-shadow: 0 4px 16px rgba(201, 43, 51, .4); white-space: nowrap;
}
.btn-dl:hover { filter: brightness(1.12); transform: translateY(-1px); }
.btn-dl .ico { margin-right: 6px; }

/* ---------- 4. 主导航 ---------- */
.main-nav {
  position: sticky; top: 0; z-index: 100;
  background: linear-gradient(180deg, #7d161c 0%, #5d0f14 100%);
  border-top: 1px solid rgba(242, 212, 137, .35);
  border-bottom: 3px solid var(--gold);
  box-shadow: 0 6px 20px rgba(0, 0, 0, .5);
}
.nav-inner { display: flex; align-items: stretch; }
.nav-inner a {
  display: flex; align-items: center; padding: 0 17px; height: 46px;
  color: #ffe9d0; font-size: 15px; font-weight: 700; letter-spacing: 1px;
  position: relative; white-space: nowrap;
}
.nav-inner a + a::before { content: ""; position: absolute; left: 0; top: 12px; bottom: 12px; width: 1px; background: rgba(255, 233, 208, .22); }
.nav-inner a:hover, .nav-inner a.active { background: rgba(0, 0, 0, .22); color: var(--gold-l); }
.nav-inner a.active::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: -3px;
  height: 3px; background: var(--gold-l);
}
.nav-toggle { display: none; }

/* ---------- 5. 横幅与广告位 ---------- */
.banner-wrap { margin: 18px 0 0; }
.banner-link { display: block; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line2); box-shadow: var(--shadow); }
.banner-link img { display: block; width: 100%; height: auto; transition: transform .45s ease; }
.banner-link:hover img { transform: scale(1.012); }

.ad-wrap { margin: 14px 0 4px; }
.ad-wrap .ad-img { width: 100%; border-radius: 8px; border: 1px dashed var(--line2); display: block; }

/* ---------- 6. 面板通用 ---------- */
.panel {
  background: linear-gradient(180deg, rgba(24, 28, 42, .96) 0%, rgba(18, 21, 31, .96) 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
  position: relative;
  margin-bottom: 18px;
}
.panel-h {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  margin: -18px -18px 16px; padding: 14px 18px;
  background: linear-gradient(90deg, rgba(201, 43, 51, .16), rgba(24, 28, 42, 0));
  border-bottom: 1px solid var(--line);
  border-radius: var(--radius) var(--radius) 0 0;
}
.panel-h h2, .panel-h h3 {
  font-size: 18px; font-weight: 800; color: var(--gold-l); letter-spacing: 2px;
  display: flex; align-items: center; gap: 10px;
}
.panel-h h2::before, .panel-h h3::before {
  content: ""; width: 5px; height: 20px; border-radius: 3px;
  background: var(--red-grad); box-shadow: 0 0 10px rgba(201, 43, 51, .8);
}
.panel-more { font-size: 13px; color: var(--text2); }
.panel-more:hover { color: var(--gold-l); }

/* ---------- 7a. 下载中心（首页全宽） ---------- */
.dl-hero {
  display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap;
  background: linear-gradient(120deg, rgba(125, 22, 28, .5) 0%, rgba(24, 28, 42, .94) 60%, rgba(18, 21, 31, .94) 100%);
  border: 1px solid rgba(212, 164, 55, .4);
}
.dlh-txt h2 { margin: 0 0 6px; font-size: 20px; font-weight: 800; color: var(--gold-l); letter-spacing: 2px; }
.dlh-txt p { margin: 0; color: var(--text2); font-size: 13px; }
.btn-dl-lg {
  display: inline-block; padding: 14px 34px; border-radius: 10px;
  background: var(--red-grad); color: #fff; font-size: 17px; font-weight: 800; letter-spacing: 2px;
  box-shadow: 0 6px 22px rgba(201, 43, 51, .5); border: 1px solid rgba(255, 224, 160, .45);
  white-space: nowrap; transition: transform .2s ease, filter .2s ease;
}
.btn-dl-lg:hover { filter: brightness(1.12); transform: translateY(-2px); color: #fff; }

/* ---------- 7b. 热门版本速览（对比卡） ---------- */
.ver-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.ver-card {
  display: block; padding: 14px 14px 12px; border-radius: 10px;
  background: var(--panel2); border: 1px solid var(--line2);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.ver-card:hover { transform: translateY(-3px); border-color: var(--gold); box-shadow: 0 8px 22px rgba(0, 0, 0, .45); }
.ver-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.ver-name { font-size: 16px; font-weight: 800; color: var(--gold-l); letter-spacing: 1px; }
.ver-stars { font-size: 13px; color: var(--gold); letter-spacing: 1px; }
.ver-stars i { font-style: normal; color: var(--text3); opacity: .5; }
.ver-desc { font-size: 13px; color: var(--text2); line-height: 1.7; min-height: 44px; margin-bottom: 8px; }
.ver-for { font-size: 12px; color: var(--text3); }
.ver-for b { color: var(--red); font-weight: 700; }

/* ---------- 7c. 友情链接 ---------- */
.friends { margin: 18px 0 0; }
.friends-panel { margin-bottom: 0; }
.friends-links { display: flex; flex-wrap: wrap; gap: 8px; }
.friends-links a {
  padding: 5px 14px; border-radius: 999px; font-size: 13px;
  background: var(--panel2); border: 1px solid var(--line2); color: var(--text2);
}
.friends-links a:hover { color: var(--gold-l); border-color: var(--gold); }

/* ---------- 7d. 侧栏：统计 / 排行 / 攻略精选 ---------- */
.side-stat { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.st-item {
  background: var(--panel2); border: 1px solid var(--line2); border-radius: 8px;
  padding: 10px 6px; text-align: center;
}
.st-num { display: block; font-size: 24px; font-weight: 800; color: var(--gold-l); line-height: 1.2; }
.st-label { display: block; font-size: 12px; color: var(--text3); margin-top: 2px; }

.rank-mini { list-style: none; margin: 0; padding: 0; }
.rank-mini li {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 8px 2px; border-bottom: 1px dashed var(--line);
  font-size: 13px;
}
.rank-mini li:last-child { border-bottom: 0; }
.rank-mini .rk-idx { color: var(--gold); font-weight: 800; font-style: normal; width: 18px; flex: none; }
.rank-mini a { color: var(--text); flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank-mini a:hover { color: var(--gold-l); }
.rank-mini .rk-score { color: var(--gold); font-size: 12px; flex: none; }

.side-arts { list-style: none; margin: 0; padding: 0; }
.side-arts li { padding: 8px 2px; border-bottom: 1px dashed var(--line); font-size: 13px; }
.side-arts li:last-child { border-bottom: 0; }
.side-arts a { color: var(--text2); line-height: 1.6; }
.side-arts a:hover { color: var(--gold-l); }

/* 侧栏吸顶（桌面端） */
.sidebar { position: sticky; top: 78px; align-self: start; }

/* ---------- 7. 热门关键词 ---------- */
.kw-strip { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.kw-strip .kw-label { color: var(--text3); font-size: 13px; margin-right: 2px; }
.kw {
  font-size: 13px; padding: 4px 13px; border-radius: 999px;
  background: var(--panel2); border: 1px solid var(--line2); color: var(--text2);
}
.kw:hover { color: var(--gold-l); border-color: var(--gold); background: rgba(212, 164, 55, .08); }
.kw.hot { color: var(--red); border-color: rgba(201, 43, 51, .5); font-weight: 700; }

/* ---------- 8. 开服表格 ---------- */
.table-scroll { overflow-x: auto; }
.sv-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.sv-table thead th {
  text-align: left; padding: 10px 12px; color: var(--text2);
  font-size: 13px; font-weight: 600; border-bottom: 1px solid var(--line2);
  background: rgba(0, 0, 0, .18); white-space: nowrap;
}
.sv-table tbody td { padding: 11px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.sv-table tbody tr:hover { background: rgba(212, 164, 55, .05); }
.sv-table tbody tr:last-child td { border-bottom: 0; }
.sv-name { font-weight: 700; color: var(--text); }
.sv-name a { color: var(--text); }
.sv-name a:hover { color: var(--gold-l); }
.tag {
  display: inline-block; font-size: 11px; padding: 1px 7px; border-radius: 4px;
  margin-left: 6px; vertical-align: 1px; font-weight: 400;
}
.tag-new { background: rgba(201, 43, 51, .18); color: #ff8a8f; border: 1px solid rgba(201, 43, 51, .4); }
.tag-hot { background: rgba(212, 164, 55, .16); color: var(--gold-l); border: 1px solid rgba(212, 164, 55, .4); }
.tag-line { background: rgba(87, 167, 224, .14); color: var(--blue); border: 1px solid rgba(87, 167, 224, .35); }
.sv-time { color: var(--gold); font-weight: 700; white-space: nowrap; }
.cd { display: block; font-size: 12px; color: var(--text3); font-weight: 400; font-variant-numeric: tabular-nums; }
.cd b { color: var(--red); font-weight: 700; }
.sv-act { white-space: nowrap; }
.btn-mini {
  display: inline-block; font-size: 13px; padding: 5px 14px; border-radius: 6px;
  background: var(--red-grad); color: #fff !important; font-weight: 700;
}
.btn-mini:hover { filter: brightness(1.12); }
.btn-mini.ghost { background: transparent; color: var(--text2) !important; border: 1px solid var(--line2); }
.btn-mini.ghost:hover { color: var(--gold-l) !important; border-color: var(--gold); }
.stars { color: var(--gold); white-space: nowrap; letter-spacing: 2px; font-size: 13px; }
.stars .off { color: #3a415c; }

/* 无 JS 提示 */
.nojs-hint { display: none; }

/* ---------- 9. 今日新服推荐卡 ---------- */
.hot-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.hot-card {
  background: var(--panel2); border: 1px solid var(--line); border-radius: 10px;
  padding: 14px; position: relative; overflow: hidden;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.hot-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--red-grad);
}
.hot-card:hover { transform: translateY(-3px); border-color: rgba(212, 164, 55, .5); box-shadow: 0 12px 28px rgba(0, 0, 0, .5); }
.hot-card .hc-name { font-size: 16px; font-weight: 800; margin: 6px 0 4px; }
.hot-card .hc-name a { color: var(--text); }
.hot-card .hc-name a:hover { color: var(--gold-l); }
.hot-card .hc-meta { font-size: 13px; color: var(--text2); display: flex; flex-wrap: wrap; gap: 4px 12px; margin: 8px 0 10px; }
.hot-card .hc-time { color: var(--gold); font-weight: 700; }
.hot-card .hc-cd { font-size: 13px; color: var(--red); font-weight: 700; font-variant-numeric: tabular-nums; }
.hot-card .hc-btns { display: flex; gap: 8px; }
.hot-card .hc-btns .btn-mini { flex: 1; text-align: center; }

/* ---------- 10. 分类图片卡片 ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.cat-card {
  display: block; position: relative; border-radius: 10px; overflow: hidden;
  border: 1px solid var(--line2); background: var(--panel2);
  aspect-ratio: 16 / 9;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.cat-card img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .45s ease; }
.cat-card:hover { transform: translateY(-3px); border-color: var(--gold); box-shadow: 0 12px 28px rgba(0, 0, 0, .5); }
.cat-card:hover img { transform: scale(1.07); }
.cat-card .cc-mask {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(180deg, rgba(10, 11, 17, .15) 0%, rgba(10, 11, 17, .72) 100%);
}
.cat-card .cc-name {
  font-size: 18px; font-weight: 900; color: #fff; letter-spacing: 3px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, .85), 0 0 20px rgba(201, 43, 51, .55);
  border: 1px solid rgba(242, 212, 137, .55); padding: 5px 16px; border-radius: 6px;
  background: rgba(10, 11, 17, .4);
}
.cat-card .cc-count {
  position: absolute; right: 8px; top: 8px; font-size: 11px; color: #fff;
  background: rgba(201, 43, 51, .85); padding: 1px 8px; border-radius: 999px;
}
.cat-links { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 12px; }
.cat-links a {
  text-align: center; font-size: 14px; padding: 9px 6px; border-radius: 8px;
  background: var(--panel2); border: 1px solid var(--line2); color: var(--text2);
}
.cat-links a:hover { color: var(--gold-l); border-color: var(--gold); }

/* ---------- 11. 排行列表 ---------- */
.rank-list { counter-reset: rank; }
.rank-list li {
  display: flex; align-items: center; gap: 10px; padding: 9px 4px;
  border-bottom: 1px dashed var(--line); font-size: 14px;
}
.rank-list li:last-child { border-bottom: 0; }
.rank-list li::before {
  counter-increment: rank; content: counter(rank);
  flex: 0 0 24px; height: 24px; line-height: 24px; text-align: center;
  border-radius: 6px; background: var(--panel3); color: var(--text2); font-weight: 800; font-size: 13px;
}
.rank-list li:nth-child(-n+3)::before { background: var(--red-grad); color: #fff; box-shadow: 0 0 10px rgba(201, 43, 51, .5); }
.rank-list .rk-name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank-list .rk-name a { color: var(--text); }
.rank-list .rk-name a:hover { color: var(--gold-l); }
.rank-list .rk-num { color: var(--gold); font-weight: 700; font-size: 13px; }

/* ---------- 12. 文章 / 攻略（可展开） ---------- */
.art-item { border: 1px solid var(--line); border-radius: 10px; margin-bottom: 12px; background: var(--panel2); overflow: hidden; }
.art-item summary {
  list-style: none; cursor: pointer; padding: 13px 16px;
  display: flex; align-items: center; gap: 12px;
  font-size: 15px; font-weight: 700; color: var(--text);
}
.art-item summary::-webkit-details-marker { display: none; }
.art-item summary::before {
  content: ""; flex: 0 0 6px; height: 18px; border-radius: 3px; background: var(--gold);
}
.art-item summary .art-date { margin-left: auto; font-size: 12px; color: var(--text3); font-weight: 400; white-space: nowrap; }
.art-item summary:hover { color: var(--gold-l); }
.art-item[open] summary { border-bottom: 1px solid var(--line); color: var(--gold-l); }
.art-item .art-body { padding: 14px 18px; font-size: 14px; color: var(--text2); }
.art-item .art-body p { margin-bottom: 10px; }
.art-item .art-body p:last-child { margin-bottom: 0; }
.art-item .art-body b { color: var(--text); }
.art-item .art-body ul { padding-left: 18px; margin-bottom: 10px; }
.art-item .art-body ul li { list-style: disc; margin-bottom: 4px; }

/* ---------- 13. SEO 正文 ---------- */
.seo-text { font-size: 14px; color: var(--text2); }
.seo-text p { margin-bottom: 10px; }
.seo-text p:last-child { margin-bottom: 0; }
.seo-text b, .seo-text strong { color: var(--gold-l); }
.seo-text h3 { font-size: 16px; color: var(--gold-l); margin: 16px 0 8px; }

/* ---------- 14. 面包屑 ---------- */
.crumb { font-size: 13px; color: var(--text3); padding: 12px 2px 6px; }
.crumb a { color: var(--text2); }
.crumb a:hover { color: var(--gold-l); }
.crumb .sep { margin: 0 7px; color: var(--text3); }
.crumb .now { color: var(--gold); }

/* 分类页头部 */
.cat-hero {
  border-radius: var(--radius); overflow: hidden; position: relative;
  border: 1px solid var(--line2); margin-bottom: 18px; min-height: 170px;
  display: flex; align-items: flex-end;
}
.cat-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cat-hero .ch-mask {
  position: relative; width: 100%; padding: 22px;
  background: linear-gradient(180deg, rgba(10, 11, 17, .2) 0%, rgba(10, 11, 17, .88) 100%);
}
.cat-hero h1 { font-size: 24px; font-weight: 900; color: #fff; letter-spacing: 2px; text-shadow: 0 2px 12px rgba(0, 0, 0, .9); }
.cat-hero .ch-sub { font-size: 13px; color: var(--text2); margin-top: 4px; }

/* ---------- 15. 侧栏 ---------- */
.side-list li { padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: 14px; }
.side-list li:last-child { border-bottom: 0; }
.side-list .sl-time { float: right; color: var(--gold); font-size: 13px; }
.side-list a { color: var(--text); }
.side-list a:hover { color: var(--gold-l); }
.side-cat { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.side-cat a { position: relative; display: block; border-radius: 8px; overflow: hidden; aspect-ratio: 16 / 9; border: 1px solid var(--line2); }
.side-cat img { width: 100%; height: 100%; object-fit: cover; }
.side-cat .sc-name {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 13px; font-weight: 800; letter-spacing: 2px;
  background: linear-gradient(180deg, rgba(10, 11, 17, .1), rgba(10, 11, 17, .78));
  text-shadow: 0 1px 6px rgba(0, 0, 0, .9);
}
.dl-card { text-align: center; }
.dl-card .dl-name { font-size: 17px; font-weight: 800; color: var(--gold-l); margin-bottom: 4px; }
.dl-card .dl-tip { font-size: 12px; color: var(--text3); margin-bottom: 12px; }
.dl-card .btn-dl { display: block; text-align: center; }
.notice { font-size: 12px; color: var(--text3); line-height: 1.8; }
.notice b { color: var(--text2); }

/* ---------- 16. 页脚 ---------- */
.site-footer { margin-top: 30px; border-top: 3px solid var(--gold); background: rgba(9, 10, 16, .96); }
.footer-inner { padding: 26px 14px 18px; }
.footer-cols { display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 24px; margin-bottom: 20px; }
.footer-cols h4 { font-size: 15px; color: var(--gold-l); margin-bottom: 12px; letter-spacing: 1px; }
.footer-cols li { margin-bottom: 7px; font-size: 13px; }
.footer-cols a { color: var(--text2); }
.footer-cols a:hover { color: var(--gold-l); }
.footer-about { font-size: 13px; color: var(--text3); line-height: 1.9; }
.footer-bottom {
  border-top: 1px solid var(--line); padding-top: 16px;
  text-align: center; font-size: 13px; color: var(--text3); line-height: 2;
}
.footer-bottom a { color: var(--text2); }
.footer-bottom a:hover { color: var(--gold-l); }
.footer-bottom .beian { color: var(--text2); }

/* ---------- 17. 回到顶部 / 移动菜单 ---------- */
.backtop {
  position: fixed; right: 18px; bottom: 24px; z-index: 90;
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--gold);
  background: rgba(18, 21, 31, .92); color: var(--gold-l); font-size: 20px;
  cursor: pointer; display: none; align-items: center; justify-content: center;
  box-shadow: var(--shadow); font-family: var(--font);
}
.backtop.show { display: flex; }
.backtop:hover { background: var(--red-grad); color: #fff; border-color: transparent; }

/* 404 */
.err-page { text-align: center; padding: 70px 20px; }
.err-page .err-code { font-size: 88px; font-weight: 900; color: var(--red); text-shadow: 0 0 30px rgba(201, 43, 51, .5); line-height: 1; }
.err-page p { color: var(--text2); margin: 14px 0 24px; }

/* ---------- 18. 动画与通用 ---------- */
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }
.pulse { animation: pulse 1.6s ease-in-out infinite; }
.mt10 { margin-top: 10px; }
.mt16 { margin-top: 16px; }
.text-center { text-align: center; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* ---------- 19. 响应式 ---------- */
/* 主内容 + 侧栏两栏布局（移动端自动堆叠） */
.layout { display: grid; grid-template-columns: 1fr 330px; gap: 18px; margin-top: 16px; align-items: start; }
.layout-mt { margin-top: 16px; }
.content-main, .sidebar { min-width: 0; }

@media (max-width: 1024px) {
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
  .ver-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .nav-inner { overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .nav-inner::-webkit-scrollbar { display: none; }
}

@media (max-width: 860px) {
  .layout { grid-template-columns: 1fr; margin-top: 12px; }
  .sidebar { position: static; }
  .header-inner { gap: 12px; }
  .brand { min-width: 0; }
  .brand .logo { height: 46px; }
  .header-search { order: 3; flex-basis: 100%; max-width: none; }
  .hot-grid { grid-template-columns: 1fr 1fr; }
  .topbar-inner { height: auto; padding: 6px 0; flex-wrap: wrap; }
}

@media (max-width: 640px) {
  body { font-size: 14px; }
  .container { padding: 0 10px; }
  .panel { padding: 14px; }
  .panel-h { margin: -14px -14px 12px; padding: 12px 14px; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .cat-links { grid-template-columns: repeat(2, 1fr); }
  .ver-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .hot-grid { grid-template-columns: 1fr; }
  .dl-hero { justify-content: center; text-align: center; }
  .footer-cols { grid-template-columns: 1fr; gap: 16px; }
  .tb-welcome { display: none; }
  .nav-toggle {
    display: flex; align-items: center; justify-content: center; gap: 6px;
    width: auto; padding: 0 14px; height: 44px; border: 0; background: transparent; color: #ffe9d0;
    cursor: pointer; font-size: 20px; font-family: var(--font); white-space: nowrap;
  }
  .nav-inner { display: none; flex-direction: column; }
  .main-nav.nav-open .nav-inner { display: flex; max-height: 82vh; overflow-y: auto; }
  .nav-inner a { height: 42px; padding: 0 18px; border-bottom: 1px solid rgba(255, 233, 208, .12); }
  .nav-inner a + a::before { display: none; }
  .nav-toggle-row { display: flex; align-items: center; justify-content: space-between; }
  .brand-text .site-name { font-size: 22px; }
  .backtop { right: 12px; bottom: 16px; width: 40px; height: 40px; }

  /* 移动端表格转卡片 */
  .sv-table thead { display: none; }
  .sv-table tbody, .sv-table tr, .sv-table td { display: block; width: 100%; }
  .sv-table tbody tr {
    padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px;
    margin-bottom: 10px; background: var(--panel2);
  }
  .sv-table tbody tr:hover { background: var(--panel2); }
  .sv-table tbody td { padding: 5px 0; border-bottom: 0; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
  .sv-table tbody td::before { content: attr(data-label); color: var(--text3); font-size: 12px; flex: 0 0 74px; }
  .sv-table tbody td.sv-name { display: flex; justify-content: space-between; align-items: center; }
  .sv-table tbody td .cd { display: inline; margin-left: 6px; }
  .banner-link { border-radius: 8px; }
}
