/* 佳成手游 · 折扣手游平台官网样式
   设计参考：3733 / 3387 类手游门户的内容密度 + 深色首屏的品牌质感 */

:root {
  --ink: #0a0f1e;
  --ink-2: #111a2e;
  --ink-3: #18233c;
  --brand: #2b6bff;
  --brand-2: #7b5cff;
  --brand-soft: #eef3ff;
  --red: #ff3b3b;
  --gold: #ffb020;
  --text: #131a2a;
  --muted: #5f6b82;
  --muted-2: #8d97ab;
  --line: #e6eaf3;
  --bg: #f5f7fc;
  --white: #fff;
  --radius: 14px;
  --radius-lg: 20px;
  --shadow: 0 10px 30px -18px rgba(13, 24, 51, .35);
  --max: 1200px;
  --font: "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); background: var(--bg); color: var(--text); font-size: 15px; line-height: 1.7; -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.3; color: var(--ink); font-weight: 700; letter-spacing: -.02em; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 22px; }

/* ---------- 顶部条 ---------- */
.topbar { background: #060a14; color: rgba(255, 255, 255, .55); font-size: 12.5px; border-bottom: 1px solid rgba(255, 255, 255, .06); }
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; height: 34px; gap: 16px; }
.topbar span i { font-style: normal; color: var(--gold); }
.topbar .right { display: flex; gap: 18px; }
.topbar a:hover { color: #fff; }

/* ---------- 头部 ---------- */
.site-header { background: var(--ink); color: #fff; position: sticky; top: 0; z-index: 90; border-bottom: 1px solid rgba(255, 255, 255, .07); }
.hd-inner { display: flex; align-items: center; gap: 26px; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; font-size: 19px; font-weight: 800; letter-spacing: -.02em; color: #fff; white-space: nowrap; }
.logo .mark { width: 30px; height: 30px; border-radius: 9px; background: linear-gradient(135deg, var(--brand), var(--brand-2)); display: flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 800; }
.logo small { font-size: 10.5px; font-weight: 500; color: rgba(255, 255, 255, .5); letter-spacing: .14em; display: block; line-height: 1; margin-top: 3px; }
.nav { display: flex; gap: 2px; margin-left: 6px; }
.nav a { padding: 8px 13px; border-radius: 8px; font-size: 14.5px; color: rgba(255, 255, 255, .78); transition: all .18s; white-space: nowrap; }
.nav a:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.nav a.is-active { color: #fff; font-weight: 600; }
.nav a.is-active::after { content: ""; display: block; height: 2px; width: 16px; background: var(--brand); border-radius: 2px; margin: 5px auto -3px; }
.hd-right { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.hd-search { display: flex; align-items: center; gap: 8px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .1); border-radius: 999px; padding: 0 12px; height: 34px; width: 190px; }
.hd-search input { background: none; border: 0; outline: none; color: #fff; font-size: 13px; width: 100%; }
.hd-search input::placeholder { color: rgba(255, 255, 255, .42); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 42px; padding: 0 20px; border-radius: 10px; border: 1px solid transparent; font-size: 14.5px; font-weight: 600; cursor: pointer; transition: all .18s; white-space: nowrap; }
.btn-primary { background: linear-gradient(135deg, var(--brand), #4b86ff); color: #fff; box-shadow: 0 8px 22px -10px rgba(43, 107, 255, .85); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 14px 28px -12px rgba(43, 107, 255, .9); }
.btn-line { border-color: rgba(255, 255, 255, .22); color: #fff; background: rgba(255, 255, 255, .05); }
.btn-line:hover { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .4); }
.btn-soft { background: var(--brand-soft); color: var(--brand); }
.btn-soft:hover { background: #e2ebff; }
.btn-sm { height: 36px; padding: 0 14px; font-size: 13.5px; border-radius: 8px; }
.btn-block { width: 100%; }
.btn-white { background: #fff; color: var(--ink); }
.btn-white:hover { background: #f2f5ff; }

.nav-toggle { display: none; width: 38px; height: 38px; border-radius: 9px; border: 1px solid rgba(255, 255, 255, .18); background: rgba(255, 255, 255, .06); cursor: pointer; align-items: center; justify-content: center; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { width: 15px; height: 1.6px; background: #fff; display: block; content: ""; position: relative; }
.nav-toggle span::before { position: absolute; top: -5px; }
.nav-toggle span::after { position: absolute; top: 5px; }

/* ---------- 首屏 ---------- */
.hero { position: relative; background: var(--ink); color: #fff; overflow: hidden; padding: 54px 0 96px; }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(720px 420px at 78% 8%, rgba(43, 107, 255, .34), transparent 62%),
    radial-gradient(520px 360px at 12% 92%, rgba(123, 92, 255, .26), transparent 62%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .035) 0 1px, transparent 1px 78px);
}
.hero-inner { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.hero .tag { display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 13px; border-radius: 999px; background: rgba(255, 255, 255, .09); border: 1px solid rgba(255, 255, 255, .14); font-size: 12.5px; color: #cfe0ff; margin-bottom: 20px; }
.hero .tag b { color: var(--gold); }
.hero h1 { color: #fff; font-size: clamp(32px, 3.9vw, 50px); line-height: 1.18; letter-spacing: -.035em; margin-bottom: 18px; }
.hero h1 em { font-style: normal; background: linear-gradient(100deg, #6fa3ff, #b79bff 60%, #ffd08a); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .sub { color: rgba(255, 255, 255, .66); font-size: 16px; max-width: 520px; margin-bottom: 26px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 26px; }
.hero-stats { display: flex; gap: 34px; flex-wrap: wrap; }
.hero-stats div b { display: block; font-size: 24px; letter-spacing: -.02em; color: #fff; line-height: 1.2; }
.hero-stats div b i { font-style: normal; color: var(--gold); font-size: 15px; }
.hero-stats div span { font-size: 12.5px; color: rgba(255, 255, 255, .5); }

/* 首屏右侧游戏卡组 */
.hero-cards { position: relative; height: 424px; }
.hcard { position: absolute; width: 162px; border-radius: 14px; overflow: hidden; border: 1px solid rgba(255, 255, 255, .14); box-shadow: 0 24px 50px -20px rgba(0, 0, 0, .8); background: var(--ink-2); }
.hcard img { width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; }
.hcard .cap { padding: 9px 12px 11px; font-size: 13px; color: #fff; display: flex; justify-content: space-between; align-items: center; }
.hcard .cap b { font-weight: 600; }
.hcard .cap span { color: var(--gold); font-size: 12px; }
.hcard-1 { left: 0; top: 30px; width: 192px; transform: rotate(-3deg); z-index: 3; }
.hcard-1 img { height: auto; }
.hcard-2 { right: 4px; top: 0; transform: rotate(4deg); z-index: 2; }
.hcard-3 { right: 0; bottom: 10px; transform: rotate(-3deg); z-index: 4; }
.hero-badge { position: absolute; left: -6px; top: 2px; z-index: 6; background: linear-gradient(135deg, #ff5a4d, #ff2e63); color: #fff; border-radius: 10px; padding: 8px 13px; font-size: 12px; font-weight: 700; box-shadow: 0 14px 26px -12px rgba(255, 46, 99, .9); transform: rotate(-5deg); }

/* 快捷入口 */
.quick { position: relative; margin-top: -54px; z-index: 10; }
.quick-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.quick-item { background: #fff; border-radius: var(--radius); padding: 20px 20px 18px; box-shadow: var(--shadow); display: flex; gap: 14px; align-items: center; transition: transform .2s, box-shadow .2s; }
.quick-item:hover { transform: translateY(-3px); box-shadow: 0 18px 34px -20px rgba(13, 24, 51, .4); }
.quick-item .qi { width: 38px; height: 38px; border-radius: 10px; background: var(--brand-soft); color: var(--brand); display: flex; align-items: center; justify-content: center; flex: none; }
.quick-item .qi svg { width: 19px; height: 19px; }
.quick-item b { display: block; font-size: 14.5px; color: var(--ink); }
.quick-item span { font-size: 12.5px; color: var(--muted-2); }

/* ---------- 通用区块 ---------- */
.section { padding: 58px 0; }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 26px; flex-wrap: wrap; }
.sec-head .l h2 { font-size: 26px; letter-spacing: -.03em; margin-bottom: 4px; }
.sec-head .l p { color: var(--muted); font-size: 13.5px; margin: 0; }
.sec-head .l h2::before { content: ""; display: inline-block; width: 4px; height: 20px; border-radius: 2px; background: linear-gradient(180deg, var(--brand), var(--brand-2)); margin-right: 10px; vertical-align: -3px; }
.sec-more { font-size: 13.5px; color: var(--muted); display: inline-flex; align-items: center; gap: 5px; }
.sec-more:hover { color: var(--brand); }

.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }

/* 折扣榜 */
.rank-wrap { display: grid; grid-template-columns: 1.35fr 1fr; gap: 20px; }
.rank { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.rank-hd { display: flex; align-items: center; gap: 8px; padding: 14px 18px; border-bottom: 1px solid var(--line); font-size: 14px; font-weight: 600; color: var(--ink); }
.rank-hd .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 3px rgba(255, 59, 59, .15); }
.rank-item { display: grid; grid-template-columns: 26px 44px 1fr auto; gap: 12px; align-items: center; padding: 12px 18px; border-bottom: 1px solid #f1f4fa; transition: background .16s; }
.rank-item:last-child { border-bottom: 0; }
.rank-item:hover { background: #fafbff; }
.rank-no { font-size: 14px; font-weight: 800; color: var(--muted-2); text-align: center; width: 22px; height: 22px; line-height: 22px; border-radius: 6px; }
.rank-no.n1 { background: linear-gradient(135deg, #ffcf5c, #ff9f1c); color: #fff; }
.rank-no.n2 { background: linear-gradient(135deg, #cfd9ea, #a3b1c9); color: #fff; }
.rank-no.n3 { background: linear-gradient(135deg, #f0c19a, #d08b53); color: #fff; }
.rank-item img { width: 44px; height: 44px; border-radius: 10px; object-fit: cover; background: #eef1f8; }
.rank-item .nm { font-size: 14px; font-weight: 600; color: var(--ink); display: block; }
.rank-item .mt { font-size: 12px; color: var(--muted-2); }
.disc { font-size: 12px; font-weight: 700; color: var(--red); background: #fff1f1; border: 1px solid #ffd9d9; border-radius: 6px; padding: 2px 7px; white-space: nowrap; }

/* 游戏列表 */
.game-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.game { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .2s, box-shadow .2s; display: flex; flex-direction: column; }
.game:hover { transform: translateY(-4px); box-shadow: 0 20px 36px -22px rgba(13, 24, 51, .45); }
.game-cover { position: relative; }
.game-cover img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.game-cover .b { position: absolute; left: 10px; top: 10px; font-size: 11.5px; font-weight: 700; color: #fff; background: linear-gradient(135deg, #ff5a4d, #ff2e63); padding: 3px 8px; border-radius: 6px; box-shadow: 0 6px 14px -8px rgba(255, 46, 99, .9); }
.game-body { padding: 13px 14px 15px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.game-body h3 { font-size: 15px; margin: 0; }
.game-meta { font-size: 12px; color: var(--muted-2); display: flex; gap: 8px; flex-wrap: wrap; }
.game-meta span { background: #f4f6fb; border-radius: 4px; padding: 1px 6px; }
.game-row { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 4px; }
.price { font-size: 13px; color: var(--muted); }
.price b { color: var(--red); font-size: 15px; }

/* 优势 */
.feat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.feat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.feat .fi { width: 38px; height: 38px; border-radius: 10px; background: linear-gradient(135deg, var(--brand-soft), #f2eeff); color: var(--brand); display: flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.feat .fi svg { width: 19px; height: 19px; }
.feat h3 { font-size: 15.5px; margin-bottom: 6px; }
.feat p { font-size: 13px; color: var(--muted); margin: 0; }

/* 下载区 */
.dl-section { background: linear-gradient(160deg, #0b1120, #131c33 60%, #0f1830); color: #fff; position: relative; overflow: hidden; }
.dl-section::before { content: ""; position: absolute; inset: 0; background: radial-gradient(600px 300px at 85% 20%, rgba(43, 107, 255, .3), transparent 60%), radial-gradient(400px 260px at 5% 90%, rgba(123, 92, 255, .22), transparent 60%); }
.dl-section .wrap { position: relative; }
.dl-section .sec-head .l h2 { color: #fff; }
.dl-section .sec-head .l p { color: rgba(255, 255, 255, .55); }
.dl-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.dl-card { background: rgba(255, 255, 255, .055); border: 1px solid rgba(255, 255, 255, .12); border-radius: var(--radius-lg); padding: 26px; backdrop-filter: blur(6px); display: flex; flex-direction: column; gap: 14px; }
.dl-card .dl-top { display: flex; align-items: center; gap: 12px; }
.dl-card .dl-ico { width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 18px; font-weight: 800; color: #fff; flex: none; }
.dl-card:nth-child(1) .dl-ico { background: linear-gradient(135deg, #ff8a3d, #ff5a4d); }
.dl-card:nth-child(2) .dl-ico { background: linear-gradient(135deg, #3d8bff, #7b5cff); }
.dl-card h3 { color: #fff; font-size: 18px; margin: 0; }
.dl-card .dl-sub { font-size: 12.5px; color: rgba(255, 255, 255, .5); }
.dl-card p { font-size: 13.5px; color: rgba(255, 255, 255, .65); margin: 0; }
.dl-card ul { display: grid; gap: 6px; }
.dl-card li { font-size: 13px; color: rgba(255, 255, 255, .7); padding-left: 16px; position: relative; }
.dl-card li::before { content: ""; position: absolute; left: 0; top: 9px; width: 5px; height: 5px; border-radius: 50%; background: #6fa3ff; }
.dl-url { font-size: 11.5px; color: rgba(255, 255, 255, .35); word-break: break-all; border-top: 1px dashed rgba(255, 255, 255, .14); padding-top: 12px; }
.dl-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* 论坛 */
.forum-split { display: grid; grid-template-columns: 1.5fr 1fr; gap: 20px; align-items: start; }
.post-list { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.post-row { display: grid; grid-template-columns: 1fr auto; gap: 16px; padding: 16px 20px; border-bottom: 1px solid #f1f4fa; transition: background .16s; }
.post-row:last-child { border-bottom: 0; }
.post-row:hover { background: #fafbff; }
.post-row h3 { font-size: 15px; margin: 0 0 5px; font-weight: 600; line-height: 1.5; }
.post-row h3 a:hover { color: var(--brand); }
.post-meta { font-size: 12px; color: var(--muted-2); display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.post-meta .tag { color: var(--brand); background: var(--brand-soft); padding: 1px 7px; border-radius: 4px; }
.post-row .hot { font-size: 11px; color: #fff; background: var(--red); padding: 1px 5px; border-radius: 3px; vertical-align: 1px; margin-left: 6px; }
.post-row .views { text-align: right; font-size: 12px; color: var(--muted-2); white-space: nowrap; padding-top: 3px; }
.side-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.side-card h3 { font-size: 15px; margin-bottom: 12px; }
.side-card .kv { display: flex; justify-content: space-between; font-size: 13px; padding: 9px 0; border-bottom: 1px dashed var(--line); color: var(--muted); }
.side-card .kv:last-of-type { border-bottom: 0; }
.side-card .kv b { color: var(--ink); }

/* 文章页 */
.article-hero { background: linear-gradient(160deg, #0b1120, #141d34); color: #fff; padding: 40px 0 34px; }
.article-hero .crumb { font-size: 12.5px; color: rgba(255, 255, 255, .5); display: flex; gap: 8px; margin-bottom: 14px; }
.article-hero .crumb a:hover { color: #fff; }
.article-hero h1 { color: #fff; font-size: clamp(24px, 3vw, 34px); letter-spacing: -.03em; max-width: 880px; }
.article-hero .meta { font-size: 13px; color: rgba(255, 255, 255, .55); display: flex; gap: 14px; flex-wrap: wrap; margin-top: 12px; }
.article-layout { display: grid; grid-template-columns: 1fr 300px; gap: 34px; align-items: start; padding: 36px 0 64px; }
.article-body { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 36px 40px 42px; }
.article-body h2 { font-size: 21px; margin: 32px 0 12px; }
.article-body h2:first-child { margin-top: 0; }
.article-body h3 { font-size: 17px; margin: 24px 0 8px; }
.article-body p, .article-body li { font-size: 15.5px; line-height: 1.95; color: #2a3446; }
.article-body ul { list-style: disc; padding-left: 22px; margin: 0 0 18px; }
.article-body ol { list-style: decimal; padding-left: 22px; margin: 0 0 18px; }
.article-body li { margin-bottom: 7px; }
.article-body blockquote { margin: 0 0 20px; padding: 16px 20px; background: #f6f9ff; border-left: 3px solid var(--brand); border-radius: 0 8px 8px 0; }
.article-body blockquote p:last-child { margin: 0; }
.article-body table { width: 100%; border-collapse: collapse; margin: 0 0 20px; font-size: 14.5px; }
.article-body th, .article-body td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; }
.article-body th { background: #f7f9fe; font-weight: 600; color: var(--ink); }
.article-body .lead { font-size: 16.5px; color: var(--ink); background: #f7f9fe; border-radius: 10px; padding: 16px 18px; border: 1px solid var(--line); }
.article-body .cta-inline { display: flex; gap: 12px; flex-wrap: wrap; margin: 26px 0 0; padding: 20px; border-radius: 12px; background: linear-gradient(135deg, #f4f8ff, #f6f2ff); border: 1px solid #e3eaff; }
.article-body .cta-inline p { margin: 0 0 10px; font-size: 14px; color: var(--muted); }
.side-sticky { position: sticky; top: 84px; display: grid; gap: 16px; }
.side-dl { background: linear-gradient(160deg, #101a2e, #1b2a4a); color: #fff; border-radius: var(--radius); padding: 20px; }
.side-dl h3 { color: #fff; font-size: 15px; }
.side-dl p { font-size: 12.5px; color: rgba(255, 255, 255, .6); }
.side-dl .btn { margin-top: 4px; }

/* FAQ */
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: 10px; margin-bottom: 10px; overflow: hidden; }
.faq-q { width: 100%; text-align: left; background: none; border: 0; padding: 16px 44px 16px 18px; font-size: 15px; font-weight: 600; color: var(--ink); cursor: pointer; position: relative; }
.faq-q::after { content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font-size: 18px; color: var(--muted-2); font-weight: 400; }
.faq-item.is-open .faq-q::after { content: "−"; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s; }
.faq-a p { padding: 0 18px 16px; margin: 0; color: var(--muted); font-size: 14px; }
.faq-item.is-open .faq-a { max-height: 300px; }

/* 底部 */
.site-footer { background: #060a14; color: rgba(255, 255, 255, .55); padding: 48px 0 24px; font-size: 13.5px; }
.ft-top { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 30px; padding-bottom: 32px; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.site-footer h4 { color: #fff; font-size: 14px; margin-bottom: 12px; }
.site-footer li { margin-bottom: 8px; }
.site-footer a:hover { color: #fff; }
.ft-desc { max-width: 300px; font-size: 13px; line-height: 1.9; margin: 12px 0 0; }
.ft-bottom { display: flex; justify-content: space-between; gap: 16px; padding-top: 20px; font-size: 12px; color: rgba(255, 255, 255, .35); flex-wrap: wrap; }

/* 滚动显现（仅在支持 JS 时生效） */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .55s ease, transform .55s cubic-bezier(.2, .7, .3, 1); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* 响应式 */
@media (max-width: 1080px) {
  .hero-inner { grid-template-columns: 1fr; gap: 30px; }
  .hero-cards { height: 300px; max-width: 560px; }
  .game-grid { grid-template-columns: repeat(3, 1fr); }
  .feat-grid { grid-template-columns: repeat(2, 1fr); }
  .quick-grid { grid-template-columns: repeat(2, 1fr); }
  .rank-wrap, .forum-split, .dl-grid, .article-layout { grid-template-columns: 1fr; }
  .side-sticky { position: static; grid-template-columns: 1fr 1fr; }
  .ft-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .topbar .right { display: none; }
  .nav { position: fixed; left: 0; right: 0; top: 98px; background: #0d1424; flex-direction: column; padding: 10px 16px 16px; border-bottom: 1px solid rgba(255, 255, 255, .1); transform: translateY(-10px); opacity: 0; pointer-events: none; transition: all .2s; z-index: 80; }
  .nav.is-open { transform: none; opacity: 1; pointer-events: auto; }
  .nav a { padding: 12px; }
  .nav a.is-active::after { display: none; }
  .nav-toggle { display: flex; }
  .hd-search { display: none; }
  .hd-inner { gap: 12px; height: 60px; }
  .logo { font-size: 17px; }
  .logo small { display: none; }
  .hero { padding: 36px 0 84px; }
  .hero-cards { height: 350px; }
  .hcard { width: 140px; }
  .hcard img { height: auto; }
  .hcard-1 { top: 26px; }
  .hcard-3 { bottom: 0; }
  .hero-badge { top: 0; left: 2px; font-size: 11.5px; padding: 7px 11px; }
  .game-grid { grid-template-columns: repeat(2, 1fr); }
  .feat-grid, .quick-grid, .side-sticky { grid-template-columns: 1fr; }
  .section { padding: 44px 0; }
  .sec-head .l h2 { font-size: 21px; }
  .article-body { padding: 24px 20px 30px; }
  .article-body h2 { font-size: 18px; }
  .article-body p, .article-body li { font-size: 15px; }
  .ft-top { grid-template-columns: 1fr; }
  .dl-grid { gap: 14px; }
  .hero-stats { gap: 22px; }
  .rank-item { grid-template-columns: 22px 40px 1fr auto; gap: 9px; padding: 11px 14px; }
}

/* ============ 移动端专项优化（2026-11-28） ============ */
@media (max-width: 860px) {
  /* 首屏游戏卡：绝对定位在窄屏会互相重叠，改为三列等宽网格 */
  .hero-cards {
    position: static; height: auto;
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px;
    margin-top: 26px;
  }
  .hcard, .hcard-1, .hcard-2, .hcard-3 {
    position: static; width: 100% !important; transform: none !important;
    border-radius: 12px; box-shadow: 0 12px 26px -16px rgba(0, 0, 0, .8);
  }
  .hcard img { width: 100%; height: auto; aspect-ratio: 1 / 1; }
  .hcard .cap { display: block; padding: 7px 8px 9px; }
  .hcard .cap b { display: block; font-size: 11.5px; line-height: 1.4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .hcard .cap span { display: block; font-size: 10.5px; margin-top: 1px; }

  /* 快捷入口：四个全宽长条太占屏，改 2×2 */
  .quick-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 10px; }
  .quick-item { padding: 13px 12px; gap: 10px; border-radius: 12px; }
  .quick-item .qi { width: 32px; height: 32px; border-radius: 9px; }
  .quick-item .qi svg { width: 16px; height: 16px; }
  .quick-item b { font-size: 13px; }
  .quick-item span { font-size: 11px; }

  /* 顶栏文字过小，略放大并收紧 */
  .topbar { font-size: 11.5px; }
  .topbar .wrap { height: 32px; }

  /* 首屏标题与正文在窄屏收紧一点，避免过度换行 */
  .hero h1 { font-size: 30px; line-height: 1.24; }
  .hero p { font-size: 13.5px; line-height: 1.85; }
  .hero-stats { gap: 18px; }
  .hero-stats b { font-size: 19px; }

  /* 榜单行在窄屏更紧凑 */
  .rank-item { padding: 10px 12px; }
}

/* 事实表在窄屏改为可横向滚动，避免撑宽整页 */
@media (max-width: 860px) {
  .fact {
    display: block; width: 100%; max-width: 100%;
    overflow-x: auto; -webkit-overflow-scrolling: touch;
    border-radius: 10px;
  }
  .fact tr { display: table-row; }
  .fact th, .fact td { white-space: normal; }
}

/* ============ 移动端基础修正（微信 / iOS Safari） ============ */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
a, button, .quick-item, .hcard { -webkit-tap-highlight-color: transparent; }
img { max-width: 100%; }
@media (max-width: 860px) {
  /* iOS 输入框字号小于 16px 会在聚焦时强制放大页面 */
  input, textarea, select { font-size: 16px; }
  /* 横屏时避免整页被系统缩放 */
  body { overflow-x: hidden; }
}
