:root {
  --red: #8f101d;
  --red-dark: #650713;
  --ink: #1e252b;
  --muted: #68727d;
  --line: #e6e0d8;
  --paper: #f7f4ef;
  --white: #ffffff;
  --gold: #c79a45;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--white);
  box-shadow: 0 8px 28px rgba(32, 20, 12, 0.12);
}

.topbar,
.main-nav,
.section,
.footer {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
}

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

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

.brand-mark {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  color: var(--white);
  background: var(--red);
  border-radius: 4px;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand strong {
  display: block;
  font-size: 26px;
  line-height: 1.1;
}

.brand small {
  display: block;
  color: var(--muted);
  margin-top: 4px;
}

.quick-links,
.main-nav {
  display: flex;
  align-items: center;
}

.quick-links {
  gap: 20px;
  color: var(--muted);
  font-size: 14px;
}

.main-nav {
  justify-content: center;
  min-height: 54px;
  color: var(--white);
  background: var(--red-dark);
}

.main-nav a {
  padding: 18px 28px;
  font-weight: 700;
}

.main-nav a:hover {
  background: var(--red);
}

.hero {
  position: relative;
  min-height: 560px;
  display: flex;
  align-items: end;
  overflow: hidden;
  background-image: url("assets/campus.jpg");
  background-position: center;
  background-size: cover;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(24, 12, 12, 0.78), rgba(24, 12, 12, 0.34)),
    linear-gradient(0deg, rgba(24, 12, 12, 0.5), transparent 44%);
}

.hero-content {
  position: relative;
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto 72px;
  color: var(--white);
}

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

.hero h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(38px, 6vw, 68px);
  line-height: 1.12;
}

.hero-copy {
  max-width: 650px;
  margin: 22px 0 0;
  font-size: 19px;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 4px;
  font-weight: 800;
}

.btn.primary {
  border-color: var(--red);
  background: var(--red);
}

.btn.ghost {
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}

.section {
  padding: 72px 0;
}

.notice-band {
  width: 100%;
  max-width: none;
  display: flex;
  justify-content: center;
  gap: 16px;
  padding: 18px 40px;
  color: var(--white);
  background: var(--red);
}

.section-title {
  text-align: center;
  margin-bottom: 32px;
}

.section-title.left {
  text-align: left;
}

.section-title h2 {
  margin: 0;
  font-size: 34px;
}

.news-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr 1fr;
  gap: 22px;
}

.news-grid .section-title {
  grid-column: 1 / -1;
}

.feature-card,
.news-card,
.project-grid article {
  border-top: 4px solid var(--red);
  background: var(--white);
  padding: 28px;
  box-shadow: 0 14px 36px rgba(42, 34, 24, 0.08);
}

.feature-card {
  min-height: 240px;
  background: var(--ink);
  color: var(--white);
}

.date {
  color: var(--gold);
  font-weight: 800;
}

.feature-card h3,
.news-card h3,
.project-grid h3 {
  margin: 18px 0 12px;
  font-size: 24px;
}

.feature-card p,
.news-card p,
.project-grid p,
.lead,
.footer p {
  color: var(--muted);
  line-height: 1.8;
}

.feature-card p {
  color: rgba(255, 255, 255, 0.75);
}

.split {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: 56px;
  align-items: start;
}

.lead {
  margin: 0;
  font-size: 18px;
}

.resource-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.resource-list a {
  display: block;
  padding: 22px;
  border-left: 4px solid var(--red);
  background: var(--white);
}

.resource-list strong,
.resource-list span {
  display: block;
}

.resource-list span {
  color: var(--muted);
  margin-top: 8px;
  line-height: 1.6;
}

.stats {
  width: 100%;
  max-width: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  padding: 0;
  background: var(--line);
}

.stats div {
  text-align: center;
  padding: 46px 20px;
  background: var(--white);
}

.stats strong {
  display: block;
  color: var(--red);
  font-size: 46px;
  line-height: 1;
}

.stats span {
  display: block;
  margin-top: 12px;
  color: var(--muted);
}

.project-band {
  width: 100%;
  max-width: none;
  padding-left: max(20px, calc((100% - 1160px) / 2));
  padding-right: max(20px, calc((100% - 1160px) / 2));
  background: #2a3036;
}

.project-band .section-title h2 {
  color: var(--white);
}

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

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

.link-grid a {
  display: flex;
  align-items: center;
  min-height: 64px;
  padding: 0 22px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--white);
  font-weight: 800;
}

.link-grid a:hover {
  color: var(--white);
  border-color: var(--red);
  background: var(--red);
}

.timeline ol {
  max-width: 780px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}

.timeline li {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 24px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  line-height: 1.7;
}

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

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 36px 0;
  border-top: 1px solid var(--line);
}

.footer strong {
  color: var(--red);
  font-size: 22px;
}

.footer p {
  margin: 6px 0 0;
}

@media (max-width: 820px) {
  .topbar,
  .footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .quick-links {
    flex-wrap: wrap;
  }

  .main-nav {
    justify-content: flex-start;
    overflow-x: auto;
  }

  .main-nav a {
    flex: 0 0 auto;
    padding: 16px 18px;
  }

  .hero {
    min-height: 620px;
  }

  .notice-band,
  .news-grid,
  .split,
  .resource-list,
  .stats,
  .project-grid,
  .link-grid {
    grid-template-columns: 1fr;
  }

  .notice-band {
    display: grid;
    justify-content: initial;
  }

  .timeline li {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}
