﻿:root {
  --bg: #f5f6f8;
  --surface: rgba(255, 255, 255, 0.94);
  --surface-strong: #ffffff;
  --ink: #1f2430;
  --muted: #697385;
  --line: rgba(120, 132, 158, 0.14);
  --brand: #1487ff;
  --brand-deep: #0d61d7;
  --accent: #ffb84d;
  --shadow: 0 18px 50px rgba(37, 53, 84, 0.12);
  --radius-xl: 26px;
  --radius-lg: 20px;
  --radius-md: 16px;
  --container: 980px;
  --footer-height: 64px;
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
}

* { box-sizing: border-box; }
html, body { scroll-behavior: smooth; overscroll-behavior: none; }
body {
  margin: 0;
  color: var(--ink);
  background: #eee;
  font-size: 12px;
}

a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { cursor: pointer; }
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }

.container {
  width: min(100%, 600px);
  margin: 0 auto;
}

.page-shell {
  min-height: 100vh;
  padding-bottom: calc(var(--footer-height) + 8px);
  background: #fff;
  max-width: 600px;
  margin: 0 auto;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.25);
  opacity: 0;
  transition: opacity .15s ease;
}
.page-shell.is-ready {
  opacity: 1;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 0;
}

.hero__backdrop {
  display: none;
}

.hero__content {
  position: relative;
  z-index: 1;
  padding-top: 0;
}

.hero__banner-frame {
  position: relative;
  min-height: 170px;
  border-radius: 0;
  overflow: hidden;
  margin-bottom: 0;
  box-shadow: none;
  border: 0;
}

.hero__banner-image {
  width: 100%;
  min-height: 160px;
  object-fit: cover;
  filter: saturate(1.02);
}

.game-info {
  background-color: #f2f4f7;
  padding: 18px 14px 15px;
  width: 100%;
  box-sizing: border-box;
}

.game-info .game-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 15px;
}

.game-info .app-icon {
  width: 68px;
  height: 68px;
  border-radius: 14px;
  object-fit: cover;
  flex: none;
}

.game-info .game-details {
  min-height: 68px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  min-width: 0;
  flex: 1;
}

.game-info .game-info__title {
  margin: 0;
  color: #222426;
  font-size: 15.6px;
  font-weight: 700;
  line-height: 21px;
  letter-spacing: 0;
  word-break: break-word;
}

.game-info .hero__subtitle {
  display: none;
}

.game-info .player-count {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 3px;
  margin-top: 0;
}

.game-info .player-count .icon {
  width: 13px;
  height: 13px;
  margin-right: 5px;
}

.game-info .player-count .stat {
  font-size: 11.6px;
  color: #888;
  line-height: 1;
}

.game-info .player-count .count {
  color: #5992e8;
  font-size: 11.6px;
  line-height: 1;
}

.game-info .game-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  min-height: 16px;
}

.game-info .tag {
  display: inline-flex;
  height: 16px;
  padding: 1px 5px;
  justify-content: center;
  align-items: center;
  color: #616366;
  text-align: center;
  font-size: 9.8px;
  font-weight: 400;
  border-radius: 2px;
  background: #dfdfdf;
}

.game-info .download-section {
  margin-top: 10px;
  display: flex;
  justify-content: space-around;
  gap: 6px;
}

.game-info .download-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 15px;
  border-radius: 10px;
  transition: background-color 0.3s;
  flex: 1 1 0;
  background: #333;
  border: none;
  text-decoration: none;
  min-width: 0;
}

.game-info .download-btn:active {
  opacity: 0.85;
}

.game-info .download-btn .lf-icon {
  width: 18px;
  height: 18px;
  margin-right: 6px;
  flex: none;
}

.game-info .download-btn .label {
  color: #fff;
  text-align: center;
  font-size: 14px;
  line-height: 1;
  font-weight: 600;
  letter-spacing: 0;
  white-space: nowrap;
}

.game-info .download-btn.is-disabled {
  background: #ccc;
  opacity: 1;
}

.game-info .download-btn.is-disabled .label {
  color: #fff;
}

.game-info .download-btn.is-disabled .lf-icon {
  opacity: 1;
}

.hero__card,
.panel,
.modal__dialog,
.browser-tip__card {
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.ghost-btn {
  border: 1px solid rgba(255, 255, 255, 0.26);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  padding: 9px 15px;
  border-radius: 999px;
  backdrop-filter: blur(8px);
}

.hero__card {
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 8px;
  align-items: start;
  border-radius: 0;
  padding: 8px 12px 6px;
  background: #fff;
}

.game-icon {
  width: 70px;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 12px;
  border: 0;
  box-shadow: none;
}

.hero__meta h1,
.section-heading h2,
.modal__dialog h3 {
  margin: 0;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.hero__meta h1 {
  font-size: 20px;
  margin-bottom: 1px;
  font-weight: bold;
  color: #666;
  line-height: 1.15;
}

.hero__subtitle,
.section-heading p,
.hero__description,
.notice-item p,
.guide-card p,
.sticky-footer__desc {
  color: var(--muted);
}

.hero__subtitle {
  margin: 0 0 1px;
  font-size: 10px;
}

.hero__subtitle:empty {
  display: none;
}

.hero__meta-top {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
}

.game_details_top .share-link-btn {
  color: #5e97f6;
}

.share-link-btn {
  flex: none;
  min-width: auto;
  min-height: auto;
  border: 0;
  background: transparent;
  color: #5e97f6;
  border-radius: 999px;
  font-weight: 400;
  font-size: 12px;
  padding: 0;
}

.stats-row,
.cta-row,
.tag-list,
.download-grid,
.sticky-footer__actions,
.gallery-dots {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.stats-row--stack {
  display: grid;
  justify-items: start;
  align-items: start;
  gap: 2px;
  margin-top: 0;
}

.game_down_count {
  margin-top: 0;
  margin-bottom: 3px;
}

.player-counter {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.player-counter__icon {
  width: 16px;
  height: 16px;
  object-fit: contain;
}

.chip,
.tag-list span {
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
}

.chip--highlight {
  background: transparent;
  color: #ff7e00;
  font-weight: 700;
  padding: 0;
  font-size: 11px;
}

.tag-list span {
  background: #b8ccee;
  color: #fff;
  height: 16px;
  line-height: 12px;
  font-size: 10px;
  padding: 2px 5px;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
}

.hero__description {
  margin: 8px 0 10px;
  max-width: 720px;
  line-height: 1.56;
  font-size: 12px;
  display: none;
}

.hero-download-row {
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
  margin: 0;
  justify-content: start;
  align-items: center;
}

.hero-download-row--primary {
  display: none;
}

.game_try_play.fr,
.game_anzhuang.fr {
  float: none;
  clear: both;
  display: flex;
  justify-content: flex-start;
  gap: 5px;
}

.game_try_play.fr {
  margin-bottom: 0;
}

.game_anzhuang.fr {
  margin-bottom: 0;
}

.hero__actions-inline {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: nowrap;
  margin-top: 0;
}

.platform-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 30px;
  padding: 4px 7px;
  border-radius: 7px;
  font-weight: 600;
  border: 1px solid transparent;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  font-size: 12px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
}

.platform-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
}

.platform-btn img {
  margin-left: 0;
  width: 14px;
  height: 14px;
  flex: none;
}

.platform-btn span {
  flex: none;
  text-align: center;
  line-height: 1;
  font-size: 9px;
  white-space: nowrap;
}

.platform-btn--h5 {
  background: linear-gradient(135deg, #59d9ff, #28b8f2);
  color: #fff;
  min-width: 94px;
  font-size: 11px;
  font-weight: 700;
  box-shadow: 0 4px 10px rgba(40, 184, 242, 0.18);
}

.platform-btn--ios {
  background: linear-gradient(135deg, #ffffff, #f3f6fb);
  color: #2b3340;
  min-width: 70px;
  border-color: #d9e2ef;
  box-shadow: 0 1px 4px rgba(94, 114, 143, 0.08);
}

.platform-btn--android {
  background: linear-gradient(135deg, #ff9b4a, #f67b29);
  color: #fff;
  min-width: 76px;
  box-shadow: 0 3px 8px rgba(246, 123, 41, 0.16);
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: none;
  border-radius: 14px;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
  font-size: 14px;
}

.cta-btn:hover { transform: translateY(-1px); }
.cta-btn:disabled,
.is-disabled {
  opacity: 0.45;
  pointer-events: none;
}

.cta-btn--primary {
  background: linear-gradient(135deg, var(--brand), #4ca7ff);
  color: #fff;
  box-shadow: 0 10px 22px rgba(20, 135, 255, 0.24);
}

.cta-btn--secondary {
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
  border: 1px solid rgba(120, 132, 158, 0.14);
}

.cta-btn--dark {
  background: #333;
  color: #fff;
  border: 1px solid #333;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.cta-btn--ghost-light {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.main-content {
  display: grid;
  gap: 0;
  margin-top: 0;
  background: #fff;
}

.panel {
  border-radius: 0;
  padding: 0;
  box-shadow: none;
  border: 0;
  background: #fff;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  gap: 6px;
  align-items: center;
  margin-bottom: 6px;
  padding: 12px 14px 0;
}

.section-heading h2 {
  font-size: 18px;
  color: #222426;
  line-height: 28px;
  font-weight: 700;
}

.section-heading p {
  margin: 0;
  max-width: 0;
  line-height: 1.6;
  font-size: 12px;
  display: none;
}

.download-grid {
  display: flex;
  gap: 8px;
  padding: 0 14px 8px;
  overflow-x: auto;
}

.download-grid-wrap {
  padding: 0 14px 4px;
}

.download-row-label {
  color: #666;
  font-size: 12px;
  margin-bottom: 4px;
}

.download-actions-bar { display: none; }

.download-main-btn {
  position: relative;
  display: grid;
  gap: 6px;
  padding: 16px 16px 16px 56px;
  border-radius: 18px;
  min-height: 76px;
  background: linear-gradient(180deg, #ffffff, #f3f8ff);
  border: 1px solid rgba(20, 135, 255, 0.12);
  box-shadow: 0 10px 26px rgba(35, 62, 110, 0.08);
}

.download-main-btn::before {
  content: attr(data-icon);
  position: absolute;
  left: 16px;
  top: 16px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 18px;
  background: rgba(20, 135, 255, 0.1);
}

.download-main-btn strong {
  font-size: 16px;
  color: var(--ink);
}

.download-main-btn span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.download-main-btn.is-primary {
  background: linear-gradient(135deg, #1487ff, #56a8ff);
}

.download-main-btn.is-primary strong,
.download-main-btn.is-primary span {
  color: #fff;
}

.download-main-btn.is-primary::before {
  background: rgba(255, 255, 255, 0.18);
}

.download-card {
  min-width: 142px;
  border-radius: 8px;
  padding: 8px;
  background: #fff;
  border: 1px solid #e2e8f0;
  position: relative;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.download-card::after { display: none; }

.download-card strong {
  color: #222426;
  font-size: 12px;
}

.download-card p {
  color: #777;
  font-size: 11px;
}

.download-card strong,
.notice-item strong,
.guide-card h3,
.sticky-footer__title {
  display: block;
  margin-bottom: 6px;
}

.download-card p,
.notice-item p,
.guide-card p {
  margin: 0 0 10px;
  line-height: 1.6;
}

.download-card .cta-btn {
  min-height: 31px;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  box-shadow: none;
}

.cta-btn--h5-chip {
  background: #4cd0fa;
  color: #fff;
}

.cta-btn--download-chip {
  background: #f67b29;
  color: #fff;
}

.download-note {
  margin-top: 0;
  padding: 6px 14px 8px;
  border-radius: 0;
  background: transparent;
  color: #666;
  border: 0;
  font-size: 11px;
  margin-left: 14px;
  margin-right: 14px;
  margin-bottom: 4px;
}

.intro-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px;
  align-items: start;
  padding: 0 14px 4px;
}

.intro-copy {
  display: grid;
  gap: 2px;
}

.intro-copy {
  position: relative;
}

.intro-copy__body {
  max-height: none;
  overflow: visible;
  transition: max-height 0.3s ease;
}

.intro-copy__body.is-collapsed {
  max-height: 130px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, #000 60%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 60%, transparent 100%);
}

.intro-copy__body.is-expanded {
  max-height: none;
}

.intro-expand-btn {
  display: block;
  text-align: right;
  color: #3478f6;
  font-size: 13px;
  padding: 4px 0 0;
  cursor: pointer;
  text-decoration: none;
}

#introText {
  margin: 0;
  line-height: 21.84px;
  font-size: 13px;
  color: #222426;
  text-indent: 1.6em;
  white-space: pre-line;
}

.notice-list {
  display: grid;
  gap: 6px;
}

.text-link-btn {
  border: 0;
  background: transparent;
  color: #3f75c0;
  font-size: 13px;
  line-height: 21.84px;
  padding: 0;
}

.game_jianjie {
  padding-top: 6px;
}

.banner {
  padding-top: 2px;
}

.game_jianjie .section-heading p,
.official_activity .section-heading p,
.banner .section-heading p {
  display: none;
}

.notice-item,
.guide-card {
  padding: 10px 0;
  border-radius: 0;
  background: transparent;
  border: 0;
}

.notice-item { border-left: 0; }

.official_activity {
  background: #f2f4f7;
  padding: 20px 0 18px;
  box-sizing: border-box;
}

.official_activity .section-heading {
  padding: 0 14px 10px;
  margin-bottom: 0;
}

.notice-list--activities {
  padding: 0 14px;
  gap: 10px;
}

.notice-item--official {
  display: block;
  padding: 14px 14px 13px;
  background: #fff;
  border: 1px solid #e8eaee;
  border-radius: 10px;
  box-shadow: 0 1px 0 rgba(34, 36, 38, 0.02);
}

.notice-item--official::before {
  display: none;
}

.notice-item--official strong {
  position: relative;
  padding-left: 18px;
  margin-bottom: 7px;
}

.notice-item--official strong::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: linear-gradient(180deg, #ffbf66 0%, #ff8d22 100%);
}

.notice-item strong {
  color: #222426;
  font-size: 13px;
  line-height: 18px;
}

.notice-item p {
  color: #616366;
  font-size: 12px;
  line-height: 18px;
  margin: 0;
}

.intro-art img {
  width: 100%;
  border-radius: 0;
  min-height: 220px;
  object-fit: cover;
  display: none;
}

.gallery-shell {
  display: block;
  gap: 0;
  align-items: center;
  padding: 0 14px 1px;
  position: relative;
}

.gallery-track-wrap {
  overflow-x: auto;
  overflow-y: hidden;
  border-radius: 0;
  padding: 0;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  background: transparent;
  border: 0;
}

.gallery-track-wrap::-webkit-scrollbar {
  display: none;
}

.gallery-track {
  display: flex;
  gap: 10px;
  transition: none;
}

.gallery-slide {
  width: 46%;
  min-width: 46%;
  flex: 0 0 46%;
  padding: 0;
  box-sizing: border-box;
}

.gallery-slide img {
  width: 100%;
  border-radius: 8px;
}

.gallery-preview {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.85);
}
.gallery-preview img {
  max-width: 92%;
  max-height: 88vh;
  border-radius: 8px;
  object-fit: contain;
}
.gallery-preview__bar { display: none; }
.gallery-preview__nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  z-index: 31;
  transition: background .15s;
}
.gallery-preview__nav:hover {
  background: rgba(255, 255, 255, 0.3);
}
.gallery-preview__prev { left: 8px; }
.gallery-preview__next { right: 8px; }

.gallery-nav,
.gallery-dots button {
  border: none;
  background: rgba(255, 255, 255, 0.84);
  color: var(--brand-deep);
  box-shadow: 0 10px 28px rgba(84, 40, 15, 0.12);
}

.gallery-nav {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 20px;
}

.gallery-dots { justify-content: center; margin-top: 3px; display: none; }
.gallery-dots--inline { margin-top: 6px; display: none; }
.gallery-dots button {
  width: 5px;
  height: 5px;
  border-radius: 999px;
  padding: 0;
  opacity: 0.4;
  box-shadow: none;
  background: #d4d4d8;
}
.gallery-dots button.is-active { width: 14px; opacity: 1; background: #f67b29; }

.gallery-thumbs {
  display: none;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.gallery-thumb {
  padding: 4px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.84);
  border: 2px solid transparent;
  opacity: 0.72;
}

.gallery-thumb.is-active {
  border-color: rgba(20, 135, 255, 0.38);
  opacity: 1;
}

.gallery-thumb img {
  width: 100%;
  aspect-ratio: 10 / 17;
  object-fit: cover;
  border-radius: 10px;
}

.guide-notice-box {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 10px;
  align-items: center;
  padding: 11px;
  margin-bottom: 8px;
  border-radius: 8px;
  background: #f9f5f1;
  border: 0;
  margin-left: 14px;
  margin-right: 14px;
}

.guide-notice-box__icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #fae5d1;
}

.guide-notice-box__icon img {
  width: 22px;
  height: 22px;
}

.guide-notice-box strong {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  line-height: 20px;
  background: linear-gradient(147deg, #ffa13c 0%, #ff6b16 107.38%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.guide-notice-box p {
  margin: 0;
  color: #ff7e00;
  line-height: 16px;
  font-size: 12px;
}

.guide-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  padding: 0 14px 8px;
}

.guide-card {
  display: grid;
  grid-template-columns: 166px 1fr;
  gap: 8px;
  padding: 0;
  background: transparent;
  border: 0;
}

.guide-card:nth-child(even) {
  grid-template-columns: 1fr 166px;
}

.guide-card:nth-child(even) img {
  order: 2;
}

.guide-card:nth-child(even) .guide-card__body {
  order: 1;
}

.guide-card img {
  width: 156px;
  aspect-ratio: auto;
  object-fit: cover;
  border-radius: 0;
  margin-bottom: 0;
}

.guide-card h3 {
  color: #0f172a;
  font-size: 15px;
  line-height: 19.5px;
  margin-top: 0;
  margin-bottom: 4px;
}

.guide-card p {
  color: #475569;
  font-size: 13px;
  line-height: 16.5px;
}

.sticky-footer {
  position: fixed;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: min(calc(100% - 0px), 600px);
  min-height: 60px;
  border-radius: 0;
  background: #fff;
  color: var(--ink);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 8px 14px;
  box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.08);
  backdrop-filter: none;
  z-index: 12;
  border-top: 1px solid #eee;
}

.footer_fix {
  width: min(calc(100% - 0px), 600px);
}

.sticky-footer__meta {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 10px;
  align-items: center;
  min-width: 0;
  flex: 1;
}

.game_name {
  min-width: 0;
}

.sticky-footer__actions {
  display: flex;
  gap: 8px;
  width: auto;
  align-items: center;
  flex-shrink: 0;
}

.sticky-footer__actions .cta-btn {
  min-height: auto;
  height: 44px;
  min-width: 100px;
  padding: 0 28px;
  border-radius: 22px;
  background: linear-gradient(135deg, #ff9b4a, #f67b29);
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(246, 123, 41, 0.3);
  border: 0;
  line-height: 38px;
  white-space: nowrap;
  text-align: center;
}

.sticky-footer__actions #footerIosButton {
  display: none;
}

.sticky-footer__icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  object-fit: cover;
}

.sticky-footer__title {
  margin: 0 0 2px;
  font-size: 14px;
  font-weight: 700;
  line-height: 18px;
  color: #222;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sticky-footer__desc {
  margin: 0;
  line-height: 15px;
  font-size: 11px;
  color: #999;
  overflow: hidden;
  display: block;
  max-width: 100%;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  background: rgba(24, 14, 10, 0.48);
  padding: 16px;
}

.modal__dialog {
  position: relative;
  width: min(100%, 520px);
  border-radius: 22px;
  padding: 22px;
  max-height: calc(100vh - 32px);
  overflow: auto;
}

.register-view,
.login-view {
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: #fff;
}

.modal__close {
  position: absolute;
  right: 14px;
  top: 14px;
  border: none;
  background: transparent;
  padding: 0;
  font-size: 22px;
  line-height: 1;
  color: #999;
  cursor: pointer;
}

.game-header {
  padding: 1px;
  border-radius: 16px;
}

.game-title {
  padding: 8px 20px 0;
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  line-height: 28px;
  text-align: center;
  color: #0f172a;
  letter-spacing: -0.5px;
}

.step-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.step-tag {
  border: 1px solid #ff7e00;
  color: #ff7e00;
  padding: 2px 10px;
  border-radius: 9999px;
  font-size: 12px;
  line-height: 20px;
  font-weight: 400;
  white-space: nowrap;
}

.step-title {
  color: #0f172a;
  font-size: 16px;
  font-weight: 700;
  line-height: 24px;
  margin: 0;
}

.card {
  padding: 14px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  background: #f2f4f7;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.form-grid {
  display: grid;
  gap: 14px;
  margin-top: 0;
}

.auth-download-panel,
.auth-guide-panel {
  padding: 0;
  border: 0;
  background: transparent;
}

.auth-mini-downloads {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.mini-download-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 16px;
  min-height: 38px;
  border-radius: 8px;
  border: 0;
  background: #333;
  color: #fff;
  box-shadow: none;
}

.mini-download-btn__icon {
  width: 15px;
  height: 15px;
  flex: none;
}

.mini-download-btn strong {
  font-size: 12px;
  line-height: 20px;
}

.mini-download-btn span { display: none; }

.mini-guide-list {
  display: grid;
  gap: 16px;
}

.mini-guide-item {
  display: grid;
  grid-template-columns: 166px 1fr;
  gap: 11px;
  align-items: center;
  padding: 0;
  border-radius: 0;
  background: transparent;
  border: 0;
}

.mini-guide-item img {
  width: 166px;
  height: auto;
  object-fit: cover;
  border-radius: 0;
}

.mini-guide-item strong {
  display: block;
  margin-bottom: 8px;
  font-size: 16px;
  color: #0f172a;
}

.mini-guide-item p {
  margin: 0;
  color: #475569;
  line-height: 16.5px;
  font-size: 14px;
}

.form-grid label {
  display: grid;
  gap: 4px;
  font-size: 12px;
  font-weight: 400;
  color: #334155;
}

.form-grid input {
  min-height: 38px;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  background: #fff;
  padding: 8px 12px;
  color: #1e293b;
  font-size: 12px;
  line-height: 20px;
}

.mini-guide-notice {
  background-color: #f9f5f1;
  border-radius: 8px;
  padding: 13px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.mini-guide-notice__icon {
  background-color: #fae5d1;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
}

.mini-guide-notice__icon img {
  width: 20px;
  height: 20px;
}

.mini-guide-notice__title {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
  background: linear-gradient(147deg, #ffa13c 0%, #ff6b16 107.38%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.mini-guide-notice__desc {
  margin: 0;
  font-size: 12px;
  line-height: 16px;
  color: #ff7e00;
}

.register-download-card {
  padding: 18px;
  border-radius: 14px;
  border: 1px solid #dbe1ea;
  background: #f2f4f7;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), 0 1px 3px rgba(15, 23, 42, 0.05);
}

.register-guide-showcase,
.register-guide-steps-card {
  padding: 18px;
  border-radius: 16px;
  border: 1px solid #dbe1ea;
  background: #f2f4f7;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

.register-guide-showcase {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 170px;
  gap: 12px;
  align-items: center;
  min-height: 330px;
}

.register-guide-showcase__copy {
  align-self: center;
  padding-left: 14px;
}

.register-guide-showcase__copy h5 {
  margin: 0 0 10px;
  color: #0f172a;
  font-size: 15px;
  line-height: 20px;
  font-weight: 700;
}

.register-guide-showcase__copy p {
  margin: 0;
  color: #64748b;
  font-size: 12px;
  line-height: 18px;
}

.register-guide-showcase__visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.register-guide-showcase__visual img {
  width: 160px;
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

.register-guide-steps-card {
  margin-top: 12px;
}

.mini-guide-list--register {
  gap: 22px;
}

.mini-guide-list--register .mini-guide-item {
  grid-template-columns: minmax(0, 1fr) 180px;
  gap: 18px;
  align-items: center;
  min-height: 220px;
}

.mini-guide-list--register .mini-guide-item:nth-child(even) {
  grid-template-columns: 180px minmax(0, 1fr);
}

.mini-guide-list--register .mini-guide-item:nth-child(even) img {
  order: 1;
}

.mini-guide-list--register .mini-guide-item:nth-child(even) div {
  order: 2;
}

.mini-guide-list--register .mini-guide-item img {
  width: 180px;
  margin: 0 auto;
}

.mini-guide-list--register .mini-guide-item strong {
  margin-bottom: 10px;
  font-size: 15px;
  line-height: 22px;
  color: #0f172a;
}

.mini-guide-list--register .mini-guide-item p {
  color: #475569;
  font-size: 11px;
  line-height: 18px;
}

.register-guide-footer-note {
  margin: 18px 0 0;
  text-align: center;
  color: #475569;
  font-size: 12px;
  line-height: 18px;
}

.toast {
  position: fixed;
  left: 50%;
  top: 18px;
  transform: translateX(-50%);
  z-index: 25;
  min-width: 220px;
  max-width: calc(100% - 32px);
  padding: 12px 16px;
  border-radius: 999px;
  background: rgba(20, 33, 58, 0.92);
  color: #fff;
  text-align: center;
  font-size: 13px;
}

.browser-tip {
  position: fixed;
  inset: 0;
  z-index: 15;
  background: rgba(12, 9, 6, 0.72);
  display: grid;
  place-items: start center;
  padding: 32px 16px;
}

.browser-tip__card {
  width: min(100%, 420px);
  padding: 18px;
  border-radius: 18px;
}

.browser-tip__card p { margin: 0 0 14px; line-height: 1.8; }

.share-overlay {
  position: fixed;
  inset: 0;
  z-index: 16;
  background: rgba(12, 9, 6, 0.8);
  display: grid;
  place-items: start end;
  padding: 18px;
}

.share-overlay__content {
  max-width: 320px;
  color: #fff;
  text-align: right;
}

.share-overlay__arrow {
  font-size: 56px;
  line-height: 1;
  margin-bottom: 8px;
}

.share-overlay__text strong {
  display: block;
  font-size: 22px;
  margin-bottom: 8px;
}

.share-overlay__text p {
  margin: 0 0 14px;
  color: rgba(255,255,255,0.82);
  line-height: 1.7;
}

@media (max-width: 860px) {
  .section-heading {
    grid-template-columns: 1fr;
    display: grid;
  }

  .sticky-footer {
    display: flex;
    flex-direction: row;
    align-items: center;
    width: 100%;
    bottom: 0;
  }

  .sticky-footer__meta {
    grid-template-columns: 36px 1fr;
    gap: 8px;
  }

  .sticky-footer__icon {
    width: 36px;
    height: 36px;
  }

  .sticky-footer__title {
    font-size: 13px;
  }

  .sticky-footer__desc {
    font-size: 10px;
  }

  .sticky-footer__actions .cta-btn {
    height: 38px;
    min-width: 72px;
    padding: 0 16px;
    font-size: 14px;
  }

  .gallery-shell {
    grid-template-columns: 1fr;
  }

  .download-actions-bar,
  .auth-mini-downloads,
  .hero-download-row,
  .guide-notice-box {
    grid-template-columns: 1fr;
  }

  .gallery-nav {
    display: none;
  }
}

@media (max-width: 640px) {
  :root { --footer-height: 148px; }
  .hero__banner-frame,
  .hero__banner-image {
    min-height: 180px;
  }
  .modal__dialog { padding: 18px; }
  .sticky-footer__actions,
  .cta-row { width: auto; }
  .sticky-footer__desc { display: block; }
  .game-info .download-btn {
    height: 41px;
    min-height: 41px;
    padding: 0 9px;
  }
  .game-info .download-btn .lf-icon {
    width: 15px;
    height: 15px;
    margin-right: 5px;
  }
  .sticky-footer__actions .cta-btn {
    min-width: 126px;
    height: 42px;
    line-height: 42px;
    font-size: 15px;
  }
  .mini-guide-item,
  .guide-card,
  .guide-card:nth-child(even) {
    grid-template-columns: 1fr;
  }
  .mini-guide-item img {
    width: 100%;
    max-width: 166px;
  }
  .guide-card img {
    width: 100%;
    max-width: 166px;
  }
  .auth-mini-downloads {
    gap: 12px;
  }
  .register-download-card,
  .register-guide-showcase,
  .register-guide-steps-card {
    padding: 16px;
  }
  .register-guide-showcase {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .register-guide-showcase__copy {
    padding-left: 0;
  }
  .register-guide-showcase__visual img {
    width: 156px;
  }
  .mini-guide-list--register .mini-guide-item,
  .mini-guide-list--register .mini-guide-item:nth-child(even) {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .mini-guide-list--register .mini-guide-item img,
  .mini-guide-list--register .mini-guide-item:nth-child(even) img {
    order: 0;
    width: 156px;
  }
  .mini-guide-list--register .mini-guide-item div,
  .mini-guide-list--register .mini-guide-item:nth-child(even) div {
    order: 0;
  }
}

/* ── 语言切换 ── */
.lang-switch {
  position: fixed;
  top: 12px;
  right: 12px;
  z-index: 200;
}

.lang-switch__btn {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 5px 10px;
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  font-size: 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  cursor: pointer;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  line-height: 1;
}

.lang-switch__icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.lang-switch__menu {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  list-style: none;
  margin: 0;
  padding: 4px 0;
  background: rgba(0, 0, 0, 0.78);
  border-radius: 10px;
  min-width: 100%;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.lang-switch__menu li {
  padding: 7px 14px;
  color: #fff;
  font-size: 12px;
  cursor: pointer;
  white-space: nowrap;
}

.lang-switch__menu li:hover {
  background: rgba(255, 255, 255, 0.1);
}

.lang-switch__menu li.is-active {
  color: var(--brand);
}

.server-status-bar {
  width: 100%;
  height: 2px;
  background: #999;
  margin-top: 8px;
}
