/* ==========================================================================
   单战游戏 - 前台样式
   ========================================================================== */

:root {
    --bg: #070a12;
    --bg-2: #0b1120;
    --panel: #111a2b;
    --panel-2: #16223a;
    --line: rgba(255, 255, 255, .09);
    --text: #eaf0ff;
    --muted: #93a3c0;
    --accent: #7c5cff;
    --accent-2: #22d3ee;
    --radius: 18px;
    --radius-lg: 24px;
    --shadow: 0 24px 60px rgba(0, 0, 0, .45);
    --topbar-h: 68px;
}

html[data-theme="aurora"] {
    --accent: #7c5cff;
    --accent-2: #22d3ee;
}

html[data-theme="ember"] {
    --accent: #ff7a45;
    --accent-2: #ff2d55;
}

html[data-theme="ocean"] {
    --accent: #2f7bff;
    --accent-2: #22e0b8;
}

html[data-theme="violet"] {
    --accent: #b14dff;
    --accent-2: #ff6ad5;
}

html[data-theme="forest"] {
    --accent: #22c55e;
    --accent-2: #a3e635;
}

html[data-theme="sunset"] {
    --accent: #ff5c8a;
    --accent-2: #ffb547;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background:
        radial-gradient(1200px 600px at 12% -10%, rgba(124, 92, 255, .18), transparent 60%),
        radial-gradient(900px 500px at 88% 0%, rgba(34, 211, 238, .12), transparent 60%),
        var(--bg);
    color: var(--text);
    font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

h1, h2, h3, h4 {
    margin: 0;
    line-height: 1.25;
}

p {
    margin: 0;
}

ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.wrap {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 20px;
}

section[id] {
    scroll-margin-top: calc(var(--topbar-h) + 12px);
}

/* ---------------- 顶部导航 ---------------- */
.topbar {
    position: sticky;
    top: 0;
    z-index: 60;
    backdrop-filter: blur(14px);
    background: rgba(7, 10, 18, .72);
    border-bottom: 1px solid var(--line);
}

.topbar-inner {
    height: var(--topbar-h);
    display: flex;
    align-items: center;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    letter-spacing: .02em;
    flex-shrink: 0;
}

.brand-mark {
    width: 34px;
    height: 34px;
    border-radius: 11px;
    display: grid;
    place-items: center;
    font-weight: 800;
    font-size: 1rem;
    color: #07101f;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    box-shadow: 0 8px 20px rgba(124, 92, 255, .35);
}

.brand-logo {
    height: 34px;
    width: auto;
    border-radius: 10px;
}

.brand-name {
    font-size: 1.05rem;
}

.nav {
    display: flex;
    align-items: center;
    gap: 26px;
    margin-left: 12px;
    font-size: .94rem;
    color: var(--muted);
}

.nav a {
    position: relative;
    padding: 6px 0;
    transition: color .2s ease;
}

.nav a:hover {
    color: var(--text);
}

.nav a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .25s ease;
}

.nav a:hover::after {
    transform: scaleX(1);
}

.topbar-actions {
    margin-left: auto;
}

/* ---------------- 按钮 ---------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: .78rem 1.5rem;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: .95rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
    white-space: nowrap;
}

.btn svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    color: #06101c;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    box-shadow: 0 12px 30px rgba(124, 92, 255, .32);
}

.btn-ios {
    color: #0b1220;
    background: #ffffff;
    box-shadow: 0 12px 28px rgba(255, 255, 255, .16);
}

.btn-android {
    color: #04120d;
    background: linear-gradient(135deg, #4ade80, #22d3ee);
    box-shadow: 0 12px 28px rgba(34, 211, 238, .26);
}

.btn-ghost {
    color: var(--text);
    background: rgba(255, 255, 255, .06);
    border-color: var(--line);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, .12);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1rem;
}

.btn-sm {
    padding: .55rem 1.1rem;
    font-size: .85rem;
}

.btn-xs {
    padding: .45rem .85rem;
    font-size: .78rem;
    gap: 6px;
}

.btn-xs svg {
    width: 14px;
    height: 14px;
}

.btn-block {
    display: flex;
    width: 100%;
    margin-bottom: 10px;
}

/* ---------------- Hero ---------------- */
.hero {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    background: linear-gradient(140deg, #101a30, #070a12 70%);
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transform: scale(1.04);
    z-index: -3;
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;
    background:
        linear-gradient(180deg, rgba(7, 10, 18, .55) 0%, rgba(7, 10, 18, .72) 55%, var(--bg) 100%),
        linear-gradient(90deg, rgba(7, 10, 18, .85), rgba(7, 10, 18, .15) 70%);
}

.hero-glow {
    position: absolute;
    width: 620px;
    height: 620px;
    right: -160px;
    top: -220px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(124, 92, 255, .45), transparent 65%);
    filter: blur(30px);
    z-index: -1;
}

.hero-inner {
    padding: 96px 20px 110px;
    max-width: 1180px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: .4rem 1rem;
    border-radius: 999px;
    font-size: .8rem;
    color: var(--accent-2);
    background: rgba(34, 211, 238, .1);
    border: 1px solid rgba(34, 211, 238, .28);
    margin-bottom: 22px;
}

.hero-title {
    font-size: clamp(2.4rem, 5.4vw, 4.1rem);
    font-weight: 800;
    letter-spacing: -.02em;
    max-width: 16em;
    background: linear-gradient(120deg, #ffffff 30%, #b9c8ff 60%, var(--accent-2));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-title-sm {
    font-size: clamp(1.7rem, 3.6vw, 2.7rem);
    max-width: 22em;
}

.hero-sub {
    margin-top: 20px;
    max-width: 40em;
    color: #b9c6de;
    font-size: clamp(1rem, 1.4vw, 1.12rem);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 34px;
}

.hero-tips {
    margin-top: 20px;
    font-size: .84rem;
    color: var(--muted);
}

.crumbs {
    display: flex;
    gap: 8px;
    font-size: .82rem;
    color: var(--muted);
    margin-bottom: 18px;
}

.crumbs a:hover {
    color: var(--accent-2);
}

.hero-plain {
    background:
        radial-gradient(900px 420px at 20% -20%, rgba(124, 92, 255, .35), transparent 65%),
        radial-gradient(700px 400px at 85% 10%, rgba(34, 211, 238, .22), transparent 60%),
        linear-gradient(160deg, #0d1526, #070a12);
}

/* ---------------- 轮播 ---------------- */
.slider-section {
    margin-top: -62px;
    position: relative;
    z-index: 5;
    padding-bottom: 12px;
}

.slider {
    position: relative;
}

.slider-viewport {
    overflow: hidden;
    border-radius: var(--radius-lg);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    background: var(--panel);
}

.slider-track {
    display: flex;
    transition: transform .65s cubic-bezier(.22, 1, .36, 1);
    will-change: transform;
}

.slide {
    position: relative;
    flex: 0 0 100%;
    display: block;
    aspect-ratio: 21 / 8;
    min-height: 230px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
}

.slide-media {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transform: scale(1.02);
    transition: transform 6s ease;
}

.slide-plain::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    background-image:
        radial-gradient(circle at 78% 30%, rgba(255, 255, 255, .34), transparent 42%),
        radial-gradient(circle at 92% 6%, rgba(255, 255, 255, .2), transparent 32%),
        repeating-linear-gradient(115deg, rgba(255, 255, 255, .09) 0 2px, transparent 2px 26px);
}

.slide:hover .slide-media {
    transform: scale(1.07);
}

.slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(4, 7, 14, .88) 0%, rgba(4, 7, 14, .35) 55%, rgba(4, 7, 14, .72) 100%);
}

.slide-text {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 3;
    padding: 30px 34px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
}

.slide-text strong {
    font-size: clamp(1.1rem, 2.2vw, 1.75rem);
    font-weight: 700;
    text-shadow: 0 6px 20px rgba(0, 0, 0, .5);
}

.slide-text em {
    font-style: normal;
    color: #c3cee2;
    font-size: .9rem;
    max-width: 46em;
}

.chip {
    display: inline-flex;
    align-items: center;
    padding: .18rem .7rem;
    border-radius: 999px;
    font-size: .72rem;
    letter-spacing: .06em;
    color: #06101c;
    background: linear-gradient(135deg, var(--accent-2), #a5f3fc);
    font-weight: 700;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .22);
    background: rgba(7, 10, 18, .55);
    color: #fff;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    backdrop-filter: blur(8px);
    display: grid;
    place-items: center;
    transition: background .2s ease, transform .2s ease;
    z-index: 3;
}

.slider-btn:hover {
    background: rgba(124, 92, 255, .7);
}

.slider-btn.prev {
    left: 16px;
}

.slider-btn.next {
    right: 16px;
}

.slider-dots {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 14px;
    display: flex;
    justify-content: center;
    gap: 8px;
    z-index: 3;
}

.slider-dots button {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    border: none;
    padding: 0;
    background: rgba(255, 255, 255, .38);
    cursor: pointer;
    transition: width .25s ease, background .25s ease;
}

.slider-dots button.active {
    width: 24px;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

/* ---------------- 区块 ---------------- */
.section {
    padding: 76px 0;
}

.section-alt {
    background: linear-gradient(180deg, rgba(255, 255, 255, .025), rgba(255, 255, 255, 0));
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 32px;
}

.section-head h2 {
    font-size: clamp(1.45rem, 2.6vw, 2rem);
    font-weight: 800;
    letter-spacing: -.01em;
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-head h2::before {
    content: "";
    width: 5px;
    height: 26px;
    border-radius: 4px;
    background: linear-gradient(180deg, var(--accent), var(--accent-2));
}

.section-head p {
    margin-top: 8px;
    color: var(--muted);
    font-size: .92rem;
}

.empty {
    padding: 40px;
    text-align: center;
    color: var(--muted);
    border: 1px dashed var(--line);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, .02);
}

/* ---------------- 单游戏介绍 ---------------- */
.grid {
    display: grid;
    gap: 20px;
}

.game-intro {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.game-cover {
    position: relative;
    min-height: 360px;
    background-size: cover;
    background-position: center;
    background-color: var(--panel-2);
    display: grid;
    place-items: center;
}

.game-cover::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(7, 10, 18, .05), rgba(7, 10, 18, .5));
}

.game-cover-plain {
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
}

.game-cover-plain::after {
    background:
        radial-gradient(circle at 26% 18%, rgba(255, 255, 255, .3), transparent 52%),
        repeating-linear-gradient(115deg, rgba(255, 255, 255, .08) 0 2px, transparent 2px 26px);
}

.game-cover-char {
    position: relative;
    z-index: 1;
    font-size: 5rem;
    font-weight: 800;
    color: rgba(255, 255, 255, .9);
    text-shadow: 0 12px 34px rgba(0, 0, 0, .3);
}

.game-intro-body {
    padding: clamp(22px, 3vw, 36px);
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 0;
}

.game-head {
    display: flex;
    align-items: center;
    gap: 14px;
}

.game-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid var(--line);
    background: var(--panel-2);
}

.game-icon-plain {
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: #06101c;
    font-size: 1.5rem;
    font-weight: 800;
}

.game-head h3 {
    font-size: 1.4rem;
    font-weight: 800;
}

.game-head p {
    margin-top: 4px;
    font-size: .86rem;
    color: var(--accent-2);
}

.game-summary {
    color: #c4d0e6;
    line-height: 1.85;
    font-size: .94rem;
}

.game-meta {
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(112px, 1fr));
    gap: 10px;
}

.game-meta div {
    background: rgba(255, 255, 255, .03);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 10px 12px;
    min-width: 0;
}

.game-meta dt {
    font-size: .72rem;
    color: var(--muted);
}

.game-meta dd {
    margin: 2px 0 0;
    font-size: .9rem;
    font-weight: 600;
    word-break: break-word;
}

.game-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: auto;
    padding-top: 6px;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 16px;
    margin-top: 22px;
}

.feature-card {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 22px;
    transition: transform .2s ease, border-color .2s ease;
}

.feature-card:hover {
    transform: translateY(-3px);
    border-color: rgba(124, 92, 255, .4);
}

.feature-no {
    font-size: 1.3rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.feature-card h4 {
    margin: 8px 0 6px;
    font-size: 1rem;
}

.feature-card p {
    color: var(--muted);
    font-size: .86rem;
    line-height: 1.7;
}

.shots-wrap {
    margin-top: 30px;
}

.shots-title {
    font-size: .98rem;
    margin-bottom: 12px;
}

.shots {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    padding-bottom: 10px;
    scroll-snap-type: x mandatory;
}

.shot {
    flex: 0 0 auto;
    width: 300px;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 14px;
    overflow: hidden;
    background: none;
    cursor: zoom-in;
    scroll-snap-align: start;
    transition: transform .2s ease, border-color .2s ease;
}

.shot:hover {
    transform: translateY(-3px);
    border-color: rgba(34, 211, 238, .45);
}

.shot img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
}

.game-content {
    margin-top: 30px;
}

/* ---------------- 公告 ---------------- */
.news-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.news-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 20px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 14px;
    transition: transform .2s ease, border-color .2s ease;
}

.news-item:hover {
    transform: translateX(4px);
    border-color: rgba(34, 211, 238, .4);
}

.news-item time {
    font-size: .8rem;
    color: var(--accent-2);
    font-variant-numeric: tabular-nums;
    flex-shrink: 0;
    width: 44px;
}

.news-title {
    flex: 1;
    font-weight: 600;
    font-size: .95rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.news-tag {
    padding: .15rem .6rem;
    border-radius: 999px;
    font-size: .72rem;
    color: var(--muted);
    border: 1px solid var(--line);
    flex-shrink: 0;
}

.link-btn {
    background: none;
    border: none;
    padding: 0;
    font-family: inherit;
    font-size: .84rem;
    color: var(--accent-2);
    cursor: pointer;
    flex-shrink: 0;
}

.link-btn:hover {
    text-decoration: underline;
}

/* ---------------- 攻略卡片 ---------------- */
.grid-articles {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

.article-card {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform .25s ease, border-color .25s ease;
}

.article-card:hover {
    transform: translateY(-4px);
    border-color: rgba(34, 211, 238, .4);
}

.article-thumb {
    aspect-ratio: 16 / 9;
    background-size: cover;
    background-position: center;
    background-color: var(--panel-2);
}

.article-thumb-plain {
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #1c2740, #0f1728);
}

.article-thumb-plain span {
    font-size: 2.2rem;
    font-weight: 800;
    color: rgba(255, 255, 255, .18);
}

.article-body {
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

.article-body h3 {
    font-size: 1rem;
    font-weight: 700;
}

.article-body p {
    font-size: .86rem;
    color: var(--muted);
}

.article-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px dashed var(--line);
}

.article-meta {
    font-size: .78rem;
    color: var(--muted);
}

/* ---------------- 客服 / 二维码 ---------------- */
.contact-section {
    padding-bottom: 96px;
}

.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) auto;
    gap: 46px;
    align-items: center;
    padding: 42px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--line);
    background:
        radial-gradient(600px 300px at 0% 0%, rgba(124, 92, 255, .18), transparent 60%),
        var(--panel);
}

.contact-text h2 {
    font-size: clamp(1.4rem, 2.4vw, 1.9rem);
    margin-bottom: 12px;
}

.contact-text p {
    color: var(--muted);
    font-size: .95rem;
}

.contact-note {
    margin-top: 8px;
    color: var(--accent-2) !important;
    font-size: .85rem !important;
}

.contact-qr {
    background: #ffffff;
    border-radius: 20px;
    padding: 16px 16px 10px;
    text-align: center;
    box-shadow: 0 18px 40px rgba(0, 0, 0, .35);
}

.contact-qr img {
    width: 176px;
    height: 176px;
    object-fit: contain;
    margin: 0 auto;
}

.contact-qr span {
    display: block;
    margin-top: 6px;
    font-size: .78rem;
    color: #55617a;
}

.qr-placeholder {
    width: 176px;
    height: 176px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: #eef2ff;
    color: #7a86a3;
    font-size: .8rem;
    line-height: 1.6;
    text-align: center;
}

/* ---------------- 二级域名正文 ---------------- */
.sub-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 34px;
    align-items: start;
}

.prose {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 38px clamp(20px, 3vw, 44px);
}

.prose h2 {
    font-size: 1.22rem;
    margin: 34px 0 14px;
    padding-left: 14px;
    border-left: 4px solid var(--accent-2);
    line-height: 1.4;
}

.prose h2:first-child {
    margin-top: 0;
}

.prose p {
    color: #c4d0e6;
    line-height: 1.95;
    margin-bottom: 14px;
    font-size: .96rem;
}

.prose a {
    color: var(--accent-2);
    text-decoration: underline;
}

.faq {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.faq-item {
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 14px 18px;
    background: rgba(255, 255, 255, .03);
}

.faq-item summary {
    cursor: pointer;
    font-weight: 600;
    font-size: .95rem;
    list-style: none;
    position: relative;
    padding-right: 24px;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: "+";
    position: absolute;
    right: 0;
    top: -2px;
    color: var(--accent-2);
    font-size: 1.1rem;
}

.faq-item[open] summary::after {
    content: "−";
}

.faq-item p {
    margin: 12px 0 0;
    color: var(--muted);
    font-size: .9rem;
    line-height: 1.85;
}

.prose-cta {
    margin-top: 36px;
    padding: 24px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(124, 92, 255, .16), rgba(34, 211, 238, .1));
    border: 1px solid var(--line);
}

.prose-cta p {
    margin-bottom: 0;
}

.sub-side {
    display: flex;
    flex-direction: column;
    gap: 18px;
    position: sticky;
    top: calc(var(--topbar-h) + 20px);
}

.side-card {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 22px;
}

.side-card h3 {
    font-size: 1rem;
    margin-bottom: 12px;
}

.side-card p {
    font-size: .85rem;
    color: var(--muted);
    margin-bottom: 14px;
}

.side-qr {
    text-align: center;
}

.side-qr img {
    width: 160px;
    height: 160px;
    object-fit: contain;
    margin: 0 auto 12px;
    border-radius: 12px;
    background: #fff;
    padding: 6px;
}

.side-qr .qr-placeholder {
    margin: 0 auto 12px;
    width: 160px;
    height: 160px;
}

/* ---------------- 弹窗 ---------------- */
.modal {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: grid;
    place-items: start center;
    padding: 8vh 20px 40px;
    overflow-y: auto;
}

.modal[hidden] {
    display: none;
}

.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(3, 6, 12, .76);
    backdrop-filter: blur(6px);
}

.modal-panel {
    position: relative;
    width: min(760px, 100%);
    background: #0d1524;
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: clamp(24px, 4vw, 40px);
    box-shadow: var(--shadow);
    animation: modalIn .25s ease;
}

@keyframes modalIn {
    from {
        opacity: 0;
        transform: translateY(14px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-close {
    position: absolute;
    top: 10px;
    right: 16px;
    background: none;
    border: none;
    color: var(--muted);
    font-size: 1.7rem;
    line-height: 1;
    cursor: pointer;
}

.modal-close:hover {
    color: var(--text);
}

.lightbox-img {
    display: block;
    width: 100%;
    border-radius: 12px;
}

.detail-type {
    display: inline-block;
    font-size: .74rem;
    letter-spacing: .06em;
    color: var(--accent-2);
    border: 1px solid rgba(34, 211, 238, .3);
    border-radius: 999px;
    padding: .15rem .7rem;
    margin-bottom: 12px;
}

.detail-title {
    font-size: clamp(1.2rem, 2.6vw, 1.6rem);
    margin-bottom: 10px;
}

.detail-sub {
    color: var(--accent-2);
    font-size: .86rem;
    margin-bottom: 12px;
}

.detail-meta {
    color: var(--muted);
    font-size: .8rem;
    margin-bottom: 18px;
}

.detail-content {
    color: #c4d0e6;
    line-height: 1.9;
    font-size: .95rem;
}

.detail-content p {
    margin-bottom: 14px;
}

.detail-content h2,
.detail-content h3 {
    margin: 22px 0 12px;
    font-size: 1.1rem;
    color: var(--text);
}

.detail-content img {
    border-radius: 12px;
    margin: 12px 0;
}

.detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
}

/* ---------------- 页脚 ---------------- */
.site-footer {
    margin-top: auto;
    background: #05080f;
    border-top: 1px solid var(--line);
    padding-top: 54px;
}

.footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1fr);
    gap: 40px;
    padding-bottom: 40px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.05rem;
    margin-bottom: 14px;
}

.footer-about p {
    color: var(--muted);
    font-size: .88rem;
    line-height: 1.8;
    max-width: 36em;
}

.footer-col h4 {
    font-size: .92rem;
    margin-bottom: 14px;
    letter-spacing: .04em;
}

.footer-links li {
    margin-bottom: 9px;
}

.footer-links a,
.footer-note {
    color: var(--muted);
    font-size: .86rem;
    transition: color .2s ease;
}

.footer-links a:hover {
    color: var(--accent-2);
}

.footer-note {
    margin-bottom: 8px;
    line-height: 1.7;
}

.footer-bottom {
    border-top: 1px solid var(--line);
    padding: 18px 0 26px;
}

.footer-bottom-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 18px;
    font-size: .8rem;
    color: var(--muted);
}

.footer-bottom a {
    color: var(--muted);
}

.footer-bottom a:hover {
    color: var(--accent-2);
    text-decoration: underline;
}

.footer-extra {
    display: inline-flex;
    gap: 10px;
}

/* ---------------- 404 ---------------- */
.notfound {
    text-align: center;
    padding: 110px 20px;
}

.notfound h1 {
    font-size: clamp(4rem, 12vw, 7rem);
    font-weight: 800;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.notfound p {
    color: var(--muted);
    margin: 12px 0 26px;
}

/* ---------------- 响应式 ---------------- */
@media (max-width: 980px) {
    .game-intro {
        grid-template-columns: 1fr;
    }

    .game-cover {
        min-height: 240px;
    }

    .sub-layout {
        grid-template-columns: 1fr;
    }

    .sub-side {
        position: static;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        justify-items: start;
        gap: 28px;
        padding: 30px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .footer-about {
        grid-column: 1 / -1;
    }
}

@media (max-width: 760px) {
    .nav {
        display: none;
    }

    .hero-inner {
        padding: 68px 20px 88px;
    }

    .slider-section {
        margin-top: -48px;
    }

    .slide {
        aspect-ratio: 16 / 10;
    }

    .slide-text {
        padding: 20px;
    }

    .slider-btn {
        width: 38px;
        height: 38px;
        font-size: 1.2rem;
    }

    .section {
        padding: 54px 0;
    }

    .news-item {
        gap: 10px;
        padding: 12px 14px;
    }

    .news-tag {
        display: none;
    }

    .contact-qr {
        margin: 0 auto;
    }

    .prose {
        padding: 24px 20px;
    }
}

@media (max-width: 520px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .btn-lg {
        padding: .85rem 1.4rem;
        font-size: .92rem;
    }

    .hero-actions {
        gap: 10px;
    }

    .hero-actions .btn {
        flex: 1 1 46%;
    }
}
