:root {
  color-scheme: dark;
  --paper: #0b2e6a;
  --ink: #f3f2e8;
  --muted: #c9d7e5;
  --line: rgb(235 241 240 / 30%);
  --focus: #fff0b0;
  --dialog-bg: #102946;
  --input-bg: #0c223d;
  --input-line: #73879d;
  --button-bg: #ebefe9;
  --button-ink: #123250;
  --error: #ffd8c3;
  --glass: rgb(15 37 61 / 83%);
  --glass-edge: rgb(224 238 251 / 29%);
  --glass-sheen: rgb(238 246 255 / 9%);
  --field: rgb(8 28 48 / 76%);
  --edge: clamp(24px, 3.05vw, 44px);
  font-family: "Microsoft YaHei UI", "PingFang SC", sans-serif;
  background: var(--paper);
  color: var(--ink);
}
:root:not(:has(#blue:target)) {
  color-scheme: light;
  --paper: #f5f4ec;
  --ink: #273f32;
  --muted: #58685a;
  --line: rgb(39 63 50 / 28%);
  --focus: #165b36;
  --dialog-bg: #faf9f2;
  --input-bg: #f1f1e8;
  --input-line: #8b9c8c;
  --button-bg: #304e39;
  --button-ink: #f8f8ef;
  --error: #9a4428;
  --glass: rgb(247 249 239 / 79%);
  --glass-edge: rgb(255 255 251 / 82%);
  --glass-sheen: rgb(255 255 255 / 35%);
  --field: rgb(255 255 248 / 67%);
}
* { box-sizing: border-box; }
html, body { margin: 0; width: 100%; height: 100%; overflow: hidden; }
[hidden] { display: none !important; }
a, button { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
button:disabled { cursor: default; }
:is(a, button, input):focus-visible { outline: 2px solid var(--focus); outline-offset: 5px; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.25; stroke-linecap: round; stroke-linejoin: round; }
.variant-target { position: absolute; top: 0; left: 0; width: 0; height: 0; pointer-events: none; }
.world { height: 100%; height: 100dvh; width: 100%; position: relative; isolation: isolate; overflow: hidden; background: var(--paper); }
#water, .poster, .still, .edge-shade { position: absolute; inset: 0; width: 100%; height: 100%; }
#water { opacity: 0; pointer-events: none; }
.still { object-fit: cover; }
.still-blue { background-position: center; background-size: cover; background-repeat: no-repeat; }
body:has(#blue:target) .still-blue { background-image: url('./poster.jpg'); }
.world.ready #water { opacity: 1; }
.world.ready .poster { visibility: hidden; }
.poster-lines, .signature-lines { display: none; }
body:not(:has(#blue:target)) :is(.poster-blue, .signature-blue) { display: none; }
body:not(:has(#blue:target)) :is(.poster-lines, .signature-lines) { display: block; }
.edge-shade { pointer-events: none; background: linear-gradient(180deg, rgb(2 17 52 / 23%), transparent 20% 68%, rgb(1 15 43 / 40%)); }
body:not(:has(#blue:target)) .edge-shade { background: linear-gradient(180deg, rgb(245 244 236 / 36%), transparent 17% 76%, rgb(245 244 236 / 60%)); }
.masthead { position: absolute; inset: max(24px, env(safe-area-inset-top)) var(--edge) auto; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.wordmark { display: inline-flex; align-items: baseline; min-height: 44px; font-family: "Palatino Linotype", Georgia, serif; font-size: 30px; letter-spacing: -1.6px; line-height: 44px; }
.brand-dot { margin-left: 6px; font-size: 24px; opacity: .65; }
.quiet-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; min-width: 44px; padding: 10px 6px; border: 0; border-radius: 0; background: none; font-size: 12px; letter-spacing: 1px; line-height: 1; white-space: nowrap; }
.login { min-width: 86px; justify-content: space-between; border-bottom: 1px solid var(--line); padding: 10px 1px 10px 8px; }
.login svg { width: 17px; height: 17px; margin-left: 13px; }
.signature { position: absolute; left: var(--edge); bottom: 128px; pointer-events: none; }
.eyebrow { font-family: Arial, sans-serif; font-size: 10px; letter-spacing: 2.4px; font-weight: 400; margin: 0 0 20px; color: var(--muted); }
.signature h1 { margin: 0 0 20px; font-family: "Microsoft YaHei UI", "PingFang SC", sans-serif; font-size: clamp(50px, 5.5vw, 78px); font-weight: 300; letter-spacing: 6px; line-height: 1.12; }
.subline { font-size: 12px; font-weight: 400; letter-spacing: 2px; line-height: 1.7; margin: 0; color: var(--muted); }
.signature-blue { text-shadow: 0 2px 24px rgb(3 17 49 / 28%); }
.signature-lines { left: auto; right: var(--edge); bottom: 134px; text-align: right; }
.signature-lines h1 { font-family: "Songti SC", "STSong", "SimSun", serif; font-size: clamp(38px, 4.2vw, 59px); font-weight: 400; letter-spacing: 7px; margin-bottom: 18px; }
.signature-lines .eyebrow { font-family: Georgia, serif; font-size: 10px; letter-spacing: 1.9px; margin-bottom: 21px; }
.bottom-edge { position: absolute; inset: auto var(--edge) max(24px, env(safe-area-inset-bottom)); display: flex; justify-content: flex-end; align-items: center; min-height: 44px; gap: 14px; width: max-content; left: auto; }
#motion { color: var(--muted); }
#motion svg { width: 17px; height: 17px; }
.art-status, .fallback-note { position: absolute; right: var(--edge); top: 89px; max-width: min(290px, calc(100vw - 48px)); color: var(--muted); font-size: 11px; line-height: 1.8; margin: 0; }
.fallback-note { top: 79px; }
@media (hover: hover) and (pointer: fine) {
  .quiet-button:hover { color: var(--ink); }
  .login:hover { border-color: var(--ink); }
}
/* Local glass only: the full-screen backdrop never blurs or distorts the water. */
dialog { position: fixed; inset: 88px var(--edge) auto auto; width: 408px; max-width: calc(100vw - 32px); max-height: calc(100dvh - 104px); overflow: auto; overscroll-behavior: contain; scrollbar-width: thin; margin: 0; padding: 28px 30px 24px; background: var(--dialog-bg); color: var(--ink); border: 1px solid var(--glass-edge); border-radius: 24px; box-shadow: inset 0 1px 0 var(--glass-sheen), inset 0 -1px 0 rgb(0 10 20 / 5%), 0 20px 60px rgb(5 24 32 / 14%), 0 2px 6px rgb(5 24 32 / 5%); opacity: 0; transform: translateY(-6px) scale(.985); transform-origin: top right; transition: opacity 140ms cubic-bezier(.22,1,.36,1), transform 140ms cubic-bezier(.22,1,.36,1), display 140ms allow-discrete, overlay 140ms allow-discrete; }
dialog[open] { opacity: 1; transform: none; transition-duration: 220ms; }
@starting-style { dialog[open] { opacity: 0; transform: translateY(-6px) scale(.985); } }
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  dialog { background: var(--dialog-material, linear-gradient(135deg, var(--glass-sheen), transparent 48%), var(--glass)); -webkit-backdrop-filter: blur(18px) saturate(1.08); backdrop-filter: blur(18px) saturate(1.08); }
}
dialog::backdrop { background: rgb(3 20 35 / 16%); }
body:not(:has(#blue:target)) dialog {
  --muted: #415243;
  --error: #88391f;
  --input-line: #6f8372;
  --glass-edge: rgb(255 255 251 / 58%);
  --glass-sheen: rgb(255 255 255 / 18%);
  --field: rgb(255 255 248 / 88%);
  /* Keep the 79% shell; a quiet center shields text while the edges stay lighter.
     Static paint only, not a refractive effect or an additional blur surface. */
  --dialog-material: radial-gradient(ellipse 60% 78% at 50% 44%, rgb(247 249 239 / 36%) 0 42%, transparent 88%), linear-gradient(135deg, var(--glass-sheen), transparent 48%), var(--glass);
}
body:not(:has(#blue:target)) dialog::backdrop { background: rgb(35 55 43 / 8%); }
/* A thin refracting rim, a quiet readable interior. This enhancement is enabled
   only after the optical map exists; the previous frosted material is fallback. */
body:not(:has(#blue:target)) dialog[data-glass-mode="refractive"] {
  --field: rgb(253 254 245 / 55%);
  --input-line: rgb(66 92 72 / 38%);
  --glass-edge: rgb(255 255 251 / 74%);
  background: radial-gradient(ellipse 62% 85% at 50% 43%, rgb(247 250 239 / 35%) 0 36%, transparent 90%), linear-gradient(135deg, rgb(255 255 249 / 23%), transparent 38% 72%, rgb(241 248 234 / 12%)), rgb(244 248 236 / 24%);
  -webkit-backdrop-filter: var(--glass-refraction) blur(1.1px) saturate(1.06);
  backdrop-filter: var(--glass-refraction) blur(1.1px) saturate(1.06);
  box-shadow: inset 0 1px 0 rgb(255 255 253 / 85%), inset 1px 0 0 rgb(255 255 250 / 34%), inset -1px -1px 0 rgb(38 69 47 / 12%), 0 20px 60px rgb(27 47 29 / 12%), 0 3px 8px rgb(27 47 29 / 5%);
}
body:not(:has(#blue:target)) dialog[data-glass-mode="refractive"] #login-form input { box-shadow: inset 0 1px 1px rgb(255 255 252 / 55%); }
body:has(dialog[open]) .signature { opacity: 0; }
body:has(dialog[open]) .bottom-edge, body:has(dialog[open]) .wordmark { opacity: .4; }
body:has(dialog[open]) #login { opacity: 0; }
.dialog-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: -10px -12px 16px 0; }
.dialog-kicker { color: var(--muted); font-family: Arial, sans-serif; font-size: 10px; letter-spacing: 1.8px; }
.dialog-kicker span { margin: 0 6px; opacity: .55; }
#close-access { border-radius: 50%; letter-spacing: 0; }
#close-access svg { width: 19px; height: 19px; stroke-width: 1.5; }
dialog h2 { font-family: "Songti SC", "SimSun", serif; font-size: 28px; font-weight: 400; letter-spacing: 1px; line-height: 1.5; margin: 0 0 9px; overflow-wrap: anywhere; text-wrap: balance; }
#access-detail { color: var(--muted); font-size: 13px; line-height: 1.85; margin: 0 0 24px; }
.access-state { color: var(--muted); font-size: 12px; line-height: 1.8; padding-left: 11px; border-left: 2px solid var(--input-line); margin: 0 0 19px; overflow-wrap: anywhere; }
.access-state.error { color: var(--error); border-left-color: var(--error); }
.access-state:empty { display: none; }
#login-form label { display: block; font-size: 12px; color: var(--ink); margin: 15px 0 8px; letter-spacing: .5px; }
#login-form input { width: 100%; min-width: 0; min-height: 48px; padding: 12px 14px; background: var(--field); border: 1px solid var(--input-line); border-radius: 11px; color: var(--ink); font: inherit; font-size: 16px; line-height: 1.4; }
#login-form input::placeholder { color: var(--muted); opacity: .85; font-size: 13px; }
#login-form input:disabled { opacity: 1; -webkit-text-fill-color: var(--muted); cursor: not-allowed; }
.password-row { display: flex; position: relative; }
.password-row input { padding-right: 64px !important; }
.password-row button { position: absolute; right: 3px; top: 2px; bottom: 2px; min-height: 44px; min-width: 54px; background: none; border: 0; border-radius: 9px; padding: 0 11px; color: var(--muted); font-size: 12px; white-space: nowrap; }
dialog :is(button,a,input):focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.auth-link { width: 100%; display: flex; align-items: center; justify-content: space-between; min-height: 48px; padding: 13px 16px; border: 1px solid transparent; border-radius: 11px; background: var(--button-bg); color: var(--button-ink); font-size: 13px; letter-spacing: 1px; line-height: 1.5; }
.auth-link:disabled { opacity: .8; }
#submit-login { margin-top: 25px; justify-content: center; }
#access-detail { overflow-wrap: anywhere; }
#login-form label:first-child { margin-top: 0; }
#login-form input { min-height: 52px; border-radius: 13px; }
#submit-login { min-height: 52px; border-radius: 13px; }
.dialog-heading { margin-bottom: 22px; }
.dialog-footer { margin-top: 24px; }
.data-boundary { margin-top: 4px; }
html:is([data-entry-phase="leaving"],[data-entry-phase="waiting"]) :is(.masthead,.signature,.bottom-edge) { opacity: 0; pointer-events: none; transition: opacity 220ms ease; }
.entry-status { position: absolute; z-index: 2147483600; inset: auto 24px max(36px, env(safe-area-inset-bottom)); text-align: center; font-size: 13px; line-height: 1.8; color: var(--ink); }
.entry-status p { margin: 0 0 8px; }
.entry-status a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; border-bottom: 1px solid var(--line); }
dialog[data-preview="true"] #submit-login { background: var(--field); color: var(--muted); border-color: var(--line); opacity: 1; letter-spacing: .5px; }
dialog[data-preview="true"] .access-state { margin-bottom: 12px; }
.public-link { display: flex; align-items: center; justify-content: space-between; min-height: 44px; padding: 15px 0; margin-top: 8px; border-bottom: 1px solid var(--line); font-size: 12px; }
.signout { padding: 10px 0; background: none; border: 0; color: var(--muted); min-height: 44px; font-size: 11px; }
.dialog-footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 18px; border-top: 1px solid var(--line); padding-top: 8px; }
.dialog-footnote { color: var(--muted); font-size: 11px; line-height: 1.8; }
#dialog-motion { color: var(--muted); letter-spacing: 0; font-size: 11px; gap: 6px; margin-right: -6px; }
#dialog-motion svg { width: 18px; height: 18px; }
.data-boundary { color: var(--muted); font-size: 11px; line-height: 1.85; margin: 6px 0 0; overflow-wrap: anywhere; }
@media (hover: hover) and (pointer: fine) {
  #close-access:hover, .password-row button:not(:disabled):hover { background: var(--glass-sheen); }
  .auth-link:not(:disabled):hover { filter: brightness(1.06); }
  #dialog-motion:not(:disabled):hover { color: var(--ink); }
}
@media (prefers-reduced-transparency: reduce), (prefers-contrast: more) {
  dialog, body:not(:has(#blue:target)) dialog[data-glass-mode] { background: var(--dialog-bg); backdrop-filter: none; -webkit-backdrop-filter: none; }
  #login-form input { background: var(--input-bg); }
}
@media (forced-colors: active) {
  dialog, body:not(:has(#blue:target)) dialog[data-glass-mode] { background: Canvas; color: CanvasText; border-color: CanvasText; backdrop-filter: none; -webkit-backdrop-filter: none; }
  #login-form input, .auth-link, .password-row button { border: 1px solid ButtonText; }
}
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
@media (max-width: 600px) {
  :root { --edge: 24px; }
    body:has(#blue:target) .still-blue { background-image: url('./poster-mobile.jpg'); }
  .masthead { top: max(20px, env(safe-area-inset-top)); }
  .wordmark { font-size: 27px; letter-spacing: -1.3px; }
  .login { min-width: 72px; font-size: 11px; }
  .login svg { margin-left: 5px; }
  .signature { bottom: 139px; }
  .signature h1 { font-size: 46px; letter-spacing: 5px; margin-bottom: 15px; }
  .eyebrow { font-size: 9px; letter-spacing: 1.9px; margin-bottom: 16px; }
  .subline { font-size: 11px; letter-spacing: 1.35px; }
  .signature-lines { bottom: 143px; }
  .signature-lines h1 { font-size: 34px; letter-spacing: 4px; }
  .signature-lines .eyebrow { font-size: 9px; letter-spacing: 1.5px; margin-bottom: 18px; }
  .bottom-edge { bottom: max(24px, env(safe-area-inset-bottom)); gap: 8px; }
  #motion { gap: 4px; padding-right: 0; font-size: 10px; letter-spacing: .5px; }
  dialog { inset: 78px 16px auto auto; max-height: calc(100dvh - 94px); padding: 24px; border-radius: 22px; }
}
@media (max-width: 350px) {
  :root { --edge: 20px; }
  .signature h1 { font-size: 40px; }
  .signature-lines h1 { font-size: 30px; letter-spacing: 3px; }
  #motion { min-width: 44px; }
  #motion-label { display: none; }
}
@media (max-height: 620px) and (min-width: 601px) {
  .masthead { top: 14px; }
  .signature { bottom: 90px; }
  .signature h1 { font-size: 43px; margin-bottom: 12px; }
  .signature-lines h1 { font-size: 35px; }
  .eyebrow, .signature-lines .eyebrow { margin-bottom: 12px; }
  .subline { font-size: 10px; }
  .bottom-edge { bottom: max(14px, env(safe-area-inset-bottom)); }
}
@media (max-height: 680px) {
  dialog { top: 16px; max-height: calc(100dvh - 32px); }
  .dialog-heading { margin-bottom: 16px; }
}
@media (max-width: 350px) {
  dialog { padding: 22px 20px; }
  dialog h2 { font-size: 24px; }
  .dialog-footnote { font-size: 10px; }
}
@media (max-height: 420px) and (max-width: 600px) {
  :root { --edge: 20px; }
  .masthead { top: max(8px, env(safe-area-inset-top)); }
  .wordmark { font-size: 24px; }
  .signature, .signature-lines { bottom: 82px; }
  .signature h1 { font-size: 28px; margin: 0; letter-spacing: 3px; }
  .signature-lines h1 { font-size: 26px; letter-spacing: 2px; }
  .signature .eyebrow, .signature .subline { display: none; }
  .bottom-edge { bottom: max(12px, env(safe-area-inset-bottom)); }
  .art-status, .fallback-note { top: 57px; font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

.release-beian{position:absolute;left:var(--edge);right:var(--edge);bottom:max(12px,env(safe-area-inset-bottom));display:flex;justify-content:center;flex-wrap:wrap;gap:6px 16px;font:11px/1.5 system-ui;color:#485750}.release-beian a{display:inline-flex;gap:5px;align-items:center;color:inherit;text-decoration:none}.bottom-edge{bottom:58px}#login{text-decoration:none}#access[hidden]{display:none!important}@media(max-width:600px){.release-beian{flex-direction:column;align-items:center;font-size:10px}.bottom-edge{bottom:66px}}
