/* ==========================================================================
   小柚手游 · 样式表
   浅灰底 + 白卡片 + 红色主色，手游福利站通用视觉
   ========================================================================== */

:root{
  --red:#eb2f2f;
  --red-dark:#cf1d1d;
  --orange:#ff9000;
  --gold:#ffb41f;
  --ink:#22252b;
  --sub:#5b6270;
  --muted:#98a0ad;
  --line:#ecedf1;
  --bg:#f5f6f8;
  --card:#ffffff;
  --radius:12px;
  --shadow:0 2px 10px rgba(24,32,54,.06);
  --shadow-hover:0 10px 26px rgba(24,32,54,.14);
}

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

html{scroll-behavior:smooth}

body{
  font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Hiragino Sans GB","Microsoft YaHei","Helvetica Neue",Arial,sans-serif;
  background:var(--bg);
  color:var(--ink);
  font-size:14px;
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
}

a{color:inherit;text-decoration:none}
li{list-style:none}
img{max-width:100%;display:block}
button,input{font-family:inherit;font-size:inherit;outline:none;border:none;background:none}
table{border-collapse:collapse;width:100%}

.wrap{width:1200px;max-width:100%;margin:0 auto;padding:0 16px}
.hidden{display:none !important}

/* 只给搜索引擎看、不占版面的标题 */
.sr-only{
  position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;
  clip:rect(0,0,0,0);white-space:nowrap;border:0;
}

/* ---------- 顶部信息条 ---------- */
.topbar{
  background:#23262e;
  color:#b9bfcc;
  font-size:12.5px;
  line-height:34px;
}
.topbar-inner{display:flex;align-items:center;justify-content:space-between}
.topbar-left{display:flex;align-items:center;gap:10px}
.topbar-left b{color:var(--gold)}
.pulse{
  width:7px;height:7px;border-radius:50%;background:#31d07a;display:inline-block;
  box-shadow:0 0 0 0 rgba(49,208,122,.7);animation:pulse 1.8s infinite;
}
@keyframes pulse{
  0%{box-shadow:0 0 0 0 rgba(49,208,122,.6)}
  70%{box-shadow:0 0 0 7px rgba(49,208,122,0)}
  100%{box-shadow:0 0 0 0 rgba(49,208,122,0)}
}
.topbar-link{color:var(--gold)}
.topbar-link:hover{text-decoration:underline}
.topbar-right{display:flex;align-items:center;gap:12px}
.topbar-right a:hover{color:#fff}
.separator,.sep{color:#4a4f5c}
.qq-btn{
  background:#12b7f5;color:#fff !important;border-radius:20px;
  padding:0 12px;height:22px;line-height:22px;font-size:12px;
}
.qq-btn:hover{background:#0aa5e0}

/* ---------- 主导航 ---------- */
.navbar{
  background:#fff;
  box-shadow:0 1px 0 var(--line);
  position:sticky;top:0;z-index:60;
}
.navbar-inner{display:flex;align-items:center;gap:24px;height:68px}

.logo{display:flex;align-items:center;gap:10px;flex-shrink:0}
.logo-mark{
  width:38px;height:38px;border-radius:11px;display:grid;place-items:center;
  background:linear-gradient(135deg,var(--red),#ff7a3d);
  color:#fff;font-size:19px;font-weight:700;
  box-shadow:0 6px 14px rgba(235,47,47,.32);
}
.logo-img{
  width:38px;height:38px;border-radius:11px;object-fit:cover;display:block;
  box-shadow:0 4px 12px rgba(24,32,54,.16);
}
.logo-text{font-size:19px;font-weight:800;letter-spacing:.5px}
.logo-text em{
  font-style:normal;font-size:12px;font-weight:500;color:var(--muted);
  margin-left:6px;letter-spacing:0;
}

.main-nav{display:flex;align-items:center;gap:4px;flex:1}
.main-nav a{
  position:relative;padding:0 16px;height:68px;line-height:68px;
  font-size:15px;color:var(--sub);font-weight:500;
}
.main-nav a:hover{color:var(--red)}
.main-nav a.active{color:var(--red);font-weight:700}
.main-nav a.active::after{
  content:"";position:absolute;left:50%;transform:translateX(-50%);
  bottom:14px;width:22px;height:3px;border-radius:2px;
  background:linear-gradient(90deg,var(--red),var(--orange));
}

.search{
  display:flex;align-items:center;background:#f4f5f8;border-radius:22px;
  padding:4px 4px 4px 18px;width:290px;flex-shrink:0;
  border:1px solid transparent;transition:.2s;
}
.search:focus-within{background:#fff;border-color:var(--red);box-shadow:0 0 0 3px rgba(235,47,47,.1)}
.search input{flex:1;height:32px;background:none;color:var(--ink)}
.search input::placeholder{color:var(--muted)}
.search button{
  background:linear-gradient(135deg,var(--red),#ff6a3d);
  color:#fff;border-radius:18px;height:32px;padding:0 18px;
  font-size:13px;cursor:pointer;transition:.2s;
}
.search button:hover{filter:brightness(1.07)}

/* ---------- 首屏 ---------- */
.hero{
  display:grid;
  grid-template-columns:206px 1fr 292px;
  gap:14px;
  margin-top:16px;
}

.cat-menu{background:#fff;border-radius:var(--radius);box-shadow:var(--shadow);padding:8px 0;height:400px;overflow:hidden}
.cat-menu a{
  display:flex;align-items:center;gap:9px;padding:0 16px;height:38px;
  color:var(--sub);font-size:13.5px;position:relative;transition:.15s;
}
.cat-menu i{font-style:normal;font-size:15px;width:20px;text-align:center}
.cat-menu em{
  font-style:normal;margin-left:auto;font-size:11.5px;color:#c3c9d4;
}
.cat-menu a:hover{background:#fff5f5;color:var(--red)}
.cat-menu a:hover em{color:var(--red)}
.cat-menu li:last-child a{margin-top:4px;color:var(--muted);font-size:12.5px}

/* 轮播 */
.slider{
  position:relative;height:400px;border-radius:var(--radius);overflow:hidden;
  box-shadow:var(--shadow);background:#1b1f2a;
}
.slides{position:absolute;inset:0}
.slide{
  position:absolute;inset:0;padding:64px 52px;color:#fff;
  background-size:cover;background-position:center;background-color:#1b1f2a;
  display:flex;flex-direction:column;justify-content:center;
  opacity:0;transform:scale(1.04);transition:opacity .55s ease,transform .9s ease;
  pointer-events:none;
}
.slide.is-active{opacity:1;transform:scale(1);pointer-events:auto}
.slide::after{
  content:"";position:absolute;inset:0;
  background:radial-gradient(120% 90% at 88% 12%,rgba(255,255,255,.22),transparent 58%);
  pointer-events:none;
}
.slide-1{background-color:#123a86}
.slide-2{background-color:#0e5f60}
.slide-3{background-color:#8c3a80}
.slide-4{background-color:#7a1a12}
.slide-tag{
  display:inline-block;align-self:flex-start;font-size:12px;font-weight:600;
  padding:3px 12px;border-radius:20px;background:rgba(255,255,255,.22);
  border:1px solid rgba(255,255,255,.34);margin-bottom:16px;backdrop-filter:blur(4px);
}
.slide h2{font-size:44px;line-height:1.15;letter-spacing:2px;margin-bottom:12px;text-shadow:0 4px 18px rgba(0,0,0,.25)}
.slide p{font-size:15px;opacity:.92;margin-bottom:26px;max-width:420px}
.slide-btn{
  align-self:flex-start;background:#fff;color:#22252b;font-weight:700;
  padding:11px 30px;border-radius:26px;font-size:14px;transition:.2s;
  box-shadow:0 8px 20px rgba(0,0,0,.18);
}
.slide.is-active:hover .slide-btn{transform:translateY(-2px);background:#ffefef;color:var(--red)}

.slider-arrow{
  position:absolute;top:50%;transform:translateY(-50%);
  width:38px;height:52px;border-radius:8px;background:rgba(12,14,20,.34);
  color:#fff;font-size:26px;line-height:1;cursor:pointer;z-index:3;
  opacity:0;transition:.25s;backdrop-filter:blur(3px);
}
.slider:hover .slider-arrow{opacity:1}
.slider-arrow:hover{background:rgba(12,14,20,.62)}
.slider-arrow.prev{left:12px}
.slider-arrow.next{right:12px}
.dots{position:absolute;left:52px;bottom:26px;display:flex;gap:8px;z-index:3}
.dots button{
  width:9px;height:9px;border-radius:5px;background:rgba(255,255,255,.5);
  cursor:pointer;transition:.25s;
}
.dots button.on{width:26px;background:#fff}

/* 侧栏面板 */
.side-panel{
  background:#fff;border-radius:var(--radius);box-shadow:var(--shadow);
  height:400px;display:flex;flex-direction:column;overflow:hidden;
}
.panel-tabs{display:flex;border-bottom:1px solid var(--line);flex-shrink:0}
.panel-tab{
  flex:1;height:46px;font-size:14px;color:var(--sub);cursor:pointer;
  position:relative;font-weight:500;
}
.panel-tab.is-active{color:var(--red);font-weight:700}
.panel-tab.is-active::after{
  content:"";position:absolute;left:50%;transform:translateX(-50%);
  bottom:-1px;width:30px;height:2px;background:var(--red);border-radius:2px;
}
.rank-list{flex:1;padding:6px 12px;overflow-y:auto}
.rank-list li{display:flex;align-items:center;gap:10px;height:38px;font-size:13px}
.rank-list .no{
  width:19px;height:19px;border-radius:5px;flex-shrink:0;
  display:grid;place-items:center;font-size:11.5px;font-weight:700;
  background:#f0f2f6;color:#98a0ad;
}
.rank-list li:nth-child(1) .no{background:linear-gradient(135deg,#ff5a45,#eb2f2f);color:#fff}
.rank-list li:nth-child(2) .no{background:linear-gradient(135deg,#ffb41f,#ff8a00);color:#fff}
.rank-list li:nth-child(3) .no{background:linear-gradient(135deg,#ffd76e,#f0a500);color:#fff}
.rank-list .nm{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--sub)}
.rank-list li:hover .nm{color:var(--red)}
.rank-list .hot{font-size:11.5px;color:#c3c9d4;flex-shrink:0}
.panel-foot{
  border-top:1px solid var(--line);padding:10px 14px;font-size:12.5px;
  color:var(--muted);display:flex;gap:8px;align-items:center;flex-wrap:wrap;flex-shrink:0;
}
.panel-foot a{color:var(--red)}
.panel-foot a:hover{text-decoration:underline}

/* ---------- 快捷入口 ---------- */
.quick-row{
  display:grid;grid-template-columns:repeat(5,1fr);gap:14px;margin-top:14px;
}
.quick-card{
  background:#fff;border-radius:var(--radius);box-shadow:var(--shadow);
  padding:14px 16px;display:flex;align-items:center;gap:12px;transition:.22s;
}
.quick-card:hover{transform:translateY(-3px);box-shadow:var(--shadow-hover)}
.quick-card i{
  width:42px;height:42px;border-radius:12px;display:grid;place-items:center;
  font-style:normal;font-size:20px;flex-shrink:0;
}
.qc-1{background:#fff0f0}
.qc-2{background:#eef4ff}
.qc-3{background:#eefbf3}
.qc-4{background:#fff7e8}
.qc-5{background:#f5f0ff}
.quick-card b{display:block;font-size:14px}
.quick-card span{font-size:12px;color:var(--muted)}

/* ---------- 通用区块 ---------- */
.block{background:#fff;border-radius:var(--radius);box-shadow:var(--shadow);margin-top:14px;padding:18px}
.block-head{
  display:flex;align-items:center;justify-content:space-between;
  margin-bottom:16px;
}
.block-head h3{
  display:flex;align-items:baseline;gap:10px;font-size:19px;font-weight:800;letter-spacing:.5px;
}
.block-head h3 .bar{
  width:4px;height:18px;border-radius:2px;align-self:center;
  background:linear-gradient(180deg,var(--red),var(--orange));
}
.block-head h3 small{font-size:12.5px;font-weight:400;color:var(--muted)}
.more{font-size:13px;color:var(--muted);transition:.2s}
.more:hover{color:var(--red)}

/* ---------- 严选好游 ---------- */
.featured-row{display:grid;grid-template-columns:repeat(6,1fr);gap:12px}
.feat-card{
  position:relative;border-radius:10px;overflow:hidden;height:150px;
  background-size:cover;background-position:center;background-color:#1b1f2a;
  display:flex;flex-direction:column;justify-content:flex-end;
  padding:12px;color:#fff;transition:.25s;cursor:pointer;
}
.feat-card:hover{transform:translateY(-4px);box-shadow:var(--shadow-hover)}
.feat-card::before{
  content:"";position:absolute;inset:0;
  background:linear-gradient(180deg,transparent 30%,rgba(8,10,16,.78));
}
.feat-card .fc-icon{
  position:absolute;top:10px;left:10px;width:34px;height:34px;border-radius:9px;
  display:grid;place-items:center;font-size:17px;background:rgba(255,255,255,.2);
  border:1px solid rgba(255,255,255,.3);backdrop-filter:blur(4px);
}
.feat-card b,.feat-card span{position:relative;z-index:2}
.feat-card b{font-size:14.5px;display:block}
.feat-card span{font-size:11.5px;opacity:.85}
.feat-card .badge{
  position:absolute;top:10px;right:10px;background:var(--gold);color:#5a3a00;
  font-size:11px;font-weight:700;border-radius:4px;padding:1px 6px;z-index:2;
}
.feat-cta{
  background:#fff4f4;color:var(--red);display:grid;place-items:center;text-align:center;
  border:1px dashed #ffc4c4;font-weight:700;font-size:14px;cursor:pointer;
}
.feat-cta::before{display:none}
.feat-cta small{display:block;font-weight:400;color:#e08b8b;font-size:12px;margin-top:2px}

/* ---------- 筛选 ---------- */
.filters{display:flex;flex-wrap:wrap;gap:9px;margin-bottom:16px}
.chip{
  padding:6px 16px;border-radius:17px;background:#f4f5f8;color:var(--sub);
  font-size:13px;cursor:pointer;transition:.2s;border:1px solid transparent;
}
.chip:hover{color:var(--red);background:#fff2f2}
.chip.is-active{
  background:linear-gradient(135deg,var(--red),#ff6a3d);color:#fff;
  box-shadow:0 4px 12px rgba(235,47,47,.28);
}
.chip .chip-num{
  display:inline-block;margin-left:6px;font-size:11px;opacity:.75;
}

/* ---------- 游戏卡片网格 ---------- */
.game-grid{display:grid;grid-template-columns:repeat(6,1fr);gap:14px}
.game-card{
  border:1px solid var(--line);border-radius:10px;padding:12px;
  background:#fff;transition:.22s;display:flex;flex-direction:column;
}
.game-card:hover{border-color:#ffd5d5;box-shadow:var(--shadow-hover);transform:translateY(-3px)}
.game-top{display:flex;gap:10px;align-items:center}
.game-icon{
  width:54px;height:54px;border-radius:13px;display:grid;place-items:center;
  font-size:25px;flex-shrink:0;box-shadow:inset 0 0 0 1px rgba(255,255,255,.22);
}
.game-meta{min-width:0}
.game-name{
  display:block;font-size:14.5px;font-weight:700;white-space:nowrap;overflow:hidden;
  text-overflow:ellipsis;margin-bottom:4px;
}
.game-card:hover .game-name{color:var(--red)}
.tags{display:flex;gap:5px;flex-wrap:wrap}
.tags span{
  font-size:11px;color:#8790a0;background:#f4f5f8;border-radius:4px;padding:1px 6px;
}
.game-desc{
  font-size:12.5px;color:var(--muted);margin:10px 0;
  height:36px;overflow:hidden;line-height:18px;
}
.game-bottom{display:flex;align-items:center;justify-content:space-between;margin-top:auto}
.players{font-size:11.5px;color:#a8b0bd;display:flex;align-items:center;gap:3px}
.players b{color:var(--red);font-weight:600}
.dl-btn{
  background:linear-gradient(135deg,var(--red),#ff6a3d);color:#fff;
  font-size:12.5px;padding:6px 16px;border-radius:16px;cursor:pointer;
  transition:.2s;font-weight:600;box-shadow:0 3px 9px rgba(235,47,47,.26);
}
.dl-btn:hover{filter:brightness(1.08);transform:translateY(-1px)}
.dl-btn.ghost{
  background:#fff;color:var(--red);box-shadow:inset 0 0 0 1px #ffc9c9;
}
.dl-btn.ghost:hover{background:#fff4f4}
.empty{
  grid-column:1/-1;text-align:center;color:var(--muted);padding:46px 0;font-size:14px;
}

/* ---------- 礼包中心 ---------- */
.gift-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}
.gift-card{
  position:relative;border:1px solid var(--line);border-radius:10px;
  padding:14px;display:flex;gap:12px;transition:.22s;overflow:hidden;
}
.gift-card:hover{border-color:#ffd5d5;box-shadow:var(--shadow-hover)}
.gift-card::before{
  content:"";position:absolute;left:0;top:0;bottom:0;width:3px;
  background:linear-gradient(180deg,var(--red),var(--orange));
}
.gift-icon{
  width:52px;height:52px;border-radius:13px;display:grid;place-items:center;
  font-size:24px;flex-shrink:0;
}
.gift-info{flex:1;min-width:0}
.gift-info b{font-size:14px;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.gift-info .gift-sub{font-size:12px;color:var(--muted);margin:2px 0 8px}
.progress{height:5px;border-radius:3px;background:#f0f1f5;overflow:hidden}
.progress i{
  display:block;height:100%;border-radius:3px;
  background:linear-gradient(90deg,var(--red),var(--orange));
}
.progress-text{display:flex;justify-content:space-between;font-size:11px;color:#a8b0bd;margin-top:4px}
.gift-actions{display:flex;flex-direction:column;justify-content:center;gap:6px;flex-shrink:0}
.code-btn{
  font-size:12.5px;background:#f4f5f8;color:var(--sub);border-radius:15px;
  padding:5px 13px;cursor:pointer;transition:.2s;white-space:nowrap;
}
.code-btn:hover{background:#fff2f2;color:var(--red)}
.get-btn{
  font-size:12.5px;background:linear-gradient(135deg,var(--red),#ff6a3d);color:#fff;
  border-radius:15px;padding:5px 15px;cursor:pointer;font-weight:600;white-space:nowrap;
  box-shadow:0 3px 9px rgba(235,47,47,.26);transition:.2s;
}
.get-btn:hover{filter:brightness(1.08)}
.get-btn.done{background:#eef0f4;color:#a8b0bd;box-shadow:none;cursor:default}

/* ---------- 开服表 ---------- */
.table-wrap{border:1px solid var(--line);border-radius:10px;overflow:hidden}
.server-table th{
  background:#fafbfc;color:var(--sub);font-weight:600;font-size:13px;
  text-align:left;padding:12px 16px;border-bottom:1px solid var(--line);
  white-space:nowrap;
}
.server-table td{
  padding:13px 16px;border-bottom:1px solid #f4f5f8;font-size:13.5px;color:var(--sub);
}
.server-table tbody tr:last-child td{border-bottom:none}
.server-table tbody tr:hover{background:#fffafa}
.server-table td.time{color:var(--ink);font-weight:600;font-variant-numeric:tabular-nums}
.server-table td.gname{color:var(--ink);font-weight:600}
.server-table td.gname:hover{color:var(--red);cursor:pointer}
.status{
  display:inline-block;font-size:11.5px;padding:2px 10px;border-radius:11px;font-weight:600;
}
.st-hot{background:#fff0f0;color:var(--red)}
.st-open{background:#eefbf3;color:#1aa564}
.st-book{background:#eef4ff;color:#3a6bd8}
.st-soon{background:#fff7e8;color:#c47c00}
.enter-btn{
  font-size:12.5px;color:var(--red);border:1px solid #ffd0d0;border-radius:14px;
  padding:4px 14px;cursor:pointer;transition:.2s;background:#fff;
}
.enter-btn:hover{background:var(--red);color:#fff;border-color:var(--red)}

/* ---------- 资讯 + 榜单 ---------- */
.news-layout{display:grid;grid-template-columns:1fr 340px;gap:14px;align-items:start}
.news-main{margin-top:14px}
.news-side{display:flex;flex-direction:column}
.news-side .block{margin-top:14px}

.news-list li{
  display:flex;align-items:center;gap:12px;padding:11px 0;
  border-bottom:1px dashed #f0f1f5;
}
.news-list li:last-child{border-bottom:none}
.news-list .no{
  width:20px;height:20px;border-radius:5px;display:grid;place-items:center;
  font-size:12px;font-weight:700;background:#f0f2f6;color:#a8b0bd;flex-shrink:0;
}
.news-list li:nth-child(1) .no{background:linear-gradient(135deg,#ff5a45,#eb2f2f);color:#fff}
.news-list li:nth-child(2) .no{background:linear-gradient(135deg,#ffb41f,#ff8a00);color:#fff}
.news-list li:nth-child(3) .no{background:linear-gradient(135deg,#ffd76e,#f0a500);color:#fff}
.news-body{flex:1;min-width:0}
.news-title{
  font-size:14.5px;color:var(--ink);font-weight:500;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;
}
.news-list li:hover .news-title{color:var(--red)}
.news-sub{
  font-size:12.5px;color:var(--muted);white-space:nowrap;
  overflow:hidden;text-overflow:ellipsis;margin-top:2px;
}
.news-date{font-size:12.5px;color:#b6bdc8;flex-shrink:0;font-variant-numeric:tabular-nums}
.news-cat{
  font-size:11.5px;color:#3a6bd8;background:#eef4ff;border-radius:4px;
  padding:1px 7px;flex-shrink:0;
}

.hot-rank li{display:flex;align-items:center;gap:10px;padding:9px 0;font-size:13.5px}
.hot-rank .no{
  width:20px;height:20px;border-radius:5px;display:grid;place-items:center;
  font-size:12px;font-weight:700;background:#f0f2f6;color:#a8b0bd;flex-shrink:0;
}
.hot-rank li:nth-child(1) .no{background:linear-gradient(135deg,#ff5a45,#eb2f2f);color:#fff}
.hot-rank li:nth-child(2) .no{background:linear-gradient(135deg,#ffb41f,#ff8a00);color:#fff}
.hot-rank li:nth-child(3) .no{background:linear-gradient(135deg,#ffd76e,#f0a500);color:#fff}
.hot-rank .nm{flex:1;color:var(--sub);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.hot-rank li:hover .nm{color:var(--red)}
.hot-rank .tag{font-size:11.5px;color:#a8b0bd;flex-shrink:0}

.tag-cloud{display:flex;flex-wrap:wrap;gap:8px}
.tag-cloud a{
  font-size:12.5px;color:var(--sub);background:#f4f5f8;border-radius:14px;
  padding:4px 13px;transition:.2s;
}
.tag-cloud a:hover{background:#fff2f2;color:var(--red)}

/* ---------- 关于 ---------- */
.notice p{font-size:13px;color:var(--sub);line-height:2}

/* ---------- 页脚 ---------- */
.footer{
  background:#23262e;color:#8e96a5;margin-top:22px;padding:30px 0 34px;font-size:13px;
}
.foot-links{
  display:flex;flex-wrap:wrap;gap:20px;justify-content:center;
  padding-bottom:16px;border-bottom:1px solid #2f333d;
}
.foot-main.has-brand{display:flex;gap:32px;align-items:flex-start}
.foot-brand{flex-shrink:0;width:132px}
.foot-brand img{width:100%;height:auto;display:block;border-radius:12px;
  box-shadow:0 8px 20px rgba(0,0,0,.35)}
.foot-content{flex:1;min-width:0}
/* 有页脚 Logo 时，右边内容改成左对齐，两栏才整齐 */
/* 底部一行：Logo 靠左，版权信息居中 */
.foot-bottom{
  position:relative;display:flex;align-items:center;justify-content:center;
  margin-top:20px;min-height:74px;
}
.foot-bottom .foot-copy{margin-top:0;text-align:center}
.foot-bottom.has-brand .foot-copy{text-align:center}
.foot-bottom .foot-brand{position:absolute;left:0;top:50%;transform:translateY(-50%);width:170px}
.foot-bottom .foot-brand img{
  width:100%;height:auto;display:block;border-radius:12px;
  box-shadow:0 8px 22px rgba(0,0,0,.4);
}
.foot-links a{color:#c3c9d4}
.foot-links a:hover{color:#fff}
.foot-friend{
  display:flex;flex-wrap:wrap;gap:12px;justify-content:center;
  margin-top:14px;
}
.foot-friend a:hover{color:#fff}
.foot-copy{text-align:center;margin-top:18px;line-height:2;color:#767e8d}
.foot-copy .tip{font-size:12px;color:#616a79}
.foot-copy .icp{font-size:12.5px;margin-top:6px}
.foot-copy .icp a{color:#8e96a5}
.foot-copy .icp a:hover{color:#fff;text-decoration:underline}

/* ---------- 回到顶部 & 提示 ---------- */
.to-top{
  position:fixed;right:26px;bottom:34px;width:44px;height:44px;border-radius:12px;
  background:#fff;color:var(--sub);font-size:19px;cursor:pointer;
  box-shadow:0 6px 20px rgba(24,32,54,.16);opacity:0;pointer-events:none;
  transition:.25s;z-index:70;
}
.to-top.show{opacity:1;pointer-events:auto}
.to-top:hover{color:var(--red);transform:translateY(-3px)}

.toast{
  position:fixed;left:50%;bottom:70px;transform:translate(-50%,14px);
  background:rgba(28,32,42,.92);color:#fff;font-size:13.5px;
  padding:10px 22px;border-radius:24px;opacity:0;pointer-events:none;
  transition:.28s;z-index:90;backdrop-filter:blur(6px);
}
.toast.show{opacity:1;transform:translate(-50%,0)}

/* ---------- 响应式 ---------- */
@media (max-width:1240px){
  .game-grid{grid-template-columns:repeat(4,1fr)}
  .featured-row{grid-template-columns:repeat(3,1fr)}
  .gift-grid{grid-template-columns:repeat(3,1fr)}
}
@media (max-width:1080px){
  .hero{grid-template-columns:1fr;gap:14px}
  .cat-menu{display:grid;grid-template-columns:repeat(5,1fr);height:auto;padding:10px 0}
  .cat-menu a{height:44px;padding:0 10px;font-size:12.5px;gap:6px}
  .cat-menu em{display:none}
  .cat-menu li:last-child{display:none}
  .side-panel{height:auto}
  .rank-list{max-height:230px}
  .quick-row{grid-template-columns:repeat(3,1fr)}
  .game-grid{grid-template-columns:repeat(3,1fr)}
  .news-layout{grid-template-columns:1fr}
  .main-nav a{padding:0 11px;font-size:14px}
  .search{width:220px}
}
@media (max-width:720px){
  .navbar-inner{height:auto;flex-wrap:wrap;padding:10px 0 0;gap:10px}
  .main-nav{order:3;flex:1 0 100%;overflow-x:auto;gap:0}
  .main-nav a{height:44px;line-height:44px;padding:0 12px;white-space:nowrap}
  .main-nav a.active::after{bottom:5px}
  .search{width:100%;order:2}
  .logo{flex:1}
  .hero{margin-top:12px}
  .slider{height:300px}
  .slide{padding:34px 26px}
  .slide h2{font-size:30px}
  .slide p{font-size:13.5px}
  .dots{left:26px;bottom:18px}
  .cat-menu{grid-template-columns:repeat(3,1fr)}
  .quick-row{grid-template-columns:repeat(2,1fr)}
  .featured-row{grid-template-columns:repeat(2,1fr)}
  .game-grid{grid-template-columns:repeat(2,1fr)}
  .gift-grid{grid-template-columns:1fr}
  .table-wrap{overflow-x:auto}
  .server-table{min-width:620px}
  .block{padding:14px}
  .block-head h3{font-size:17px}
  .block-head h3 small{display:none}
  .topbar-inner{font-size:11.5px}
  .topbar-left{gap:6px}
  .to-top{right:14px;bottom:20px}
}

/* ==========================================================================
   内页（游戏库 / 礼包中心 / 开服表 / 资讯 / 详情页）
   ========================================================================== */

/* ---------- 配图通用 ---------- */
.game-art{width:100%;height:100%;object-fit:cover;display:block;border-radius:inherit}
.row-art{
  width:20px;height:20px;border-radius:6px;object-fit:cover;
  display:inline-block;vertical-align:-5px;margin-right:7px;
}
.game-icon,.gift-icon,.mg-icon,.shot,.gh-cover,.article-cover,.nf-cover,.feat-card{overflow:hidden}
.game-icon,.gift-icon,.mg-icon{padding:0;background:none}
.gh-cover,.article-cover,.nf-cover{position:relative}
.gh-cover img,.shot img,.article-cover img,.nf-cover img{
  position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block;
}

/* ---------- 面包屑 ---------- */
.crumb{
  display:flex;align-items:center;gap:8px;font-size:13px;color:var(--muted);
  padding:16px 0 0;
}
.crumb a{color:var(--sub)}
.crumb a:hover{color:var(--red)}
.crumb-sep{color:#ccd2dc}

/* ---------- 页面标题区 ---------- */
.page-head{
  background:#fff;border-radius:var(--radius);box-shadow:var(--shadow);
  margin-top:14px;padding:22px 24px;
  display:flex;align-items:center;justify-content:space-between;gap:24px;
  position:relative;overflow:hidden;
}
.page-head::after{
  content:"";position:absolute;right:-70px;top:-90px;width:280px;height:280px;
  border-radius:50%;background:radial-gradient(circle,rgba(235,47,47,.10),transparent 68%);
  pointer-events:none;
}
.page-head-text h1{font-size:26px;letter-spacing:1px;margin-bottom:6px}
.page-head-text p{font-size:13.5px;color:var(--muted)}
.page-head-stat{display:flex;gap:28px;position:relative;z-index:1}
.page-head-stat div{text-align:center}
.page-head-stat b{
  display:block;font-size:24px;line-height:1.2;
  background:linear-gradient(135deg,var(--red),var(--orange));
  -webkit-background-clip:text;background-clip:text;color:transparent;
}
.page-head-stat span{font-size:12.5px;color:var(--muted)}
.page-head-gift::after{background:radial-gradient(circle,rgba(255,144,0,.14),transparent 68%)}
.page-head-server::after{background:radial-gradient(circle,rgba(58,107,216,.14),transparent 68%)}

/* ---------- 筛选行 ---------- */
.filter-group{display:flex;align-items:flex-start;gap:14px;margin-bottom:14px}
.filter-label{
  flex-shrink:0;font-size:13.5px;color:var(--muted);line-height:30px;width:62px;
}
.filter-group .filters{margin-bottom:0;flex:1}

.list-toolbar{
  display:flex;align-items:center;justify-content:space-between;gap:16px;
  padding:12px 0 16px;border-top:1px dashed var(--line);margin-top:4px;
  font-size:13px;color:var(--muted);
}
.list-toolbar b{color:var(--red);font-size:15px;padding:0 2px}
.list-toolbar a{color:var(--sub)}
.list-toolbar a:hover{color:var(--red)}
.toolbar-tip{color:#b6bdc8;font-size:12.5px}

/* ---------- 区块底部更多 ---------- */
.block-more{text-align:center;margin-top:18px}
.more-btn{
  display:inline-block;font-size:13.5px;color:var(--red);border:1px solid #ffd5d5;
  border-radius:20px;padding:8px 26px;transition:.2s;background:#fff;
}
.more-btn:hover{background:var(--red);color:#fff;border-color:var(--red)}

/* ---------- 商品网格扩容 ---------- */
.game-grid-lg{grid-template-columns:repeat(4,1fr)}
.gift-grid-lg{grid-template-columns:repeat(4,1fr)}

/* ---------- 分页 ---------- */
.pagination{display:flex;justify-content:center;gap:8px;margin-top:22px}
.page-btn{
  min-width:34px;height:34px;border-radius:9px;background:#f4f5f8;color:var(--sub);
  font-size:13.5px;cursor:pointer;transition:.2s;padding:0 10px;
}
.page-btn:hover{background:#fff2f2;color:var(--red)}
.page-btn.is-active{
  background:linear-gradient(135deg,var(--red),#ff6a3d);color:#fff;
  box-shadow:0 4px 12px rgba(235,47,47,.28);
}

/* ---------- 步骤条 ---------- */
.step-row{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}
.step-card{
  background:#fafbfc;border:1px solid var(--line);border-radius:10px;
  padding:18px;position:relative;
}
.step-card i{
  font-style:normal;width:26px;height:26px;border-radius:8px;display:grid;place-items:center;
  background:linear-gradient(135deg,var(--red),#ff6a3d);color:#fff;font-size:13px;
  font-weight:700;margin-bottom:10px;
}
.step-card b{display:block;font-size:14.5px;margin-bottom:4px}
.step-card span{font-size:12.5px;color:var(--muted)}

/* ---------- 两栏布局 ---------- */
.layout-2col{display:grid;grid-template-columns:1fr 320px;gap:14px;align-items:start}
.col-side{display:flex;flex-direction:column}
.col-side .block{margin-top:14px}
.col-main .block{margin-top:14px}

/* ---------- 资讯大卡 ---------- */
.news-feature{
  display:flex;gap:18px;padding:16px;border-radius:10px;
  background:linear-gradient(120deg,#fff5f5,#fff);border:1px solid #ffe3e3;
  margin-bottom:8px;transition:.22s;
}
.news-feature:hover{box-shadow:var(--shadow-hover);transform:translateY(-2px)}
.nf-cover{
  position:relative;overflow:hidden;
  width:132px;height:96px;border-radius:10px;flex-shrink:0;display:grid;place-items:center;
  font-size:34px;background:linear-gradient(135deg,#ff8a3d,#eb2f2f);color:#fff;
}
.nf-body{flex:1;min-width:0}
.nf-body h2{font-size:18px;line-height:1.4;margin:8px 0 6px}
.news-feature:hover h2{color:var(--red)}
.nf-body p{
  font-size:13px;color:var(--muted);line-height:1.7;
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;
}
.nf-meta{display:flex;gap:8px;font-size:12.5px;color:#b6bdc8;margin-top:8px}

/* ---------- 游戏详情头部 ---------- */
.game-hero{
  background:#fff;border-radius:var(--radius);box-shadow:var(--shadow);
  margin-top:14px;padding:22px;display:flex;gap:24px;
}
.gh-cover{
  width:230px;height:150px;border-radius:12px;flex-shrink:0;display:grid;place-items:center;
  box-shadow:0 10px 24px rgba(24,32,54,.18);position:relative;overflow:hidden;
}
.gh-cover::after{
  content:"";position:absolute;inset:0;
  background:radial-gradient(120% 90% at 82% 14%,rgba(255,255,255,.28),transparent 60%);
}
.gh-cover-icon{font-size:62px;position:relative;z-index:1}
.gh-main{flex:1;min-width:0}
.gh-title{display:flex;align-items:center;gap:12px;margin-bottom:10px}
.gh-title h1{font-size:26px;letter-spacing:1px}
.score{
  font-size:13px;font-weight:700;color:#c47c00;background:#fff7e8;
  border-radius:6px;padding:2px 10px;
}
.gh-desc{font-size:13.5px;color:var(--sub);margin:10px 0 16px}
.gh-stats{display:flex;gap:36px;padding:14px 0;border-top:1px dashed var(--line);border-bottom:1px dashed var(--line)}
.gh-stats div{text-align:left}
.gh-stats b{display:block;font-size:16px;color:var(--ink)}
.gh-stats span{font-size:12px;color:var(--muted)}
.gh-actions{display:flex;gap:12px;margin-top:18px}
.dl-btn.lg{padding:10px 30px;border-radius:22px;font-size:14px}
a.dl-btn{display:inline-block;text-align:center}

/* ---------- 截图 ---------- */
.shot-row{display:grid;grid-template-columns:repeat(5,1fr);gap:10px}
.shot{
  height:104px;border-radius:10px;display:grid;place-items:end start;
  padding:10px;color:#fff;font-size:12px;position:relative;overflow:hidden;
}
.shot::after{
  content:"";position:absolute;inset:0;
  background:linear-gradient(180deg,transparent 45%,rgba(8,10,16,.5));
}
.shot span{position:relative;z-index:1}

/* ---------- 文章 ---------- */
.article-head{padding-bottom:18px;border-bottom:1px dashed var(--line)}
.article-head h1{font-size:26px;line-height:1.42;margin:12px 0 12px;letter-spacing:.5px}
.article-meta{display:flex;gap:8px;font-size:13px;color:var(--muted)}
.article-cover{
  position:relative;overflow:hidden;
  height:190px;border-radius:12px;margin:20px 0;display:grid;place-items:center;
  font-size:52px;background:linear-gradient(120deg,#2b3a67,#4f7dfb 55%,#38bdf8);color:#fff;
}
.article-body{font-size:15px;line-height:2;color:#3b414d}
.article-body p{margin-bottom:16px}
.article-body .lead{
  font-size:15px;color:var(--sub);background:#fafbfc;border-left:3px solid var(--red);
  padding:12px 16px;border-radius:8px;line-height:1.9;
}
.article-tags{
  display:flex;flex-wrap:wrap;gap:8px;align-items:center;
  margin-top:22px;padding-top:18px;border-top:1px dashed var(--line);
  font-size:13px;color:var(--muted);
}
.article-tags a{background:#f4f5f8;border-radius:14px;padding:4px 14px;color:var(--sub);font-size:12.5px}
.article-tags a:hover{background:#fff2f2;color:var(--red)}
.article-nav{
  display:flex;justify-content:space-between;gap:16px;margin-top:20px;
  font-size:13.5px;color:var(--red);
}
.article-nav a:hover{text-decoration:underline}

/* ---------- 信息列表 / 推荐小卡 ---------- */
.info-list li{
  display:flex;align-items:center;justify-content:space-between;
  padding:10px 0;border-bottom:1px dashed #f0f1f5;font-size:13.5px;
}
.info-list li:last-child{border-bottom:none}
.info-list span{color:var(--muted)}
.info-list b{color:var(--ink);font-weight:600}
.info-list b.hl{color:var(--red)}

.mini-game-list{display:flex;flex-direction:column;gap:4px}

/* 详情页的专属礼包：单栏卡片区域里两列排布，避免被挤压 */
#gameGifts{grid-template-columns:repeat(2,1fr)}
#gameGifts .gift-info{min-width:0}
.mini-game{
  display:flex;align-items:center;gap:10px;padding:8px;border-radius:9px;transition:.2s;
}
.mini-game:hover{background:#fff7f7}
.mg-icon{
  width:40px;height:40px;border-radius:11px;display:grid;place-items:center;
  font-size:19px;flex-shrink:0;
}
.mg-info{flex:1;min-width:0}
.mg-info b{display:block;font-size:13.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.mini-game:hover .mg-info b{color:var(--red)}
.mg-info em{font-style:normal;font-size:11.5px;color:var(--muted)}
.mg-score{font-size:12.5px;color:#c47c00;font-weight:700}

/* ---------- 空状态 ---------- */
.empty-box{
  grid-column:1/-1;text-align:center;color:var(--muted);font-size:13.5px;
  padding:34px 0;background:#fafbfc;border-radius:10px;
}
.empty-box a{color:var(--red)}
.td-empty{text-align:center;color:var(--muted);padding:32px 0 !important}
.td-empty a{color:var(--red)}

/* ---------- 内页响应式 ---------- */
@media (max-width:1240px){
  .game-grid-lg,.gift-grid-lg{grid-template-columns:repeat(3,1fr)}
  .shot-row{grid-template-columns:repeat(3,1fr)}
}
@media (max-width:1080px){
  .layout-2col{grid-template-columns:1fr}
  .page-head{flex-direction:column;align-items:flex-start;gap:16px}
  .page-head-stat{width:100%;justify-content:space-between}
  .game-grid-lg,.gift-grid-lg{grid-template-columns:repeat(2,1fr)}
  .game-hero{flex-direction:column;gap:16px}
  .gh-cover{width:100% !important;height:auto !important;max-width:100%}
  .gh-cover::before{content:"";display:block;padding-top:calc(100% * var(--h,1) / var(--w,1))}
  .gh-stats{gap:20px;flex-wrap:wrap}
}
@media (max-width:720px){
  .page-head-text h1{font-size:22px}
  .game-grid-lg,.gift-grid-lg{grid-template-columns:repeat(2,1fr)}
  .gift-grid-lg{grid-template-columns:1fr}
  .shot-row{grid-template-columns:repeat(2,1fr)}
  .step-row{grid-template-columns:1fr}
  .filter-group{flex-direction:column;gap:8px}
  .filter-label{width:auto;line-height:1.4}
  .news-feature{flex-direction:column}
  .nf-cover{width:100%;height:120px}
  .article-head h1{font-size:21px}
  .article-cover{height:140px;font-size:40px}
  .gh-title h1{font-size:22px}
  .gh-actions{flex-wrap:wrap}
  .list-toolbar{flex-direction:column;align-items:flex-start;gap:6px}
}

/* ==========================================================================
   手机端精修（放在最后，覆盖前面所有断点）
   ========================================================================== */

/* 防止长内容（表格、长标题）把页面撑宽 */
.block,.news-main,.col-main,.col-side,.layout-2col>*,.news-layout>*{min-width:0}
.news-list li,.hot-rank li,.rank-list li,.game-card,.gift-card,.quick-card{min-width:0}
.scroll-hint{display:none}

@media (max-width:720px){

  html{-webkit-text-size-adjust:100%}
  body{overflow-x:clip}

  /* ---------- 顶部信息条：压成一行 ---------- */
  .topbar{font-size:11.5px;line-height:30px}
  .topbar-inner{gap:8px}
  .topbar-left{gap:6px;min-width:0}
  .topbar-left span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .topbar-link,.qq-btn{display:none}
  .topbar-right{gap:8px;flex-shrink:0}
  .topbar-right a{white-space:nowrap}
  .sep{color:#4a4f5c}

  /* ---------- 导航：logo 与搜索同一行 ---------- */
  .navbar-inner{height:auto;flex-wrap:wrap;padding:10px 16px 0;gap:8px;align-items:center}
  .logo{order:1;flex:0 0 auto;gap:8px}
  .logo-mark{width:34px;height:34px;border-radius:9px;font-size:17px}
  .logo-img{width:34px;height:34px;border-radius:9px}
  .logo-text{font-size:17px}
  .logo-text em{display:none}
  .search{order:2;flex:1 1 auto;width:auto;min-width:0;padding:3px 3px 3px 12px;border-radius:18px}
  .search input{height:30px;font-size:13px}
  .search button{height:30px;padding:0 12px;font-size:12.5px;border-radius:15px}
  .main-nav{
    order:3;flex:1 0 100%;overflow-x:auto;gap:0;margin:0 -16px;
    padding:0 16px;scrollbar-width:none;-webkit-overflow-scrolling:touch;
  }
  .main-nav::-webkit-scrollbar{display:none}
  .main-nav a{height:42px;line-height:42px;padding:0 14px;font-size:14.5px;white-space:nowrap}
  .main-nav a.active{font-weight:700}
  .main-nav a.active::after{bottom:4px;width:18px;height:2px}

  /* ---------- 首屏：分类变成横向滑动胶囊 ---------- */
  .hero{margin-top:10px;gap:10px}
  .cat-menu{
    display:block;height:auto;padding:7px;overflow-x:auto;overflow-y:hidden;
    scrollbar-width:none;-webkit-overflow-scrolling:touch;
  }
  .cat-menu::-webkit-scrollbar{display:none}
  .cat-menu ul{display:flex;gap:7px;width:max-content}
  .cat-menu li{flex:0 0 auto}
  .cat-menu a{
    height:32px;padding:0 13px;border-radius:16px;background:#f4f5f8;
    font-size:13px;gap:5px;white-space:nowrap;
  }
  .cat-menu a:hover{background:#fff2f2}
  .cat-menu i{width:auto;font-size:14px}
  .cat-menu em,.cat-menu li:last-child{display:none}

  .slider{height:250px}
  .slide{padding:24px 20px}
  .slide h2{font-size:27px;letter-spacing:1px;margin-bottom:8px}
  .slide p{font-size:13px;margin-bottom:18px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
  .slide-btn{padding:9px 22px;font-size:13px}
  .dots{left:20px;bottom:14px}
  .dots button{width:7px;height:7px}
  .dots button.on{width:20px}
  .slider-arrow{display:none}

  .side-panel{height:auto}
  .panel-tab{height:42px;font-size:13.5px}
  .rank-list{padding:4px 12px;max-height:210px}
  .rank-list li{height:34px;font-size:12.5px}
  .panel-foot{padding:9px 12px;font-size:12px}

  /* ---------- 快捷入口 ---------- */
  .quick-row{grid-template-columns:repeat(2,1fr);gap:10px;margin-top:10px}
  .quick-card{padding:11px 12px;gap:9px;border-radius:10px}
  .quick-card i{width:36px;height:36px;font-size:17px;border-radius:10px}
  .quick-card b{font-size:13.5px}
  .quick-card span{font-size:11.5px}

  /* ---------- 区块 ---------- */
  .block{margin-top:10px;padding:14px 12px;border-radius:10px}
  .block-head{margin-bottom:12px}
  .block-head h3{font-size:16.5px;gap:8px}
  .block-head h3 .bar{width:3px;height:15px}
  .more{font-size:12.5px;white-space:nowrap}
  .block-more{margin-top:14px}
  .more-btn{padding:8px 22px;font-size:13px}

  /* ---------- 严选好游 ---------- */
  .featured-row{grid-template-columns:repeat(2,1fr);gap:9px}
  .feat-card{height:126px;padding:10px}
  .feat-card b{font-size:13.5px}
  .feat-card span{font-size:11px}
  .feat-card .fc-icon{width:28px;height:28px;font-size:14px;border-radius:8px}
  .feat-cta{font-size:13px}

  /* ---------- 游戏卡片 ---------- */
  .game-grid,.game-grid-lg{grid-template-columns:repeat(2,1fr);gap:9px}
  .game-card{padding:10px;border-radius:9px}
  .game-icon{width:44px;height:44px;font-size:21px;border-radius:11px}
  .game-top{gap:8px}
  .game-name{font-size:13.5px;margin-bottom:3px}
  .tags span{font-size:10px;padding:1px 5px}
  .game-desc{
    font-size:11.5px;line-height:16px;height:32px;margin:8px 0;
    display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;
  }
  .game-bottom{flex-direction:column;align-items:stretch;gap:8px}
  .players{font-size:11px;white-space:nowrap}
  .game-bottom .dl-btn{width:100%;padding:7px 0;font-size:12.5px;text-align:center;white-space:nowrap}
  .dl-btn{padding:6px 13px;font-size:12.5px;white-space:nowrap}
  .tags{flex-wrap:nowrap;overflow:hidden}

  /* ---------- 礼包卡片 ---------- */
  .gift-grid,.gift-grid-lg{grid-template-columns:1fr;gap:10px}
  #gameGifts{grid-template-columns:1fr}
  .gift-card{padding:12px;gap:10px}
  .gift-icon{width:44px;height:44px;font-size:20px;border-radius:11px}
  .gift-info b{font-size:13.5px}
  .gift-info .gift-sub{font-size:11.5px}
  .gift-actions{gap:5px}
  .code-btn,.get-btn{font-size:12px;padding:5px 12px}

  /* ---------- 开服表：横向滑动 + 提示 ---------- */
  .scroll-hint{
    display:flex;align-items:center;font-size:11.5px;color:var(--muted);
    margin-bottom:8px;
  }
  .table-wrap{position:relative;border-radius:9px}
  .server-table{min-width:540px}
  .server-table th{padding:10px 12px;font-size:12.5px}
  .server-table td{padding:11px 12px;font-size:12.5px}
  .enter-btn{padding:4px 12px;font-size:12px}
  .status{font-size:11px;padding:2px 8px}

  /* ---------- 资讯列表：标题两行，去掉右侧分类 ---------- */
  .news-main .block-head small{display:none}
  .news-list li{padding:10px 0;gap:9px;align-items:flex-start}
  .news-list .no{width:18px;height:18px;font-size:11px;border-radius:4px;margin-top:2px}
  .news-title{
    font-size:13.5px;white-space:normal;line-height:1.5;
    display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;
  }
  .news-sub{font-size:11.5px;margin-top:3px}
  .news-cat{display:none}
  .news-date{font-size:11.5px;margin-top:3px}
  .hot-rank li{padding:8px 0;font-size:13px;gap:8px}
  .hot-rank .no,.news-list .no,.rank-list .no{flex-shrink:0}
  .hot-rank .tag{font-size:11px}
  .tag-cloud{gap:7px}
  .tag-cloud a{font-size:12px;padding:4px 11px}

  /* ---------- 资讯大卡 ---------- */
  .news-feature{flex-direction:column;padding:12px;gap:12px}
  .nf-cover{width:100%;height:112px;font-size:30px}
  .nf-body h2{font-size:15.5px;line-height:1.45;margin:6px 0 5px}
  .nf-body p{font-size:12.5px}
  .nf-meta{font-size:11.5px;margin-top:6px}

  /* ---------- 内页标题区 / 面包屑 ---------- */
  .crumb{padding-top:12px;font-size:12.5px}
  .page-head{margin-top:10px;padding:16px 14px;gap:12px;border-radius:10px}
  .page-head-text h1{font-size:21px;letter-spacing:.5px;margin-bottom:5px}
  .page-head-text p{font-size:12.5px;line-height:1.7}
  .page-head-stat{gap:0;justify-content:space-between;padding-top:12px;border-top:1px dashed var(--line)}
  .page-head-stat div{flex:1;text-align:center}
  .page-head-stat b{font-size:19px}
  .page-head-stat span{font-size:11.5px}

  /* ---------- 筛选 ---------- */
  .filter-group{gap:7px;margin-bottom:11px}
  .filter-label{font-size:12.5px}
  .filters{gap:7px}
  .chip{padding:6px 13px;font-size:12.5px}
  .list-toolbar{padding:10px 0 12px;font-size:12.5px;gap:4px}
  .toolbar-tip{display:none}

  /* ---------- 分页 ---------- */
  .pagination{gap:6px;margin-top:16px}
  .page-btn{min-width:32px;height:32px;font-size:13px;border-radius:8px}

  /* ---------- 步骤条 ---------- */
  .step-row{grid-template-columns:1fr;gap:10px}
  .step-card{padding:14px;display:flex;flex-wrap:wrap;align-items:center;gap:0 10px}
  .step-card i{margin:0}
  .step-card b{display:inline;margin:0}
  .step-card span{flex:1 0 100%;margin-top:4px;font-size:12px}

  /* ---------- 游戏详情 ---------- */
  .game-hero{margin-top:10px;padding:14px;gap:14px;border-radius:10px}
  .gh-cover{height:132px;border-radius:10px}
  .gh-cover-icon{font-size:48px}
  .gh-title h1{font-size:21px}
  .score{font-size:12px;padding:2px 8px}
  .gh-desc{font-size:12.5px;margin:8px 0 14px;line-height:1.7}
  .gh-stats{
    display:grid;grid-template-columns:repeat(2,1fr);gap:10px 0;
    padding:12px 0;
  }
  .gh-stats b{font-size:14.5px}
  .gh-stats span{font-size:11.5px}
  .gh-actions{gap:9px;margin-top:14px}
  .dl-btn.lg{padding:9px 20px;font-size:13px;border-radius:20px}
  .shot-row{grid-template-columns:repeat(2,1fr);gap:8px}
  .shot{height:84px;font-size:11.5px;padding:8px}
  .info-list li{font-size:13px;padding:9px 0}
  .mini-game{padding:7px 6px}
  .mg-icon{width:36px;height:36px;font-size:17px;border-radius:10px}
  .mg-info b{font-size:13px}
  .mg-info em{font-size:11px}

  /* ---------- 文章 ---------- */
  .article-head h1{font-size:19px;line-height:1.5}
  .article-meta{font-size:12px;flex-wrap:wrap;gap:6px}
  .article-cover{height:126px;font-size:34px;border-radius:10px;margin:14px 0}
  .article-body{font-size:14px;line-height:1.95}
  .article-body p{margin-bottom:13px}
  .article-body .lead{font-size:13.5px;padding:11px 13px}
  .article-tags{margin-top:16px;padding-top:14px;font-size:12.5px}
  .article-nav{font-size:12.5px;gap:10px;flex-wrap:wrap}

  /* ---------- 底部 ---------- */
  .footer{margin-top:16px;padding:22px 0 26px;font-size:12.5px}
  .foot-links{gap:14px}
  .foot-friend{gap:10px;line-height:1.9}
  .to-top{right:12px;bottom:16px;width:40px;height:40px;font-size:17px;border-radius:11px}
  .toast{font-size:13px;padding:9px 18px;bottom:64px;max-width:86vw;text-align:center}
  /* 手机端：Logo 居中放上面，下面内容也居中 */
  .foot-bottom,.foot-bottom.has-brand{
    flex-direction:column;gap:14px;align-items:center;justify-content:center;min-height:0;
  }
  /* 手机端取消 Logo 的绝对定位，改成正常竖排，避免压住文字 */
  .foot-bottom .foot-brand{
    position:static;transform:none;width:110px;margin:0 auto;
  }
  .foot-bottom.has-brand .foot-copy{text-align:center}
}

@media (max-width:400px){
  .game-grid,.game-grid-lg,.featured-row{grid-template-columns:1fr 1fr}
  .quick-row{grid-template-columns:1fr 1fr}
  .quick-card span{display:none}
  .logo-text{font-size:16px}
  .main-nav a{padding:0 12px;font-size:14px}
  .gh-stats{grid-template-columns:1fr 1fr}
}

/* ==========================================================================
   右下角悬浮客服中心（在线客服 / 关注公众号 / 回到顶部）
   后台「站点设置 → 客服中心」控制，没配的项目自动不显示
   ========================================================================== */
.kf-dock{
  position:fixed;right:18px;bottom:88px;z-index:80;
  display:flex;flex-direction:column;align-items:flex-end;gap:10px;
}

.kf-notice{
  position:relative;max-width:196px;padding:9px 28px 9px 12px;
  background:linear-gradient(135deg,var(--red),#ff6a3d);color:#fff;
  font-size:12px;line-height:1.5;border-radius:10px;
  box-shadow:0 8px 20px rgba(235,47,47,.28);
  animation:kfBreath 2.6s ease-in-out infinite;
}
.kf-notice:after{
  content:'';position:absolute;right:14px;bottom:-6px;width:12px;height:12px;
  background:linear-gradient(135deg,#ff6a3d,#ff6a3d);transform:rotate(45deg);border-radius:2px;
}
@keyframes kfBreath{
  0%,100%{transform:translateY(0);box-shadow:0 8px 20px rgba(235,47,47,.28)}
  50%{transform:translateY(-3px);box-shadow:0 12px 26px rgba(235,47,47,.4)}
}
@keyframes kfRing{
  0%{box-shadow:0 8px 22px rgba(235,47,47,.4),0 0 0 0 rgba(235,47,47,.45)}
  70%{box-shadow:0 8px 22px rgba(235,47,47,.4),0 0 0 14px rgba(235,47,47,0)}
  100%{box-shadow:0 8px 22px rgba(235,47,47,.4),0 0 0 0 rgba(235,47,47,0)}
}
.kf-notice-x{
  position:absolute;top:3px;right:5px;width:18px;height:18px;line-height:1;
  color:#fff;opacity:.85;font-size:15px;cursor:pointer;
}
.kf-notice-x:hover{opacity:1}

.kf-box{
  display:flex;flex-direction:column;gap:6px;padding:7px;
  background:var(--card);border-radius:14px;
  box-shadow:0 8px 26px rgba(24,32,54,.16);
}
.kf-title{
  font-size:11.5px;color:var(--muted);text-align:center;
  padding:1px 0 5px;margin-bottom:1px;border-bottom:1px dashed var(--line);
}
.kf-btn{
  display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;
  width:64px;height:58px;border-radius:11px;cursor:pointer;
  background:#f7f8fa;border:1px solid var(--line);color:var(--ink);
  font-family:inherit;transition:background .18s,color .18s,border-color .18s,transform .18s;
}
.kf-btn i{font-style:normal;font-size:19px;line-height:1}
.kf-btn b{font-size:11px;font-weight:600;line-height:1.15;letter-spacing:-.2px;white-space:nowrap}
.kf-btn:hover{background:#fff2f0;border-color:#ffd6cf;color:var(--red);transform:translateY(-1px)}

.kf-pop{
  position:absolute;right:78px;bottom:0;width:228px;padding:14px;
  background:var(--card);border-radius:14px;box-shadow:0 12px 34px rgba(24,32,54,.2);
  display:none;
}
.kf-pop.is-open{display:block}
.kf-pop img{width:100%;max-width:196px;margin:0 auto;border-radius:8px;display:block}
.kf-pop p{margin-top:9px;text-align:center;font-size:13px;color:var(--sub);line-height:1.5}
.kf-pop-x{
  position:absolute;top:5px;right:7px;width:22px;height:22px;line-height:1;
  font-size:16px;color:var(--muted);cursor:pointer;border-radius:50%;
}
.kf-pop-x:hover{background:#f2f3f7;color:var(--ink)}

/* 手机端：收成一个小圆按钮，点一下才展开，避免挡住内容 */
.kf-fab{display:none}
.kf-inline-notice{display:none}

@media (max-width:768px){
  .kf-dock{right:12px;bottom:82px;gap:8px}
  .kf-notice{
    display:block;max-width:178px;font-size:11.5px;
    padding:8px 26px 8px 10px;border-radius:9px;
  }
  .kf-notice:after{right:24px}
  .kf-fab{
    display:flex;align-items:center;justify-content:center;
    flex-direction:column;gap:1px;
    width:60px;height:60px;border-radius:50%;cursor:pointer;
    background:linear-gradient(135deg,var(--red),#ff6a3d);color:#fff;
    box-shadow:0 8px 22px rgba(235,47,47,.4);
    animation:kfRing 2.4s ease-out infinite;position:relative;
  }
  .kf-fab i{font-style:normal;font-size:20px;line-height:1}
  .kf-fab:after{
    content:'客服';font-size:10px;line-height:1;letter-spacing:.5px;
  }
  .kf-box{
    display:none;position:absolute;right:0;bottom:70px;width:136px;
    padding:6px;border-radius:12px;gap:4px;
  }
  .kf-dock.is-open .kf-box{display:flex}
  .kf-dock.is-open .kf-notice{display:none}
  .kf-dock.is-open .kf-fab{animation:none}
  .kf-inline-notice{
    display:block;font-size:11px;line-height:1.45;color:var(--red);
    text-align:left;padding:3px 6px 7px;border-bottom:1px dashed var(--line);
  }
  .kf-title{display:none}
  /* 手机端展开后是「图标 + 文字」的横排小菜单，更好点 */
  .kf-btn{
    flex-direction:row;justify-content:flex-start;gap:8px;
    width:100%;height:38px;padding:0 10px;border-radius:9px;
  }
  .kf-btn i{font-size:15px}
  .kf-btn b{font-size:12px}
  .kf-pop{right:146px;bottom:70px;width:176px;padding:10px}
  .kf-pop img{max-width:156px}
}
