/* =========================================================
   tpl_b：暗色金色主题 · PC / M 自适应
   主题色变量由页面 <head> 里的 <style> 注入（注册表 extra.color 可改色）
   ========================================================= */
:root {
    --gold: #f3c969;
    --gold-2: #d99a2b;
    --gold-light: #fff1c4;
    --gold-top: #ffe9a8;
    --gold-pale: #fffbe9;
    --gold-rgb: 243, 201, 105;
    --gold2-rgb: 217, 154, 43;
    --on-gold: #3a1d00;
    --red: #e2402f;
    --bg: #0b0a12;
    --bg-2: #13111d;
    --bg-3: #1b1828;
    --line: rgba(var(--gold-rgb), .22);
    --text: #ece6d8;
    --muted: #9c95a8;
    --radius: 14px;
    --header-h: 72px;
    --container: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font: 15px/1.7 "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
h1, h2, h3, h4, p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
svg { width: 1em; height: 1em; flex-shrink: 0; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.center { text-align: center; margin-top: 40px; }
.muted { color: var(--muted); font-size: 13px; }

/* ---------- 按钮 ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    height: 46px; padding: 0 26px; border-radius: 999px;
    font-weight: 700; font-size: 15px; white-space: nowrap;
    transition: transform .25s, box-shadow .25s, background .25s, color .25s;
}
.btn:hover { transform: translateY(-2px); }
.btn-sm { height: 38px; padding: 0 18px; font-size: 14px; }
.btn-lg { height: 56px; padding: 0 34px; font-size: 17px; }
.btn-gold {
    color: var(--on-gold);
    background: linear-gradient(180deg, var(--gold-top) 0%, var(--gold) 45%, var(--gold-2) 100%);
    box-shadow: 0 6px 20px rgba(var(--gold2-rgb), .35), inset 0 1px 0 rgba(255, 255, 255, .6);
}
.btn-gold:hover { box-shadow: 0 10px 30px rgba(var(--gold-rgb), .55), inset 0 1px 0 rgba(255, 255, 255, .6); }
.btn-ghost {
    color: #fff; background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .35);
    backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.btn-ghost:hover { background: rgba(255, 255, 255, .16); }
.btn-outline { color: var(--gold); border: 1px solid var(--gold); }
.btn-outline:hover { background: var(--gold); color: var(--on-gold); }
.pulse { animation: pulse 2.2s ease-in-out infinite; }
@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(var(--gold-rgb), .55), 0 6px 20px rgba(var(--gold2-rgb), .35); }
    50% { box-shadow: 0 0 0 14px rgba(var(--gold-rgb), 0), 0 6px 20px rgba(var(--gold2-rgb), .35); }
}

/* ---------- 顶部导航 ---------- */
.header {
    position: fixed; inset: 0 0 auto; z-index: 100; height: var(--header-h);
    transition: background .3s, box-shadow .3s;
}
.header.scrolled {
    background: rgba(11, 10, 18, .88);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 var(--line);
}
.header-inner { height: 100%; display: flex; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand img { border-radius: 10px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-text strong { font-size: 17px; color: #fff; }
.brand-text em { font-style: normal; font-size: 12px; color: var(--gold); letter-spacing: 2px; }

.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav a {
    position: relative; padding: 8px 14px; color: rgba(255, 255, 255, .82);
    font-size: 15px; transition: color .25s;
}
.nav a::after {
    content: ''; position: absolute; left: 50%; bottom: 2px; width: 0; height: 2px;
    background: var(--gold); transform: translateX(-50%); transition: width .25s;
}
.nav a:hover, .nav a.active { color: var(--gold); }
.nav a:hover::after, .nav a.active::after { width: 22px; }
.nav .nav-mobile-dl { display: none; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.menu-btn { display: none; width: 40px; height: 40px; font-size: 26px; align-items: center; justify-content: center; }
.menu-btn .ic-close { display: none; }

/* ---------- 主视觉 ---------- */
.hero {
    position: relative; min-height: 100vh; min-height: 100svh;
    display: flex; align-items: center; justify-content: center;
    overflow: hidden; text-align: center; padding: calc(var(--header-h) + 30px) 0 90px;
}
.hero-bg {
    position: absolute; inset: -4%;
    background: center / cover no-repeat;
    animation: kenburns 24s ease-in-out infinite alternate;
}
@keyframes kenburns { from { transform: scale(1); } to { transform: scale(1.08) translateY(-1%); } }
.hero-mask {
    position: absolute; inset: 0;
    background:
        radial-gradient(ellipse at center, rgba(11, 10, 18, 0) 30%, rgba(11, 10, 18, .65) 100%),
        linear-gradient(180deg, rgba(11, 10, 18, .45) 0%, rgba(11, 10, 18, .1) 40%, rgba(11, 10, 18, .85) 85%, var(--bg) 100%);
}
.hero-particles { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero-content { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; }
.hero-logo {
    width: 110px; height: 110px; border-radius: 26px; margin-bottom: 18px;
    box-shadow: 0 0 0 4px rgba(var(--gold-rgb), .25), 0 12px 40px rgba(0, 0, 0, .6);
    animation: float 4s ease-in-out infinite;
}
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.hero-title {
    position: relative;
    font-family: "STKaiti", "KaiTi", "Kaiti SC", "STSong", serif;
    font-size: clamp(48px, 9vw, 112px); font-weight: 900; line-height: 1.1; letter-spacing: 6px;
    background: linear-gradient(180deg, var(--gold-pale) 0%, var(--gold-light) 30%, var(--gold) 60%, var(--gold-2) 100%);
    -webkit-background-clip: text; background-clip: text; color: transparent;
    filter: drop-shadow(0 4px 0 rgba(90, 40, 0, .55)) drop-shadow(0 10px 30px rgba(0, 0, 0, .7));
}
.hero-tag {
    margin-top: 14px; padding: 4px 22px; font-size: 18px; font-weight: 800; letter-spacing: 4px; color: #fff;
    background: linear-gradient(90deg, transparent, var(--red) 15%, var(--red) 85%, transparent);
}
.hero-sub { margin-top: 18px; font-size: clamp(15px, 2vw, 20px); color: rgba(255, 255, 255, .9); letter-spacing: 2px; text-shadow: 0 2px 8px rgba(0, 0, 0, .8); }
.hero-points { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 18px; }
.hero-points li {
    padding: 6px 16px; font-size: 14px; font-weight: 700; color: var(--gold-light);
    border: 1px solid var(--line); border-radius: 4px; background: rgba(20, 12, 4, .55);
    clip-path: polygon(8px 0, calc(100% - 8px) 0, 100% 50%, calc(100% - 8px) 100%, 8px 100%, 0 50%);
}
.hero-btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; margin-top: 34px; }
.play-ring {
    display: inline-flex; align-items: center; justify-content: center;
    width: 30px; height: 30px; border-radius: 50%; background: #fff; color: var(--red); font-size: 14px;
}
.hero-meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; margin-top: 28px; color: rgba(255, 255, 255, .62); font-size: 13px; }
.hero-meta span { display: inline-flex; align-items: center; gap: 6px; }
.hero-scroll {
    position: absolute; left: 50%; bottom: 26px; z-index: 2; transform: translateX(-50%);
    font-size: 34px; color: rgba(255, 255, 255, .6); animation: bounce 2s infinite;
}
@keyframes bounce { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 10px); } }

/* ---------- 通用版块 ---------- */
.section { position: relative; padding: 96px 0; }
.section-dark { background: var(--bg-2); }
.section-dark::before, .section-dark::after {
    content: ''; position: absolute; left: 0; right: 0; height: 1px;
    background: linear-gradient(90deg, transparent, var(--line), transparent);
}
.section-dark::before { top: 0; }
.section-dark::after { bottom: 0; }

.sec-title { text-align: center; margin-bottom: 52px; }
.sec-en {
    display: block; font-family: Georgia, "Times New Roman", serif; font-size: 13px; letter-spacing: 6px;
    color: var(--gold); opacity: .7;
}
.sec-title h2 {
    display: inline-flex; align-items: center; gap: 18px; margin-top: 6px;
    font-family: "STKaiti", "KaiTi", "Kaiti SC", serif;
    font-size: clamp(28px, 4vw, 40px); font-weight: 900; letter-spacing: 4px; color: #fff;
}
.sec-title h2::before, .sec-title h2::after {
    content: ''; width: 60px; height: 10px;
    background:
        linear-gradient(var(--gold), var(--gold)) center / 100% 1px no-repeat,
        radial-gradient(circle, var(--gold) 2.5px, transparent 3px) center / 10px 10px no-repeat;
}
.sec-title h2::before { background-position: center, right center; }
.sec-title h2::after { background-position: center, left center; }
.sec-title p { margin-top: 12px; color: var(--muted); }
.sec-title small { opacity: .7; }

/* ---------- 游戏特色 ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.feature-card {
    position: relative; padding: 34px 24px 28px; text-align: center; border-radius: var(--radius);
    background: linear-gradient(180deg, var(--bg-3), var(--bg-2));
    border: 1px solid rgba(255, 255, 255, .06);
    transition: transform .3s, border-color .3s, box-shadow .3s;
    overflow: hidden;
}
.feature-card::before {
    content: ''; position: absolute; inset: 0 0 auto; height: 3px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    opacity: 0; transition: opacity .3s;
}
.feature-card:hover { transform: translateY(-6px); border-color: var(--line); box-shadow: 0 16px 40px rgba(0, 0, 0, .45); }
.feature-card:hover::before { opacity: 1; }
.feature-ico {
    width: 68px; height: 68px; margin: 0 auto 18px; display: flex; align-items: center; justify-content: center;
    font-size: 32px; color: var(--gold); border-radius: 50%;
    background: radial-gradient(circle, rgba(var(--gold-rgb), .18), rgba(var(--gold-rgb), .02));
    border: 1px solid var(--line);
}
.feature-card h3 { font-size: 19px; color: #fff; margin-bottom: 8px; }
.feature-card p { color: var(--muted); font-size: 14px; }

.welfare {
    margin-top: 40px; padding: 32px 36px; border-radius: var(--radius);
    background: linear-gradient(135deg, rgba(var(--gold-rgb), .08), rgba(226, 64, 47, .06));
    border: 1px solid var(--line); position: relative;
}
.welfare-head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; flex-wrap: wrap; }
.welfare-head h3 { font-size: 20px; color: var(--gold); order: -1; }
.welfare-badge { padding: 2px 12px; font-size: 13px; color: #fff; background: var(--red); border-radius: 4px; }
.welfare-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 32px; }
.welfare-list li { position: relative; padding-left: 20px; color: rgba(255, 255, 255, .85); font-size: 14.5px; }
.welfare-list li::before { content: '◆'; position: absolute; left: 0; color: var(--gold); font-size: 11px; top: 3px; }
.welfare-list b { color: var(--gold-light); }
.welfare-list .note { grid-column: 1 / -1; color: var(--muted); font-size: 13px; }

/* ---------- 截图轮播（中间手机框 + 两侧景深） ---------- */
.shots { --w: 270px; --ratio: 9 / 16; position: relative; height: calc(var(--w) * 16 / 9 + 40px); user-select: none; touch-action: pan-y; }
.shots.landscape { --w: 640px; --ratio: 16 / 9; height: calc(var(--w) * 9 / 16 + 40px); }
.shots-track { position: absolute; inset: 0; }
.shot {
    position: absolute; left: 50%; top: 20px; width: var(--w); aspect-ratio: var(--ratio);
    margin-left: calc(var(--w) / -2); border-radius: 18px; overflow: hidden; cursor: zoom-in;
    transition: transform .5s cubic-bezier(.2, .7, .2, 1), opacity .5s, filter .5s;
    box-shadow: 0 20px 50px rgba(0, 0, 0, .6);
}
.shot img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.phone-frame {
    position: absolute; left: 50%; top: 8px; z-index: 20; pointer-events: none;
    width: calc(var(--w) + 24px); height: calc(var(--w) * 16 / 9 + 24px); margin-left: calc((var(--w) + 24px) / -2);
    border-radius: 30px; border: 12px solid #1c1a24;
    box-shadow: 0 0 0 1px rgba(var(--gold-rgb), .5), 0 0 40px rgba(var(--gold-rgb), .18);
}
.phone-frame::before {
    content: ''; position: absolute; top: -2px; left: 50%; width: 36%; height: 16px; transform: translateX(-50%);
    background: #1c1a24; border-radius: 0 0 12px 12px;
}
.shots.landscape .phone-frame { height: calc(var(--w) * 9 / 16 + 24px); }
.shots.landscape .phone-frame::before { display: none; }
.shots-btn {
    position: absolute; top: 50%; z-index: 30; transform: translateY(-50%);
    width: 48px; height: 48px; border-radius: 50%; font-size: 26px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(0, 0, 0, .5); border: 1px solid var(--line); color: var(--gold);
    transition: background .25s, color .25s;
}
.shots-btn:hover { background: var(--gold); color: var(--on-gold); }
.shots-btn.prev { left: calc(50% - var(--w) / 2 - 220px); }
.shots-btn.next { right: calc(50% - var(--w) / 2 - 220px); }
.shots.landscape .shots-btn.prev { left: 0; }
.shots.landscape .shots-btn.next { right: 0; }
.dots { display: flex; justify-content: center; gap: 10px; margin-top: 26px; }
.dots button { width: 10px; height: 10px; border-radius: 10px; background: rgba(255, 255, 255, .25); transition: width .3s, background .3s; }
.dots button.active { width: 30px; background: var(--gold); }

/* ---------- 礼包 ---------- */
.gift-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.gift-card {
    position: relative; padding: 24px 24px 20px; border-radius: var(--radius);
    background:
        radial-gradient(circle at 0 50%, var(--bg) 10px, transparent 11px) left / 100% 100% no-repeat,
        radial-gradient(circle at 100% 50%, var(--bg) 10px, transparent 11px) right / 100% 100% no-repeat,
        linear-gradient(135deg, #2a1d14, #1a1420);
    border: 1px solid var(--line);
    display: flex; flex-direction: column; gap: 8px;
    transition: transform .3s, box-shadow .3s;
}
.gift-card:hover { transform: translateY(-4px); box-shadow: 0 14px 34px rgba(0, 0, 0, .5); }
.gift-top { display: flex; align-items: center; gap: 10px; color: var(--gold); font-size: 22px; }
.gift-top h3 { font-size: 18px; color: #fff; }
.gift-card p { color: rgba(255, 255, 255, .82); font-size: 14px; flex: 1; }
.gift-limit { font-size: 12px; color: var(--muted); }
.gift-action {
    margin-top: 10px; display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 6px 0 14px;
    border: 1px dashed rgba(var(--gold-rgb), .45); border-radius: 8px; background: rgba(0, 0, 0, .25);
}
.gift-action code { flex: 1; font: 700 15px/1 Consolas, Menlo, monospace; color: var(--gold-light); letter-spacing: 1px; overflow: hidden; text-overflow: ellipsis; }
.gift-action button, .gift-action a {
    display: inline-flex; align-items: center; gap: 5px; height: 30px; padding: 0 12px; border-radius: 6px;
    font-size: 13px; font-weight: 700; color: var(--on-gold); background: var(--gold);
}
.gift-action a { margin-left: auto; }
.gift-action.no-code { border-style: solid; }

/* ---------- 资讯（文字卡片，没有配图） ---------- */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.news-card {
    display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden;
    background: linear-gradient(180deg, var(--bg-3), var(--bg-2)); border: 1px solid rgba(255, 255, 255, .06);
    transition: transform .3s, border-color .3s, box-shadow .3s;
}
.news-card:hover { transform: translateY(-6px); border-color: var(--line); box-shadow: 0 16px 40px rgba(0, 0, 0, .45); }
.news-body { padding: 22px 22px 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.news-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.news-cat { padding: 2px 10px; font-size: 12px; color: #fff; background: var(--red); border-radius: 4px; }
.news-top time { color: rgba(255, 255, 255, .4); font-size: 12px; }
.news-body h3 { font-size: 17px; color: #fff; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.news-card:hover h3 { color: var(--gold); }
.news-body p { color: var(--muted); font-size: 13.5px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.news-more { margin-top: auto; padding-top: 4px; color: var(--gold); font-size: 13px; font-weight: 700; }
.empty { color: var(--muted); text-align: center; }

/* ---------- 下载 ---------- */
.download { overflow: hidden; }
.download-bg {
    position: absolute; inset: 0; background: center / cover no-repeat; opacity: .35;
    -webkit-mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent);
    mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent);
}
.download .container { position: relative; max-width: 1360px; }
.dl-box {
    display: flex; align-items: center; justify-content: center; gap: 72px;
    max-width: 1320px; min-height: 475px; margin: 0 auto; padding: 56px 70px; border-radius: 36px;
    background: rgba(11, 10, 18, .72); border: 1px solid var(--line);
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.dl-qr { display: flex; flex-direction: column; align-items: center; gap: 20px; color: var(--muted); font-size: 18px; flex: 0 0 292px; }
.dl-qr-code { position: relative; width: 292px; height: 292px; padding: 8px; overflow: hidden; border-radius: 18px; background: #fff; box-sizing: border-box; }
.dl-qr-code canvas, .dl-qr-code img { display: block; width: 276px !important; height: 276px !important; }
.dl-qr-center-label { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); padding: 7px 10px; color: #e53935; background: rgba(255,255,255,.96); font-size: 18px; font-weight: 700; white-space: nowrap; pointer-events: none; }
.dl-btns { display: flex; flex-direction: column; gap: 28px; width: min(474px, 100%); }
.dl-btn {
    display: flex; align-items: center; gap: 24px; width: 100%; min-height: 124px; padding: 0 48px;
    border-radius: 22px; font-size: 34px; color: var(--on-gold); box-sizing: border-box;
    background: linear-gradient(180deg, var(--gold-top), var(--gold) 50%, var(--gold-2));
    box-shadow: 0 8px 24px rgba(var(--gold2-rgb), .3);
    transition: transform .25s, box-shadow .25s;
}
.dl-btn > svg { width: 38px; height: 38px; flex: 0 0 38px; }
.dl-btn:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(var(--gold-rgb), .5); }
.dl-btn span { display: flex; flex-direction: column; font-size: 30px; font-weight: 800; line-height: 1.25; }
.dl-btn small { font-size: 20px; font-weight: 500; opacity: .75; margin-bottom: 4px; }
.dl-tips { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 36px; margin-top: 36px; color: rgba(255, 255, 255, .7); font-size: 14px; }
.dl-tips li { display: flex; align-items: center; gap: 8px; }
.dl-tips svg { color: var(--gold); font-size: 18px; }

/* ---------- 客服 ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr 1.2fr; gap: 20px; }
.contact-card {
    padding: 30px 24px; border-radius: var(--radius); text-align: center;
    background: linear-gradient(180deg, var(--bg-3), var(--bg-2)); border: 1px solid rgba(255, 255, 255, .06);
}
.contact-ico { width: 56px; height: 56px; margin: 0 auto 12px; display: flex; align-items: center; justify-content: center; font-size: 28px; color: #3ec46d; border-radius: 50%; background: rgba(62, 196, 109, .12); }
.contact-card h3 { font-size: 18px; color: #fff; }
.contact-name { color: var(--gold); font-weight: 700; margin: 4px 0 14px; }
.contact-qr { display: inline-block; padding: 8px; background: #fff; border-radius: 10px; margin-bottom: 12px; }
.contact-info { text-align: left; display: flex; flex-direction: column; justify-content: center; gap: 22px; }
.info-row { display: flex; gap: 14px; }
.info-row > svg { font-size: 26px; color: var(--gold); margin-top: 2px; }
.info-row h4 { color: #fff; font-size: 16px; margin-bottom: 2px; }
.info-row p { color: var(--muted); font-size: 13.5px; }

/* ---------- 页脚 ---------- */
.footer { background: #07060c; padding: 56px 0 30px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.footer-top { display: flex; justify-content: space-between; gap: 40px; padding-bottom: 32px; }
.footer-brand { display: flex; gap: 16px; max-width: 520px; }
.footer-brand img { border-radius: 12px; }
.footer-brand strong { display: block; color: #fff; font-size: 18px; margin-bottom: 6px; }
.footer-links { display: flex; gap: 64px; }
.footer-links h4 { color: #fff; font-size: 15px; margin-bottom: 12px; }
.footer-links a { display: block; padding: 3px 0; transition: color .25s; }
.footer-links a:hover { color: var(--gold); }
.footer-health { padding: 18px; text-align: center; border-radius: 10px; background: rgba(255, 255, 255, .03); margin-bottom: 22px; }
.footer-copy { text-align: center; line-height: 2; }
.footer-copy a:hover { color: var(--gold); }

/* ---------- PC 侧边悬浮下载 ---------- */
.side-dl {
    position: fixed; right: 20px; top: 50%; z-index: 90; width: 176px; padding: 18px 12px 14px;
    transform: translateY(-50%); text-align: center; border-radius: 16px;
    background: linear-gradient(180deg, rgba(36, 26, 18, .95), rgba(16, 13, 24, .95));
    border: 1px solid var(--line); box-shadow: 0 16px 40px rgba(0, 0, 0, .55);
    transition: transform .4s, opacity .4s;
}
.side-dl.hidden { transform: translate(calc(100% + 20px), -50%); }
.side-dl.hidden .side-toggle { left: -50px; transform: rotate(180deg); }
.side-logo { width: 64px; height: 64px; margin: -50px auto 10px; border-radius: 16px; box-shadow: 0 0 0 3px rgba(var(--gold-rgb), .4); }
.side-qr { width: 128px; height: 128px; margin: 0 auto; padding: 4px; box-sizing: border-box; background: #fff; border-radius: 8px; overflow: hidden; }
.side-qr canvas, .side-qr img { display: block; width: 120px !important; height: 120px !important; }
.side-btn span { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.15; font-size: 13px; }
.side-btn small { display: block; font-size: 10px; font-weight: 500; opacity: .75; }
.side-btn > svg { width: 20px; height: 20px; flex: 0 0 20px; }
.side-btn { min-height: 42px; height: auto; padding: 5px 7px; gap: 7px; }
.side-dl p { margin: 8px 0 10px; font-size: 13px; color: var(--gold-light); }
.side-btn {
    display: flex; align-items: center; justify-content: center; gap: 6px; height: 36px; margin-top: 8px;
    border-radius: 8px; font-size: 14px; font-weight: 700; color: var(--on-gold);
    background: linear-gradient(180deg, var(--gold-top), var(--gold) 50%, var(--gold-2));
}
.side-btn:hover { filter: brightness(1.1); }
.side-btn-gift { color: #fff; background: linear-gradient(180deg, #ff6a50, var(--red)); }
.side-toggle {
    position: absolute; left: -30px; top: 50%; width: 26px; height: 50px; margin-top: -25px;
    border-radius: 8px 0 0 8px; background: rgba(36, 26, 18, .95); border: 1px solid var(--line); border-right: 0;
    color: var(--gold); display: flex; align-items: center; justify-content: center; font-size: 18px;
    transition: left .4s, transform .4s;
}

/* ---------- 移动端吸底下载条 ---------- */
.m-bar {
    display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 95;
    align-items: center; gap: 10px; padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
    background: rgba(14, 11, 20, .96); border-top: 1px solid var(--line);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    transform: translateY(110%); transition: transform .35s;
}
.m-bar.show { transform: none; }
.m-bar img { border-radius: 10px; }
.m-bar-text { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.35; }
.m-bar-text strong { color: #fff; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-bar-text span { color: var(--gold); font-size: 12px; }

/* ---------- 返回顶部 / 提示 / 弹窗 ---------- */
.back-top {
    position: fixed; right: 20px; bottom: 24px; z-index: 90; width: 46px; height: 46px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; font-size: 26px;
    color: var(--on-gold); background: var(--gold); box-shadow: 0 6px 18px rgba(0, 0, 0, .4);
    opacity: 0; visibility: hidden; transform: translateY(10px); transition: all .3s;
}
.back-top.show { opacity: 1; visibility: visible; transform: none; }

.toast {
    position: fixed; left: 50%; top: 90px; z-index: 300; padding: 10px 22px; border-radius: 999px;
    color: var(--on-gold); background: var(--gold); font-weight: 700; box-shadow: 0 8px 24px rgba(0, 0, 0, .4);
    transform: translate(-50%, -20px); opacity: 0; pointer-events: none; transition: all .3s;
}
.toast.show { transform: translate(-50%, 0); opacity: 1; }

.modal {
    position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center;
    padding: 20px; background: rgba(0, 0, 0, .88); opacity: 0; visibility: hidden; transition: all .3s;
}
.modal.show { opacity: 1; visibility: visible; }
.modal-body { max-width: 100%; max-height: 100%; display: flex; }
.modal-body img { max-width: 92vw; max-height: 88vh; border-radius: 10px; }
.modal-body video { width: min(960px, 92vw); max-height: 86vh; border-radius: 10px; background: #000; }
.modal-close { position: absolute; right: 20px; top: 20px; width: 44px; height: 44px; font-size: 28px; color: #fff; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: rgba(255, 255, 255, .12); }
.modal-tip { max-width: 320px; padding: 28px 24px; text-align: center; border-radius: 16px; background: var(--bg-3); border: 1px solid var(--line); }
.modal-tip h3 { color: var(--gold); margin-bottom: 10px; }
.modal-tip p { color: var(--text); }

/* ---------- 滚动入场动画 ---------- */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
    .reveal { opacity: 1; transform: none; }
}

/* =========================================================
   响应式
   ========================================================= */
@media (max-width: 1400px) {
    .side-dl { display: none; }
}
@media (max-width: 1100px) {
    .feature-grid, .feature-grid.cols-3 { grid-template-columns: repeat(2, 1fr); }
    .contact-grid { grid-template-columns: 1fr 1fr; }
    .contact-info { grid-column: 1 / -1; }
    .nav a { padding: 8px 10px; }
}

/* 平板 / 手机：折叠菜单 */
@media (max-width: 960px) {
    :root { --header-h: 60px; }
    .gift-grid, .news-grid { grid-template-columns: 1fr 1fr; }
    .brand .ph-logo { width: 38px; height: 38px; font-size: 20px; }
    .header { background: rgba(11, 10, 18, .88); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
    .brand img { width: 38px; height: 38px; }
    .brand-text strong { font-size: 15px; }
    .menu-btn { display: inline-flex; }
    .header.open .ic-open { display: none; }
    .header.open .ic-close { display: block; }
    .nav {
        position: fixed; top: var(--header-h); left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
        padding: 8px 20px 20px; background: rgba(11, 10, 18, .97); border-bottom: 1px solid var(--line);
        transform: translateY(-12px); opacity: 0; visibility: hidden; transition: all .3s;
    }
    .header.open .nav { transform: none; opacity: 1; visibility: visible; }
    .nav a { padding: 14px 4px; border-bottom: 1px solid rgba(255, 255, 255, .06); font-size: 16px; }
    .nav a::after { display: none; }
    .nav .nav-mobile-dl { display: flex; margin-top: 16px; border: 0; color: var(--on-gold); }
    .shots-btn.prev { left: 0; }
    .shots-btn.next { right: 0; }
}

@media (max-width: 768px) {
    body { font-size: 14px; padding-bottom: 70px; }
    .gift-grid, .news-grid, .feature-grid.cols-3 { grid-template-columns: 1fr; }
    .header-actions .btn { display: none; }
    .section { padding: 64px 0; }
    .sec-title { margin-bottom: 34px; }
    .sec-title h2 { gap: 10px; }
    .sec-title h2::before, .sec-title h2::after { width: 30px; }

    .hero { padding-bottom: 70px; }
    .hero-logo { width: 84px; height: 84px; border-radius: 20px; }
    .hero-title { letter-spacing: 2px; }
    .hero-tag { font-size: 15px; }
    .hero-btns { flex-direction: column; width: 100%; max-width: 300px; gap: 12px; }
    .hero-btns .btn { width: 100%; height: 50px; font-size: 16px; }
    .hero-meta { gap: 6px 14px; font-size: 12px; }
    .hero-scroll { display: none; }

    .feature-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
    .feature-card { padding: 22px 14px; }
    .feature-ico { width: 52px; height: 52px; font-size: 24px; margin-bottom: 12px; }
    .feature-card h3 { font-size: 16px; }
    .feature-card p { font-size: 13px; }
    .welfare { padding: 22px 18px; }
    .welfare-list { grid-template-columns: 1fr; }

    .shots { --w: 210px; }
    .shots.landscape { --w: 86vw; }
    .shots-btn { width: 38px; height: 38px; font-size: 22px; }

    .gift-grid, .news-grid { grid-template-columns: 1fr; gap: 14px; }
    .news-body { padding: 18px 18px 16px; }
    .news-body h3 { font-size: 16px; }

    .dl-box { flex-direction: column; gap: 24px; min-height: 0; padding: 26px 20px; border-radius: 24px; }
    .dl-qr { flex: 0 0 auto; gap: 12px; font-size: 14px; }
    .dl-qr-code { width: 220px; height: 220px; padding: 6px; }
    .dl-qr-code canvas, .dl-qr-code img { width: 208px !important; height: 208px !important; }
    .dl-qr-center-label { font-size: 14px; padding: 5px 7px; }
    .dl-btns { width: 100%; gap: 14px; }
    .dl-btn { width: 100%; min-height: 72px; padding: 0 20px; gap: 16px; border-radius: 14px; font-size: 22px; }
    .dl-btn > svg { width: 28px; height: 28px; flex-basis: 28px; }
    .dl-btn span { font-size: 20px; }
    .dl-btn small { font-size: 13px; }
    .dl-tips { gap: 10px 20px; font-size: 13px; }

    .contact-grid { grid-template-columns: 1fr; }

    .footer { padding: 40px 0 20px; font-size: 12px; }
    .footer-top { flex-direction: column; gap: 24px; }
    .footer-links { gap: 40px; }

    .m-bar { display: flex; }
    .back-top { bottom: 84px; right: 14px; width: 40px; height: 40px; }
}

@media (max-width: 380px) {
    .feature-grid { grid-template-columns: 1fr; }
    .hero-points li { font-size: 12px; padding: 5px 12px; }
}


/* =========================================================
   tpl_b 新增部分
   ========================================================= */
html { scroll-padding-top: var(--header-h); }
.feature-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.feature-grid.cols-3 .feature-card { padding-left: 20px; padding-right: 20px; }

/* 没有 logo 图时，用游戏名第一个字做占位 */
.ph-logo {
    display: inline-flex; align-items: center; justify-content: center; flex: none;
    color: var(--gold); background: #1a0f14; border: 2px solid var(--gold-2);
    font: 900 24px/1 "STKaiti", "KaiTi", "Kaiti SC", serif;
}
.brand .ph-logo { width: 44px; height: 44px; border-radius: 10px; }
.hero-logo.ph-logo { font-size: 54px; }
.side-logo.ph-logo { display: flex; font-size: 30px; }
.footer-brand .ph-logo { width: 56px; height: 56px; border-radius: 12px; font-size: 28px; }
.m-bar .ph-logo { width: 44px; height: 44px; border-radius: 10px; font-size: 22px; }
.cta-logo { width: 56px; height: 56px; border-radius: 14px; }
.cta-logo.ph-logo { font-size: 28px; }

/* 内页（文章 / 列表）：顶栏一直是实色 */
.header.solid {
    background: rgba(11, 10, 18, .92);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 var(--line);
}
.inner { padding: calc(var(--header-h) + 36px) 0 40px; min-height: 72vh; }
.container.narrow { max-width: 860px; }
.crumb { margin-bottom: 18px; color: var(--muted); font-size: 13px; }
.crumb a:hover { color: var(--gold); }
.page-head { margin-bottom: 36px; text-align: center; }
.page-head h1 {
    font-family: "STKaiti", "KaiTi", "Kaiti SC", serif; font-size: clamp(28px, 4vw, 40px);
    font-weight: 900; letter-spacing: 4px; color: #fff;
}
.page-head p { margin-top: 10px; color: var(--muted); }

.art-title {
    font-family: "STKaiti", "KaiTi", "Kaiti SC", serif; font-size: clamp(26px, 4.4vw, 38px);
    font-weight: 900; line-height: 1.35; color: #fff;
}
.art-meta {
    display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 14px 0 28px; padding-bottom: 18px;
    border-bottom: 1px solid var(--line); color: var(--muted); font-size: 13.5px;
}
.art-meta a:hover { color: var(--gold); }

.prose { color: #e4ddcc; font-size: 16.5px; line-height: 1.95; overflow-wrap: break-word; }
.prose p { margin: 0 0 1.1em; }
.prose h2, .prose h3 { margin: 1.8em 0 .6em; color: var(--gold-light); line-height: 1.4; }
.prose h2 { font-size: 22px; }
.prose h3 { font-size: 19px; }
.prose img { display: block; margin: 1.2em auto; border-radius: 10px; }
.prose a { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }
.prose blockquote { margin: 1.2em 0; padding: .3em 0 .3em 16px; border-left: 3px solid var(--gold); color: var(--muted); }
.prose ul { margin: 0 0 1.1em; padding-left: 1.4em; list-style: disc; }
.prose ol { margin: 0 0 1.1em; padding-left: 1.4em; list-style: decimal; }
.prose table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; }
.prose td, .prose th { padding: 6px 10px; border: 1px solid var(--line); }

.dl-cta {
    display: flex; align-items: center; gap: 16px; margin: 36px 0; padding: 18px 22px; border-radius: var(--radius);
    background: linear-gradient(135deg, rgba(var(--gold-rgb), .1), rgba(226, 64, 47, .07)); border: 1px solid var(--line);
}
.dl-cta p { flex: 1; min-width: 0; color: #fff; font-weight: 700; line-height: 1.4; }
.dl-cta small { display: block; color: var(--muted); font-size: 13px; font-weight: 400; }

.pn { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 40px; }
.pn a { display: block; padding: 14px 18px; border-radius: 12px; background: var(--bg-3); border: 1px solid rgba(255, 255, 255, .06); transition: border-color .25s; }
.pn a:hover { border-color: var(--gold); }
.pn small { display: block; color: var(--muted); font-size: 12px; }
.pn b { color: #fff; font-weight: 700; line-height: 1.5; }
.pn .pn-next { text-align: right; grid-column: 2; }
.pn .pn-prev { grid-column: 1; }
.inner-sec-title { margin: 8px 0 22px; font-size: 22px; color: var(--gold); }

.pager { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 40px; }
.pager a, .pager span {
    display: inline-flex; align-items: center; justify-content: center; min-width: 42px; height: 42px; padding: 0 12px;
    border-radius: 10px; background: var(--bg-3); border: 1px solid rgba(255, 255, 255, .08); font-weight: 700;
}
.pager a:hover { border-color: var(--gold); color: var(--gold); }
.pager .on { background: var(--gold); color: var(--on-gold); border-color: var(--gold); }
.pager .gap { background: none; border: 0; }

@media (max-width: 768px) {
    .inner { padding-top: calc(var(--header-h) + 22px); }
    .prose { font-size: 16px; }
    .dl-cta { padding: 14px 16px; gap: 12px; }
    .pn { grid-template-columns: 1fr; }
    .pn .pn-next, .pn .pn-prev { grid-column: 1; text-align: left; }
}

/* 防止手机端根节点出现页面级横向滚动 */
html {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

/* 手机底部下载栏：固定宽度边界，防止按钮被挤出屏幕 */
@media (max-width: 768px) {
    .m-bar {
        width: 100%;
        max-width: 100%;
        left: 0;
        right: 0;
        display: flex;
        gap: 8px;
        padding-left: 12px;
        padding-right: 12px;
        padding-bottom: calc(10px + env(safe-area-inset-bottom));
    }

    .m-bar > img,
    .m-bar > .ph-logo {
        flex: 0 0 44px;
        width: 44px;
        height: 44px;
    }

    .m-bar .m-bar-text {
        flex: 1 1 0;
        min-width: 0;
        overflow: hidden;
    }

    .m-bar .m-bar-text strong,
    .m-bar .m-bar-text span {
        display: block;
        max-width: 100%;
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
    }

    .m-bar > a.btn {
        display: inline-flex;
        flex: 0 0 auto;
        align-items: center;
        justify-content: center;
        height: 38px;
        min-width: 88px;
        padding-left: 12px;
        padding-right: 12px;
        margin: 0;
        font-size: 13px;
        white-space: nowrap;
        position: relative;
        z-index: 1;
    }

    /* 页面内容不能撑宽视口；表格等组件仍可在自身区域内滚动 */
    img,
    video,
    iframe {
        max-width: 100%;
    }
}

/* MOBILE_CAROUSEL_OVERFLOW_FIX：防止截图轮播撑宽整个页面 */
@media (max-width: 768px) {
    .shots {
        width: 100%;
        max-width: 100%;
        overflow: hidden;
        contain: paint;
    }

    .shots.landscape {
        --w: calc(100vw - 64px);
        max-width: 100%;
        overflow: hidden;
    }

    .shots-track {
        width: 100%;
        max-width: 100%;
        overflow: hidden;
    }

    .shots .shot {
        max-width: 100%;
    }

    .shots .phone-frame {
        max-width: 100%;
    }

    .shots .shots-btn.prev {
        left: 0;
    }

    .shots .shots-btn.next {
        right: 0;
    }
}

/* =========================================================
   手机端修复：截图轮播撑宽页面
   ========================================================= */

@media screen and (max-width: 768px) {

    /* 限制页面横向滚动 */
    html,
    body {
        max-width: 100%;
        overflow-x: clip;
    }

    /* 轮播外层必须裁切超出屏幕的截图 */
    #screens,
    #screens > .container,
    #shots {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    #shots {
        position: relative;
        overflow: hidden;
        contain: layout paint;
    }

    /* 轮播轨道不能扩大页面宽度 */
    #shots .shots-track {
        position: absolute;
        inset: 0;
        width: 100%;
        max-width: 100%;
        overflow: hidden;
    }

    /* 竖屏截图 */
    #shots:not(.landscape) {
        --w: min(210px, calc(100vw - 80px));
    }

    /* 横屏截图：避免 86vw 再叠加两侧截图后超宽 */
    #shots.landscape {
        --w: calc(100vw - 64px);
        height: calc(var(--w) * 9 / 16 + 40px);
    }

    /* 截图和手机边框不能突破轮播容器 */
    #shots .shot {
        max-width: 100%;
    }

    #shots .phone-frame {
        max-width: 100%;
    }

    /* 左右按钮始终在轮播容器内部 */
    #shots .shots-btn.prev {
        left: 4px;
    }

    #shots .shots-btn.next {
        right: 4px;
    }

    /* 底部下载栏独立占据手机屏幕宽度 */
    .m-bar {
        left: 0;
        right: 0;
        width: 100%;
        max-width: 100%;
    }
}