:root {
  --ink: #241b18;
  --muted: #716562;
  --paper: #f7f3ec;
  --paper-deep: #eee7dc;
  --white: #fff;
  --red: #9f2d28;
  --red-deep: #79201d;
  --red-soft: #f4e7e2;
  --gold: #b6904f;
  --green: #335d50;
  --line: #ded5c9;
  --shadow: 0 18px 60px rgba(58, 39, 29, .1);
  --radius: 18px;
  --shell: 1180px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button, select { cursor: pointer; }
img { display: block; max-width: 100%; }
h1, h2, h3, p, dl, dd { margin-top: 0; }
.shell { width: min(calc(100% - 40px), var(--shell)); margin-inline: auto; }
.narrow { max-width: 860px; }
.skip-link { position: fixed; left: 16px; top: -100px; z-index: 1000; background: var(--ink); color: var(--white); padding: 8px 16px; }
.skip-link:focus { top: 16px; }
.site-header { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid rgba(99, 72, 59, .12); background: rgba(247, 243, 236, .94); backdrop-filter: blur(16px); }
.header-inner { min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand, .admin-brand { display: inline-flex; align-items: center; gap: 12px; }
.brand-seal { width: 44px; height: 44px; display: inline-grid; flex: 0 0 auto; place-items: center; border-radius: 50% 50% 46% 54%; background: var(--red); color: var(--white); box-shadow: inset 0 0 0 2px rgba(255,255,255,.25); font-family: STKaiti, KaiTi, serif; font-size: 24px; font-weight: 700; }
.brand strong, .admin-brand strong { display: block; font-family: STKaiti, KaiTi, serif; font-size: 21px; line-height: 1.2; letter-spacing: .08em; }
.brand small, .admin-brand small { display: block; margin-top: 4px; color: var(--muted); font-size: 11px; letter-spacing: .16em; }
.site-nav { display: flex; align-items: center; gap: 28px; font-size: 14px; font-weight: 600; }
.site-nav a { padding: 10px 2px; }
.site-nav a:hover { color: var(--red); }
.site-nav .nav-cta { padding: 10px 19px; border: 1px solid var(--red); border-radius: 999px; color: var(--red); }
.site-nav .nav-cta:hover { background: var(--red); color: var(--white); }
.button { appearance: none; display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 22px; border: 1px solid var(--red); border-radius: 999px; background: var(--red); color: var(--white); font-size: 14px; font-weight: 700; letter-spacing: .04em; line-height: 1.4; transition: transform .2s ease, background .2s ease, border-color .2s ease; }
.button:hover { background: var(--red-deep); border-color: var(--red-deep); transform: translateY(-1px); }
.button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, a:focus-visible, button:focus-visible { outline: 3px solid rgba(182, 144, 79, .45); outline-offset: 3px; }
.button-large { min-height: 52px; padding: 13px 29px; font-size: 15px; }
.button-secondary { border-color: var(--line); background: transparent; color: var(--ink); }
.button-secondary:hover { border-color: var(--ink); background: var(--ink); }
.button-light { background: var(--white); border-color: var(--white); color: var(--red-deep); }
.button-light:hover { background: var(--paper); border-color: var(--paper); color: var(--red-deep); }
.button-disabled { border-color: var(--line); background: #ded8d0; color: #817873; cursor: not-allowed; pointer-events: none; }
.text-link, .back-link { color: var(--red); font-size: 14px; font-weight: 700; }
.hero { position: relative; min-height: 670px; overflow: hidden; border-bottom: 1px solid var(--line); background: #f3ede3; }
.hero-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero-grid { position: relative; min-height: 670px; display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 70px; }
.hero-copy { position: relative; z-index: 2; padding: 68px 0 78px; }
.hero h1 { max-width: 710px; margin-bottom: 27px; font-family: STSong, SimSun, serif; font-size: clamp(43px, 5vw, 68px); font-weight: 600; line-height: 1.28; letter-spacing: .03em; }
.hero-copy > p { max-width: 640px; margin-bottom: 31px; color: var(--muted); font-size: 18px; line-height: 2; }
.hero-actions { display: flex; align-items: center; gap: 26px; }
.hero-points { display: flex; gap: 14px; margin-top: 42px; }
.hero-points span { padding-right: 14px; border-right: 1px solid var(--line); color: var(--muted); font-size: 13px; letter-spacing: .12em; }
.hero-points span:last-child { border: 0; }
.hero-art { position: relative; min-height: 520px; overflow: hidden; border-radius: 48% 48% 12px 12px; background: linear-gradient(180deg, #e6ddd0 0%, #cdbda8 70%, #b8a18b 100%); box-shadow: var(--shadow); }
.moon { position: absolute; top: 70px; right: 70px; width: 104px; height: 104px; border-radius: 50%; background: rgba(255, 249, 231, .86); box-shadow: 0 0 60px rgba(255,249,231,.7); }
.mountain { position: absolute; left: -20%; bottom: -20%; width: 130%; height: 70%; border-radius: 50% 48% 0 0; transform: rotate(-6deg); }
.mountain-back { bottom: 7%; background: #8f9b8b; clip-path: polygon(0 100%, 0 55%, 15% 35%, 31% 61%, 45% 26%, 62% 65%, 78% 39%, 100% 72%, 100% 100%); opacity: .66; }
.mountain-front { background: #40584d; clip-path: polygon(0 100%, 0 62%, 17% 45%, 32% 67%, 48% 39%, 65% 73%, 78% 51%, 100% 67%, 100% 100%); }
.book-mark { position: absolute; left: 50%; bottom: 52px; width: 136px; height: 176px; display: grid; place-items: center; transform: translateX(-50%) rotate(-3deg); border: 2px solid rgba(89,59,39,.22); background: #efe5d2; box-shadow: 0 18px 35px rgba(36,27,24,.22); font-family: STKaiti, KaiTi, serif; font-size: 70px; color: var(--ink); }
.book-mark::after { content: ""; position: absolute; left: 50%; bottom: -34px; transform: translateX(-50%); border-left: 68px solid transparent; border-right: 68px solid transparent; border-top: 35px solid #efe5d2; }
.red-stamp { position: absolute; right: 42px; bottom: 34px; width: 62px; height: 62px; display: grid; place-items: center; border: 2px solid rgba(255,255,255,.62); background: var(--red); color: var(--white); font-family: STKaiti, KaiTi, serif; font-size: 17px; line-height: 1.1; text-align: center; transform: rotate(5deg); }
.section { padding: 110px 0; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 40px; margin-bottom: 50px; }
.section-heading > div { display: flex; align-items: baseline; gap: 20px; }
.section-number { color: var(--red); font-family: Georgia, serif; font-size: 13px; letter-spacing: .1em; }
.section h2 { margin-bottom: 0; font-family: STSong, SimSun, serif; font-size: clamp(32px, 4vw, 50px); font-weight: 600; line-height: 1.45; letter-spacing: .02em; }
.section-heading > p { max-width: 420px; margin-bottom: 4px; color: var(--muted); }
.courses-section { background: var(--white); }
.course-list { display: grid; gap: 22px; }
.course-card { display: grid; grid-template-columns: 1fr 210px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
.course-card-main { padding: 38px 42px; }
.course-title-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.course-title-row h3 { margin-bottom: 12px; font-family: STSong, SimSun, serif; font-size: 28px; }
.status-tag { flex: 0 0 auto; padding: 5px 11px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.status-open { background: #dfece5; color: var(--green); }
.status-closed { background: #ece8e2; color: var(--muted); }
.course-summary { max-width: 760px; color: var(--muted); }
.course-subtitle { margin: -4px 0 9px; color: var(--red); font-size: 14px; font-weight: 700; letter-spacing: .05em; }
.course-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 38px; margin: 27px 0 0; padding-top: 25px; border-top: 1px solid var(--line); }
.course-facts div { display: grid; grid-template-columns: 88px 1fr; gap: 15px; }
.course-facts .fact-wide { grid-column: 1 / -1; }
.course-facts dt, .registration-course-facts dt { color: var(--muted); font-size: 13px; }
.course-facts dd, .registration-course-facts dd { margin: 0; font-weight: 600; }
.course-card-side { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 26px; padding: 30px; border-left: 1px solid var(--line); background: #f1ebe1; }
.capacity { text-align: center; }
.capacity strong { display: block; color: var(--red); font-family: Georgia, serif; font-size: 48px; line-height: 1; }
.capacity span { display: block; margin-top: 9px; color: var(--muted); font-size: 12px; }
.learning-section { background: var(--paper); }
.learning-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 100px; }
.learning-grid h2 { margin-top: 13px; }
.direction-note { max-width: 440px; margin: 24px 0 0; color: var(--muted); font-size: 14px; }
.learning-lines { border-top: 1px solid var(--line); }
.learning-lines > div { display: grid; grid-template-columns: 48px 180px 1fr; gap: 22px; align-items: baseline; padding: 31px 0; border-bottom: 1px solid var(--line); }
.learning-lines strong { color: var(--red); font-family: Georgia, serif; font-size: 13px; }
.learning-lines h3 { margin: 0; font-family: STSong, SimSun, serif; font-size: 21px; }
.learning-lines p { margin: 0; color: var(--muted); }
.teacher-section { background: #2f4940; color: var(--white); }
.teacher-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 100px; align-items: center; }
.teacher-monogram { min-height: 470px; display: flex; flex-direction: column; align-items: center; justify-content: center; border: 1px solid rgba(255,255,255,.22); background: radial-gradient(circle at 50% 40%, rgba(255,255,255,.12), transparent 42%); }
.teacher-monogram span { font-family: STKaiti, KaiTi, serif; font-size: 170px; line-height: 1; color: #e5d5b5; }
.teacher-monogram small { margin-top: 23px; color: rgba(255,255,255,.72); letter-spacing: .32em; }
.teacher-photo { min-height: 470px; margin: 0; overflow: hidden; border: 1px solid rgba(255,255,255,.22); background: #213c33; }
.teacher-photo img { width: 100%; height: 520px; object-fit: cover; object-position: center 34%; }
.teacher-copy .section-number { color: #ddbe84; }
.teacher-copy h2 { margin: 13px 0 30px; }
.teacher-title { display: inline-block; font-family: "PingFang SC", "Microsoft YaHei", sans-serif; font-size: 17px; font-weight: 500; letter-spacing: .06em; color: #ddbe84; }
.teacher-copy p { color: rgba(255,255,255,.72); font-size: 17px; line-height: 2; }
.plain-rich-text { color: var(--muted); font-size: 17px; line-height: 2; overflow-wrap: anywhere; }
.teacher-copy .plain-rich-text { color: rgba(255,255,255,.72); }
.cta-section { padding: 76px 0; background: var(--red); color: var(--white); }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 50px; }
.cta-inner h2 { margin-bottom: 10px; font-family: STSong, SimSun, serif; font-size: 34px; }
.cta-inner p { margin: 0; color: rgba(255,255,255,.72); }
.site-footer { padding: 60px 0 24px; background: #211a18; color: var(--white); }
.footer-inner { display: flex; justify-content: space-between; gap: 40px; padding-bottom: 42px; }
.footer-inner strong { font-family: STKaiti, KaiTi, serif; font-size: 24px; }
.footer-inner p { max-width: 520px; margin: 9px 0 0; color: rgba(255,255,255,.55); }
.footer-contact { display: flex; flex-direction: column; align-items: flex-end; }
.footer-contact span { color: rgba(255,255,255,.5); font-size: 13px; }
.footer-contact a { margin-top: 7px; font-size: 17px; font-weight: 600; }
.footer-bottom { display: flex; justify-content: space-between; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.12); color: rgba(255,255,255,.42); font-size: 12px; }
.footer-links { display: flex; gap: 18px; }
.footer-links a:hover { color: rgba(255,255,255,.8); }
.page-hero { padding: 64px 0 72px; border-bottom: 1px solid var(--line); background: linear-gradient(130deg, #faf6f0, #eee4d7); }
.page-hero.compact { padding-bottom: 58px; }
.page-hero h1 { margin: 19px 0 18px; font-family: STSong, SimSun, serif; font-size: clamp(36px, 5vw, 56px); line-height: 1.3; }
.page-hero p { max-width: 710px; margin-bottom: 0; color: var(--muted); font-size: 17px; }
.registration-hero { display: grid; grid-template-columns: 1fr 430px; gap: 80px; align-items: end; }
.registration-course-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 17px 28px; margin: 0; padding: 25px; border: 1px solid rgba(102,74,59,.18); background: rgba(255,255,255,.5); }
.registration-course-facts .wide { grid-column: 1 / -1; }
.registration-section { padding: 72px 0 110px; background: var(--white); }
.registration-layout { display: grid; grid-template-columns: 300px 1fr; gap: 60px; align-items: start; }
.registration-aside { position: sticky; top: 115px; }
.registration-aside h2 { font-family: STSong, SimSun, serif; font-size: 23px; }
.registration-aside ol { margin: 0; padding-left: 21px; color: var(--muted); font-size: 14px; }
.registration-aside li + li { margin-top: 11px; }
.registration-contact { display: flex; flex-direction: column; margin-top: 29px; padding: 20px; border: 1px solid var(--line); background: var(--white); }
.registration-contact strong { font-size: 14px; }
.registration-contact span { margin-top: 7px; color: var(--muted); font-size: 13px; }
.registration-contact a { margin-top: 2px; color: var(--red); font-size: 17px; font-weight: 700; }
.privacy-note { margin-top: 29px; padding: 20px; border-left: 3px solid var(--gold); background: var(--paper); }
.privacy-note strong { font-size: 14px; }
.privacy-note p { margin: 6px 0 0; color: var(--muted); font-size: 13px; }
.form-panel { min-width: 0; }
.registration-form fieldset, .admin-form fieldset { min-width: 0; margin: 0 0 38px; padding: 0; border: 0; }
.registration-form legend, .admin-form legend { width: 100%; margin-bottom: 25px; padding-bottom: 13px; border-bottom: 1px solid var(--line); font-family: STSong, SimSun, serif; font-size: 22px; font-weight: 700; }
.participant-type-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.participant-type-options label { position: relative; display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 11px; align-items: center; min-height: 64px; padding: 14px 16px; border: 1px solid #cfc5b9; border-radius: 12px; background: var(--white); color: var(--ink); font-size: 14px; font-weight: 700; cursor: pointer; transition: border-color .2s ease, background .2s ease, transform .2s ease; }
.participant-type-options label:hover { border-color: var(--gold); transform: translateY(-1px); }
.participant-type-options label:has(input:checked) { border-color: var(--red); background: var(--red-soft); box-shadow: inset 0 0 0 1px rgba(159,45,40,.08); }
.participant-type-options input { width: 18px; height: 18px; margin: 0; accent-color: var(--red); }
.participant-type-options span { line-height: 1.55; }
.field-help { margin: 11px 0 0; color: var(--muted); font-size: 13px; }
.adult-information-note { margin: -4px 0 38px; padding: 20px 22px; border-left: 3px solid var(--green); background: #eef3f0; }
.adult-information-note strong { font-size: 14px; }
.adult-information-note p { margin: 5px 0 0; color: var(--muted); font-size: 13px; }
.registration-form [hidden] { display: none !important; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 23px 25px; }
.field { min-width: 0; }
.field-full { grid-column: 1 / -1; }
.field label { display: block; margin-bottom: 8px; font-size: 14px; font-weight: 700; }
.field label em { color: var(--red); font-style: normal; }
.field label span, .field > small { color: var(--muted); font-size: 12px; font-weight: 400; }
.field input, .field select, .field textarea, .status-form select { width: 100%; border: 1px solid #cfc5b9; border-radius: 9px; background: var(--white); color: var(--ink); }
.field input, .field select { height: 48px; padding: 0 13px; }
.field textarea { padding: 12px 13px; resize: vertical; line-height: 1.65; }
.field input::placeholder, .field textarea::placeholder { color: #aaa09a; }
.field input[aria-invalid="true"], .field select[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: #b22e2e; background: #fff9f8; }
.field-error { display: block; margin-top: 6px; color: #a52424; font-size: 12px; }
.consent { display: flex; gap: 11px; align-items: flex-start; margin: 8px 0 27px; padding: 17px; border: 1px solid var(--line); border-radius: 9px; background: var(--paper); color: var(--muted); font-size: 13px; cursor: pointer; }
.consent input { flex: 0 0 auto; width: 17px; height: 17px; margin-top: 4px; accent-color: var(--red); }
.consent a { color: var(--red); font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
.submit-button { min-width: 220px; }
.submit-tip { display: inline-block; margin: 0 0 0 14px; color: var(--muted); font-size: 12px; }
.honeypot { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.flash-wrap { padding-top: 16px; }
.flash { display: flex; flex-direction: column; gap: 2px; margin-bottom: 24px; padding: 14px 17px; border: 1px solid; border-radius: 9px; font-size: 14px; }
.flash-success { border-color: #adccbd; background: #edf7f1; color: #285443; }
.flash-error { border-color: #e0b3aa; background: #fdf0ed; color: #87271f; }
.flash-warning { border-color: #ddc796; background: #fbf5e7; color: #6e5420; }
.empty-state { padding: 55px 40px; border: 1px dashed #c7bbad; border-radius: var(--radius); text-align: center; background: var(--paper); }
.empty-state h2, .empty-state h3 { font-family: STSong, SimSun, serif; }
.empty-state p { color: var(--muted); }
.course-picker { display: grid; gap: 16px; }
.course-picker article { display: flex; align-items: center; justify-content: space-between; gap: 28px; padding: 27px 30px; border: 1px solid var(--line); border-radius: 13px; background: var(--white); }
.course-picker h2 { margin-bottom: 5px; font-size: 22px; }
.course-picker p { margin: 0; color: var(--muted); }
.success-section { min-height: 680px; padding: 90px 0; background: linear-gradient(180deg, var(--paper), var(--white)); }
.success-card { padding: 55px 65px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow); text-align: center; }
.success-mark { width: 70px; height: 70px; display: grid; place-items: center; margin: 0 auto 24px; border-radius: 50%; background: #e4f0e9; color: var(--green); font-size: 31px; font-weight: 700; }
.success-card h1 { margin-bottom: 14px; font-family: STSong, SimSun, serif; font-size: 38px; }
.success-lead { color: var(--muted); font-size: 17px; }
.receipt { max-width: 590px; margin: 35px auto; border-top: 1px solid var(--line); }
.receipt > div { display: grid; grid-template-columns: 120px 1fr; gap: 20px; padding: 15px 4px; border-bottom: 1px solid var(--line); text-align: left; }
.receipt dt { color: var(--muted); }
.receipt dd { margin: 0; font-weight: 700; }
.receipt-no { color: var(--red); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .08em; }
.success-note { max-width: 590px; margin: 0 auto 28px; padding: 19px; background: var(--paper); text-align: left; }
.success-note p { margin: 5px 0 0; color: var(--muted); font-size: 13px; }
.success-actions { display: flex; justify-content: center; gap: 12px; }
.privacy-page { padding: 75px 0 110px; background: var(--white); }
.privacy-content { color: var(--muted); }
.privacy-lead { padding: 22px 25px; border-left: 3px solid var(--gold); background: var(--paper); color: var(--ink); font-size: 17px; }
.privacy-content > section { padding: 25px 0; border-bottom: 1px solid var(--line); }
.privacy-content h2 { margin-bottom: 10px; color: var(--ink); font-family: STSong, SimSun, serif; font-size: 25px; }
.privacy-content p { margin: 0; }
.privacy-content a { color: var(--red); font-weight: 700; }
.privacy-contact { margin-top: 35px; padding: 23px 25px; border: 1px solid var(--line); background: var(--paper); }
.privacy-contact p { margin: 5px 0 0; }
.course-detail-hero { padding: 70px 0 65px; border-bottom: 1px solid var(--line); background: radial-gradient(circle at 80% 20%, rgba(182,144,79,.14), transparent 28%), #faf7f2; }
.course-detail-title { display: flex; align-items: flex-start; justify-content: space-between; gap: 40px; margin-top: 25px; }
.course-detail-title h1 { margin-bottom: 8px; font-family: STSong, SimSun, serif; font-size: clamp(40px, 6vw, 66px); line-height: 1.25; }
.detail-subtitle { margin: 0 0 18px; color: var(--red); font-family: STKaiti, KaiTi, serif; font-size: 24px; }
.detail-summary { max-width: 770px; margin: 0; color: var(--muted); font-size: 17px; line-height: 1.9; }
.detail-facts { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; margin: 48px 0 0; border-top: 1px solid var(--line); border-left: 1px solid var(--line); background: rgba(255,255,255,.66); }
.detail-facts > div { min-width: 0; padding: 18px 20px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.detail-facts .wide { grid-column: span 5; }
.detail-facts dt { color: var(--muted); font-size: 12px; }
.detail-facts dd { margin: 3px 0 0; font-weight: 700; overflow-wrap: anywhere; }
.course-detail-body { padding: 85px 0 110px; background: var(--white); }
.detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) 310px; gap: 85px; align-items: start; }
.detail-content > section { padding: 0 0 48px; margin-bottom: 48px; border-bottom: 1px solid var(--line); }
.detail-content > section:last-child { margin-bottom: 0; }
.detail-content h2 { margin-bottom: 22px; font-family: STSong, SimSun, serif; font-size: 30px; }
.notice-text { padding: 24px 27px; border-left: 3px solid var(--gold); background: var(--paper); font-size: 15px; }
.detail-cta { position: sticky; top: 112px; }
.detail-cta > div { padding: 27px; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); }
.detail-cta h2 { margin-bottom: 8px; font-size: 21px; }
.detail-cta p { color: var(--muted); font-size: 14px; }
.detail-cta .button { width: 100%; margin-top: 8px; }
.detail-phone { display: block; margin-top: 22px; padding-top: 19px; border-top: 1px solid var(--line); }
.detail-phone span { display: block; color: var(--muted); font-size: 12px; }
.detail-phone strong { display: block; margin-top: 2px; color: var(--red); font-size: 17px; }
.error-page { min-height: 100vh; display: grid; place-items: center; padding: 30px; background: var(--paper); }
.error-card { max-width: 520px; padding: 55px; border: 1px solid var(--line); background: var(--white); box-shadow: var(--shadow); text-align: center; }
.error-card .brand-seal { margin: 0 auto 22px; }
.error-card h1 { font-family: STSong, SimSun, serif; font-size: 32px; }
.error-card p { color: var(--muted); }

/* Admin */
.admin-body { background: #f3f4f2; color: #1f2925; font-size: 14px; }
.admin-shell { width: min(calc(100% - 36px), 1440px); margin-inline: auto; }
.admin-header { position: sticky; top: 0; z-index: 60; border-bottom: 1px solid #dce2de; background: rgba(255,255,255,.96); backdrop-filter: blur(14px); }
.admin-header-inner { min-height: 70px; display: grid; grid-template-columns: 260px 1fr auto; align-items: center; gap: 30px; }
.admin-brand .brand-seal { width: 36px; height: 36px; font-size: 19px; }
.admin-brand strong { font-family: inherit; font-size: 15px; letter-spacing: .02em; }
.admin-brand small { margin-top: 0; font-size: 10px; }
.admin-nav { display: flex; align-items: center; gap: 8px; }
.admin-nav a { padding: 8px 13px; border-radius: 7px; color: #53605a; font-weight: 600; }
.admin-nav a:hover { background: #edf1ee; color: #213c32; }
.admin-account { display: flex; align-items: center; gap: 15px; color: #59645f; }
.admin-account form, .actions form { display: inline; margin: 0; }
.link-button { padding: 0; border: 0; background: none; color: var(--red); font: inherit; font-weight: 700; cursor: pointer; }
.admin-main { min-height: calc(100vh - 132px); padding-top: 38px; padding-bottom: 65px; }
.admin-title-row { display: flex; align-items: end; justify-content: space-between; gap: 25px; margin-bottom: 27px; }
.admin-title-row h1 { margin: 5px 0 5px; font-size: 30px; line-height: 1.35; }
.admin-title-row p { margin: 0; color: #66716c; }
.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 25px; }
.stats-grid > div { padding: 23px 25px; border: 1px solid #dce2de; border-radius: 12px; background: var(--white); box-shadow: 0 4px 15px rgba(36,49,43,.03); }
.stats-grid span { display: block; color: #69746f; font-size: 13px; }
.stats-grid strong { display: block; margin-top: 6px; color: #243a31; font-family: Georgia, serif; font-size: 34px; line-height: 1.2; }
.admin-panel { border: 1px solid #dce2de; border-radius: 12px; background: var(--white); box-shadow: 0 4px 18px rgba(36,49,43,.035); }
.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 24px; border-bottom: 1px solid #e3e7e4; }
.panel-heading h2 { margin: 0; font-size: 18px; }
.panel-heading p { margin: 3px 0 0; color: #74807a; font-size: 12px; }
.table-panel { overflow: hidden; }
.table-responsive { overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; text-align: left; }
.admin-table th { padding: 12px 16px; border-bottom: 1px solid #dce2de; background: #f7f9f7; color: #66716c; font-size: 12px; font-weight: 700; white-space: nowrap; }
.admin-table td { padding: 15px 16px; border-bottom: 1px solid #e7ebe8; vertical-align: top; }
.admin-table tbody tr:last-child td { border-bottom: 0; }
.admin-table tbody tr:hover { background: #fbfcfb; }
.admin-table td > strong { display: block; color: #263a32; }
.admin-table td > small { display: block; margin-top: 3px; color: #75807b; line-height: 1.45; }
.admin-table .actions { white-space: nowrap; }
.admin-table .actions > * + * { margin-left: 12px; }
.status-badge { display: inline-flex; padding: 4px 9px; border-radius: 999px; background: #ebefec; color: #55615c; font-size: 12px; font-weight: 700; white-space: nowrap; }
.course-open, .registration-confirmed { background: #dfeee7; color: #266148; }
.course-closed, .registration-cancelled { background: #ecebea; color: #6d6b67; }
.course-draft, .registration-pending { background: #f5ead1; color: #755619; }
.course-archived, .registration-waitlisted { background: #e6e7f3; color: #4b4d77; }
.admin-form { padding: 30px; }
.admin-form fieldset:last-of-type { margin-bottom: 18px; }
.admin-form legend { font-family: inherit; font-size: 17px; }
.form-help { margin: -10px 0 22px; padding: 10px 13px; border-left: 3px solid #b99154; background: #faf7ef; color: #6e675b; font-size: 12px; }
.readonly-field { height: 48px; display: flex; align-items: center; padding: 0 13px; border: 1px solid #d6ddd9; border-radius: 9px; background: #f4f6f4; color: #59655f; }
.form-actions { display: flex; gap: 12px; padding-top: 10px; }
.filter-bar { display: grid; grid-template-columns: 1.5fr 1.2fr .9fr .9fr .9fr auto; gap: 13px; align-items: end; margin-bottom: 18px; padding: 18px; }
.filter-bar .field label { margin-bottom: 5px; font-size: 12px; }
.filter-bar .field input, .filter-bar .field select { height: 40px; font-size: 13px; }
.filter-actions { display: flex; align-items: center; gap: 12px; padding-bottom: 1px; }
.filter-actions .button { min-height: 40px; padding: 8px 16px; }
.registrations-table { min-width: 1100px; }
.record-link, .record-view-link { color: #2f5d4c; font-weight: 700; }
.record-view-link { display: inline-block; margin-bottom: 8px; font-size: 12px; }
.note-cell { max-width: 220px; line-height: 1.55; }
.muted { color: #9ba39f; }
.status-form { min-width: 104px; }
.status-form select { height: 34px; padding: 0 6px; border-color: #cfd7d2; font-size: 12px; }
.small-button { width: 100%; margin-top: 6px; padding: 5px 8px; border: 0; border-radius: 6px; background: #2f5d4c; color: var(--white); font-size: 12px; font-weight: 700; }
.table-empty { padding: 45px !important; color: #7c8781; text-align: center; }
.pagination { display: flex; align-items: center; justify-content: center; gap: 22px; padding: 19px; border-top: 1px solid #e2e7e4; color: #68736d; }
.pagination a { color: #2f5d4c; font-weight: 700; }
.password-panel { max-width: 620px; padding: 30px; }
.record-layout { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) 280px; gap: 18px; align-items: start; }
.record-panel { padding: 25px; }
.record-panel h2, .record-status-panel h2 { margin-bottom: 20px; font-size: 18px; }
.record-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 28px; margin: 0; }
.record-grid .record-wide { grid-column: 1 / -1; }
.record-grid dt { color: #77827c; font-size: 12px; }
.record-grid dd { margin: 3px 0 0; color: #23372f; font-size: 14px; font-weight: 600; overflow-wrap: anywhere; }
.record-status-panel { padding: 25px; }
.record-status-panel .status-form { min-width: 0; }
.record-status-panel .status-form select { height: 42px; }
.record-status-panel .status-form .button { width: 100%; margin-top: 10px; }
.record-status-panel > p { margin: 18px 0 0; color: #758079; font-size: 12px; }
.audit-filter { display: flex; align-items: end; gap: 13px; margin-bottom: 18px; padding: 18px; }
.audit-filter .field { min-width: 280px; }
.audit-filter .field select { height: 40px; }
.audit-table { min-width: 1050px; }
.audit-details { max-width: 390px; color: #69746f; overflow-wrap: anywhere; }
.audit-table code { color: #59655f; font-size: 11px; }
.password-panel .admin-form { padding: 0; }
.password-panel .field + .field { margin-top: 20px; }
.login-wrap { min-height: calc(100vh - 130px); display: grid; place-items: center; padding: 35px 0; }
.login-panel { width: min(100%, 430px); padding: 40px; border: 1px solid #d9e0dc; border-radius: 14px; background: var(--white); box-shadow: 0 20px 70px rgba(30,44,37,.1); }
.login-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 30px; }
.login-brand strong, .login-brand span { display: block; }
.login-brand span { color: #748078; font-size: 12px; }
.login-panel h1 { margin-bottom: 6px; font-size: 27px; }
.login-panel > p { margin-bottom: 26px; color: #6e7973; }
.login-form .field + .field { margin-top: 18px; }
.login-form .submit-button { width: 100%; margin-top: 25px; }
.login-back { display: block; margin-top: 22px; color: #66736c; font-size: 13px; text-align: center; }
.admin-footer { padding: 20px 0; border-top: 1px solid #dce2de; background: var(--white); color: #7b8580; font-size: 12px; }
.admin-footer > div { display: flex; justify-content: space-between; }

@media (max-width: 1020px) {
  .hero-grid { gap: 35px; }
  .hero h1 { font-size: 48px; }
  .registration-hero { grid-template-columns: 1fr; gap: 35px; }
  .registration-course-facts { max-width: 650px; }
  .learning-grid, .teacher-grid { gap: 55px; }
  .registration-layout { grid-template-columns: 240px 1fr; gap: 35px; }
  .admin-header-inner { grid-template-columns: 210px 1fr auto; gap: 14px; }
  .admin-nav { gap: 1px; }
  .filter-bar { grid-template-columns: repeat(3, 1fr); }
  .filter-actions { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  .shell, .admin-shell { width: min(calc(100% - 28px), var(--shell)); }
  .site-header { position: static; }
  .header-inner { min-height: 70px; }
  .brand small, .site-nav > a:not(.nav-cta) { display: none; }
  .brand strong { font-size: 18px; letter-spacing: .02em; }
  .site-nav { gap: 8px; }
  .site-nav .nav-cta { padding: 8px 13px; }
  .hero, .hero-grid { min-height: auto; }
  .hero-grid { grid-template-columns: 1fr; padding-bottom: 32px; }
  .hero-copy { padding: 60px 0 10px; }
  .hero h1 { font-size: 39px; }
  .hero-copy > p { font-size: 16px; line-height: 1.85; }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 15px; }
  .hero-art { min-height: 420px; }
  .section { padding: 75px 0; }
  .section-heading { align-items: flex-start; flex-direction: column; gap: 18px; }
  .section h2 { font-size: 34px; }
  .course-card { grid-template-columns: 1fr; }
  .course-card-main { padding: 26px 22px; }
  .course-title-row { align-items: flex-start; }
  .course-title-row h3 { font-size: 24px; }
  .course-facts { grid-template-columns: 1fr; }
  .course-facts .fact-wide { grid-column: auto; }
  .course-card-side { align-items: center; flex-direction: row; justify-content: space-between; padding: 22px; border-top: 1px solid var(--line); border-left: 0; }
  .capacity { text-align: left; }
  .capacity strong { font-size: 36px; }
  .learning-grid, .teacher-grid { grid-template-columns: 1fr; }
  .learning-lines > div { grid-template-columns: 36px 1fr; }
  .learning-lines p { grid-column: 2; }
  .teacher-monogram { min-height: 350px; }
  .teacher-monogram span { font-size: 130px; }
  .cta-inner, .footer-inner { align-items: flex-start; flex-direction: column; }
  .footer-contact { align-items: flex-start; }
  .page-hero { padding: 45px 0 52px; }
  .registration-layout { grid-template-columns: 1fr; }
  .registration-aside { position: static; }
  .participant-type-options { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .field-full { grid-column: auto; }
  .submit-tip { display: block; margin: 12px 0 0; }
  .submit-button { width: 100%; }
  .course-picker article { align-items: flex-start; flex-direction: column; }
  .success-card { padding: 40px 22px; }
  .receipt > div { grid-template-columns: 100px 1fr; }
  .success-actions { align-items: stretch; flex-direction: column; }
  .course-detail-title { flex-direction: column; gap: 18px; }
  .detail-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .detail-facts .wide { grid-column: span 2; }
  .detail-layout { grid-template-columns: 1fr; gap: 45px; }
  .detail-cta { position: static; }
  .record-layout { grid-template-columns: 1fr; }
  .audit-filter { align-items: stretch; flex-direction: column; }
  .audit-filter .field { min-width: 0; width: 100%; }
  .admin-header { position: static; }
  .admin-header-inner { grid-template-columns: 1fr auto; padding: 12px 0; }
  .admin-nav { grid-column: 1 / -1; grid-row: 2; overflow-x: auto; order: 3; }
  .admin-account > span { display: none; }
  .admin-main { padding-top: 25px; }
  .admin-title-row { align-items: flex-start; flex-direction: column; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .admin-form { padding: 20px; }
  .filter-bar { grid-template-columns: 1fr 1fr; }
  .filter-actions { grid-column: 1 / -1; }
  .login-panel { padding: 28px 22px; }
}

@media (max-width: 430px) {
  .brand-seal { width: 38px; height: 38px; font-size: 20px; }
  .brand strong { font-size: 16px; }
  .hero h1 { font-size: 34px; }
  .hero-points { gap: 9px; }
  .hero-points span { padding-right: 9px; font-size: 11px; }
  .hero-art { min-height: 350px; }
  .course-facts div { grid-template-columns: 78px 1fr; }
  .course-card-side { align-items: stretch; flex-direction: column; }
  .capacity { text-align: center; }
  .registration-course-facts { grid-template-columns: 1fr; }
  .registration-course-facts .wide { grid-column: auto; }
  .footer-bottom { flex-direction: column; gap: 8px; }
  .footer-links { justify-content: space-between; }
  .receipt > div { grid-template-columns: 1fr; gap: 4px; }
  .stats-grid { grid-template-columns: 1fr; }
  .filter-bar { grid-template-columns: 1fr; }
  .filter-actions { grid-column: auto; }
}

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