:root {
  color-scheme: light;
  --ink: #1b1b1b;
  --paper: #f8f5f0;
  --red: #a80014;
  --line: #cec5ba;
  --muted: #5f5750;
  font-family: "Microsoft YaHei UI", "PingFang SC", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-height: 100svh; display: flex; flex-direction: column; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { cursor: pointer; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid #246d94; outline-offset: 4px; }
.bounds { width: min(100% - clamp(32px, 9vw, 144px), 1380px); margin-inline: auto; }
.skip { position: fixed; z-index: 5; top: 10px; left: 10px; padding: 10px 16px; background: white; transform: translateY(-160%); }
.skip:focus { transform: none; }
header { color: white; background: var(--ink); border-top: 4px solid var(--red); }
.masthead { min-height: 84px; display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.identity img { width: clamp(148px, 18vw, 225px); height: auto; display: block; }
.session { display: flex; align-items: center; gap: 16px; min-width: 0; }
#account-name { font-size: 14px; color: #e6dcd5; max-width: 30vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.session button { background: transparent; color: #fff; padding: 8px 14px; border: 1px solid #8d8480; border-radius: 2px; font-size: 14px; min-height: 40px; }
.session button:hover { background: #38312f; }
main { flex: 1; }
.title-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; padding: clamp(40px, 6.7vw, 94px) 0 clamp(24px, 3vw, 44px); border-bottom: 1px solid var(--ink); }
.edition { color: var(--red); margin: 0 0 10px; font-weight: 700; font-size: 13px; }
h1, h2, p { overflow-wrap: anywhere; }
h1 { font-size: clamp(38px, 5.6vw, 84px); line-height: 1.13; font-family: "Songti SC", "STSong", SimSun, serif; letter-spacing: -.045em; margin: 0; }
.account-links { display: flex; flex-wrap: wrap; align-items: center; justify-content: end; gap: 8px 18px; }
.account-links a { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 42px; font-size: 14px; text-underline-offset: 4px; }
.account-links a:hover { text-decoration: underline; }
.account-links a.redeem { border: 1px solid var(--ink); padding: 7px 14px; }
.card-icon { width: 20px; height: 14px; border: 1.6px solid; border-radius: 2px; position: relative; }
.card-icon::after { content: ""; position: absolute; inset: 3px 0 auto; border-top: 2px solid; }
.studios { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 2vw, 28px); padding-top: 24px; }
.studio { display: block; min-width: 0; }
.print { position: relative; isolation: isolate; aspect-ratio: 1.45; overflow: hidden; }
.print::after { content: ""; position: absolute; inset: 0; pointer-events: none; mix-blend-mode: multiply; background: repeating-linear-gradient(0deg, transparent 0 3px, #554b4120 3px 4px); opacity: .36; }
.print-video { background: #950319; }
.film { position: absolute; inset: -55% -30% -55% 1%; transform: rotate(37deg); display: flex; flex-direction: column; gap: 3.2%; border: 11px solid #321c1c; padding: 2.5%; background: #29201e; box-shadow: 10px 10px 0 #570d1a; }
.film::before, .film::after { content: ""; width: 2.6%; position: absolute; top: 0; bottom: 0; background: repeating-linear-gradient(to bottom,#f4dfc3 0 6px,transparent 6px 17px); }
.film::before { left: -1.8%; } .film::after { right: -1.8%; }
.film i { flex: 1; background-color: #e67a62; background-image: radial-gradient(ellipse 31% 115% at 46% 100%,#211b1b 0 50%,transparent 51%),radial-gradient(ellipse 40% 105% at 68% 63%,#a80014 0 51%,transparent 52%),linear-gradient(103deg,#eaaf8e 0 25%,#f3d3af 25% 53%,#cb4a3e 53%); }
.film i:nth-child(even) { transform: scaleX(-1); }
.print-image { background: #e5d5b9; }
.collage { position: absolute; inset: -9% 6%; transform: rotate(-15deg); display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; }
.collage i { background: repeating-radial-gradient(ellipse at right bottom,#1b1b1b 0 3%,#dfcdb0 3.4% 6%); }
.collage i:nth-child(2) { background: radial-gradient(circle at left bottom,#972a2b 0 32%,#d35c42 32.5% 52%,#e9a378 52.5% 70%,#f6ead4 70.5%); border-radius: 0 90% 0 0; }
.collage i:nth-child(3) { background: radial-gradient(circle at right top,#a80014 0 49%,#be352c 49.5% 63%,#33312f 63.5% 72%,transparent 72.5%); }
.collage i:nth-child(4) { background: repeating-radial-gradient(ellipse at left top,#524d43 0 2.5%,#d8c9ac 2.8% 5%); border-radius: 0 0 90% 0; }
.print-audio { background: #75938e; }
.record { position: absolute; width: 97%; aspect-ratio: 1; top: 11%; left: -9%; border-radius: 50%; overflow: hidden; background: repeating-radial-gradient(circle,#242d2c 0 2px,#75827a 2.6px 3.2px,#1b2322 3.8px 6px); box-shadow: 7px 10px 0 #35474366; }
.record::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: conic-gradient(from 25deg,transparent,#d4d8c159,transparent 27%,transparent 52%,#eee3bd59,transparent 79%); }
.record i { position: absolute; inset: 31%; border-radius: inherit; background: radial-gradient(circle,#273330 0 4%,#e8d9b7 4.5% 13%,#ac3229 13.5% 50%,#e8d9b7 51%); }
.needle { position: absolute; width: 44%; top: 20%; right: -6%; height: 5%; background: #202725; transform: rotate(-35deg); box-shadow: 3px 3px 0 #e7dfc4; }
.needle::after { content: ""; position: absolute; top: -35%; left: -5%; width: 18%; height: 170%; background: #b7302e; }
.caption { display: grid; grid-template-columns: 1fr auto; align-items: end; margin-top: 18px; }
.discipline { grid-column: 1 / -1; font: italic 17px/1.2 Georgia, serif; color: var(--muted); }
.caption h2 { grid-column: 1; font-size: clamp(23px, 2.1vw, 32px); font-weight: 680; margin: 3px 0 0; }
.arrow { font: 28px/1 system-ui,sans-serif; color: var(--red); transition: transform .18s; }
.studio:hover .arrow, .studio:focus-visible .arrow { transform: translate(2px,-2px); }
.studio:hover h2 { color: var(--red); }
.studio p { margin: 8px 0 0; font-size: 14px; color: var(--muted); line-height: 1.6; }
#notice { margin: 20px 0; color: var(--red); }
footer { display: flex; justify-content: space-between; gap: 15px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; padding-block: 18px 24px; margin-top: 46px; }
dialog { border: 1px solid var(--ink); padding: 0; width: min(90vw, 408px); max-height: 90svh; background: var(--paper); color: var(--ink); }
dialog::backdrop { background: #191615ac; }
dialog form { position: relative; padding: 32px; }
dialog h2 { margin: 0; font-size: 26px; }
dialog .close { position: absolute; top: 10px; right: 10px; width: 34px; height: 34px; color: var(--ink); border: none; background: transparent; font-size: 24px; }
#login-purpose { margin: 10px 0 24px; font-size: 14px; color: var(--muted); line-height: 1.6; }
dialog label { display: block; font-size: 14px; margin: 14px 0 5px; }
dialog input { display: block; padding: 10px; border: 1px solid #91867c; background: white; color: var(--ink); width: 100%; border-radius: 0; }
#login-error { color: var(--red); font-size: 14px; min-height: 1.2em; margin: 8px 0; }
.primary { width: 100%; border: none; padding: 11px; color: white; background: var(--red); font-weight: 700; }
#change-password, #recover { border: 0; background: transparent; color: var(--muted); min-height: 40px; font-size: 14px; }
#recover { display: block; margin: 4px auto 0; }
#change-password:hover, #recover:hover { text-decoration: underline; }
button:disabled { opacity: .65; cursor: wait; }
@media (max-width: 760px) {
  .title-row { align-items: start; flex-direction: column; gap: 14px; }
  .account-links { justify-content: start; }
  .print { aspect-ratio: 1.16; }
}
@media (max-width: 600px) {
  .masthead { min-height: 66px; }
  .title-row { padding-top: 36px; }
  .studios { grid-template-columns: 1fr; gap: 30px; padding-top: 18px; }
  .print { aspect-ratio: 2.15; }
  .caption { margin-top: 10px; }
  .caption h2 { font-size: 25px; }
  .studio p { margin-top: 4px; }
  .session { gap: 5px; }
  #account-name { max-width: 22vw; font-size: 12px; }
  .session button { padding: 6px 9px; }
  footer { margin-top: 20px; }
}
@media (prefers-reduced-motion: reduce) { .arrow { transition: none; } }
