﻿:root {
  --blue-950: #071f45;
  --blue-850: #0a3367;
  --blue-700: #0c5598;
  --red-700: #b72f2d;
  --gold-500: #c99a3f;
  --teal-600: #18839a;
  --ink: #172133;
  --muted: #627086;
  --line: #d9e2ee;
  --soft: #f4f7fb;
  --paper: #fff;
  --shadow: 0 18px 46px rgba(7, 31, 69, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

.container {
  width: min(1220px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 30;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 1px 0 rgba(7, 31, 69, 0.08);
}

.top-strip {
  background: var(--blue-950);
  color: rgba(255, 255, 255, 0.86);
  font-size: 14px;
}

.top-strip__inner,
.main-nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.top-strip__inner {
  min-height: 34px;
}

.top-links {
  display: flex;
  gap: 22px;
}

.main-nav__inner {
  min-height: 88px;
  gap: 22px;
}

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

.brand__xmu {
  width: 190px;
  height: 56px;
  object-fit: contain;
}

.brand__divider {
  width: 1px;
  height: 42px;
  background: var(--line);
}

.brand__institute strong {
  display: block;
  color: var(--blue-950);
  font-size: 24px;
  line-height: 1.18;
  white-space: nowrap;
}

.brand__institute em {
  display: block;
  max-width: 270px;
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
  line-height: 1.25;
}

.nav-menu {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
}

.nav-menu a {
  position: relative;
  padding: 31px 9px;
  color: var(--blue-850);
  font-size: 17px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.nav-menu a::after {
  content: "";
  position: absolute;
  left: 9px;
  right: 9px;
  bottom: 22px;
  height: 3px;
  background: var(--red-700);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.2s ease;
}

.nav-menu a:hover {
  color: var(--red-700);
}

.nav-menu a:hover::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: flex;
  position: fixed;
  top: 16px;
  right: 14px;
  z-index: 9999;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 6px;
  background: var(--blue-850);
  padding: 10px;
}

.nav-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: #fff;
}

@media (min-width: 981px) {
  .nav-toggle {
    display: none;
  }
}

.hero-carousel {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  color: #fff;
  background: var(--blue-950);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 900ms ease;
}

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(4, 22, 51, 0.94) 0%, rgba(4, 22, 51, 0.72) 43%, rgba(4, 22, 51, 0.14) 78%),
    linear-gradient(0deg, rgba(4, 22, 51, 0.5), rgba(4, 22, 51, 0.1));
}

.hero-slide.is-active {
  opacity: 1;
  z-index: 1;
}

.hero-slide img {
  position: relative;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1);
}

.hero-slide.is-active img {
  animation: heroZoom 7s ease forwards;
}

@keyframes heroZoom {
  from { transform: scale(1); }
  to { transform: scale(1.055); }
}

.hero-slide__content {
  position: absolute;
  inset: 0 auto 0 50%;
  z-index: 2;
  width: min(1220px, calc(100% - 40px));
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding-top: 120px;
  padding-bottom: 80px;
  transform: translateX(-50%);
}

.hero-slide__content p {
  margin: 0 0 18px;
  color: var(--gold-500);
  font-size: 20px;
  font-weight: 900;
}

.hero-slide__content h1 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(46px, 5.5vw, 76px);
  line-height: 1.1;
  letter-spacing: 0;
}

.hero-slide__content a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  margin-top: 34px;
  padding: 0 28px;
  border-radius: 4px;
  background: var(--red-700);
  color: #fff;
  font-size: 17px;
  font-weight: 800;
}

.hero-dots {
  position: absolute;
  z-index: 5;
  left: 50%;
  bottom: 38px;
  display: flex;
  gap: 12px;
  transform: translateX(-50%);
}

.hero-dots button {
  width: 38px;
  height: 4px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
}

.hero-dots button.is-active {
  background: #fff;
}

.home-panels,
.training-brief,
.channel-band {
  padding: 72px 0;
}

.home-panels {
  background: var(--soft);
}

.panels-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 28px;
}

.panel {
  min-height: 430px;
  padding: 34px;
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.panel-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.panel-head span,
.section-label {
  display: block;
  color: var(--gold-500);
  font-size: 14px;
  font-weight: 900;
  text-transform: uppercase;
}

.panel-head h2,
.training-brief h2 {
  margin: 2px 0 0;
  color: var(--blue-950);
  font-size: 34px;
  line-height: 1.2;
}

.panel-head > a {
  color: var(--blue-700);
  font-weight: 800;
}

.headline {
  padding: 26px 0 18px;
}

.headline time,
.link-list time {
  color: var(--red-700);
  font-weight: 800;
}

.headline h3 {
  margin: 12px 0;
  color: var(--blue-950);
  font-size: 28px;
  line-height: 1.3;
}

.headline p {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.75;
}

.link-list,
.notice-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.link-list li {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 15px 0;
  border-top: 1px solid var(--line);
  font-size: 17px;
  font-weight: 700;
}

.notice-list li {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 16px;
  align-items: center;
  padding: 21px 0;
  border-bottom: 1px solid var(--line);
  font-size: 17px;
  font-weight: 800;
}

.notice-list time {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 44px;
  border-radius: 4px;
  background: var(--blue-850);
  color: #fff;
  font-weight: 900;
}

.training-brief__inner {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 42px;
  align-items: center;
}

.training-brief p {
  max-width: 520px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.8;
}

.training-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.training-steps a {
  min-height: 170px;
  padding: 24px;
  border-radius: 8px;
  color: #fff;
  background: var(--blue-850);
}

.training-steps a:nth-child(2) {
  background: var(--teal-600);
}

.training-steps a:nth-child(3) {
  background: var(--red-700);
}

.training-steps a:nth-child(4) {
  background: #7b6025;
}

.training-steps b {
  display: block;
  color: rgba(255, 255, 255, 0.7);
  font-size: 30px;
}

.training-steps strong {
  display: block;
  margin-top: 54px;
  font-size: 22px;
}

.data-band {
  padding: 62px 0;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(7, 31, 69, 0.96), rgba(10, 51, 103, 0.9)),
    url("assets/hero-engineering.png") center/cover;
}

.data-grid,
.channel-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.data-grid div {
  padding: 10px 0;
  text-align: center;
}

.data-grid strong {
  display: block;
  font-size: 54px;
  line-height: 1;
}

.data-grid span {
  display: block;
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 17px;
  font-weight: 700;
}

.channel-band {
  background: #fff;
}

.channel-grid a {
  min-height: 128px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, #fff, #f7fbff);
}

.channel-grid span {
  display: block;
  color: var(--blue-950);
  font-size: 24px;
  font-weight: 900;
}

.channel-grid em {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-size: 14px;
  font-style: normal;
}

.scroll-cue {
  position: absolute;
  z-index: 6;
  right: 46px;
  bottom: 44px;
  writing-mode: vertical-rl;
  color: rgba(255, 255, 255, 0.78);
  font-size: 12px;
  letter-spacing: 2px;
}

.scroll-cue::after {
  content: "";
  display: block;
  width: 1px;
  height: 58px;
  margin: 12px auto 0;
  background: linear-gradient(#fff, rgba(255, 255, 255, 0));
  animation: cueLine 1.8s ease-in-out infinite;
}

@keyframes cueLine {
  0%, 100% { transform: scaleY(0.45); transform-origin: top; opacity: 0.45; }
  50% { transform: scaleY(1); opacity: 1; }
}

.home-section {
  position: relative;
  padding: 92px 0;
  overflow: hidden;
}

.section-title {
  position: relative;
  display: grid;
  grid-template-columns: 110px 1fr auto;
  gap: 18px;
  align-items: end;
  margin-bottom: 36px;
}

.section-title b {
  grid-row: span 2;
  color: rgba(10, 51, 103, 0.12);
  font-size: 92px;
  line-height: 0.8;
  font-family: Georgia, serif;
}

.section-title span {
  color: var(--gold-500);
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 1px;
}

.section-title h2 {
  grid-column: 2;
  margin: 0;
  color: var(--blue-950);
  font-size: 40px;
  line-height: 1.15;
}

.section-title > a {
  grid-column: 3;
  grid-row: 1 / span 2;
  padding-bottom: 10px;
  color: var(--blue-700);
  font-weight: 900;
}

.section-title--light b {
  color: rgba(255, 255, 255, 0.16);
}

.section-title--light h2 {
  color: #fff;
}

.news-showcase {
  background:
    linear-gradient(180deg, #fff 0%, #f4f7fb 100%);
}

.news-showcase__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.75fr) minmax(300px, 0.62fr);
  gap: 24px;
  align-items: stretch;
}

.lead-news,
.news-stack,
.notice-tower {
  border-radius: 10px;
  box-shadow: var(--shadow);
}

.lead-news {
  position: relative;
  min-height: 470px;
  overflow: hidden;
  color: #fff;
  background: var(--blue-950);
}

.lead-news img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}

.lead-news::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(7, 31, 69, 0.92), rgba(7, 31, 69, 0.18));
}

.lead-news:hover img {
  transform: scale(1.06);
}

.lead-news > div {
  position: absolute;
  z-index: 2;
  left: 34px;
  right: 34px;
  bottom: 34px;
}

.lead-news time,
.news-stack time {
  color: var(--gold-500);
  font-weight: 900;
}

.lead-news h3 {
  margin: 14px 0 12px;
  font-size: 30px;
  line-height: 1.28;
}

.lead-news p {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 17px;
  line-height: 1.8;
}

.news-stack {
  display: grid;
  gap: 1px;
  overflow: hidden;
  background: var(--line);
}

.news-stack a {
  display: grid;
  align-content: center;
  min-height: 156px;
  padding: 28px;
  background: #fff;
  transition: transform 0.25s ease, background 0.25s ease;
}

.news-stack a:hover {
  z-index: 1;
  background: #f9fbff;
  transform: translateX(8px);
}

.news-stack span {
  display: block;
  margin-top: 10px;
  color: var(--blue-950);
  font-size: 20px;
  font-weight: 900;
  line-height: 1.45;
}

.notice-tower {
  display: grid;
  align-content: start;
  overflow: hidden;
  color: #fff;
  background: var(--blue-850);
}

.notice-tower__head {
  padding: 28px;
  background: var(--blue-950);
}

.notice-tower__head span {
  color: var(--gold-500);
  font-weight: 900;
}

.notice-tower__head strong {
  display: block;
  margin-top: 6px;
  font-size: 28px;
}

.notice-tower__head a {
  display: inline-block;
  margin-top: 16px;
  color: rgba(255, 255, 255, 0.76);
  font-weight: 800;
}

.notice-tower > a {
  display: grid;
  grid-template-columns: 66px 1fr;
  gap: 16px;
  padding: 22px 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.notice-tower time {
  color: var(--gold-500);
  font-weight: 900;
}

.notice-tower span {
  font-weight: 800;
  line-height: 1.5;
}

.education-showcase {
  color: #fff;
  background:
    linear-gradient(135deg, rgba(7, 31, 69, 0.98), rgba(12, 85, 152, 0.9)),
    url("assets/hero-carousel-3.png") center/cover fixed;
}

.education-layout {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 48px;
  align-items: center;
}

.education-copy h3 {
  margin: 0;
  font-size: 36px;
  line-height: 1.25;
}

.education-copy p {
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 18px;
  line-height: 1.9;
}

.program-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  min-height: 360px;
  align-items: end;
}

.program-cards a {
  position: relative;
  min-height: 280px;
  padding: 26px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(6px);
  transition: transform 0.28s ease, background 0.28s ease;
}

.program-cards a:nth-child(even) {
  transform: translateY(-42px);
}

.program-cards a:hover {
  background: rgba(183, 47, 45, 0.92);
  transform: translateY(-18px);
}

.program-cards a:nth-child(even):hover {
  transform: translateY(-60px);
}

.program-cards b {
  display: block;
  color: rgba(255, 255, 255, 0.48);
  font-size: 34px;
  font-family: Georgia, serif;
}

.program-cards strong {
  display: block;
  margin-top: 74px;
  font-size: 24px;
}

.program-cards span {
  display: block;
  margin-top: 14px;
  color: rgba(255, 255, 255, 0.74);
  line-height: 1.65;
}

.data-showcase {
  background: #fff;
}

.data-showcase::before {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 52%;
  background: var(--soft);
}

.data-showcase .container {
  position: relative;
  z-index: 1;
}

.data-showcase__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  overflow: hidden;
  border-radius: 10px;
  background: var(--blue-950);
  box-shadow: var(--shadow);
}

.data-showcase__grid div {
  position: relative;
  min-height: 210px;
  padding: 42px 24px;
  color: #fff;
  text-align: center;
}

.data-showcase__grid div + div {
  border-left: 1px solid rgba(255, 255, 255, 0.14);
}

.data-showcase__grid strong {
  display: block;
  color: var(--gold-500);
  font-size: 64px;
  line-height: 1;
}

.data-showcase__grid span {
  display: block;
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 18px;
  font-weight: 800;
}

.portal-showcase {
  background: var(--soft);
}

.portal-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.portal-grid a {
  position: relative;
  min-height: 180px;
  padding: 30px;
  overflow: hidden;
  border-radius: 10px;
  background: #fff;
  box-shadow: var(--shadow);
  transition: transform 0.28s ease;
}

.portal-grid a::before {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 5px;
  background: var(--red-700);
}

.portal-grid a::after {
  content: "";
  position: absolute;
  right: -36px;
  bottom: -42px;
  width: 120px;
  height: 120px;
  border: 22px solid rgba(10, 51, 103, 0.08);
  border-radius: 50%;
}

.portal-grid a:hover {
  transform: translateY(-10px);
}

.portal-grid span {
  display: block;
  color: var(--blue-950);
  font-size: 25px;
  font-weight: 900;
}

.portal-grid em {
  display: block;
  margin-top: 12px;
  color: var(--muted);
  font-style: normal;
  font-weight: 700;
}

.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 700ms ease, transform 700ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.site-footer {
  padding: 40px 0;
  background: var(--blue-950);
  color: rgba(255, 255, 255, 0.78);
}

.page-main {
  padding-top: 122px;
  background: var(--soft);
}

.page-hero {
  min-height: 360px;
  display: flex;
  align-items: center;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(7, 31, 69, 0.92), rgba(7, 31, 69, 0.62)),
    url("assets/hero-engineering.png") center/cover;
}

.page-hero p {
  margin: 0 0 12px;
  color: var(--gold-500);
  font-size: 18px;
  font-weight: 900;
}

.page-hero h1 {
  margin: 0;
  font-size: clamp(38px, 4.5vw, 58px);
  line-height: 1.15;
}

.page-hero span {
  display: block;
  max-width: 720px;
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 18px;
  line-height: 1.8;
}

.breadcrumb {
  margin-top: 20px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
}

.page-section {
  padding: 64px 0;
}

.page-grid {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 34px;
  align-items: start;
}

.side-nav,
.content-card,
.article-card,
.info-card {
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.side-nav {
  overflow: hidden;
}

.side-nav strong {
  display: block;
  padding: 24px;
  color: #fff;
  font-size: 24px;
  background: var(--blue-850);
}

.side-nav a {
  display: block;
  padding: 16px 24px;
  border-bottom: 1px solid var(--line);
  color: var(--blue-950);
  font-weight: 800;
}

.side-nav a:hover {
  color: var(--red-700);
}

.content-card {
  padding: 36px;
}

.content-card h2,
.block-title {
  margin: 0 0 20px;
  color: var(--blue-950);
  font-size: 32px;
  line-height: 1.25;
}

.content-card h3 {
  margin: 30px 0 12px;
  color: var(--blue-850);
  font-size: 24px;
}

.content-card p,
.content-card li {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.9;
}

.content-card ul {
  margin: 14px 0 0;
  padding-left: 20px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 26px;
}

.info-card {
  padding: 26px;
  box-shadow: none;
  border: 1px solid var(--line);
}

.info-card b {
  display: block;
  color: var(--gold-500);
  font-size: 26px;
}

.info-card h3 {
  margin: 14px 0 10px;
  color: var(--blue-950);
  font-size: 22px;
}

.article-list {
  display: grid;
  gap: 18px;
}

.article-card {
  display: grid;
  grid-template-columns: 116px 1fr;
  gap: 22px;
  padding: 26px;
}

.article-card time {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 86px;
  border-radius: 6px;
  color: #fff;
  background: var(--blue-850);
  font-size: 18px;
  font-weight: 900;
}

.article-card h2 {
  margin: 0 0 10px;
  color: var(--blue-950);
  font-size: 24px;
}

.article-card p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.8;
}

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

.notice-page-list a {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 18px;
  align-items: center;
  padding: 20px 24px;
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.notice-page-list time {
  color: var(--red-700);
  font-weight: 900;
}

.notice-page-list span {
  color: var(--blue-950);
  font-size: 18px;
  font-weight: 800;
}

.timeline {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}

.timeline div {
  display: grid;
  grid-template-columns: 86px 1fr;
  gap: 18px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.timeline b {
  color: var(--red-700);
  font-size: 28px;
}

.footer-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.footer-brand img {
  width: 168px;
  height: auto;
}

.footer-brand strong {
  display: block;
  color: #fff;
  font-size: 22px;
}

.footer-brand span {
  color: rgba(255, 255, 255, 0.64);
  font-size: 13px;
}

address {
  font-style: normal;
  line-height: 1.8;
  text-align: right;
}

@media (max-width: 1180px) {
  .brand__xmu {
    width: 168px;
  }

  .brand__institute strong {
    font-size: 21px;
  }

  .brand__institute em {
    display: none;
  }

  .nav-menu a {
    padding-inline: 7px;
    font-size: 16px;
  }
}

@media (max-width: 980px) {
  .site-header {
    position: fixed;
  }

  .top-strip {
    display: none;
  }

  .main-nav__inner {
    min-height: 76px;
    padding-right: 54px;
  }

  .brand__xmu {
    width: 160px;
  }

  .brand__divider {
    height: 32px;
  }

  .brand__institute strong {
    font-size: 18px;
  }

  .nav-toggle {
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    opacity: 1;
    visibility: visible;
  }

  .nav-menu {
    position: absolute;
    left: 0;
    right: 0;
    top: 76px;
    display: none;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    padding: 14px 20px 20px;
    background: #fff;
    box-shadow: var(--shadow);
  }

  .nav-menu.is-open {
    display: grid;
  }

  .nav-menu a {
    padding: 15px;
    border: 1px solid var(--line);
    border-radius: 6px;
    font-size: 17px;
  }

  .nav-menu a::after {
    display: none;
  }

  .panels-grid,
  .training-brief__inner,
  .news-showcase__grid,
  .education-layout {
    grid-template-columns: 1fr;
  }

  .training-steps,
  .data-grid,
  .channel-grid,
  .program-cards,
  .data-showcase__grid,
  .portal-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .education-showcase {
    background-attachment: scroll;
  }

  .program-cards {
    min-height: auto;
  }

  .program-cards a,
  .program-cards a:nth-child(even),
  .program-cards a:hover,
  .program-cards a:nth-child(even):hover {
    transform: none;
  }

  .hero-ribbon {
    position: relative;
    background: #fff;
  }

  .hero-ribbon__inner {
    width: 100%;
    grid-template-columns: 1fr;
    box-shadow: none;
  }

  .hero-ribbon a {
    min-height: 82px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .hero-dots {
    bottom: 32px;
  }

  .education-showcase {
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 249, 252, 0.96)),
      url("assets/hero-carousel-3.png") center/cover;
  }

  .section-title--light h2 {
    color: var(--blue-950);
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 28px, 1220px);
  }

  .brand {
    gap: 10px;
  }

  .brand__xmu {
    width: 146px;
  }

  .brand__institute strong {
    font-size: 16px;
  }

  .hero-slide__content {
    padding-top: 88px;
    padding-bottom: 90px;
  }

  .hero-slide__content p {
    font-size: 16px;
  }

  .hero-slide__content h1 {
    max-width: 350px;
    font-size: 34px;
  }

  .hero-tags {
    margin-top: 20px;
  }

  .hero-tags span {
    min-height: 30px;
    font-size: 13px;
  }

  .hero-ribbon span {
    font-size: 17px;
  }

  .panel {
    min-height: auto;
    padding: 24px;
  }

  .panel-head h2,
  .training-brief h2 {
    font-size: 28px;
  }

  .headline h3 {
    font-size: 22px;
  }

  .link-list li {
    display: grid;
  }

  .training-steps,
  .data-grid,
  .channel-grid,
  .program-cards,
  .data-showcase__grid,
  .portal-grid,
  .nav-menu {
    grid-template-columns: 1fr;
  }

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

  .section-title {
    grid-template-columns: 72px 1fr;
    gap: 10px;
  }

  .section-title b {
    font-size: 62px;
  }

  .section-title h2 {
    font-size: 30px;
  }

  .section-title > a {
    grid-column: 2;
    grid-row: auto;
    padding-bottom: 0;
  }

  .lead-news {
    min-height: 380px;
  }

  .lead-news > div {
    left: 22px;
    right: 22px;
    bottom: 24px;
  }

  .lead-news h3,
  .education-copy h3 {
    font-size: 24px;
  }

  .notice-tower > a {
    grid-template-columns: 1fr;
  }

  .data-showcase__grid div {
    min-height: 150px;
  }

  .data-showcase__grid div + div {
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
  }

  .scroll-cue {
    display: none;
  }

  .footer-grid {
    align-items: flex-start;
    flex-direction: column;
  }

  address {
    text-align: left;
  }

  .page-main {
    padding-top: 76px;
  }

  .page-hero {
    min-height: 300px;
  }

  .page-grid,
  .card-grid,
  .article-card,
  .notice-page-list a,
  .timeline div {
    grid-template-columns: 1fr;
  }

  .side-nav {
    display: none;
  }

  .content-card {
    padding: 24px;
  }
}

/* Final homepage refinement: full-width distinguished sections, XMU identity, engineering clarity. */
.hero-slide::after {
  background:
    linear-gradient(90deg, rgba(5, 28, 66, 0.88) 0%, rgba(7, 38, 90, 0.62) 44%, rgba(7, 38, 90, 0.08) 78%),
    linear-gradient(0deg, rgba(5, 28, 66, 0.42), rgba(5, 28, 66, 0.04));
}

.xmu-identity-strip {
  position: relative;
  z-index: 2;
  padding: 34px 0;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.xmu-identity-strip::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(7, 95, 168, 0.08), transparent 42%),
    radial-gradient(circle at 92% 20%, rgba(201, 154, 69, 0.12), transparent 22%);
}

.xmu-identity-strip__inner {
  position: relative;
  display: grid;
  grid-template-columns: 0.9fr 1.35fr auto;
  gap: 34px;
  align-items: center;
}

.xmu-identity-strip span {
  display: block;
  color: var(--gold-500);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.xmu-identity-strip strong {
  display: block;
  margin-top: 6px;
  color: var(--blue-950);
  font-size: 24px;
}

.xmu-identity-strip p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.8;
}

.xmu-identity-strip a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border: 1px solid var(--blue-700);
  color: var(--blue-700);
  font-weight: 900;
}

.home-section {
  width: 100%;
  padding: 98px 0;
}

.news-showcase {
  background: linear-gradient(180deg, #fff 0%, #f6f9fc 100%);
  border-bottom: 1px solid var(--line);
}

.education-showcase {
  color: var(--ink);
  border-top: 1px solid #edf2f7;
  border-bottom: 1px solid #d8e3ef;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.98) 0%, rgba(246, 249, 252, 0.96) 47%, rgba(7, 38, 90, 0.94) 47%, rgba(7, 38, 90, 0.94) 100%),
    url("assets/hero-carousel-3.png") right center/cover fixed;
}

.program-cards {
  gap: 16px;
}

.program-cards a {
  min-height: 292px;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: linear-gradient(180deg, rgba(9, 58, 122, 0.94), rgba(7, 38, 90, 0.98));
  box-shadow: 0 18px 34px rgba(2, 17, 43, 0.22);
}

.program-cards a:nth-child(2) {
  background: linear-gradient(180deg, rgba(22, 127, 150, 0.94), rgba(7, 70, 98, 0.98));
}

.program-cards a:nth-child(3) {
  background: linear-gradient(180deg, rgba(181, 54, 50, 0.94), rgba(112, 34, 44, 0.98));
}

.program-cards a:nth-child(4) {
  background: linear-gradient(180deg, rgba(201, 154, 69, 0.94), rgba(116, 82, 31, 0.98));
}

.program-cards a:hover {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(238, 245, 252, 0.98));
}

.program-cards strong,
.program-cards span,
.program-cards b {
  color: #fff;
}

.program-cards b {
  opacity: 0.65;
}

.program-cards a:hover strong,
.program-cards a:hover span {
  color: var(--blue-950);
}

.program-cards a:hover b {
  color: var(--red-700);
  opacity: 1;
}

.data-showcase {
  background:
    linear-gradient(180deg, #fff 0%, #eef4fa 100%);
}

.data-showcase__grid {
  border-radius: 0;
  background:
    linear-gradient(135deg, rgba(7, 38, 90, 0.96), rgba(7, 95, 168, 0.9)),
    url("assets/xmu-lake.jpg") center/cover;
}

.portal-showcase {
  color: #fff;
  background:
    linear-gradient(90deg, rgba(7, 38, 90, 0.94), rgba(7, 95, 168, 0.86)),
    url("assets/xmu-campus-aerial.jpg") center/cover;
}

.portal-showcase .section-title b {
  color: rgba(255, 255, 255, 0.16);
}

.portal-showcase .section-title span {
  color: #f4c567;
}

.portal-showcase .section-title h2 {
  color: #fff;
}

.portal-grid {
  gap: 0;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(6px);
}

.portal-grid a {
  min-height: 250px;
  padding: 34px 30px 30px;
  border-top: 0;
  border-right: 1px solid rgba(255, 255, 255, 0.2);
  background: transparent;
  box-shadow: none;
}

.portal-grid a:last-child {
  border-right: 0;
}

.portal-grid a:hover {
  z-index: 1;
  background: rgba(255, 255, 255, 0.96);
  transform: translateY(-10px);
}

.portal-grid b {
  display: block;
  color: rgba(244, 197, 103, 0.82);
  font-size: 38px;
  font-family: Georgia, serif;
  line-height: 1;
}

.portal-grid span {
  margin-top: 26px;
  color: #fff;
  font-size: 26px;
}

.portal-grid em {
  color: rgba(255, 255, 255, 0.62);
}

.portal-grid p {
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.75);
  font-size: 15px;
  line-height: 1.8;
}

.portal-grid a:hover b {
  color: var(--red-700);
}

.portal-grid a:hover span,
.portal-grid a:hover p {
  color: var(--blue-950);
}

.portal-grid a:hover em {
  color: var(--muted);
}

@media (max-width: 980px) {
  .xmu-identity-strip__inner {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .education-showcase {
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 249, 252, 0.96)),
      url("assets/hero-carousel-3.png") center/cover;
  }

  .portal-grid a {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  }
}

@media (max-width: 640px) {
  .home-section {
    padding: 62px 0;
  }

  .program-cards a {
    min-height: 220px;
  }

  .portal-grid a {
    min-height: 190px;
  }
}

/* Full-bleed homepage sections: use the whole viewport, not a narrow centered column. */
main > .home-section > .container,
.xmu-identity-strip > .container,
.hero-ribbon > .container {
  width: 100%;
  max-width: none;
  padding-left: clamp(28px, 5.4vw, 96px);
  padding-right: clamp(28px, 5.4vw, 96px);
}

.news-showcase__grid {
  grid-template-columns: minmax(420px, 1.15fr) minmax(320px, 0.8fr) minmax(330px, 0.58fr);
  gap: 30px;
}

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

.lead-news {
  min-height: 520px;
}

.news-showcase__grid--two .lead-news {
  min-height: 500px;
}

.news-stack a {
  min-height: 173px;
}

.education-layout {
  grid-template-columns: minmax(360px, 0.62fr) minmax(720px, 1.38fr);
  gap: clamp(42px, 5vw, 86px);
}

.program-cards {
  grid-template-columns: repeat(4, minmax(210px, 1fr));
  gap: 22px;
}

.data-showcase__grid {
  grid-template-columns: repeat(4, minmax(220px, 1fr));
}

.data-showcase__grid div {
  min-height: 240px;
}

.portal-grid {
  grid-template-columns: repeat(4, minmax(240px, 1fr));
}

.portal-grid a {
  min-height: 300px;
  padding: 42px 38px 36px;
}

.xmu-identity-strip__inner {
  grid-template-columns: minmax(360px, 0.8fr) minmax(520px, 1.4fr) auto;
}

@media (max-width: 1180px) {
  .news-showcase__grid,
  .news-showcase__grid--two,
  .education-layout {
    grid-template-columns: 1fr;
  }

  .program-cards,
  .data-showcase__grid,
  .portal-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  main > .home-section > .container,
  .xmu-identity-strip > .container,
  .hero-ribbon > .container {
    padding-left: 18px;
    padding-right: 18px;
  }

  .program-cards,
  .data-showcase__grid,
  .portal-grid {
    grid-template-columns: 1fr;
  }

  .lead-news,
  .data-showcase__grid div,
  .portal-grid a {
    min-height: auto;
  }
}

/* Absolute final typography override: keep this block at the file end. */
.main-nav__inner {
  min-height: 112px !important;
}

.brand__institute strong {
  font-size: 32px !important;
}

.brand__institute em {
  font-size: 16px !important;
}

.nav-menu {
  gap: clamp(18px, 1.4vw, 28px) !important;
}

.nav-menu a {
  font-size: 23px !important;
  font-weight: 800 !important;
  line-height: 1.18 !important;
}

.home-news-list p,
.article-card p,
.news-showcase p {
  font-size: 21px !important;
  line-height: 2 !important;
}

.home-news-list strong {
  font-size: clamp(26px, 2vw, 34px) !important;
  line-height: 1.42 !important;
}

.article-card h2,
.article-card h2 a {
  font-size: 29px !important;
  line-height: 1.45 !important;
}

@media (max-width: 1320px) {
  .nav-menu a {
    font-size: 20px !important;
  }

  .brand__institute strong {
    font-size: 30px !important;
  }
}

@media (max-width: 980px) {
  .main-nav__inner {
    min-height: 86px !important;
  }

  .nav-menu a {
    font-size: 19px !important;
  }

  .home-news-list p,
  .article-card p,
  .news-showcase p {
    font-size: 18px !important;
  }
}

/* Absolute final typography override: keep this block at the file end. */
.main-nav__inner {
  min-height: 112px !important;
}

.brand__institute strong {
  font-size: 32px !important;
}

.brand__institute em {
  font-size: 16px !important;
}

.nav-menu {
  gap: clamp(18px, 1.4vw, 28px) !important;
}

.nav-menu a {
  font-size: 23px !important;
  font-weight: 800 !important;
  line-height: 1.18 !important;
}

.home-news-list p,
.article-card p,
.news-showcase p {
  font-size: 21px !important;
  line-height: 2 !important;
}

.home-news-list strong {
  font-size: clamp(26px, 2vw, 34px) !important;
  line-height: 1.42 !important;
}

.article-card h2,
.article-card h2 a {
  font-size: 29px !important;
  line-height: 1.45 !important;
}

@media (max-width: 1320px) {
  .nav-menu a {
    font-size: 20px !important;
  }

  .brand__institute strong {
    font-size: 30px !important;
  }
}

@media (max-width: 980px) {
  .main-nav__inner {
    min-height: 86px !important;
  }

  .nav-menu a {
    font-size: 19px !important;
  }

  .home-news-list p,
  .article-card p,
  .news-showcase p {
    font-size: 18px !important;
  }
}

/* Final visual scale tuning for the emergency public version. */
.main-nav__inner {
  min-height: 102px;
}

.brand__institute strong {
  font-size: 28px;
}

.brand__institute em {
  font-size: 14px;
}

.nav-menu {
  gap: clamp(18px, 1.6vw, 30px);
}

.nav-menu a {
  font-size: 20px;
  font-weight: 800;
  line-height: 1.2;
}

.home-news-list p,
.article-card p {
  font-size: 18px;
  line-height: 1.95;
}

.home-news-list strong {
  font-size: clamp(23px, 1.75vw, 30px);
  line-height: 1.45;
}

@media (max-width: 1320px) {
  .nav-menu {
    gap: 16px;
  }

  .nav-menu a {
    font-size: 18px;
  }
}

@media (max-width: 980px) {
  .main-nav__inner {
    min-height: 82px;
  }

  .nav-menu a {
    font-size: 18px;
  }
}

/* Research, lecture and gallery section. */
.insight-showcase {
  color: var(--ink);
  background:
    linear-gradient(180deg, #f7fafc 0%, #fff 100%);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.insight-grid {
  display: grid;
  grid-template-columns: minmax(360px, 1.05fr) minmax(320px, 0.85fr) minmax(380px, 1fr);
  gap: 28px;
}

.insight-panel {
  min-height: 430px;
  padding: 32px;
  background: #fff;
  box-shadow: 0 16px 36px rgba(7, 38, 90, 0.09);
}

.insight-panel__head {
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.insight-panel__head span,
.gallery-panel span {
  color: var(--gold-500);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.insight-panel h3 {
  margin: 8px 0 0;
  color: var(--blue-950);
  font-size: 30px;
}

.research-panel {
  border-top: 4px solid var(--blue-700);
}

.research-panel > a {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 18px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.research-panel time {
  color: var(--red-700);
  font-size: 18px;
  font-weight: 900;
}

.research-panel strong {
  color: var(--blue-950);
  font-size: 18px;
  line-height: 1.55;
}

.lecture-panel {
  color: #fff;
  background:
    linear-gradient(160deg, rgba(7, 38, 90, 0.98), rgba(7, 95, 168, 0.9)),
    url("assets/xmu-lake.jpg") center/cover;
}

.lecture-panel .insight-panel__head {
  border-bottom-color: rgba(255, 255, 255, 0.18);
}

.lecture-panel h3 {
  color: #fff;
}

.lecture-panel article {
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 18px;
  padding: 26px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.lecture-panel time {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 54px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  color: #f4c567;
  font-weight: 900;
}

.lecture-panel strong {
  color: #fff;
  font-size: 19px;
  line-height: 1.5;
}

.lecture-panel p {
  margin: 9px 0 0;
  color: rgba(255, 255, 255, 0.68);
}

.gallery-panel {
  position: relative;
  min-height: 430px;
  padding: 0;
  overflow: hidden;
  color: #fff;
}

.gallery-panel img {
  width: 100%;
  height: 100%;
  min-height: 430px;
  object-fit: cover;
  transition: transform 0.8s ease;
}

.gallery-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(7, 38, 90, 0.86), rgba(7, 38, 90, 0.08));
}

.gallery-panel:hover img {
  transform: scale(1.05);
}

.gallery-panel > div {
  position: absolute;
  z-index: 1;
  left: 32px;
  right: 32px;
  bottom: 32px;
}

.gallery-panel h3 {
  margin: 8px 0 12px;
  color: #fff;
}

.gallery-panel p {
  max-width: 420px;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.8;
}

.gallery-panel a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  margin-top: 12px;
  padding: 0 18px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--blue-950);
  font-weight: 900;
}

@media (max-width: 1180px) {
  .insight-grid {
    grid-template-columns: 1fr;
  }
}

/* Overview page: stronger identity for the new interdisciplinary platform. */
.content-card--overview {
  padding: clamp(34px, 4vw, 58px);
  overflow: hidden;
}

.overview-lead {
  position: relative;
  padding: clamp(30px, 4vw, 54px);
  color: #fff;
  background:
    linear-gradient(120deg, rgba(7, 38, 90, 0.94), rgba(7, 95, 168, 0.82)),
    url("assets/xmu-campus-aerial.jpg") center/cover;
}

.overview-lead span {
  color: #f4c567;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.overview-lead h2 {
  max-width: 820px;
  margin: 18px 0;
  color: #fff;
  font-size: clamp(30px, 3vw, 46px);
  line-height: 1.18;
}

.overview-lead p {
  max-width: 920px;
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 17px;
  line-height: 2;
}

.overview-panel {
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: clamp(24px, 4vw, 58px);
  margin-top: 28px;
  padding: clamp(28px, 3vw, 42px);
  background: #f6f9fc;
  border-left: 5px solid var(--red-700);
}

.overview-panel--blue {
  background: linear-gradient(135deg, #eef6ff, #fff);
  border-left-color: var(--blue-700);
}

.overview-panel b {
  display: block;
  color: var(--gold-600);
  font-family: Georgia, serif;
  font-size: 42px;
  line-height: 1;
}

.overview-panel h3 {
  margin: 12px 0 0;
  color: var(--blue-950);
  font-size: 24px;
}

.overview-panel p {
  margin: 0;
  color: #344760;
  font-size: 16px;
  line-height: 2;
}

.overview-task-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  padding: 0;
  margin-top: 22px;
  list-style: none;
}

.overview-task-list li {
  padding: 24px;
  background: #fff;
  border: 1px solid #e4ebf3;
  box-shadow: 0 12px 24px rgba(7, 38, 90, 0.06);
}

.overview-task-list strong {
  display: block;
  margin-bottom: 10px;
  color: var(--blue-950);
  font-size: 18px;
}

.overview-task-list span {
  color: #596a7d;
  line-height: 1.8;
}

@media (max-width: 760px) {
  .overview-panel,
  .overview-task-list {
    grid-template-columns: 1fr;
  }
}

/* Emergency edition refinements. */
.article-card--lead {
  border-left: 5px solid var(--red-700);
  background: linear-gradient(90deg, #fff, #f7fbff);
}

.article-card--lead h2 {
  color: var(--blue-950);
}

.admission-links {
  display: grid;
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  gap: 14px;
  margin: 18px 0 28px;
}

.admission-links a {
  display: flex;
  align-items: center;
  min-height: 72px;
  padding: 18px;
  color: #fff;
  font-weight: 700;
  background: linear-gradient(135deg, var(--blue-900), var(--blue-700));
  box-shadow: 0 12px 24px rgba(7, 38, 90, 0.12);
}

.admission-links a:nth-child(2) {
  background: linear-gradient(135deg, #0f7895, #084e67);
}

.admission-links a:nth-child(3) {
  background: linear-gradient(135deg, #b33632, #7a2430);
}

.admission-links a:nth-child(4) {
  background: linear-gradient(135deg, #c99a45, #7d5a24);
}

@media (max-width: 900px) {
  .admission-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .admission-links {
    grid-template-columns: 1fr;
  }
}

.article-card h2 a {
  color: inherit;
}

.article-card h2 a:hover {
  color: var(--blue-700);
}

.news-article-wrap {
  max-width: 1080px;
}

.news-detail {
  padding: clamp(28px, 5vw, 64px);
  background: #fff;
  box-shadow: 0 18px 42px rgba(7, 38, 90, 0.08);
}

.news-detail__head {
  padding-bottom: 26px;
  margin-bottom: 34px;
  text-align: center;
  border-bottom: 1px solid #e4ebf3;
}

.news-detail__head h1 {
  max-width: 880px;
  margin: 0 auto 16px;
  color: var(--blue-950);
  font-size: clamp(28px, 3.2vw, 42px);
  line-height: 1.28;
}

.news-detail__head p {
  margin: -4px 0 18px;
  color: #596a7d;
  font-size: 20px;
}

.news-detail__head div {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 24px;
  color: #7c8a9a;
  font-size: 14px;
}

.news-detail__body {
  max-width: 880px;
  margin: 0 auto;
}

.news-detail__body p {
  margin: 0 0 22px;
  color: #26384d;
  font-size: 17px;
  line-height: 2.05;
  text-indent: 2em;
}

.news-detail__body figure {
  margin: 34px auto;
}

.news-detail__body img {
  display: block;
  width: 100%;
  max-height: 560px;
  object-fit: cover;
}

.news-detail__body figcaption {
  padding-top: 12px;
  color: #6f7e8f;
  font-size: 14px;
  text-align: center;
}

.news-detail__body .news-detail__author {
  text-align: right;
  text-indent: 0;
}

.news-detail__body figure.speaker-portrait img {
  width: 180px !important;
  max-height: none;
  margin: 0 auto;
  object-fit: contain;
}

.news-detail__body figure.registration-qr img {
  width: min(100%, 420px) !important;
  max-height: none;
  margin: 0 auto;
  object-fit: contain;
}

/* Admissions page: separate local notices from university-wide services. */
.admission-hub {
  display: grid;
  gap: 28px;
  min-width: 0;
}

.admission-section {
  overflow: hidden;
  border: 1px solid #dbe5ef;
  border-radius: 6px;
  background: #fff;
}

.admission-section__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding: 25px 28px 20px;
  border-bottom: 1px solid #e4ebf2;
}

.admission-section__head span {
  color: #a66b22;
  font-size: 12px;
  font-weight: 800;
}

.admission-section__head h2 {
  margin: 5px 0 0;
  color: var(--blue-950);
  font-size: 26px;
}

.admission-section__head p {
  max-width: 440px;
  margin: 0;
  color: #68798a;
  font-size: 14px;
  line-height: 1.7;
  text-align: right;
}

.admission-notice {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  padding: 26px 28px;
  color: inherit;
}

.admission-notice:hover {
  background: #f6f9fc;
}

.admission-notice time {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 88px;
  border-right: 1px solid #dbe5ef;
  color: var(--blue-850);
  font-size: 15px;
  font-weight: 800;
  white-space: nowrap;
}

.admission-notice time strong {
  font-size: 34px;
  line-height: 1;
}

.admission-notice time span {
  margin-top: 7px;
  color: #7b8998;
  font-size: 13px;
}

.admission-notice h3 {
  margin: 0 0 9px;
  color: var(--blue-950);
  font-size: 21px;
  line-height: 1.5;
}

.admission-notice p {
  margin: 0;
  color: #637487;
  font-size: 15px;
  line-height: 1.8;
}

.admission-notice b {
  display: inline-block;
  margin-top: 12px;
  color: #a66b22;
  font-size: 14px;
}

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

.admission-service-grid a {
  min-height: 112px;
  padding: 24px 28px;
  border-right: 1px solid #e4ebf2;
  border-bottom: 1px solid #e4ebf2;
  color: inherit;
}

.admission-service-grid a:nth-child(2n) {
  border-right: 0;
}

.admission-service-grid a:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.admission-service-grid a:hover {
  background: #f6f9fc;
}

.admission-service-grid strong,
.admission-service-grid span {
  display: block;
}

.admission-service-grid strong {
  color: var(--blue-950);
  font-size: 18px;
}

.admission-service-grid span {
  margin-top: 9px;
  color: #718092;
  font-size: 14px;
}

@media (max-width: 760px) {
  .admission-section__head {
    display: block;
    padding: 20px;
  }

  .admission-section__head h2 {
    font-size: 23px;
  }

.admission-section__head p {
    margin-top: 10px;
    text-align: left;
  }

  .admission-notice {
    grid-template-columns: 68px minmax(0, 1fr);
    gap: 16px;
    padding: 22px 20px;
  }

  .admission-notice time {
    min-height: 76px;
  }

  .admission-notice time strong {
    font-size: 29px;
  }

  .admission-notice h3 {
    font-size: 18px;
  }

  .admission-notice p {
    display: none;
  }

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

  .admission-service-grid a,
  .admission-service-grid a:nth-child(2n),
  .admission-service-grid a:nth-last-child(-n + 2) {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid #e4ebf2;
  }

  .admission-service-grid a:last-child {
    border-bottom: 0;
  }
}

.admission-section__head p a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: #b17931;
  text-underline-offset: 4px;
}

/* Homepage notice and admissions feature. */
.home-information {
  padding: clamp(58px, 7vw, 92px) 0;
  background: #eef3f7;
}

.home-information__layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  align-items: stretch;
  gap: clamp(32px, 4vw, 50px);
}

.home-information__head {
  align-self: center;
}

.home-information__head > span {
  display: block;
  margin-bottom: 18px;
  color: #b17931;
  font-size: 15px;
  font-weight: 900;
}

.home-information__head > p {
  margin: 0 0 8px;
  color: #7a8896;
  font-size: 13px;
  font-weight: 800;
}

.home-information__head h2 {
  margin: 0;
  color: var(--blue-950);
  font-size: clamp(30px, 3vw, 43px);
}

.home-information__head nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  margin-top: 28px;
}

.home-information__head nav a {
  padding-bottom: 5px;
  border-bottom: 2px solid #b17931;
  color: var(--blue-850);
  font-size: 16px;
  font-weight: 800;
}

.home-information__article {
  display: grid;
  grid-template-columns: minmax(360px, 1.08fr) minmax(360px, 0.92fr);
  min-height: 292px;
  padding: 0;
  border-left: 5px solid #b17931;
  color: inherit;
  background: #fff;
  box-shadow: 0 16px 38px rgba(17, 48, 82, 0.08);
}

.home-information__media {
  display: flex;
  align-items: center;
  margin: 0;
  padding: 18px;
  overflow: hidden;
  background: #e8edf1;
}

.home-information__media img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 100%;
  object-fit: contain;
}

.home-information__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: clamp(26px, 3vw, 40px);
}

.home-information__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 22px;
}

.home-information__meta span {
  padding: 5px 10px;
  border: 1px solid #c8d6e3;
  color: #51677d;
  font-size: 13px;
  font-weight: 800;
}

.home-information__body {
  display: block;
}

.home-information__body time {
  display: flex;
  align-items: baseline;
  gap: 8px;
  min-height: 0;
  margin-bottom: 14px;
  color: var(--blue-850);
  font-size: 15px;
  font-weight: 800;
  white-space: nowrap;
}

.home-news-list time,
.article-card time,
.admission-notice time,
.home-information__body time,
.news-detail__head div span {
  white-space: nowrap;
  word-break: keep-all;
}

.home-information__body time strong,
.home-information__body time span {
  display: block;
}

.home-information__body time strong {
  font-size: 28px;
  line-height: 1;
}

.home-information__body time span {
  margin-top: 0;
  color: #7d8995;
  font-size: 13px;
}

.home-information__body h3 {
  margin: 0;
  color: var(--blue-950);
  font-size: clamp(21px, 2vw, 28px);
  line-height: 1.5;
}

.home-information__body p {
  margin: 13px 0 0;
  color: #68798a;
  font-size: 15px;
  line-height: 1.8;
}

.home-information__body b {
  display: inline-block;
  margin-top: 18px;
  color: #a66b22;
  font-size: 14px;
}

.home-information__article:hover h3 {
  color: #a66b22;
}

@media (max-width: 760px) {
  .home-information {
    padding: 48px 0;
  }

  .home-information__layout {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .home-information__head nav {
    margin-top: 20px;
  }

  .home-information__article {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 0;
  }

  .home-information__media {
    aspect-ratio: 851 / 382;
    padding: 10px;
  }

  .home-information__content {
    padding: 24px 20px;
  }

  .home-information__body time {
    min-height: 0;
  }

  .home-information__body time strong {
    font-size: 30px;
  }

  .home-information__body h3 {
    font-size: 19px;
  }

  .home-information__body p {
    display: none;
  }
}

.news-detail__foot {
  max-width: 880px;
  margin: 38px auto 0;
  padding-top: 26px;
  border-top: 1px solid #e4ebf3;
}

.news-detail__foot a {
  display: inline-flex;
  align-items: center;
  padding: 12px 22px;
  color: #fff;
  background: var(--blue-900);
}

.article-visual-hero {
  position: relative;
  min-height: clamp(360px, 44vw, 560px);
  display: flex;
  align-items: flex-end;
  color: #fff;
  background-position: center;
  background-size: cover;
  overflow: hidden;
}

.article-visual-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 18, 40, 0.86), rgba(5, 18, 40, 0.38)),
    linear-gradient(180deg, rgba(5, 18, 40, 0.12), rgba(5, 18, 40, 0.78));
}

.article-visual-hero .container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: none;
  padding: clamp(64px, 8vw, 110px) clamp(28px, 5.4vw, 96px);
}

.article-visual-hero a {
  display: inline-block;
  margin-bottom: 22px;
  color: #f4c567;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.article-visual-hero h1 {
  max-width: 1100px;
  margin: 0;
  color: #fff;
  font-size: clamp(38px, 4.6vw, 72px);
  line-height: 1.14;
}

.article-visual-hero p {
  max-width: 980px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(18px, 1.7vw, 26px);
  line-height: 1.65;
}

.article-visual-hero--simple {
  min-height: clamp(280px, 34vw, 420px);
}

.article-visual-hero--simple .container {
  padding-top: clamp(70px, 9vw, 126px);
  padding-bottom: clamp(58px, 7vw, 90px);
}

.article-visual-hero--simple h1 {
  font-size: clamp(42px, 5vw, 76px);
}

/* Final typography polish requested for a more formal portal feel. */
.nav-menu a {
  font-size: 18px;
}

.main-nav__inner {
  min-height: 92px;
}

.home-news-list p {
  font-size: 17px;
  line-height: 1.92;
}

.home-news-list strong {
  font-size: clamp(22px, 1.7vw, 28px);
}

.home-news-focus strong {
  font-size: clamp(30px, 2.8vw, 46px);
}

/* Emergency homepage final pass: compact, stable, content-backed layout. */
.hero-carousel {
  min-height: 78vh;
}

.home-section {
  padding-top: clamp(54px, 6vw, 86px);
  padding-bottom: clamp(54px, 6vw, 86px);
}

.news-showcase {
  background: #f5f8fb;
}

.news-showcase__grid.news-showcase__grid--two {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(24px, 3vw, 40px);
  align-items: stretch;
}

.news-showcase__grid--two .lead-news {
  display: grid;
  grid-template-rows: minmax(260px, 0.68fr) auto;
  min-height: 0;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 18px 42px rgba(7, 38, 90, 0.1);
}

.news-showcase__grid--two .lead-news::after {
  display: none;
}

.news-showcase__grid--two .lead-news img {
  position: static;
  display: block;
  width: 100%;
  height: 100%;
  min-height: 260px;
  object-fit: cover;
  transform: none;
}

.news-showcase__grid--two .lead-news:hover img {
  transform: none;
}

.news-showcase__grid--two .lead-news > div {
  position: static;
  padding: clamp(24px, 3vw, 38px);
  color: var(--blue-950);
  background: #fff;
}

.news-showcase__grid--two .lead-news time {
  display: inline-block;
  margin-bottom: 14px;
  padding: 7px 12px;
  color: #fff;
  background: var(--red-700);
  font-size: 14px;
  font-weight: 700;
}

.news-showcase__grid--two .lead-news h3 {
  margin: 0;
  color: var(--blue-950);
  font-size: clamp(24px, 2.1vw, 34px);
  line-height: 1.32;
}

.news-showcase__grid--two .lead-news h3 a {
  color: inherit;
}

.news-showcase__grid--two .lead-news h3 a:hover {
  color: var(--blue-700);
}

.news-showcase__grid--two .lead-news p {
  max-width: none;
  margin: 18px 0 0;
  color: #596a7d;
  font-size: 16px;
  line-height: 1.8;
}

.education-showcase {
  padding-top: clamp(64px, 7vw, 96px);
  padding-bottom: clamp(64px, 7vw, 96px);
}

.gallery-showcase {
  padding-top: clamp(54px, 6vw, 80px);
}

.portal-showcase {
  padding-top: clamp(60px, 7vw, 92px);
  padding-bottom: clamp(60px, 7vw, 92px);
}

/* News detail pages should read like full-width official news, not a narrow note. */
.news-article-wrap {
  width: 100%;
  max-width: none;
  padding-left: clamp(28px, 5.4vw, 96px);
  padding-right: clamp(28px, 5.4vw, 96px);
}

.news-detail {
  width: min(1440px, 100%);
  margin: 0 auto;
  padding: clamp(38px, 5.2vw, 76px);
}

.news-detail__head h1 {
  max-width: 1180px;
  font-size: clamp(34px, 3.6vw, 54px);
}

.news-detail__head p {
  font-size: clamp(20px, 1.6vw, 26px);
}

.news-detail__body,
.news-detail__foot {
  max-width: 1120px;
}

.news-detail__body p {
  font-size: 18px;
  line-height: 2.08;
}

.news-detail__body figure {
  width: min(1180px, 100%);
  margin: 42px auto;
}

.news-detail__body img {
  max-height: 680px;
}

@media (max-width: 920px) {
  .news-showcase__grid.news-showcase__grid--two {
    grid-template-columns: 1fr;
  }

  .hero-carousel {
    min-height: 70vh;
  }
}

/* Final homepage news: focus image on the left, concise list on the right. */
.home-news-layout {
  display: grid;
  grid-template-columns: minmax(420px, 0.82fr) minmax(430px, 1.18fr);
  gap: clamp(22px, 3vw, 42px);
  align-items: stretch;
}

.home-news-focus {
  position: relative;
  display: block;
  min-height: 390px;
  overflow: hidden;
  color: #fff;
  background: var(--blue-950);
  box-shadow: 0 20px 48px rgba(7, 38, 90, 0.14);
}

.home-news-focus::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5, 18, 40, 0.05), rgba(5, 18, 40, 0.82));
}

.home-news-focus img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 390px;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.home-news-focus:hover img {
  transform: scale(1.04);
}

.home-news-focus span,
.home-news-focus strong {
  position: absolute;
  z-index: 1;
  left: clamp(28px, 3vw, 44px);
  right: clamp(28px, 3vw, 44px);
}

.home-news-focus span {
  bottom: 94px;
  color: #f4c567;
  font-weight: 700;
}

.home-news-focus strong {
  bottom: clamp(26px, 3vw, 38px);
  font-size: clamp(22px, 2vw, 32px);
  line-height: 1.25;
}


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

.home-news-list a {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 0 20px;
  min-height: 122px;
  padding: clamp(18px, 2.1vw, 26px);
  background: #fff;
  border-left: 5px solid var(--blue-700);
  box-shadow: 0 14px 32px rgba(7, 38, 90, 0.08);
}

.home-news-list a:nth-child(2) {
  border-left-color: var(--red-700);
}

.home-news-list a:nth-child(3) {
  border-left-color: var(--gold-500);
}

.home-news-list time {
  grid-row: span 2;
  color: var(--red-700);
  font-family: Georgia, serif;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.2;
}

.home-news-list strong {
  color: var(--blue-950);
  font-size: clamp(18px, 1.35vw, 23px);
  line-height: 1.36;
}

.home-news-list p {
  margin: 10px 0 0;
  color: #596a7d;
  font-size: 15px;
  line-height: 1.7;
}

.home-news-list a:hover strong {
  color: var(--blue-700);
}

.gallery-showcase .campus-gallery__track {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr;
  gap: 24px;
}

.gallery-showcase .campus-gallery__track img {
  width: 100%;
  min-width: 0;
  height: clamp(260px, 24vw, 430px);
}

.xmu-scenery .campus-gallery__track img:nth-child(1) {
  grid-row: span 2;
  height: 100%;
}

.xmu-scenery .campus-gallery__track img:nth-child(n + 2) {
  height: clamp(210px, 18vw, 300px);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  padding-top: 22px;
  margin-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.footer-links span {
  color: #f4c567;
  font-weight: 700;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.78);
}

.footer-links a:hover {
  color: #fff;
}

.footer-links--with-qr {
  position: relative;
  padding-right: 168px;
}

.footer-links__list {
  display: grid;
  grid-template-columns: 90px repeat(3, minmax(180px, 1fr));
  gap: 12px 22px;
  align-items: center;
}

.footer-links__list span {
  grid-row: 1 / span 4;
  align-self: start;
  padding-top: 2px;
}

.footer-links__list a {
  display: block;
  min-width: 0;
  line-height: 1.35;
}

.footer-qr {
  position: absolute;
  right: 0;
  bottom: 0;
  margin: 0;
  text-align: center;
  color: rgba(255, 255, 255, 0.82);
  font-size: 12px;
  line-height: 1.2;
}

.footer-qr img {
  display: block;
  width: 136px;
  height: 136px;
  margin: 0 auto 6px;
  object-fit: contain;
  padding: 6px;
  background: #fff;
}

.side-nav a.side-sub {
  padding-left: 28px;
  color: #637084;
  font-size: 15px;
}

.side-nav a.side-sub::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 9px;
  border-radius: 50%;
  background: var(--blue-700);
  vertical-align: middle;
}

.org-link-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(180px, 1fr));
  gap: 18px;
  margin-top: 24px;
}

.org-link-grid a {
  display: flex;
  align-items: center;
  min-height: 92px;
  padding: 24px;
  color: var(--blue-950);
  font-size: 20px;
  font-weight: 800;
  background: #f6f9fd;
  border-left: 5px solid var(--blue-700);
}

.org-link-grid a:nth-child(2) {
  border-left-color: var(--red-700);
}

.org-link-grid a:nth-child(3) {
  border-left-color: var(--gold-500);
}

.org-link-grid a:nth-child(4) {
  border-left-color: #2c8f7b;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: 36px;
  align-items: start;
}

.wechat-qr {
  margin: 0;
  text-align: center;
}

.wechat-qr img {
  width: 200px;
  max-width: 100%;
  height: auto;
  padding: 12px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(7, 38, 90, 0.12);
}

.wechat-qr figcaption {
  margin-top: 12px;
  color: var(--blue-850);
  font-weight: 800;
}

.news-detail__body h2 {
  margin: 34px 0 14px;
  color: var(--blue-950);
  font-size: 26px;
  line-height: 1.35;
}

@media (max-width: 720px) {
  .org-link-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1100px) {
  .home-news-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .home-news-list a {
    grid-template-columns: 1fr;
  }

  .home-news-list time {
    grid-row: auto;
    margin-bottom: 10px;
  }

  .gallery-showcase .campus-gallery__track {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .insight-panel,
  .gallery-panel,
  .gallery-panel img {
    min-height: auto;
  }

  .research-panel > a,
  .lecture-panel article {
    grid-template-columns: 1fr;
  }
}

/* Refined insight layout: research cards, lecture date list, gallery strip. */
.insight-grid {
  grid-template-columns: minmax(0, 1.45fr) minmax(360px, 0.75fr);
  gap: 30px;
  align-items: stretch;
}

.research-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.research-cards article {
  position: relative;
  min-height: 460px;
  padding: 14px 14px 58px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 16px 36px rgba(7, 38, 90, 0.09);
}

.research-cards img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.research-cards h3 {
  margin: 18px 10px 12px;
  color: var(--blue-950);
  font-size: 19px;
  line-height: 1.45;
}

.research-cards p {
  margin: 0 10px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.8;
}

.research-cards time {
  position: absolute;
  right: 22px;
  bottom: 18px;
  color: var(--blue-950);
  font-size: 16px;
}

.research-cards time::before {
  content: "";
  display: inline-block;
  width: 13px;
  height: 13px;
  margin-right: 8px;
  border: 2px solid var(--gold-500);
  vertical-align: -1px;
}

.lecture-list {
  padding: 30px;
  background:
    linear-gradient(180deg, rgba(7, 38, 90, 0.98), rgba(9, 58, 122, 0.94)),
    url("assets/xmu-lake.jpg") center/cover;
  box-shadow: 0 16px 36px rgba(7, 38, 90, 0.13);
}

.lecture-list__head {
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.lecture-list__head span,
.campus-gallery__head span {
  color: var(--gold-500);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.lecture-list__head h3,
.campus-gallery__head h3 {
  margin: 8px 0 0;
  font-size: 30px;
}

.lecture-list__head h3 {
  color: #fff;
}

.lecture-list > a {
  display: grid;
  grid-template-columns: 86px 1fr;
  gap: 20px;
  padding: 24px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.lecture-list time {
  display: grid;
  place-items: center;
  align-content: center;
  min-height: 76px;
  border: 1px solid rgba(255, 255, 255, 0.32);
}

.lecture-list time b {
  color: #f4c567;
  font-size: 34px;
  line-height: 1;
}

.lecture-list time span {
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
}

.lecture-list strong {
  color: #fff;
  font-size: 18px;
  line-height: 1.5;
}

.lecture-list p {
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.68);
  line-height: 1.7;
}

.campus-gallery {
  margin-top: 34px;
  padding: 26px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 16px 36px rgba(7, 38, 90, 0.08);
}

.campus-gallery__head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}

.campus-gallery__head h3 {
  color: var(--blue-950);
}

.campus-gallery__head a {
  color: var(--blue-700);
  font-weight: 900;
}

.campus-gallery__track {
  display: grid;
  grid-template-columns: 1.15fr 1fr 1fr 1fr;
  gap: 18px;
}

.campus-gallery__track img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.gallery-showcase {
  background: linear-gradient(180deg, #fff 0%, #f6f9fc 100%);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.gallery-showcase .campus-gallery {
  margin-top: 0;
}

.gallery-showcase .campus-gallery__track img {
  height: 260px;
}

.campus-gallery__track img:first-child {
  height: 220px;
}

@media (max-width: 1180px) {
  .insight-grid,
  .research-cards,
  .campus-gallery__track {
    grid-template-columns: 1fr;
  }

  .research-cards article {
    min-height: auto;
  }
}

@media (max-width: 640px) {
  .lecture-list > a {
    grid-template-columns: 1fr;
  }

  .campus-gallery {
    padding: 18px;
  }

  .campus-gallery__head {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* XMU-inspired refinement: university portal tone with engineering identity. */
:root {
  --blue-950: #07265a;
  --blue-850: #093a7a;
  --blue-700: #075fa8;
  --red-700: #b53632;
  --gold-500: #c99a45;
  --teal-600: #167f96;
  --ink: #15243a;
  --muted: #65758c;
  --line: #dfe8f2;
  --soft: #f3f7fb;
  --shadow: 0 16px 38px rgba(7, 38, 90, 0.1);
}

body {
  background:
    radial-gradient(circle at 8% 18%, rgba(7, 95, 168, 0.06), transparent 26%),
    linear-gradient(180deg, #fff 0%, #f7fafc 48%, #fff 100%);
}

.site-header {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 1px 0 rgba(7, 38, 90, 0.1), 0 8px 24px rgba(7, 38, 90, 0.06);
}

.top-strip {
  background: linear-gradient(90deg, #08295e, #0b4588);
}

.main-nav__inner {
  min-height: 92px;
}

.brand__xmu {
  width: 198px;
}

.brand__divider {
  background: linear-gradient(180deg, transparent, #b9c9dc, transparent);
}

.brand__institute strong {
  color: #082b63;
  font-size: 25px;
  letter-spacing: 0.02em;
}

.brand__institute em {
  color: #6c7b90;
}

.nav-menu {
  gap: 0;
}

.nav-menu a {
  padding: 35px 10px 33px;
  color: #082b63;
  font-size: 17px;
  letter-spacing: 0;
}

.nav-menu a::after {
  left: 10px;
  right: 10px;
  bottom: 25px;
  height: 2px;
  background: linear-gradient(90deg, var(--red-700), var(--gold-500));
}

.hero-carousel {
  min-height: 96vh;
  background: #082b63;
}

.hero-carousel::before {
  content: "";
  position: absolute;
  z-index: 4;
  left: 0;
  right: 0;
  bottom: 0;
  height: 160px;
  pointer-events: none;
  background: linear-gradient(0deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0));
}

.hero-slide::after {
  background:
    linear-gradient(90deg, rgba(5, 28, 66, 0.86) 0%, rgba(7, 38, 90, 0.66) 42%, rgba(7, 38, 90, 0.18) 74%),
    linear-gradient(0deg, rgba(5, 28, 66, 0.36), rgba(5, 28, 66, 0.06));
}

.hero-slide__content {
  padding-top: 150px;
  padding-bottom: 90px;
}

.hero-slide__content p {
  position: relative;
  margin-bottom: 20px;
  padding-left: 54px;
  color: #f4c567;
  font-size: 18px;
  letter-spacing: 0.05em;
}

.hero-slide__content p::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 38px;
  height: 2px;
  background: #f4c567;
}

.hero-slide__content h1 {
  max-width: 850px;
  font-size: clamp(46px, 5vw, 70px);
  text-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
}

.hero-slide__content a {
  border-radius: 0;
  background: linear-gradient(90deg, #b53632, #cf6a38);
  box-shadow: 0 10px 24px rgba(181, 54, 50, 0.28);
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.hero-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
  font-weight: 700;
  backdrop-filter: blur(6px);
}

.hero-dots {
  bottom: 44px;
}

.hero-ribbon {
  position: absolute;
  z-index: 7;
  left: 0;
  right: 0;
  bottom: 0;
}

.hero-ribbon__inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 -12px 40px rgba(7, 38, 90, 0.16);
}

.hero-ribbon a {
  position: relative;
  min-height: 104px;
  padding: 26px 30px 22px;
  border-right: 1px solid var(--line);
}

.hero-ribbon a:last-child {
  border-right: 0;
}

.hero-ribbon b {
  display: block;
  color: var(--blue-700);
  font-size: 15px;
  letter-spacing: 0.02em;
}

.hero-ribbon span {
  display: block;
  margin-top: 8px;
  color: var(--blue-950);
  font-size: 19px;
  font-weight: 900;
}

.home-section {
  padding: 88px 0;
}

.section-title {
  grid-template-columns: 92px 1fr auto;
  margin-bottom: 34px;
}

.section-title b {
  color: rgba(7, 95, 168, 0.1);
  font-size: 82px;
}

.section-title span {
  color: var(--blue-700);
  letter-spacing: 0.12em;
}

.section-title h2 {
  color: #082b63;
  font-size: 38px;
}

.section-title > a {
  position: relative;
  color: #0b4e93;
}

.section-title > a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 1px;
  background: currentColor;
  opacity: 0.35;
}

.news-showcase {
  background:
    linear-gradient(180deg, #fff 0%, #f6f9fc 100%);
}

.news-showcase::before,
.portal-showcase::before {
  content: "XIAMEN UNIVERSITY";
  position: absolute;
  right: -10px;
  top: 28px;
  color: rgba(7, 95, 168, 0.045);
  font-size: clamp(60px, 9vw, 132px);
  font-weight: 900;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.lead-news,
.news-stack,
.notice-tower,
.portal-grid a {
  border-radius: 0;
}

.lead-news {
  min-height: 450px;
}

.lead-news::after {
  background: linear-gradient(0deg, rgba(7, 38, 90, 0.9), rgba(7, 38, 90, 0.12));
}

.news-stack a {
  border-left: 4px solid transparent;
}

.news-stack a:hover {
  border-left-color: var(--red-700);
  transform: translateX(0);
}

.notice-tower {
  background: #0a3770;
}

.notice-tower__head {
  background:
    linear-gradient(135deg, #082b63, #075fa8);
}

.education-showcase {
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.96) 0%, rgba(246, 249, 252, 0.94) 52%, rgba(7, 38, 90, 0.9) 52%, rgba(7, 38, 90, 0.9) 100%),
    url("assets/hero-carousel-3.png") right center/cover fixed;
}

.section-title--light h2 {
  color: #082b63;
}

.section-title--light b {
  color: rgba(7, 95, 168, 0.1);
}

.education-copy {
  padding-right: 22px;
}

.copy-kicker {
  display: block;
  margin-bottom: 16px;
  color: var(--blue-700);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.education-copy h3 {
  color: #082b63;
}

.education-copy p {
  color: var(--muted);
}

.program-cards a {
  border-radius: 0;
  border: 1px solid rgba(255, 255, 255, 0.26);
  background: rgba(255, 255, 255, 0.12);
}

.program-cards strong,
.program-cards span,
.program-cards b {
  color: #fff;
}

.program-cards b {
  opacity: 0.55;
}

.data-showcase__grid {
  border-radius: 0;
  background:
    linear-gradient(135deg, rgba(7, 38, 90, 0.96), rgba(7, 95, 168, 0.9)),
    url("assets/hero-engineering.png") center/cover;
}

.portal-showcase {
  background:
    linear-gradient(180deg, #f5f8fb 0%, #fff 100%);
}

.portal-grid a {
  border-top: 3px solid #0b4e93;
  box-shadow: 0 12px 28px rgba(7, 38, 90, 0.08);
}

.portal-grid a:nth-child(2) {
  border-top-color: var(--teal-600);
}

.portal-grid a:nth-child(3) {
  border-top-color: var(--red-700);
}

.portal-grid a:nth-child(4) {
  border-top-color: var(--gold-500);
}

.portal-grid a::before {
  display: none;
}

.portal-grid span::after {
  content: "";
  display: block;
  width: 34px;
  height: 2px;
  margin-top: 16px;
  background: currentColor;
  opacity: 0.22;
}

/* Absolute final layout override: homepage sections must span the full screen width. */
main > .home-section > .container,
.xmu-identity-strip > .container,
.hero-ribbon > .container {
  width: 100%;
  max-width: none;
  padding-left: clamp(28px, 5.4vw, 96px);
  padding-right: clamp(28px, 5.4vw, 96px);
}

.news-showcase__grid {
  grid-template-columns: minmax(420px, 1.15fr) minmax(320px, 0.8fr) minmax(330px, 0.58fr);
  gap: 30px;
}

.lead-news {
  min-height: 520px;
}

.education-layout {
  grid-template-columns: minmax(360px, 0.62fr) minmax(720px, 1.38fr);
  gap: clamp(42px, 5vw, 86px);
}

.program-cards {
  grid-template-columns: repeat(4, minmax(210px, 1fr));
  gap: 22px;
}

.program-cards a {
  min-height: 292px;
  padding: 28px;
  background: linear-gradient(180deg, rgba(9, 58, 122, 0.94), rgba(7, 38, 90, 0.98));
  box-shadow: 0 18px 34px rgba(2, 17, 43, 0.22);
}

.program-cards a:nth-child(2) {
  background: linear-gradient(180deg, rgba(22, 127, 150, 0.94), rgba(7, 70, 98, 0.98));
}

.program-cards a:nth-child(3) {
  background: linear-gradient(180deg, rgba(181, 54, 50, 0.94), rgba(112, 34, 44, 0.98));
}

.program-cards a:nth-child(4) {
  background: linear-gradient(180deg, rgba(201, 154, 69, 0.94), rgba(116, 82, 31, 0.98));
}

.data-showcase__grid {
  grid-template-columns: repeat(4, minmax(220px, 1fr));
  background:
    linear-gradient(135deg, rgba(7, 38, 90, 0.96), rgba(7, 95, 168, 0.9)),
    url("assets/xmu-lake.jpg") center/cover;
}

.data-showcase__grid div {
  min-height: 240px;
}

.portal-showcase {
  color: #fff;
  background:
    linear-gradient(90deg, rgba(7, 38, 90, 0.94), rgba(7, 95, 168, 0.86)),
    url("assets/xmu-campus-aerial.jpg") center/cover;
}

.portal-showcase .section-title b {
  color: rgba(255, 255, 255, 0.16);
}

.portal-showcase .section-title span {
  color: #f4c567;
}

.portal-showcase .section-title h2 {
  color: #fff;
}

.portal-grid {
  grid-template-columns: repeat(2, minmax(320px, 1fr));
  gap: 0;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(6px);
}

.portal-grid a {
  min-height: 300px;
  padding: 52px 52px 46px;
  border-top: 0;
  border-right: 1px solid rgba(255, 255, 255, 0.2);
  background: transparent;
  box-shadow: none;
}

.portal-grid a:last-child {
  border-right: 0;
}

.portal-grid b {
  display: block;
  color: rgba(244, 197, 103, 0.82);
  font-size: 38px;
  font-family: Georgia, serif;
  line-height: 1;
}

.portal-grid span {
  margin-top: 26px;
  color: #fff;
  font-size: 26px;
}

.portal-grid em {
  color: rgba(255, 255, 255, 0.62);
}

.portal-grid p {
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.75);
  font-size: 15px;
  line-height: 1.8;
}

.portal-grid a:hover {
  z-index: 1;
  background: rgba(255, 255, 255, 0.96);
  transform: translateY(-10px);
}

.portal-grid a:hover b {
  color: var(--red-700);
}

.portal-grid a:hover span,
.portal-grid a:hover p {
  color: var(--blue-950);
}

.portal-grid a:hover em {
  color: var(--muted);
}

@media (max-width: 1180px) {
  .news-showcase__grid,
  .education-layout {
    grid-template-columns: 1fr;
  }

  .program-cards,
  .data-showcase__grid,
  .portal-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  main > .home-section > .container,
  .xmu-identity-strip > .container,
  .hero-ribbon > .container {
    padding-left: 18px;
    padding-right: 18px;
  }

  .program-cards,
  .data-showcase__grid,
  .portal-grid {
    grid-template-columns: 1fr;
  }
}



/* Absolute final typography override: keep this block at the file end. */
.main-nav__inner {
  min-height: 112px !important;
}

.brand__institute strong {
  font-size: 32px !important;
}

.brand__institute em {
  font-size: 16px !important;
}

.nav-menu {
  gap: clamp(18px, 1.4vw, 28px) !important;
}

.nav-menu a {
  font-size: 23px !important;
  font-weight: 800 !important;
  line-height: 1.18 !important;
}

.home-news-list p,
.article-card p,
.news-showcase p {
  font-size: 21px !important;
  line-height: 2 !important;
}

.home-news-list strong {
  font-size: clamp(26px, 2vw, 34px) !important;
  line-height: 1.42 !important;
}

.article-card h2,
.article-card h2 a {
  font-size: 29px !important;
  line-height: 1.45 !important;
}

@media (max-width: 1320px) {
  .nav-menu a {
    font-size: 20px !important;
  }

  .brand__institute strong {
    font-size: 30px !important;
  }
}

@media (max-width: 980px) {
  .main-nav__inner {
    min-height: 86px !important;
  }

  .nav-menu a {
    font-size: 19px !important;
  }

  .home-news-list p,
  .article-card p,
  .news-showcase p {
    font-size: 18px !important;
  }
}

/* Final portal layout after removing hidden columns. */
.portal-grid {
  grid-template-columns: repeat(2, minmax(320px, 1fr)) !important;
  max-width: 980px;
  margin-left: auto;
  margin-right: auto;
}

.portal-grid a {
  min-height: 320px !important;
  padding: 56px 58px 48px !important;
}

@media (max-width: 760px) {
  .portal-grid {
    grid-template-columns: 1fr !important;
    max-width: none;
  }
}

/* Final education width adjustment. */
.education-showcase > .container {
  max-width: 1280px !important;
}

.education-layout {
  max-width: 1180px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  grid-template-columns: minmax(300px, 0.52fr) minmax(620px, 1fr) !important;
  gap: clamp(32px, 3.8vw, 58px) !important;
}

.program-cards {
  grid-template-columns: repeat(2, minmax(260px, 1fr)) !important;
}

.program-cards a {
  min-height: 220px !important;
}

@media (max-width: 980px) {
  .education-layout {
    grid-template-columns: 1fr !important;
    max-width: 720px !important;
  }
}

/* Final education height adjustment: full-width layout, shorter vertical footprint. */
.education-showcase {
  padding-top: 54px !important;
  padding-bottom: 54px !important;
}

.education-showcase > .container {
  max-width: 1480px !important;
}

.education-showcase .section-title {
  margin-bottom: 28px !important;
}

.education-layout {
  max-width: none !important;
  width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  grid-template-columns: minmax(280px, 0.34fr) minmax(760px, 1fr) !important;
  gap: clamp(28px, 3vw, 48px) !important;
  align-items: stretch !important;
}

.education-copy {
  min-height: 190px !important;
  padding: 26px 28px !important;
}

.education-copy h3 {
  margin-bottom: 12px !important;
}

.education-copy p {
  margin-bottom: 0 !important;
  line-height: 1.75 !important;
}

.program-cards {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 16px !important;
}

.program-cards a {
  min-height: 190px !important;
  padding: 22px 20px !important;
}

.program-cards b {
  margin-bottom: 18px !important;
}

.program-cards strong {
  font-size: 20px !important;
  line-height: 1.35 !important;
}

.program-cards span {
  margin-top: 14px !important;
  font-size: 15px !important;
  line-height: 1.55 !important;
}

@media (max-width: 1180px) {
  .education-layout {
    grid-template-columns: 1fr !important;
  }

  .program-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

/* Final education polish: shorter module and vertically centered cards. */
.education-showcase {
  padding-top: 44px !important;
  padding-bottom: 44px !important;
}

.education-showcase .section-title {
  margin-bottom: 22px !important;
}

.education-layout {
  align-items: center !important;
}

.education-copy {
  min-height: 170px !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
}

.program-cards {
  align-items: stretch !important;
}

.program-cards a {
  min-height: 170px !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: flex-start !important;
  padding: 18px 18px !important;
}

.program-cards b {
  margin-bottom: 12px !important;
}

.program-cards span {
  margin-top: 10px !important;
}

/* Final news list equal-height polish. */
.article-list {
  display: grid !important;
  gap: 22px !important;
}

.article-card {
  min-height: 236px !important;
  display: grid !important;
  grid-template-columns: 128px minmax(0, 1fr) !important;
  align-items: stretch !important;
}

.article-card > div {
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  min-width: 0 !important;
}

.article-card p {
  display: -webkit-box !important;
  -webkit-line-clamp: 3 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
}

@media (max-width: 760px) {
  .article-card {
    grid-template-columns: 1fr !important;
    min-height: auto !important;
  }
}

/* Final article and news center sizing. */
.article-card {
  min-height: 300px !important;
}

.article-card p {
  -webkit-line-clamp: 5 !important;
  font-size: 18px !important;
  line-height: 1.85 !important;
}

.news-article-wrap {
  max-width: 1180px !important;
}

.news-detail {
  max-width: 1060px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

.news-detail__head h1 {
  font-size: clamp(30px, 2.6vw, 42px) !important;
  line-height: 1.42 !important;
}

.news-detail__head p {
  font-size: 21px !important;
  line-height: 1.7 !important;
}

.news-detail__body p,
.news-detail__body li {
  font-size: 18px !important;
  line-height: 2 !important;
}

.news-detail__body figure {
  margin-top: 30px !important;
  margin-bottom: 30px !important;
}

.news-detail__body figcaption {
  font-size: 15px !important;
}

@media (max-width: 760px) {
  .article-card {
    min-height: auto !important;
  }

  .article-card p,
  .news-detail__body p,
  .news-detail__body li {
    font-size: 17px !important;
  }
}

/* Final article page width expansion. */
.news-article-wrap {
  max-width: 1380px !important;
}

.news-detail {
  max-width: 1240px !important;
  padding-left: clamp(42px, 5vw, 86px) !important;
  padding-right: clamp(42px, 5vw, 86px) !important;
}

.news-detail__body figure img {
  width: 100% !important;
}

@media (max-width: 760px) {
  .news-detail {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }
}

/* Final admissions emphasis. */
.admission-feature {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  gap: 28px !important;
  align-items: center !important;
  padding: clamp(28px, 4vw, 44px) !important;
  margin-bottom: 36px !important;
  background: linear-gradient(135deg, #083f86, #0b73bd) !important;
  color: #fff !important;
  border-radius: 0 !important;
  box-shadow: 0 22px 45px rgba(3, 36, 82, 0.22) !important;
}

.admission-feature span {
  display: inline-block !important;
  margin-bottom: 12px !important;
  color: #f6d68b !important;
  font-size: 16px !important;
  font-weight: 800 !important;
}

.admission-feature h2 {
  margin: 0 0 12px !important;
  color: #fff !important;
  font-size: clamp(34px, 3.2vw, 52px) !important;
}

.admission-feature p {
  margin: 0 !important;
  color: rgba(255, 255, 255, 0.88) !important;
  font-size: 19px !important;
}

.admission-feature a {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 190px !important;
  min-height: 54px !important;
  padding: 0 26px !important;
  color: #083f86 !important;
  background: #fff !important;
  font-weight: 800 !important;
}

@media (max-width: 760px) {
  .admission-feature {
    grid-template-columns: 1fr !important;
  }

  .admission-feature a {
    width: 100% !important;
  }
}

/* Final news list 200-character excerpt display. */
.article-card {
  min-height: 390px !important;
}

.article-card p {
  -webkit-line-clamp: 8 !important;
  font-size: 18px !important;
  line-height: 1.85 !important;
}


/* Final admissions link contrast fix. */
.admission-links {
  background: #f4f8fc !important;
  padding: 18px !important;
  border: 1px solid rgba(8, 63, 134, 0.14) !important;
}

.admission-links a {
  color: #083f86 !important;
  background: #ffffff !important;
  border: 1px solid rgba(8, 63, 134, 0.22) !important;
  box-shadow: 0 10px 24px rgba(3, 36, 82, 0.08) !important;
  font-weight: 800 !important;
}

.admission-links a:hover {
  color: #ffffff !important;
  background: #083f86 !important;
  border-color: #083f86 !important;
}

/* Final news excerpt display: show about first 200 characters. */
.home-news-list p,
.article-card p {
  display: block !important;
  overflow: visible !important;
  -webkit-line-clamp: unset !important;
  -webkit-box-orient: unset !important;
}

.home-news-list a {
  min-height: 122px !important;
}

.home-news-layout {
  grid-template-columns: minmax(420px, 0.82fr) minmax(430px, 1.18fr) !important;
  gap: clamp(22px, 3vw, 42px) !important;
}

.home-news-focus,
.home-news-focus img {
  min-height: 390px !important;
}

.home-news-list {
  gap: 12px !important;
}

.home-news-list a {
  grid-template-columns: 96px 1fr !important;
  gap: 0 20px !important;
  padding: clamp(18px, 2.1vw, 26px) !important;
}

.home-news-list time {
  font-size: 19px !important;
}

.home-news-list strong {
  font-size: clamp(18px, 1.35vw, 23px) !important;
}

.home-news-list p {
  margin-top: 10px !important;
  font-size: 15px !important;
  line-height: 1.7 !important;
}

.article-card {
  min-height: 430px !important;
}

/* Final campus scenery crop fix: hide remaining text in first image. */
.xmu-scenery .campus-gallery__track img:nth-child(1) {
  object-fit: cover !important;
  object-position: 58% 36% !important;
  transform: scale(1.18) !important;
  transform-origin: center center !important;
}

.campus-gallery__track {
  overflow: hidden !important;
}

/* Final news detail layout: remove large visual banner and keep article body narrow. */
.page-hero + .page-section .news-article-wrap {
  margin-top: 0 !important;
}

.news-article-wrap {
  max-width: 980px !important;
}

.news-detail {
  max-width: 900px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* Final compact news center list. */
.article-list {
  gap: 12px !important;
}

.article-card {
  grid-template-columns: 96px 1fr !important;
  gap: 16px !important;
  min-height: auto !important;
  padding: 18px 20px !important;
  align-items: start !important;
}

.article-card time {
  min-height: 66px !important;
  padding: 8px !important;
  font-size: 15px !important;
  line-height: 1.25 !important;
}

.article-card h2,
.article-card h2 a {
  margin-bottom: 6px !important;
  font-size: 20px !important;
  line-height: 1.35 !important;
}

.article-card p {
  display: -webkit-box !important;
  overflow: hidden !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  font-size: 14px !important;
  line-height: 1.65 !important;
}

/* Final mobile layout fix: keep news text and footer links readable on phones. */
@media (max-width: 760px) {
  .home-news-layout {
    grid-template-columns: 1fr !important;
    gap: 18px !important;
  }

  .home-news-focus,
  .home-news-focus img {
    min-height: 300px !important;
  }

  .home-news-list {
    gap: 12px !important;
  }

  .home-news-list a {
    display: block !important;
    grid-template-columns: none !important;
    min-height: auto !important;
    padding: 18px !important;
  }

  .home-news-list time {
    display: block !important;
    margin-bottom: 8px !important;
    font-size: 15px !important;
    letter-spacing: 0 !important;
  }

  .home-news-list strong {
    display: block !important;
    font-size: 18px !important;
    line-height: 1.45 !important;
  }

  .home-news-list p {
    display: block !important;
    margin-top: 9px !important;
    font-size: 14px !important;
    line-height: 1.65 !important;
    overflow: visible !important;
    -webkit-line-clamp: unset !important;
    -webkit-box-orient: unset !important;
  }

  .footer-links,
  .footer-links--with-qr {
    display: block !important;
    padding-right: 0 !important;
    padding-bottom: 0 !important;
  }

  .footer-links__list {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 10px 14px !important;
    width: 100% !important;
  }

  .footer-links__list span {
    grid-column: 1 / -1 !important;
    grid-row: auto !important;
    padding-top: 0 !important;
  }

  .footer-links__list a {
    width: auto !important;
    min-width: 0 !important;
    font-size: 13px !important;
    line-height: 1.45 !important;
  }

  .footer-qr {
    position: static !important;
    width: 124px !important;
    margin: 18px auto 0 !important;
  }

  .footer-qr img {
    width: 112px !important;
    height: 112px !important;
  }
}

@media (max-width: 420px) {
  .footer-links__list {
    grid-template-columns: 1fr !important;
  }
}

/* Final mobile adaptation for public emergency site. */
@media (max-width: 760px) {
  html,
  body {
    width: 100% !important;
    overflow-x: hidden !important;
  }

  .container {
    width: min(100% - 32px, 100%) !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .top-strip {
    min-height: 8px !important;
    height: 8px !important;
  }

  .top-strip__inner {
    min-height: 8px !important;
  }

  .main-nav {
    position: relative !important;
    z-index: 20 !important;
  }

  .main-nav__inner {
    min-height: 74px !important;
    padding-top: 10px !important;
    padding-bottom: 10px !important;
    gap: 12px !important;
  }

  .brand {
    min-width: 0 !important;
    flex: 1 1 auto !important;
    gap: 10px !important;
  }

  .brand__xmu {
    width: 148px !important;
    max-width: 42vw !important;
    height: auto !important;
  }

  .brand__divider {
    height: 34px !important;
  }

  .brand__institute {
    min-width: 0 !important;
  }

  .brand__institute strong {
    font-size: 20px !important;
    line-height: 1.1 !important;
    white-space: nowrap !important;
  }

  .brand__institute em {
    display: none !important;
  }

  .nav-toggle {
    display: inline-flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    flex: 0 0 42px !important;
    width: 42px !important;
    height: 42px !important;
    border: 1px solid rgba(8, 63, 134, 0.18) !important;
    background: #fff !important;
  }

  .nav-toggle span {
    display: block !important;
    width: 22px !important;
    height: 2px !important;
    margin: 3px auto !important;
    background: #083f86 !important;
  }

  .nav-menu {
    position: absolute !important;
    top: 100% !important;
    left: 16px !important;
    right: 16px !important;
    display: none !important;
    grid-template-columns: 1fr !important;
    flex-direction: column !important;
    gap: 0 !important;
    padding: 10px 0 !important;
    background: #fff !important;
    border: 1px solid rgba(8, 63, 134, 0.14) !important;
    box-shadow: 0 18px 40px rgba(4, 33, 76, 0.18) !important;
  }

  .nav-menu.is-open {
    display: flex !important;
  }

  .nav-menu a {
    display: block !important;
    padding: 13px 18px !important;
    font-size: 18px !important;
    color: #083f86 !important;
    border-bottom: 1px solid rgba(8, 63, 134, 0.08) !important;
  }

  .nav-menu a:last-child {
    border-bottom: 0 !important;
  }

  .hero-carousel {
    height: 520px !important;
    min-height: 520px !important;
  }

  .hero-slide img {
    object-position: center center !important;
  }

  .hero-slide__content {
    padding-top: 78px !important;
    padding-bottom: 70px !important;
  }

  .hero-slide__content p {
    font-size: 17px !important;
  }

  .hero-slide__content h1 {
    font-size: clamp(38px, 12vw, 54px) !important;
    line-height: 1.15 !important;
  }

  .hero-tags {
    gap: 8px !important;
  }

  .hero-tags span {
    font-size: 14px !important;
    padding: 7px 10px !important;
  }

  .home-section {
    padding-top: 46px !important;
    padding-bottom: 46px !important;
  }

  .section-title {
    display: block !important;
    margin-bottom: 24px !important;
  }

  .section-title b {
    font-size: 50px !important;
  }

  .section-title h2 {
    font-size: 32px !important;
    line-height: 1.25 !important;
  }

  .section-title a {
    display: inline-flex !important;
    margin-top: 14px !important;
  }

  .home-news-layout {
    grid-template-columns: 1fr !important;
    gap: 18px !important;
  }

  .home-news-focus {
    min-height: 280px !important;
  }

  .home-news-list {
    gap: 14px !important;
  }

  .home-news-list a {
    min-height: auto !important;
    padding: 18px !important;
  }

  .home-news-list strong {
    font-size: 21px !important;
  }

  .home-news-list p,
  .article-card p {
    font-size: 16px !important;
    line-height: 1.75 !important;
  }

  .education-showcase {
    padding-top: 42px !important;
    padding-bottom: 42px !important;
  }

  .education-layout {
    grid-template-columns: 1fr !important;
    gap: 18px !important;
  }

  .education-copy {
    min-height: auto !important;
    padding: 22px !important;
  }

  .program-cards {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  .program-cards a {
    min-height: 132px !important;
    padding: 18px !important;
  }

  .gallery-showcase .campus-gallery__track,
  .campus-gallery__track {
    display: flex !important;
    gap: 12px !important;
    overflow-x: auto !important;
    scroll-snap-type: x mandatory !important;
    padding-bottom: 8px !important;
  }

  .gallery-showcase .campus-gallery__track img,
  .campus-gallery__track img {
    flex: 0 0 78vw !important;
    width: 78vw !important;
    height: 220px !important;
    scroll-snap-align: start !important;
  }

  .xmu-scenery .campus-gallery__track img:nth-child(1) {
    transform: none !important;
    object-position: 58% 36% !important;
  }

  .page-hero {
    min-height: 220px !important;
    padding: 46px 0 !important;
  }

  .page-hero h1 {
    font-size: 38px !important;
  }

  .page-grid {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }

  .side-nav {
    position: static !important;
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    padding: 16px !important;
  }

  .side-nav strong {
    flex: 0 0 100% !important;
  }

  .side-nav a {
    padding: 8px 10px !important;
    font-size: 15px !important;
  }

  .content-card,
  .news-detail {
    padding: 22px !important;
  }

  .admission-feature {
    padding: 24px !important;
    gap: 18px !important;
  }

  .admission-feature h2 {
    font-size: 34px !important;
  }

  .admission-feature p {
    font-size: 16px !important;
  }

  .admission-links {
    grid-template-columns: 1fr !important;
    padding: 12px !important;
  }

  .admission-links a {
    min-height: 52px !important;
    font-size: 16px !important;
  }

  .article-list {
    gap: 16px !important;
  }

  .article-card {
    grid-template-columns: 1fr !important;
    min-height: auto !important;
    padding: 18px !important;
  }

  .article-card time {
    width: fit-content !important;
    margin-bottom: 12px !important;
  }

  .article-card h2,
  .article-card h2 a {
    font-size: 22px !important;
  }

  .article-visual-hero--simple {
    min-height: 190px !important;
  }

  .article-visual-hero--simple .container {
    min-height: 190px !important;
  }

  .news-detail__head h1 {
    font-size: 28px !important;
  }

  .news-detail__head p {
    font-size: 18px !important;
  }

  .news-detail__body p,
  .news-detail__body li {
    font-size: 16px !important;
    line-height: 1.9 !important;
  }

  .news-detail__body figure {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  .footer-grid {
    grid-template-columns: 1fr !important;
    gap: 18px !important;
  }

  .footer-brand {
    align-items: flex-start !important;
  }

  .footer-brand img {
    width: 150px !important;
  }

  .footer-links {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 10px 14px !important;
    padding-bottom: 22px !important;
  }
}

@media (max-width: 420px) {
  .brand__xmu {
    width: 126px !important;
  }

  .brand__institute strong {
    font-size: 18px !important;
  }

  .hero-carousel {
    height: 480px !important;
    min-height: 480px !important;
  }

  .hero-slide__content h1 {
    font-size: 34px !important;
  }

  .hero-tags span {
    font-size: 13px !important;
  }
}

.news-figure {
  margin: 34px 0;
}

.news-figure img {
  display: block;
  width: 100%;
  max-height: 560px;
  object-fit: cover;
  border-radius: 8px;
}

.news-figure figcaption {
  margin-top: 10px;
  color: #68768a;
  font-size: 16px;
  line-height: 1.7;
  text-align: center;
}

@media (max-width: 640px) {
  .news-figure {
    margin: 24px 0;
  }

  .news-figure img {
    max-height: none;
  }
}

/* Final campus gallery balance: keep the first image from overlapping neighbors. */
.gallery-showcase .campus-gallery__track {
  grid-template-columns: 1.08fr 1fr 1fr !important;
  gap: 26px !important;
  align-items: stretch !important;
}

.xmu-scenery .campus-gallery__track img:nth-child(1) {
  transform: none !important;
  object-fit: cover !important;
  object-position: 62% 34% !important;
}

.gallery-showcase .campus-gallery__track img {
  min-width: 0 !important;
  max-width: 100% !important;
}

@media (max-width: 760px) {
  .article-list {
    gap: 10px !important;
  }

  .article-card {
    display: block !important;
    min-height: auto !important;
    padding: 16px !important;
  }

  .article-card time {
    display: inline-flex !important;
    min-height: 0 !important;
    margin-bottom: 8px !important;
    padding: 5px 9px !important;
    font-size: 13px !important;
  }

  .article-card h2,
  .article-card h2 a {
    font-size: 18px !important;
    line-height: 1.4 !important;
  }

  .article-card p {
    display: -webkit-box !important;
    overflow: hidden !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    font-size: 14px !important;
    line-height: 1.6 !important;
  }
}

/* Boda nav component output: supports list_menu with optional sub menus. */
.nav-menu ul,
.nav-menu .clearfix {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-menu li,
.nav-menu .nav-item {
  position: relative;
  list-style: none;
}

.nav-menu li > a,
.nav-menu .nav-item > a {
  display: block;
}

.nav-menu .subnav {
  position: absolute;
  top: 100%;
  left: 50%;
  z-index: 80;
  min-width: 184px;
  padding: 8px 0;
  background: #fff;
  border: 1px solid rgba(14, 75, 132, 0.12);
  border-radius: 8px;
  box-shadow: 0 18px 38px rgba(16, 45, 78, 0.16);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 8px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
}

.nav-menu li:hover .subnav,
.nav-menu li:focus-within .subnav,
.nav-menu .nav-item:hover .subnav,
.nav-menu .nav-item:focus-within .subnav {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

.nav-menu .subnav a {
  display: block;
  padding: 11px 18px;
  color: var(--blue-850);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
  white-space: nowrap;
}

.nav-menu .subnav a::after {
  display: none;
}

.nav-menu .subnav a:hover {
  background: #f2f7fc;
  color: var(--blue-700);
}

@media (max-width: 980px) {
  .nav-menu ul,
  .nav-menu .clearfix {
    display: flex;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .nav-menu li,
  .nav-menu .nav-item {
    width: 100%;
  }

  .nav-menu .subnav {
    position: static;
    min-width: 0;
    padding: 0 0 6px 14px;
    background: #f7fbff;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .nav-menu li:hover .subnav,
  .nav-menu li:focus-within .subnav,
  .nav-menu .nav-item:hover .subnav,
  .nav-menu .nav-item:focus-within .subnav {
    transform: none;
  }

  .nav-menu .subnav a {
    padding: 10px 26px;
    font-size: 15px;
    font-weight: 600;
  }
}

/* Brand/nav hierarchy after removing unofficial English name. */
.brand {
  gap: 16px !important;
}

.brand__divider {
  width: 3px !important;
  height: 46px !important;
  border-radius: 99px !important;
  background: linear-gradient(180deg, var(--red-700), var(--gold-500)) !important;
}

.brand__institute {
  display: block !important;
  padding-left: 2px !important;
}

.brand__institute strong {
  color: var(--blue-950) !important;
  font-size: 28px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  letter-spacing: 0 !important;
}

.nav-menu a {
  color: #24476f !important;
  font-size: 20px !important;
  font-weight: 800 !important;
  padding-left: 6px !important;
  padding-right: 6px !important;
}

@media (max-width: 1180px) {
  .brand__institute strong {
    font-size: 24px !important;
  }

  .nav-menu a {
    font-size: 19px !important;
    padding-left: 4px !important;
    padding-right: 4px !important;
  }
}

@media (max-width: 980px) {
  .brand__divider {
    width: 2px !important;
    height: 34px !important;
  }

  .brand__institute strong {
    font-size: 20px !important;
  }
}

/* Homepage news dates: vertically centered and clearly separated from excerpts. */
.news-showcase .home-news-list a {
  grid-template-columns: 116px minmax(0, 1fr) !important;
  column-gap: 32px !important;
  align-items: stretch !important;
}

.news-showcase .home-news-list time {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  align-self: stretch !important;
  margin: 0 !important;
  padding-right: 24px !important;
  border-right: 1px solid #d7e1eb !important;
  font-family: Arial, "Microsoft YaHei", sans-serif !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  font-variant-numeric: tabular-nums !important;
  font-feature-settings: "tnum" 1 !important;
  line-height: 1 !important;
  letter-spacing: 0 !important;
  text-align: center !important;
}

@media (max-width: 760px) {
  .news-showcase .home-news-list a {
    display: block !important;
  }

  .news-showcase .home-news-list time {
    display: block !important;
    margin-bottom: 12px !important;
    padding: 0 0 10px !important;
    border-right: 0 !important;
    border-bottom: 1px solid #d7e1eb !important;
    text-align: left !important;
  }
}

/* Article detail final polish: wider reading area, calmer title, visible view count. */
.page-section > .news-article-wrap {
  max-width: 1180px !important;
}

.page-section > .news-article-wrap .news-detail {
  max-width: 1080px !important;
  padding: clamp(28px, 4vw, 58px) clamp(30px, 5vw, 72px) !important;
}

.page-section > .news-article-wrap .news-detail__head {
  margin-bottom: 28px !important;
  padding-bottom: 22px !important;
}

.page-section > .news-article-wrap .news-detail__head h1 {
  max-width: 900px !important;
  font-size: clamp(24px, 2.15vw, 34px) !important;
  line-height: 1.42 !important;
  letter-spacing: 0 !important;
}

.page-section > .news-article-wrap .news-detail__head div {
  gap: 8px 22px !important;
  align-items: center !important;
  font-size: 14px !important;
}

.page-section > .news-article-wrap .article-views {
  color: #5f7288 !important;
}

.page-section > .news-article-wrap .news-detail__body {
  max-width: 960px !important;
}

.page-section > .news-article-wrap .news-detail__body p,
.page-section > .news-article-wrap .news-detail__body li {
  font-size: 17px !important;
  line-height: 1.95 !important;
}

@media (max-width: 760px) {
  .page-section > .news-article-wrap .news-detail {
    padding: 24px 18px !important;
  }

  .page-section > .news-article-wrap .news-detail__head h1 {
    font-size: 22px !important;
    line-height: 1.45 !important;
  }

  .page-section > .news-article-wrap .news-detail__head div {
    display: grid !important;
    justify-items: center !important;
    gap: 8px !important;
  }
}
