:root {
  --red: #c9000b;
  --deep-red: #8c0814;
  --ink: #241d1d;
  --muted: #6e6462;
  --line: #e8e0df;
  --wash: #f7f3f2;
  --display: "Songti SC", "Noto Serif CJK SC", "SimSun", serif;
  --section-space: clamp(58px, 7vw, 104px);
  color: var(--ink);
  font: 15px/1.65 "PingFang SC", "Microsoft YaHei", sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: #fff; }
h1, h2, h3, p, blockquote { margin: 0; }
button { padding: 0; border: 0; background: none; color: inherit; font: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; object-fit: cover; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 4px; }
.wrap { width: min(1200px, calc(100% - 112px)); margin-inline: auto; }
section { min-width: 0; scroll-margin-top: 26px; }
main { padding-bottom: var(--section-space); }

.ui-icon {
  display: inline-block;
  flex: none;
  width: var(--icon-size, 16px);
  height: var(--icon-size, 16px);
  background: var(--icon) center / contain no-repeat;
  vertical-align: -0.19em;
}
.icon-open-book { --icon: url(assets/icons/open-book.png); }
.icon-flag { --icon: url(assets/icons/flag.png); }
.icon-layers { --icon: url(assets/icons/layers.png); }
.icon-people { --icon: url(assets/icons/people.png); }
.icon-shield { --icon: url(assets/icons/shield.png); }
.icon-document { --icon: url(assets/icons/document.png); }
.icon-archive { --icon: url(assets/icons/archive.png); }
.icon-clipboard { --icon: url(assets/icons/clipboard.png); }
.icon-user { --icon: url(assets/icons/user.png); }
.icon-bell { --icon: url(assets/icons/bell.png); }
.icon-calendar { --icon: url(assets/icons/calendar.png); }
.icon-arrow { --icon: url(assets/icons/arrow.png); }
.icon-chevron { --icon: url(assets/icons/chevron.png); }
.icon-close { --icon: url(assets/icons/close.png); }

.icon-tile {
  display: inline-grid;
  flex: none;
  place-items: center;
  width: var(--tile-size, 36px);
  height: var(--tile-size, 36px);
  border: 1px solid #ebd7d5;
  border-radius: 9px;
  background: linear-gradient(145deg, #fff, #f7eceb);
  color: var(--deep-red);
  --icon-size: 21px;
}

.hero {
  position: relative;
  display: grid;
  align-items: end;
  min-height: clamp(460px, 45vw, 760px);
  border-top: 4px solid var(--red);
  color: #fff;
  background:
    linear-gradient(90deg, #1f100db5 0%, #25120e58 46%, transparent 79%),
    linear-gradient(0deg, #1c0d0bb5, transparent 62%),
    #624236 url(assets/hero-great-wall.webp) center 50% / cover no-repeat;
}
.hero-inner { padding-block: 64px clamp(96px, 10vw, 148px); }
.hero-copy { max-width: 780px; }
.hero-copy::before {
  content: "";
  display: block;
  width: 54px;
  height: 3px;
  margin-bottom: 22px;
  background: #e6292f;
}
.hero h1 {
  font: 700 clamp(34px, 4.35vw, 71px)/1.22 var(--display);
  letter-spacing: .035em;
  text-shadow: 0 2px 18px #1e100d70;
}
.hero p { margin: 16px 0 25px; color: #fff1e8; font-size: clamp(15px, 1.5vw, 21px); }
.red-button, .light-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 42px;
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}
.red-button { color: #fff; background: var(--red); }
.red-button:hover { background: var(--deep-red); }
.light-button { color: var(--deep-red); background: #fff; }
.light-button:hover { background: #fae2df; }
.hero :focus-visible, .activity-card :focus-visible { outline-color: #fff; }
.hero-arrow, .teacher-arrow {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid currentColor;
  border-radius: 50%;
  --icon-size: 18px;
}
.prev .icon-chevron { transform: rotate(180deg); }
.hero-arrow .ui-icon, .red-button .ui-icon, .teacher-arrow:hover .ui-icon { filter: brightness(0) invert(1); }
.hero-arrow { position: absolute; bottom: 78px; color: #fff; background: #210e0c32; }
.hero-arrow:hover { background: var(--red); border-color: var(--red); }
.hero-arrow.next { right: max(56px, calc((100% - 1200px) / 2)); }
.hero-arrow.prev { right: max(108px, calc((100% - 1200px) / 2 + 52px)); }
.dots {
  position: absolute;
  bottom: 68px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 9px;
}
.dots button { position: relative; width: 9px; height: 9px; border-radius: 9px; background: #ffffff80; }
.dots button::after { content: ""; position: absolute; inset: -5px; }
.dots button[aria-current=true] { width: 27px; background: #fff; }

.entries {
  position: relative;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  margin-top: -38px;
  padding: 12px 16px;
  border-top: 3px solid var(--red);
  box-shadow: 0 10px 34px #3b202015;
  background: #fff;
}
.entries a {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 4px;
  min-height: 69px;
  border-inline-end: 1px solid var(--line);
  font-size: 14px;
  font-weight: 650;
}
.entries a:last-child { border-inline-end: 0; }
.entries a:hover { color: var(--red); background: #fbf5f4; }
.entries a:hover .icon-tile { color: var(--red); border-color: #d6a7a9; }

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  margin-bottom: 23px;
}
.section-head h2 {
  font: 700 clamp(24px, 2.45vw, 38px)/1.2 var(--display);
  white-space: nowrap;
}
.more {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  --icon-size: 12px;
  align-self: center;
  padding: 4px 0;
  border-bottom: 1px solid #d6a7a9;
  color: var(--deep-red);
  font-size: 13px;
  white-space: nowrap;
}
.more:hover { border-color: currentColor; color: var(--red); }

.news-grid {
  display: grid;
  grid-template-columns: minmax(0, 2.35fr) minmax(0, 1fr);
  gap: 30px;
  margin-block: clamp(48px, 5.3vw, 78px) var(--section-space);
}
#news, #knowledge, .feature-grid > section {
  display: flex;
  flex-direction: column;
}
.news-content, .quote-card, .feature, .training-grid { flex: 1; }
.news-content {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 22px;
}
.news-lead { min-width: 0; text-align: left; background: var(--wash); }
.news-lead img { width: 100%; aspect-ratio: 2.1; object-position: center 24%; }
.news-lead span {
  display: block;
  padding: 16px 18px 20px;
  border-top: 3px solid var(--red);
  font: 700 clamp(17px, 1.6vw, 24px)/1.45 var(--display);
}
.news-list {
  display: grid;
  grid-auto-rows: minmax(36px, 1fr);
}
.news-list button {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 6px 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
  font-size: 13px;
  line-height: 1.5;
}
.news-list button:last-child { border-bottom: 0; }
.news-list strong { font-weight: 400; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.news-list time { color: var(--deep-red); font-size: 12px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.quote-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 230px;
  padding: clamp(18px, 2.4vw, 35px);
  background: #f9ece5;
  color: #681117;
}
.quote-card::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: auto 0 0 auto;
  width: 74%;
  height: 76%;
  background: url(assets/hd/book.webp) bottom right / contain no-repeat;
  mix-blend-mode: multiply;
  mask-image: radial-gradient(ellipse at bottom right, black 24%, transparent 77%);
  opacity: .73;
}
.quote-card blockquote { margin-bottom: 10px; font: 700 clamp(19px, 1.85vw, 29px)/1.5 var(--display); }
.quote-card cite { font-size: 12px; font-style: normal; }

.course-band {
  padding-block: clamp(38px, 5vw, 72px);
  background: var(--wash);
}
.course-grid, .training-grid { display: grid; gap: 22px; }
.course-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: start; }
.training-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.course, .training, .teacher { min-width: 0; text-align: left; }
.course img, .training img { width: 100%; aspect-ratio: 1.91; }
.course h3, .training h3 { margin: 11px 0 5px; font-size: 15px; line-height: 1.5; }
:is(.course, .training, .teacher):hover h3, .news-list button:hover, .news-lead:hover span { color: var(--red); }
.tags { display: flex; flex-wrap: wrap; gap: 5px 12px; }
.tags span { color: var(--deep-red); font-size: 12px; }

.feature-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(34px, 4.4vw, 64px) clamp(26px, 4vw, 58px);
  margin-block: var(--section-space);
}
.feature {
  min-height: 167px;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 22px;
}
.feature h3 { font: 700 clamp(19px, 1.7vw, 25px)/1.4 var(--display); }
.feature-copy { flex: 1; min-width: 0; }
.feature-copy p { margin-top: 6px; color: var(--muted); font-size: 12px; }
.feature-copy p .ui-icon { --icon-size: 13px; margin-inline-end: 3px; color: var(--deep-red); }
.live-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-content: start;
  align-items: start;
  row-gap: 10px;
  background: var(--wash);
  border-top: 2px solid var(--red);
}
.live-card .feature-copy { container-type: inline-size; }
.live-card h3 { font-size: min(25px, 9.8cqi); }
.live-card .live-date { grid-row: span 2; }
.live-card .red-button { grid-column: 2; justify-self: start; }
.live-date { display: grid; flex-shrink: 0; padding-right: 16px; border-right: 1px solid #d9b4b5; color: var(--deep-red); }
.live-date b { font-size: 12px; }
.live-date strong { font: 400 clamp(34px, 4vw, 60px)/1.05 Georgia, serif; }
.training-grid { gap: 13px; align-items: start; }
.training img { aspect-ratio: 2.05; }
.activity-card {
  position: relative;
  isolation: isolate;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(110deg, #760912, #bb151e);
}
.activity-card::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0 0 0 auto;
  width: 70%;
  background: linear-gradient(90deg, #780c14 0%, transparent 95%), url(assets/hd/activity.webp) right center / cover no-repeat;
  opacity: .78;
  mask-image: linear-gradient(90deg, transparent, black 42%);
}
.exam-card { align-items: flex-start; align-content: flex-start; background: var(--wash); }
.exam-icon { --tile-size: 56px; --icon-size: 31px; border-radius: 12px; }

#teachers { padding-top: clamp(24px, 4vw, 50px); }
.teacher-controls { display: flex; justify-content: center; gap: 12px; margin-top: 18px; }
.teacher-arrow { width: 36px; height: 36px; color: var(--deep-red); border-color: #d8b9ba; }
.teacher-arrow:hover { background: var(--deep-red); border-color: var(--deep-red); color: #fff; }
.teacher-grid {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 64px) / 5);
  gap: 16px;
  overflow: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.teacher { scroll-snap-align: start; text-align: center; padding-bottom: 12px; background: var(--wash); }
.teacher:focus-visible { outline-offset: -3px; }
.teacher img { width: 100%; aspect-ratio: 1.3; object-position: center 33%; }
.teacher h3 { margin-top: 12px; font: 700 19px/1.3 var(--display); }
.teacher p { margin-top: 6px; padding-inline: 4px; color: var(--muted); font-size: 12px; line-height: 1.5; }

dialog {
  width: min(520px, calc(100% - 36px));
  padding: 24px;
  border: 0;
  border-top: 4px solid var(--red);
  color: var(--ink);
  background: #fff;
}
dialog::backdrop { background: #28130e80; }
.dialog-head { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-bottom: 12px; }
.dialog-head h2 { font: 700 24px/1.4 var(--display); }
.dialog-head button { display: grid; place-items: center; width: 32px; height: 32px; --icon-size: 19px; }
.dialog-body ul { padding-left: 20px; margin: 8px 0; }
.dialog-body li + li { margin-top: 8px; }

@media (max-width: 1060px) {
  .wrap { width: calc(100% - 72px); }
  .hero-arrow.next { right: 36px; }
  .hero-arrow.prev { right: 88px; }
  .news-grid { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 22px; }
  .news-content { gap: 14px; }
  .section-head { gap: 9px; }
  .feature { padding: 16px; gap: 12px; }
  .exam-icon { --tile-size: 46px; --icon-size: 27px; }
}
@media (max-width: 820px) {
  .news-grid { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .quote-card { min-height: 180px; }
  .feature-grid { grid-template-columns: minmax(0, 1fr); }
  .teacher-grid { grid-auto-columns: calc((100% - 32px) / 3); }
}
@media (max-width: 600px) {
  .wrap { width: calc(100% - 36px); }
  .hero {
    min-height: 440px;
    background-position: center, center, 77% center;
    background-image: linear-gradient(0deg, #1d0e0ddd, #22100c40 67%, transparent), linear-gradient(90deg, #22100c36, transparent), url(assets/hero-great-wall.webp);
  }
  .hero-inner { padding-block: 100px 95px; }
  .hero-copy::before { margin-bottom: 14px; width: 38px; }
  .hero h1 { font-size: clamp(25px, 6.8vw, 39px); letter-spacing: 0; }
  .hero p { margin-block: 12px 18px; }
  .hero-arrow { bottom: 51px; width: 36px; height: 36px; }
  .hero-arrow.next { right: 18px; }
  .hero-arrow.prev { right: 63px; }
  .dots { bottom: 58px; left: 18px; transform: none; }
  .entries { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: -24px; padding: 5px 6px; }
  .entries a { min-height: 58px; font-size: 12px; gap: 1px; }
  .entries a:nth-child(4) { border-inline-end: 0; }
  .entries .icon-tile { --tile-size: 30px; --icon-size: 19px; border-radius: 7px; }
  .section-head { margin-bottom: 16px; }
  .more { font-size: 12px; }
  .news-content { grid-template-columns: minmax(0, 1fr); }
  .course-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 19px 12px; }
  .course h3, .training h3 { font-size: 13px; }
  .training-grid { gap: 8px; }
  .feature { min-height: 145px; }
  .feature .red-button { padding-inline: 12px; }
  .exam-card { flex-wrap: wrap; }
  .exam-card .red-button { margin-left: auto; }
  .teacher-arrow { width: 30px; height: 30px; }
  .teacher-grid { grid-auto-columns: calc((100% - 10px) / 2); gap: 10px; }
}
