:root {
  --ink: #17201c;
  --muted: #59635e;
  --paper: #ffffff;
  --mist: #f3f6f3;
  --line: #d9e0dc;
  --forest: #19653e;
  --forest-dark: #0e3e29;
  --red: #a52932;
  --gold: #c9902f;
  --shadow: 0 10px 28px rgba(20, 39, 29, 0.10);
  --page: min(1180px, calc(100% - 40px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
  scrollbar-gutter: stable;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  line-height: 1.7;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 1000;
  padding: 8px 12px;
  color: #fff;
  background: var(--forest-dark);
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: none;
}

.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;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(217, 224, 220, 0.9);
  background: rgba(255, 255, 255, 0.96);
}

.header-inner {
  width: var(--page);
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}

.brand-mark {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--forest);
  border-radius: 4px;
  font-family: "SimSun", serif;
  font-size: 24px;
  font-weight: 700;
}

.brand-copy {
  display: grid;
  line-height: 1.2;
}

.brand-copy strong {
  font-size: 17px;
}

.brand-copy span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.site-nav a {
  position: relative;
  padding: 24px 0 21px;
  color: #39423d;
  font-size: 14px;
  font-weight: 700;
}

.site-nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 17px;
  left: 0;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.site-nav a:hover::after,
.site-nav a[aria-current="page"]::after,
.site-nav a:focus-visible::after {
  transform: scaleX(1);
}

.site-nav a:focus-visible {
  outline: none;
  color: var(--red);
}

.nav-logout {
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--muted);
  background: #fff;
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
}

.nav-logout:hover {
  color: var(--red);
  border-color: var(--red);
}

.menu-button {
  width: 42px;
  height: 42px;
  display: none;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--ink);
  background: #fff;
  cursor: pointer;
  font-size: 21px;
}

.hero {
  position: relative;
  min-height: min(78svh, 760px);
  display: flex;
  align-items: end;
  overflow: hidden;
  color: #fff;
  background: #1f342a;
}

.hero-media,
.hero-shade {
  position: absolute;
  inset: 0;
}

.hero-media {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-shade {
  background: rgba(8, 22, 15, 0.58);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: var(--page);
  margin: 0 auto;
  padding: 88px 0 76px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 820px;
  margin: 0;
  font-family: "SimSun", serif;
  font-size: clamp(42px, 6vw, 82px);
  line-height: 1.06;
  letter-spacing: 0;
}

.hero-lead {
  max-width: 660px;
  margin: 22px 0 30px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 17px;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 10px 18px;
  border: 1px solid transparent;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}

.button-primary {
  color: #fff;
  background: var(--red);
}

.button-secondary {
  color: var(--ink);
  border-color: var(--line);
  background: #fff;
}

.button-ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.56);
  background: rgba(0, 0, 0, 0.12);
}

.button:hover {
  filter: brightness(0.95);
}

.section {
  padding: 84px 0;
}

.section-soft {
  background: var(--mist);
}

.section-dark {
  color: #fff;
  background: var(--forest-dark);
}

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

.section-heading {
  max-width: 760px;
  margin-bottom: 38px;
}

.section-heading h2 {
  margin: 0;
  font-family: "SimSun", serif;
  font-size: clamp(30px, 4vw, 50px);
  line-height: 1.18;
  letter-spacing: 0;
}

.section-heading p:last-child {
  margin: 14px 0 0;
  color: var(--muted);
}

.section-dark .section-heading p:last-child {
  color: rgba(255, 255, 255, 0.72);
}

.path-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.path-item {
  min-height: 164px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 18px 14px;
  border: 1px solid transparent;
  border-radius: 8px;
  text-align: center;
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.path-item:hover {
  border-color: var(--line);
  background: var(--mist);
  transform: translateY(-2px);
}

.entry-icon {
  width: 58px;
  height: 58px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 8px;
}

.entry-icon svg {
  width: 30px;
  height: 30px;
  stroke-width: 1.8;
}

.entry-icon-forest {
  color: #176b43;
  background: #e5f3ea;
}

.entry-icon-red {
  color: #a52932;
  background: #f9e8ea;
}

.entry-icon-gold {
  color: #95620d;
  background: #fff1d1;
}

.entry-icon-blue {
  color: #225f8d;
  background: #e5f0f8;
}

.entry-icon-violet {
  color: #70489a;
  background: #f0e9f7;
}

.entry-icon-teal {
  color: #1a7066;
  background: #e0f2ef;
}

.entry-icon-orange {
  color: #a6541d;
  background: #ffeddf;
}

.entry-icon-slate {
  color: #415966;
  background: #e8edf0;
}

.path-item strong {
  margin-top: 14px;
  font-size: 18px;
  line-height: 1.35;
}

.path-item p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.guide-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.guide-card {
  min-height: 182px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  text-align: center;
  box-shadow: 0 1px 0 rgba(23, 32, 28, 0.02);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.guide-card:hover {
  border-color: #aebbb4;
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.card-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.guide-card h3 {
  margin: 14px 0 5px;
  font-size: 18px;
  line-height: 1.35;
  letter-spacing: 0;
}

.guide-card p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.guide-card .arrow {
  margin-top: 18px;
  color: var(--red);
  font-size: 22px;
}

.facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: rgba(255, 255, 255, 0.18);
}

.fact {
  padding: 30px;
  background: var(--forest-dark);
}

.fact strong {
  display: block;
  font-family: "SimSun", serif;
  font-size: 34px;
}

.fact span {
  color: rgba(255, 255, 255, 0.68);
  font-size: 13px;
}

.page-hero {
  padding: 74px 0 58px;
  color: #fff;
  background: var(--forest-dark);
}

.page-hero-inner {
  width: var(--page);
  margin: 0 auto;
}

.page-hero h1 {
  max-width: 850px;
  margin: 0;
  font-family: "SimSun", serif;
  font-size: clamp(38px, 6vw, 66px);
  line-height: 1.12;
  letter-spacing: 0;
}

.page-hero p:last-child {
  max-width: 720px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.76);
}

.subnav {
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.subnav-inner {
  width: var(--page);
  margin: 0 auto;
  display: flex;
  gap: 22px;
  overflow-x: auto;
  scrollbar-width: thin;
}

.subnav a {
  flex: 0 0 auto;
  padding: 15px 0 13px;
  border-bottom: 2px solid transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.subnav a:hover {
  color: var(--red);
  border-color: var(--red);
}

.campus-board-nav {
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.campus-board-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.campus-board {
  min-height: 150px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 18px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  text-align: center;
  transition: border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.campus-board:hover {
  border-color: #b8c5be;
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.campus-board[aria-current="page"] {
  border-color: #93aa9e;
  background: var(--mist);
  box-shadow: 0 6px 16px rgba(20, 39, 29, 0.08);
}

.campus-board strong {
  margin-top: 12px;
  font-size: 17px;
  line-height: 1.35;
}

.campus-board p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.campus-block {
  position: relative;
  border-top: 1px solid transparent;
}

.campus-block-overview {
  border-top-color: rgba(25, 101, 62, 0.32);
}

.campus-block-environment {
  border-top-color: rgba(165, 41, 50, 0.3);
}

.campus-block-services {
  border-top-color: rgba(201, 144, 47, 0.4);
}

.campus-block-training {
  border-top-color: rgba(255, 255, 255, 0.22);
}

.service-media-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.promo-ribbon {
  border-bottom: 1px solid #ead8a9;
  background: #fff7df;
}

.promo-ribbon-inner {
  width: var(--page);
  min-height: 64px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 11px 0;
}

.promo-ribbon-copy {
  display: flex;
  align-items: baseline;
  gap: 14px;
}

.promo-ribbon strong {
  color: var(--forest-dark);
  font-size: 15px;
}

.promo-ribbon span {
  color: #6b6046;
  font-size: 13px;
}

.promo-ribbon a {
  flex: 0 0 auto;
  color: var(--red);
  font-size: 13px;
  font-weight: 800;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 54px;
  align-items: start;
}

.copy h2,
.copy h3 {
  font-family: "SimSun", serif;
  letter-spacing: 0;
}

.copy h2 {
  margin: 0 0 24px;
  font-size: 38px;
  line-height: 1.2;
}

.copy h3 {
  margin: 34px 0 8px;
  font-size: 24px;
}

.copy p {
  margin: 0 0 16px;
  color: #38433d;
}

.overview-copy {
  max-width: 900px;
}

.media-frame {
  overflow: hidden;
  border-radius: 6px;
  background: var(--mist);
}

.media-frame img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.media-frame figcaption {
  padding: 12px 14px;
  color: var(--muted);
  font-size: 12px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 12px;
}

.gallery-item {
  position: relative;
  min-height: 250px;
  overflow: hidden;
  border-radius: 6px;
  background: #dfe6e2;
}

.gallery-item:nth-child(1),
.gallery-item:nth-child(4) {
  grid-column: span 7;
}

.gallery-item:nth-child(2),
.gallery-item:nth-child(3) {
  grid-column: span 5;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  min-height: 250px;
  object-fit: cover;
  transition: transform 300ms ease;
}

.gallery-item:hover img {
  transform: scale(1.025);
}

.gallery-item span {
  position: absolute;
  right: 12px;
  bottom: 12px;
  left: 12px;
  padding: 9px 10px;
  color: #fff;
  background: rgba(7, 17, 12, 0.72);
  font-size: 13px;
  font-weight: 800;
}

.schedule-image {
  width: min(720px, 100%);
  margin: 0 auto 42px;
  border: 1px solid var(--line);
  border-radius: 4px;
  box-shadow: var(--shadow);
}

.schedule-image img {
  width: 100%;
  height: auto;
}

.schedule-image figcaption {
  padding: 10px 14px;
  color: var(--muted);
  background: #fff;
  font-size: 12px;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 6px;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
}

th,
td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  color: #fff;
  background: var(--forest);
  font-size: 13px;
}

td {
  color: #344039;
}

tbody tr:last-child td {
  border-bottom: 0;
}

.period {
  color: var(--red);
  font-weight: 800;
}

.filter-bar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  gap: 16px;
  align-items: center;
  margin-bottom: 24px;
}

.search-input {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--ink);
  background: #fff;
  outline: none;
}

.search-input:focus {
  border-color: var(--forest);
  box-shadow: 0 0 0 3px rgba(25, 101, 62, 0.12);
}

.result-count {
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
}

.college-list {
  display: grid;
  gap: 12px;
}

.college-panel {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}

.college-panel summary {
  min-height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 18px;
  cursor: pointer;
  list-style: none;
  font-weight: 800;
}

.college-panel summary::-webkit-details-marker {
  display: none;
}

.college-panel summary::after {
  content: "+";
  color: var(--red);
  font-size: 22px;
}

.college-panel[open] summary::after {
  content: "−";
}

.college-panel[open] summary {
  border-bottom: 1px solid var(--line);
}

.major-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 18px;
}

.major-chip {
  min-height: 48px;
  display: flex;
  align-items: center;
  padding: 10px 12px;
  border-left: 3px solid var(--gold);
  color: #344039;
  background: var(--mist);
  font-size: 13px;
  font-weight: 700;
}

.major-chip[hidden],
.college-panel[hidden] {
  display: none;
}

.notice-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 24px;
  border-left: 4px solid var(--red);
  background: #f8eeee;
}

.notice-banner strong {
  display: block;
}

.notice-banner p {
  margin: 4px 0 0;
  color: #6d4a4c;
  font-size: 13px;
}

.notice-article {
  max-width: 900px;
  margin-top: 38px;
}

.notice-article h3 {
  margin: 36px 0 12px;
  font-family: "SimSun", serif;
  font-size: 27px;
}

.notice-article ol,
.notice-article ul {
  margin: 12px 0 22px;
  padding-left: 1.5em;
}

.notice-article li {
  margin-bottom: 8px;
}

.deadline-list {
  margin: 22px 0;
  border-top: 1px solid var(--line);
}

.deadline-row {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 20px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.deadline-row strong {
  color: var(--red);
}

.restricted-table td:first-child {
  width: 55%;
  font-weight: 700;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
}

.contact-figure {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  background: #fff;
}

.contact-figure img {
  width: 100%;
  height: auto;
}

.contact-figure > a {
  display: block;
  cursor: zoom-in;
}

.contact-figure figcaption {
  padding: 11px 14px;
  color: var(--muted);
  font-size: 12px;
}

.source-note {
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--muted);
  background: #fff;
  font-size: 13px;
}

.source-note a {
  color: var(--forest);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.dorm-feature {
  display: grid;
  grid-template-columns: minmax(300px, 0.8fr) minmax(0, 1.2fr);
  gap: 56px;
  align-items: center;
}

.dorm-feature-media {
  margin: 0;
  overflow: hidden;
  border-radius: 6px;
  background: #1a221e;
}

.dorm-feature-media img {
  width: 100%;
  max-height: 680px;
  object-fit: contain;
}

.dorm-feature-media figcaption,
.dorm-photo figcaption,
.dorm-map figcaption {
  padding: 11px 13px;
  color: var(--muted);
  background: #fff;
  font-size: 12px;
}

.dorm-map-layout {
  align-items: center;
}

.dorm-map {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}

.dorm-map a {
  display: block;
  cursor: zoom-in;
}

.dorm-map img {
  width: 100%;
  height: auto;
}

.dorm-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 30px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.dorm-facts div {
  padding: 18px 16px;
  border-right: 1px solid var(--line);
}

.dorm-facts div:last-child {
  border-right: 0;
}

.dorm-facts strong,
.dorm-facts span {
  display: block;
}

.dorm-facts strong {
  color: var(--forest);
  font-size: 20px;
}

.dorm-facts span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.dorm-gallery {
  columns: 3;
  column-gap: 12px;
}

.dorm-photo {
  break-inside: avoid;
  margin: 0 0 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}

.dorm-photo a {
  display: block;
  cursor: zoom-in;
}

.dorm-photo img {
  width: 100%;
  height: auto;
}

.dorm-detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: rgba(255, 255, 255, 0.18);
}

.dorm-detail-grid > div {
  padding: 28px;
  background: var(--forest-dark);
}

.dorm-detail-grid span {
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
}

.dorm-detail-grid h3 {
  margin: 12px 0 8px;
  font-family: "SimSun", serif;
  font-size: 24px;
  letter-spacing: 0;
}

.dorm-detail-grid p {
  margin: 0;
  color: rgba(255, 255, 255, 0.74);
  font-size: 14px;
}

.consult-section {
  padding: 72px 0;
  border-top: 1px solid var(--line);
  background: #f5f2eb;
}

.consult-layout {
  width: var(--page);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: 64px;
  align-items: center;
}

.consult-copy h2 {
  margin: 0;
  font-family: "SimSun", serif;
  font-size: clamp(32px, 4vw, 50px);
  line-height: 1.18;
  letter-spacing: 0;
}

.consult-copy > p:not(.eyebrow) {
  max-width: 650px;
  margin: 18px 0 0;
  color: #4f5853;
}

.consult-points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 30px;
  background: #d8d2c4;
}

.consult-point {
  min-height: 80px;
  padding: 14px;
  background: #f5f2eb;
}

.consult-point strong {
  display: block;
  color: var(--forest-dark);
  font-size: 13px;
}

.consult-point span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.consult-disclaimer {
  padding-top: 18px;
  color: #746f65 !important;
  font-size: 12px;
}

.qr-figure {
  margin: 0;
  border: 1px solid #d5d0c4;
  border-radius: 6px;
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow);
}

.qr-figure a {
  display: block;
  cursor: zoom-in;
}

.qr-figure img {
  width: 100%;
  height: auto;
}

.qr-figure figcaption {
  padding: 11px 14px;
  color: var(--muted);
  font-size: 12px;
}

.site-footer {
  padding: 34px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  background: #fff;
  font-size: 12px;
}

body.modal-open {
  overflow: hidden;
}

.contact-modal[hidden] {
  display: none;
}

.contact-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 18px;
}

.contact-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(16, 21, 18, 0.62);
  backdrop-filter: blur(5px);
}

.contact-dialog {
  position: relative;
  z-index: 1;
  width: min(500px, 100%);
  max-height: calc(100svh - 36px);
  overflow-y: auto;
  padding: 34px 32px 26px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
  text-align: center;
}

.contact-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: #66706a;
  background: #f1f3f2;
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
}

.contact-kicker {
  margin: 0 0 8px;
  color: var(--red);
  font-size: 12px;
  font-weight: 800;
}

.contact-dialog h2 {
  margin: 0;
  padding: 0 24px;
  font-size: 27px;
  line-height: 1.3;
  letter-spacing: 0;
}

.contact-intro {
  margin: 10px auto 22px;
  color: var(--muted);
  font-size: 14px;
}

.contact-close:hover {
  filter: brightness(0.94);
}

.contact-qr {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.contact-qr a {
  display: block;
  width: min(280px, 100%);
  margin: 0 auto;
  cursor: zoom-in;
}

.contact-qr img {
  width: 100%;
  height: auto;
  border-radius: 4px;
}

.contact-qr-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.contact-qr-item {
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--mist);
}

.contact-qr-item h3 {
  margin: 0;
  color: var(--ink);
  font-family: "SimSun", serif;
  font-size: 17px;
  line-height: 1.3;
}

.contact-qr-item .contact-qr {
  margin-top: 9px;
  padding-top: 0;
  border-top: 0;
}

.contact-disclaimer {
  margin: 4px 0 0;
  color: #7a817d;
  font-size: 11px;
  line-height: 1.6;
}

.auth-page {
  min-height: 100svh;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--forest-dark);
}

.auth-background,
.auth-shade {
  position: fixed;
  inset: 0;
}

.auth-background {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.auth-shade {
  background: rgba(8, 24, 16, 0.68);
}

.auth-shell {
  position: relative;
  z-index: 1;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 28px 14px;
}

.auth-panel {
  width: min(480px, 100%);
  padding: 30px;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
}

.auth-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 30px;
}

.auth-brand > span:last-child {
  display: grid;
  line-height: 1.2;
}

.auth-brand strong {
  font-size: 17px;
}

.auth-brand small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.auth-panel h1 {
  margin: 0;
  font-family: "SimSun", serif;
  font-size: 34px;
  line-height: 1.2;
  letter-spacing: 0;
}

.auth-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  margin-top: 26px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--mist);
}

.auth-tabs button {
  min-height: 42px;
  border: 0;
  border-radius: 3px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  font-weight: 800;
}

.auth-tabs button[aria-selected="true"] {
  color: #fff;
  background: var(--forest);
}

.auth-form {
  display: grid;
  gap: 16px;
  margin-top: 22px;
}

.auth-form[hidden] {
  display: none;
}

.auth-field {
  display: grid;
  gap: 6px;
}

.auth-field span {
  font-size: 13px;
  font-weight: 800;
}

.auth-field input,
.auth-field select {
  width: 100%;
  min-height: 46px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--ink);
  background: #fff;
  outline: none;
}

.auth-field input:focus,
.auth-field select:focus {
  border-color: var(--forest);
  box-shadow: 0 0 0 3px rgba(25, 101, 62, 0.12);
}

.auth-submit {
  min-height: 46px;
  margin-top: 2px;
  border: 0;
  border-radius: 4px;
  color: #fff;
  background: var(--red);
  cursor: pointer;
  font-weight: 800;
}

.auth-message {
  min-height: 24px;
  margin: 14px 0 0;
  color: var(--red);
  font-size: 13px;
}

.auth-message[data-type="neutral"] {
  color: var(--muted);
}

.auth-privacy {
  margin: 4px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
}

.admin-page {
  min-height: 100svh;
  background: var(--mist);
}

.admin-header {
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.admin-header-inner,
.admin-main {
  width: var(--page);
  margin: 0 auto;
}

.admin-header-inner {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.admin-brand {
  margin: 0;
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.admin-main {
  padding: 54px 0 76px;
}

.admin-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
}

.admin-heading h1 {
  margin: 0;
  font-family: "SimSun", serif;
  font-size: clamp(32px, 5vw, 54px);
  line-height: 1.15;
  letter-spacing: 0;
}

.admin-heading p:last-child {
  margin: 12px 0 0;
  color: var(--muted);
}

.admin-count {
  min-width: 150px;
  padding-left: 24px;
  border-left: 1px solid var(--line);
}

.admin-count strong,
.admin-count span {
  display: block;
}

.admin-count strong {
  color: var(--forest);
  font-family: "SimSun", serif;
  font-size: 42px;
  line-height: 1;
}

.admin-count span {
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
}

.admin-table-section {
  margin-top: 36px;
}

.admin-table-wrap {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}

.admin-table-wrap table {
  margin: 0;
}

.admin-empty {
  margin: 18px 0 0;
  padding: 24px;
  border: 1px dashed #bdc8c2;
  color: var(--muted);
  background: #fff;
  text-align: center;
}

.footer-inner {
  width: var(--page);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 30px;
}

.footer-inner p {
  margin: 0;
}

.footer-inner a {
  color: var(--forest);
  font-weight: 800;
}

@media (max-width: 980px) {
  .campus-board-grid,
  .path-grid,
  .guide-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .split {
    grid-template-columns: 1fr;
  }

  .service-media-grid {
    grid-template-columns: 1fr;
  }

  .consult-layout {
    grid-template-columns: minmax(0, 1fr) minmax(260px, 340px);
    gap: 36px;
  }

  .major-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dorm-feature {
    grid-template-columns: 1fr;
  }

  .dorm-feature-media img {
    max-height: 620px;
  }

  .dorm-gallery {
    columns: 2;
  }
}

@media (max-width: 760px) {
  :root {
    --page: min(100% - 28px, 1180px);
  }

  .header-inner {
    min-height: 64px;
  }

  .brand-copy span {
    display: none;
  }

  .menu-button {
    display: grid;
    place-items: center;
  }

  .site-nav {
    position: absolute;
    top: 64px;
    right: 0;
    left: 0;
    display: none;
    padding: 8px 14px 16px;
    border-bottom: 1px solid var(--line);
    background: #fff;
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: grid;
    gap: 0;
  }

  .site-nav a {
    padding: 12px 6px;
  }

  .nav-logout {
    width: 100%;
    margin-top: 6px;
    padding: 11px 6px;
    text-align: left;
  }

  .site-nav a::after {
    bottom: 8px;
  }

  .hero {
    min-height: 72svh;
  }

  .hero-media {
    object-position: 58% center;
  }

  .hero-content {
    padding: 62px 0 48px;
  }

  .hero h1 {
    font-size: clamp(40px, 13vw, 62px);
  }

  .section {
    padding: 62px 0;
  }

  .facts,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .path-grid,
  .guide-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px 6px;
  }

  body[data-page="home"] #guide-path,
  body[data-page="home"] #modules {
    padding: 44px 0;
  }

  body[data-page="home"] .section-heading {
    margin-bottom: 26px;
  }

  body[data-page="home"] .section-heading h2 {
    font-size: 28px;
  }

  .campus-board-nav {
    padding: 18px 0;
  }

  .campus-board-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
  }

  .campus-board {
    min-height: 98px;
    padding: 8px 3px;
    border-color: transparent;
    background: transparent;
    box-shadow: none;
  }

  .campus-board[aria-current="page"] {
    border-color: var(--line);
    box-shadow: none;
  }

  .campus-board strong {
    margin-top: 7px;
    font-size: 12px;
  }

  .campus-board p {
    display: none;
  }

  .path-item,
  .guide-card {
    min-height: 106px;
    padding: 8px 3px;
    border-color: transparent;
    background: transparent;
    box-shadow: none;
  }

  .path-item:hover,
  .guide-card:hover {
    border-color: var(--line);
    background: rgba(255, 255, 255, 0.76);
    box-shadow: none;
    transform: none;
  }

  .entry-icon {
    width: 48px;
    height: 48px;
  }

  .entry-icon svg {
    width: 25px;
    height: 25px;
  }

  .path-item strong,
  .guide-card h3 {
    margin: 8px 0 0;
    font-size: 13px;
    line-height: 1.35;
  }

  .path-item p,
  .guide-card p {
    display: none;
  }

  .gallery-grid {
    display: grid;
    grid-template-columns: 1fr;
  }

  .gallery-item:nth-child(n) {
    grid-column: auto;
  }

  .filter-bar {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .major-grid {
    grid-template-columns: 1fr;
  }

  .dorm-facts,
  .dorm-detail-grid {
    grid-template-columns: 1fr;
  }

  .dorm-facts div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .dorm-facts div:last-child {
    border-bottom: 0;
  }

  .dorm-gallery {
    columns: 1;
  }

  .notice-banner,
  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .promo-ribbon-inner,
  .promo-ribbon-copy {
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
  }

  .promo-ribbon-inner {
    gap: 8px;
    padding: 13px 0;
  }

  .consult-section {
    padding: 58px 0;
  }

  .consult-layout,
  .consult-points {
    grid-template-columns: 1fr;
  }

  .consult-layout {
    gap: 32px;
  }

  .deadline-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  th,
  td {
    padding: 11px 12px;
    min-width: 110px;
  }

  .contact-dialog {
    padding: 32px 20px 22px;
  }

  .contact-dialog h2 {
    font-size: 23px;
  }

  .contact-qr-grid {
    grid-template-columns: 1fr;
  }

  .auth-panel {
    padding: 24px 20px;
  }

  .auth-panel h1 {
    font-size: 29px;
  }

  .auth-tabs button {
    font-size: 13px;
  }

  .admin-header-inner,
  .admin-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .admin-header-inner {
    padding: 16px 0;
  }

  .admin-count {
    width: 100%;
    padding: 18px 0 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
  }
}
