:root {
  --red: #911e2b;
  --red-hover: #761923;
  --blue: #132e56;
  --ink: #172b49;
  --muted: #5e6e84;
  --line: #dce3ee;
  --soft: #eaf0f8;
  --page: #f5f7fb;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: var(--page);
  font-synthesis: none;
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 280px; }
a { color: inherit; -webkit-tap-highlight-color: transparent; }
a:focus-visible { outline: 3px solid var(--red); outline-offset: 5px; }
h1, h2, p { margin: 0; }
.skip-link { position: fixed; top: -80px; left: 16px; z-index: 2; padding: 12px 16px; color: #fff; background: var(--blue); border-radius: 8px; }
.skip-link:focus { top: 12px; }
.site-header { border-top: 4px solid var(--red); background: #fff; }
.header-inner { max-width: 1200px; min-height: 88px; padding: 20px 40px; margin: 0 auto; display: flex; align-items: center; }
.brand { display: inline-flex; align-items: center; gap: 13px; text-decoration: none; border-radius: 10px; }
.brand-mark { display: grid; place-items: center; width: 43px; height: 43px; border-radius: 12px; background: var(--red); color: #fff; font: italic 700 34px/1 Georgia, serif; padding-bottom: 5px; }
.brand-name { color: var(--blue); font-size: 22px; font-weight: 750; letter-spacing: -.45px; }
.brand-divider { margin: 0 6px; color: #c0cad9; font-weight: 400; }
.brand-keqiao { font-size: 18px; letter-spacing: 0; }
main { max-width: 1120px; margin: 0 auto; padding: 48px 40px 64px; }
main:focus { outline: none; }
.page-heading { margin-bottom: 24px; }
h1 { font-size: 29px; font-weight: 720; letter-spacing: -.7px; line-height: 1.4; }
.exam-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; align-items: stretch; }
.exam-card { position: relative; display: flex; flex-direction: column; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 18px; color: var(--ink); text-decoration: none; box-shadow: 0 5px 24px #132e5608; transition: border-color .16s, box-shadow .16s, transform .16s; }
.exam-card:before { content: ""; position: absolute; top: 0; left: 32px; width: 38px; height: 4px; border-radius: 0 0 3px 3px; background: var(--red); }
.exam-card-body { padding: 32px 32px 28px; flex: 1; }
.exam-title-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
h2 { color: var(--blue); font-size: 46px; font-weight: 800; line-height: 1.25; letter-spacing: -1.5px; }
.card-arrow { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 50%; font-size: 21px; color: var(--blue); background: #fff; }
.exam-full-name { max-width: 330px; min-height: 46px; margin-top: 10px; color: var(--muted); font-size: 15px; line-height: 1.55; }
.subjects { display: flex; flex-wrap: wrap; gap: 8px; margin: 25px 0 0; padding: 0; list-style: none; }
.subjects li { padding: 5px 11px; border-radius: 6px; color: var(--blue); background: var(--soft); font-size: 13px; font-weight: 600; line-height: 1.5; }
.exam-card-footer { min-height: 66px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 32px; border-top: 1px solid var(--line); font-size: 15px; font-weight: 650; color: var(--red); background: #fff; transition: background .16s, color .16s; }
.enter-arrow { font-size: 23px; line-height: 1; font-weight: 400; }
.empty-state { grid-column: 1 / -1; padding: 32px; border: 1px solid var(--line); border-radius: 16px; background: #fff; color: var(--muted); }
@media (hover: hover) {
  .exam-card:hover { border-color: #b3c2d7; box-shadow: 0 12px 30px #132e5612; transform: translateY(-3px); }
  .exam-card:hover .exam-card-footer { background: var(--red); color: #fff; }
}
.exam-card:focus-visible .exam-card-footer { background: var(--red); color: #fff; }
@media (max-width: 700px) {
  .header-inner { padding: 17px 24px; min-height: 78px; }
  main { padding: 32px 24px 40px; }
  .page-heading { margin-bottom: 20px; }
  h1 { font-size: 25px; }
  .exam-grid { gap: 16px; grid-template-columns: 1fr; }
  .exam-card { border-radius: 14px; }
  .exam-card:before { left: 24px; }
  .exam-card-body { padding: 24px; }
  h2 { font-size: 38px; letter-spacing: -1px; }
  .exam-full-name { min-height: 0; max-width: none; font-size: 14px; margin-top: 8px; }
  .subjects { margin-top: 18px; }
  .exam-card-footer { min-height: 58px; padding: 15px 24px; font-size: 14px; }
}
@media (max-width: 360px) {
  .header-inner { padding-inline: 18px; }
  main { padding-inline: 18px; }
  .brand-name { font-size: 20px; }
  .brand-keqiao { font-size: 17px; }
  .exam-card-body { padding: 22px; }
  .exam-card-footer { padding-inline: 22px; }
  .subjects { gap: 6px; }
  .subjects li { padding-inline: 9px; }
}
@media (prefers-reduced-motion: reduce) {
  .exam-card, .exam-card-footer { transition: none; }
  .exam-card:hover { transform: none; }
}
