:root {
  color-scheme: dark;
  --ink: #171915;
  --ink-deep: #0e100d;
  --panel: #20231d;
  --paper: #e8e2d2;
  --muted: #a7a698;
  --line: #484a3e;
  --jade: #69b39c;
  --gold: #c9a85d;
  --cinnabar: #c65445;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { height: 100vh; height: 100dvh; min-height: 0; margin: 0; overflow: hidden; background: var(--ink); color: var(--paper); font-family: "SimSun", "宋体", serif; line-height: 1.65; display: grid; grid-template-rows: auto minmax(0,1fr) auto; }
button, input, select, textarea { font-family: inherit; }
i, em { font-style: normal; }
strong, b { font-weight: 400; }
a { color: inherit; text-decoration: none; }
.skip-link { position: fixed; top: 8px; left: 8px; z-index: 100; padding: 8px 12px; background: var(--paper); color: var(--ink); transform: translateY(-150%); }
.skip-link:focus { transform: none; }

.landing-header { min-height: 68px; padding: 0 max(22px, calc((100vw - 1380px) / 2)); border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 20px; background: rgba(14,16,13,.9); position: relative; z-index: 5; }
.studio-mark { display: inline-flex; align-items: center; gap: 11px; }
.studio-mark > span { width: 36px; height: 36px; border: 1px solid var(--cinnabar); display: grid; place-items: center; color: var(--cinnabar); font-weight: 400; }
.studio-mark strong { font-size: 14px; letter-spacing: .1em; }
.header-actions { display: flex; align-items: center; justify-content: flex-end; gap: 12px; }
.install-app { min-height: 30px; padding: 4px 10px; border: 1px solid var(--gold); background: transparent; color: var(--gold); cursor: pointer; font-size: 9px; }
.install-app:hover, .install-app:focus-visible { background: rgba(201,168,93,.1); outline: none; }
.install-app[hidden] { display: none; }
.record-state { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 11px; }
.record-state i { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 10px rgba(201,168,93,.5); }
.record-state.has-save i { background: var(--jade); box-shadow: 0 0 10px rgba(105,179,156,.55); }

.landing-main, .landing-footer { width: min(1380px, calc(100% - 44px)); min-height: 0; margin-inline: auto; }
.landing-main:focus { outline: none; }
.hero { height: 100%; min-height: 0; max-height: 780px; padding: 18px 0; display: grid; grid-template-columns: minmax(0,1.18fr) minmax(430px,.82fr); gap: 0; align-items: stretch; }
.hero-art { min-height: 0; position: relative; overflow: hidden; border: 1px solid var(--line); background: var(--ink-deep); }
.hero-art img { width: 100%; height: 100%; position: absolute; inset: 0; object-fit: cover; filter: saturate(.78) contrast(1.08); }
.art-wash { position: absolute; inset: 0; background: linear-gradient(90deg, transparent 48%, rgba(14,16,13,.28)), linear-gradient(0deg, rgba(14,16,13,.65), transparent 46%); }
.vertical-title { position: absolute; left: 22px; bottom: 22px; padding: 12px 8px; border: 1px solid rgba(232,226,210,.38); background: rgba(14,16,13,.65); writing-mode: vertical-rl; color: var(--paper); font-size: 12px; letter-spacing: .28em; backdrop-filter: blur(8px); }

.hero-copy { min-width: 0; padding: clamp(28px,4vw,60px); border: 1px solid var(--line); border-left: 0; display: flex; flex-direction: column; justify-content: center; background: var(--panel); }
.edition { margin: 0 0 18px; color: var(--jade); font: 400 10px/1.3 "SimSun", "宋体", serif; letter-spacing: .1em; }
.edition span { margin-right: 8px; padding: 4px 7px; border: 1px solid rgba(105,179,156,.5); color: var(--paper); letter-spacing: .14em; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin: 0; font-family: "SimSun", "宋体", serif; font-size: clamp(68px,8vw,118px); font-weight: 400; line-height: .82; letter-spacing: -.08em; }
.lead { margin: 24px 0 8px; color: var(--gold); font-size: 18px; }
.summary { max-width: 540px; margin-bottom: 22px; color: var(--muted); font-size: 13px; }
.entry-actions { display: grid; grid-template-columns: minmax(190px,.82fr) minmax(230px,1.18fr); gap: 8px; }
.enter-game { min-height: 64px; padding: 12px 16px; border: 1px solid var(--cinnabar); background: var(--cinnabar); display: flex; flex-direction: column; justify-content: center; color: #fff; transition: background 160ms ease, color 160ms ease; }
.enter-game span { font-size: 16px; font-weight: 400; }
.enter-game small { opacity: .75; font-size: 10px; }
.enter-game:hover, .enter-game:focus-visible { background: transparent; color: #e29a8f; outline: none; }
.save-summary { min-height: 76px; padding: 9px 12px 10px; border: 1px solid var(--line); display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 5px 12px; align-content: center; background: rgba(14,16,13,.28); }
.save-heading, .save-location { min-width: 0; }
.save-heading span, .save-heading strong, .save-location span, .save-location small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.save-heading span { color: var(--muted); font-size: 8px; letter-spacing: .04em; }
.save-heading strong { margin-top: 1px; color: var(--gold); font-size: 12px; }
.save-location { align-self: end; text-align: right; }
.save-location span { color: var(--paper); font-size: 10px; }
.save-location small { color: var(--muted); font-size: 8px; }
.save-progress { grid-column: 1 / -1; height: 3px; overflow: hidden; background: #11130f; }
.save-progress i { width: 0; height: 100%; display: block; background: var(--gold); transition: width 360ms ease; }
.save-summary.has-save { border-color: rgba(105,179,156,.48); }
.save-summary.has-save .save-heading strong { color: var(--jade); }
.save-summary.has-save .save-progress i { background: var(--jade); }

.landing-footer { min-height: 48px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 20px; color: var(--muted); font-size: 9px; }

@media (max-width: 980px) {
  body { height: auto; min-height: 100vh; min-height: 100dvh; overflow: auto; display: block; }
  .hero { height: auto; min-height: auto; max-height: none; grid-template-columns: 1fr; }
  .hero-art { min-height: 420px; }
  .hero-copy { border-left: 1px solid var(--line); border-top: 0; }
  h1 { font-size: 82px; }
}

@media (max-width: 620px) {
  .landing-header { min-height: 60px; padding-inline: 14px; }
  .header-actions { gap: 7px; }
  .install-app { min-height: 28px; padding-inline: 7px; font-size: 8px; }
  .record-state span { max-width: 112px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .landing-main, .landing-footer { width: calc(100% - 24px); }
  .hero { padding: 12px 0 18px; }
  .hero-art { min-height: 180px; max-height: 26vh; }
  .vertical-title { left: 12px; bottom: 12px; }
  .hero-copy { order: -1; padding: 20px 18px; }
  h1 { font-size: 58px; }
  .lead { margin: 18px 0 8px; font-size: 15px; }
  .summary { margin-bottom: 14px; font-size: 11px; }
  .entry-actions { grid-template-columns: 1fr; }
  .enter-game { min-height: 58px; }
  .save-summary { min-height: 72px; }
  .save-location { text-align: left; }
  .landing-footer { min-height: 52px; padding: 9px 0; align-items: flex-start; flex-direction: column; justify-content: center; gap: 2px; }
}

/* Keep the title page typographically identical to the game. */
body,
body button,
body input,
body select,
body textarea { font-family: "SimSun", serif !important; }
body h1,
body h2,
body h3,
body strong,
body b { font-weight: 400 !important; }
body i,
body em,
body cite,
body address { font-style: normal !important; }
.landing-footer span + span::before {
  content: "｜";
  margin: 0 7px;
  color: #8a959a;
}
@media (max-width: 620px) {
  .landing-footer span + span::before { content: ""; margin: 0; }
}

@media (max-width: 360px) {
  .hero-art { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .enter-game { transition: none; }
}

/* 与游戏内页面统一的 QQ 家园文字页风格。 */
:root {
  color-scheme: light;
  --ink: #222;
  --ink-deep: #edf5f8;
  --panel: #fff;
  --paper: #222;
  --muted: #66737b;
  --line: #9bb7c7;
  --jade: #246b94;
  --gold: #8b5500;
  --cinnabar: #b52d2d;
}

html { background: #edf4f7; }
body {
  width: min(720px, 100%);
  height: auto;
  min-height: 100vh;
  margin: 0 auto;
  overflow: auto;
  display: block;
  background: #fff;
  color: #222;
  font-family: "SimSun", "宋体", serif;
  font-size: 14px;
  line-height: 1.6;
  box-shadow: 0 0 18px rgba(40,76,96,.12);
}

.landing-header {
  min-height: 0;
  padding: 5px 9px;
  border: 0;
  border-bottom: 1px solid #7da0b6;
  background: #e8f1f5;
  color: #174f75;
}
.studio-mark { gap: 5px; }
.studio-mark > span {
  width: auto;
  height: auto;
  border: 0;
  color: #b52d2d;
  font-weight: 400;
}
.studio-mark strong { font-size: 15px; letter-spacing: 0; }
.header-actions { gap: 7px; }
.install-app {
  min-height: 0;
  padding: 0 5px;
  border: 0;
  border-right: 1px solid #777;
  background: transparent;
  color: #0645ad;
  text-decoration: underline;
  font-size: 12px;
}
.record-state { gap: 4px; color: #66737b; font-size: 11px; }
.record-state i { width: 5px; height: 5px; box-shadow: none; background: #5b8aa5; }

.landing-main, .landing-footer { width: 100%; margin: 0; }
.hero {
  height: auto;
  max-height: none;
  padding: 0;
  display: block;
}
.hero-art { display: none; }
.hero-copy {
  padding: 9px;
  border: 0;
  display: block;
  background: #fff;
}
.edition {
  margin: 0 -9px 7px;
  padding: 3px 7px;
  border-block: 1px solid #7da0b6;
  background: #e8f1f5;
  color: #174f75;
  font: 400 12px/1.5 "SimSun", "宋体", serif;
  letter-spacing: 0;
}
.edition span { margin-right: 6px; padding: 0; border: 0; color: #b52d2d; letter-spacing: 0; }
h1 {
  margin: 0;
  color: #b52d2d;
  font-family: "SimSun", "宋体", serif;
  font-size: 22px;
  font-weight: 400;
  line-height: 1.45;
  letter-spacing: 0;
}
.lead { margin: 2px 0 5px; color: #8b5500; font-size: 14px; }
.summary { max-width: none; margin: 0 0 7px; color: #444; font-size: 13px; }
.entry-actions { display: block; }
.enter-game {
  min-height: 0;
  padding: 3px 0;
  border: 0;
  display: inline;
  background: transparent;
  color: #0645ad;
  text-decoration: underline;
}
.enter-game span { font-size: 15px; font-weight: 400; }
.enter-game small { margin-left: 4px; color: #66737b; font-size: 11px; opacity: 1; }
.enter-game:hover, .enter-game:focus-visible { background: transparent; color: #551a8b; }
.save-summary {
  min-height: 0;
  margin-top: 6px;
  padding: 5px 7px;
  border: 1px dotted #8ba1ad;
  display: grid;
  background: #f8fbfc;
}
.save-heading span { font-size: 10px; }
.save-heading strong { color: #174f75; font-size: 13px; }
.save-location span { color: #333; font-size: 11px; }
.save-location small { font-size: 10px; }
.save-progress { height: 2px; background: #dce8ed; }
.save-progress i, .save-summary.has-save .save-progress i { background: #2d7199; }
.save-summary.has-save { border-color: #7da0b6; }
.save-summary.has-save .save-heading strong { color: #174f75; }
.landing-footer {
  min-height: 0;
  padding: 5px 9px;
  border-top: 1px solid #7da0b6;
  display: flex;
  background: #e8f1f5;
  color: #66737b;
  font-size: 10px;
}

@media (max-width: 620px) {
  .landing-header { min-height: 0; padding-inline: 7px; }
  .landing-main, .landing-footer { width: 100%; }
  .hero { padding: 0; }
  .hero-copy { padding: 7px; }
  .edition { margin-inline: -7px; }
  h1 { font-size: 20px; }
  .lead { margin: 2px 0 5px; font-size: 13px; }
  .summary { margin-bottom: 6px; font-size: 12px; }
  .entry-actions { display: block; }
  .save-summary { min-height: 0; }
  .save-location { text-align: right; }
  .landing-footer { min-height: 0; padding: 5px 7px; display: block; }
  .landing-footer span { display: block; }
}
