:root { color-scheme: dark; font-family: "Microsoft YaHei", "PingFang SC", system-ui, sans-serif; color: #f7f6f1; background: #111a1d; font-synthesis: none; }
* { box-sizing: border-box; letter-spacing: 0; }
body { margin: 0; min-width: 280px; }
button { font: inherit; }
.scene { position: fixed; inset: 0; overflow: hidden; pointer-events: none; z-index: -1; }
.scene picture { display: block; width: 100%; height: 100%; }
.scene-art { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 62% center; animation: cathedral-breath 20s ease-in-out infinite alternate; }
.scene::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgb(9 17 20 / 75%), rgb(9 17 20 / 36%) 43%, transparent 72%), linear-gradient(0deg, rgb(6 12 15 / 50%), transparent 40%); }
@keyframes cathedral-breath { from { transform: scale(1.005) translateX(0); } to { transform: scale(1.022) translateX(-0.15%); } }
html[data-motion="paused"] .scene-art, html[data-motion="hidden"] .scene-art { animation-play-state: paused; }
.masthead { height: 72px; border-bottom: 1px solid rgb(180 215 214 / 16%); background: rgb(13 23 26 / 79%); }
.masthead-inner { height: 100%; max-width: 1280px; margin: auto; padding: 0 40px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.identity { display: flex; align-items: center; gap: 12px; min-width: 0; }
.identity img { display: block; object-fit: contain; border-radius: 50%; flex: none; }
.identity-copy { display: flex; align-items: baseline; gap: 16px; }
.wordmark { font-family: Georgia, "Times New Roman", serif; font-size: 20px; }
.disclosure { font-size: 12px; color: #c0cecd; }
.motion-toggle { width: 44px; height: 44px; flex: none; display: grid; place-items: center; padding: 0; color: #d5e8e4; background: transparent; border: 1px solid #526563; border-radius: 4px; cursor: pointer; }
.motion-toggle:hover { background: #263938; }
.play-icon { display: none; }
.motion-toggle[aria-pressed="true"] .pause-icon { display: none; }
.motion-toggle[aria-pressed="true"] .play-icon { display: block; }
button:focus-visible { outline: 2px solid #a7fff0; outline-offset: 5px; }
main { max-width: 1280px; margin: auto; min-height: calc(100svh - 72px); padding: 72px 40px 100px; display: flex; align-items: center; }
.sanctum { width: 580px; max-width: 54%; position: relative; }
.theme-name { display: flex; align-items: center; gap: 12px; font-size: 14px; color: #d2cbc3; margin: 0 0 22px; }
.seal { width: 9px; height: 9px; transform: rotate(45deg); border: 1px solid #e3a5aa; background: #903540; }
.rule { width: 64px; height: 1px; background: #9b8b82; }
h1 { font-family: "Songti SC", SimSun, serif; font-size: 48px; line-height: 1.25; font-weight: 600; margin: 0 0 20px; text-shadow: 0 2px 16px #061013; }
h1::after { content: ""; display: inline-block; vertical-align: middle; width: 9px; height: 9px; background: #c5485a; margin-left: 18px; transform: rotate(45deg); }
.verse { font-family: "Songti SC", SimSun, serif; font-size: 18px; line-height: 1.7; margin: 0 0 8px; color: #eee7e2; text-shadow: 0 2px 6px #000; }
.intro { margin: 0; font-size: 13px; line-height: 1.7; color: #c4d2d1; text-shadow: 0 2px 6px #000; }
.links { margin-top: 32px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.links button { --glass: #8ce6dd; position: relative; display: flex; align-items: center; gap: 12px; min-width: 0; min-height: 68px; padding: 14px 16px; text-align: left; color: #f6f5f1; background: rgb(13 27 31 / 87%); border: 1px solid rgb(167 207 202 / 24%); border-left: 3px solid var(--glass); border-radius: 5px; cursor: pointer; transition: background-color 160ms ease, border-color 160ms ease; font-size: 16px; }
.links button:nth-child(2) { --glass: #e9b3ba; }
.links button:nth-child(3) { --glass: #74c8bc; }
.links button:nth-child(4) { --glass: #c6cce8; }
.links button:nth-child(5) { --glass: #e1687d; grid-column: 1 / -1; }
.links button:hover { border-color: var(--glass); background: #1e3539; }
.links button:disabled { cursor: wait; opacity: 0.65; }
.key { flex: none; display: grid; place-items: center; width: 28px; height: 30px; font-family: Georgia, serif; font-size: 13px; color: var(--glass); border: 1px solid rgb(175 204 201 / 30%); border-radius: 12px 12px 2px 2px; }
.arrow { width: 20px; height: 20px; flex: none; margin-left: auto; fill: none; stroke: var(--glass); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
#nav-status, .script-notice { margin: 16px 0 0; padding: 12px 14px; color: #ffe7e7; background: #382228; border-left: 3px solid #ec9ea9; font-size: 14px; line-height: 1.6; overflow-wrap: anywhere; }
[hidden] { display: none !important; }
@media (min-width: 641px) and (max-width: 1000px) {
  .masthead-inner { padding-inline: 28px; }
  main { padding-inline: 28px; }
  .sanctum { max-width: 60%; }
  h1 { font-size: 40px; }
  .links { gap: 10px; }
  .links button { padding: 12px 10px; gap: 8px; font-size: 14px; }
  .key { width: 24px; }
}
@media (max-width: 640px) {
  .masthead { height: 64px; }
  .masthead-inner { padding: 0 20px; }
  .identity { gap: 10px; }
  .identity img { width: 32px; height: 32px; }
  .identity-copy { flex-direction: column; gap: 2px; }
  .wordmark { font-size: 17px; }
  .disclosure { font-size: 11px; }
  .scene { top: 64px; }
  .scene-art { object-position: 73% top; }
  .scene::after { background: linear-gradient(0deg, rgb(9 17 20 / 80%), rgb(9 17 20 / 58%) 43%, transparent 79%); }
  main { min-height: calc(100svh - 64px); padding: 252px 20px 32px; display: block; }
  .sanctum { width: 100%; max-width: none; }
  .theme-name { font-size: 12px; margin-bottom: 12px; }
  h1 { font-size: 34px; margin-bottom: 12px; }
  h1::after { width: 7px; height: 7px; margin-left: 12px; }
  .verse { font-size: 15px; margin-bottom: 6px; }
  .intro { font-size: 12px; }
  .links { grid-template-columns: minmax(0, 1fr); gap: 9px; margin-top: 22px; }
  .links button { min-height: 56px; padding: 10px 14px; font-size: 15px; background: rgb(13 27 31 / 87%); }
  .links button:nth-child(5) { grid-column: auto; }
  .key { height: 28px; }
}
@media (max-width: 350px) {
  .masthead-inner { padding-inline: 16px; }
  main { padding-inline: 16px; padding-top: 228px; }
  h1 { font-size: 30px; }
  .verse { font-size: 14px; }
}
