:root {
  color-scheme: dark;
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", sans-serif;
  color: #f4ffff;
  background: #101c21;
  font-synthesis: none;
  letter-spacing: 0;
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 280px; }
button { font: inherit; cursor: pointer; }
[hidden] { display: none !important; }
button:focus-visible { outline: 3px solid #fff; outline-offset: 5px; }
::selection { color: #101c21; background: #c2ffe9; }
.palace-scene { position: fixed; inset: 0; overflow: hidden; pointer-events: none; }
.palace-scene picture { display: block; width: 100%; height: 100%; }
.palace-art {
  width: 100%; height: 100%; object-fit: cover; object-position: 42% center;
  animation: palace-drift 24s ease-in-out infinite alternate;
  animation-play-state: paused;
}
html[data-motion="running"] .palace-art { animation-play-state: running; }
.palace-scene::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent 28%, rgb(9 21 24 / 22%) 47%, rgb(9 21 24 / 79%) 100%), linear-gradient(0deg, rgb(9 21 24 / 85%), transparent 24%, transparent 88%, rgb(9 21 24 / 35%));
}
.page { position: relative; max-width: 1536px; min-height: 100svh; margin: auto; padding: 28px 48px 24px; display: flex; flex-direction: column; }
.masthead { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.identity { display: flex; align-items: center; gap: 10px; padding: 8px 14px 8px 9px; background: rgb(12 28 31 / 74%); border: 1px solid #bceada57; border-radius: 28px; color: #dbf7ef; font-size: 12px; }
.identity img { display: block; object-fit: contain; flex: 0 0 30px; }
.motion-toggle { display: grid; place-items: center; width: 44px; height: 44px; flex: 0 0 44px; color: #c1ffe8; border: 1px solid #bceada65; background: rgb(12 28 31 / 78%); border-radius: 50%; }
.motion-toggle:hover { background: #233c3a; color: white; }
main { flex: 1; display: flex; align-items: center; justify-content: flex-end; padding: 72px 0 100px; }
.gateway { width: min(650px, 55%); min-width: 0; text-align: right; }
.heading { margin: 0 0 32px auto; }
.chapter { margin: 0 0 15px; font-size: 12px; font-weight: 700; color: #b7f4dd; }
.chapter span { margin: 0 12px; opacity: .55; }
h1 { margin: 0; font-size: 52px; line-height: 1.3; font-weight: 900; text-shadow: 0 3px 24px #07161488; }
h1 span { color: #b2f5e3; }
.intro { margin: 16px 0 0; color: #e0eee9; font-size: 15px; line-height: 1.85; }
.links { display: grid; gap: 14px; }
.entry-row { display: grid; gap: 12px; }
.entry-row-primary { grid-template-columns: repeat(2, minmax(0, 1fr)); padding-right: 26px; }
.entry-row-secondary { grid-template-columns: repeat(3, minmax(0, 1fr)); padding-left: 18px; }
.entry-row button {
  position: relative; isolation: isolate; border: 0; padding: 18px 16px; min-height: 62px;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  background: transparent; color: #f0fcf7; text-align: left;
}
.entry-row button::before, .entry-row button::after { content: ""; position: absolute; z-index: -1; clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%); }
.entry-row button::before { inset: 0; background: #b5e9df85; }
.entry-row button::after { inset: 1px; background: rgb(15 31 35 / 91%); transition: background-color .18s; }
.entry-row button:hover::after { background: #29473f; }
.entry-row button:disabled { cursor: wait; opacity: .65; }
.entry-name { font-size: 16px; font-weight: 700; overflow-wrap: anywhere; }
.entry-name::before { content: ""; display: inline-block; width: 6px; height: 6px; margin: 0 10px 2px 1px; background: #acebd5; transform: rotate(45deg); }
.entry-mark { flex-shrink: 0; font-size: 12px; color: #a9e3ce; }
.entry-mark span { margin-left: 8px; }
.entry-row-secondary button { padding: 16px 13px; min-height: 58px; gap: 5px; }
.entry-row-secondary .entry-name { font-size: 13px; }
.entry-row-secondary .entry-name::before { margin-right: 7px; width: 5px; height: 5px; }
.entry-accent::before { background: #e8a3ad !important; }
.entry-accent .entry-name::before { background: #ed9aa6; }
.entry-accent .entry-mark { color: #ffc1c9; }
#nav-status, .script-notice { margin: 20px 0 0; padding: 12px 16px; color: #fff5f1; background: #3d2428; border-left: 3px solid #ffc1c9; text-align: left; font-size: 14px; line-height: 1.7; overflow-wrap: anywhere; }
footer { display: flex; justify-content: space-between; gap: 16px; border-top: 1px solid #d8f4ea38; padding-top: 16px; font-size: 11px; color: #d0e6dd; }
@keyframes palace-drift { from { transform: scale(1.006) translate(0, 0); } to { transform: scale(1.022) translate(-3px, 2px); } }
@media (min-width: 701px) and (max-width: 1120px) {
  .page { padding: 24px 28px; }
  .gateway { width: 59%; }
  h1 { font-size: 42px; }
  .entry-row-secondary { gap: 8px; padding-left: 8px; }
  .entry-row-secondary button { padding: 16px 10px; }
  .entry-row-secondary .entry-name::before { display: none; }
}
@media (max-width: 700px) {
  .page { padding: 18px 20px 22px; }
  .palace-scene { position: absolute; height: 610px; }
  .palace-art { object-position: 29% top; }
  .palace-scene::after { background: linear-gradient(0deg, #101c21 0%, rgb(16 28 33 / 86%) 16%, rgb(16 28 33 / 25%) 37%, transparent 58%, rgb(16 28 33 / 14%) 100%); }
  .identity { font-size: 11px; padding: 6px 11px 6px 7px; gap: 8px; }
  main { padding: 294px 0 30px; align-items: flex-start; }
  .gateway { width: 100%; text-align: right; }
  .heading { margin-bottom: 22px; }
  .chapter { margin-bottom: 8px; font-size: 11px; }
  h1 { font-size: 36px; }
  .intro { font-size: 13px; margin-top: 10px; }
  .links { gap: 9px; }
  .entry-row { grid-template-columns: minmax(0, 1fr); gap: 9px; }
  .entry-row-primary { padding-right: 14px; }
  .entry-row-secondary { padding-left: 14px; }
  .entry-row button, .entry-row-secondary button { min-height: 52px; padding: 14px 18px; }
  .entry-name, .entry-row-secondary .entry-name { font-size: 14px; }
  .entry-row-secondary .entry-name::before { width: 6px; height: 6px; margin-right: 10px; }
  footer { font-size: 10px; }
}
@media (max-width: 350px) {
  .page { padding-right: 16px; padding-left: 16px; }
  h1 { font-size: 31px; }
  main { padding-top: 282px; }
  .intro { max-width: 250px; margin-left: auto; }
}

.guide { position: relative; z-index: 3; box-sizing: border-box; width: calc(100% - 48px); max-width: 860px; margin: 24px auto 34px; padding: 30px 36px; border-radius: 12px; background: #f4fbfdf2; border: 1px solid #c4e3ea; box-shadow: 0 10px 30px -8px #0000004d; line-height: 1.85; font-size: 15px; color: #1f3540; text-align: left; }
.guide h2 { margin: 0 0 12px; font-size: 24px; line-height: 1.4; color: #10252e; }
.guide h3 { margin: 22px 0 8px; font-size: 18px; line-height: 1.4; color: #b8323b; }
.guide p { margin: 0 0 10px; }
.guide ul { margin: 0 0 10px; padding-left: 20px; }
.guide li { margin: 6px 0; }
.guide strong { color: #10252e; }
@media (max-width: 700px) { .guide { width: calc(100% - 24px); margin: 8px auto 24px; padding: 22px 18px; font-size: 14px; } .guide h2 { font-size: 20px; } .guide h3 { font-size: 16px; } }
