:root {
  --ink: #101724;
  --navy: #071b36;
  --navy-2: #0d2b51;
  --oxblood: #7b1f2b;
  --oxblood-dark: #51131b;
  --gold: #c7a35a;
  --ivory: #f4efe4;
  --paper: #fbf8ef;
  --stone: #d8d0bf;
  --muted: #657084;
  --line: rgba(16, 23, 36, 0.16);
  --shadow: 0 22px 60px rgba(7, 27, 54, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family:
    "Noto Serif SC",
    "Songti SC",
    "SimSun",
    "Times New Roman",
    serif;
  line-height: 1.65;
  overflow-x: hidden;
}

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

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  padding: 0.65rem 0.9rem;
  background: var(--gold);
  color: var(--ink);
  font-weight: 700;
}

.skip-link:focus {
  top: 1rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  color: #fff;
  box-shadow: 0 10px 32px rgba(3, 12, 24, 0.22);
}

.alert-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: center;
  padding: 0.5rem 1rem;
  background: var(--oxblood-dark);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
}

.alert-bar span::before {
  content: "";
  display: inline-block;
  width: 0.45rem;
  height: 0.45rem;
  margin-right: 0.45rem;
  border-radius: 999px;
  background: var(--gold);
  vertical-align: 0.05rem;
}

.masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  min-height: 92px;
  padding: 1rem clamp(1rem, 4vw, 4.5rem);
  background: var(--navy);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  min-width: 17rem;
}

.crest {
  display: grid;
  place-items: center;
  width: 3.7rem;
  aspect-ratio: 1;
  border: 2px solid var(--gold);
  border-radius: 50%;
  color: var(--gold);
  font-size: 1.7rem;
  font-weight: 700;
  box-shadow: inset 0 0 0 6px rgba(199, 163, 90, 0.12);
}

.brand strong {
  display: block;
  font-size: clamp(1.05rem, 2vw, 1.55rem);
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.brand small {
  display: block;
  margin-top: 0.1rem;
  color: rgba(255, 255, 255, 0.72);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.25rem;
  font-family:
    "Microsoft YaHei",
    "PingFang SC",
    sans-serif;
}

.main-nav a {
  padding: 0.55rem 0.8rem;
  border-bottom: 2px solid transparent;
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.92rem;
}

.main-nav a:hover,
.main-nav a:focus {
  border-color: var(--gold);
  color: #fff;
}

.hero {
  position: relative;
  min-height: clamp(620px, 78vh, 820px);
  overflow: hidden;
  color: #fff;
}

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(4, 14, 27, 0.88), rgba(4, 14, 27, 0.56) 42%, rgba(4, 14, 27, 0.2)),
    linear-gradient(0deg, rgba(4, 14, 27, 0.7), rgba(4, 14, 27, 0) 54%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(760px, calc(100% - 2rem));
  padding: clamp(6rem, 12vw, 10rem) 0 7rem;
  margin-left: clamp(1rem, 8vw, 7rem);
}

.eyebrow,
.section-kicker,
.label {
  margin: 0 0 0.65rem;
  color: var(--oxblood);
  font-family:
    "Microsoft YaHei",
    "PingFang SC",
    sans-serif;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: var(--gold);
}

.hero h1 {
  margin: 0;
  font-size: clamp(3.2rem, 7vw, 6.6rem);
  line-height: 0.98;
  letter-spacing: 0;
  white-space: nowrap;
  text-shadow: 0 6px 36px rgba(0, 0, 0, 0.45);
}

.hero-copy {
  max-width: 40rem;
  margin: 1.5rem 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1.06rem, 2vw, 1.28rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.8rem 1.05rem;
  border: 1px solid transparent;
  font-family:
    "Microsoft YaHei",
    "PingFang SC",
    sans-serif;
  font-size: 0.92rem;
  font-weight: 700;
}

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

.button.primary:hover,
.button.primary:focus {
  background: #8c2835;
}

.button.secondary {
  border-color: rgba(255, 255, 255, 0.78);
  color: #fff;
  background: rgba(7, 27, 54, 0.28);
}

.button.secondary:hover,
.button.secondary:focus {
  border-color: var(--gold);
}

.notice-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  max-width: 1180px;
  margin: -5rem auto 0;
  position: relative;
  z-index: 2;
  background: var(--ivory);
  border-top: 5px solid var(--gold);
  box-shadow: var(--shadow);
}

.notice-strip article {
  padding: clamp(1.2rem, 3vw, 1.8rem);
  border-right: 1px solid var(--line);
}

.notice-strip article:last-child {
  border-right: 0;
}

.notice-strip h2 {
  margin: 0;
  font-size: clamp(1.12rem, 2vw, 1.42rem);
  line-height: 1.28;
}

.notice-strip p:last-child {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.96rem;
}

.section {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  padding: clamp(4rem, 8vw, 6.5rem) 0;
}

.intro-section {
  padding-top: clamp(5.5rem, 10vw, 8rem);
}

.split {
  display: grid;
  grid-template-columns: minmax(16rem, 0.9fr) minmax(18rem, 1.2fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}

.section h2,
.split h2 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(2.15rem, 5vw, 4rem);
  line-height: 1.08;
  letter-spacing: 0;
}

.rich-text p {
  margin-top: 0;
  color: #263347;
  font-size: 1.07rem;
}

.section-heading {
  max-width: 740px;
  margin-bottom: 2rem;
}

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

.college-grid,
.rules-list,
.quick-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.college-card,
.rules-list article,
.quick-grid article {
  overflow-wrap: anywhere;
  min-height: 15rem;
  padding: 1.5rem;
  border: 1px solid var(--line);
  background: #fffdf7;
}

.college-card {
  border-top: 5px solid var(--oxblood);
}

.college-card h3,
.rules-list h3,
.quick-grid h3 {
  margin: 0 0 0.75rem;
  color: var(--navy);
  font-size: 1.45rem;
  line-height: 1.25;
}

.college-card p:last-child,
.rules-list p,
.quick-grid p {
  color: var(--muted);
}

.service-band {
  width: 100%;
  max-width: none;
  padding-right: max(1rem, calc((100vw - 1180px) / 2));
  padding-left: max(1rem, calc((100vw - 1180px) / 2));
  background:
    linear-gradient(135deg, rgba(7, 27, 54, 0.98), rgba(13, 43, 81, 0.96)),
    var(--navy);
  color: #fff;
}

.service-band .section-heading h2 {
  color: #fff;
}

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

.service-band .section-kicker {
  color: var(--gold);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(255, 255, 255, 0.16);
}

.service-link {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 11.5rem;
  padding: 1.4rem;
  background: rgba(255, 255, 255, 0.06);
  border-top: 4px solid transparent;
}

.service-link:hover,
.service-link:focus {
  border-color: var(--gold);
  background: rgba(255, 255, 255, 0.12);
}

.service-link span {
  font-size: 1.42rem;
  font-weight: 700;
}

.service-link small {
  color: rgba(255, 255, 255, 0.68);
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.service-link.featured {
  background: var(--oxblood);
}

.rules-section {
  border-bottom: 1px solid var(--line);
}

.rules-list {
  grid-template-columns: repeat(4, 1fr);
}

.rules-list article {
  min-height: 13rem;
  background: transparent;
  border-top: 1px solid var(--line);
  border-right: 0;
  border-bottom: 0;
  border-left: 0;
}

.forum-section {
  width: 100%;
  max-width: none;
  padding-right: max(1rem, calc((100vw - 1180px) / 2));
  padding-left: max(1rem, calc((100vw - 1180px) / 2));
  background: var(--ivory);
}

.forum-panel {
  display: grid;
  grid-template-columns: minmax(18rem, 1fr) minmax(18rem, 0.9fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  padding: clamp(2rem, 5vw, 3rem);
  background: #fffdf7;
  border-left: 7px solid var(--oxblood);
  box-shadow: var(--shadow);
}

.forum-panel h2 {
  color: var(--navy);
}

.forum-panel p {
  color: #344158;
}

.board-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}

.board-list span {
  overflow-wrap: anywhere;
  min-height: 3.3rem;
  padding: 0.85rem;
  background: var(--navy);
  color: #fff;
  font-family:
    "Microsoft YaHei",
    "PingFang SC",
    sans-serif;
  font-size: 0.92rem;
}

.quick-section {
  display: grid;
  grid-template-columns: 0.8fr 1.4fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.quick-grid {
  grid-template-columns: repeat(3, 1fr);
}

.quick-grid article {
  min-height: 11rem;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  padding: 2rem clamp(1rem, 4vw, 4.5rem);
  background: var(--navy);
  color: #fff;
}

.site-footer p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
}

@media (max-width: 980px) {
  .masthead {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .notice-strip,
  .college-grid,
  .service-grid,
  .rules-list,
  .quick-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .notice-strip {
    margin-top: 0;
  }

  .split,
  .forum-panel,
  .quick-section {
    grid-template-columns: 1fr;
  }
}

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

  .alert-bar {
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 0.85rem;
    overflow-x: auto;
    padding: 0.42rem 0.75rem;
    font-size: 0.68rem;
    white-space: nowrap;
    scrollbar-width: none;
  }

  .alert-bar::-webkit-scrollbar {
    display: none;
  }

  .masthead {
    min-height: auto;
    gap: 0.75rem;
    padding: 0.85rem 0.8rem 0.75rem;
  }

  .brand {
    min-width: 0;
    gap: 0.7rem;
  }

  .crest {
    width: 2.8rem;
    flex: 0 0 auto;
  }

  .brand strong {
    font-size: 1.05rem;
    line-height: 1.25;
    white-space: normal;
  }

  .brand small {
    font-size: 0.66rem;
    letter-spacing: 0.06em;
  }

  .main-nav {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.45rem;
    overflow-x: auto;
    padding-bottom: 0.1rem;
    width: 100%;
    scrollbar-width: none;
  }

  .main-nav::-webkit-scrollbar {
    display: none;
  }

  .main-nav a {
    flex: 0 0 auto;
    padding: 0.48rem 0.68rem;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.06);
    font-size: 0.82rem;
  }

  .hero {
    min-height: 540px;
  }

  .hero-image {
    object-position: 52% center;
  }

  .hero-overlay {
    background:
      linear-gradient(90deg, rgba(4, 14, 27, 0.9), rgba(4, 14, 27, 0.58)),
      linear-gradient(0deg, rgba(4, 14, 27, 0.84), rgba(4, 14, 27, 0.1) 58%);
  }

  .hero-content {
    width: calc(100% - 2rem);
    margin: 0 auto;
    padding: 4.2rem 0 2.6rem;
  }

  .eyebrow,
  .section-kicker,
  .label {
    font-size: 0.68rem;
    letter-spacing: 0.08em;
  }

  .hero h1 {
    font-size: clamp(2rem, 9.5vw, 3.55rem);
    line-height: 1.04;
  }

  .hero-copy {
    margin-top: 1rem;
    font-size: 1rem;
  }

  .hero-actions {
    flex-direction: column;
    gap: 0.65rem;
    margin-top: 1.45rem;
  }

  .button {
    width: 100%;
    min-height: 46px;
    padding: 0.72rem 0.9rem;
  }

  .notice-strip,
  .college-grid,
  .service-grid,
  .rules-list,
  .quick-grid,
  .board-list {
    grid-template-columns: 1fr;
  }

  .notice-strip {
    width: calc(100% - 1.25rem);
    margin: 0.75rem auto 0;
    box-shadow: 0 14px 34px rgba(7, 27, 54, 0.14);
  }

  .notice-strip article {
    padding: 1.1rem;
  }

  .notice-strip article {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .notice-strip article:last-child {
    border-bottom: 0;
  }

  .section {
    width: min(100% - 1.25rem, 1180px);
    padding: 3.25rem 0;
  }

  .intro-section {
    padding-top: 3.75rem;
  }

  .section h2,
  .split h2 {
    font-size: clamp(1.85rem, 9vw, 2.65rem);
    line-height: 1.12;
  }

  .section-heading {
    margin-bottom: 1.35rem;
  }

  .rich-text p {
    font-size: 1rem;
  }

  .college-card,
  .rules-list article,
  .quick-grid article {
    padding: 1.15rem;
  }

  .college-card,
  .rules-list article,
  .quick-grid article {
    min-height: auto;
  }

  .service-band,
  .forum-section {
    padding-right: 0.75rem;
    padding-left: 0.75rem;
  }

  .service-link {
    min-height: 7.2rem;
    padding: 1.05rem;
  }

  .service-link span {
    font-size: 1.16rem;
  }

  .forum-panel {
    padding: 1.15rem;
    border-top: 5px solid var(--oxblood);
    border-left: 0;
    box-shadow: none;
  }

  .board-list span {
    min-height: auto;
    padding: 0.78rem;
  }

  .site-footer {
    display: block;
    padding: 1.45rem 1rem;
  }
}

@media (max-width: 420px) {
  .alert-bar span:nth-child(3) {
    display: none;
  }

  .brand small {
    display: none;
  }

  .hero {
    min-height: 500px;
  }

  .hero-content {
    padding-top: 3.4rem;
  }

  .hero h1 {
    font-size: clamp(1.85rem, 9vw, 2.65rem);
  }
}
