/* Game 项目介绍页，独立于通用文章列表样式。 */
.game-page {
    --game-ink: #122e35;
    --game-muted: #52666e;
    --game-red: #bd4138;
    --game-border: #dce4e7;
    min-width: 0;
    color: var(--game-ink);
}
.game-page figure, .game-page dl, .game-page dd { margin: 0; }
.game-page h2 { font-size: 28px; line-height: 1.35; font-weight: 700; letter-spacing: -.6px; }
.game-page p { line-height: 1.8; }
.game-page a:focus-visible, .game-page summary:focus-visible,
.game-lightbox a:focus-visible, .game-lightbox button:focus-visible {
    outline: 3px solid #4b9ff8;
    outline-offset: 4px;
}
.game-section { margin-top: 48px; scroll-margin-top: 84px; }
.game-eyebrow { font-size: 11px; font-weight: 700; letter-spacing: 2px; color: #657f86; }
.game-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.65fr) minmax(200px, 1fr);
    align-items: center;
    gap: 26px 48px;
    padding: 44px 48px 0;
    background: #10262d;
    border: 1px solid #25424a;
    border-radius: 16px;
    color: #f6f4ea;
    overflow: hidden;
}
.game-hero .game-eyebrow { color: #b6c9c9; }
.game-eyebrow span { margin-left: 14px; font-size: 12px; letter-spacing: 1px; }
.game-hero h1 { margin: 17px 0; font-size: clamp(34px, 4vw, 50px); line-height: 1.2; font-weight: 750; letter-spacing: -1.5px; }
.game-hero-intro { max-width: 530px; font-size: 16px; color: #c4d3d5; }
.game-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.game-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 46px;
    padding: 11px 20px;
    border: 1px solid transparent;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;
    text-decoration: none;
}
.game-button-primary { color: #fff; background: var(--game-red); }
.game-button-primary:hover { color: #fff; background: #a93029; }
.game-button-ghost { color: #e0e8e8; border-color: #587076; background: transparent; }
.game-button-ghost:hover { color: #fff; background: #233e46; }
.game-button-outline { color: var(--game-ink); border-color: #a9bbbe; background: #fff; }
.game-button-outline:hover { color: var(--game-ink); background: #e9f1ef; border-color: #718e94; }
.game-page .game-hero-note { margin-top: 14px; font-size: 12px; color: #9db5b9; }
.game-hero-art { position: relative; text-align: center; }
.game-hero-art img { display: block; width: min(100%, 265px); height: auto; margin: 0 auto; }
.game-hero-art span { display: block; margin-top: 12px; color: #9db5b9; font-size: 9px; letter-spacing: 2.8px; }
.game-facts { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid #385158; padding: 24px 0; }
.game-facts > div { padding-left: 28px; border-left: 1px solid #385158; }
.game-facts > div:first-child { padding-left: 0; border-left: 0; }
.game-facts dt { font-size: 22px; line-height: 1.4; font-weight: 650; }
.game-facts dd { margin-top: 4px; color: #a9c0c3; font-size: 13px; }
.game-jump-nav { display: flex; flex-wrap: wrap; gap: 8px 28px; padding: 18px 4px; border-bottom: 1px solid var(--game-border); }
.game-jump-nav a { display: inline-flex; align-items: center; min-height: 36px; color: var(--game-muted); font-size: 14px; }
.game-jump-nav a:hover { color: var(--game-red); }
.game-section-heading { display: flex; justify-content: space-between; gap: 20px; align-items: end; margin-bottom: 18px; }
.game-section-heading h2, .game-download h2 { margin-top: 8px; }
.game-section-heading > p { max-width: 350px; color: var(--game-muted); font-size: 14px; }
.game-image-note { margin-bottom: 24px; color: var(--game-muted); font-size: 13px; }
.game-image-note i { margin-right: 8px; }
.game-map { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: center; gap: 32px; padding: 28px; margin-bottom: 24px; background: #fff; border: 1px solid var(--game-border); border-radius: 12px; }
.game-map-reverse .game-map-figure { order: 2; }
.game-map-reverse { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); }
.game-preview-link { position: relative; display: block; overflow: hidden; background: #0e2026; border-radius: 8px; cursor: zoom-in; }
.game-preview-link img { display: block; width: 100%; height: auto; }
.game-map-figure .game-preview-link img { aspect-ratio: 1 / 1; object-fit: contain; }
.game-image-zoom { position: absolute; right: 12px; bottom: 12px; padding: 7px 10px; border-radius: 5px; background: rgba(8, 22, 27, .9); color: #fff; font-size: 12px; pointer-events: none; }
.game-map-figure figcaption { padding-top: 12px; color: var(--game-muted); font-size: 12px; text-align: center; letter-spacing: .8px; }
.game-map-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: #687d83; font-size: 10px; font-weight: 600; letter-spacing: 1px; }
.game-version { flex-shrink: 0; padding: 3px 9px; border: 1px solid #dce6e5; border-radius: 5px; color: #3b645e; background: #eef5f1; font-size: 12px; letter-spacing: 0; }
.game-map-copy h3 { margin: 16px 0 8px; font-size: 28px; font-weight: 700; line-height: 1.35; letter-spacing: -.6px; }
.game-map-copy h3 span { display: inline-block; margin-left: 5px; font-size: 19px; font-weight: 500; color: var(--game-muted); }
.game-map-copy .game-map-subtitle { margin-bottom: 14px; color: #284b53; font-size: 16px; font-weight: 600; }
.game-map-copy > p { color: var(--game-muted); font-size: 14px; }
.game-feature-list { margin: 19px 0 20px; padding-top: 17px; border-top: 1px solid #e8eded; }
.game-feature-list li { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 12px; margin-top: 12px; font-size: 13px; line-height: 1.75; }
.game-feature-list li:first-child { margin-top: 0; }
.game-feature-list strong { font-weight: 600; color: #284b53; }
.game-feature-list span { color: var(--game-muted); }
.game-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.game-tags span { padding: 4px 9px; border-radius: 4px; background: #f0f4f5; color: #526b74; font-size: 11px; }
.game-detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.game-detail-card { padding: 20px; background: #fff; border: 1px solid var(--game-border); border-radius: 12px; }
.game-detail-card .game-preview-link img { aspect-ratio: 5 / 4; object-fit: contain; }
.game-detail-card h3 { margin: 19px 0 8px; font-size: 18px; font-weight: 600; line-height: 1.5; }
.game-detail-card p { color: var(--game-muted); font-size: 14px; }
.game-download { padding: 36px; background: #edf3f0; border: 1px solid #d3e1db; border-radius: 12px; }
.game-download-heading { display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.game-download-heading p:not(.game-eyebrow) { margin-top: 10px; color: var(--game-muted); font-size: 15px; }
.game-platform { flex-shrink: 0; font-size: 14px; color: #536b64; }
.game-platform i { margin-right: 7px; }
.game-file-size { opacity: .85; font-size: 12px; font-weight: 400; }
.game-bundle-note { margin-top: 14px; font-size: 12px; color: var(--game-muted); }
.game-install-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px; list-style: none; padding: 28px 0 0; margin: 28px 0 0; border-top: 1px solid #ceddd5; }
.game-step-number { display: block; color: #6b8880; font-size: 14px; letter-spacing: 1px; margin-bottom: 10px; }
.game-install-steps h3 { margin-bottom: 9px; font-size: 16px; font-weight: 600; line-height: 1.5; }
.game-install-steps p { color: var(--game-muted); font-size: 13px; }
.game-install-steps code { color: #284b53; overflow-wrap: anywhere; }
.game-page .game-install-note { margin-top: 24px; font-size: 12px; color: var(--game-muted); }
.game-about { padding: 36px; background: #fff; border: 1px solid var(--game-border); border-radius: 12px; }
.game-about-intro { max-width: 850px; margin-bottom: 24px; color: var(--game-muted); font-size: 15px; }
.game-faq details { border-top: 1px solid #e3e9eb; padding: 0 4px; }
.game-faq summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 0; cursor: pointer; list-style: none; font-size: 15px; font-weight: 600; }
.game-faq summary::-webkit-details-marker { display: none; }
.game-faq summary::after { content: '+'; font-size: 22px; font-weight: 400; color: #6b858e; }
.game-faq details[open] summary::after { content: '−'; }
.game-faq details > p { padding: 0 28px 20px 0; color: var(--game-muted); font-size: 14px; }
.game-feedback { border-top: 1px solid #e3e9eb; padding-top: 20px; font-size: 14px; color: var(--game-muted); }
.game-feedback a { margin-left: 8px; color: #a3332c; font-weight: 600; }
.game-preview-open { overflow: hidden; }
.game-lightbox { width: min(1200px, calc(100% - 32px)); max-width: none; max-height: 90vh; padding: 0; margin: auto; border: 1px solid #4b646b; border-radius: 10px; background: #10262d; color: #f5f6f2; }
.game-lightbox::backdrop { background: rgba(4, 12, 16, .85); }
.game-lightbox-toolbar { display: flex; gap: 16px; align-items: center; padding: 12px 16px; border-bottom: 1px solid #385158; }
.game-lightbox-toolbar p { flex: 1; font-size: 14px; line-height: 1.5; }
.game-lightbox-toolbar a { flex-shrink: 0; color: #c3dfdf; font-size: 13px; }
.game-lightbox-close { display: inline-flex; justify-content: center; align-items: center; width: 40px; height: 40px; flex-shrink: 0; border: 1px solid #587076; border-radius: 6px; background: transparent; color: #fff; cursor: pointer; }
.game-lightbox > img { display: block; width: 100%; max-height: calc(90vh - 90px); object-fit: contain; }
@media (max-width: 991px) {
    .game-hero { padding: 32px 30px 0; gap: 24px; }
    .game-hero-art img { width: 210px; }
    .game-map { gap: 24px; padding: 22px; }
    .game-map-copy h3 { font-size: 24px; }
    .game-map-copy h3 span { display: block; margin: 5px 0 0; font-size: 17px; }
    .game-feature-list li { display: block; }
    .game-feature-list strong { display: block; margin-bottom: 3px; }
    .game-section-heading { display: block; }
    .game-section-heading > p { margin-top: 10px; max-width: none; }
    .game-download, .game-about { padding: 28px; }
}
@media (max-width: 767px) {
    .game-page h2 { font-size: 24px; }
    .game-section { margin-top: 34px; scroll-margin-top: 76px; }
    .game-hero { grid-template-columns: minmax(0, 1fr) 90px; gap: 20px 10px; padding: 26px 22px 0; }
    .game-hero-content { display: contents; }
    .game-hero .game-eyebrow { grid-column: 1 / -1; }
    .game-hero h1 { grid-column: 1; grid-row: 2; margin: 0; font-size: 30px; }
    .game-hero-art { grid-column: 2; grid-row: 2; }
    .game-hero-art img { width: 90px; }
    .game-hero-art span { display: none; }
    .game-hero-intro, .game-hero .game-actions, .game-hero-note { grid-column: 1 / -1; }
    .game-hero-intro { font-size: 14px; }
    .game-hero .game-actions { margin-top: 0; gap: 10px; }
    .game-hero .game-button { flex: 1 1 auto; padding: 11px 12px; }
    .game-page .game-hero-note { margin-top: -8px; font-size: 11px; }
    .game-facts { padding: 20px 0; }
    .game-facts > div { padding-left: 12px; }
    .game-facts dt { font-size: 18px; }
    .game-facts dd { font-size: 11px; line-height: 1.6; max-width: 90px; }
    .game-jump-nav { gap: 4px; justify-content: space-between; padding: 12px 0; }
    .game-jump-nav a { font-size: 12px; padding: 4px; }
    .game-map, .game-map-reverse { grid-template-columns: minmax(0, 1fr); gap: 20px; padding: 18px; }
    .game-map-reverse .game-map-figure { order: 0; }
    .game-map-figure .game-preview-link img { aspect-ratio: auto; }
    .game-map-copy h3 span { display: inline-block; margin-left: 5px; }
    .game-map-copy h3 { margin-top: 12px; }
    .game-feature-list li { display: grid; grid-template-columns: 70px minmax(0, 1fr); gap: 10px; }
    .game-detail-grid { grid-template-columns: minmax(0, 1fr); gap: 18px; }
    .game-detail-card { padding: 18px; }
    .game-download, .game-about { padding: 24px 20px; }
    .game-download-heading { align-items: start; gap: 12px; }
    .game-platform { font-size: 0; }
    .game-platform i { font-size: 22px; margin: 4px 0 0; }
    .game-download .game-actions { flex-direction: column; align-items: stretch; }
    .game-download .game-button { padding: 12px 10px; }
    .game-install-steps { grid-template-columns: minmax(0, 1fr); gap: 24px; }
    .game-install-steps li { display: flex; gap: 16px; }
    .game-step-number { margin-top: 2px; }
    .game-about-intro { font-size: 14px; }
    .game-faq summary { font-size: 14px; }
    .game-lightbox-toolbar { flex-wrap: wrap; gap: 8px; padding: 10px; }
    .game-lightbox-toolbar p { flex-basis: calc(100% - 48px); font-size: 12px; }
    .game-lightbox-toolbar a { order: 3; font-size: 12px; }
    .game-lightbox > img { max-height: calc(90vh - 110px); }
}
@media (max-width: 359px) {
    .game-hero { grid-template-columns: minmax(0, 1fr) 74px; padding-right: 18px; padding-left: 18px; }
    .game-hero h1 { font-size: 28px; }
    .game-hero-art img { width: 74px; }
    .game-hero .game-button { flex-basis: 100%; }
    .game-map, .game-detail-card { padding: 14px; }
    .game-map-copy h3 span { display: block; margin-left: 0; }
    .game-facts dt { font-size: 16px; }
    .game-facts > div { padding-left: 8px; }
}
@media (prefers-reduced-motion: reduce) {
    html:has(.game-page) { scroll-behavior: auto; }
    .game-page a { transition: none; }
}

/* AI scene gallery: keep square artwork and reuse the existing preview dialog. */
.game-scene-card .game-preview-link img { aspect-ratio: 1 / 1; }
.game-scene-card .game-scene-note { margin-top: 10px; font-size: 12px; }
.game-scene-layout { display: inline-flex; align-items: center; min-height: 44px; margin-top: 8px; color: #a3332c; font-size: 13px; font-weight: 600; }
.game-map-copy h3 { scroll-margin-top: 90px; }
