:root {
  --brand-red: #df1720;
  --brand-red-dark: #b5000b;
  --brand-gold: #ff9f18;
  --ink: #282121;
  --muted: #715e5e;
  --paper: #fff;
  --line: #ead9d5;
  --soft: #fff6f2;
  --shadow: 0 18px 55px rgba(116, 20, 20, .14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: #f7e7df url("../image/background.jpg") center top / 1067px auto repeat-y;
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", Arial, sans-serif;
}
body.dialog-open { overflow: hidden; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
img { display: block; max-width: 100%; }
.page-width, .main-content { width: min(1180px, calc(100% - 32px)); margin-inline: auto; }

.hero {
  position: relative;
  min-height: 650px;
  overflow: hidden;
  color: #fff;
  background:
    linear-gradient(106deg, rgba(161, 0, 12, .96) 0%, rgba(213, 11, 26, .93) 48%, rgba(121, 0, 9, .72) 100%),
    url("../image/course-overview.png") center / cover no-repeat;
}
.hero::after {
  content: "";
  position: absolute;
  inset: auto -10% -250px;
  height: 420px;
  border-radius: 50% 50% 0 0;
  background: #f7e7df;
}
.hero__bar { position: relative; z-index: 2; display: flex; align-items: flex-start; justify-content: space-between; }
.brand-link { display: block; line-height: 0; }
.brand-logo { width: 220px; height: auto; padding: 0 10px 9px; border-radius: 0 0 16px 16px; background: rgba(255,255,255,.96); }
.hero__action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  margin-top: 30px;
  padding: 0 21px;
  border-radius: 999px;
  color: #84200f;
  background: #ffe09a;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 12px 30px rgba(72, 0, 0, .2);
}
.hero__content { position: relative; z-index: 2; padding: 48px 0 220px; text-align: center; }
.hero__eyebrow {
  display: inline-block;
  padding: 7px 16px;
  border: 1px solid rgba(255,255,255,.55);
  border-radius: 999px;
  background: rgba(80, 0, 0, .25);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .08em;
}
.hero h1 { margin: 20px 0 12px; font-size: clamp(52px, 6.4vw, 82px); line-height: 1; letter-spacing: -.045em; text-shadow: 0 8px 24px rgba(82, 0, 0, .28); }
.hero h1 span { display: inline-block; margin-top: 14px; color: #ffe5a2; font-size: .5em; letter-spacing: .06em; }
.hero__summary { margin: 18px 0 26px; font-size: clamp(17px, 1.7vw, 22px); font-weight: 800; letter-spacing: .12em; }
.hero__facts { display: flex; justify-content: center; gap: 12px; }
.hero__facts div { min-width: 150px; padding: 14px 16px; border: 1px solid rgba(255,255,255,.35); border-radius: 15px; background: rgba(80, 0, 0, .28); backdrop-filter: blur(5px); }
.hero__facts strong { display: block; color: #fff3bd; font-size: 25px; line-height: 1.1; }
.hero__facts span { display: block; margin-top: 6px; font-size: 12px; }
.hero__note { margin: 14px 0 0; color: rgba(255,255,255,.84); font-size: 12px; }

.section-nav { position: sticky; z-index: 20; top: 0; margin-top: -62px; }
.section-nav__inner { display: flex; justify-content: center; gap: 8px; padding: 12px; border-radius: 18px; background: rgba(255,255,255,.95); box-shadow: 0 10px 30px rgba(95, 16, 16, .15); backdrop-filter: blur(10px); }
.section-nav a { padding: 10px 18px; border-radius: 10px; color: #5a3333; font-size: 15px; font-weight: 700; text-decoration: none; }
.section-nav a:hover, .section-nav a:focus-visible { color: #fff; background: var(--brand-red); outline: none; }

.main-content { position: relative; z-index: 3; padding: 40px 0 64px; }
.feature-card {
  position: relative;
  isolation: isolate;
  margin: 0 auto 42px;
  padding: 42px 78px 72px;
  border: 8px solid transparent;
  border-radius: 54px;
  background: linear-gradient(#fff,#fff) padding-box, linear-gradient(180deg,#ff9f18,#ee4a18 40%,#c50010) border-box;
  box-shadow: var(--shadow);
  scroll-margin-top: 95px;
}
.feature-card::before, .feature-card::after { content: ""; position: absolute; z-index: -1; top: 70px; bottom: 70px; width: 48px; border: 8px solid #dc2d17; background: #fff; }
.feature-card::before { left: -34px; border-right: 0; border-radius: 34px 0 0 34px; }
.feature-card::after { right: -34px; border-left: 0; border-radius: 0 34px 34px 0; }
.section-title-row { display: flex; align-items: center; justify-content: center; gap: 22px; margin-bottom: 34px; }
.section-number { display: grid; flex: 0 0 92px; place-items: center; width: 92px; height: 94px; border-radius: 28px; color: #fff; background: var(--brand-gold); font-family: Impact, "Arial Narrow", sans-serif; font-size: 50px; line-height: 1; box-shadow: inset 0 -5px 0 rgba(156,67,0,.12); }
.section-heading { min-width: 0; }
.section-heading h2 { margin: 0; color: var(--brand-red); font-size: clamp(30px, 4vw, 46px); line-height: 1.15; letter-spacing: .04em; }
.section-heading p { margin: 8px 0 0; color: #765858; font-size: 13px; letter-spacing: .13em; }

.notice-banner { display: flex; align-items: center; gap: 16px; margin: 0 0 28px; padding: 18px 22px; border-radius: 16px; background: #fff2d7; }
.notice-banner__tag { flex: 0 0 auto; padding: 7px 12px; border-radius: 999px; color: #fff; background: var(--brand-red); font-weight: 800; }
.notice-banner p { margin: 0; line-height: 1.75; }
.table-scroll { width: 100%; overflow-x: auto; border-radius: 12px; box-shadow: 0 8px 24px rgba(71, 23, 23, .08); }
.table-scroll:focus-visible { outline: 4px solid rgba(255,159,24,.35); outline-offset: 2px; }
.data-table { width: 100%; min-width: 900px; border-collapse: collapse; background: #fff; font-size: 15px; text-align: center; }
.data-table th, .data-table td { padding: 15px 13px; border: 1px solid var(--line); line-height: 1.7; }
.data-table thead th { color: #fff; background: var(--brand-red); font-size: 16px; }
.data-table tbody th { color: #fff; background: #e94a3b; font-size: 18px; }
.data-table tbody tr:nth-child(even) td { background: var(--soft); }
.source-note { margin: 16px 0 0; color: var(--muted); font-size: 13px; line-height: 1.7; text-align: center; }

.stat-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; }
.stat-card { min-height: 170px; padding: 23px 20px; border: 1px solid #f0c6bc; border-radius: 22px; background: linear-gradient(145deg,#fff,#fff6f2); box-shadow: 0 10px 25px rgba(90,24,24,.07); }
.stat-card span { color: var(--muted); font-size: 14px; }
.stat-card strong { display: block; margin: 12px 0 8px; color: var(--brand-red); font-size: 29px; }
.stat-card p { margin: 0; color: #5f4b4b; font-size: 14px; line-height: 1.55; }
.overview-layout { display: grid; grid-template-columns: 1.2fr .8fr; gap: 22px; margin-top: 28px; }
.process-panel, .exam-panel { padding: 28px; border-radius: 24px; background: #fff7f4; }
.process-panel h3, .exam-panel h3, .basic-requirements h3 { margin: 0 0 20px; color: #a9000d; font-size: 22px; }
.process-list { display: grid; gap: 15px; margin: 0; padding: 0; list-style: none; }
.process-list li { display: flex; gap: 14px; align-items: flex-start; }
.process-list li > span { display: grid; flex: 0 0 42px; place-items: center; width: 42px; height: 42px; border-radius: 13px; color: #fff; background: var(--brand-red); font-weight: 800; }
.process-list strong { font-size: 17px; }
.process-list p { margin: 4px 0 0; color: #665454; font-size: 14px; line-height: 1.55; }
.question-card { padding: 18px; border-left: 5px solid var(--brand-gold); background: #fff; box-shadow: 0 8px 20px rgba(99,33,33,.06); }
.question-card + .question-card { margin-top: 14px; }
.question-card span { color: var(--brand-red); font-weight: 800; }
.question-card p { margin: 9px 0 0; line-height: 1.75; }

.category-tabs { display: flex; justify-content: center; gap: 12px; margin-bottom: 24px; }
.category-tab { min-height: 46px; padding: 10px 24px; border: 0; border-radius: 12px; color: #fff; background: var(--brand-red); cursor: pointer; font-weight: 800; }
.category-tab.is-active { color: #4c2a00; background: var(--brand-gold); box-shadow: 0 8px 20px rgba(255,159,24,.24); }
.category-panel { min-height: 220px; padding: 28px; border: 1px solid #f1c8be; border-radius: 22px; background: var(--soft); }
.category-panel[hidden] { display: none; }
.condition-summary { display: grid; grid-template-columns: 220px 1fr; align-items: center; gap: 24px; }
.condition-summary strong { color: var(--brand-red); font-size: 28px; }
.condition-summary p { margin: 0; line-height: 1.75; }
.school-list { margin: 24px 0 0; padding: 18px; border-radius: 14px; background: #fff; line-height: 2; }
.condition-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; margin-top: 22px; }
.condition-grid article { padding: 18px; border-radius: 15px; background: #fff; }
.condition-grid h3 { margin: 0 0 8px; color: var(--brand-red); }
.condition-grid p { margin: 0; line-height: 1.7; }
.school-details { margin-top: 18px; padding: 16px 18px; border-radius: 14px; background: #fff; }
.school-details summary { color: var(--brand-red); cursor: pointer; font-weight: 800; }
.school-details p { margin-bottom: 0; line-height: 1.9; }
.basic-requirements { margin-top: 22px; padding: 24px 28px; border-radius: 20px; background: #fff2d7; }
.basic-requirements ul { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; margin: 0; padding: 0; list-style: none; }
.basic-requirements li { position: relative; padding-left: 20px; line-height: 1.7; }
.basic-requirements li::before { content: ""; position: absolute; top: .65em; left: 0; width: 9px; height: 9px; border-radius: 50%; background: var(--brand-red); }

.advantages-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.advantage-item { display: flex; align-items: flex-start; gap: 15px; min-height: 145px; padding: 22px 18px; border: 2px solid #ef343b; border-radius: 5px 28px 5px 28px; background: #fff; box-shadow: 7px 7px 0 #e61c24; }
.advantage-item > span { display: grid; flex: 0 0 52px; place-items: center; width: 52px; height: 52px; border: 3px solid #fff; border-radius: 50%; color: #fff; background: #ef252b; box-shadow: 0 0 0 2px #ef252b; font-size: 22px; font-weight: 900; }
.advantage-item h3 { margin: 0 0 8px; color: var(--brand-red); font-size: 19px; }
.advantage-item p { margin: 0; color: #504343; font-size: 15px; line-height: 1.65; }

.course-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.course-card { overflow: hidden; border: 1px solid #e9c7c2; border-radius: 24px; background: #fff; box-shadow: 0 12px 30px rgba(95,24,24,.09); }
.course-card__head { padding: 23px 24px; color: #fff; background: linear-gradient(135deg,#b60010,#e6222b); }
.course-card__head span { display: inline-block; padding: 5px 10px; border-radius: 999px; color: #97200f; background: #ffe4a2; font-size: 13px; font-weight: 800; }
.course-card__head h3 { margin: 12px 0 0; font-size: 23px; line-height: 1.35; }
.course-card__body { min-height: 330px; padding: 24px; }
.course-card__body h4 { margin: 0 0 12px; color: var(--brand-red); font-size: 18px; }
.course-card__body h4:not(:first-child) { margin-top: 22px; }
.course-card__body ol, .course-card__body ul { margin: 0; padding-left: 22px; }
.course-card__body li, .course-card__body p { margin: 0; line-height: 1.8; }
.course-card__price { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid #edceca; background: #fff7f4; }
.course-card__price div { padding: 18px 20px; }
.course-card__price div + div { border-left: 1px solid #edceca; }
.course-card__price span { color: var(--muted); font-size: 13px; }
.course-card__price strong { display: block; margin-top: 6px; color: var(--brand-red); font-size: 21px; }
.course-card__price p { margin: 5px 0 0; font-size: 13px; line-height: 1.5; }
.course-date { display: flex; align-items: center; justify-content: center; gap: 20px; margin-top: 24px; padding: 18px 20px; border-radius: 16px; color: #fff; background: #202020; }
.course-date span { font-weight: 800; }
.course-date strong { color: #ffe36e; font-size: 24px; }
.course-date em { padding: 5px 10px; border-radius: 999px; color: #a2000a; background: #fff; font-size: 13px; font-style: normal; font-weight: 800; }

.poster-grid { display: grid; grid-template-columns: 1.45fr .82fr; gap: 22px; align-items: start; }
.poster-card { margin: 0; overflow: hidden; border-radius: 20px; background: #fff; box-shadow: 0 12px 28px rgba(92,25,25,.17); }
.poster-open { display: block; width: 100%; padding: 0; border: 0; background: #f4efed; cursor: zoom-in; }
.poster-open img { width: 100%; height: auto; object-fit: contain; }
.poster-card figcaption { padding: 13px 16px; color: #fff; background: var(--brand-red); font-weight: 800; text-align: center; }
.poster-card--portrait { max-width: 480px; justify-self: center; }

.faq-list { display: grid; gap: 12px; }
.faq-list details { padding: 18px 22px; border: 1px solid #edc9c2; border-radius: 14px; background: #fff9f6; }
.faq-list summary { color: #4c3030; cursor: pointer; font-size: 17px; font-weight: 800; }
.faq-list details[open] summary { color: var(--brand-red); }
.faq-list p { margin: 13px 0 0; padding-top: 13px; border-top: 1px solid #edddd9; line-height: 1.75; }

.official-footer-frame { width: 100%; overflow: hidden; background: #fff; }
.official-footer-frame iframe { display: block; width: 100%; height: 822px; min-height: 822px; border: 0; background: #fff; }
.image-dialog { width: min(96vw,1200px); max-width: none; max-height: 94vh; padding: 54px 12px 12px; border: 0; border-radius: 18px; background: #241a1a; }
.image-dialog::backdrop { background: rgba(0,0,0,.82); backdrop-filter: blur(3px); }
.image-dialog img { width: auto; max-width: 100%; height: auto; max-height: calc(94vh - 68px); margin: auto; object-fit: contain; }
.image-dialog__close { position: absolute; top: 8px; right: 12px; width: 38px; height: 38px; border: 0; border-radius: 50%; color: #fff; background: var(--brand-red); cursor: pointer; font-size: 28px; line-height: 1; }
.back-to-top { position: fixed; z-index: 25; right: 22px; bottom: 22px; width: 46px; height: 46px; border: 0; border-radius: 50%; color: #fff; background: var(--brand-red); box-shadow: 0 9px 25px rgba(88,0,0,.28); cursor: pointer; opacity: 0; pointer-events: none; transform: translateY(10px); transition: opacity .2s ease, transform .2s ease; }
.back-to-top.is-visible { opacity: 1; pointer-events: auto; transform: none; }

@media (max-width: 1000px) {
  .feature-card { width: calc(100% - 42px); padding-inline: 48px; }
  .stat-grid { grid-template-columns: repeat(2,1fr); }
  .advantages-grid { grid-template-columns: repeat(2,1fr); }
  .overview-layout { grid-template-columns: 1fr; }
  .condition-summary { grid-template-columns: 1fr; gap: 8px; }
  .basic-requirements ul { grid-template-columns: 1fr; gap: 10px; }
}

@media (max-width: 760px) {
  .page-width, .main-content { width: min(100% - 14px,620px); }
  .hero { min-height: 565px; }
  .brand-logo { width: 145px; }
  .hero__action { min-height: 36px; margin-top: 15px; padding: 0 13px; font-size: 12px; }
  .hero__content { padding: 43px 8px 175px; }
  .hero__eyebrow { padding: 6px 10px; font-size: 12px; letter-spacing: .02em; }
  .hero h1 { font-size: clamp(42px,14vw,58px); }
  .hero__summary { margin: 15px 0 20px; font-size: 14px; letter-spacing: .05em; }
  .hero__facts { display: grid; grid-template-columns: repeat(3,1fr); gap: 7px; }
  .hero__facts div { min-width: 0; padding: 10px 4px; border-radius: 11px; }
  .hero__facts strong { font-size: clamp(17px,5vw,22px); }
  .hero__facts span { margin-top: 4px; font-size: 9px; }
  .hero__note { margin-top: 10px; padding-inline: 12px; font-size: 10px; line-height: 1.45; }
  .section-nav { margin-top: -52px; }
  .section-nav__inner { justify-content: flex-start; overflow-x: auto; padding: 8px; border-radius: 13px; }
  .section-nav a { flex: 0 0 auto; padding: 9px 12px; font-size: 13px; }
  .main-content { padding-top: 28px; }
  .feature-card { width: calc(100% - 30px); margin-bottom: 26px; padding: 28px 13px 46px; border-width: 6px; border-radius: 36px; }
  .feature-card::before, .feature-card::after { top: 50px; bottom: 50px; width: 34px; border-width: 6px; }
  .feature-card::before { left: -24px; }
  .feature-card::after { right: -24px; }
  .section-title-row { gap: 10px; margin-bottom: 24px; }
  .section-number { flex-basis: 56px; width: 56px; height: 58px; border-radius: 18px; font-size: 30px; }
  .section-heading h2 { font-size: clamp(20px,6.2vw,28px); }
  .section-heading p { margin-top: 4px; font-size: 8px; letter-spacing: .04em; }
  .notice-banner { align-items: flex-start; padding: 14px; }
  .notice-banner p { font-size: 14px; }
  .data-table { min-width: 820px; font-size: 12px; }
  .data-table th, .data-table td { padding: 11px 9px; }
  .data-table thead th { font-size: 13px; }
  .stat-grid { gap: 10px; }
  .stat-card { min-height: 145px; padding: 17px 13px; border-radius: 16px; }
  .stat-card strong { font-size: 22px; }
  .process-panel, .exam-panel { padding: 20px 16px; }
  .category-tabs { gap: 7px; }
  .category-tab { flex: 1; min-width: 0; padding: 9px 5px; font-size: 12px; }
  .category-panel { min-height: 260px; padding: 20px 15px; }
  .condition-summary strong { font-size: 23px; }
  .condition-grid { grid-template-columns: 1fr; }
  .advantages-grid { grid-template-columns: 1fr; gap: 14px; }
  .advantage-item { min-height: 120px; padding: 17px 14px; box-shadow: 5px 5px 0 #e61c24; }
  .course-cards { grid-template-columns: 1fr; }
  .course-card__body { min-height: 0; }
  .course-card__price div { padding: 15px 13px; }
  .course-card__price strong { font-size: 17px; }
  .course-date { flex-direction: column; gap: 6px; text-align: center; }
  .course-date strong { font-size: 21px; }
  .poster-grid { grid-template-columns: 1fr; }
  .poster-card--portrait { width: min(100%,430px); }
  .faq-list details { padding: 16px; }
  .faq-list summary { font-size: 15px; }
  .official-footer-frame iframe { height: 822px; min-height: 822px; }
}

@media (max-width: 420px) {
  .stat-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
