/* ============================================
   锡望 · 无锡学院新生指南
   深色科技官网 UI × 磨砂玻璃融合
   深灰底色 · 青蓝发光 · 圆角卡片 · 滚动淡入 · 现代科技感
   ============================================ */

:root {
  --bg-0: #eef6ff;
  --bg-1: #f5faff;
  --bg-2: #e4f0fb;
  --ink: #22334d;
  --muted: #5b7290;
  --muted-2: #8aa0bb;
  --accent: #2fa8e0;
  --accent-strong: #1c8fd0;
  --accent-soft: rgba(47, 168, 224, 0.12);
  --accent-border: rgba(47, 168, 224, 0.34);
  --accent-glow: 0 0 20px rgba(47, 168, 224, 0.22);
  --teal: #2fa89b;
  --coral: #e07a6a;
  --glass-bg: rgba(255, 255, 255, 0.6);
  --glass-bg-strong: rgba(255, 255, 255, 0.82);
  --glass-bg-hover: rgba(255, 255, 255, 0.35);
  --glass-border: rgba(140, 190, 235, 0.28);
  --glass-border-strong: rgba(120, 185, 245, 0.5);
  --shadow-soft: 0 12px 34px rgba(60, 110, 170, 0.12);
  --shadow-hover: 0 20px 52px rgba(60, 110, 170, 0.2), 0 0 26px rgba(47, 168, 224, 0.16);
  --blur: blur(20px);
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 26px;
  --max-width: 1180px;
  --container-padding: 24px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }

body {
  margin: 0;
  padding-bottom: 96px;
  color: var(--ink);
  background:
    radial-gradient(1100px 620px at 12% -6%, rgba(129, 190, 240, 0.5), transparent 62%),
    radial-gradient(900px 560px at 88% 18%, rgba(168, 214, 250, 0.45), transparent 60%),
    radial-gradient(1000px 700px at 50% 110%, rgba(120, 175, 225, 0.36), transparent 65%),
    linear-gradient(160deg, var(--bg-0) 0%, var(--bg-1) 45%, var(--bg-2) 100%);
  background-attachment: fixed;
  font-family: "Microsoft YaHei UI", "PingFang SC", "Noto Sans CJK SC", "Source Han Sans SC", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
button { color: inherit; }

h1, h2, h3, h4 { color: var(--ink); margin: 0 0 0.5em; letter-spacing: -0.01em; }

a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible {
  outline: 3px solid rgba(63, 208, 255, 0.35);
  outline-offset: 2px;
}

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 var(--container-padding); }

/* ===== 滚动淡入动画（渐进增强：无 JS 时元素正常显示） ===== */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* 磨砂玻璃卡片通用 */
.glass-card {
  background: var(--glass-bg);
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 1000; min-height: 72px;
  display: flex; align-items: center; gap: 18px;
  padding: 10px max(24px, calc((100vw - var(--max-width)) / 2));
  background: rgba(240, 248, 255, 0.55);
  -webkit-backdrop-filter: blur(22px) saturate(1.4);
  backdrop-filter: blur(22px) saturate(1.4);
  border-bottom: 1px solid rgba(140, 190, 235, 0.3);
}

.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand-mark {
  display: grid; place-items: center; width: 42px; aspect-ratio: 1;
  color: #fff; background: linear-gradient(135deg, #4fb8ec, #1c8fd0);
  font: 800 21px/1 "Songti SC", "STSong", serif;
  border-radius: 14px;
  box-shadow: 0 0 20px rgba(63, 208, 255, 0.45);
}
.brand strong, .brand small { display: block; }
.brand strong { font-size: 15px; }
.brand small { margin-top: 2px; color: var(--muted); font-size: 11px; }

/* 底部折叠导航（深色磨砂胶囊） */
.main-nav {
  position: fixed; z-index: 1200; left: 16px; bottom: 16px;
  width: max-content; display: flex; align-items: center; gap: 4px;
  padding: 6px;
  background: rgba(255, 255, 255, 0.6);
  -webkit-backdrop-filter: blur(26px) saturate(1.4);
  backdrop-filter: blur(26px) saturate(1.4);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 999px;
  box-shadow: 0 18px 44px rgba(60, 110, 170, 0.2), 0 0 24px rgba(47, 168, 224, 0.08);
  transition: border-radius 180ms ease, box-shadow 180ms ease;
}
.main-nav a {
  min-width: 118px; height: 44px;
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  color: #40536e; font-size: 12px; border-radius: 999px; white-space: nowrap;
  transition: color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}
.main-nav a:hover, .main-nav a:focus-visible, .main-nav a.active {
  color: #fff;
  background: linear-gradient(135deg, #4fb8ec, #1c8fd0);
  box-shadow: 0 0 18px rgba(47, 168, 224, 0.4);
}
.main-nav svg { width: 16px; }
.main-nav:not(.is-open) { width: 58px; height: 58px; display: grid; place-items: center; padding: 4px; border-radius: 50%; }
.main-nav:not(.is-open):hover { transform: scale(1.06); }
.main-nav:not(.is-open) a { display: none; }
.nav-toggle {
  flex: 0 0 auto; width: 46px; height: 46px;
  display: grid; place-items: center; margin: 0; padding: 0;
  color: #1c8fd0; background: transparent; border: 0; border-radius: 50%;
  line-height: 0; cursor: pointer;
}
.nav-toggle:hover { color: #0f6ca8; }
.nav-toggle svg { width: 20px; height: 20px; display: block; }
.main-nav.is-open .nav-toggle { margin-right: 2px; }

main { overflow: hidden; }
.home-main { overflow: visible; }

/* ---------- Home hero（深色科技渐变） ---------- */
.welcome-hero {
  position: relative; min-height: clamp(540px, 72vh, 740px);
  display: flex; align-items: center; overflow: hidden; color: #fff;
  background:
    radial-gradient(800px 420px at 78% 20%, rgba(63, 208, 255, 0.18), transparent 60%),
    linear-gradient(140deg, #0b1c33 0%, #123049 55%, #0e3a5e 100%);
}
.welcome-photo, .welcome-shade { position: absolute; inset: 0; width: 100%; height: 100%; }
.welcome-photo { z-index: 0; object-fit: cover; object-position: center 45%; filter: saturate(0.8) contrast(1.05) brightness(0.5); opacity: 0.8; }
.welcome-shade { z-index: 1; background: rgba(8, 14, 26, 0.4); }
.welcome-content { position: relative; z-index: 2; width: min(var(--max-width), calc(100% - 48px)); margin: 0 auto; padding: 56px 0 76px; }
.welcome-content .eyebrow { color: #6fd8ff; text-shadow: 0 0 16px rgba(63, 208, 255, 0.4); }
.welcome-content h1 { max-width: 840px; margin: 0; color: #f2f8ff; font-size: 72px; line-height: 1.06; font-weight: 800; text-shadow: 0 0 34px rgba(63, 208, 255, 0.3); }
.welcome-content > p:last-of-type { max-width: 640px; margin: 24px 0 30px; color: #dceaf7; font-size: 17px; line-height: 1.8; }

.primary-link {
  min-height: 48px; display: inline-flex; align-items: center; gap: 10px; padding: 0 24px;
  color: #fff;
  background: linear-gradient(135deg, #4fb8ec, #1c8fd0);
  border: 1px solid rgba(120, 210, 255, 0.6);
  border-radius: 999px; font-weight: 800;
  box-shadow: 0 0 24px rgba(47, 168, 224, 0.4);
  transition: box-shadow 160ms ease, transform 120ms ease, background 160ms ease;
}
.primary-link:hover { box-shadow: 0 0 36px rgba(47, 168, 224, 0.55); transform: translateY(-1px); background: linear-gradient(135deg, #63c4f2, #2b9fe0); }
.primary-link svg { width: 18px; }

.hero-next {
  position: absolute; z-index: 3; right: max(24px, calc((100vw - var(--max-width)) / 2)); bottom: 24px;
  width: 46px; height: 46px; display: grid; place-items: center;
  color: #8fe4ff; background: rgba(63, 208, 255, 0.1);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border: 1px solid rgba(63, 208, 255, 0.35); border-radius: 50%;
  box-shadow: 0 0 18px rgba(63, 208, 255, 0.2);
}
.hero-next:hover { color: #fff; background: #2fa8e0; }
.hero-next svg { width: 19px; }

.photo-credit {
  position: absolute; z-index: 3; left: max(24px, calc((100vw - var(--max-width)) / 2)); bottom: 22px;
  color: rgba(190, 214, 235, 0.6); font-size: 10px;
}
.photo-credit:hover { color: #8fe4ff; }

/* ---------- Guide path ---------- */
.guide-path { background: transparent; }
.guide-path-inner { max-width: var(--max-width); margin: 0 auto; padding: 70px var(--container-padding) 40px; }
.guide-path-heading { margin-bottom: 28px; }
.guide-path-heading h2 { max-width: 640px; margin: 0; font-size: 34px; line-height: 1.3; }

.section-index { margin: 0 0 8px; color: var(--accent); font-size: 11px; font-weight: 800; letter-spacing: 0.14em; text-shadow: 0 0 14px rgba(63, 208, 255, 0.35); }

.guide-stages { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.guide-stage {
  display: flex; align-items: center; gap: 12px; padding: 18px 16px;
  background: var(--glass-bg);
  -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease, background 160ms ease;
}
.guide-stage:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); border-color: var(--accent-border); background: var(--glass-bg-hover); }
.guide-stage > span { color: var(--accent); font: 800 22px/1 Georgia, serif; text-shadow: 0 0 14px rgba(63, 208, 255, 0.4); }
.guide-stage > div { flex: 1; min-width: 0; }
.guide-stage strong { display: block; font-size: 15px; }
.guide-stage p { margin: 3px 0 0; color: var(--muted); font-size: 12px; }
.guide-stage > i { color: var(--muted-2); }
.guide-stage svg { width: 17px; }

/* ---------- Module directory ---------- */
.module-directory { max-width: var(--max-width); margin: 0 auto; padding: 60px 0 90px; }
.directory-heading { display: flex; justify-content: space-between; align-items: end; gap: 40px; margin-bottom: 34px; }
.directory-heading h2 { max-width: 620px; margin: 0; font-size: 38px; line-height: 1.3; }
.directory-legend { display: flex; gap: 14px; color: var(--muted); font-size: 12px; white-space: nowrap; }
.directory-legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.legend-dot.prepare { background: var(--accent); box-shadow: 0 0 10px rgba(63, 208, 255, 0.6); }
.legend-dot.life { background: var(--coral); box-shadow: 0 0 10px rgba(255, 138, 122, 0.5); }
.legend-dot.growth { background: var(--teal); box-shadow: 0 0 10px rgba(77, 212, 195, 0.5); }

.module-links { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.module-link {
  position: relative; min-height: 172px; display: flex; flex-direction: column;
  padding: 22px;
  background: var(--glass-bg);
  -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease, background 160ms ease;
}
.module-link::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(420px 200px at 20% 0%, rgba(63, 208, 255, 0.1), transparent 60%);
  opacity: 0; transition: opacity 160ms ease;
}
.module-link:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); border-color: var(--accent-border); background: var(--glass-bg-hover); }
.module-link:hover::before { opacity: 1; }
.module-link > i:first-of-type {
  width: 34px; height: 34px; display: grid; place-items: center;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  border-radius: 12px;
  box-shadow: 0 0 14px rgba(63, 208, 255, 0.18);
}
.module-link svg { width: 17px; }
.module-link > i:last-of-type { position: absolute; top: 20px; right: 20px; color: rgba(120, 155, 195, 0.5); }
.module-link:hover > i:last-of-type { color: var(--accent); }
.module-link > div { margin-top: auto; }
.module-group { display: block; margin: 14px 0 4px; color: var(--muted); font-size: 11px; }
.module-link h3 { margin: 0; font-size: 20px; }
.module-link p { margin: 4px 0 0; color: var(--muted); font-size: 13px; }
.module-number { position: absolute; right: 20px; bottom: 16px; color: rgba(120, 170, 215, 0.1); font: 800 30px/1 Georgia, serif; }
.module-photo-note { margin: 22px 0 0; color: var(--muted-2); font-size: 12px; }

/* ---------- Forum promo ---------- */
.forum-promo { background: transparent; }
.forum-promo-inner {
  max-width: var(--max-width); margin: 0 auto;
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 44px; align-items: center;
  padding: 60px var(--container-padding);
}
.forum-promo-copy {
  padding: 36px;
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(24px) saturate(1.3); backdrop-filter: blur(24px) saturate(1.3);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}
.forum-promo .section-index { color: var(--accent); }
.forum-promo h2 { margin: 0 0 12px; font-size: 30px; line-height: 1.3; }
.forum-intro { margin: 0 0 20px; color: var(--muted); font-size: 15px; }
.forum-topics { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 20px; }
.forum-topics span {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px;
  color: #1c6ea8;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(120, 190, 235, 0.4);
  border-radius: 999px; font-size: 13px;
}
.forum-topics svg { width: 15px; color: var(--accent); }
.forum-safety { display: flex; gap: 8px; margin: 0; color: var(--muted); font-size: 12px; }
.forum-safety svg { width: 16px; flex: 0 0 auto; margin-top: 3px; color: var(--accent); }
.forum-poster { margin: 0; }
.forum-poster img {
  width: 100%; border-radius: var(--radius-lg);
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.5), 0 0 30px rgba(63, 208, 255, 0.1);
  border: 1px solid rgba(120, 190, 255, 0.18);
}
.forum-poster figcaption { margin-top: 10px; color: var(--muted); font-size: 12px; text-align: center; }

/* ---------- Official resources ---------- */
.official-resources { background: transparent; }
.official-resources-inner {
  max-width: var(--max-width); margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center; gap: 30px;
  padding: 20px var(--container-padding) 10px;
}
.official-resources h2 { margin: 0; font-size: 24px; }
.official-links { display: flex; gap: 12px; }
.official-links a {
  display: inline-flex; align-items: center; gap: 6px; padding: 11px 16px;
  color: var(--ink);
  background: var(--glass-bg);
  -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
  border: 1px solid var(--glass-border);
  border-radius: 999px; font-size: 14px; font-weight: 700;
  box-shadow: var(--shadow-soft);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}
.official-links a:hover { border-color: var(--accent-border); box-shadow: 0 0 18px rgba(63, 208, 255, 0.2); }
.official-links svg { width: 16px; }

/* ---------- Footer ---------- */
footer { padding: 30px 24px 34px; color: var(--muted); text-align: center; }
footer p { margin: 0 0 6px; font-size: 13px; }
footer .footer-note { color: var(--muted-2); font-size: 12px; }

/* ---------- Sub-page hero ---------- */
.module-hero { max-width: var(--max-width); margin: 0 auto; padding: 64px var(--container-padding) 12px; }
.module-hero > div { display: flex; align-items: baseline; gap: 18px; }
.module-hero h1 { margin: 0; font-size: 44px; line-height: 1.15; text-shadow: 0 0 26px rgba(63, 208, 255, 0.25); }
.module-hero > p { max-width: 720px; margin: 14px 0 0; color: var(--muted); }

.page-section { max-width: var(--max-width); margin: 0 auto; padding: 36px var(--container-padding) 72px; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 36px; margin-bottom: 26px; }
.section-heading h2 { max-width: 680px; margin: 0; font-size: 30px; line-height: 1.3; }
.section-heading > p { max-width: 430px; margin: 0 0 4px; color: var(--muted); font-size: 14px; }
.content-heading { display: flex; justify-content: space-between; align-items: end; gap: 30px; margin-bottom: 22px; }
.content-heading h2 { max-width: 640px; margin: 0; font-size: 26px; line-height: 1.3; }
.content-heading > p { max-width: 420px; margin: 0 0 3px; color: var(--muted); font-size: 13px; }
.source-note { margin: 22px 0 0; color: var(--muted-2); font-size: 12px; }

/* ---------- Map page ---------- */
.map-control-panel { display: flex; gap: 10px; margin-bottom: 16px; }
.campus-switcher {
  display: inline-flex; gap: 4px; padding: 5px;
  background: var(--glass-bg);
  -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  box-shadow: var(--shadow-soft);
}
.campus-switcher button {
  padding: 8px 18px; color: var(--muted); background: transparent;
  border: 0; border-radius: 999px; font-size: 14px; font-weight: 700; cursor: pointer;
}
.campus-switcher button.active {
  color: #fff;
  background: linear-gradient(135deg, #4fb8ec, #1c8fd0);
  box-shadow: 0 0 16px rgba(47, 168, 224, 0.4);
}
.campus-map-figure { margin: 0; }
.campus-image-shell {
  border-radius: var(--radius-lg); overflow: hidden;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-soft);
}
.campus-image-shell img { width: 100%; height: auto; display: block; }
.map-meta { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; color: var(--muted); font-size: 13px; }
.map-status { display: inline-flex; align-items: center; gap: 8px; }
.status-dot { width: 9px; height: 9px; border-radius: 50%; background: #3aa76d; box-shadow: 0 0 0 3px rgba(58, 167, 109, 0.18), 0 0 10px rgba(58, 167, 109, 0.6); }

.transport-panel {
  margin-top: 18px; padding: 20px 22px;
  background: var(--glass-bg);
  -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
}
.transport-panel h4 { margin: 0 0 12px; font-size: 15px; }
.transport-tips { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.transport-tips p { display: flex; gap: 10px; margin: 0; color: var(--muted); font-size: 13px; }
.transport-tips svg { width: 18px; flex: 0 0 auto; color: var(--accent); margin-top: 2px; }
.transport-tips strong { color: var(--ink); display: block; }

.travel-guide { margin-top: 60px; }
.transit-anchor-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 56px; }
.transit-anchor, .arrival-route, .rail-hub-grid article, .travel-decisions article, .shuttle-directions article {
  padding: 20px;
  background: var(--glass-bg);
  -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}
.transit-anchor:hover, .arrival-route:hover, .rail-hub-grid article:hover, .travel-decisions article:hover {
  transform: translateY(-3px); box-shadow: var(--shadow-hover); border-color: var(--accent-border); background: var(--glass-bg-hover);
}
.transit-anchor > div { display: flex; align-items: center; gap: 7px; color: var(--accent); font-size: 12px; font-weight: 700; }
.transit-anchor svg { width: 16px; }
.transit-anchor h3 { margin: 10px 0 6px; font-size: 17px; }
.transit-anchor p { margin: 0 0 10px; color: var(--muted); font-size: 13px; }
.transit-anchor small { color: var(--muted-2); font-size: 11px; }

.arrival-guide { margin-bottom: 56px; }
.arrival-route-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.arrival-route header { display: flex; align-items: center; gap: 9px; margin-bottom: 8px; }
.arrival-route header > span { color: var(--accent); font: 800 13px Georgia, serif; }
.arrival-route header svg { width: 17px; color: var(--accent); }
.arrival-route h3 { margin: 0; font-size: 16px; }
.arrival-route p { margin: 0 0 10px; color: var(--muted); font-size: 13px; }
.arrival-route small { color: var(--muted-2); font-size: 11px; }

.rail-hub-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 56px; }
.rail-hub-grid article > div { display: flex; align-items: center; gap: 7px; color: var(--accent); font-size: 12px; font-weight: 700; }
.rail-hub-grid svg { width: 16px; }
.rail-hub-grid h3 { margin: 10px 0 6px; font-size: 17px; }
.rail-hub-grid p { margin: 0; color: var(--muted); font-size: 13px; }

.travel-decisions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 56px; }
.travel-decisions article { display: flex; gap: 12px; }
.travel-decisions svg { width: 20px; flex: 0 0 auto; color: var(--accent); }
.travel-decisions h3 { margin: 0 0 4px; font-size: 15px; }
.travel-decisions p { margin: 0; color: var(--muted); font-size: 13px; }

.shuttle-directions { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 18px; }
.shuttle-directions header { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.shuttle-directions header svg { width: 18px; color: var(--accent); }
.shuttle-directions h3 { margin: 0; font-size: 15px; }
.shuttle-directions header p { margin: 2px 0 0; color: var(--muted); font-size: 12px; }
.shuttle-times { display: flex; flex-wrap: wrap; gap: 8px; }
.shuttle-times span {
  padding: 6px 14px; color: #1c6ea8;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(120, 190, 235, 0.4);
  border-radius: 999px;
  font: 700 13px/1.2 "SF Mono", Consolas, monospace;
}
.travel-source-links { display: flex; gap: 18px; margin-top: 4px; }
.travel-source-links a { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; }
.travel-source-links svg { width: 14px; }

/* ---------- Schedule page ---------- */
.schedule-block { margin-bottom: 56px; }
.schedule-board {
  padding: 28px;
  background: var(--glass-bg);
  -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}
.time-display { display: flex; align-items: center; gap: 16px; font: 800 44px/1 "SF Mono", Consolas, monospace; color: #d8f2ff; text-shadow: 0 0 20px rgba(63, 208, 255, 0.35); }
.time-display svg { width: 26px; color: var(--accent); }
.run-rules { display: flex; gap: 30px; margin: 20px 0 18px; }
.rule-number { display: block; color: var(--accent); font: 800 34px/1 Georgia, serif; text-shadow: 0 0 16px rgba(63, 208, 255, 0.4); }
.rule-number.accent { color: var(--coral); text-shadow: 0 0 16px rgba(255, 138, 122, 0.35); }
.run-rules p { margin: 4px 0 0; color: var(--muted); font-size: 12px; }
.run-rules p strong { color: var(--ink); display: block; font-size: 12px; }
.timeline { display: flex; align-items: center; gap: 12px; margin: 8px 0 16px; color: var(--muted); font-size: 12px; }
.timeline-track { position: relative; flex: 1; height: 8px; background: rgba(90, 130, 180, 0.2); border-radius: 999px; overflow: hidden; }
.timeline-track span { position: absolute; inset: 0; width: 55%; background: linear-gradient(90deg, #1c8fd0, #4fb8ec); border-radius: 999px; box-shadow: 0 0 12px rgba(63, 208, 255, 0.5); }
.schedule-caution { display: flex; align-items: flex-start; gap: 8px; margin: 0; color: var(--muted); font-size: 12px; }
.schedule-caution svg { width: 15px; flex: 0 0 auto; margin-top: 3px; color: var(--accent); }

.teaching-schedule { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.day-part {
  transition: background 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
  padding: 22px;
  background: var(--glass-bg);
  -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
}
.day-part h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; font-size: 16px; }
.day-part h3 svg { width: 18px; color: var(--accent); }
.class-row { display: flex; justify-content: space-between; align-items: center; padding: 9px 0; border-bottom: 1px dashed rgba(100, 145, 195, 0.18); font-size: 14px; }
.class-row:last-child { border-bottom: 0; }
.class-row time { font: 700 13px/1.2 "SF Mono", Consolas, monospace; color: var(--muted); }
.class-row.bell-row { color: var(--accent); font-size: 12px; font-weight: 700; }
.class-row.bell-row time { color: var(--accent); }

/* ---------- Dorms page ---------- */
.dorm-overview {
  display: flex; align-items: center; gap: 22px; margin-bottom: 22px; padding: 20px 22px;
  background: var(--glass-bg);
  -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
}
.dorm-overview > div { display: flex; align-items: baseline; gap: 6px; }
.dorm-overview strong { color: var(--accent); font: 800 30px/1 Georgia, serif; text-shadow: 0 0 14px rgba(63, 208, 255, 0.35); }
.dorm-overview span { color: var(--muted); font-size: 13px; }
.dorm-overview p { display: flex; align-items: flex-start; gap: 7px; margin: 0 0 0 auto; max-width: 460px; color: var(--muted); font-size: 12px; }
.dorm-overview svg { width: 15px; flex: 0 0 auto; margin-top: 3px; color: var(--accent); }

.search-box {
  display: flex; align-items: center; gap: 10px; max-width: 480px; margin-bottom: 18px;
  padding: 0 16px; height: 50px;
  background: var(--glass-bg);
  -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  box-shadow: var(--shadow-soft);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}
.search-box:focus-within { border-color: var(--accent-border); box-shadow: 0 0 18px rgba(63, 208, 255, 0.18); }
.search-box svg { width: 17px; color: var(--muted); }
.search-box input { flex: 1; min-width: 0; border: 0; background: transparent; outline: none; font-size: 14px; color: var(--ink); }
.search-box input::placeholder { color: var(--muted-2); }
.search-box kbd {
  padding: 2px 10px; color: var(--muted);
  background: rgba(63, 208, 255, 0.08);
  border: 1px solid rgba(63, 208, 255, 0.2);
  border-radius: 999px;
  font: 700 12px/1.4 Consolas, monospace;
}

.dorm-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.dorm-card {
  position: relative; padding: 20px;
  background: var(--glass-bg);
  -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}
.dorm-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); border-color: var(--accent-border); background: var(--glass-bg-hover); }
.dorm-card > svg { width: 22px; color: var(--accent); }
.dorm-card h2 { margin: 10px 0 6px; font-size: 18px; }
.dorm-index { position: absolute; top: 18px; right: 18px; color: rgba(110, 160, 210, 0.12); font: 800 18px Georgia, serif; }
.review-badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 11px; font-weight: 700; }
.review-badge.renovated { color: #ffd27a; background: rgba(255, 190, 90, 0.12); border: 1px solid rgba(255, 190, 90, 0.28); }
.review-badge.suite { color: #c3a5ff; background: rgba(170, 130, 255, 0.12); border: 1px solid rgba(170, 130, 255, 0.28); }
.review-badge.updating { color: #7fe8d2; background: rgba(77, 212, 195, 0.1); border: 1px solid rgba(77, 212, 195, 0.26); }
.review-badge.new { color: #9cdcff; background: rgba(63, 208, 255, 0.1); border: 1px solid rgba(63, 208, 255, 0.26); }
.review-badge.apartment { color: #ffa89a; background: rgba(255, 138, 122, 0.1); border: 1px solid rgba(255, 138, 122, 0.26); }
.dorm-facts { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0; }
.dorm-facts span {
  padding: 4px 10px; color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(120, 170, 220, 0.14);
  border-radius: 999px; font-size: 12px;
}
.dorm-card > p { margin: 0 0 10px; color: var(--muted); font-size: 13px; }
.dorm-review { margin: 0; padding: 10px 14px; background: rgba(0, 0, 0, 0.2); border-radius: 12px; list-style: none; font-size: 12px; }
.dorm-review li { margin: 4px 0; color: var(--muted); }
.dorm-review strong { color: var(--ink); }

.empty-state { padding: 40px; color: var(--muted); text-align: center; }
.empty-state svg { width: 30px; color: rgba(110, 160, 210, 0.35); margin-bottom: 8px; }
.empty-state p { margin: 0; }

.dorm-sources {
  margin-top: 46px; padding: 28px;
  background: var(--glass-bg);
  -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}
.dorm-sources h2 { margin: 0 0 10px; font-size: 22px; }
.dorm-sources > p { max-width: 760px; margin: 0 0 14px; color: var(--muted); font-size: 13px; }
.dorm-source-links { display: flex; flex-wrap: wrap; gap: 16px; }
.dorm-source-links a { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; }
.dorm-source-links svg { width: 14px; }

/* ---------- Community comments ---------- */
.community-comments { margin-top: 56px; }
.comment-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.comment-feed, .comment-form {
  padding: 24px;
  background: var(--glass-bg);
  -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
}
.comment-target-label { display: block; margin-bottom: 8px; color: var(--muted); font-size: 12px; font-weight: 700; }
.comment-select-wrap { position: relative; display: flex; align-items: center; }
.comment-select-wrap svg:first-child { position: absolute; left: 12px; width: 16px; color: var(--muted); pointer-events: none; }
.comment-select-wrap svg:last-child { position: absolute; right: 12px; width: 15px; color: var(--muted); pointer-events: none; }
.comment-select-wrap select {
  width: 100%; height: 46px; padding: 0 34px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(140, 190, 235, 0.4);
  border-radius: 999px; font-size: 14px; appearance: none;
}
.comment-list { margin-top: 14px; }
.comment-item { padding: 12px 0; border-bottom: 1px dashed rgba(100, 145, 195, 0.18); }
.comment-item:last-child { border-bottom: 0; }
.comment-item header { display: flex; justify-content: space-between; gap: 10px; }
.comment-item strong { font-size: 13px; }
.comment-item time { color: var(--muted-2); font-size: 11px; }
.comment-item p { margin: 6px 0 0; color: var(--muted); font-size: 13px; }
.comment-state { margin: 0; color: var(--muted); font-size: 13px; }

.secondary-button {
  display: inline-flex; align-items: center; gap: 6px; padding: 10px 18px;
  color: var(--ink);
  background: rgba(63, 208, 255, 0.08);
  border: 1px solid rgba(63, 208, 255, 0.24);
  border-radius: 999px; font-size: 13px; font-weight: 700; cursor: pointer;
  transition: background 160ms ease, box-shadow 160ms ease;
}
.secondary-button:hover { background: rgba(63, 208, 255, 0.16); box-shadow: 0 0 14px rgba(63, 208, 255, 0.2); }
.secondary-button svg { width: 15px; }

.comment-form-heading { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.comment-form-heading svg { width: 22px; color: var(--accent); }
.comment-form-heading h3 { margin: 0; font-size: 16px; }
.comment-form-heading p { margin: 2px 0 0; color: var(--muted); font-size: 12px; }
.comment-form label { display: block; margin-bottom: 12px; }
.comment-form label > span { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 700; }
.comment-form label small { color: var(--muted); font-weight: 400; }
.comment-form input[type="text"], .comment-form textarea {
  width: 100%; padding: 11px 14px; color: var(--ink);
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(140, 190, 235, 0.4);
  border-radius: 12px; font-size: 14px; resize: vertical;
}
.comment-form input[type="text"]::placeholder, .comment-form textarea::placeholder { color: var(--muted-2); }
.comment-form textarea { min-height: 120px; }
.comment-honeypot { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }
.comment-consent { display: flex; align-items: flex-start; gap: 8px; font-size: 12px; color: var(--muted); }
.comment-consent input { margin-top: 3px; }
.primary-comment-button {
  display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px;
  color: #fff;
  background: linear-gradient(135deg, #4fb8ec, #1c8fd0);
  border: 0; border-radius: 999px; font-size: 14px; font-weight: 800; cursor: pointer;
  box-shadow: 0 0 20px rgba(47, 168, 224, 0.35);
  transition: box-shadow 160ms ease;
}
.primary-comment-button:hover { box-shadow: 0 0 30px rgba(63, 208, 255, 0.55); }
.primary-comment-button:disabled { opacity: 0.55; cursor: not-allowed; }
.primary-comment-button svg { width: 16px; }
.comment-submit-status { margin: 10px 0 0; color: var(--muted); font-size: 12px; }
.comment-privacy { display: flex; align-items: flex-start; gap: 7px; margin: 14px 0 0; color: var(--muted); font-size: 12px; }
.comment-privacy svg { width: 15px; flex: 0 0 auto; margin-top: 3px; color: var(--teal); }

/* ---------- Clubs page ---------- */
.club-tools { display: flex; gap: 12px; margin-bottom: 16px; }
.club-tools .search-box { margin-bottom: 0; flex: 1; max-width: none; }
.select-box { position: relative; display: flex; align-items: center; }
.select-box select {
  height: 50px; padding: 0 38px 0 16px; color: var(--ink);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 999px; font-size: 14px; appearance: none;
  box-shadow: var(--shadow-soft);
}
.select-box svg { position: absolute; right: 12px; width: 15px; color: var(--muted); pointer-events: none; }
.segmented-filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.filter-button {
  padding: 9px 18px; color: var(--muted);
  background: var(--glass-bg);
  -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
  border: 1px solid var(--glass-border);
  border-radius: 999px; font-size: 13px; font-weight: 700; cursor: pointer;
  transition: color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}
.filter-button:hover { color: var(--ink); border-color: var(--accent-border); }
.filter-button.active {
  color: #fff;
  background: linear-gradient(135deg, #4fb8ec, #1c8fd0);
  border-color: transparent;
  box-shadow: 0 0 16px rgba(47, 168, 224, 0.4);
}
.club-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.club-card {
  padding: 20px;
  background: var(--glass-bg);
  -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}
.club-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); border-color: var(--accent-border); background: var(--glass-bg-hover); }
.club-card .club-type { display: inline-block; padding: 3px 10px; margin-bottom: 8px; border-radius: 999px; font-size: 11px; font-weight: 700; }
.club-card h3 { margin: 0 0 4px; font-size: 17px; }
.club-card p { margin: 0; color: var(--muted); font-size: 13px; }
.list-footer { display: flex; align-items: center; gap: 14px; margin-top: 20px; }
.list-footer p { margin: 0; color: var(--muted); font-size: 13px; }

/* ---------- Competitions page ---------- */
.catalog-stats { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; margin-bottom: 24px; }
.catalog-stats > div {
  padding: 20px;
  background: var(--glass-bg);
  -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  text-align: center;
}
.catalog-stats strong { display: block; color: var(--accent); font: 800 30px/1 Georgia, serif; text-shadow: 0 0 14px rgba(63, 208, 255, 0.35); }
.catalog-stats span { color: var(--muted); font-size: 12px; }
.competition-tools { display: flex; gap: 12px; margin-bottom: 16px; }
.competition-tools .search-box { margin-bottom: 0; flex: 1; max-width: none; }
.catalog-header { display: grid; grid-template-columns: 60px 1fr 110px 150px; gap: 12px; padding: 10px 18px; color: var(--muted); font-size: 12px; font-weight: 700; }
.competition-catalog { display: flex; flex-direction: column; gap: 10px; }
.competition-row {
  display: grid; grid-template-columns: 60px 1fr 110px 150px; gap: 12px; align-items: center;
  padding: 15px 18px; font-size: 14px;
  background: var(--glass-bg);
  -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}
.competition-row:hover { border-color: var(--accent-border); box-shadow: var(--shadow-hover); background: var(--glass-bg-hover); }
.competition-row .comp-index { color: var(--muted-2); font: 700 13px Georgia, serif; }
.competition-row strong { font-size: 14px; }
.competition-row .comp-level { display: inline-block; width: fit-content; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.comp-level.a { color: #ffa89a; background: rgba(255, 138, 122, 0.1); border: 1px solid rgba(255, 138, 122, 0.26); }
.comp-level.b { color: #ffd27a; background: rgba(255, 190, 90, 0.1); border: 1px solid rgba(255, 190, 90, 0.26); }
.comp-level.c { color: #9cdcff; background: rgba(63, 208, 255, 0.1); border: 1px solid rgba(63, 208, 255, 0.26); }
.competition-row .comp-dept { color: var(--muted); font-size: 13px; }
.catalog-notes {
  margin-top: 34px; padding: 24px;
  background: var(--glass-bg);
  -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}
.catalog-notes h2 { margin: 0 0 12px; font-size: 20px; }
.catalog-notes ul { margin: 0; padding-left: 18px; }
.catalog-notes li { margin: 8px 0; color: var(--muted); font-size: 13px; }
.catalog-notes li strong { color: var(--ink); display: block; }

/* ---------- Majors page ---------- */
.undergraduate-catalog, .transfer-guide { margin-bottom: 64px; }
.undergraduate-toolbar, .major-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.major-search {
  display: flex; align-items: center; gap: 10px; width: 100%; max-width: 460px; height: 48px;
  padding: 0 16px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  box-shadow: var(--shadow-soft);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}
.major-search:focus-within { border-color: var(--accent-border); box-shadow: 0 0 18px rgba(63, 208, 255, 0.18); }
.major-search svg { width: 17px; color: var(--muted); }
.major-search input { flex: 1; min-width: 0; border: 0; background: transparent; outline: none; font-size: 14px; color: var(--ink); }
.major-search input::placeholder { color: var(--muted-2); }
.undergraduate-toolbar p, .major-toolbar p { margin: 0; color: var(--muted); font-size: 13px; }
.college-major-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.college-major-item {
  display: flex; gap: 14px; padding: 18px;
  background: var(--glass-bg);
  -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}
.college-major-item:hover { border-color: var(--accent-border); box-shadow: var(--shadow-hover); background: var(--glass-bg-hover); }
.college-major-index { color: var(--accent); font: 800 15px Georgia, serif; }
.college-major-item h3 { margin: 0 0 6px; font-size: 15px; }
.college-major-item ul { margin: 0; padding-left: 18px; }
.college-major-item li { margin: 3px 0; color: var(--muted); font-size: 13px; }
.undergraduate-source { margin: 16px 0 0; color: var(--muted-2); font-size: 12px; }

.major-notice {
  display: flex; gap: 10px; padding: 16px 18px; margin-bottom: 20px;
  background: rgba(63, 208, 255, 0.08);
  border: 1px solid rgba(63, 208, 255, 0.22);
  border-radius: var(--radius-md);
}
.major-notice svg { width: 18px; flex: 0 0 auto; color: var(--accent); margin-top: 3px; }
.major-notice strong { display: block; font-size: 14px; }
.major-notice p { margin: 2px 0 0; color: var(--muted); font-size: 13px; }

.major-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 20px; }
.major-stats > div {
  padding: 20px;
  background: var(--glass-bg);
  -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  text-align: center;
}
.major-stats strong { display: block; color: var(--accent); font: 800 30px/1 Georgia, serif; text-shadow: 0 0 14px rgba(63, 208, 255, 0.35); }
.major-stats span { color: var(--muted); font-size: 12px; }
.major-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.major-guide-card {
  padding: 20px;
  background: var(--glass-bg);
  -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}
.major-guide-card:hover { border-color: var(--accent-border); box-shadow: var(--shadow-hover); background: var(--glass-bg-hover); }
.major-guide-card h3 { margin: 0 0 10px; font-size: 15px; }
.major-guide-card table { width: 100%; border-collapse: collapse; font-size: 13px; }
.major-guide-card th, .major-guide-card td { padding: 7px 8px; text-align: left; border-bottom: 1px solid rgba(100, 145, 195, 0.16); }
.major-guide-card th { color: var(--muted); font-weight: 700; white-space: nowrap; }
.major-guide-card td { color: var(--muted); }
.major-guide-card td strong { color: var(--ink); }

/* ---------- Gallery page ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 220px; gap: 14px; }
.gallery-item {
  position: relative; margin: 0; padding: 0; border: 0;
  border-radius: var(--radius-md); overflow: hidden; cursor: pointer;
  box-shadow: var(--shadow-soft);
}
.gallery-item img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 320ms ease; }
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item > span {
  position: absolute; left: 0; right: 0; bottom: 0;
  display: flex; justify-content: space-between; align-items: end; gap: 8px;
  padding: 30px 14px 12px; color: #fff; text-align: left;
  background: linear-gradient(to top, rgba(20, 50, 90, 0.62), transparent);
}
.gallery-item strong { font-size: 14px; text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5); }
.gallery-item small { color: rgba(200, 225, 245, 0.85); font-size: 11px; }
.gallery-feature { grid-column: span 2; grid-row: span 2; }
.gallery-wide { grid-column: span 2; }
.gallery-tall { grid-row: span 2; }

.gallery-dialog {
  width: min(920px, calc(100vw - 40px)); padding: 0;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.9);
  -webkit-backdrop-filter: blur(30px); backdrop-filter: blur(30px);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: var(--radius-lg);
  box-shadow: 0 30px 80px rgba(40, 80, 130, 0.35);
}
.gallery-dialog::backdrop { background: rgba(30, 58, 95, 0.55); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.gallery-dialog figure { margin: 0; }
.gallery-dialog img { width: 100%; max-height: 70vh; object-fit: contain; display: block; }
.gallery-dialog figcaption { padding: 14px 18px; color: var(--muted); font-size: 14px; }
.gallery-close, .gallery-prev, .gallery-next {
  position: absolute; z-index: 2; display: grid; place-items: center;
  width: 44px; height: 44px; color: #1c4e7e;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 50%; cursor: pointer;
  box-shadow: 0 6px 18px rgba(40, 80, 130, 0.2);
  transition: color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}
.gallery-close:hover, .gallery-prev:hover, .gallery-next:hover { color: #fff; background: #2fa8e0; box-shadow: 0 0 18px rgba(47, 168, 224, 0.45); }
.gallery-close { top: 14px; right: 14px; }
.gallery-prev { top: 50%; left: 14px; transform: translateY(-50%); }
.gallery-next { top: 50%; right: 14px; transform: translateY(-50%); }
.gallery-close svg, .gallery-prev svg, .gallery-next svg { width: 19px; }

.poetry-entry { max-width: var(--max-width); margin: 0 auto; padding: 0 var(--container-padding) 64px; }
.poetry-entry a {
  position: relative; display: block; min-height: 240px;
  border-radius: var(--radius-lg); overflow: hidden; text-decoration: none;
  box-shadow: var(--shadow-soft);
}
.poetry-entry img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.poetry-entry-shade { position: absolute; inset: 0; background: linear-gradient(to right, rgba(20, 50, 90, 0.6), rgba(20, 50, 90, 0.15)); }
.poetry-entry-copy { position: absolute; left: 26px; bottom: 22px; color: #fff; }
.poetry-entry-copy small { display: block; color: rgba(200, 225, 245, 0.85); font-size: 12px; }
.poetry-entry-copy strong { font-size: 22px; }
.poetry-entry a > i {
  position: absolute; right: 24px; bottom: 24px; width: 42px; height: 42px;
  display: grid; place-items: center; color: #cfe8ff;
  background: rgba(30, 48, 78, 0.6);
  border: 1px solid rgba(120, 190, 255, 0.3);
  border-radius: 50%;
}
.poetry-entry svg { width: 18px; }

/* ---------- Food page ---------- */
.food-intro { max-width: 760px; margin: 0 0 34px; color: var(--muted); }
.food-campus-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin: 40px 0 18px; }
.food-campus-heading > div { display: flex; align-items: baseline; gap: 12px; }
.food-campus-heading > div > span { color: var(--accent); font: 800 20px Georgia, serif; text-shadow: 0 0 12px rgba(63, 208, 255, 0.35); }
.food-campus-heading h2 { margin: 0; font-size: 26px; }
.food-campus-heading > p { margin: 0 0 4px; color: var(--muted); font-size: 13px; }
.food-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.food-card {
  position: relative; padding: 22px;
  background: var(--glass-bg);
  -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}
.food-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); border-color: var(--accent-border); background: var(--glass-bg-hover); }
.food-card > svg { width: 22px; color: var(--accent); }
.food-card small { display: block; margin-top: 10px; color: var(--muted); font-size: 11px; font-weight: 700; }
.food-card h2 { margin: 2px 0 10px; font-size: 18px; }
.food-items { margin: 0; padding-left: 18px; }
.food-items li { margin: 6px 0; color: var(--muted); font-size: 13px; }
.food-card-updating .food-items li { color: var(--muted-2); }
.food-update-badge {
  position: absolute; top: 18px; right: 18px; padding: 3px 10px;
  color: #ffd27a; background: rgba(255, 190, 90, 0.1);
  border: 1px solid rgba(255, 190, 90, 0.26);
  border-radius: 999px; font-size: 11px; font-weight: 700;
}
.food-note { margin: 26px 0 0; color: var(--muted); font-size: 13px; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .module-links { grid-template-columns: repeat(2, 1fr); }
  .guide-stages { grid-template-columns: repeat(2, 1fr); }
  .transit-anchor-grid, .arrival-route-grid { grid-template-columns: repeat(2, 1fr); }
  .dorm-grid, .club-grid { grid-template-columns: repeat(2, 1fr); }
  .catalog-stats { grid-template-columns: repeat(3, 1fr); }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .food-grid { grid-template-columns: repeat(2, 1fr); }
  .forum-promo-inner { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  body { padding-bottom: 76px; }
  .welcome-content h1 { font-size: 42px; }
  .directory-heading, .section-heading, .content-heading, .official-resources-inner { flex-direction: column; align-items: flex-start; gap: 14px; }
  .module-links, .guide-stages, .dorm-grid, .club-grid, .transit-anchor-grid, .arrival-route-grid, .rail-hub-grid, .travel-decisions, .shuttle-directions, .teaching-schedule { grid-template-columns: 1fr; }
  .comment-layout, .college-major-list, .major-list { grid-template-columns: 1fr; }
  .transport-tips { grid-template-columns: 1fr; }
  .catalog-header, .competition-row { grid-template-columns: 44px 1fr 80px; }
  .competition-row .comp-dept { display: none; }
  .catalog-header span:nth-child(4) { display: none; }
  .catalog-stats { grid-template-columns: repeat(3, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-feature { grid-column: span 2; grid-row: span 2; }
  .club-tools, .competition-tools { flex-direction: column; }
  .official-links { flex-wrap: wrap; }
}
