* { box-sizing: border-box; }
body { margin: 0; font-family: Arial, "Microsoft YaHei", sans-serif; background: #f7f8f4; color: #1e2523; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
.wrap { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }
.site-header { background: #244b41; color: #fffdf6; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; }
.brand { font-weight: 800; }
nav { display: flex; flex-wrap: wrap; gap: 12px; font-size: 14px; }
.hero { background: linear-gradient(135deg, #244b41, #3a5869); color: #fffdf6; padding: 24px 0; }
.hero-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 16px; }
.hero-copy, .capacity, .panel, .notice-grid article, .stats div, .record, .edit-card { border: 1px solid #dfe6dc; border-radius: 8px; background: #fffdf8; color: #20312d; box-shadow: 0 16px 36px rgba(32,45,40,.08); }
.hero-copy, .capacity, .panel { padding: 22px; }
.hero h1 { max-width: 780px; margin: 8px 0 14px; font-size: clamp(2rem, 5vw, 4rem); line-height: 1.05; }
.eyebrow { color: #49635b; font-weight: 800; }
.capacity { display: grid; align-content: center; gap: 10px; }
.capacity strong { font-size: clamp(2rem, 4vw, 3.5rem); }
.page-grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: 18px; padding: 22px 0 42px; }
.side-stack, .course-list, .records, .course-edit-list { display: grid; gap: 12px; }
h1, h2, h3, p { margin-top: 0; }
.form, .status-form, .edit-card { display: grid; gap: 13px; }
label { display: grid; gap: 7px; font-weight: 700; color: #374540; }
input, select, textarea { width: 100%; min-height: 42px; border: 1px solid #cfd8d1; border-radius: 6px; background: #fff; padding: 10px 12px; }
textarea { min-height: 86px; resize: vertical; }
.number-row, .quote, .stats, .notice-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.quote { grid-template-columns: repeat(2, minmax(0, 1fr)); background: #e9f1ed; border-radius: 8px; padding: 14px; }
.quote span, .stats span { color: #65716c; }
.quote strong, .stats strong { display: block; font-size: 1.35rem; margin-top: 4px; }
.primary, button { min-height: 44px; border: 0; border-radius: 6px; background: #244b41; color: #fffdf6; font-weight: 800; padding: 0 14px; }
.link-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; border-radius: 6px; padding: 0 16px; font-weight: 800; }
.ghost { border: 1px solid #bfd0c7; background: #fffdf8; color: #244b41; }
.hero-actions, .detail-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.intro-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; padding: 18px 0 0; }
.intro-strip article { border: 1px solid #dfe6dc; border-radius: 8px; padding: 14px; background: #fffdf8; display: grid; gap: 4px; }
.intro-strip strong { color: #244b41; }
.intro-strip span { color: #65716c; font-size: 14px; }
.course-card { border: 1px solid #dce4dd; border-radius: 8px; padding: 14px; background: #fff; }
.course-card h3 { color: #244b41; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.chips span, .chips strong, .badge { border-radius: 999px; padding: 5px 9px; background: #eef3ef; color: #244b41; font-size: 13px; }
.small { color: #5d6b66; line-height: 1.6; font-size: 14px; }
.lead { font-size: 1.08rem; color: #374540; line-height: 1.8; }
.text-link { color: #244b41; font-weight: 800; text-decoration: underline; text-underline-offset: 4px; }
.progress-card { border: 1px solid #d9e4dc; border-radius: 8px; padding: 14px; background: #f6faf7; display: grid; gap: 8px; }
.progress-head, .mini-progress div { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.progress-track, .mini-progress i { display: block; height: 10px; border-radius: 999px; background: #dfe8e2; overflow: hidden; }
.progress-track i { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #7a9b6d, #244b41); transition: width .2s ease; }
.mini-progress { display: grid; gap: 6px; font-size: 13px; }
.mini-progress i::before { content: ""; display: block; width: var(--p); height: 100%; border-radius: inherit; background: linear-gradient(90deg, #d4a56a, #244b41); }
.slot-stack { display: grid; gap: 8px; margin: 12px 0; }
.compact-head { align-items: start; margin-bottom: 10px; }
.order-summary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 16px 0; }
.order-summary div, .pending-pay { border: 1px solid #dfe6dc; border-radius: 8px; background: #f8fbf7; padding: 14px; }
.order-summary span { display: block; color: #65716c; font-size: 13px; margin-bottom: 5px; }
.order-summary strong { color: #20312d; }
.pay-btn { width: 100%; margin: 8px 0 12px; }
.pending-pay { background: #fff7df; border-color: #efd08f; margin: 14px 0; }
.pay-qr-box { display: grid; justify-items: center; gap: 10px; border: 1px solid #dfe6dc; border-radius: 8px; background: #fffdf8; padding: 16px; margin: 12px 0 16px; text-align: center; }
.pay-qr-title { margin: 0; color: #244b41; font-weight: 900; }
.pay-qr { width: min(100%, 320px); border-radius: 8px; border: 1px solid #e4e9e3; background: #fff; }
.notice-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 14px; }
.notice-grid article { padding: 16px; }
.flashes { padding-top: 14px; }
.flash { border-radius: 8px; padding: 12px 14px; }
.flash.success { background: #e0f0e6; color: #1f5d3d; }
.flash.error { background: #fff1d2; color: #725018; }
.narrow { max-width: 720px; padding: 30px 0; }
.stats { grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 22px 0 16px; }
.stats div { padding: 16px; }
.section-head { display: flex; justify-content: space-between; gap: 16px; align-items: end; border-bottom: 1px solid #e2e7e2; padding-bottom: 14px; margin-bottom: 14px; }
.filters { display: grid; grid-template-columns: 170px 160px 80px; gap: 8px; }
.record { display: grid; grid-template-columns: 1fr 260px; gap: 16px; padding: 14px; }
.status-form button, .edit-card button { justify-self: start; }
.edit-card { padding: 16px; }
.check { display: flex; align-items: center; gap: 8px; }
.check input { width: auto; min-height: auto; }
.empty { color: #65716c; }
.mobile-home { min-height: calc(100vh - 58px); padding: 18px 0 84px; background: linear-gradient(180deg, #244b41 0, #244b41 38%, #f7f8f4 38%, #f7f8f4 100%); }
.home-hero { color: #fffdf6; padding: 12px 0 16px; }
.home-hero .eyebrow { color: #dfece6; }
.home-hero h1 { margin: 8px 0 10px; font-size: clamp(2.1rem, 10vw, 4.2rem); line-height: 1.05; }
.home-hero p { max-width: 720px; line-height: 1.75; color: #edf6f1; }
.entry-stack { display: grid; gap: 14px; }
.entry-card { display: grid; min-height: 245px; align-content: center; gap: 12px; border-radius: 8px; padding: 24px; border: 1px solid rgba(255,255,255,.58); color: #fffdf6; box-shadow: 0 18px 38px rgba(22,38,34,.18); }
.entry-card span { font-size: 13px; font-weight: 800; opacity: .82; }
.entry-card h2 { margin: 0; font-size: clamp(2rem, 8vw, 3.6rem); line-height: 1.05; }
.entry-card p { max-width: 660px; margin: 0; line-height: 1.75; }
.entry-card strong { justify-self: start; border-radius: 999px; padding: 8px 12px; background: rgba(255,255,255,.16); }
.solo-entry { background: linear-gradient(135deg, #1f5a49, #397568); }
.team-entry { background: linear-gradient(135deg, #354f68, #596c50); }
.home-notes { padding-bottom: 18px; }
.step-page { padding: 22px 0 92px; }
.step-head { margin-bottom: 14px; }
.step-head h1 { font-size: clamp(2rem, 8vw, 3.6rem); line-height: 1.08; margin: 8px 0 10px; color: #20312d; }
.step-head p { line-height: 1.75; color: #51605b; }
.step-tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 14px 0 18px; }
.step-tabs a { min-height: 48px; display: grid; place-items: center; border-radius: 8px; border: 1px solid #cfd8d1; background: #fffdf8; font-weight: 800; color: #244b41; }
.step-tabs a.active { background: #244b41; color: #fffdf6; border-color: #244b41; }
.choice-list { display: grid; gap: 12px; }
.choice-card { border: 1px solid #dce4dd; border-radius: 8px; background: #fffdf8; padding: 14px; box-shadow: 0 12px 28px rgba(32,45,40,.08); }
.choice-main { display: grid; gap: 12px; }
.choice-main h2 { color: #244b41; margin-bottom: 8px; }
.choice-main p { color: #4f5f59; line-height: 1.65; }
.choice-main b { display: grid; place-items: center; min-height: 46px; border-radius: 6px; background: #244b41; color: #fffdf6; }
.button-grid { display: grid; gap: 10px; }
.date-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.option-button { position: relative; display: grid; gap: 6px; border-radius: 8px; border: 1px solid #cfd8d1; background: #fff; padding: 14px; color: #20312d; min-height: 76px; }
.option-button input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
.option-button strong { color: #244b41; }
.option-button span, .option-button small { color: #65716c; }
.option-button.active, .slot-choice.selected { border-color: #244b41; background: #edf5f1; box-shadow: inset 0 0 0 2px #244b41; }
.option-button.disabled { opacity: .46; }
.slot-choice i { display: block; height: 9px; overflow: hidden; border-radius: 999px; background: #dfe8e2; }
.slot-choice i em { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #d4a56a, #244b41); }
.step-form { gap: 12px; }
.sticky-summary { position: sticky; bottom: 68px; z-index: 5; border: 1px solid #ccddd3; box-shadow: 0 12px 26px rgba(32,45,40,.14); }
.sticky-pay { width: 100%; min-height: 52px; font-size: 16px; }
.sticky-cta { position: fixed; left: 16px; right: 16px; bottom: max(14px, env(safe-area-inset-bottom)); z-index: 20; min-height: 52px; display: grid; place-items: center; border-radius: 8px; background: #244b41; color: #fffdf6; font-weight: 900; box-shadow: 0 14px 28px rgba(22,38,34,.25); }
@media (max-width: 800px) {
  .topbar, .section-head { align-items: flex-start; flex-direction: column; }
  .hero-grid, .page-grid, .number-row, .quote, .stats, .notice-grid, .record, .filters, .intro-strip, .order-summary { grid-template-columns: 1fr; }
  body { padding-bottom: 76px; }
  .site-header nav { display: none; }
  .topbar { gap: 6px; padding: 13px 0; }
  .brand { font-size: 15px; line-height: 1.4; }
  .date-grid, .step-tabs { grid-template-columns: 1fr; }
  .entry-card { min-height: 230px; padding: 22px; }
  .home-notes { margin-top: 14px; }
}
