:root {
  --navy: #102f54;
  --navy-deep: #0b203b;
  --blue: #2b6f9d;
  --sky: #dbeaf0;
  --ink: #152f47;
  --muted: #668092;
  --coral: #e26050;
  --lilac: rgb(188, 164, 248);
  --lilac-soft: #eee8ff;
  --paper: #f5f8f7;
  --line: #d9e4e5;
  --white: #fff;
  --sans: "Microsoft YaHei UI", "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  --mono: "Cascadia Code", Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; letter-spacing: 0; }
html, body { width: 100%; height: 100%; }
body { margin: 0; overflow: hidden; color: var(--ink); background: var(--paper); font-family: var(--sans); line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
p, h1, h2, h3, ul { margin: 0; }
ul { padding: 0; list-style: none; }

.brand { display: inline-flex; align-items: center; gap: 14px; min-width: 0; }
.brand img { width: 52px; height: 52px; padding: 3px; object-fit: contain; background: rgba(255,255,255,.78); border: 1px solid rgba(255,255,255,.72); border-radius: 50%; box-shadow: 0 8px 22px rgba(40,25,78,.13); }
.brand span { display: flex; flex-direction: column; line-height: 1.25; }
.brand strong { color: #17264a; font-size: 20px; font-weight: 800; }
.brand small { color: #46366f; font-size: 15px; font-weight: 650; margin-top: 5px; }
.status-dot, .pulse { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #56a36d; box-shadow: 0 0 0 4px #dff1e4; vertical-align: middle; }

.portal { height: 100svh; min-height: 0; display: grid; grid-template-columns: minmax(270px, .83fr) minmax(0, 1.85fr); gap: clamp(28px, 5vw, 88px); padding: clamp(28px, 5vh, 58px) clamp(20px, 6vw, 96px) clamp(20px, 4vh, 44px); position: relative; overflow: hidden; background: #101d3b; }
.portal::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 36%; background: var(--lilac); z-index: 0; pointer-events: none; }
.portal::after { content: ""; position: absolute; bottom: 0; left: 0; z-index: 0; width: 36%; height: 100%; background: url("assets/campus.jpg") 54% center / cover no-repeat; opacity: .055; filter: grayscale(1) contrast(.82); pointer-events: none; }
.intro, .journey { position: relative; z-index: 1; min-height: 0; }
.intro { display: flex; flex-direction: column; justify-content: flex-start; padding: 4px 0 1px; }
.kicker { color: var(--coral); font: 700 10px var(--mono); letter-spacing: .04em; }
.intro h1 { max-width: 390px; margin-top: clamp(30px, 5vh, 52px); color: #17264a; font-size: clamp(34px, 3.25vw, 52px); line-height: 1.08; font-weight: 850; white-space: nowrap; }
.intro h1 em { display: block; color: #43266f; font-style: normal; }
.intro-copy { max-width: 370px; margin-top: 22px; color: #344264; font-size: 18px; font-weight: 550; line-height: 1.75; }
.major-list { display: flex; flex-wrap: wrap; gap: 7px; max-width: 365px; margin-top: 17px; }
.major-list span { padding: 7px 12px; color: #392b62; background: rgba(255,255,255,.28); border: 1px solid rgba(255,255,255,.38); border-radius: 999px; font-size: 13px; font-weight: 750; transition: color .2s ease, background .2s ease, transform .2s ease; }
.major-list span:hover { color: #17264a; background: rgba(255,255,255,.4); transform: translateY(-2px); }
.intro-data { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; max-width: 365px; margin-top: clamp(20px, 3vh, 34px); }
.intro-data div { min-width: 0; padding: 13px 12px 12px; display: flex; flex-direction: column; background: rgba(255,255,255,.22); border: 1px solid rgba(255,255,255,.3); border-radius: 8px; transition: background .2s ease, transform .2s ease; }
.intro-data div:hover { background: rgba(255,255,255,.38); transform: translateY(-3px); }
.intro-data strong { color: #17264a; font: 750 clamp(23px, 2.2vw, 31px) var(--mono); line-height: 1; }
.intro-data span { margin-top: 7px; color: #413464; font-size: 13px; font-weight: 750; white-space: nowrap; }
.intro-data div:nth-child(1) { background: rgba(172,239,218,.38); border-color: rgba(91,190,162,.45); }
.intro-data div:nth-child(1) strong { color: #12665d; }
.intro-data div:nth-child(2) { background: rgba(255,190,187,.4); border-color: rgba(226,96,80,.38); }
.intro-data div:nth-child(2) strong { color: #9e3e50; }
.intro-data div:nth-child(3) { background: rgba(168,213,255,.4); border-color: rgba(67,132,196,.35); }
.intro-data div:nth-child(3) strong { color: #24568d; }
.intro-action { margin-top: clamp(24px, 4vh, 42px); }

.journey { display: flex; flex-direction: column; justify-content: space-between; min-width: 0; padding-left: clamp(36px, 3.5vw, 52px); color: var(--white); }
.journey-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.journey h2 { margin-top: 8px; color: var(--white); font-size: clamp(24px, 2.4vw, 36px); line-height: 1.2; }
.journey h2::after { content: ""; display: block; width: 54px; height: 4px; margin-top: 14px; background: var(--lilac); border-radius: 2px; }
.journey-heading p { margin-top: 12px; color: #bdc6d9; font-size: 15px; font-weight: 550; }

.stage-viewport { min-height: 0; margin: clamp(20px, 3vh, 32px) 0; padding: 20px 0; overflow-x: auto; overflow-y: hidden; cursor: grab; touch-action: pan-y; scroll-behavior: smooth; scroll-snap-type: x mandatory; scrollbar-width: none; user-select: none; -webkit-user-select: none; }
.stage-viewport::-webkit-scrollbar { display: none; width: 0; height: 0; }
.stage-viewport:active { cursor: grabbing; }
.stage-viewport.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.stage-track { display: flex; gap: 14px; width: max-content; min-width: 100%; height: 100%; padding-inline: calc(50% - clamp(110px, 11.5vw, 150px)); }
.stage-card { position: relative; flex: 0 0 clamp(220px, 23vw, 300px); min-height: 315px; padding: clamp(19px, 2vw, 27px); display: flex; flex-direction: column; overflow: hidden; color: var(--ink); background: #e8e6ef; border: 1px solid rgba(220,214,232,.78); border-radius: 8px; box-shadow: 0 10px 24px rgba(3,20,37,.12); opacity: .42; filter: blur(1.5px); transform: scale(.87); transform-origin: center; scroll-snap-align: center; transition: opacity .55s ease, filter .55s ease, transform .55s cubic-bezier(.22,.8,.28,1), background .55s ease, border-color .55s ease, box-shadow .55s ease; }
.stage-card::before { content: ""; position: absolute; top: 0; right: 24px; left: 24px; height: 4px; background: var(--lilac); border-radius: 0 0 4px 4px; opacity: 0; transform: scaleX(.35); transition: opacity .5s ease, transform .55s cubic-bezier(.22,.8,.28,1); }
.stage-card.is-active { opacity: 1; filter: blur(0); transform: scale(1); background: var(--white); border-color: rgba(172,144,240,.8); box-shadow: 0 26px 50px rgba(3,12,31,.34); }
.stage-card.is-active::before { opacity: 1; transform: scaleX(1); }
.stage-top { display: flex; align-items: center; justify-content: space-between; }
.stage-top span { display: grid; place-items: center; width: 43px; height: 43px; color: #fff; background: #7756bf; border-radius: 8px; font: 700 20px var(--mono); }
.stage-top b { color: #647b8c; font-size: 13px; font-weight: 750; }
.stage-line { width: 100%; height: 1px; margin: 15px 0 17px; background: #e3ebec; }
.stage-card h3 { margin-top: 7px; color: var(--navy); font-size: 27px; line-height: 1.2; }
.stage-card > p { margin-top: 12px; color: #4c6577; font-size: 15px; line-height: 1.65; }
.stage-card .action-label { margin-top: auto; color: #7655b9; font-size: 13px; font-weight: 800; line-height: 1.3; }
.stage-card .action-label::after { content: "  →"; }
.stage-card ul { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; padding-top: 0; }
.stage-card li { padding: 6px 10px; color: #6246a1; background: var(--lilac-soft); border-radius: 999px; font-size: 13px; font-weight: 650; }
.journey-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0; border: 0; }
.journey-foot p { display: inline-flex; align-items: center; padding: 10px 15px; color: #d5cde6; background: rgba(172,144,240,.1); border: 1px solid rgba(172,144,240,.18); border-radius: 999px; font-size: 13px; }
.journey-foot strong { margin-left: 10px; color: var(--white); font-size: 14px; }
.pulse { margin-right: 0; width: 6px; height: 6px; background: var(--lilac); box-shadow: 0 0 0 4px rgba(172,144,240,.2); }
.launch-button { display: inline-flex; align-items: center; gap: 22px; min-width: 170px; justify-content: space-between; padding: 10px 12px 10px 21px; color: var(--white); background: #17264a; border: 1px solid #17264a; border-radius: 999px; font-size: 14px; font-weight: 750; box-shadow: 0 12px 28px rgba(35,24,67,.2); transition: color .2s ease, background .2s ease, transform .2s ease, box-shadow .2s ease; }
.launch-button span { display: grid; place-items: center; width: 30px; height: 30px; color: #17264a; background: var(--white); border-radius: 50%; font-size: 17px; line-height: 1; }
.launch-button:hover, .launch-button:focus-visible { color: #17264a; background: var(--white); transform: translateY(-2px); box-shadow: 0 16px 32px rgba(35,24,67,.25); outline: none; }
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 5; padding: 10px 16px; color: var(--white); background: var(--navy-deep); border-radius: 4px; font-size: 12px; box-shadow: 0 9px 25px rgba(0,0,0,.22); opacity: 0; pointer-events: none; transform: translate(-50%, 12px); transition: opacity .2s ease, transform .2s ease; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 980px) {
  .portal { gap: 30px; padding-right: 28px; padding-left: 28px; }
  .portal::before { width: 34%; }
  .portal::after { width: 34%; }
  .intro h1 { font-size: clamp(32px, 3.6vw, 38px); }
  .stage-card { flex-basis: 42%; }
}

@media (max-width: 720px) {
  .brand img { width: 38px; height: 38px; }
  .brand strong { font-size: 15px; }
  .brand small { display: none; }
  .portal { height: 100svh; display: flex; flex-direction: column; gap: 18px; padding: 16px 16px; }
  .portal::before { inset: 0 0 auto; width: 100%; height: 43%; background: var(--lilac); }
  .portal::after { top: 0; bottom: auto; width: 100%; height: 43%; background-size: cover; opacity: .07; }
  .intro { flex: 0 0 auto; padding: 0; }
  .intro h1 { max-width: 100%; margin-top: 15px; font-size: clamp(29px, 8vw, 42px); }
  .intro-copy { max-width: 520px; margin-top: 12px; font-size: 12px; line-height: 1.65; }
  .guide-promise { margin-top: 8px; font-size: 10px; }
  .guide-promise span { width: 24px; height: 24px; font-size: 8px; }
  .major-list { display: none; }
  .intro-data { gap: 22px; margin-top: 16px; padding-top: 12px; }
  .intro-data strong { font-size: 24px; }
  .intro-data span { margin-top: 3px; font-size: 10px; }
  .intro-action { position: absolute; right: 0; bottom: 2px; margin: 0; padding: 0; border: 0; }
  .intro-action .launch-button { min-width: 124px; padding: 8px 11px; font-size: 11px; gap: 8px; }
  .intro-action .launch-button span { font-size: 15px; }
  .journey { flex: 1; min-height: 0; }
  .journey { padding-left: 0; }
  .journey-heading { align-items: center; }
  .journey h2 { margin-top: 5px; font-size: 23px; }
  .journey-heading p { display: none; }
  .stage-viewport { margin: 8px -16px 10px; padding: 15px 16px; }
  .stage-track { gap: 10px; padding-inline: calc(50% - min(39vw, 140px)); }
  .stage-card { flex-basis: min(78vw, 280px); min-height: 235px; padding: 18px; }
  .stage-top span { font-size: 22px; }
  .stage-line { margin: 10px 0 11px; }
  .stage-card h3 { font-size: 24px; }
  .stage-card > p:not(.stage-en) { margin-top: 8px; font-size: 12px; line-height: 1.55; }
  .stage-card ul { padding-top: 9px; }
  .stage-card .action-label { font-size: 10px; }
  .stage-card ul { margin-top: 6px; padding-top: 0; }
  .journey-foot { padding-top: 11px; }
  .journey-foot p { font-size: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .journey-foot strong { margin-left: 7px; font-size: 11px; }
}

@media (max-height: 650px) and (min-width: 721px) {
  .portal { padding-top: 22px; padding-bottom: 18px; }
  .intro h1 { margin-top: 18px; font-size: 37px; }
  .intro-copy { margin-top: 12px; font-size: 13px; }
  .intro-data { margin-top: 20px; }
  .stage-card { min-height: 270px; }
}

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition-duration: .01ms !important; } }
