:root {
  --red: #7c2028;
  --deep-red: #571822;
  --gold: #efcf99;
  --light-gold: #f8e8c7;
  --cream: #f5f1e8;
  --serif: "Noto Serif CJK SC", "Source Han Serif SC", "Songti SC", "STSong", "SimSun", serif;
  --sans: "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-width: 0; min-height: 100%; }
body { font-family: var(--sans); background: var(--red); color: var(--gold); }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }
button:focus-visible, a:focus-visible { outline: 2px solid currentColor; outline-offset: 6px; }
button, a { touch-action: manipulation; }
[hidden] { display: none !important; }
.journey { position: relative; min-height: 800px; height: 100svh; overflow: hidden; background: var(--cream); }
.site-header { position: absolute; inset: 0 0 auto; z-index: 20; display: flex; align-items: center; justify-content: space-between; padding: 30px 4.4vw; transition: color .75s; }
.brand { display: flex; align-items: center; }
.brand-name { font: 23px "STKaiti", "KaiTi", var(--serif); letter-spacing: .18em; }
.skip-link { display: flex; align-items: center; gap: 21px; padding: 11px 18px; font-size: 12px; letter-spacing: .12em; border: 1px solid #f0ce983d; border-radius: 40px; transition: background .25s, border-color .25s; }
.skip-link span { font-size: 19px; line-height: 1; }
.skip-link:hover { background: #efcf9912; border-color: #efcf9988; }
.intro, .loading { position: absolute; inset: 0; }
.intro { isolation: isolate; background: radial-gradient(ellipse at 50% 25%, #a03937 0%, #872630 40%, #741e28 75%, #641b26 100%); transition: opacity .9s, transform 1.15s cubic-bezier(.2,.65,.2,1), visibility 1.15s; }
.intro::before { content: ""; position: absolute; inset: 18px; border: 1px solid #e9bb7530; pointer-events: none; z-index: 3; }
.intro::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #45152125, transparent 30%, transparent 70%, #45152125); pointer-events: none; }
.intro-light { position: absolute; inset: 0; opacity: .38; background: radial-gradient(ellipse at var(--light-x, 50%) var(--light-y, 35%), #d2996740, transparent 55%); }
.grain { position: absolute; inset: 0; pointer-events: none; opacity: .045; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.78' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Cpath fill='%23ffffff' filter='url(%23noise)' opacity='.65' d='M0 0h180v180H0z'/%3E%3C/svg%3E"); }
.landscape { position: absolute; bottom: 25px; width: 112%; left: -6%; height: min(42vw, 410px); background: url('/assets/yuelu-landscape.svg') center bottom / 100% auto no-repeat; opacity: .65; z-index: -1; transform-origin: bottom center; animation: landscape-enter 3s ease-out both; }
.intro-content { width: min(900px, 88%); height: 100%; margin: 0 auto; padding-top: clamp(115px, 15.4vh, 165px); position: relative; z-index: 2; text-align: center; }
.school-song { margin: 0; font-family: var(--serif); font-size: 15px; line-height: 2; letter-spacing: .3em; color: #f0d3a5; }
.school-song span { display: block; }
.edition { display: flex; gap: 17px; align-items: center; justify-content: center; margin-top: 28px; font-size: 10px; letter-spacing: .12em; opacity: .72; }
.fine-rule { width: 48px; height: 1px; background: linear-gradient(90deg, transparent, #e7be84); }
.fine-rule:last-child { transform: rotate(180deg); }
.hero-title { margin: 26px 0 0; color: var(--light-gold); font-family: "STKaiti", "KaiTi", "楷体", var(--serif); font-weight: 400; font-size: clamp(68px, 6.8vw, 106px); line-height: 1.22; letter-spacing: .12em; }
.title-line { display: block; position: relative; width: fit-content; margin: 0 auto; padding-left: .12em; background: linear-gradient(120deg, #e9c68e, #f7e5bf 48%, #d9aa68); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 3px 8px #52162525); animation: title-enter 1.5s cubic-bezier(.2,.65,.2,1) both; }
.title-line-1 { animation-delay: .35s; }
.title-line-2 { animation-delay: .6s; }
.title-punctuation { font-family: var(--serif); font-size: .55em; position: absolute; right: -.42em; top: .46em; }
.seal { position: absolute; right: -37px; top: 18%; display: block; padding: 6px 5px 6px 8px; color: var(--gold); border: 1px solid #ebc89199; border-radius: 2px; font: 14px/1.3 "KaiTi", var(--serif); letter-spacing: .15em; transform: rotate(4deg); opacity: .8; }
.hero-description { margin: 24px 0 0; font: 13px/1.9 var(--serif); letter-spacing: .16em; color: #ecd2afa8; }
.hero-description span { margin-left: 5px; }
.motto { display: flex; align-items: center; justify-content: center; gap: 28px; margin: 31px auto 0; }
.motto p { margin: 0; font: 24px var(--serif); letter-spacing: .35em; padding-left: .35em; color: var(--gold); }
.motto-dot { font: 13px var(--sans); padding: 0 20px 0 10px; vertical-align: middle; }
.motto-rule { width: 80px; height: 1px; background: #edca8c40; }
.entry-actions { display: flex; align-items: center; gap: 13px; justify-content: center; margin-top: 31px; padding-left: 53px; }
.enter-button { position: relative; border: 1px solid #edcf9e; background: var(--gold); color: #76232a; padding: 15px 23px 15px 29px; border-radius: 3px; display: flex; align-items: center; gap: 43px; font-size: 13px; letter-spacing: .13em; transition: background .25s, box-shadow .25s, transform .25s; }
.enter-button:hover { background: #f9e6c5; box-shadow: 0 8px 35px #31101840; transform: translateY(-2px); }
.button-arrow { font-size: 22px; line-height: 1; transition: transform .25s; }
.enter-button:hover .button-arrow { transform: translate(2px,-2px); }
.pause-button { width: 40px; height: 40px; padding: 10px; color: #efcf99c4; background: transparent; border: 1px solid #efcf9945; border-radius: 50%; transition: background .25s; }
.pause-button:hover { background: #efcf9915; }
.pause-button svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; }
.play-icon { display: none; }
.pause-button[aria-pressed="true"] .pause-icon { display: none; }
.pause-button[aria-pressed="true"] .play-icon { display: block; }
.auto-note { margin: 12px 0 0; color: #eccc977c; font-size: 10px; letter-spacing: .12em; }
.intro-bottom { position: absolute; inset: auto 4.4vw 51px; display: flex; align-items: center; justify-content: space-between; font-size: 10px; color: #ebcb9799; letter-spacing: .1em; z-index: 2; }
.location-note { display: flex; align-items: center; gap: 8px; }
.location-note i { width: 4px; height: 4px; background: #e5ba7f; border-radius: 50%; box-shadow: 0 0 8px #e5ba7f; }
.chapter { display: flex; align-items: center; gap: 10px; }
.chapter-number { color: var(--gold); font: 19px Georgia, serif; }
.chapter-label { color: #efd6af; }
.chapter-line { width: 48px; height: 1px; background: #f0ce9955; margin: 0 3px; }
.chapter-next { opacity: .6; }
.site-note { position: absolute; inset: auto 0 20px; z-index: 10; text-align: center; font-size: 9px; letter-spacing: .12em; opacity: .42; pointer-events: none; transition: color .7s; }
.entrance { animation: content-enter 1.3s cubic-bezier(.2,.65,.2,1) both; }
.entrance-1 { animation-delay: .05s; }
.entrance-2 { animation-delay: .18s; }
.entrance-3 { animation-delay: .85s; }
.entrance-4 { animation-delay: 1s; }
.entrance-5 { animation-delay: 1.15s; }
.particles { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 1; }
.particle { position: absolute; left: var(--x); bottom: -15px; width: var(--size); height: var(--size); border-radius: 50%; background: #f8d797; opacity: 0; box-shadow: 0 0 9px #f5c97775; animation: float-particle var(--duration) var(--delay) infinite linear; }
.loading { color: var(--red); background: radial-gradient(ellipse at 50% 45%, #fffcf5 0, #f5f1e8 57%, #efe8db 100%); opacity: 0; visibility: hidden; transform: scale(.985); transition: opacity .95s .25s, transform 1.25s .2s, visibility 0s 1.2s; }
.loading-grain { opacity: .06; mix-blend-mode: multiply; }
.loading-halo { position: absolute; width: min(900px, 95vw); aspect-ratio: 1; border: 1px solid #bda58122; border-radius: 50%; top: 50%; left: 50%; transform: translate(-50%,-50%); }
.loading-halo::before, .loading-halo::after { content: ""; position: absolute; border: 1px solid #bda58118; border-radius: 50%; inset: 35px; }
.loading-halo::after { inset: -35px; }
.loading-content { position: relative; height: 100%; padding-top: clamp(114px, 13vh, 150px); display: flex; flex-direction: column; align-items: center; text-align: center; }
.loading-eyebrow { margin: 0 0 16px; font: 11px var(--serif); letter-spacing: .35em; color: #9c7154; }
.loading h2 { margin: 0; font: 34px var(--serif); letter-spacing: .1em; outline: none; font-weight: 400; }
.mascot-stage { position: relative; margin-top: 16px; width: min(450px, 83vw); height: clamp(360px, 48vh, 495px); display: flex; align-items: center; justify-content: center; }
.mascot { position: relative; z-index: 3; display: block; width: auto; height: 94%; max-width: 88%; object-fit: contain; mix-blend-mode: multiply; transform-origin: 50% 85%; }
.mascot-aura { position: absolute; width: 84%; height: 78%; border-radius: 50%; background: radial-gradient(ellipse, #dfb27622, transparent 67%); }
.orbit { position: absolute; top: 50%; left: 50%; width: 100%; height: 100%; border-radius: 50%; border: 1px solid #ad7e4430; transform: translate(-50%,-50%) rotate(-25deg) scaleY(.68); }
.orbit-one { width: 103%; height: 84%; }
.orbit-two { width: 91%; height: 95%; transform: translate(-50%,-50%) rotate(27deg) scaleX(.83); border-color: #ad7e4420; }
.orbit i { position: absolute; top: 20%; left: 8%; width: 6px; height: 6px; background: #b48850; border-radius: 50%; box-shadow: 0 0 15px #b4885030; }
.orbit i:nth-child(2) { top: 85%; left: 82%; width: 4px; height: 4px; }
.orbit-two i { left: 93%; top: 41%; background: var(--red); width: 4px; height: 4px; }
.ground-shadow { position: absolute; width: 42%; height: 19px; bottom: 4px; background: #90745629; border-radius: 50%; filter: blur(10px); }
.stage-spark { position: absolute; color: #be914e; font: 22px Georgia, serif; }
.spark-one { top: 19%; left: 2%; }
.spark-two { top: 63%; right: 0; font-size: 30px; }
.spark-three { top: 8%; right: 15%; font-size: 14px; }
.stage-caption { position: absolute; bottom: 14px; right: -30px; font: 8px var(--sans); color: #ab9680; letter-spacing: .16em; transform: rotate(-90deg); transform-origin: left center; }
.mascot-chats { position: absolute; inset: 0; z-index: 4; pointer-events: none; }
.chat-bubble { position: absolute; width: 224px; margin: 0; padding: 16px 20px; border: 1px solid #bd8c7050; border-radius: 20px; color: #773c36; background: #fffdf7f7; box-shadow: 0 6px 24px #8e5c3820, inset 0 1px 0 #ffffff; font: 14px/1.7 var(--sans); text-align: left; letter-spacing: .025em; text-wrap: pretty; animation: chat-pop .65s cubic-bezier(.22,.75,.25,1) both; }
.chat-bubble-left { left: -114px; bottom: 17%; border-bottom-right-radius: 5px; transform-origin: bottom right; --chat-offset: -18px; --chat-tilt: -1.8deg; }
.chat-bubble-right { right: -114px; bottom: 28%; border-bottom-left-radius: 5px; transform-origin: bottom left; background: #fbefe3f7; --chat-offset: 18px; --chat-tilt: 1.8deg; }
.chat-bubble::after { content: ""; position: absolute; bottom: 15px; width: 11px; height: 11px; background: inherit; transform: rotate(45deg); }
.chat-bubble-left::after { right: -6px; border-top: 1px solid #bd8c7050; border-right: 1px solid #bd8c7050; }
.chat-bubble-right::after { left: -6px; border-bottom: 1px solid #bd8c7050; border-left: 1px solid #bd8c7050; }
.chat-bubble-admission { color: #882e35; border-color: #b6596159; background: #fff7f2fa; }
.is-backgrounded .chat-bubble { animation-play-state: paused; }
.progress-area { width: min(330px, 78vw); margin-top: 17px; }
.progress-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.progress-heading p { margin: 0; font: 12px var(--serif); color: #856d59; letter-spacing: .08em; }
.progress-number { font: 24px Georgia, serif; font-variant-numeric: tabular-nums; letter-spacing: -.02em; color: var(--red); }
.progress-number small { margin-left: 3px; font: 9px var(--sans); }
.progress-track { height: 3px; background: #dcd1c1; overflow: hidden; border-radius: 4px; }
.progress-fill { width: 100%; height: 100%; background: linear-gradient(90deg, #a77549, #82232a); transform: scaleX(0); transform-origin: left; will-change: transform; position: relative; }
.progress-fill::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, #ffe5bba0, transparent); animation: progress-shimmer 1.6s linear infinite; }
.destination { margin: 15px 0 0; font-size: 10px; letter-spacing: .05em; color: #9f8c79; }
.destination a { color: #7e5343; margin-left: 6px; }
.destination a:hover { text-decoration: underline; text-underline-offset: 4px; }
.loading-footer { position: absolute; inset: auto 4.4vw 51px; display: flex; justify-content: space-between; color: #a58c74; font: 10px var(--serif); letter-spacing: .15em; }
.preview-actions { margin-top: 17px; display: flex; align-items: center; gap: 25px; font-size: 11px; color: var(--red); }
.preview-actions button { border: 0; border-bottom: 1px solid #7c202844; background: transparent; padding: 3px 0; color: inherit; }
.preview-actions a { padding: 3px 0; border-bottom: 1px solid #7c202844; }
.mascot-fallback { margin: 0; font: 46px "KaiTi", var(--serif); color: var(--red); position: relative; z-index: 3; }
.mascot-fallback span { display: block; font: 12px var(--serif); letter-spacing: .2em; margin-top: 20px; }
.journey[data-stage="loading"] .intro { opacity: 0; transform: scale(1.07); visibility: hidden; pointer-events: none; }
.journey[data-stage="loading"] .loading { opacity: 1; transform: scale(1); visibility: visible; transition: opacity .95s .15s, transform 1.25s .1s, visibility 0s; }
.journey[data-stage="loading"] .site-header, .journey[data-stage="loading"] .site-note { color: var(--red); }
.journey[data-stage="loading"] .skip-link { border-color: #7c202838; }
.journey[data-stage="loading"] .skip-link:hover { background: #7c202808; }
.journey[data-stage="loading"] .mascot { animation: mascot-arrive .9s .25s both, mascot-float 3s 1.15s ease-in-out infinite; }
.journey[data-stage="loading"] .orbit-one { animation: orbit-breathe 4s ease-in-out infinite; }
.journey[data-stage="loading"] .orbit-two { animation: orbit-turn 12s linear infinite; }
.journey[data-stage="loading"] .ground-shadow { animation: shadow-breathe 3s 1.15s ease-in-out infinite; }
.journey[data-stage="loading"] .stage-spark { animation: twinkle 2.4s ease-in-out infinite; }
.journey[data-stage="loading"] .spark-two { animation-delay: .6s; }
.journey[data-stage="loading"] .spark-three { animation-delay: 1.2s; }
.journey[data-stage="loading"] .loading-eyebrow, .journey[data-stage="loading"] h2, .journey[data-stage="loading"] .progress-area { animation: content-enter .85s .45s both; }
.journey.is-leaving .loading { opacity: 0; transform: scale(1.035); transition: opacity .45s, transform .6s; }
.is-paused .particle { animation-play-state: paused; }
.noscript { min-height: 100svh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 25px; text-align: center; color: var(--gold); }
.noscript h1 { font: 30px var(--serif); }
.noscript a { margin-top: 20px; padding: 15px 25px; border: 1px solid currentColor; }
@keyframes content-enter { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
@keyframes title-enter { from { opacity: 0; transform: translateY(22px); filter: blur(7px); } to { opacity: 1; transform: translateY(0); filter: blur(0); } }
@keyframes landscape-enter { from { opacity: 0; transform: translateY(26px) scale(1.025); } to { opacity: .65; transform: translateY(0) scale(1); } }
@keyframes float-particle { 0% { opacity: 0; transform: translate(0,0); } 15% { opacity: .5; } 65% { opacity: .35; } 100% { opacity: 0; transform: translate(var(--drift), -850px); } }
@keyframes mascot-arrive { from { opacity: 0; transform: translateY(18px) scale(.96); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes mascot-float { 0%,100% { transform: translateY(0) rotate(-.7deg); } 50% { transform: translateY(-12px) rotate(.7deg); } }
@keyframes shadow-breathe { 0%,100% { transform: scale(1); opacity: .75; } 50% { transform: scale(.87); opacity: .4; } }
@keyframes orbit-breathe { 0%,100% { transform: translate(-50%,-50%) rotate(-25deg) scaleY(.68); opacity: .6; } 50% { transform: translate(-50%,-50%) rotate(-20deg) scaleY(.73); opacity: 1; } }
@keyframes orbit-turn { from { transform: translate(-50%,-50%) rotate(27deg) scaleX(.83); } to { transform: translate(-50%,-50%) rotate(387deg) scaleX(.83); } }
@keyframes twinkle { 0%,100% { opacity: .35; transform: scale(.8); } 50% { opacity: 1; transform: scale(1.1); } }
@keyframes progress-shimmer { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
@keyframes chat-pop {
  0% { opacity: 0; transform: translate(var(--chat-offset), 16px) scale(.65) rotate(var(--chat-tilt)); }
  55% { opacity: 1; transform: translate(0, -5px) scale(1.04) rotate(var(--chat-tilt)); }
  78% { transform: translate(0, 2px) scale(.985) rotate(var(--chat-tilt)); }
  100% { opacity: 1; transform: translate(0, 0) scale(1) rotate(var(--chat-tilt)); }
}
@media (min-width: 1800px) { .hero-title { font-size: 114px; } .intro-content { padding-top: 16vh; } }
@media (max-height: 820px) and (min-width: 701px) {
  .journey { min-height: 690px; }
  .intro-content { padding-top: 105px; }
  .school-song { font-size: 13px; }
  .edition { margin-top: 17px; }
  .hero-title { font-size: 80px; margin-top: 18px; }
  .hero-description { margin-top: 16px; }
  .motto { margin-top: 21px; }
  .entry-actions { margin-top: 23px; }
  .loading-content { padding-top: 107px; }
  .loading-eyebrow { margin-bottom: 12px; }
  .loading h2 { font-size: 29px; }
  .mascot-stage { height: 350px; margin-top: 10px; }
  .progress-area { margin-top: 10px; }
}
@media (max-width: 700px) {
  .journey { min-height: 720px; }
  .site-header { padding: 26px 25px; }
  .brand-name { font-size: 21px; letter-spacing: .12em; }
  .skip-link { font-size: 10px; padding: 9px 12px; gap: 8px; letter-spacing: .02em; }
  .skip-link span { font-size: 16px; }
  .intro::before { inset: 12px; }
  .intro-content { padding-top: clamp(120px, 17vh, 155px); width: 90%; }
  .school-song { font-size: 12px; letter-spacing: .22em; }
  .edition { margin-top: 29px; gap: 10px; font-size: 8px; letter-spacing: 0; }
  .fine-rule { width: 24px; }
  .hero-title { font-size: clamp(52px, 13.5vw, 78px); margin-top: 27px; line-height: 1.3; letter-spacing: .08em; }
  .title-line { padding-left: .08em; }
  .seal { right: -23px; font-size: 10px; padding: 4px 3px 4px 5px; top: 22%; }
  .hero-description { margin-top: 23px; font-size: 11px; letter-spacing: .1em; }
  .hero-description span { display: block; margin: 4px 0 0; }
  .motto { gap: 20px; margin-top: 28px; }
  .motto p { font-size: 22px; letter-spacing: .25em; }
  .motto-rule { width: 36px; }
  .motto-dot { padding: 0 13px 0 7px; }
  .entry-actions { margin-top: 28px; padding-left: 47px; gap: 10px; }
  .enter-button { padding: 14px 18px 14px 22px; gap: 29px; font-size: 12px; }
  .pause-button { width: 37px; height: 37px; padding: 9px; }
  .auto-note { font-size: 9px; margin-top: 13px; }
  .landscape { width: 235%; left: -70%; height: 250px; bottom: 39px; opacity: .58; }
  .intro-bottom { left: 26px; right: 26px; bottom: 48px; font-size: 9px; }
  .location-note, .bottom-word { display: none; }
  .chapter { margin: auto; gap: 9px; }
  .chapter-number { font-size: 16px; }
  .chapter-line { width: 32px; }
  .site-note { font-size: 8px; bottom: 23px; }
  .loading-content { padding-top: 124px; }
  .loading-eyebrow { font-size: 10px; margin-bottom: 14px; }
  .loading h2 { font-size: 27px; letter-spacing: .06em; }
  .mascot-stage { height: clamp(320px, 45vh, 450px); width: 78vw; margin-top: 17px; }
  .stage-caption { font-size: 6px; right: -25px; }
  .chat-bubble { width: min(43vw, 170px); padding: 11px 13px; border-radius: 16px; font-size: 12px; line-height: 1.65; letter-spacing: 0; }
  .chat-bubble-left { left: -6vw; bottom: 17%; border-bottom-right-radius: 4px; --chat-tilt: -1deg; }
  .chat-bubble-right { right: -6vw; bottom: 29%; border-bottom-left-radius: 4px; --chat-tilt: 1deg; }
  .chat-bubble::after { width: 9px; height: 9px; bottom: 13px; }
  .chat-bubble-left::after { right: -5px; }
  .chat-bubble-right::after { left: -5px; }
  .progress-area { width: 72vw; margin-top: 19px; }
  .progress-heading p { font-size: 11px; }
  .progress-number { font-size: 23px; }
  .loading-footer { inset: auto 26px 48px; font-size: 9px; }
}
@media (max-width: 700px) and (max-height: 760px) {
  .journey { min-height: 660px; }
  .intro-content { padding-top: 112px; }
  .edition { margin-top: 20px; }
  .hero-title { margin-top: 20px; }
  .hero-description { margin-top: 17px; }
  .motto { margin-top: 22px; }
  .entry-actions { margin-top: 22px; }
  .loading-content { padding-top: 106px; }
  .mascot-stage { height: 300px; margin-top: 13px; }
  .progress-area { margin-top: 12px; }
  .loading h2 { font-size: 25px; }
}
@media (max-width: 360px) {
  .site-header { padding: 25px 22px; }
  .brand-name { font-size: 19px; }
  .hero-title { font-size: 48px; }
  .edition { font-size: 7px; }
  .loading h2 { font-size: 23px; }
  .chat-bubble { font-size: 11px; padding: 10px 11px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .particle { display: none; }
  .title-line { filter: none; }
  .landscape { opacity: .65; }
}
