:root {
  color-scheme: light;
  --ink: #132c31;
  --muted: #4f6064;
  --line: #dce5e4;
  --paper: #f4f7f6;
  --brand-red: #e63f38;
  --red: #a92a25;
  --hero-red: #b22d27;
  --rose: #fcf0ee;
  --blue: #24545c;
  --blue-tint: #e8f1f1;
  --navy: #011f24;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 98px; }
body {
  margin: 0;
  color: var(--ink);
  background: #fff;
  font: 16px/1.65 Inter, "PingFang SC", "Microsoft YaHei", sans-serif;
  -webkit-text-size-adjust: 100%;
}
h1, h2, h3, p, ul, ol, dl, dd { margin: 0; }
a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; }
a, button, summary { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 5px; }
[hidden] { display: none !important; }
.wrap { width: min(1200px, calc(100% - 48px)); margin-inline: auto; }

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 5;
  padding: 8px 14px;
  color: #fff;
  background: var(--navy);
  transform: translateY(-150%);
}
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 3;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand { display: inline-flex; flex: none; align-items: center; gap: 12px; }
.brand-mark {
  position: relative;
  width: 39px;
  height: 43px;
  overflow: hidden;
}
.brand-mark img {
  position: absolute;
  top: -43%;
  left: 50%;
  width: 275%;
  height: auto;
  transform: translateX(-50%);
}
.brand-name { font-size: 23px; font-weight: 800; letter-spacing: .045em; }
.brand:hover .brand-name { color: var(--red); }
.site-nav { display: flex; align-items: center; gap: clamp(16px, 2.6vw, 38px); }
.site-nav a { position: relative; font-size: 15px; font-weight: 600; white-space: nowrap; }
.site-nav a:hover, .site-nav [aria-current] { color: var(--red); }
.site-nav [aria-current]::after {
  content: "";
  position: absolute;
  inset: auto 0 -8px;
  height: 2px;
  border-radius: 2px;
  background: var(--brand-red);
}
.site-nav .nav-about {
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 7px;
}
.site-nav .nav-about:hover { border-color: currentColor; }
.menu-toggle { display: none; }
.menu-toggle:hover, .menu-toggle[aria-expanded="true"] {
  color: var(--red);
  border-color: var(--red);
  background: var(--rose);
}

.hero {
  position: relative;
  isolation: isolate;
  background: var(--hero-red);
  color: #fff;
}
.hero-art {
  z-index: -1;
  position: absolute;
  inset: 0 0 0 35%;
  background: var(--navy) url("../assets/study-hero.webp") center 54% / cover no-repeat;
}
.hero-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--hero-red) 0%, rgb(178 45 39 / .84) 12%, rgb(75 25 29 / .33) 46%, transparent 82%);
}
.hero-inner {
  display: flex;
  align-items: center;
  min-height: 508px;
  padding-block: 68px;
}
.hero-copy { max-width: 600px; }
.hero-label {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #ffd8d2;
  font-size: 15px;
  font-weight: 650;
  letter-spacing: .15em;
}
.hero-label span { width: 4px; height: 4px; border-radius: 50%; background: #ef9e91; }
.hero h1 {
  margin: 16px 0 22px;
  font-size: clamp(43px, 5vw, 74px);
  line-height: 1.16;
  letter-spacing: .015em;
  font-weight: 800;
  text-wrap: balance;
}
.hero-description { max-width: 425px; color: #fff1ef; font-size: 17px; line-height: 1.85; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 29px; }
.hero-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  min-height: 48px;
  border: 1px solid transparent;
  border-radius: 7px;
  padding: 10px 17px;
  font-size: 15px;
  font-weight: 650;
}
.hero-primary { background: #fff; color: var(--red); }
.hero-primary:hover { background: var(--rose); }
.hero-actions .hero-secondary { border-color: #ffc2bc; background: rgb(88 18 16 / .28); }
.hero-actions .hero-secondary:hover { background: rgb(88 18 16 / .56); }
.hero-actions a:focus-visible { outline-color: #fff; }

.section { padding-block: 64px; }
.exams-section, .courses-section, .news-section, .about-section { background: var(--paper); }
.section-heading { margin-bottom: 26px; }
.section-heading h2 { font-size: clamp(27px, 3vw, 38px); line-height: 1.25; letter-spacing: .015em; }
.section-heading p { margin-top: 7px; color: var(--muted); font-size: 15px; }
.exam-grid, .course-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.exam-card {
  --card-accent: var(--red);
  --card-tint: var(--rose);
  padding: 25px 26px 22px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: linear-gradient(130deg, var(--card-tint), #fff 48%);
}
.institution-card { --card-accent: var(--blue); --card-tint: var(--blue-tint); }
.exam-card-top { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.exam-card h3 { font-size: 24px; line-height: 1.3; }
.exam-card-top p { margin-top: 3px; color: var(--muted); font-size: 14px; }
.exam-icon {
  position: relative;
  display: grid;
  place-items: center;
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: var(--card-tint);
  color: var(--card-accent);
}
.exam-icon::before, .exam-icon::after { content: ""; position: absolute; }
.exam-icon-civil::before { width: 17px; height: 21px; border: 1.5px solid currentColor; border-radius: 2px; }
.exam-icon-civil::after { width: 9px; height: 1.5px; background: currentColor; box-shadow: 0 -4px, 0 4px; }
.exam-icon-institution::before { width: 20px; height: 17px; border: 1.5px solid currentColor; border-radius: 2px; transform: translateY(2px); }
.exam-icon-institution::after { width: 9px; height: 5px; border: 1.5px solid currentColor; border-bottom: 0; border-radius: 2px 2px 0 0; transform: translateY(-8.5px); }
.exam-types {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 17px 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
}
.institution-card .exam-types { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.exam-types li { display: grid; gap: 2px; align-content: start; }
.exam-types a { display: grid; gap: 2px; padding: 4px 5px; margin: -4px -5px; border-radius: 5px; }
.exam-types a:hover { background: var(--card-tint); }
.exam-types a:hover strong, .exam-heading-link:hover { text-decoration: underline; }
.exam-types strong { font-size: 16px; color: var(--card-accent); }
.exam-types span { color: var(--muted); font-size: 13px; }

.roadmap {
  counter-reset: prep-step;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  list-style: none;
  padding: 0;
}
.roadmap li {
  counter-increment: prep-step;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px;
  border: 1px solid var(--line);
  border-top: 3px solid var(--brand-red);
  border-radius: 8px;
}
.roadmap li::before {
  content: counter(prep-step, decimal-leading-zero);
  align-self: flex-start;
  padding: 3px 9px;
  border-radius: 4px;
  background: var(--rose);
  color: var(--red);
  font-size: 13px;
  font-weight: 700;
}
.roadmap h3 { font-size: 19px; }
.roadmap p { color: var(--muted); font-size: 14px; }
.roadmap a, .about-copy a, .section-more { color: var(--red); font-size: 14px; font-weight: 650; }
.roadmap a { align-self: flex-start; margin-top: auto; padding-top: 4px; }
.section-more { display: inline-block; margin-top: 16px; }
.roadmap a:hover, .about-copy a:hover, .section-more:hover { text-decoration: underline; }

.course-grid { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); }
.course-path {
  padding: 26px;
  border: 1px solid #245158;
  border-radius: 12px;
  background: linear-gradient(140deg, #183e44, var(--navy) 72%);
  color: #fff;
}
.course-path h3 { font-size: 23px; }
.course-stages {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding: 0;
  margin-top: 19px;
  counter-reset: course-stage;
}
.course-stages li {
  counter-increment: course-stage;
  min-height: 88px;
  padding: 10px;
  border: 1px solid #44646a;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 650;
}
.course-stages li::before {
  content: counter(course-stage, decimal-leading-zero);
  display: block;
  margin-bottom: 4px;
  color: #f8afa3;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  letter-spacing: .08em;
}
.course-stages strong, .course-stages span { display: block; }
.course-stages span { margin-top: 3px; color: #cfdddd; font-size: 13px; font-weight: 400; }
.service-list {
  display: grid;
  align-content: center;
  padding: 8px 26px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}
.service-list > div { padding-block: 14px; }
.service-list > div + div { border-top: 1px solid var(--line); }
.service-list dt { font-size: 17px; font-weight: 750; }
.service-list dd { color: var(--muted); font-size: 14px; }

.resource-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.22fr);
  gap: 18px;
  align-items: start;
}
.resource-kit, .resource-examples { padding: 24px; border: 1px solid var(--line); border-radius: 12px; }
.resource-kit { background: var(--rose); border-color: #f0d8d3; }
.resource-kit h3, .resource-examples h3 { margin-bottom: 12px; font-size: 21px; }
.resource-kit dt { font-size: 16px; font-weight: 700; }
.resource-kit dd { color: var(--muted); font-size: 14px; }
.resource-kit dl div + div { margin-top: 12px; padding-top: 12px; border-top: 1px solid #ebd8d4; }
.disclosure + .disclosure { border-top: 1px solid var(--line); }
.disclosure summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 18px;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 10px 0;
  list-style: none;
  font-size: 15px;
  font-weight: 650;
  cursor: pointer;
}
.disclosure summary:hover, .disclosure[open] summary { color: var(--red); }
.disclosure summary:focus-visible { outline-offset: 1px; border-radius: 3px; }
.disclosure summary::-webkit-details-marker { display: none; }
.disclosure summary::after { content: "+"; color: var(--red); font-size: 20px; font-weight: 400; text-align: center; }
.disclosure[open] summary::after { content: "−"; }
.disclosure-body { padding: 0 24px 14px 0; color: var(--muted); font-size: 14px; }
.disclosure-body ul { padding-left: 1.35em; }
.disclosure-body li + li { margin-top: 5px; }

.news-heading { display: flex; align-items: end; justify-content: space-between; gap: 16px 25px; }
.news-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; }
.news-filter {
  min-height: 38px;
  padding: 6px 13px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.news-filter:hover { border-color: var(--red); }
.news-filter[aria-pressed="true"] { background: var(--red); color: #fff; border-color: var(--red); }
.news-list {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}
.news-item:not([hidden]) ~ .news-item:not([hidden]) { border-top: 1px solid var(--line); }
.news-item summary {
  display: grid;
  grid-template-columns: 94px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 12px;
  padding: 14px 23px;
  list-style: none;
  font-size: 15px;
  font-weight: 650;
  cursor: pointer;
}
.news-item summary:hover { color: var(--red); }
.news-item summary:focus-visible { outline-offset: -4px; border-radius: 8px; }
.news-item summary::-webkit-details-marker { display: none; }
.news-item summary::after { content: "+"; color: var(--red); font-size: 20px; font-weight: 400; text-align: center; }
.news-item[open] summary::after { content: "−"; }
.news-tag {
  justify-self: start;
  padding: 3px 9px;
  border-radius: 4px;
  color: var(--blue);
  background: var(--blue-tint);
  font-size: 12px;
  white-space: nowrap;
}
.news-item[data-category="guokao"] .news-tag { color: var(--red); background: var(--rose); }
.news-item p { padding: 0 46px 18px 129px; color: var(--muted); font-size: 14px; }

.faq-layout { display: grid; grid-template-columns: minmax(200px, .48fr) minmax(0, 1fr); gap: 24px; }
.faq-layout .disclosure-list { border: 1px solid var(--line); padding: 6px 22px; border-radius: 12px; }
.faq-layout .disclosure summary { min-height: 53px; }

.about-panel {
  display: grid;
  grid-template-columns: 154px minmax(0, 1fr);
  align-items: center;
  gap: 32px;
  padding: 24px 32px;
  border: 1px solid #f0d8d3;
  border-radius: 12px;
  background: var(--rose);
}
.about-panel img { display: block; width: 100%; height: auto; border-radius: 8px; }
.about-copy h2 { font-size: clamp(25px, 3vw, 34px); line-height: 1.25; }
.about-copy p { margin: 10px 0 13px; color: var(--muted); max-width: 590px; }

.site-footer { background: var(--navy); color: #fff; padding-block: 38px; }
.site-footer a:focus-visible { outline-color: #fff; }
.footer-inner { display: flex; align-items: center; flex-wrap: wrap; gap: 18px clamp(22px, 5vw, 70px); }
.site-footer h2 { font-size: 22px; }
.site-footer p, .footer-company span { font-size: 14px; color: #d2e3e3; }
.footer-company span { display: block; color: #b7cbcc; font-size: 12px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 10px 18px; font-size: 14px; }
.footer-nav a:hover { text-decoration: underline; }
.footer-nav [aria-current="page"] { color: #ffc2bc; }
.footer-icp { margin-top: 18px; text-align: center; }
.footer-icp a:hover { text-decoration: underline; }

@media (max-width: 820px) {
  .hero-art { left: 25%; }
  .course-grid { grid-template-columns: 1fr; }
  .roadmap { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service-list { padding-block: 8px; }
  .exam-card { padding-inline: 19px; }
  .exam-types { gap: 7px; }
}

@media (max-width: 680px) {
  html { scroll-padding-top: 74px; }
  .wrap { width: calc(100% - 32px); }
  .header-inner { min-height: 62px; }
  .brand-mark { width: 34px; height: 37px; }
  .brand-name { font-size: 20px; }
  .menu-toggle {
    display: inline-block;
    min-height: 40px;
    padding: 6px 12px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #fff;
    font-size: 14px;
    font-weight: 650;
    cursor: pointer;
  }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    padding: 8px 16px 15px;
    border-bottom: 1px solid var(--line);
    background: #fff;
    box-shadow: 0 10px 18px rgb(1 31 36 / .1);
  }
  .site-nav.is-open { display: grid; gap: 0; }
  .site-nav a, .site-nav .nav-about { padding: 10px 12px; border: 0; }
  .site-nav [aria-current]::after { content: none; }
  .hero-inner { min-height: 557px; align-items: start; padding-block: 42px 185px; }
  .hero-art { inset: auto 0 0; height: 57%; background-position: center 54%; }
  .hero-art::after {
    background: linear-gradient(180deg, var(--hero-red) 0%, rgb(178 45 39 / .76) 24%, transparent 75%),
      linear-gradient(90deg, rgb(1 31 36 / .25), transparent);
  }
  .hero h1 { font-size: clamp(39px, 8.7vw, 55px); margin-block: 13px 15px; }
  .hero-description { font-size: 15px; }
  .hero-actions { margin-top: 22px; }
  .hero-actions a { gap: 10px; padding-inline: 13px; }
  .section { padding-block: 43px; }
  .section-heading { margin-bottom: 18px; }
  .exam-grid, .news-heading, .resource-grid, .faq-layout { display: grid; grid-template-columns: 1fr; }
  .exam-grid, .course-grid, .resource-grid, .faq-layout { gap: 12px; }
  .exam-card h3 { font-size: 21px; }
  .exam-card-top { margin-bottom: 17px; }
  .exam-card-top p { font-size: 13px; }
  .exam-types { padding-top: 13px; }
  .exam-types span { font-size: 12px; }
  .course-path, .service-list { padding-inline: 18px; }
  .course-stages { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .course-stages li { min-height: 72px; }
  .roadmap { gap: 10px; }
  .roadmap li, .resource-kit, .resource-examples { padding: 15px; }
  .roadmap h3 { font-size: 17px; }
  .faq-layout .section-heading { margin-bottom: 0; }
  .faq-layout .disclosure-list { padding-inline: 15px; }
  .about-panel { grid-template-columns: 1fr; gap: 14px; padding: 18px; }
  .about-panel img { width: 108px; }
  .about-copy p { font-size: 14px; }
  .news-item summary { grid-template-columns: 77px minmax(0, 1fr) 15px; gap: 7px; padding-inline: 11px; }
  .news-item p { padding-inline: 13px; }
  .site-footer { padding-block: 26px; }
  .footer-inner { align-items: start; }
}

@media (max-width: 360px) {
  .institution-card .exam-types { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .roadmap { grid-template-columns: 1fr; }
  .news-filter { padding-inline: 9px; }
}
