:root {
  --ink: #211715;
  --paper: #fff8ea;
  --paper-strong: #fffdf6;
  --red: #b51f23;
  --red-deep: #731416;
  --gold: #f4c765;
  --jade: #2a8f84;
  --cyan: #6ec7c2;
  --muted: #75635b;
  --line: rgba(115, 20, 22, 0.16);
  --shadow: 0 18px 45px rgba(49, 13, 10, 0.18);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", Arial, sans-serif;
  background:
    linear-gradient(180deg, rgba(255, 248, 234, 0.95), rgba(255, 248, 234, 1)),
    repeating-linear-gradient(90deg, rgba(181, 31, 35, 0.04) 0 1px, transparent 1px 56px);
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }

.wrap,
.section-inner {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 14px clamp(18px, 4vw, 64px);
  color: #fff;
  transition: background 0.25s ease, box-shadow 0.25s ease, color 0.25s ease;
}
.site-header.is-scrolled {
  color: var(--ink);
  background: rgba(255, 253, 246, 0.94);
  box-shadow: 0 12px 30px rgba(55, 18, 12, 0.1);
  backdrop-filter: blur(14px);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 132px;
  font-weight: 800;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(244, 199, 101, 0.65);
  background: linear-gradient(135deg, #f8d678, #ad1f22 65%, #6d1214);
  color: #fff8dc;
  border-radius: 8px;
  box-shadow: 0 8px 22px rgba(115, 20, 22, 0.28);
}
.brand-text { white-space: nowrap; }
.site-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(16px, 2.7vw, 38px);
  font-size: 15px;
}
.site-nav a {
  position: relative;
  padding: 8px 0;
  opacity: 0.92;
  white-space: nowrap;
}
.site-nav a::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  content: "";
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.2s ease;
}
.site-nav a:hover::after,
.site-nav a.is-active::after { transform: scaleX(1); }

.header-cta,
.btn,
.portal-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 800;
  white-space: nowrap;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.header-cta,
.btn-primary,
.portal-button {
  color: #48100f;
  background: linear-gradient(180deg, #ffe4a3, #f0b949);
  box-shadow: 0 12px 28px rgba(117, 55, 0, 0.25);
}
.btn-ghost {
  color: #fff8ea;
  border-color: rgba(255, 248, 234, 0.58);
  background: rgba(45, 18, 15, 0.28);
}
.header-cta:hover,
.btn:hover,
.portal-button:hover { transform: translateY(-2px); }

.hero {
  position: relative;
  display: grid;
  align-items: center;
  min-height: 92svh;
  overflow: hidden;
  color: #fff;
}
.hero-bg,
.hero-bg img,
.hero-shade {
  position: absolute;
  inset: 0;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 34%;
}
.hero-shade {
  background:
    linear-gradient(90deg, rgba(31, 12, 9, 0.9) 0%, rgba(62, 14, 12, 0.66) 38%, rgba(32, 9, 8, 0.2) 76%),
    linear-gradient(180deg, rgba(16, 8, 7, 0.42), rgba(115, 20, 22, 0.42) 72%, rgba(255, 248, 234, 1) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  min-width: 0;
  width: min(760px, calc(100% - 36px));
  max-width: calc(100vw - 36px);
  margin-left: clamp(18px, 8vw, 110px);
  padding-top: 92px;
  padding-bottom: 64px;
}
.eyebrow,
.section-kicker {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 14px;
  font-weight: 800;
}
.hero h1 {
  margin: 0;
  color: #fff6d6;
  font-family: "STKaiti", "KaiTi", "Microsoft YaHei", serif;
  font-size: clamp(58px, 12vw, 132px);
  line-height: 0.95;
  text-shadow: 0 5px 0 rgba(117, 25, 19, 0.75), 0 18px 35px rgba(0, 0, 0, 0.28);
}
.hero-copy {
  width: min(620px, 100%);
  margin: 26px 0 0;
  color: rgba(255, 248, 234, 0.92);
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.7;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}
.hero-actions .btn { min-width: 148px; }
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(88px, 1fr));
  gap: 12px;
  width: min(520px, 100%);
  margin: 34px 0 0;
}
.hero-stats div {
  min-width: 0;
  min-height: 78px;
  padding: 14px;
  border: 1px solid rgba(255, 232, 173, 0.28);
  border-radius: 8px;
  background: rgba(32, 14, 12, 0.38);
  backdrop-filter: blur(10px);
}
.hero-stats dt {
  color: #ffe4a3;
  font-size: 26px;
  font-weight: 900;
}
.hero-stats dd {
  margin: 4px 0 0;
  color: rgba(255, 248, 234, 0.78);
  font-size: 13px;
}

.section {
  padding: clamp(64px, 8vw, 110px) clamp(18px, 4vw, 64px);
}
.split {
  display: grid;
  grid-template-columns: minmax(240px, 0.9fr) minmax(280px, 1.2fr);
  gap: clamp(28px, 6vw, 88px);
  align-items: start;
}
.section h2 {
  margin: 0;
  color: var(--red-deep);
  font-size: clamp(30px, 4vw, 54px);
  line-height: 1.15;
}
.intro { padding-top: clamp(44px, 6vw, 82px); }
.intro-copy,
.developer-copy,
.gameplay-copy p,
.download-copy p,
.category-desc {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.9;
}
.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 34px;
}
.section-more {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--red-deep);
  background: rgba(255, 253, 246, 0.82);
  font-weight: 800;
}

.features,
.news-section {
  background:
    linear-gradient(180deg, rgba(255, 253, 246, 0.82), rgba(255, 248, 234, 0.96)),
    linear-gradient(90deg, rgba(42, 143, 132, 0.1), transparent 42%, rgba(181, 31, 35, 0.1));
}
.feature-grid,
.article-card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
.feature-card,
.article-card {
  min-height: 230px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 246, 0.86);
  box-shadow: var(--shadow);
}
.feature-icon,
.article-card-tag {
  display: inline-grid;
  place-items: center;
  min-width: 48px;
  height: 36px;
  margin-bottom: 20px;
  padding: 0 12px;
  border: 1px solid rgba(244, 199, 101, 0.65);
  border-radius: 8px;
  color: #fff8ea;
  background: linear-gradient(135deg, var(--red), var(--jade));
  font-weight: 900;
}
.feature-card h3,
.article-card h3 {
  margin: 0 0 12px;
  color: var(--red-deep);
  font-size: 21px;
  line-height: 1.45;
}
.feature-card p,
.article-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}
.article-card-foot {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
  color: var(--red);
  font-size: 13px;
  font-weight: 800;
}
.article-card-foot time { color: var(--muted); font-weight: 400; }

.gameplay {
  color: #fff;
  background-position: center;
  background-size: cover;
  background-attachment: fixed;
}
.gameplay-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.92fr) minmax(300px, 0.8fr);
  gap: clamp(30px, 7vw, 96px);
  align-items: center;
}
.gameplay h2 { color: #fff6d6; }
.gameplay-copy p { margin-top: 22px; color: rgba(255, 248, 234, 0.78); }
.tab-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 32px;
}
.tab {
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid rgba(255, 248, 234, 0.22);
  border-radius: 8px;
  color: rgba(255, 248, 234, 0.78);
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
}
.tab.is-active,
.tab:hover {
  color: #48100f;
  background: var(--gold);
}
.phone-showcase {
  position: relative;
  display: grid;
  grid-template-columns: 46px minmax(0, 360px) 46px;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.phone-frame {
  margin: 0;
  overflow: hidden;
  border: 8px solid rgba(255, 248, 234, 0.85);
  border-radius: 8px;
  background: #1d1110;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.36);
}
.phone-frame img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
}
.phone-frame figcaption {
  padding: 14px 16px 16px;
  color: #fff6d6;
  font-weight: 800;
  text-align: center;
  background: rgba(32, 12, 10, 0.95);
}
.slide-btn {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 248, 234, 0.3);
  border-radius: 8px;
  color: #fff6d6;
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
}

.guide {
  background:
    linear-gradient(180deg, rgba(255, 248, 234, 0.98), rgba(255, 253, 246, 0.9)),
    linear-gradient(135deg, rgba(181, 31, 35, 0.08), transparent 45%, rgba(42, 143, 132, 0.12));
}
.gallery-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.8fr 0.8fr;
  gap: 18px;
}
.gallery-item {
  min-height: 410px;
  overflow: hidden;
  border-radius: 8px;
  background: #281514;
  box-shadow: var(--shadow);
}
.gallery-item.wide { min-height: 520px; }
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.gallery-item:hover img { transform: scale(1.035); }
.developer {
  background:
    linear-gradient(90deg, rgba(42, 143, 132, 0.12), rgba(244, 199, 101, 0.16)),
    var(--paper-strong);
}
.developer-panel {
  padding: clamp(28px, 5vw, 58px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 248, 234, 0.72);
  box-shadow: var(--shadow);
}
.developer-copy p + p { margin-top: 16px; }
.download {
  color: #fff;
  background: linear-gradient(135deg, #1f1715, #711618 55%, #2a615d);
}
.download h2 { color: #fff6d6; }
.download-layout {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(280px, 430px);
  gap: 34px;
  align-items: center;
}
.download-copy p { margin-top: 16px; color: rgba(255, 248, 234, 0.75); }
.download-actions { display: grid; gap: 16px; }
.download-box {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 20px;
  align-items: center;
  padding: 22px;
  border: 1px solid rgba(255, 232, 173, 0.24);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}
.download-qr,
.qr-placeholder {
  display: grid;
  place-items: center;
  width: 120px;
  height: 120px;
  border-radius: 8px;
}
.download-qr { object-fit: contain; background: #fff; }
.qr-placeholder {
  border: 1px solid rgba(255, 248, 234, 0.38);
  color: #ffe4a3;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.16) 12px, transparent 12px) 0 0 / 24px 24px,
    linear-gradient(rgba(255, 255, 255, 0.16) 12px, transparent 12px) 0 0 / 24px 24px,
    rgba(26, 14, 13, 0.7);
  font-weight: 900;
}
.download-title { margin: 0; color: #fff8ea; font-size: 20px; font-weight: 900; }
.download-note { margin: 6px 0 16px; color: rgba(255, 248, 234, 0.72); }
.service-box {
  padding: 20px 22px;
  border: 1px solid rgba(255, 232, 173, 0.24);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}
.service-title { margin: 0; color: rgba(255, 248, 234, 0.76); font-weight: 800; }
.service-number {
  margin: 8px 0 0;
  color: #ffe4a3;
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 900;
  word-break: break-all;
}
.service-note { margin: 10px 0 0; color: rgba(255, 248, 234, 0.72); }

.page-shell {
  padding-top: 104px;
  padding-bottom: 36px;
}
.content-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 18px;
  align-items: start;
}
.main-column,
.side-column { display: grid; gap: 18px; }
.portal-section,
.side-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 246, 0.92);
  box-shadow: var(--shadow);
}
.section-title-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.section-title-row h1,
.section-title-row h2 {
  margin: 0;
  padding-bottom: 10px;
  color: var(--red-deep);
  border-bottom: 2px solid var(--gold);
  font-size: 28px;
}
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 13px;
}
.breadcrumb a,
.article-list p a,
.article-title:hover { color: var(--red); }
.article-list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.article-list li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 8px;
  align-items: baseline;
  min-height: 36px;
  border-bottom: 1px dotted var(--line);
  line-height: 1.7;
}
.article-tag { color: var(--red); font-weight: 800; white-space: nowrap; }
.article-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.article-list time { color: var(--muted); font-size: 12px; white-space: nowrap; }
.article-list p {
  grid-column: 1 / -1;
  margin: 0 0 12px;
  color: var(--muted);
}
.article-page h1 {
  margin: 4px 0 12px;
  color: var(--red-deep);
  font-size: 30px;
  line-height: 1.35;
  text-align: center;
}
.article-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 13px;
}
.article-cover,
.recharge-banner {
  width: 100%;
  max-height: 420px;
  margin-bottom: 16px;
  border-radius: 8px;
  object-fit: cover;
}
.article-body {
  color: var(--ink);
  font-size: 16px;
  line-height: 2;
  overflow-wrap: anywhere;
}
.article-body p { margin: 0 0 14px; }
.article-body table,
.article-body iframe,
.article-body pre {
  max-width: 100%;
  overflow: auto;
}
.article-neighbors {
  display: grid;
  gap: 9px;
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.side-card h2 {
  margin: 0 0 14px;
  color: var(--red-deep);
  font-size: 20px;
}
.game-meta {
  display: grid;
  grid-template-columns: 58px 1fr auto;
  gap: 10px;
  align-items: center;
}
.game-icon {
  width: 58px;
  height: 58px;
  border-radius: 8px;
  object-fit: cover;
}
.game-meta p { margin: 4px 0; color: var(--muted); font-size: 13px; }
.subscribe { color: var(--red); font-size: 13px; white-space: nowrap; }
.game-summary { margin: 12px 0; color: var(--muted); line-height: 1.7; }
.qr-img {
  width: 180px;
  height: 180px;
  margin: 10px auto 8px;
  object-fit: contain;
}
.download-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}
.download-btn {
  display: grid;
  place-items: center;
  min-height: 34px;
  color: #fff;
  border-radius: 6px;
  font-weight: 700;
}
.download-blue { grid-column: 1 / -1; background: #16a5f8; }
.download-green { background: #67c23a; }
.download-teal { background: #49b6a7; }
.recommend-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.recommend-grid a { min-width: 0; text-align: center; }
.recommend-grid img {
  width: 64px;
  height: 64px;
  margin: 0 auto 6px;
  border-radius: 8px;
  object-fit: cover;
}
.recommend-grid span {
  display: block;
  overflow: hidden;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.recharge-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}
.empty-text { margin: 0; color: var(--muted); }

.site-footer {
  padding: 30px 18px 36px;
  color: rgba(255, 248, 234, 0.68);
  background: #17100f;
}
.site-footer p {
  width: min(1180px, 100%);
  margin: 8px auto 0;
  font-size: 13px;
  line-height: 1.7;
}
.site-footer a { color: rgba(255, 248, 234, 0.86); }
.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 80;
  padding: 12px 18px;
  border-radius: 8px;
  color: #48100f;
  background: #ffe4a3;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .site-header { min-height: 64px; }
  .site-nav { display: none; }
  .hero { min-height: 90svh; }
  .hero-bg img { object-position: 54% 32%; }
  .hero-shade {
    background:
      linear-gradient(180deg, rgba(31, 12, 9, 0.58) 0%, rgba(62, 14, 12, 0.58) 52%, rgba(31, 12, 9, 0.82) 100%),
      linear-gradient(180deg, transparent 72%, rgba(255, 248, 234, 1) 100%);
  }
  .hero-content {
    width: min(680px, calc(100% - 36px));
    margin: 0 auto;
    padding-top: 80px;
    align-self: end;
  }
  .split,
  .gameplay-layout,
  .download-layout,
  .content-layout { grid-template-columns: 1fr; }
  .feature-grid,
  .article-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .gallery-item.wide { grid-column: 1 / -1; }
  .gameplay { background-attachment: scroll; }
}
@media (max-width: 640px) {
  .site-header { padding: 12px 14px; }
  .brand-text { font-size: 15px; }
  .header-cta { display: none; }
  .hero { min-height: 88svh; }
  .hero-bg img { object-position: 50% 36%; }
  .hero-content {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding-right: 14px;
    padding-bottom: 38px;
    padding-left: 14px;
    overflow: hidden;
  }
  .hero h1 { font-size: clamp(52px, 18vw, 76px); }
  .hero-copy {
    width: min(100%, 330px);
    max-width: 100%;
    font-size: 17px;
    line-height: 1.65;
    overflow-wrap: anywhere;
  }
  .hero-stats {
    width: 100%;
    max-width: 100%;
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .hero-stats div {
    min-width: 0;
    min-height: 72px;
    padding: 10px;
    overflow: hidden;
  }
  .hero-stats dt { font-size: 21px; }
  .hero-stats dd { font-size: 12px; line-height: 1.25; }
  .section { padding-right: 14px; padding-left: 14px; }
  .section-head { display: block; }
  .section-more { margin-top: 14px; }
  .feature-grid,
  .article-card-grid,
  .gallery-grid { grid-template-columns: 1fr; }
  .phone-showcase { grid-template-columns: 38px minmax(0, 1fr) 38px; gap: 8px; }
  .slide-btn { width: 38px; height: 44px; }
  .gallery-item,
  .gallery-item.wide { min-height: 430px; }
  .download-box { grid-template-columns: 1fr; }
}
