:root {
  --xy-teal: #0B4F6C;
  --xy-teal-dark: #073A50;
  --xy-amber: #E09F3E;
  --xy-ink: #1A2A32;
  --xy-muted: #5D6F79;
  --xy-line: #D5E2E8;
  --xy-bg: #F0F5F7;
  --xy-paper: #FFFFFF;
  --xy-radius: 14px;
  --xy-shadow: 0 16px 36px rgba(11, 79, 108, 0.08);
  --xy-wrap: 1140px;
  --xy-font: "Source Han Sans SC", "PingFang SC","Hiragino Sans GB","Microsoft YaHei","Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --xy-display: "Source Han Serif SC", "Songti SC","SimSun","Noto Serif SC", "Songti SC", "SimSun", serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--xy-font);
  color: var(--xy-ink);
  background: var(--xy-bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; line-height: 1.3; }

.xy-wrap {
  width: min(100% - 32px, var(--xy-wrap));
  margin-inline: auto;
}

/* Header */
.xy-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--xy-line);
}
.xy-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 74px;
}
.xy-logo { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.xy-logo img { height: 42px; width: auto; }
.xy-logo-mark {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--xy-teal), #12708F);
  display: grid;
  place-items: center;
  color: #fff;
  border: 2px solid rgba(224, 159, 62, 0.55);
  box-shadow: 0 8px 16px rgba(11, 79, 108, 0.22);
}
.xy-logo-mark-sm { width: 36px; height: 36px; }
.xy-crest {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
}
.xy-logo-text { display: flex; flex-direction: column; gap: 2px; }
.xy-logo-text strong {
  font-family: var(--xy-display);
  font-size: 16px;
}
.xy-logo-text em {
  font-style: normal;
  font-size: 12px;
  color: var(--xy-muted);
}

.xy-nav { display: flex; align-items: center; gap: 16px; }
.xy-nav > ul { display: flex; align-items: center; gap: 2px; }
.xy-nav > ul > li { position: relative; }
.xy-nav > ul > li > a {
  display: block;
  padding: 10px 12px;
  font-size: 14px;
  border-radius: 999px;
}
.xy-nav > ul > li.is-active > a,
.xy-nav > ul > li > a:hover {
  background: #E5F1F6;
  color: var(--xy-teal);
}
.xy-subnav {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 160px;
  padding: 8px;
  background: #fff;
  border: 1px solid var(--xy-line);
  border-radius: 12px;
  box-shadow: var(--xy-shadow);
}
.xy-nav > ul > li:hover > .xy-subnav { display: block; }
.xy-subnav a {
  display: block;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 13px;
}
.xy-subnav a:hover { background: #E5F1F6; }

.xy-search {
  display: flex;
  border: 1px solid var(--xy-line);
  border-radius: 999px;
  overflow: hidden;
  background: #fff;
}
.xy-search input {
  border: 0;
  outline: 0;
  width: 140px;
  padding: 8px 12px;
  font: inherit;
  font-size: 13px;
  background: transparent;
}
.xy-search button {
  border: 0;
  background: var(--xy-teal);
  color: #fff;
  padding: 8px 14px;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}

.xy-nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--xy-line);
  border-radius: 10px;
  background: #fff;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  cursor: pointer;
}
.xy-nav-toggle span {
  width: 18px;
  height: 2px;
  background: var(--xy-teal);
  transition: transform .2s, opacity .2s;
}
.xy-nav-mask {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(8, 36, 48, 0.42);
  z-index: 90;
}
body.nav-open .xy-nav-mask { display: block; }

/* Light campus hero */
.xy-campus {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: 64px 0 70px;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(11, 79, 108, 0.12), transparent 55%),
    linear-gradient(180deg, #E8F2F6 0%, #F0F5F7 100%);
}
.xy-campus::before,
.xy-campus::after {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  border: 1px solid rgba(11, 79, 108, 0.12);
  pointer-events: none;
}
.xy-campus::before { left: 8%; top: 18%; }
.xy-campus::after { right: 10%; bottom: 8%; width: 160px; height: 160px; }
.xy-campus-inner { position: relative; z-index: 1; max-width: 720px; }
.xy-seal {
  width: 88px;
  height: 88px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--xy-teal), #12708F);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  border: 3px solid rgba(224, 159, 62, 0.65);
  box-shadow: 0 12px 28px rgba(11, 79, 108, 0.2);
}
.xy-seal span { font-size: 18px; font-weight: 800; letter-spacing: 0.04em; }
.xy-seal em {
  font-style: normal;
  font-size: 8px;
  letter-spacing: 0.08em;
  opacity: 0.85;
}
.xy-kicker {
  margin: 0 0 12px;
  font-size: 12px;
  letter-spacing: 0.24em;
  color: var(--xy-teal);
  font-weight: 700;
}
.xy-campus h1 {
  font-family: var(--xy-display);
  font-size: clamp(28px, 4.2vw, 40px);
  margin-bottom: 14px;
  color: var(--xy-ink);
}
.xy-campus-desc {
  margin: 0 auto 24px;
  max-width: 520px;
  color: var(--xy-muted);
  font-size: 15px;
}
.xy-campus-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}
.xy-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 22px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  transition: transform .2s, background .2s, border-color .2s;
}
.xy-btn:hover { transform: translateY(-1px); }
.xy-btn-primary {
  background: var(--xy-teal);
  color: #fff;
}
.xy-btn-primary:hover { background: var(--xy-teal-dark); }
.xy-btn-ghost {
  border: 1px solid var(--xy-line);
  background: #fff;
  color: var(--xy-ink);
}
.xy-btn-ghost:hover { border-color: var(--xy-teal); color: var(--xy-teal); }

/* Notice ticker */
.xy-notice {
  background: #fff;
  border-bottom: 1px solid var(--xy-line);
}
.xy-notice-inner {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 48px;
  overflow: hidden;
}
.xy-notice strong {
  flex-shrink: 0;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: #fff;
  background: var(--xy-amber);
  padding: 4px 10px;
  border-radius: 6px;
}
.xy-notice-track {
  display: flex;
  gap: 28px;
  overflow-x: auto;
  scrollbar-width: none;
  white-space: nowrap;
  padding: 8px 0;
}
.xy-notice-track::-webkit-scrollbar { display: none; }
.xy-notice-track a {
  font-size: 14px;
  color: var(--xy-muted);
}
.xy-notice-track a:hover { color: var(--xy-teal); }

.xy-home-body {
  padding: 32px 0 56px;
  display: grid;
  gap: 24px;
}
.xy-section-hd {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}
.xy-eyebrow {
  margin: 0 0 4px;
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--xy-amber);
  font-weight: 700;
}
.xy-section-hd h2 {
  font-family: var(--xy-display);
  font-size: 24px;
}
.xy-more {
  font-size: 13px;
  color: var(--xy-teal);
  font-weight: 600;
}
.xy-more:hover { color: var(--xy-amber); }

/* Bulletin board */
.xy-bulletin {
  background: var(--xy-paper);
  border: 1px solid var(--xy-line);
  border-radius: var(--xy-radius);
  padding: 24px;
  box-shadow: var(--xy-shadow);
}
.xy-bulletin-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 20px;
}
.xy-feature {
  display: block;
  padding: 22px;
  border-radius: 12px;
  background: linear-gradient(160deg, #E8F2F6, #fff);
  border: 1px solid var(--xy-line);
  min-height: 100%;
}
.xy-feature img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 14px;
  background: #D7E8EF;
}
.xy-feature em {
  display: inline-block;
  margin-bottom: 10px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--xy-teal);
  color: #fff;
  font-style: normal;
  font-size: 12px;
  font-weight: 700;
}
.xy-feature h3 {
  font-family: var(--xy-display);
  font-size: 22px;
  margin-bottom: 10px;
}
.xy-feature p {
  margin: 0 0 12px;
  color: var(--xy-muted);
  font-size: 14px;
}
.xy-feature time { font-size: 12px; color: var(--xy-muted); }

.xy-bulletin-list { display: grid; gap: 0; }
.xy-bulletin-list li + li { border-top: 1px dashed var(--xy-line); }
.xy-bulletin-list a {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 12px;
  padding: 14px 4px;
  align-items: start;
}
.xy-bulletin-list time {
  font-size: 12px;
  font-weight: 700;
  color: var(--xy-amber);
  padding-top: 2px;
}
.xy-bulletin-list h4 { font-size: 15px; }
.xy-bulletin-list a:hover h4 { color: var(--xy-teal); }

/* Three columns */
.xy-cols {
  display: grid;
  grid-template-columns: 1.1fr 1fr 0.85fr;
  gap: 18px;
}
.xy-panel {
  background: var(--xy-paper);
  border: 1px solid var(--xy-line);
  border-radius: var(--xy-radius);
  padding: 22px;
  box-shadow: var(--xy-shadow);
}
.xy-simple { display: grid; gap: 10px; }
.xy-simple a {
  display: block;
  padding: 12px;
  border-radius: 10px;
  background: #F5F9FB;
  border: 1px solid transparent;
  transition: border-color .2s, background .2s;
}
.xy-simple a:hover {
  background: #fff;
  border-color: var(--xy-line);
}
.xy-simple h3 { font-size: 15px; margin-bottom: 6px; }
.xy-simple p { margin: 0 0 8px; font-size: 13px; color: var(--xy-muted); }
.xy-simple time { font-size: 12px; color: var(--xy-muted); }

.xy-think {
  background: linear-gradient(165deg, #0B4F6C, #12708F);
  color: #fff;
  border-color: transparent;
}
.xy-think .xy-eyebrow { color: var(--xy-amber); }
.xy-think .xy-more { color: rgba(255,255,255,.85); }
.xy-think-list { display: grid; gap: 8px; }
.xy-think-list a {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border-radius: 8px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.1);
}
.xy-think-list a:hover { background: rgba(255,255,255,.14); }
.xy-think-list h3 { font-size: 14px; font-weight: 600; }
.xy-think-list span { font-size: 12px; opacity: 0.7; flex-shrink: 0; }

.xy-guide-links { display: grid; gap: 10px; }
.xy-guide-links a {
  display: block;
  padding: 12px 14px;
  border-radius: 10px;
  background: #E8F2F6;
  color: var(--xy-teal-dark);
  font-weight: 600;
  font-size: 14px;
  transition: background .2s, color .2s;
}
.xy-guide-links a:hover {
  background: var(--xy-teal);
  color: #fff;
}

/* Inner */
.xy-crumb {
  background: #fff;
  border-bottom: 1px solid var(--xy-line);
  padding: 12px 0;
  font-size: 13px;
  color: var(--xy-muted);
}
.xy-crumb a:hover { color: var(--xy-teal); }
.xy-crumb span { margin: 0 6px; opacity: 0.5; }

.xy-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 24px;
  padding: 28px 0 56px;
  align-items: start;
}
.xy-panel-hd {
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid color-mix(in srgb, var(--xy-amber) 40%, var(--xy-line));
}
.xy-panel-hd h3 {
  font-family: var(--xy-display);
  font-size: 17px;
}
.xy-page-title {
  font-family: var(--xy-display);
  font-size: 26px;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--xy-line);
}

.xy-article-list { display: grid; gap: 14px; }
.xy-article-list li a {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 16px;
  padding: 14px;
  border-radius: 12px;
  border: 1px solid var(--xy-line);
  transition: border-color .2s, box-shadow .2s;
}
.xy-article-list li a:hover {
  border-color: color-mix(in srgb, var(--xy-teal) 35%, var(--xy-line));
  box-shadow: 0 10px 22px rgba(11, 79, 108, 0.08);
}
.xy-article-list img {
  width: 100%;
  height: 110px;
  object-fit: cover;
  border-radius: 8px;
  background: #E5F1F6;
}
.xy-article-list h2 { font-size: 18px; margin-bottom: 8px; }
.xy-article-list p { margin: 0 0 10px; color: var(--xy-muted); font-size: 14px; }
.xy-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12px;
  color: var(--xy-muted);
}
.xy-meta.center { justify-content: center; margin: 12px 0 22px; }
.xy-empty { padding: 40px 16px; text-align: center; color: var(--xy-muted); }

.xy-detail h1 {
  font-family: var(--xy-display);
  font-size: clamp(24px, 3vw, 32px);
  text-align: center;
}
.xy-richtext { font-size: 16px; line-height: 1.9; color: #243640; }
.xy-richtext p { margin: 0 0 1em; }
.xy-richtext img { margin: 1em auto; border-radius: 8px; }
.xy-pagerow {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid var(--xy-line);
  font-size: 14px;
}
.xy-pagerow a:hover { color: var(--xy-teal); }

.xy-rank { counter-reset: xyrank; display: grid; gap: 10px; }
.xy-rank li {
  counter-increment: xyrank;
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 8px;
}
.xy-rank li::before {
  content: counter(xyrank);
  width: 22px;
  height: 22px;
  border-radius: 6px;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
  background: #E5F1F6;
  color: var(--xy-teal);
}
.xy-rank li:nth-child(-n+3)::before {
  background: var(--xy-teal);
  color: #fff;
}
.xy-rank a { font-size: 14px; }
.xy-rank a:hover { color: var(--xy-teal); }

.xy-side-list { display: grid; gap: 10px; }
.xy-side-list a {
  display: block;
  padding: 8px 0;
  border-bottom: 1px dashed var(--xy-line);
  font-size: 14px;
}
.xy-side-list a:hover { color: var(--xy-teal); }
.xy-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.xy-tags a {
  padding: 6px 12px;
  border-radius: 999px;
  background: #E5F1F6;
  color: var(--xy-teal-dark);
  font-size: 12px;
}
.xy-tags a:hover { background: var(--xy-teal); color: #fff; }
.xy-ad { font-size: 14px; color: var(--xy-muted); line-height: 1.7; }

.xy-pagination { margin-top: 22px; }
.xy-page {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}
.xy-page a, .xy-page .dots {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border-radius: 8px;
  border: 1px solid var(--xy-line);
  background: #fff;
  font-size: 13px;
}
.xy-page .active a,
.xy-page a:hover {
  background: var(--xy-teal);
  border-color: var(--xy-teal);
  color: #fff;
}

/* Footer */
.xy-footer {
  background: #073A50;
  color: rgba(255,255,255,.84);
  padding: 48px 0 28px;
  margin-top: 12px;
}
.xy-footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 28px;
  margin-bottom: 28px;
}
.xy-foot-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.xy-foot-brand h3 {
  font-family: var(--xy-display);
  font-size: 17px;
  color: #fff;
}
.xy-footer h4 { margin-bottom: 12px; color: #fff; font-size: 15px; }
.xy-footer p { margin: 0 0 8px; font-size: 14px; opacity: 0.85; }
.xy-foot-links { display: grid; gap: 8px; }
.xy-foot-links a { font-size: 14px; opacity: 0.85; }
.xy-foot-links a:hover { opacity: 1; color: var(--xy-amber); }
.xy-friendlinks {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  padding: 16px 0;
  border-top: 1px solid rgba(255,255,255,.1);
  font-size: 13px;
}
.xy-friendlinks a:hover { color: var(--xy-amber); }
.xy-copy {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,.1);
  font-size: 13px;
  opacity: 0.7;
}
.xy-copy a { color: inherit; }

@media (max-width: 960px) {
  .xy-bulletin-grid,
  .xy-cols,
  .xy-layout { grid-template-columns: 1fr; }
  .xy-footer-grid { grid-template-columns: 1fr; }
  .xy-article-list li a { grid-template-columns: 120px 1fr; }
}

@media (max-width: 768px) {
  .xy-nav-toggle { display: inline-flex; }
  .xy-nav {
    position: fixed;
    top: 0;
    right: 0;
    width: min(86vw, 320px);
    height: 100vh;
    z-index: 110;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    padding: 72px 18px 24px;
    gap: 16px;
    transform: translateX(105%);
    transition: transform .25s ease;
    box-shadow: -12px 0 30px rgba(0,0,0,.12);
  }
  .xy-nav.is-open { transform: translateX(0); }
  .xy-nav > ul { flex-direction: column; align-items: stretch; }
  .xy-subnav {
    position: static;
    display: none;
    box-shadow: none;
    border: 0;
    padding: 4px 0 4px 12px;
  }
  .xy-nav > ul > li.is-open > .xy-subnav { display: block; }
  .xy-search { width: 100%; }
  .xy-search input { width: 100%; flex: 1; }
  .xy-article-list li a { grid-template-columns: 1fr; }
  .xy-article-list img { height: 160px; }
  .xy-pagerow { flex-direction: column; }
  body.nav-open { overflow: hidden; }
  body.nav-open .xy-nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  body.nav-open .xy-nav-toggle span:nth-child(2) { opacity: 0; }
  body.nav-open .xy-nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}
