:root {
  color-scheme: light;
  --paper: #f6f4ef;
  --ink: #242722;
  --muted: #646c5e;
  --blue: #0f5ea7;
  --green: #397062;
  --line: rgba(70, 81, 71, .09);
  --font-ui: 'Avenir Next', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  --font-editorial: 'Iowan Old Style', 'Songti SC', 'STSong', 'Noto Serif CJK SC', serif;
  font-family: var(--font-ui);
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 280px; min-height: 100svh; padding: 24px 14px; color: var(--ink); background: radial-gradient(ellipse at 4% 4%, rgba(15, 94, 167, .14), transparent 42%), radial-gradient(ellipse at 97% 96%, rgba(210, 164, 78, .17), transparent 42%), linear-gradient(155deg, #f6f5f1, #ede9df 55%, #f8f7f3); }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
svg { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
[hidden] { display: none !important; }
.svg-library { position: absolute; width: 0; height: 0; overflow: hidden; }
.phone-shell { position: relative; isolation: isolate; width: min(100%, 460px); min-height: calc(100svh - 48px); margin: 0 auto; padding: 24px 22px 20px; border: 1px solid rgba(255, 255, 255, .85); border-radius: 30px; background: rgba(255, 255, 255, .66); box-shadow: 0 24px 64px rgba(38, 47, 41, .12); backdrop-filter: blur(18px); }
.masthead { display: flex; align-items: center; gap: 9px; }
.brand-mark { display: grid; place-items: center; width: 27px; height: 27px; border-radius: 8px; color: var(--blue); background: rgba(15, 94, 167, .08); }
.brand-mark svg { width: 16px; height: 16px; stroke-width: 1.8; }
.brand-label { font-size: 11px; font-weight: 600; letter-spacing: .08em; }
.edition { margin-left: auto; font-size: 8px; font-weight: 600; letter-spacing: .12em; color: #687260; }
.welcome { position: relative; padding: 39px 0 30px; overflow: hidden; }
.eyebrow { margin: 0 0 12px; font-size: 9px; font-weight: 600; letter-spacing: .19em; color: var(--muted); }
h1 { position: relative; z-index: 1; margin: 0 0 12px; font-family: var(--font-editorial); font-size: 37px; font-weight: 600; letter-spacing: .055em; line-height: 1.2; }
.title-dot { color: var(--blue); }
.welcome-description { position: relative; z-index: 1; margin: 0; color: #646c5e; font-size: 12px; line-height: 1.9; letter-spacing: .02em; }
.welcome-art { position: absolute; right: -5px; top: 46px; width: 128px; height: 135px; pointer-events: none; }
.orbit { position: absolute; width: 112px; height: 112px; border: 1px solid rgba(15, 94, 167, .10); border-radius: 50%; }
.orbit-one { top: 4px; left: 1px; }
.orbit-two { top: 23px; left: 15px; border-style: dashed; border-color: rgba(57, 112, 98, .15); }
.art-tile { position: absolute; display: grid; place-items: center; border: 1px solid rgba(255, 255, 255, .9); box-shadow: 0 8px 18px rgba(27, 59, 75, .08); }
.art-tile svg { width: 35px; height: 35px; }
.art-museum { width: 69px; height: 76px; left: 14px; top: 17px; border-radius: 19px; color: var(--blue); background: linear-gradient(140deg, #f1f7ff, #dce9f5); transform: rotate(-13deg); }
.art-book { width: 64px; height: 69px; right: 3px; bottom: 9px; border-radius: 18px; color: var(--green); background: linear-gradient(140deg, #f4f8f0, #e0ebdd); transform: rotate(12deg); }
.art-spark { position: absolute; right: 0; top: 0; width: 16px; height: 16px; color: #c39445; }
.section-heading { display: flex; align-items: center; justify-content: space-between; padding-top: 21px; border-top: 1px solid var(--line); margin-bottom: 18px; }
h2 { margin: 0; font-size: 15px; font-weight: 600; letter-spacing: .04em; }
.section-heading p { margin: 6px 0 0; color: var(--muted); font-size: 10px; letter-spacing: .025em; }
.application-count { color: var(--blue); font-size: 19px; font-weight: 500; letter-spacing: .02em; font-variant-numeric: tabular-nums; }
.application-count span { color: #687260; font-size: 10px; }
.app-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.app-card { min-width: 0; min-height: 140px; display: flex; flex-direction: column; align-items: center; padding: 10px 5px 15px; border: 1px solid rgba(255, 255, 255, .94); border-radius: 20px; text-decoration: none; color: var(--ink); background: rgba(255, 255, 255, .62); }
a.app-card { transition: transform .18s ease, box-shadow .18s ease; }
a.app-card:hover { transform: translateY(-3px); box-shadow: 0 12px 24px rgba(15, 94, 167, .10); }
a.app-card:active { transform: scale(.97); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; }
.app-museum { background: linear-gradient(150deg, rgba(237, 245, 253, .95), rgba(249, 252, 255, .9)); box-shadow: 0 5px 12px rgba(15, 94, 167, .035); }
.app-study { background: linear-gradient(150deg, rgba(235, 242, 231, .95), rgba(250, 252, 248, .9)); }
.app-xiaoyao { background: linear-gradient(150deg, rgba(229, 243, 239, .95), rgba(247, 252, 250, .9)); }
.app-xiaoyao .app-icon { color: #2e7068; background: rgba(46, 112, 104, .085); }
.app-xiaoyao .card-number, .app-xiaoyao .entry-arrow, .app-xiaoyao .app-description { color: #486c63; }
.app-coach { background: linear-gradient(150deg, rgba(247, 239, 226, .95), rgba(255, 252, 246, .9)); }
.app-coach .app-icon { color: #a56b35; background: rgba(165, 107, 53, .09); }
.app-coach .card-number, .app-coach .entry-arrow, .app-coach .app-description { color: #8a6745; }
.app-project { background: linear-gradient(150deg, rgba(239, 234, 249, .95), rgba(252, 250, 255, .9)); }
.app-project .app-icon { color: #6e5ba3; background: rgba(110, 91, 163, .09); }
.app-project .card-number, .app-project .entry-arrow, .app-project .app-description { color: #6d608d; }
.card-top { display: flex; justify-content: space-between; align-items: center; align-self: stretch; padding: 0 5px; height: 13px; }
.card-number { font-size: 8px; color: #526779; letter-spacing: .08em; }
.entry-arrow { width: 12px; height: 12px; color: #708da7; }
.app-study .card-number, .app-study .entry-arrow { color: #536958; }
.app-icon { display: grid; place-items: center; width: 46px; height: 46px; margin: 7px 0 10px; border-radius: 15px; background: rgba(15, 94, 167, .085); color: var(--blue); }
.app-icon svg { width: 28px; height: 28px; }
.app-study .app-icon { color: var(--green); background: rgba(57, 112, 98, .085); }
.app-name { font-size: 13px; line-height: 1.5; font-weight: 600; letter-spacing: .015em; white-space: nowrap; }
.app-description { margin-top: 4px; font-size: 9px; color: #526779; white-space: nowrap; }
.app-study .app-description { color: #536958; }
.reserved { border: 1px dashed rgba(86, 100, 86, .12); background: rgba(255, 255, 255, .18); }
.reserved .card-number { color: #697362; }
.reserved .app-icon { width: 39px; height: 39px; margin: 10px 0 14px; color: #a8afa3; background: rgba(100, 113, 95, .035); border: 1px dashed rgba(100, 113, 95, .14); border-radius: 13px; }
.reserved .app-icon svg { width: 19px; height: 19px; stroke-width: 1.2; }
.reserved .app-name { color: #697362; font-size: 11px; font-weight: 400; }
.reserved .app-description { color: #697362; font-size: 9px; }
.bookmark-note { display: flex; align-items: center; gap: 11px; margin-top: 23px; padding: 15px 12px; border: 1px solid rgba(201, 143, 58, .11); border-radius: 17px; background: linear-gradient(130deg, rgba(244, 236, 218, .62), rgba(249, 247, 240, .5)); }
.bookmark-icon { color: #b28b49; display: grid; place-items: center; }
.bookmark-icon svg { width: 23px; height: 23px; stroke-width: 1.2; }
.bookmark-note h2 { font-size: 11px; color: #746146; }
.bookmark-note p { margin: 5px 0 0; font-size: 9px; color: #766446; line-height: 1.5; }
.copy-button { flex-shrink: 0; display: grid; place-items: center; margin-left: auto; width: 36px; height: 36px; padding: 7px; border: 1px solid rgba(178, 139, 73, .19); border-radius: 11px; color: #967540; background: rgba(255, 255, 255, .55); cursor: pointer; }
.copy-button svg { width: 19px; height: 19px; }
.footer { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 25px; color: #697362; font-size: 9px; letter-spacing: .04em; }
.footer-line { width: 15px; height: 1px; background: #bec2b8; }
.toast { position: fixed; z-index: 5; bottom: max(26px, env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%); padding: 12px 22px; max-width: calc(100% - 36px); border-radius: 14px; background: #244c63; color: white; font-size: 12px; box-shadow: 0 8px 30px #18384e25; }
dialog { width: min(340px, calc(100% - 32px)); padding: 26px; color: var(--ink); background: #faf8f3; border: 1px solid white; border-radius: 22px; box-shadow: 0 22px 60px #1c292533; }
dialog::backdrop { background: rgba(25, 41, 48, .25); backdrop-filter: blur(4px); }
dialog p { font-size: 12px; line-height: 1.8; color: var(--muted); }
dialog input { width: 100%; padding: 12px 8px; border-radius: 9px; border: 1px solid #d6dedb; font-size: 12px; background: white; color: var(--blue); }
dialog form { text-align: right; margin-top: 18px; }
dialog button { border: 0; border-radius: 10px; padding: 10px 18px; background: var(--blue); color: white; cursor: pointer; }
@keyframes reveal { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: no-preference) { .welcome { animation: reveal .5s ease both; } .app-card { animation: reveal .5s ease both; } .app-card:nth-child(2) { animation-delay: .05s; } .app-card:nth-child(3n) { animation-delay: .1s; } .app-card:nth-child(n+4) { animation-delay: .15s; } .app-card:nth-child(n+7) { animation-delay: .2s; } }
/* Prioritize all nine entries in the phone's visible viewport. */
@media (max-width: 480px) {
  body { padding: 0; }
  .phone-shell { min-height: 100svh; border: 0; border-radius: 0; padding: max(14px, env(safe-area-inset-top)) 20px max(14px, env(safe-area-inset-bottom)); box-shadow: none; background: rgba(255, 255, 255, .45); }
  .brand-mark { width: 24px; height: 24px; }
  .welcome { padding: 14px 0 12px; }
  .eyebrow { display: none; }
  h1 { margin-bottom: 6px; font-size: 30px; }
  .welcome-description { font-size: 11px; line-height: 1.6; }
  .welcome-art { top: 0; right: 0; width: 128px; height: 135px; transform: scale(.64); transform-origin: right top; }
  .section-heading { padding-top: 12px; margin-bottom: 12px; }
  .section-heading p { display: none; }
  .application-count { font-size: 17px; }
  .app-grid { gap: 8px; }
  .app-card { min-height: clamp(96px, 17svh, 120px); padding: 7px 5px 10px; border-radius: 17px; }
  .card-top { height: 11px; }
  .app-icon { width: 38px; height: 38px; margin: 4px 0 6px; border-radius: 12px; }
  .app-icon svg { width: 25px; height: 25px; }
  .app-name { font-size: 12px; }
  .app-description { margin-top: 2px; }
  .reserved .app-icon { width: 32px; height: 32px; margin: 7px 0 9px; border-radius: 11px; }
  .bookmark-note { margin-top: 14px; padding: 10px 12px; }
  .footer { margin-top: 12px; }
}
@media (max-width: 360px) {
  .phone-shell { padding-right: 14px; padding-left: 14px; }
  .app-grid { gap: 7px; }
  .edition { font-size: 7px; letter-spacing: .06em; }
}
@media (max-width: 480px) and (max-height: 600px) {
  .app-card { min-height: clamp(84px, 16svh, 96px); padding: 5px 4px 8px; }
  .app-icon { width: 32px; height: 32px; margin: 3px 0 4px; }
  .app-icon svg { width: 23px; height: 23px; }
  .reserved .app-icon { width: 28px; height: 28px; margin: 5px 0 6px; }
  .bookmark-note { padding: 8px 10px; }
  .bookmark-note p, .footer { display: none; }
}
@media (max-width: 480px) and (max-height: 540px) {
  .welcome { padding: 10px 0; }
  .welcome-description { display: none; }
  .welcome-art { transform: scale(.4); }
  .section-heading { padding-top: 10px; margin-bottom: 10px; }
  .bookmark-note { margin-top: 10px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
