:root {
  --paper: #f5f3ee;
  --surface: #fff;
  --ink: #181a18;
  --muted: #6f726d;
  --line: rgba(24, 26, 24, .1);
  --green: #183e34;
  --green-soft: #dfe9e3;
  --gold: #c89535;
  --yellow: #f4c344;
  --shadow: 0 24px 64px rgba(33, 31, 24, .10);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { background: var(--paper); }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 90% -10%, rgba(210, 221, 213, .72), transparent 34rem),
    var(--paper);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang SC", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}
button { font: inherit; }
.app-shell { width: min(100%, 1160px); margin: 0 auto; padding: 0 42px 120px; }

.brand-bar { height: 92px; display: flex; align-items: center; gap: 12px; border-bottom: 1px solid var(--line); }
.brand-mark { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 12px; color: #fff; background: var(--green); font-family: serif; font-weight: 700; }
.brand-name, .brand-note { margin: 0; }
.brand-name { font-size: 15px; font-weight: 700; letter-spacing: .16em; }
.brand-note { margin-top: 3px; color: var(--muted); font-size: 8px; letter-spacing: .12em; }
.secure-badge { margin-left: auto; padding: 8px 12px; color: var(--green); border: 1px solid rgba(24, 62, 52, .16); border-radius: 999px; font-size: 12px; font-weight: 650; }

.hero { max-width: 820px; padding: 80px 0 42px; }
.eyebrow { margin: 0 0 14px; color: var(--green); font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.hero h1 { margin: 0; font-family: "Songti SC", "STSong", serif; font-size: clamp(40px, 6vw, 76px); font-weight: 600; line-height: 1.08; letter-spacing: -.04em; }
.hero-copy { max-width: 560px; margin: 24px 0 0; color: var(--muted); font-size: 18px; line-height: 1.7; }

.live-card { overflow: hidden; background: var(--surface); border: 1px solid rgba(255,255,255,.7); border-radius: 30px; box-shadow: var(--shadow); }
.video-stage { position: relative; aspect-ratio: 16 / 9; overflow: hidden; color: white; background: #07100d; }
.video-stage video, .poster { width: 100%; height: 100%; object-fit: cover; }
.video-stage video { position: relative; z-index: 1; background: #07100d; }
.poster { position: absolute; inset: 0; z-index: 2; }
.video-shade { position: absolute; inset: 0; z-index: 3; pointer-events: none; background: linear-gradient(180deg, rgba(0,0,0,.34), transparent 35%, rgba(0,0,0,.28)); }
.live-topline { position: absolute; z-index: 5; top: 22px; left: 22px; right: 22px; display: flex; align-items: center; gap: 10px; pointer-events: none; }
.live-pill, .audience { display: inline-flex; align-items: center; min-height: 32px; padding: 0 12px; border: 1px solid rgba(255,255,255,.16); border-radius: 999px; background: rgba(11,17,15,.54); backdrop-filter: blur(12px); font-size: 12px; font-weight: 650; }
.live-pill i { width: 6px; height: 6px; margin-right: 7px; border-radius: 50%; background: #ff655c; box-shadow: 0 0 0 5px rgba(255,101,92,.15); }
.audience { margin-left: auto; font-weight: 500; }
.state-panel { position: absolute; inset: 0; z-index: 4; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 40px; text-align: center; background: radial-gradient(circle at 50% 36%, rgba(45,84,70,.86), rgba(5,14,11,.95)); }
.state-panel[hidden] { display: none; }
.state-kicker { margin: 0 0 12px; color: #d9c28a; font-size: 12px; font-weight: 700; letter-spacing: .18em; }
.state-panel h2 { margin: 0; font-family: "Songti SC", serif; font-size: clamp(28px, 4vw, 48px); font-weight: 600; }
.state-schedule { margin: 12px 0 0; color: rgba(255,255,255,.88); font-size: 13px; font-weight: 650; letter-spacing: .04em; }
.state-panel > p:not(.state-kicker) { max-width: 480px; margin: 16px 0 0; color: rgba(255,255,255,.68); line-height: 1.65; }
.state-panel > .state-schedule { margin-top: 12px; color: rgba(255,255,255,.86); line-height: 1.4; }
.countdown { display: flex; align-items: center; gap: 10px; margin-top: 28px; }
.countdown span { min-width: 64px; padding: 13px 11px 10px; border: 1px solid rgba(255,255,255,.14); border-radius: 14px; background: rgba(255,255,255,.08); }
.countdown b, .countdown small { display: block; }
.countdown b { font-size: 24px; font-variant-numeric: tabular-nums; }
.countdown small { margin-top: 3px; color: rgba(255,255,255,.56); font-size: 10px; }
.countdown em { color: rgba(255,255,255,.42); font-style: normal; }
.primary-button { margin-top: 26px; padding: 13px 24px; color: var(--green); border: 0; border-radius: 999px; background: white; font-weight: 700; cursor: pointer; }
.watermark { position: absolute; z-index: 6; left: 4%; top: 21%; max-width: 28%; padding: 3px 6px; overflow: hidden; color: rgba(255,255,255,.26); border-radius: 5px; background: rgba(0,0,0,.08); font-size: 9px; letter-spacing: .06em; white-space: nowrap; text-overflow: ellipsis; pointer-events: none; transition: left 1.1s ease, top 1.1s ease; }
.live-meta { display: flex; align-items: center; padding: 24px 28px; }
.mobile-room-title, .teacher, .teacher-note { margin: 0; }
.mobile-room-title { display: none; }
.teacher { font-size: 16px; font-weight: 700; }
.teacher-note { margin-top: 5px; color: var(--muted); font-size: 12px; }
.capacity-note { margin-left: auto; color: var(--muted); font-size: 12px; }
.mobile-schedule { display: none; }

.insight-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 64px 0; }
.insight-grid article { min-height: 210px; padding: 28px; border: 1px solid var(--line); border-radius: 24px; background: rgba(255,255,255,.56); }
.insight-grid span { color: var(--gold); font-size: 11px; font-weight: 700; letter-spacing: .12em; }
.insight-grid h3 { margin: 52px 0 10px; font-family: "Songti SC", serif; font-size: 24px; }
.insight-grid p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.7; }

.comments-card { padding: 36px; border: 1px solid var(--line); border-radius: 28px; background: rgba(255,255,255,.75); }
.section-heading { display: flex; align-items: center; border-bottom: 1px solid var(--line); padding-bottom: 22px; }
.section-heading .eyebrow { margin-bottom: 6px; }
.section-heading h2 { margin: 0; font-family: "Songti SC", serif; font-size: 28px; }
.pulse-dot { width: 8px; height: 8px; margin-left: auto; border-radius: 50%; background: #3c8d70; box-shadow: 0 0 0 8px rgba(60,141,112,.1); }
.comments { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px 24px; max-height: 380px; padding-top: 22px; overflow: auto; }
.comments-empty { min-height: 190px; display: grid; place-content: center; gap: 6px; color: #727873; text-align: center; }
.comments-empty span { font-family: "Songti SC", serif; font-size: 18px; }
.comments-empty small { color: #a0a49f; font-size: 11px; }
.comment { display: grid; grid-template-columns: 38px 1fr; gap: 12px; padding: 12px 0; }
.comment img { width: 38px; height: 38px; border-radius: 50%; }
.comment strong { display: block; margin-bottom: 4px; color: #4c514d; font-size: 12px; }
.comment p { margin: 0; font-size: 14px; line-height: 1.55; }
.comment.is-new { animation: commentIn .35s ease both; }
@keyframes commentIn { from { opacity: 0; transform: translateY(6px); } }
.comment-composer { display: flex; gap: 10px; margin-top: 18px; }
.comment-composer input { min-width: 0; flex: 1; height: 48px; padding: 0 16px; color: var(--ink); border: 1px solid var(--line); border-radius: 14px; outline: none; background: #f3f4f1; }
.comment-composer input:focus { border-color: rgba(24,62,52,.42); box-shadow: 0 0 0 3px rgba(24,62,52,.08); }
.comment-composer button { min-width: 82px; height: 48px; color: #fff; border: 0; border-radius: 14px; background: var(--green); font-weight: 700; cursor: pointer; }
.comment-composer button:disabled { opacity: .42; cursor: not-allowed; }

.cart-button { position: fixed; z-index: 20; right: max(18px, env(safe-area-inset-right)); bottom: max(22px, calc(env(safe-area-inset-bottom) + 14px)); width: 66px; height: 66px; display: grid; place-items: center; gap: 0; color: #30270f; border: 1px solid rgba(111,80,13,.18); border-radius: 22px; background: var(--yellow); box-shadow: 0 16px 36px rgba(75,55,13,.24); cursor: pointer; }
.cart-button span { display: block; font-size: 11px; font-weight: 750; }
.cart-button .cart-icon { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.sheet-backdrop { position: fixed; z-index: 30; inset: 0; background: rgba(20,22,20,.42); backdrop-filter: blur(4px); }
.course-sheet { position: fixed; z-index: 31; left: 50%; bottom: 0; width: min(100%, 540px); height: min(92dvh, 760px); max-height: 92dvh; display: flex; flex-direction: column; overflow: hidden; border-radius: 28px 28px 0 0; background: #fff; box-shadow: 0 -24px 70px rgba(0,0,0,.18); transform: translate(-50%, 105%); transition: transform .28s cubic-bezier(.2,.8,.2,1); }
.course-sheet.is-open { transform: translate(-50%, 0); }
.sheet-handle { flex: 0 0 auto; width: 42px; height: 4px; margin: 16px auto 14px; border-radius: 999px; background: #d8dad6; }
.sheet-close { position: absolute; top: 20px; right: 22px; width: 34px; height: 34px; color: #5b5d59; border: 0; border-radius: 50%; background: rgba(255,255,255,.86); font-size: 24px; cursor: pointer; }
.course-scroll { min-height: 0; flex: 1; padding: 0 24px 24px; overflow-y: auto; overscroll-behavior: contain; }
.course-cover { min-height: 220px; display: flex; flex-direction: column; justify-content: space-between; margin-bottom: 24px; padding: 26px; color: white; border-radius: 22px; background: radial-gradient(circle at 80% 20%, #456d5f, transparent 38%), #102c25; background-size: cover; background-position: center; }
.course-cover span { font-size: 10px; letter-spacing: .24em; }
.course-cover strong { font-family: "Songti SC", serif; font-size: 34px; font-weight: 600; line-height: 1.24; }
.course-sheet h2 { margin: 0; font-family: "Songti SC", serif; font-size: 28px; }
.course-subtitle { color: var(--muted); line-height: 1.6; }
.course-points { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 28px; }
.course-points span { padding: 7px 10px; color: var(--green); border-radius: 8px; background: var(--green-soft); font-size: 11px; font-weight: 650; }
.course-deliverables { padding: 20px; border-radius: 16px; background: #f4f7f5; }
.course-deliverables h3 { margin: 0 0 14px; font-size: 15px; }
.course-deliverables ul { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.course-deliverables li { position: relative; padding-left: 20px; color: #515652; font-size: 13px; line-height: 1.55; }
.course-deliverables li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--green); font-weight: 800; }
.course-facts { margin: 22px 0 0; }
.course-facts div { display: grid; grid-template-columns: 82px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.course-facts dt { color: #8c908b; font-size: 11px; }
.course-facts dd { margin: 0; color: #414642; font-size: 12px; line-height: 1.55; }
.course-support { margin: 18px 0 6px; color: #777c77; font-size: 11px; line-height: 1.6; }
.payment-footer { flex: 0 0 auto; padding: 10px 24px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: rgba(255,255,255,.98); box-shadow: 0 -12px 28px rgba(26,38,32,.06); }
.payment-bar { display: flex; align-items: center; gap: 18px; padding: 0; }
.payment-bar > div { min-width: 120px; }
.payment-bar small, .payment-bar strong { display: block; }
.payment-bar small { color: var(--muted); font-size: 10px; }
.payment-bar strong { margin-top: 2px; color: #b27719; font-size: 24px; }
.pay-button { flex: 1; height: 52px; color: white; border: 0; border-radius: 16px; background: var(--green); font-weight: 750; cursor: pointer; }
.pay-button:disabled { opacity: .55; cursor: wait; }
.payment-hint { margin: 0; color: #92958f; text-align: center; font-size: 10px; }
.payment-footer .payment-hint { margin-top: 7px; }
.toast { position: fixed; z-index: 50; left: 50%; bottom: 110px; max-width: min(86vw, 380px); padding: 12px 16px; color: white; border-radius: 12px; background: rgba(12,17,15,.92); transform: translateX(-50%); font-size: 13px; box-shadow: 0 12px 30px rgba(0,0,0,.18); }

@media (max-width: 720px) {
  body { background: var(--paper); }
  .app-shell { width: 100%; display: flex; flex-direction: column; padding: 0 0 100px; }
  .brand-bar, .hero, .insight-grid { display: none; }
  .live-card { order: 1; border: 0; border-radius: 0; box-shadow: none; }
  .video-stage { aspect-ratio: 16 / 9; }
  .live-topline { top: 10px; left: 10px; right: 10px; }
  .live-pill, .audience { min-height: 28px; padding: 0 9px; font-size: 11px; }
  .state-panel { padding: 46px 18px 12px; }
  .state-kicker, .state-panel > p:not(.state-kicker):not(.state-schedule) { display: none; }
  .state-panel h2 { font-size: 24px; }
  .state-panel > .state-schedule { display: block; margin-top: 8px; font-size: 11px; }
  .countdown { gap: 6px; margin-top: 14px; }
  .countdown span { min-width: 48px; padding: 8px 7px 6px; border-radius: 10px; }
  .countdown b { font-size: 18px; }
  .countdown small { margin-top: 1px; font-size: 8px; }
  .primary-button { margin-top: 14px; padding: 10px 20px; }
  .watermark { max-width: 25%; font-size: 8px; }
  .live-meta { min-height: 66px; display: flex; gap: 12px; padding: 10px 16px; border-bottom: 1px solid var(--line); }
  .mobile-room-title { display: block; max-width: 220px; overflow: hidden; font-family: "Songti SC", serif; font-size: 15px; font-weight: 650; white-space: nowrap; text-overflow: ellipsis; }
  .teacher { margin-top: 4px; color: var(--muted); font-size: 11px; font-weight: 500; }
  .teacher-note, .desktop-capacity { display: none; }
  .mobile-schedule { display: block; min-width: 72px; text-align: right; line-height: 1.45; }
  .comments-card { order: 2; min-height: calc(100dvh - 285px); margin: 0; padding: 18px 16px 92px; border: 0; border-radius: 0; background: #fff; }
  .section-heading { padding-bottom: 16px; }
  .section-heading .eyebrow { display: none; }
  .section-heading h2 { font-size: 24px; }
  .comments { grid-template-columns: 1fr; max-height: calc(100dvh - 430px); padding-top: 8px; }
  .comments-empty { min-height: calc(100dvh - 430px); padding: 20px; }
  .comment-composer { position: fixed; z-index: 19; left: 0; right: 0; bottom: 0; gap: 8px; margin: 0; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: rgba(255,255,255,.96); backdrop-filter: blur(16px); }
  .comment-composer input { height: 46px; border: 0; border-radius: 23px; background: #f0f1ee; }
  .comment-composer button { min-width: 70px; height: 46px; border-radius: 23px; }
  .cart-button { right: 14px; bottom: calc(78px + env(safe-area-inset-bottom)); width: 60px; height: 60px; border-radius: 20px; }
  .course-sheet { height: 92dvh; }
  .course-scroll { padding-inline: 18px; }
  .course-cover { min-height: 190px; margin-bottom: 20px; padding: 22px; }
  .course-cover strong { font-size: 30px; }
  .course-sheet h2 { font-size: 25px; }
  .payment-footer { padding-inline: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}
