:root {
  --ink: #14202b;
  --muted: #687481;
  --canvas: #f4f6f7;
  --paper: #ffffff;
  --line: #dfe5e9;
  --brand: #1456a0;
  --brand-deep: #0b3c76;
  --brand-pale: #e9f2fc;
  --blue: #427ed1;
  --blue-pale: #edf4fd;
  --green: #2f8b70;
  --green-pale: #eaf6f1;
  --gold: #b9872d;
  --gold-pale: #fbf3e2;
  --coral: #c65e67;
  --coral-pale: #faecee;
  --violet: #7658a9;
  --violet-pale: #f1edfa;
  --shell: 780px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: var(--canvas);
  font-family: "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  line-height: 1.6;
  letter-spacing: 0;
}
body.modal-open { overflow: hidden; }
button, input { font: inherit; }
button, a { color: inherit; -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a { text-decoration: none; }
.page-shell { width: min(var(--shell), calc(100% - 28px)); margin-inline: auto; }
.skip-link { position: fixed; left: 12px; top: -60px; z-index: 300; padding: 8px 12px; background: #fff; border: 2px solid var(--ink); }
.skip-link:focus { top: 12px; }

.site-header { position: sticky; top: 0; z-index: 80; background: rgba(244, 246, 247, .92); border-bottom: 1px solid rgba(215, 222, 226, .85); backdrop-filter: blur(14px); }
.header-inner { min-height: 66px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { min-width: 0; display: flex; align-items: center; gap: 11px; }
.brand-mark { position: relative; width: 42px; height: 42px; overflow: hidden; display: block; flex: 0 0 auto; color: #bd2635; background: #fff; border: 1px solid #ecd0d5; border-radius: 50%; box-shadow: 0 5px 16px rgba(189, 38, 53, .14); }
.brand-mark img { display: none; }
.brand-mark::after { content: ""; position: absolute; left: 50%; top: 50%; width: 38px; height: 38px; transform: translate(-50%, -50%); background: #bd2635; -webkit-mask: url("assets/nyist-logo.png") left center / auto 38px no-repeat; mask: url("assets/nyist-logo.png") left center / auto 38px no-repeat; }
.brand-copy { min-width: 0; }
.brand-copy strong, .brand-copy small { display: block; }
.brand-copy strong { font-size: 18px; line-height: 1.25; }
.brand-copy small { color: var(--muted); font-size: 10px; white-space: nowrap; }
.header-actions { display: flex; align-items: center; gap: 8px; }
.community-launch { min-height: 40px; padding: 0 10px; display: inline-flex; align-items: center; gap: 6px; border: 1px solid #e0c6ca; border-radius: 7px; color: #9d2635; background: #fff; font-size: 11px; font-weight: 800; }
.community-launch svg { width: 17px; }
.community-launch b { min-width: 20px; height: 20px; padding: 0 5px; display: grid; place-items: center; border-radius: 4px; color: #fff; background: #bd2635; font-size: 9px; }
.icon-button, .entry-close, .modal-close, .community-close { width: 40px; height: 40px; display: grid; place-items: center; flex: 0 0 auto; padding: 0; border: 1px solid #d8e0e6; border-radius: 50%; color: #4f5d69; background: rgba(255, 255, 255, .86); }
.icon-button { position: relative; box-shadow: 0 0 0 4px rgba(20, 86, 160, .07); }
.icon-button svg, .entry-close svg, .modal-close svg, .community-close svg { width: 18px; }
.notice-dot { position: absolute; top: 7px; right: 7px; width: 7px; height: 7px; background: #d75757; border: 1px solid #fff; border-radius: 50%; }

.official-note { min-height: 62px; margin-top: 12px; padding: 12px 14px; display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 10px; background: #fff8e9; border: 1px solid #ead9ad; border-radius: 8px; }
.official-note > svg { width: 19px; color: #9b751f; }
.official-note strong { display: block; font-size: 13px; }
.official-note p { margin: 1px 0 0; color: #6d6757; font-size: 11px; }

main { padding-block: 14px 30px; }
.welcome-card { position: relative; height: 420px; overflow: hidden; color: #fff; background: #15314a; border-radius: 8px; box-shadow: 0 18px 42px rgba(35, 51, 65, .16); }
.welcome-card > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 48%; }
.welcome-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(5, 30, 58, .9) 0%, rgba(5, 30, 58, .72) 38%, rgba(5, 30, 58, .16) 72%), linear-gradient(180deg, rgba(8, 31, 54, .12) 35%, rgba(8, 31, 54, .78) 100%); }
.welcome-content { position: relative; z-index: 1; height: 100%; padding: 24px; display: flex; flex-direction: column; justify-content: space-between; }
.hero-brandline { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.hero-official-logo { width: min(286px, 62%); height: auto; }
.unofficial { padding: 4px 8px; color: #fff; background: rgba(17, 80, 149, .9); border: 1px solid rgba(255, 255, 255, .22); border-radius: 4px; font-size: 9px; font-weight: 800; }
.hero-yearmark { position: absolute; z-index: 0; right: 12px; bottom: -50px; color: transparent; font-size: 148px; font-weight: 900; line-height: 1; -webkit-text-stroke: 1px rgba(255, 255, 255, .18); pointer-events: none; }
.hero-copy { max-width: 520px; }
.hero-copy > p { margin: 0 0 8px; color: #d8eaff; font-size: 10px; font-weight: 800; }
.hero-copy > p strong { color: #fff; font-size: 14px; }
.hero-copy h1 { margin: 0; font-size: 42px; line-height: 1.14; }
.hero-guide-name { display: block; margin-top: 3px; color: #fff; font-size: 22px; font-weight: 700; }
.hero-meta { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 7px 16px; color: rgba(255, 255, 255, .78); font-size: 11px; }
.hero-meta span { display: inline-flex; align-items: center; gap: 5px; }
.hero-meta svg { width: 14px; }
.hero-actions { margin-top: 18px; display: flex; align-items: center; gap: 10px; }
.hero-button, .hero-link { min-height: 42px; display: inline-flex; align-items: center; gap: 7px; border-radius: 6px; font-weight: 700; }
.hero-button { padding: 0 15px; color: var(--brand-deep); background: #fff; border: 0; }
.hero-link { padding: 0 12px; color: #fff; border: 1px solid rgba(255, 255, 255, .55); font-size: 12px; }
.hero-button svg, .hero-link svg { width: 17px; }

.campus-signature { min-height: 72px; margin-top: 10px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: center; background: #fff; border: 1px solid #e3e8e6; border-radius: 8px; }
.campus-signature > div { min-width: 0; padding: 9px 8px; text-align: center; }
.campus-signature > div + div { border-left: 1px solid #e9edeb; }
.campus-signature strong, .campus-signature span { display: block; }
.campus-signature strong { color: var(--brand); font-size: 14px; line-height: 1.25; }
.campus-signature span { margin-top: 3px; color: var(--muted); font-size: 9px; }

.community-strip { min-height: 92px; margin-top: 10px; padding: 14px 16px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; color: #fff; background: #173f6b; border-left: 5px solid #bd2635; border-radius: 8px; box-shadow: 0 12px 28px rgba(24, 63, 107, .14); }
.community-strip-count { width: 56px; height: 56px; display: grid; place-content: center; text-align: center; color: #a72032; background: #fff; border-radius: 7px; }
.community-strip-count strong, .community-strip-count small { display: block; }
.community-strip-count strong { font-size: 24px; line-height: 1; }
.community-strip-count small { margin-top: 3px; font-size: 8px; font-weight: 800; }
.community-strip > div small, .community-strip > div strong, .community-strip > div span { display: block; }
.community-strip > div small { color: #9fc5ec; font-size: 8px; font-weight: 800; }
.community-strip > div strong { margin-top: 2px; font-size: 16px; }
.community-strip > div span { color: #d0e1f0; font-size: 10px; }
.community-strip > button { min-height: 38px; padding: 0 12px; display: inline-flex; align-items: center; gap: 5px; border: 0; border-radius: 6px; color: #173f6b; background: #fff; font-size: 11px; font-weight: 800; }
.community-strip > button svg { width: 15px; }

.guide-panel, .campus-stories, .about-nyist { padding: 28px 0; border-top: 1px solid #dfe5e2; }
.guide-panel { margin-top: 12px; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.section-heading p { margin: 0 0 2px; color: var(--brand); font-size: 10px; font-weight: 800; }
.section-heading h2 { margin: 0; font-size: 21px; }
.section-heading > span { padding: 3px 8px; color: #7b8791; background: #e9edef; border-radius: 4px; font-size: 10px; }
.section-heading > .section-media-tag { min-height: 28px; padding-inline: 9px; display: inline-flex; align-items: center; gap: 5px; color: var(--brand); background: var(--brand-pale); font-weight: 800; }
.section-media-tag svg { width: 14px; }
.section-link { display: inline-flex; align-items: center; gap: 4px; color: var(--brand); font-size: 11px; font-weight: 700; }
.section-link svg { width: 14px; }

.about-nyist { margin-top: 18px; }
.about-intro { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 26px; }
.about-intro h3 { max-width: 540px; margin: 10px 0 5px; font-size: 22px; line-height: 1.35; }
.about-intro p { max-width: 610px; margin: 0; color: var(--muted); font-size: 12px; }
.official-tag { display: inline-flex; align-items: center; gap: 5px; color: #1e735f; font-size: 10px; font-weight: 800; }
.official-tag svg { width: 14px; }
.about-year { color: #c7393f; font-size: 36px; line-height: .95; text-align: right; }
.about-year span { display: block; margin-bottom: 4px; color: var(--muted); font-size: 9px; font-weight: 600; }
.identity-strip { margin-top: 22px; display: grid; grid-template-columns: 1.35fr .9fr 1.1fr; border-block: 1px solid #dfe5e2; background: rgba(255, 255, 255, .55); }
.identity-strip > div { min-width: 0; min-height: 96px; padding: 14px 16px; display: flex; flex-direction: column; justify-content: center; gap: 9px; }
.identity-strip > div + div { border-left: 1px solid #dfe5e2; }
.identity-strip span { color: #7a858d; font-size: 9px; font-weight: 700; }
.identity-strip img { width: 100%; height: 31px; object-fit: contain; object-position: left center; mix-blend-mode: multiply; }
.data-note { margin: 8px 0 0; color: #828d91; font-size: 9px; text-align: right; }

.quick-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px 10px; }
.quick-grid button, .quick-grid a { min-width: 0; padding: 0; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; border: 0; background: transparent; }
.quick-grid strong { font-size: 12px; line-height: 1.35; }
.quick-icon { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 7px; transition: transform 150ms ease, box-shadow 150ms ease; }
.quick-grid button:hover .quick-icon, .quick-grid a:hover .quick-icon { transform: translateY(-2px); box-shadow: 0 7px 16px rgba(29, 46, 61, .09); }
.quick-icon svg { width: 21px; }
.blue { color: var(--blue); background: var(--blue-pale); }
.green { color: var(--green); background: var(--green-pale); }
.gold { color: var(--gold); background: var(--gold-pale); }
.coral { color: var(--coral); background: var(--coral-pale); }
.violet { color: var(--violet); background: var(--violet-pale); }
.brand-blue { color: var(--brand); background: var(--brand-pale); }

.campus-media-intro { margin-bottom: 12px; padding: 13px 0; display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 18px; border-block: 1px solid #dfe5e2; }
.campus-media-intro > div strong, .campus-media-intro > div p { display: block; }
.campus-media-intro > div strong { font-size: 14px; }
.campus-media-intro > div p { margin: 2px 0 0; color: #73808a; font-size: 10px; }
.campus-media-intro > span { min-width: 46px; text-align: center; }
.campus-media-intro b, .campus-media-intro small { display: block; }
.campus-media-intro b { color: var(--brand); font-size: 21px; line-height: 1; }
.campus-media-intro small { margin-top: 3px; color: #7a858d; font-size: 8px; font-weight: 700; }
.campus-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.campus-photo { position: relative; aspect-ratio: 4 / 3; margin: 0; overflow: hidden; background: #d7dee0; border-radius: 8px; }
.campus-photo-main { grid-column: 1 / -1; aspect-ratio: 16 / 8.5; }
.campus-photo > button { width: 100%; height: 100%; display: block; padding: 0; border: 0; background: transparent; cursor: zoom-in; }
.campus-photo img { width: 100%; height: 100%; display: block; object-fit: cover; }
.campus-photo > button img { transition: transform 220ms ease; }
.campus-photo:hover > button img { transform: scale(1.02); }
.campus-photo figcaption { position: absolute; inset: auto 0 0; padding: 24px 13px 11px; color: #fff; background: linear-gradient(180deg, transparent, rgba(12, 24, 35, .86)); pointer-events: none; }
.campus-photo figcaption strong, .campus-photo figcaption span { display: block; }
.campus-photo figcaption strong { font-size: 13px; }
.campus-photo figcaption span { margin-top: 1px; color: rgba(255, 255, 255, .76); font-size: 9px; }
.campus-video-block { margin-top: 12px; padding-top: 15px; border-top: 1px solid #dfe5e2; }
.campus-video-block > header { margin-bottom: 9px; display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.campus-video-block header small, .campus-video-block header strong, .campus-video-block header span { display: block; }
.campus-video-block header small { color: var(--brand); font-size: 8px; font-weight: 800; }
.campus-video-block header strong { margin-top: 1px; font-size: 15px; }
.campus-video-block header span { color: #76828b; font-size: 9px; }
.campus-video-block header > b { padding: 4px 7px; color: #5d6972; background: #edf1f3; border-radius: 4px; font-size: 9px; }
.campus-video-block video { width: 100%; aspect-ratio: 16 / 9; display: block; object-fit: cover; border-radius: 8px; background: #101820; }
.photo-source { margin: 8px 0 0; color: #828d91; font-size: 9px; text-align: right; }

.explore-grid, .service-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.explore-card { min-width: 0; min-height: 78px; padding: 13px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 11px; text-align: left; border: 0; border-radius: 8px; }
.explore-card > span { width: 38px; height: 38px; display: grid; place-items: center; color: var(--ink); background: rgba(255, 255, 255, .78); border-radius: 7px; }
.explore-card > span svg { width: 19px; }
.explore-card strong, .explore-card small { display: block; }
.explore-card strong { color: var(--ink); font-size: 13px; }
.explore-card small { margin-top: 2px; color: #6f7880; font-size: 10px; }
.explore-card > svg { width: 16px; color: #8d969d; }
.explore-wide { grid-column: 1 / -1; }

.service-grid { gap: 8px; }
.service-grid button, .service-grid a { min-height: 72px; padding: 13px 14px; display: flex; align-items: center; justify-content: space-between; gap: 12px; text-align: left; border: 1px solid var(--line); border-radius: 8px; background: #fbfcfd; }
.service-grid strong, .service-grid small { display: block; }
.service-grid strong { font-size: 13px; }
.service-grid small { margin-top: 2px; color: #7d8993; font-size: 10px; }
.service-wide { grid-column: 1 / -1; }
.service-icon { width: 38px; height: 38px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 7px; }
.service-icon svg { width: 19px; }

.site-footer { padding-block: 30px 34px; text-align: center; color: #c7d0d6; background: #202a31; }
.site-footer .page-shell { display: flex; flex-direction: column; align-items: center; }
.site-footer img { width: min(300px, 72%); filter: brightness(0) invert(1); opacity: .9; }
.site-footer p { margin: 9px 0 2px; font-size: 12px; }
.site-footer small { font-size: 9px; }

.entry-backdrop, .modal-backdrop, .community-backdrop, .photo-backdrop { position: fixed; inset: 0; z-index: 150; padding: 18px; display: grid; place-items: center; background: rgba(21, 34, 45, .7); backdrop-filter: blur(6px); }
.entry-backdrop[hidden], .modal-backdrop[hidden], .community-backdrop[hidden], .photo-backdrop[hidden] { display: none; }
.entry-sheet, .modal { width: min(500px, 100%); max-height: calc(100vh - 36px); overflow: auto; background: #fff; border-radius: 8px; box-shadow: 0 28px 90px rgba(18, 28, 38, .3); }
.entry-community { position: relative; width: min(540px, 100%); }
.entry-community > .entry-close { position: absolute; top: 14px; right: 14px; z-index: 2; }
.entry-sheet > header, .modal > header { min-height: 76px; padding: 15px 18px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 11px; border-bottom: 1px solid var(--line); }
.entry-sheet > header > span, .modal-icon { width: 40px; height: 40px; display: grid; place-items: center; color: #fff; background: var(--brand); border-radius: 7px; }
.entry-sheet > header svg, .modal-icon svg { width: 19px; }
.entry-sheet header small, .modal header small { color: #557aa7; font-size: 9px; font-weight: 800; }
.entry-sheet header h2, .modal header h2 { margin: 0; font-size: 18px; }
.entry-content, .modal-body { padding: 18px; }
.unofficial-badge { display: inline-flex; padding: 3px 7px; color: #906512; background: var(--gold-pale); border-radius: 4px; font-size: 9px; font-weight: 800; }
.entry-community .entry-content { padding: 24px; }
.entry-community .unofficial-badge { min-height: 25px; align-items: center; padding-inline: 9px; }
.entry-community .entry-content > h2 { max-width: calc(100% - 48px); margin: 13px 0 5px; font-size: 24px; line-height: 1.25; }
.entry-community .entry-content > p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.7; }
.entry-qr-card { margin-top: 16px; padding: 16px; text-align: center; border: 1px solid #dce3e7; border-radius: 8px; background: #fbfcfd; }
.entry-qr-heading { display: flex; align-items: center; justify-content: center; gap: 9px; }
.entry-qr-heading > span { width: 32px; height: 32px; display: grid; place-items: center; color: #fff; background: var(--brand); border-radius: 6px; }
.entry-qr-heading svg { width: 17px; }
.entry-qr-heading strong { font-size: 13px; }
.entry-qr-frame { width: min(282px, 72vw); aspect-ratio: 1; margin: 13px auto 0; padding: 9px; background: #fff; border: 1px solid #e2e7ea; }
.entry-qr-frame img { width: 100%; height: 100%; display: block; object-fit: contain; image-rendering: pixelated; }
.entry-qr-card > strong, .entry-qr-card > small { display: block; }
.entry-qr-card > strong { margin-top: 9px; font-size: 12px; }
.entry-qr-card > small { margin-top: 2px; color: #87929a; font-size: 9px; }
.entry-join-row { min-height: 62px; margin-top: 12px; padding: 10px 13px; display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 11px; background: #f6f8fa; border: 1px solid #e1e6e9; border-radius: 7px; }
.entry-join-row > span { width: 34px; height: 34px; display: grid; place-items: center; color: #2a9b7d; background: #fff; border-radius: 6px; }
.entry-join-row svg { width: 21px; }
.entry-join-row small, .entry-join-row strong { display: block; }
.entry-join-row small { color: #7b8790; font-size: 9px; }
.entry-join-row strong { margin-top: 1px; font-size: 12px; }
.entry-safety { margin-top: 12px; padding: 11px 12px; display: grid; grid-template-columns: auto 1fr; gap: 9px; color: #765b1c; background: #fff8e8; border: 1px solid #ead9ad; border-radius: 7px; }
.entry-safety svg { width: 18px; }
.entry-safety p { margin: 0; font-size: 9px; line-height: 1.65; }
.entry-content h3 { margin: 8px 0 4px; font-size: 18px; }
.entry-content > p { margin: 0; color: var(--muted); font-size: 12px; }
.notice-list { margin-top: 15px; display: grid; gap: 8px; }
.notice-list > div { padding: 11px 12px; display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 11px; background: #f5f8fa; border-radius: 8px; }
.notice-list svg { width: 20px; color: var(--green); }
.notice-list strong, .notice-list small { display: block; }
.notice-list strong { font-size: 12px; }
.notice-list small { color: var(--muted); font-size: 9px; }
.entry-official { min-height: 40px; margin-top: 12px; display: flex; align-items: center; justify-content: center; gap: 6px; color: var(--brand); background: var(--brand-pale); border-radius: 6px; font-size: 11px; font-weight: 700; }
.entry-official svg { width: 15px; }
.entry-button { width: 100%; min-height: 44px; margin-top: 10px; border: 0; border-radius: 6px; color: #fff; background: var(--brand); font-weight: 800; }

.modal-body { color: #3d4953; font-size: 13px; }
.modal-body p { margin: 0; }
.modal-body h3 { margin: 18px 0 6px; color: var(--ink); font-size: 14px; }
.modal-body ul, .modal-body ol { margin: 0; padding-left: 19px; }
.modal-body li + li { margin-top: 5px; }
.modal-body a { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }
.modal-body .policy-note { margin-top: 9px; color: #68747e; font-size: 11px; }
.tip-box, .route-step { margin-top: 12px; padding: 11px 12px; background: #f5f8fa; border-left: 4px solid var(--brand); border-radius: 0 7px 7px 0; }
.tip-box strong, .route-step strong { display: block; color: var(--ink); }
.tip-box.gold-tip { border-left-color: var(--gold); background: #fff9ed; }
.dorm-allocation { margin-top: 14px; border-top: 1px solid var(--line); }
.dorm-college { padding: 15px 0; border-bottom: 1px solid var(--line); }
.dorm-college header { display: grid; grid-template-columns: 29px minmax(0, 1fr); align-items: center; gap: 9px; }
.dorm-college header > span { width: 29px; height: 29px; display: grid; place-items: center; color: #fff; background: var(--brand); border-radius: 6px; font-size: 9px; font-weight: 800; }
.modal-body .dorm-college h3 { margin: 0; font-size: 14px; }
.dorm-type { width: max-content; margin: 7px 0 0 38px !important; padding: 2px 7px; color: var(--violet); background: var(--violet-pale); border-radius: 4px; font-size: 9px; font-weight: 700; }
.modal-body .dorm-majors { margin: 8px 0 0 38px; color: #68747e; font-size: 11px; }
.dorm-majors strong { margin-right: 7px; color: var(--ink); }
.dorm-rooms { margin: 10px 0 0 38px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.dorm-rooms > div { min-width: 0; padding: 8px 9px; background: #f5f8fa; border-radius: 6px; }
.dorm-rooms strong { display: block; margin-top: 3px; color: var(--ink); font-size: 11px; line-height: 1.4; }
.gender { font-size: 9px; font-weight: 800; }
.gender.male { color: var(--blue); }
.gender.female { color: var(--coral); }
.dorm-campus-list { display: grid; gap: 7px; }
.dorm-campus-list > div { padding: 10px 11px; background: #f5f8fa; border-left: 3px solid var(--brand); border-radius: 0 6px 6px 0; }
.dorm-campus-list > div:nth-child(2) { border-left-color: var(--green); }
.dorm-campus-list > div:nth-child(3) { border-left-color: var(--gold); }
.dorm-campus-list strong { color: var(--ink); font-size: 12px; }
.modal-body .dorm-campus-list p { margin-top: 3px; color: #64717b; font-size: 10px; }
.dorm-table-wrap { margin-top: 8px; overflow-x: auto; border: 1px solid var(--line); border-radius: 7px; }
.dorm-table { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: 10px; }
.dorm-table th, .dorm-table td { padding: 9px 7px; vertical-align: middle; text-align: left; border-bottom: 1px solid var(--line); }
.dorm-table thead th { color: #64717b; background: #f3f6f8; font-size: 9px; }
.dorm-table thead th:first-child, .dorm-table tbody th { width: 48%; }
.dorm-table tbody tr:last-child th, .dorm-table tbody tr:last-child td { border-bottom: 0; }
.dorm-table tbody th { color: var(--ink); font-size: 10px; font-weight: 700; line-height: 1.35; }
.dorm-table tbody th small { color: #7b8791; font-size: 8px; font-weight: 500; }
.dorm-table td > small { display: block; margin-top: 3px; color: #7b8791; font-size: 8px; line-height: 1.3; }
.campus-pill { display: inline-flex; align-items: center; width: max-content; padding: 2px 6px; border-radius: 4px; font-size: 8px; font-weight: 800; white-space: nowrap; }
.campus-pill.northwest { color: #765916; background: var(--gold-pale); }
.campus-pill.southeast { color: #245f9e; background: var(--blue-pale); }
.campus-pill.east { color: #26735f; background: var(--green-pale); }
.modal-body .dorm-research-note { margin-top: 7px; color: #7c8790; font-size: 9px; }
.campus-facilities { border-top: 1px solid var(--line); }
.campus-facilities > section { padding: 13px 0; border-bottom: 1px solid var(--line); }
.campus-facilities header { display: flex; align-items: center; gap: 8px; }
.campus-facilities header > strong { color: var(--ink); font-size: 12px; }
.campus-facilities ul { margin-top: 9px; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; list-style: none; }
.campus-facilities li { min-width: 0; padding: 7px 8px; display: grid; grid-template-columns: auto 1fr; gap: 7px; align-items: start; color: #5f6c76; background: #f5f8fa; border-radius: 6px; font-size: 9px; line-height: 1.45; }
.campus-facilities li svg { width: 14px; color: var(--brand); }
.campus-facilities li strong { color: var(--ink); }
.food-campus-grid { margin-top: 13px; display: grid; gap: 7px; }
.training-locations { margin-top: 8px; }
.food-campus-grid > div { padding: 10px 11px; display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 6px 9px; background: #f5f8fa; border-radius: 6px; }
.food-campus-grid > div > strong { color: var(--ink); font-size: 11px; }
.food-campus-grid small { grid-column: 1 / -1; color: #6f7b84; font-size: 9px; }
.study-terms { margin-top: 8px; border-top: 1px solid var(--line); }
.study-terms > div { padding: 10px 0; display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 10px; border-bottom: 1px solid var(--line); }
.study-terms strong { color: var(--brand); font-size: 12px; }
.study-terms span { color: #66737d; font-size: 11px; line-height: 1.55; }
.route-step { display: grid; grid-template-columns: auto 1fr; gap: 10px; }
.route-step > span { width: 25px; height: 25px; display: grid; place-items: center; color: #fff; background: var(--brand); border-radius: 50%; font-size: 11px; font-weight: 800; }
.link-list { margin-top: 12px; display: grid; gap: 7px; }
.link-list a { padding: 9px 11px; display: flex; align-items: center; justify-content: space-between; gap: 8px; color: var(--ink); background: #f4f7f9; border-radius: 6px; text-decoration: none; }
.link-list a::after { content: "打开"; color: var(--brand); font-size: 10px; font-weight: 700; }
.modal-source { margin: 0 18px 18px; padding: 10px; display: grid; grid-template-columns: auto 1fr; gap: 8px; color: #66727c; background: #f1f5f7; border-radius: 7px; font-size: 10px; }
.modal-source svg { width: 15px; color: var(--gold); }

.community-sheet { width: min(560px, 100%); max-height: calc(100vh - 36px); overflow: auto; background: #fff; border-radius: 8px; box-shadow: 0 28px 90px rgba(18, 28, 38, .34); }
.community-sheet > header { min-height: 70px; padding: 13px 16px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 11px; color: #fff; background: #173f6b; }
.community-sheet > header > span { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 7px; background: #bd2635; }
.community-sheet > header > span svg { width: 20px; }
.community-sheet > header small, .community-sheet > header strong { display: block; }
.community-sheet > header small { color: #b8d3ec; font-size: 8px; font-weight: 800; }
.community-sheet > header strong { font-size: 14px; }
.community-close { color: #fff; border-color: rgba(255,255,255,.25); background: rgba(255,255,255,.1); }
.community-body { padding: 20px; }
.community-unofficial { min-height: 25px; padding: 0 8px; display: inline-flex; align-items: center; gap: 5px; color: #8a621a; background: #fff5dc; border-radius: 4px; font-size: 9px; font-weight: 800; }
.community-unofficial svg { width: 14px; }
.community-body > h2 { margin: 10px 0 3px; font-size: 24px; line-height: 1.25; }
.community-body > p { margin: 0; color: var(--muted); font-size: 11px; }
.community-overview { margin-top: 15px; padding: 11px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; background: #f3f6f8; border-radius: 7px; }
.community-overview > div { min-width: 0; min-height: 44px; display: flex; align-items: center; justify-content: center; gap: 7px; text-align: left; }
.community-overview > div + div { border-left: 1px solid #dce4e8; }
.community-overview > div > strong { color: #bd2635; font-size: 26px; line-height: 1; }
.community-overview svg { width: 20px; color: var(--brand); }
.community-overview span, .community-overview span strong { display: block; }
.community-overview span { color: #74808a; font-size: 8px; }
.community-overview span strong { color: var(--ink); font-size: 10px; }
.community-qr-panel { margin-top: 16px; text-align: center; }
.community-qr-frame { width: min(330px, 82vw); aspect-ratio: 1; margin-inline: auto; padding: 14px; background: #fff; border: 1px solid #d9e1e5; border-radius: 8px; box-shadow: 0 12px 26px rgba(27, 48, 63, .09); }
.community-qr-frame img { width: 100%; height: 100%; display: block; object-fit: contain; image-rendering: pixelated; }
.community-qr-panel > strong, .community-qr-panel > span { display: block; }
.community-qr-panel > strong { margin-top: 10px; font-size: 13px; }
.community-qr-panel > span { color: #7b8790; font-size: 9px; }
.community-colleges { margin-top: 16px; border-block: 1px solid var(--line); }
.community-colleges summary { min-height: 44px; display: flex; align-items: center; justify-content: space-between; gap: 10px; cursor: pointer; list-style: none; font-size: 11px; font-weight: 800; }
.community-colleges summary::-webkit-details-marker { display: none; }
.community-colleges summary svg { width: 16px; color: var(--brand); transition: transform 150ms ease; }
.community-colleges[open] summary svg { transform: rotate(180deg); }
.community-colleges > div { padding: 0 0 12px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.community-colleges > div span { min-width: 0; padding: 7px 8px; color: #55636e; background: #f4f7f8; border-radius: 5px; font-size: 9px; }
.community-safety { margin-top: 14px; padding: 11px; display: grid; grid-template-columns: auto 1fr; gap: 9px; color: #765b1c; background: #fff8e8; border: 1px solid #ead9ad; border-radius: 7px; }
.community-safety > svg { width: 18px; margin-top: 1px; }
.community-safety p { margin: 0; }
.community-safety strong, .community-safety span { display: block; }
.community-safety strong { font-size: 10px; }
.community-safety span { margin-top: 2px; font-size: 9px; }
.community-actions { margin-top: 14px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.community-actions a, .community-actions button { min-height: 43px; display: flex; align-items: center; justify-content: center; gap: 6px; border-radius: 6px; font-size: 11px; font-weight: 800; }
.community-actions a { color: var(--brand); border: 1px solid #9fbcda; background: #f1f6fc; }
.community-actions a svg { width: 16px; }
.community-actions button { color: #fff; border: 0; background: var(--brand); }
.photo-viewer { width: min(960px, 100%); max-height: calc(100vh - 36px); overflow: hidden; display: flex; flex-direction: column; background: #fff; border-radius: 8px; box-shadow: 0 28px 90px rgba(18, 28, 38, .42); }
.photo-viewer > header { min-height: 68px; padding: 12px 15px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line); }
.photo-viewer header small { display: block; color: var(--brand); font-size: 8px; font-weight: 800; }
.photo-viewer header h2 { margin: 1px 0 0; font-size: 18px; }
.photo-close { width: 40px; height: 40px; display: grid; place-items: center; flex: 0 0 auto; padding: 0; color: #4f5d69; background: #fff; border: 1px solid #d8e0e6; border-radius: 50%; }
.photo-close svg { width: 18px; }
.photo-stage { position: relative; min-height: 0; aspect-ratio: 4 / 3; display: grid; place-items: center; overflow: hidden; background: #101820; }
.photo-stage > img { width: 100%; height: 100%; display: block; object-fit: contain; }
.photo-nav { position: absolute; z-index: 2; top: 50%; width: 44px; height: 44px; display: grid; place-items: center; padding: 0; transform: translateY(-50%); color: #fff; background: rgba(8, 20, 30, .68); border: 1px solid rgba(255, 255, 255, .35); border-radius: 50%; }
.photo-nav svg { width: 20px; }
.photo-prev { left: 14px; }
.photo-prev svg { transform: rotate(180deg); }
.photo-next { right: 14px; }
.photo-viewer > p { margin: 0; padding: 12px 15px 14px; color: #66727b; font-size: 11px; }
.toast { position: fixed; left: 50%; bottom: 20px; z-index: 220; transform: translate(-50%, 18px); padding: 8px 13px; color: #fff; background: #18242e; border-radius: 6px; opacity: 0; pointer-events: none; font-size: 11px; transition: opacity 150ms ease, transform 150ms ease; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 640px) {
  .header-inner { min-height: 58px; }
  .brand { gap: 9px; }
  .brand-mark { width: 36px; height: 36px; }
  .brand-mark::after { width: 32px; height: 32px; -webkit-mask-size: auto 32px; mask-size: auto 32px; }
  .brand-copy strong { font-size: 15px; }
  .brand-copy small { font-size: 9px; }
  .header-inner { gap: 8px; }
  .header-actions { gap: 6px; }
  .community-launch { min-width: 40px; padding-inline: 9px; }
  .community-launch span { display: none; }
  .icon-button { width: 36px; height: 36px; }
  .official-note { margin-top: 8px; }
  main { padding-top: 10px; }
  .welcome-card { height: 370px; }
  .welcome-card > img { object-position: center 48%; }
  .welcome-content { padding: 18px; }
  .hero-official-logo { width: min(236px, 66%); }
  .hero-yearmark { right: -5px; bottom: -22px; font-size: 88px; }
  .hero-copy h1 { font-size: 31px; }
  .hero-guide-name { font-size: 18px; }
  .hero-meta { margin-top: 8px; font-size: 9px; }
  .hero-actions { margin-top: 14px; gap: 8px; }
  .hero-button, .hero-link { min-height: 40px; padding-inline: 11px; }
  .hero-button { font-size: 13px; }
  .hero-link { font-size: 11px; }
  .campus-signature { min-height: 116px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .campus-signature > div:nth-child(3) { border-left: 0; }
  .campus-signature > div:nth-child(n + 3) { border-top: 1px solid #e9edeb; }
  .campus-signature strong { font-size: 12px; }
  .guide-panel, .campus-stories, .about-nyist { padding: 22px 0; }
  .section-heading { margin-bottom: 17px; }
  .about-intro { grid-template-columns: 1fr; gap: 13px; }
  .about-intro h3 { font-size: 18px; }
  .about-year { font-size: 27px; text-align: left; }
  .about-year span { display: inline; margin-right: 5px; }
  .identity-strip { grid-template-columns: 1fr; }
  .identity-strip > div { min-height: 72px; padding: 11px 13px; }
  .identity-strip > div + div { border-left: 0; border-top: 1px solid #dfe5e2; }
  .identity-strip img { width: min(100%, 420px); height: 28px; }
  .community-strip { grid-template-columns: auto 1fr; gap: 10px; }
  .community-strip > button { grid-column: 1 / -1; width: 100%; }
  .quick-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px 4px; }
  .quick-grid strong { font-size: 11px; }
  .quick-icon { width: 42px; height: 42px; }
  .campus-gallery { gap: 8px; }
  .campus-photo-main { aspect-ratio: 16 / 9; }
  .campus-photo figcaption { padding: 18px 10px 8px; }
  .campus-photo figcaption strong { font-size: 11px; }
  .campus-photo figcaption span { font-size: 8px; }
  .campus-media-intro { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .campus-media-intro > div { grid-column: 1 / -1; }
  .campus-media-intro > span { min-height: 42px; display: grid; grid-template-columns: auto auto; place-content: center; align-items: baseline; gap: 4px; background: #f3f6f8; border-radius: 6px; }
  .campus-media-intro b, .campus-media-intro small { display: inline; }
  .campus-video-block > header { align-items: center; }
  .explore-grid, .service-grid { grid-template-columns: 1fr; }
  .explore-wide, .service-wide { grid-column: auto; }
  .entry-backdrop, .modal-backdrop, .community-backdrop { padding: 0; place-items: end center; }
  .entry-sheet, .modal, .community-sheet { width: 100%; max-height: 92vh; border-radius: 8px 8px 0 0; }
  .photo-backdrop { padding: 0; }
  .photo-viewer { width: 100%; height: 100%; max-height: none; border-radius: 0; }
  .photo-stage { flex: 1; aspect-ratio: auto; }
  .photo-nav { width: 40px; height: 40px; }
  .photo-prev { left: 9px; }
  .photo-next { right: 9px; }
  .entry-community .entry-content { padding: 20px 15px 16px; }
  .entry-community .entry-content > h2 { margin-top: 12px; font-size: 21px; }
  .entry-community .entry-content > p { padding-right: 4px; }
  .entry-qr-card { padding: 13px; }
  .entry-qr-frame { width: min(270px, 70vw); }
  .community-body { padding: 17px 15px; }
  .community-body > h2 { font-size: 21px; }
  .community-overview { padding: 9px 5px; }
  .community-overview > div { gap: 4px; }
  .community-qr-frame { width: min(310px, 82vw); }
  .dorm-rooms { grid-template-columns: 1fr; }
  .campus-facilities ul { grid-template-columns: 1fr; }
}

@media (max-width: 360px) {
  .page-shell { width: min(var(--shell), calc(100% - 20px)); }
  .brand-copy strong { font-size: 14px; }
  .brand-copy small { font-size: 8px; }
  .welcome-card { height: 358px; }
  .welcome-content { padding: 15px; }
  .hero-copy h1 { font-size: 28px; }
  .hero-actions { gap: 6px; }
  .hero-button, .hero-link { padding-inline: 9px; }
  .quick-grid strong { font-size: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
