/* ============================================================
   SF999SF 传奇私服发布网 独家模板样式
   主题：橙金·大气·隆重 | 自适应 PC / 手机端
   作者：SF999SF 模板中心 | 域名 www.sf999sf.com
   ============================================================ */

/* ---------- 1. 设计令牌 Design Tokens ---------- */
:root {
  --gold: #FFC94D;            /* 主金色 */
  --gold-light: #FFE9A8;      /* 亮金 */
  --gold-deep: #D4A017;       /* 深金 */
  --orange: #FF8A1E;          /* 主橙色 */
  --orange-deep: #E8620A;     /* 深橙 */
  --red-hot: #E8442A;         /* 火热红（新区/攻城） */
  --bg-dark: #140C05;         /* 页面底色（深褐黑） */
  --panel: rgba(36, 22, 8, 0.92);   /* 面板底色 */
  --panel-2: rgba(52, 32, 12, 0.88);/* 次级面板 */
  --text: #F6E7C4;            /* 正文米金 */
  --text-dim: #C9A96E;        /* 次级文字 */
  --line: rgba(255, 190, 80, 0.25); /* 金线 */
  --shadow-gold: 0 0 18px rgba(255, 138, 30, 0.35);
  --radius: 12px;
  --font: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", sans-serif;
}

/* ---------- 2. 基础 Reset ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--text);
  background-color: var(--bg-dark);
  /* 全页面背景图片 */
  background-image: url("../images/bj.png");
  background-repeat: repeat;
  background-position: center top;
  background-attachment: fixed;
  background-size: cover;
  font-size: 15px;
  line-height: 1.7;
  min-height: 100vh;
}
img { max-width: 100%; height: auto; border: 0; display: block; }
a { color: var(--gold); text-decoration: none; transition: color .25s, text-shadow .25s; }
a:hover { color: var(--gold-light); text-shadow: 0 0 8px rgba(255, 201, 77, .6); }
ul, ol { list-style: none; }
input, button, select, textarea { font-family: inherit; font-size: 100%; }
h1, h2, h3, h4 { font-weight: 700; line-height: 1.4; }

/* 无障碍：减少动态 */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* ---------- 3. 布局骨架 ---------- */
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 14px; }
.main-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 20px; margin: 20px auto; align-items: start; }
.main-col { min-width: 0; }
.side-col { min-width: 0; position: sticky; top: 74px; display: flex; flex-direction: column; gap: 18px; }

/* ---------- 4. 顶部跑马灯公告条（签名元素） ---------- */
.top-ticker {
  background: linear-gradient(90deg, #2a1206, #6b2c06 30%, #b34d0a 50%, #6b2c06 70%, #2a1206);
  border-bottom: 1px solid rgba(255, 201, 77, .35);
  overflow: hidden;
  white-space: nowrap;
  font-size: 13px;
  color: var(--gold-light);
}
.ticker-track { display: inline-block; padding: 6px 0; animation: ticker 38s linear infinite; }
.ticker-track b { color: #fff; margin: 0 18px; }
.ticker-track a { margin: 0 16px; color: var(--gold-light); }
.ticker-track .t-new { color: var(--red-hot); font-weight: 700; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- 5. 页头 Header ---------- */
.site-header {
  background: linear-gradient(180deg, rgba(20, 10, 3, .98), rgba(46, 24, 7, .96));
  border-bottom: 2px solid transparent;
  border-image: linear-gradient(90deg, transparent, var(--gold), var(--orange), var(--gold), transparent) 1;
  box-shadow: 0 4px 24px rgba(0, 0, 0, .55);
}
.header-in { display: flex; align-items: center; gap: 18px; padding: 14px 0; }
.logo-box { display: flex; align-items: center; gap: 14px; flex: 0 0 auto; }
.logo-box img.logo { width: 200px; height: auto; }
.site-name { display: flex; flex-direction: column; line-height: 1.25; }
.site-name .sn-cn {
  font-size: 26px; font-weight: 900; letter-spacing: 2px;
  background: linear-gradient(180deg, #fff3d0 10%, var(--gold) 45%, var(--orange) 80%, #b35a00);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .6));
}
.site-name .sn-en { font-size: 12px; color: var(--text-dim); letter-spacing: 1px; }
.header-search { margin-left: auto; display: flex; align-items: center; gap: 10px; flex: 1 1 320px; max-width: 420px; }
.search-form { display: flex; width: 100%; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; background: rgba(0, 0, 0, .35); }
.search-form input {
  flex: 1; min-width: 0; border: 0; background: transparent; color: var(--text);
  padding: 9px 16px; outline: none; font-size: 14px;
}
.search-form button {
  border: 0; cursor: pointer; padding: 9px 20px; color: #241205; font-weight: 700;
  background: linear-gradient(180deg, var(--gold-light), var(--gold) 40%, var(--orange));
}
.search-form button:hover { filter: brightness(1.08); }
.header-hot { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-dim); white-space: nowrap; }
.header-hot a { color: var(--gold); }

/* ---------- 6. 导航 Nav ---------- */
.site-nav {
  background: linear-gradient(180deg, #3a1d07, #241203);
  border-top: 1px solid rgba(255, 190, 80, .2);
  border-bottom: 1px solid rgba(255, 190, 80, .35);
  position: sticky; top: 0; z-index: 90;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .5);
}
.nav-in { display: flex; align-items: center; }
.nav-list { display: flex; flex-wrap: wrap; }
.nav-list > li { position: relative; }
.nav-list a {
  display: block; padding: 12px 16px; font-size: 15px; color: var(--text);
  border-left: 1px solid rgba(255, 190, 80, .12);
  position: relative;
}
.nav-list a::after {
  content: ""; position: absolute; left: 16px; right: 16px; bottom: 6px; height: 2px;
  background: linear-gradient(90deg, var(--orange), var(--gold));
  transform: scaleX(0); transform-origin: left; transition: transform .3s;
}
.nav-list a:hover, .nav-list a.on { color: var(--gold-light); text-shadow: 0 0 10px rgba(255, 201, 77, .7); }
.nav-list a:hover::after, .nav-list a.on::after { transform: scaleX(1); }
.nav-list .nav-hot { color: var(--gold-light); }
.nav-list .nav-hot i {
  font-style: normal; font-size: 10px; color: #fff; background: var(--red-hot);
  padding: 1px 6px; border-radius: 8px; margin-left: 5px; vertical-align: 2px;
  animation: pulse 1.6s infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }
.nav-toggle { display: none; }
.nav-right { margin-left: auto; padding-right: 4px; }
.nav-right a {
  display: inline-block; padding: 8px 18px; font-weight: 700; color: #241205;
  background: linear-gradient(180deg, var(--gold-light), var(--gold) 40%, var(--orange));
  border-radius: 6px; box-shadow: var(--shadow-gold);
}
.nav-right a:hover { filter: brightness(1.1); color: #241205; text-shadow: none; }

/* ---------- 7. 横幅 Banner（1200x250） ---------- */
.banner-box { margin: 18px 0 0; }
.banner-box img {
  width: 100%; height: auto; border-radius: var(--radius);
  border: 1px solid var(--line); box-shadow: var(--shadow-gold);
}

/* ---------- 8. 广告位（仅首页） ---------- */
.ad-box { margin: 14px 0; }
#cq_tui { width: 100%; min-height: 60px; }
.ad-inner {
  border: 1px dashed var(--line); border-radius: 8px; min-height: 90px;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  color: var(--text-dim); font-size: 13px; text-align: center; padding: 10px;
  background: rgba(0, 0, 0, .25);
}

/* ---------- 9. 版块标题（火焰流光签名） ---------- */
.sec { margin: 26px 0 18px; }
.sec-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.sec-head .t {
  font-size: 21px; font-weight: 900; letter-spacing: 2px; white-space: nowrap;
  background: linear-gradient(120deg, var(--gold-light) 10%, var(--gold) 30%, var(--orange) 55%, var(--gold) 80%, var(--gold-light));
  background-size: 200% auto;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shimmer 5s linear infinite;
  filter: drop-shadow(0 0 10px rgba(255, 138, 30, .35));
}
@keyframes shimmer { to { background-position: 200% center; } }
.sec-head .bar { flex: 1; height: 2px; background: linear-gradient(90deg, var(--orange), transparent); }
.sec-head .more { font-size: 13px; color: var(--text-dim); white-space: nowrap; }
.sec-head .more:hover { color: var(--gold); }
.sec-head .orn { color: var(--gold-deep); letter-spacing: 4px; font-size: 18px; }

/* ---------- 10. 新区推荐卡片（首页首屏） ---------- */
.xq-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.xq-card {
  position: relative; overflow: hidden; border-radius: var(--radius);
  border: 1px solid var(--line); background: var(--panel);
  transition: transform .3s, box-shadow .3s;
}
.xq-card:hover { transform: translateY(-5px); box-shadow: 0 10px 30px rgba(255, 138, 30, .3); }
.xq-card .pic { position: relative; overflow: hidden; }
.xq-card .pic img { width: 100%; height: 130px; object-fit: cover; transition: transform .5s; }
.xq-card:hover .pic img { transform: scale(1.08); }
.xq-card .flag {
  position: absolute; top: 10px; left: 0; z-index: 2; font-size: 12px; font-weight: 700;
  background: linear-gradient(90deg, var(--red-hot), #ff7a3c); color: #fff;
  padding: 2px 12px 2px 8px; border-radius: 0 12px 12px 0; box-shadow: 0 2px 8px rgba(0,0,0,.4);
}
.xq-card .flag.hot { background: linear-gradient(90deg, #b8860b, var(--gold)); }
.xq-card .info { padding: 10px 12px 12px; }
.xq-card .t2 { font-size: 15px; font-weight: 700; color: var(--gold-light); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.xq-card .meta { display: flex; justify-content: space-between; font-size: 12px; color: var(--text-dim); margin-top: 6px; }
.xq-card .meta .go { color: var(--orange); font-weight: 700; }
.xq-card .go-btn {
  display: block; text-align: center; margin-top: 9px; padding: 6px 0; font-size: 13px; font-weight: 700;
  color: #241205; background: linear-gradient(180deg, var(--gold-light), var(--gold) 45%, var(--orange));
  border-radius: 6px;
}
.xq-card .go-btn:hover { filter: brightness(1.1); color: #241205; text-shadow: none; }

/* ---------- 11. 开服表 ---------- */
.kf-table { width: 100%; border-collapse: collapse; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.kf-table thead th {
  background: linear-gradient(90deg, rgba(255, 138, 30, .25), rgba(255, 201, 77, .15));
  color: var(--gold-light); font-size: 14px; padding: 10px 12px; text-align: left;
  border-bottom: 1px solid var(--line); white-space: nowrap;
}
.kf-table tbody td { padding: 10px 12px; font-size: 14px; border-bottom: 1px solid rgba(255, 190, 80, .12); }
.kf-table tbody tr:nth-child(even) { background: rgba(255, 190, 80, .04); }
.kf-table tbody tr:hover { background: rgba(255, 138, 30, .12); }
.kf-table .sv { color: var(--gold-light); font-weight: 700; }
.kf-table .tag { display: inline-block; font-size: 11px; padding: 1px 8px; border-radius: 10px; margin-right: 4px; }
.tag-hot { background: rgba(232, 68, 42, .2); color: #ff9a7d; border: 1px solid rgba(232, 68, 42, .5); }
.tag-new { background: rgba(255, 201, 77, .15); color: var(--gold); border: 1px solid rgba(255, 201, 77, .4); }
.tag-sb { background: rgba(82, 196, 26, .15); color: #9be36b; border: 1px solid rgba(82, 196, 26, .4); }
.kf-table .dl a {
  display: inline-block; padding: 4px 14px; font-size: 13px; color: #241205; font-weight: 700;
  background: linear-gradient(180deg, var(--gold-light), var(--gold) 45%, var(--orange));
  border-radius: 5px;
}
.kf-table .dl a:hover { color: #241205; filter: brightness(1.1); }

/* ---------- 12. 分类入口卡片 ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.cat-card {
  display: flex; align-items: center; gap: 12px; padding: 12px;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  transition: transform .3s, box-shadow .3s, border-color .3s;
}
.cat-card:hover { transform: translateY(-4px); border-color: var(--gold); box-shadow: var(--shadow-gold); }
.cat-card img { width: 74px; height: 54px; object-fit: cover; border-radius: 8px; flex: 0 0 auto; }
.cat-card .ct { flex: 1; min-width: 0; }
.cat-card .ct .n { font-size: 15px; font-weight: 700; color: var(--gold-light); }
.cat-card .ct .d { font-size: 12px; color: var(--text-dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cat-card .ct .c { font-size: 11px; color: var(--orange); }

/* ---------- 13. 三职业专区 ---------- */
.zhiye-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.zy-card { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--panel); }
.zy-card img { width: 100%; height: 190px; object-fit: cover; }
.zy-card .zy-mask {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 14px 12px;
  background: linear-gradient(180deg, transparent, rgba(10, 5, 1, .95));
}
.zy-card .zy-name { font-size: 19px; font-weight: 900; color: var(--gold-light); letter-spacing: 2px; }
.zy-card .zy-desc { font-size: 12px; color: var(--text-dim); margin-top: 2px; }
.zy-card .zy-links { margin-top: 6px; display: flex; gap: 8px; flex-wrap: wrap; }
.zy-card .zy-links a { font-size: 12px; color: var(--gold); border: 1px solid var(--line); padding: 1px 10px; border-radius: 12px; }
.zy-card .zy-links a:hover { background: rgba(255, 201, 77, .15); }

/* ---------- 14. 文章列表 ---------- */
.art-list { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.art-item { display: flex; gap: 14px; padding: 14px 16px; border-bottom: 1px solid rgba(255, 190, 80, .1); }
.art-item:last-child { border-bottom: 0; }
.art-item:hover { background: rgba(255, 138, 30, .08); }
.art-item .thumb { flex: 0 0 auto; }
.art-item .thumb img { width: 150px; height: 92px; object-fit: cover; border-radius: 8px; border: 1px solid rgba(255, 190, 80, .2); }
.art-item .ai { flex: 1; min-width: 0; }
.art-item .ai h3 { font-size: 16px; font-weight: 700; }
.art-item .ai h3 a { color: var(--gold-light); }
.art-item .ai h3 a:hover { color: #fff; }
.art-item .ai .sum { font-size: 13px; color: var(--text-dim); margin-top: 4px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.art-item .ai .am { font-size: 12px; color: #9a7d4e; margin-top: 6px; display: flex; gap: 12px; flex-wrap: wrap; }
.art-item .ai .am a { color: var(--orange); }
.art-item .ai .am a:hover { color: var(--gold-light); }

/* ---------- 15. 排行榜 ---------- */
.rank-list { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 0; }
.rank-item { display: flex; align-items: center; gap: 10px; padding: 9px 14px; border-bottom: 1px dashed rgba(255, 190, 80, .12); }
.rank-item:last-child { border-bottom: 0; }
.rank-item .no {
  width: 22px; height: 22px; flex: 0 0 auto; text-align: center; line-height: 22px;
  border-radius: 5px; font-size: 12px; font-weight: 700; background: rgba(255, 201, 77, .15); color: var(--gold);
}
.rank-item:nth-child(1) .no, .rank-item:nth-child(2) .no, .rank-item:nth-child(3) .no { background: linear-gradient(180deg, var(--gold), var(--orange)); color: #241205; }
.rank-item .rt { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
.rank-item .rt a { color: var(--text); }
.rank-item .rt a:hover { color: var(--gold-light); }
.rank-item .rv { font-size: 12px; color: var(--text-dim); flex: 0 0 auto; }

/* ---------- 16. 图鉴画廊（地图/装备） ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.gal-card { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--panel); }
.gal-card img { width: 100%; height: 140px; object-fit: cover; transition: transform .5s; }
.gal-card:hover img { transform: scale(1.07); }
.gal-card .gl { position: absolute; left: 0; right: 0; bottom: 0; padding: 20px 10px 8px; background: linear-gradient(180deg, transparent, rgba(8, 4, 1, .95)); }
.gal-card .gl .n { font-size: 14px; font-weight: 700; color: var(--gold-light); }
.gal-card .gl .s { font-size: 11px; color: var(--text-dim); }

/* ---------- 17. 下载专区 ---------- */
.dl-panel {
  border-radius: var(--radius); padding: 26px 22px; text-align: center;
  background: linear-gradient(120deg, rgba(232, 68, 42, .18), rgba(255, 138, 30, .22) 50%, rgba(212, 160, 23, .18));
  border: 1px solid var(--line); position: relative; overflow: hidden;
}
.dl-panel::before {
  content: ""; position: absolute; top: -60%; left: -20%; width: 60%; height: 220%;
  background: linear-gradient(100deg, transparent, rgba(255, 233, 168, .12), transparent);
  transform: rotate(15deg); animation: sweep 4.5s ease-in-out infinite;
}
@keyframes sweep { 0% { left: -30%; } 60%, 100% { left: 130%; } }
.dl-panel .dl-t { font-size: 24px; font-weight: 900; letter-spacing: 2px; color: var(--gold-light); }
.dl-panel .dl-s { color: var(--text-dim); font-size: 13px; margin: 6px 0 16px; }
.dl-btn {
  display: inline-block; padding: 12px 46px; font-size: 18px; font-weight: 900; letter-spacing: 2px;
  color: #241205; border-radius: 8px;
  background: linear-gradient(180deg, var(--gold-light), var(--gold) 40%, var(--orange));
  box-shadow: 0 0 24px rgba(255, 138, 30, .55);
  animation: glow 2.2s ease-in-out infinite;
}
@keyframes glow { 0%, 100% { box-shadow: 0 0 14px rgba(255, 138, 30, .4); } 50% { box-shadow: 0 0 30px rgba(255, 138, 30, .8); } }
.dl-btn:hover { color: #241205; filter: brightness(1.1); text-shadow: none; }
.dl-points { margin-top: 14px; display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }
.dl-points span { font-size: 12px; color: var(--gold); border: 1px solid var(--line); padding: 3px 12px; border-radius: 20px; background: rgba(0,0,0,.3); }

/* ---------- 18. 标签云 ---------- */
.tags-cloud { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.tags-cloud a {
  display: inline-block; font-size: 13px; color: var(--text-dim); margin: 4px 5px;
  border: 1px solid rgba(255, 190, 80, .22); padding: 2px 12px; border-radius: 20px;
  background: rgba(0, 0, 0, .2);
}
.tags-cloud a:hover { color: #241205; background: linear-gradient(180deg, var(--gold-light), var(--gold) 45%, var(--orange)); border-color: var(--gold); }
.tags-cloud a.tg1 { font-size: 15px; color: var(--gold); }
.tags-cloud a.tg2 { font-size: 14px; color: var(--gold-light); }

/* ---------- 19. FAQ ---------- */
.faq-list { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.faq-item { border-bottom: 1px dashed rgba(255, 190, 80, .15); }
.faq-item:last-child { border-bottom: 0; }
.faq-item .q { padding: 13px 16px; font-size: 15px; font-weight: 700; color: var(--gold-light); cursor: pointer; display: flex; gap: 10px; align-items: baseline; }
.faq-item .q::before { content: "问"; font-size: 12px; color: #241205; background: var(--orange); border-radius: 4px; padding: 0 6px; flex: 0 0 auto; }
.faq-item .a { padding: 0 16px 14px 16px; font-size: 14px; color: var(--text-dim); display: none; }
.faq-item .a::before { content: "答"; font-size: 12px; color: #241205; background: var(--gold); border-radius: 4px; padding: 0 6px; margin-right: 8px; }
.faq-item.open .a { display: block; }

/* ---------- 20. 侧栏小组件 ---------- */
.widget { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.widget .w-head {
  padding: 11px 14px; font-size: 16px; font-weight: 800; letter-spacing: 1px; color: var(--gold-light);
  background: linear-gradient(90deg, rgba(255, 138, 30, .22), rgba(255, 201, 77, .06));
  border-bottom: 1px solid var(--line);
  display: flex; align-items: center; gap: 8px;
}
.widget .w-head::before { content: "◆"; font-size: 12px; color: var(--orange); }
.widget .w-body { padding: 12px 14px; }
.widget .w-body ul li { padding: 7px 0; border-bottom: 1px dashed rgba(255, 190, 80, .1); font-size: 14px; display: flex; gap: 8px; align-items: baseline; }
.widget .w-body ul li:last-child { border-bottom: 0; }
.widget .w-body ul li::before { content: "▸"; color: var(--orange); font-size: 12px; }
.widget .w-body ul li a { color: var(--text); }
.widget .w-body ul li a:hover { color: var(--gold-light); }
.widget .w-body ul li .d { margin-left: auto; color: #8a6f42; font-size: 12px; flex: 0 0 auto; }
.widget .w-body .w-dl { display: block; text-align: center; padding: 10px; font-weight: 800; color: #241205; border-radius: 6px; background: linear-gradient(180deg, var(--gold-light), var(--gold) 45%, var(--orange)); }
.widget .w-body .w-dl:hover { color: #241205; filter: brightness(1.1); }
.widget .w-kf { width: 100%; }
.widget .w-kf th, .widget .w-kf td { font-size: 13px; padding: 7px 4px; border-bottom: 1px dashed rgba(255, 190, 80, .12); text-align: left; }
.widget .w-kf th { color: var(--gold); font-weight: 700; }

/* ---------- 21. 面包屑 ---------- */
.crumb { font-size: 13px; color: var(--text-dim); margin: 16px 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.crumb a { color: var(--text-dim); }
.crumb a:hover { color: var(--gold); }
.crumb .sep { color: #8a6f42; }

/* ---------- 22. 分页 ---------- */
.pagination { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0; justify-content: center; }
.pagination a, .pagination span {
  display: inline-block; min-width: 38px; text-align: center; padding: 7px 12px;
  border: 1px solid var(--line); border-radius: 6px; font-size: 14px; color: var(--text);
  background: var(--panel);
}
.pagination a:hover { border-color: var(--gold); color: var(--gold-light); box-shadow: var(--shadow-gold); }
.pagination .cur { background: linear-gradient(180deg, var(--gold-light), var(--gold) 45%, var(--orange)); color: #241205; font-weight: 800; border-color: transparent; }

/* ---------- 23. 内容页文章 ---------- */
.article-box { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 26px; }
.article-title { font-size: 26px; font-weight: 900; line-height: 1.4; color: var(--gold-light); }
.article-meta { display: flex; flex-wrap: wrap; gap: 16px; font-size: 13px; color: var(--text-dim); margin: 12px 0 16px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.article-meta a { color: var(--orange); }
.article-body { font-size: 15.5px; color: var(--text); }
.article-body h2 { font-size: 20px; color: var(--gold); margin: 26px 0 12px; padding-left: 12px; border-left: 4px solid var(--orange); }
.article-body h3 { font-size: 17px; color: var(--gold-light); margin: 20px 0 10px; }
.article-body p { margin: 12px 0; text-align: justify; }
.article-body ul, .article-body ol { margin: 12px 0 12px 24px; }
.article-body ul li { list-style: disc; margin: 6px 0; }
.article-body ol li { list-style: decimal; margin: 6px 0; }
.article-body img { border-radius: 10px; border: 1px solid var(--line); margin: 14px auto; box-shadow: 0 4px 20px rgba(0,0,0,.4); }
.article-body .img-cap { text-align: center; font-size: 12px; color: var(--text-dim); margin: -8px 0 14px; }
.article-body .tip {
  border: 1px solid rgba(255, 201, 77, .4); background: rgba(255, 138, 30, .1);
  border-radius: 8px; padding: 12px 16px; margin: 16px 0; font-size: 14px; color: var(--gold-light);
}
.article-body .tip b { color: var(--orange); }
.article-body table { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: 14px; }
.article-body table th, .article-body table td { border: 1px solid rgba(255, 190, 80, .25); padding: 8px 10px; text-align: left; }
.article-body table th { background: rgba(255, 138, 30, .18); color: var(--gold-light); }
.article-body strong { color: var(--gold-light); }
.article-body a { color: var(--orange); text-decoration: underline; }
.article-body a:hover { color: var(--gold-light); }
.article-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); }
.article-tags a { font-size: 13px; color: var(--text-dim); border: 1px solid var(--line); padding: 2px 12px; border-radius: 20px; }
.article-tags a:hover { color: #241205; background: var(--gold); border-color: var(--gold); }
.article-nav { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; padding: 14px 16px; background: rgba(0,0,0,.25); border-radius: 8px; font-size: 14px; }
.article-nav a { color: var(--gold); }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.rel-item { display: block; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--panel); transition: transform .3s; }
.rel-item:hover { transform: translateY(-4px); border-color: var(--gold); }
.rel-item img { width: 100%; height: 100px; object-fit: cover; }
.rel-item .rn { padding: 8px 10px; font-size: 13px; color: var(--gold-light); }

/* ---------- 24. 页脚 ---------- */
.site-footer { margin-top: 30px; background: linear-gradient(180deg, rgba(30, 16, 5, .97), rgba(12, 6, 2, .98)); border-top: 2px solid var(--line); }
.footer-in { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 30px; padding: 30px 0 20px; }
.footer-in h4 { font-size: 16px; color: var(--gold); margin-bottom: 12px; letter-spacing: 1px; }
.footer-in p, .footer-in li { font-size: 13px; color: var(--text-dim); line-height: 2; }
.footer-in a { color: var(--text-dim); }
.footer-in a:hover { color: var(--gold); }
.footer-in .f-logo img { width: 160px; }
.footer-in .f-kw a { display: inline-block; margin: 2px 6px 2px 0; font-size: 12px; }
.footer-bottom { border-top: 1px solid rgba(255, 190, 80, .15); padding: 14px 0 18px; text-align: center; font-size: 13px; color: var(--text-dim); }
.footer-bottom a { color: var(--gold); }
.footer-bottom .icp { color: #8a6f42; }

/* ---------- 25. 返回顶部 ---------- */
#backTop {
  position: fixed; right: 22px; bottom: 30px; z-index: 99; width: 46px; height: 46px;
  border: 1px solid var(--gold); border-radius: 50%; cursor: pointer;
  color: #241205; font-size: 20px; font-weight: 900;
  background: linear-gradient(180deg, var(--gold-light), var(--gold) 45%, var(--orange));
  box-shadow: var(--shadow-gold); opacity: 0; visibility: hidden; transition: opacity .3s, transform .3s;
}
#backTop.show { opacity: 1; visibility: visible; }
#backTop:hover { transform: translateY(-4px); }

/* ---------- 26. 404 ---------- */
.page404 { text-align: center; padding: 80px 20px; }
.page404 .n { font-size: 120px; font-weight: 900; background: linear-gradient(180deg, var(--gold-light), var(--gold), var(--orange)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.page404 p { color: var(--text-dim); margin: 10px 0 24px; }
.page404 a { display: inline-block; padding: 10px 34px; border-radius: 8px; font-weight: 700; color: #241205; background: linear-gradient(180deg, var(--gold-light), var(--gold) 45%, var(--orange)); }

/* ---------- 27. 工具类 ---------- */
.tc { text-align: center; }
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }
.mt10 { margin-top: 10px; } .mt16 { margin-top: 16px; } .mt24 { margin-top: 24px; }
.hidden { display: none !important; }
.skeleton { background: linear-gradient(90deg, rgba(255,201,77,.06), rgba(255,201,77,.14), rgba(255,201,77,.06)); background-size: 200% 100%; animation: shimmer 1.4s infinite; border-radius: 6px; }

/* ---------- 28. 响应式：平板 & 手机 ---------- */
@media (max-width: 1024px) {
  .xq-grid, .cat-grid, .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .main-grid { grid-template-columns: minmax(0, 1fr); }
  .side-col { position: static; }
  .side-grid-m { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
}
@media (max-width: 860px) {
  .header-in { flex-wrap: wrap; }
  .header-search { order: 3; max-width: 100%; flex-basis: 100%; }
  .site-name .sn-cn { font-size: 22px; }
  .nav-toggle {
    display: flex; margin-left: auto; align-items: center; gap: 6px;
    padding: 8px 14px; border: 1px solid var(--line); border-radius: 6px;
    color: var(--gold-light); background: rgba(255, 138, 30, .12); cursor: pointer; font-size: 14px;
  }
  .nav-list {
    display: none; width: 100%; flex-direction: column;
    border-top: 1px solid rgba(255, 190, 80, .2); max-height: 70vh; overflow: auto;
  }
  .nav-list.open { display: flex; }
  .nav-list > li { border-bottom: 1px solid rgba(255, 190, 80, .1); }
  .nav-list a { border-left: 0; padding: 13px 18px; }
  .nav-right { display: none; }
  .xq-grid, .cat-grid, .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .zhiye-grid { grid-template-columns: 1fr; }
  .footer-in { grid-template-columns: 1fr; gap: 20px; }
  .related-grid { grid-template-columns: repeat(2, 1fr); }
  .kf-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .kf-table { min-width: 640px; }
}
@media (max-width: 520px) {
  body { font-size: 14px; }
  .logo-box img.logo { width: 150px; }
  .site-name .sn-cn { font-size: 18px; letter-spacing: 1px; }
  .xq-grid, .cat-grid, .gallery-grid { grid-template-columns: 1fr; }
  .side-grid-m { grid-template-columns: 1fr; }
  .art-item { flex-direction: column; }
  .art-item .thumb img { width: 100%; height: 160px; }
  .article-box { padding: 16px; }
  .article-title { font-size: 20px; }
  .sec-head .t { font-size: 18px; }
  .dl-panel .dl-t { font-size: 20px; }
  .dl-btn { padding: 11px 30px; font-size: 16px; }
  .page404 .n { font-size: 80px; }
  #backTop { right: 14px; bottom: 20px; width: 42px; height: 42px; }
}
