/* ============================================================
   找爽爆 www.ZhaoSB.com · 传奇私服发布网 全站样式
   暗黑传奇风格 · PC + 手机自适应 · 独立样式文件
   ============================================================ */

/* ---------- 变量与基础 ---------- */
:root {
  --gold: #e8b84b;
  --gold-deep: #c9972f;
  --gold-light: #f7d98a;
  --red: #e0392e;
  --red-deep: #b3261e;
  --ink: #0d0e12;
  --ink-2: #14161d;
  --panel: rgba(18, 20, 28, 0.88);
  --panel-2: rgba(24, 27, 38, 0.92);
  --line: rgba(232, 184, 75, 0.22);
  --line-soft: rgba(255, 255, 255, 0.07);
  --text: #d8d4c8;
  --text-dim: #9a968a;
  --radius: 8px;
  --shadow: 0 6px 22px rgba(0, 0, 0, 0.45);
}

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

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

body {
  font-family: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", "WenQuanYi Micro Hei", sans-serif;
  color: var(--text);
  background: #0b0c10 url(../images/bj.png) center top / cover fixed no-repeat;
  background-color: #0b0c10;
  font-size: 15px;
  line-height: 1.7;
  min-height: 100vh;
}

/* 背景压暗层，保证文字可读 */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 9, 13, 0.72) 0%, rgba(8, 9, 13, 0.82) 40%, rgba(8, 9, 13, 0.88) 100%);
  z-index: -1;
  pointer-events: none;
}

img { max-width: 100%; display: block; border: 0; }
a { color: inherit; text-decoration: none; transition: color 0.2s ease; }
a:hover { color: var(--gold-light); }
ul, ol { list-style: none; }
h1, h2, h3, h4 { font-weight: 700; line-height: 1.4; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 16px; }

/* ---------- 顶部公告条 ---------- */
.topbar {
  background: linear-gradient(90deg, #1a1206, #2a1d08 50%, #1a1206);
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  color: var(--gold-light);
}
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; height: 34px; overflow: hidden; }
.topbar a { color: var(--gold-light); }
.topbar .notice { overflow: hidden; white-space: nowrap; flex: 1; }
.topbar .notice span { display: inline-block; padding-left: 100%; animation: marquee 32s linear infinite; }
@keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-100%); } }
.topbar .topside { flex-shrink: 0; margin-left: 20px; }
.topbar .topside a { margin-left: 14px; }

/* ---------- 头部导航 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 11, 16, 0.95);
  border-bottom: 2px solid var(--gold-deep);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.6);
}
.header-inner { display: flex; align-items: center; height: 68px; gap: 18px; }

.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand .logo {
  width: 46px; height: 46px; border-radius: 50%;
  border: 2px solid var(--gold-deep);
  box-shadow: 0 0 14px rgba(232, 184, 75, 0.5);
  overflow: hidden; flex-shrink: 0;
}
.brand .logo img { width: 100%; height: 100%; object-fit: cover; }
.brand .sitename { line-height: 1.15; }
.brand .sitename strong {
  display: block; font-size: 24px; letter-spacing: 2px;
  background: linear-gradient(180deg, #ffe9a8, #e8b84b 60%, #b98a22);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.brand .sitename small { color: var(--text-dim); font-size: 11px; letter-spacing: 1px; }

.main-nav { margin-left: auto; display: flex; align-items: center; gap: 2px; }
.main-nav > li { position: relative; }
.main-nav > li > a {
  display: block; padding: 10px 13px; font-size: 15px; color: var(--text);
  border-radius: 6px; white-space: nowrap;
}
.main-nav > li > a:hover, .main-nav > li.active > a {
  color: #1a1306; background: linear-gradient(180deg, var(--gold-light), var(--gold));
  font-weight: 700;
}
.main-nav > li.has-sub::after {
  content: "▾"; font-size: 11px; color: var(--text-dim);
  position: absolute; right: 3px; top: 12px; pointer-events: none;
}
.main-nav .submenu {
  position: absolute; top: 100%; left: 0; min-width: 170px;
  background: var(--panel-2); border: 1px solid var(--line);
  border-radius: 0 0 8px 8px; box-shadow: var(--shadow);
  padding: 6px; display: none; z-index: 99;
}
.main-nav li:hover .submenu { display: block; }
.main-nav .submenu a { display: block; padding: 8px 12px; border-radius: 5px; font-size: 14px; color: var(--text); }
.main-nav .submenu a:hover { background: rgba(232, 184, 75, 0.14); color: var(--gold-light); }

.nav-toggle {
  display: none; margin-left: auto; width: 42px; height: 42px;
  border: 1px solid var(--line); border-radius: 8px; background: transparent;
  cursor: pointer; position: relative; flex-shrink: 0;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; position: absolute; left: 9px; width: 22px; height: 2px;
  background: var(--gold); transition: all 0.3s ease;
}
.nav-toggle span { top: 20px; }
.nav-toggle span::before { top: -7px; }
.nav-toggle span::after { top: 7px; }
.nav-toggle.open span { background: transparent; }
.nav-toggle.open span::before { top: 0; transform: rotate(45deg); background: var(--gold); }
.nav-toggle.open span::after { top: 0; transform: rotate(-45deg); background: var(--gold); }

/* ---------- 横幅 + 广告位 ---------- */
.banner-area { padding: 16px 0 4px; }
.banner-box {
  border: 1px solid var(--line); border-radius: 10px; overflow: hidden;
  box-shadow: var(--shadow); background: var(--ink-2);
}
.banner-box a { display: block; }
.banner-box img { width: 100%; height: auto; }
.banner-ads { padding: 14px 0 6px; }
.ads-box {
  background: rgba(10, 11, 16, 0.6); border: 1px dashed var(--line);
  border-radius: 8px; min-height: 60px; text-align: center;
  display: flex; align-items: center; justify-content: center;
}
.ads-box img { max-height: 90px; margin: 0 auto; }

/* ---------- 面包屑 ---------- */
.crumbs { padding: 14px 0 4px; font-size: 13px; color: var(--text-dim); }
.crumbs a { color: var(--gold); }
.crumbs a:hover { color: var(--gold-light); }
.crumbs i { font-style: normal; margin: 0 8px; color: #5a574e; }

/* ---------- 页面标题 ---------- */
.page-title { margin: 18px 0 14px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.page-title h1 { font-size: 26px; color: var(--gold-light); letter-spacing: 1px; }
.page-title .line { flex: 1; height: 1px; background: linear-gradient(90deg, var(--line), transparent); }
.page-title .desc { width: 100%; color: var(--text-dim); font-size: 14px; font-weight: 400; }

/* ---------- 区块标题 ---------- */
.section { margin: 26px 0; }
.sec-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.sec-head .sec-icon {
  width: 6px; height: 24px; border-radius: 3px;
  background: linear-gradient(180deg, var(--gold-light), var(--gold-deep));
  box-shadow: 0 0 8px rgba(232, 184, 75, 0.6);
}
.sec-head h2 { font-size: 20px; color: var(--gold-light); letter-spacing: 1px; }
.sec-head .more { margin-left: auto; font-size: 13px; color: var(--text-dim); }
.sec-head .more:hover { color: var(--gold-light); }
.sec-head .tags { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------- 面板 / 卡片 ---------- */
.panel {
  background: var(--panel); border: 1px solid var(--line-soft);
  border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow);
}
.panel + .panel { margin-top: 18px; }

.card {
  background: var(--panel-2); border: 1px solid var(--line-soft);
  border-radius: var(--radius); overflow: hidden; transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(0, 0, 0, 0.55); border-color: var(--line); }
.card .pic { position: relative; overflow: hidden; aspect-ratio: 16 / 9; background: #0d0e12; }
.card .pic img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.card:hover .pic img { transform: scale(1.06); }
.card .pic .flag {
  position: absolute; left: 10px; top: 10px; z-index: 2;
  background: linear-gradient(90deg, var(--red), var(--red-deep));
  color: #fff; font-size: 12px; padding: 2px 10px; border-radius: 4px; font-weight: 700;
}
.card .pic .flag.hot { background: linear-gradient(90deg, #e8b84b, #c9972f); color: #231a05; }
.card .pic .flag.new { background: linear-gradient(90deg, #2f9e6e, #1f7a52); }
.card .pic .play {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: rgba(8, 9, 13, 0.55); opacity: 0; transition: opacity 0.3s ease;
}
.card:hover .pic .play { opacity: 1; }
.card .pic .play i {
  font-style: normal; width: 44px; height: 44px; border-radius: 50%;
  background: var(--gold); color: #1a1306; display: flex; align-items: center; justify-content: center;
  font-size: 20px; box-shadow: 0 0 18px rgba(232, 184, 75, 0.7);
}
.card .info { padding: 12px 14px 14px; }
.card .info h3 { font-size: 16px; color: var(--text); margin-bottom: 6px; }
.card .info h3 a:hover { color: var(--gold-light); }
.card .info .meta { font-size: 12px; color: var(--text-dim); display: flex; gap: 10px; flex-wrap: wrap; }
.card .info .meta b { color: var(--gold); font-weight: 700; }

/* 网格 */
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }

/* ---------- 开服表格 ---------- */
.serve-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.serve-table th, .serve-table td { padding: 11px 12px; text-align: left; border-bottom: 1px solid var(--line-soft); }
.serve-table thead th {
  background: rgba(232, 184, 75, 0.1); color: var(--gold-light);
  font-size: 13px; white-space: nowrap;
}
.serve-table tbody tr { transition: background 0.2s ease; }
.serve-table tbody tr:hover { background: rgba(232, 184, 75, 0.06); }
.serve-table td .name { color: var(--text); font-weight: 700; }
.serve-table td .name:hover { color: var(--gold-light); }
.serve-table td .ver { color: var(--gold); font-size: 13px; }
.serve-table .state { font-size: 12px; padding: 2px 10px; border-radius: 10px; white-space: nowrap; }
.serve-table .state.open { background: rgba(47, 158, 110, 0.18); color: #57c999; }
.serve-table .state.full { background: rgba(224, 57, 46, 0.18); color: #ff7b72; }
.serve-table .state.pre { background: rgba(232, 184, 75, 0.16); color: var(--gold-light); }
.serve-table .time { color: var(--text-dim); font-size: 13px; white-space: nowrap; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.btn-dl {
  display: inline-block; padding: 5px 14px; font-size: 13px; font-weight: 700;
  color: #1a1306; background: linear-gradient(180deg, var(--gold-light), var(--gold-deep));
  border-radius: 5px; white-space: nowrap; border: 0; cursor: pointer;
}
.btn-dl:hover { color: #fff; background: linear-gradient(180deg, #f0c96a, var(--gold-deep)); box-shadow: 0 0 10px rgba(232, 184, 75, 0.5); }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 26px; border-radius: 6px; font-size: 15px; font-weight: 700;
  border: 0; cursor: pointer; transition: all 0.2s ease;
}
.btn-gold { color: #1a1306; background: linear-gradient(180deg, var(--gold-light), var(--gold-deep)); }
.btn-gold:hover { box-shadow: 0 0 16px rgba(232, 184, 75, 0.55); color: #1a1306; transform: translateY(-1px); }
.btn-red { color: #fff; background: linear-gradient(180deg, #e85a4f, var(--red-deep)); }
.btn-red:hover { box-shadow: 0 0 16px rgba(224, 57, 46, 0.55); color: #fff; transform: translateY(-1px); }
.btn-line { color: var(--gold-light); background: transparent; border: 1px solid var(--gold-deep); }
.btn-line:hover { background: rgba(232, 184, 75, 0.12); }

/* ---------- 搜索 ---------- */
.search-box {
  display: flex; gap: 0; background: var(--panel-2); border: 1px solid var(--line);
  border-radius: 8px; overflow: hidden; max-width: 560px;
}
.search-box input {
  flex: 1; border: 0; outline: none; background: transparent; color: var(--text);
  padding: 11px 16px; font-size: 15px; min-width: 0;
}
.search-box input::placeholder { color: var(--text-dim); }
.search-box button {
  border: 0; background: linear-gradient(180deg, var(--gold-light), var(--gold-deep));
  color: #1a1306; font-weight: 700; padding: 0 22px; cursor: pointer; font-size: 15px;
}
.search-box button:hover { background: linear-gradient(180deg, #f0c96a, var(--gold-deep)); }

/* 搜索结果下拉 */
#searchResult { position: absolute; z-index: 120; max-width: 560px; }
#searchResult .sr-item { display: flex; flex-direction: column; gap: 2px; padding: 9px 12px; border-radius: 6px; }
#searchResult .sr-item:hover { background: rgba(232, 184, 75, 0.12); }
#searchResult .sr-item b { color: var(--gold-light); font-size: 14px; }
#searchResult .sr-item span { color: var(--text-dim); font-size: 12px; }
#searchResult .sr-empty { padding: 12px; font-size: 13px; color: var(--text-dim); }
.search-area { position: relative; }

/* ---------- 标签 ---------- */
.tag {
  display: inline-block; padding: 3px 12px; font-size: 13px; color: var(--gold-light);
  background: rgba(232, 184, 75, 0.1); border: 1px solid var(--line); border-radius: 20px;
}
.tag:hover { background: rgba(232, 184, 75, 0.2); }
.tags-list { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- 图鉴（游戏类型图） ---------- */
.album { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.album .item {
  position: relative; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line-soft); aspect-ratio: 16 / 10;
}
.album .item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.album .item:hover img { transform: scale(1.08); }
.album .item .mask {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 4px; text-align: center;
  background: linear-gradient(180deg, rgba(8, 9, 13, 0.1), rgba(8, 9, 13, 0.85));
}
.album .item .mask b { color: var(--gold-light); font-size: 19px; letter-spacing: 3px; text-shadow: 0 0 10px rgba(0, 0, 0, 0.8); }
.album .item .mask span { color: var(--text); font-size: 12px; }

/* ---------- 文章列表 ---------- */
.news-list li { display: flex; gap: 14px; padding: 13px 0; border-bottom: 1px dashed var(--line-soft); align-items: flex-start; }
.news-list li:last-child { border-bottom: 0; }
.news-list .pic { width: 120px; height: 76px; border-radius: 6px; overflow: hidden; flex-shrink: 0; }
.news-list .pic img { width: 100%; height: 100%; object-fit: cover; }
.news-list .txt h3 { font-size: 15px; color: var(--text); line-height: 1.5; }
.news-list .txt h3 a:hover { color: var(--gold-light); }
.news-list .txt p { font-size: 13px; color: var(--text-dim); margin-top: 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.news-list .txt time { font-size: 12px; color: #6e6a5f; margin-top: 4px; display: block; }

/* 热门关键词 */
.hot-words { display: flex; flex-wrap: wrap; gap: 10px; }
.hot-words a {
  font-size: 13px; color: var(--text-dim); padding: 4px 12px;
  background: rgba(255, 255, 255, 0.04); border-radius: 16px; border: 1px solid var(--line-soft);
}
.hot-words a:hover { color: var(--gold-light); border-color: var(--gold-deep); }

/* ---------- 内容页 ---------- */
.article { padding: 22px; }
.article-head { border-bottom: 1px solid var(--line); padding-bottom: 16px; margin-bottom: 18px; }
.article-head h1 { font-size: 24px; color: var(--gold-light); }
.article-head .info { margin-top: 10px; font-size: 13px; color: var(--text-dim); display: flex; gap: 16px; flex-wrap: wrap; }
.article-body { font-size: 15px; }
.article-body h2 { font-size: 19px; color: var(--gold-light); margin: 22px 0 12px; padding-left: 12px; border-left: 4px solid var(--gold-deep); }
.article-body h3 { font-size: 16px; color: var(--gold-light); margin: 18px 0 8px; }
.article-body p { margin: 10px 0; }
.article-body img { border-radius: 8px; margin: 14px 0; box-shadow: var(--shadow); }
.article-body .kv { margin: 16px 0; }
.article-body .kv tr td { padding: 8px 12px; border-bottom: 1px dashed var(--line-soft); font-size: 14px; }
.article-body .kv tr td:first-child { color: var(--gold); width: 130px; white-space: nowrap; }
.article-body .kv tr td:last-child { color: var(--text); }
.dl-box {
  margin: 20px 0; padding: 18px; border-radius: var(--radius);
  background: linear-gradient(90deg, rgba(232, 184, 75, 0.14), rgba(232, 184, 75, 0.05));
  border: 1px solid var(--line); text-align: center;
}
.dl-box .tip { font-size: 13px; color: var(--text-dim); margin-top: 8px; }
.article-foot { margin-top: 22px; padding-top: 14px; border-top: 1px dashed var(--line-soft); display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.article-foot .label { color: var(--text-dim); font-size: 13px; }
.article-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 18px; font-size: 14px; }
.article-nav a { padding: 12px 14px; background: var(--panel-2); border: 1px solid var(--line-soft); border-radius: 6px; color: var(--text); }
.article-nav a:hover { border-color: var(--gold-deep); color: var(--gold-light); }
.article-nav .next { text-align: right; }

/* ---------- 分类页筛选 ---------- */
.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 14px 16px; }
.filter-bar .f-label { color: var(--gold); font-size: 14px; font-weight: 700; }
.filter-bar a {
  padding: 5px 14px; font-size: 13px; border-radius: 16px;
  border: 1px solid var(--line-soft); color: var(--text-dim);
}
.filter-bar a:hover, .filter-bar a.on { color: #1a1306; background: var(--gold); border-color: var(--gold); font-weight: 700; }

/* ---------- 分页 ---------- */
.pagination { display: flex; justify-content: center; gap: 8px; margin: 26px 0; flex-wrap: wrap; }
.pagination a, .pagination span {
  min-width: 38px; height: 38px; padding: 0 12px; display: inline-flex;
  align-items: center; justify-content: center; border-radius: 6px;
  background: var(--panel-2); border: 1px solid var(--line-soft); font-size: 14px;
}
.pagination .cur { background: var(--gold); color: #1a1306; font-weight: 700; border-color: var(--gold); }
.pagination a:hover { border-color: var(--gold-deep); color: var(--gold-light); }

/* ---------- 侧栏 ---------- */
.layout-2 { display: grid; grid-template-columns: 1fr 320px; gap: 20px; align-items: start; }
.side .panel + .panel { margin-top: 18px; }
.side-title { font-size: 16px; color: var(--gold-light); margin-bottom: 12px; padding-bottom: 8px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 8px; }
.side-title::before { content: ""; width: 5px; height: 18px; border-radius: 3px; background: var(--gold); }
.rank-list li { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px dashed var(--line-soft); font-size: 14px; }
.rank-list li:last-child { border-bottom: 0; }
.rank-list .no {
  width: 22px; height: 22px; border-radius: 5px; flex-shrink: 0;
  background: rgba(255, 255, 255, 0.08); color: var(--text-dim);
  display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700;
}
.rank-list li:nth-child(1) .no, .rank-list li:nth-child(2) .no, .rank-list li:nth-child(3) .no { background: linear-gradient(180deg, var(--gold-light), var(--gold-deep)); color: #1a1306; }
.rank-list .name { flex: 1; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.rank-list .num { color: var(--gold); font-size: 13px; }
.side .thumb-list li { display: flex; gap: 10px; padding: 9px 0; border-bottom: 1px dashed var(--line-soft); }
.side .thumb-list li:last-child { border-bottom: 0; }
.side .thumb-list .pic { width: 88px; height: 56px; border-radius: 5px; overflow: hidden; flex-shrink: 0; }
.side .thumb-list .pic img { width: 100%; height: 100%; object-fit: cover; }
.side .thumb-list h4 { font-size: 13px; color: var(--text); line-height: 1.5; }
.side .thumb-list h4:hover { color: var(--gold-light); }
.side .thumb-list time { font-size: 12px; color: #6e6a5f; }

/* ---------- 关于 / 公告 ---------- */
.notice-list li { display: flex; gap: 10px; padding: 9px 0; border-bottom: 1px dashed var(--line-soft); font-size: 14px; align-items: baseline; }
.notice-list li:last-child { border-bottom: 0; }
.notice-list .dot { color: var(--gold); flex-shrink: 0; }
.notice-list time { margin-left: auto; color: #6e6a5f; font-size: 12px; flex-shrink: 0; }
.about-panel p { margin: 8px 0; font-size: 14px; color: var(--text-dim); }
.about-panel p b { color: var(--gold-light); }

/* ---------- 页脚 ---------- */
.site-footer { margin-top: 40px; background: rgba(8, 9, 13, 0.95); border-top: 2px solid var(--gold-deep); }
.footer-main { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 24px; padding: 30px 0 20px; }
.footer-main h3 { font-size: 15px; color: var(--gold-light); margin-bottom: 12px; }
.footer-main p, .footer-main li { font-size: 13px; color: var(--text-dim); margin: 6px 0; }
.footer-main a:hover { color: var(--gold-light); }
.footer-main .f-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.footer-main .f-logo img { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--gold-deep); }
.footer-main .f-logo b { font-size: 18px; color: var(--gold-light); letter-spacing: 1px; }
.footer-bottom { border-top: 1px solid var(--line-soft); padding: 14px 0; text-align: center; font-size: 12px; color: #6e6a5f; }
.footer-bottom a { color: #8d887b; }
.footer-bottom a:hover { color: var(--gold-light); }
.friend-links { display: flex; flex-wrap: wrap; gap: 14px; padding: 14px 0 4px; }
.friend-links a { font-size: 13px; color: var(--text-dim); }
.friend-links a:hover { color: var(--gold-light); }

/* ---------- 回到顶部 ---------- */
#backTop {
  position: fixed; right: 22px; bottom: 30px; width: 44px; height: 44px;
  border-radius: 50%; border: 1px solid var(--gold-deep); cursor: pointer;
  background: rgba(20, 22, 29, 0.92); color: var(--gold); font-size: 20px;
  display: none; align-items: center; justify-content: center; z-index: 90;
  box-shadow: var(--shadow); transition: all 0.25s ease;
}
#backTop.show { display: flex; }
#backTop:hover { background: var(--gold); color: #1a1306; }

/* ---------- 移动端导航抽屉 ---------- */
.m-nav {
  display: none; position: fixed; top: 68px; left: 0; right: 0; bottom: 0; z-index: 95;
  background: rgba(10, 11, 16, 0.98); overflow-y: auto; padding: 16px;
}
.m-nav a {
  display: block; padding: 13px 16px; font-size: 16px; color: var(--text);
  border-bottom: 1px solid var(--line-soft); border-radius: 6px;
}
.m-nav a:hover, .m-nav a.on { color: var(--gold-light); background: rgba(232, 184, 75, 0.08); }
.m-nav .m-title { color: var(--gold); font-size: 13px; padding: 14px 16px 6px; letter-spacing: 2px; }

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(3, 1fr); }
  .album { grid-template-columns: repeat(3, 1fr); }
  .layout-2 { grid-template-columns: 1fr; }
  .footer-main { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 820px) {
  .main-nav { display: none; }
  .nav-toggle { display: block; }
  .m-nav { display: none; }
  .m-nav.open { display: block; }
  .header-inner { height: 60px; }
  .m-nav { top: 60px; }
  .brand .sitename strong { font-size: 20px; }
  .grid-3, .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .article-nav { grid-template-columns: 1fr; }
  .topbar .topside { display: none; }
}

@media (max-width: 560px) {
  body { font-size: 14px; }
  .grid-4, .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .album { grid-template-columns: repeat(2, 1fr); }
  .page-title h1 { font-size: 21px; }
  .sec-head h2 { font-size: 18px; }
  .footer-main { grid-template-columns: 1fr; }
  .news-list .pic { width: 96px; height: 64px; }
  .serve-table th, .serve-table td { padding: 9px 8px; font-size: 13px; }
  .article { padding: 14px; }
  .article-head h1 { font-size: 19px; }
  .banner-area { padding: 10px 0 2px; }
  #backTop { right: 14px; bottom: 20px; width: 40px; height: 40px; }
}
