:root { color-scheme: light; --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif; --app-ink: #24332b; --app-paper: #fcfdf9; --app-muted: #657169; --app-forest: #2f6046; --app-night: #142e23; --app-leaf: #d1e9ba; --app-line: #dce4da; --ink: #20382a; --muted: #617366; --line: #dde5db; --green: #306548; --surface: #fff; --pale: #eef4e9; --background: #f7f9f5; --red: #a13b36; --header-height: 76px; }
* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--background); font: 16px/1.65 var(--sans); -webkit-text-size-adjust: 100%; }
a { color: var(--green); text-decoration: none; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .5; }
:is(button, a, input, textarea, select):focus-visible { outline: 3px solid #669b79; outline-offset: 3px; }
[hidden] { display: none !important; }
.skip { position: fixed; top: -100px; left: 12px; z-index: 200; padding: 12px; background: white; }
.skip:focus { top: 12px; }
.learn-header { display: flex; align-items: center; gap: 28px; min-height: var(--header-height); padding: 12px max(24px, calc((100% - 1080px) / 2)); border-bottom: 1px solid var(--line); background: var(--surface); }
.learn-brand { display: flex; gap: 10px; align-items: center; color: var(--ink); flex-shrink: 0; font-weight: 750; font-size: 19px; line-height: 1.3; }
.learn-brand img { border-radius: 10px; }
.learn-brand small { display: block; color: var(--muted); font-size: 11px; letter-spacing: .08em; font-weight: 450; margin-top: 3px; }
.learn-header nav { display: flex; gap: 24px; margin-left: auto; font-size: 14px; }
.learn-header nav a { color: var(--muted); }
.learn-header nav a:first-child { color: var(--green); font-weight: 650; }
.learn-header .account-entry { color: var(--green); border-color: var(--line); background: var(--pale); min-height: 44px; }
.learn-header .account-control { align-self: stretch; }
.learn-shell { max-width: 1080px; padding: 36px 24px 16px; margin: auto; }
.page-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin: 0 0 25px; }
.page-heading > div { min-width: 0; }
.page-heading h1 { overflow-wrap: anywhere; }
.page-heading h1 { margin: 4px 0 7px; font-size: clamp(25px, 4vw, 34px); line-height: 1.3; letter-spacing: -.04em; }
.eyebrow { margin: 0; color: var(--muted); font-size: 12px; font-weight: 650; letter-spacing: .08em; }
.subtitle { color: var(--muted); font-size: 14px; margin: 0; overflow-wrap: anywhere; }
.back { display: inline-flex; align-items: center; gap: 7px; margin-bottom: 20px; min-height: 40px; font-size: 14px; }
.icon { width: 21px; height: 21px; flex-shrink: 0; vertical-align: middle; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 19px; border: 1px solid var(--line); border-radius: 12px; color: var(--green); background: var(--surface); font-size: 14px; font-weight: 650; line-height: 1.4; text-align: center; }
.button:hover:not(:disabled) { background: var(--pale); border-color: #a5bcac; }
.button.primary { color: #fff; background: var(--green); border-color: var(--green); }
.button.primary:hover:not(:disabled) { background: #254f38; }
.button.quiet { border-color: transparent; background: transparent; }
.button.danger { color: var(--red); }
.refresh { padding: 10px; flex-shrink: 0; }
.section-title { display: flex; justify-content: space-between; align-items: center; margin: 32px 0 14px; }
.section-title h2 { font-size: 19px; margin: 0; }
.section-title small { color: var(--muted); font-size: 13px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 23px; }
.course-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.course-card { display: flex; flex-direction: column; gap: 15px; min-height: 156px; transition: border-color 140ms, background 140ms; }
.course-card:hover { border-color: #9db6a3; background: #fcfefb; }
.course-card h3 { margin: 0; color: var(--ink); font-size: 21px; line-height: 1.45; overflow-wrap: anywhere; }
.course-card .course-bottom { display: flex; justify-content: space-between; align-items: center; margin-top: auto; font-size: 13px; }
.course-mark { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--pale); color: var(--green); }
.card-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.badge { display: inline-block; padding: 3px 10px; border-radius: 7px; background: var(--pale); color: var(--green); font-size: 12px; font-weight: 600; line-height: 1.6; }
.badge.muted { background: #f0f2ef; color: var(--muted); }
.reward { display: flex; justify-content: space-between; align-items: center; gap: 22px; padding: 21px 24px; background: #edf4e9; border: 1px solid #d5e2cf; border-radius: 18px; margin: 22px 0; }
.reward h2 { margin: 0 0 3px; font-size: 17px; }
.reward p { color: #566f58; margin: 0; font-size: 13px; }
.reward-actions { display: flex; align-items: center; gap: 16px; flex-shrink: 0; }
.balance-number { font-size: 20px; font-weight: 650; font-variant-numeric: tabular-nums; }
.balance-number small { display: block; color: var(--muted); font-size: 11px; font-weight: 400; text-align: right; }
.rows { display: grid; gap: 12px; }
.row-card { display: flex; align-items: center; gap: 16px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.row-card .row-copy { flex: 1; min-width: 0; }
.row-card h3 { color: var(--ink); font-size: 17px; margin: 0 0 4px; overflow-wrap: anywhere; }
.row-card p { color: var(--muted); font-size: 13px; margin: 0; }
.row-card:hover { border-color: #afc4b2; }
.progress { color: var(--muted); font-size: 13px; margin-top: 10px; }
.empty { padding: 44px 24px; text-align: center; border: 1px dashed #cbd9ca; background: #f2f6ef; border-radius: 20px; }
.empty .course-mark { margin: 0 auto 17px; width: 52px; height: 52px; }
.empty h2 { font-size: 21px; margin: 0 0 9px; }
.empty p { color: var(--muted); font-size: 14px; max-width: 420px; margin: 0 auto 18px; }
.welcome { display: grid; grid-template-columns: 1.1fr 1fr; gap: 55px; padding: 50px 30px; align-items: center; }
.welcome h1 { font-size: clamp(29px, 5vw, 44px); letter-spacing: -.05em; line-height: 1.3; margin: 15px 0; }
.welcome p { color: var(--muted); font-size: 15px; }
.welcome-list { background: var(--surface); border: 1px solid var(--line); padding: 12px 24px; border-radius: 22px; }
.welcome-list > div { display: flex; align-items: center; gap: 17px; padding: 19px 0; }
.welcome-list > div + div { border-top: 1px solid var(--line); }
.welcome-list strong { display: block; font-size: 16px; }
.welcome-list small { font-size: 13px; color: var(--muted); }
.notice { background: #fff6e4; border: 1px solid #e7d4aa; color: #79561f; padding: 13px 17px; border-radius: 12px; font-size: 14px; margin-bottom: 18px; }
.notice.success { background: var(--pale); border-color: #c5d8bd; color: #345a36; }
.notice.error { background: #fff2ef; border-color: #ebd4cc; color: #8f4034; }
.notice.eligibility { background: var(--pale); border-color: var(--line); color: var(--ink); }
.notice.eligibility strong { display: block; margin-bottom: 6px; }
.access-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.notice .access-actions { justify-content: flex-start; }
.row-copy .eligibility-hint { margin-top: 6px; color: var(--ink); }
.notice p { margin: 0 0 8px; }
.notice .button { background: transparent; min-height: 34px; padding: 6px 9px; font-size: 12px; }
.notice details { margin-top: 6px; font-size: 12px; }
.notice pre { white-space: pre-wrap; overflow-wrap: anywhere; }
.loading { padding: 50px; color: var(--muted); text-align: center; }
.content-width { max-width: 790px; margin: auto; }
.description { white-space: pre-wrap; overflow-wrap: anywhere; color: var(--muted); font-size: 14px; margin-bottom: 22px; }
.form-card { padding: 26px; }
.question + .question { border-top: 1px solid var(--line); padding-top: 26px; margin-top: 28px; }
.question h2 { font-size: 19px; margin: 0 0 7px; }
.question > p { font-size: 14px; color: var(--muted); margin: 0 0 17px; white-space: pre-wrap; }
.field { margin-bottom: 24px; min-width: 0; }
.field:last-child { margin-bottom: 0; }
.field-label { display: block; font-weight: 650; font-size: 15px; margin-bottom: 7px; overflow-wrap: anywhere; }
.required { color: #ad5d39; margin-left: 4px; }
.field-description { font-size: 13px; color: var(--muted); white-space: pre-wrap; overflow-wrap: anywhere; margin: 0 0 10px; }
.field :is(input[type=text], input[type=number], textarea, select) { display: block; width: 100%; max-width: 100%; min-height: 48px; padding: 12px; color: var(--ink); background: var(--surface); border: 1px solid #c8d5c6; border-radius: 10px; font-size: 16px; line-height: 1.6; }
.field textarea { min-height: 150px; resize: vertical; }
.field [aria-invalid=true] { border-color: var(--red); }
.field-error { color: var(--red); font-size: 13px; margin-top: 5px; }
.counter { display: block; color: var(--muted); text-align: right; font-size: 12px; margin-top: 5px; font-variant-numeric: tabular-nums; }
.choices { display: grid; gap: 8px; }
.choice { display: flex; align-items: flex-start; gap: 10px; padding: 12px; border-radius: 11px; border: 1px solid var(--line); font-size: 15px; cursor: pointer; }
.choice:has(input:checked) { background: var(--pale); border-color: #94b297; }
.choice input { margin: 5px 0 0; width: 17px; height: 17px; flex-shrink: 0; accent-color: var(--green); }
.form-actions { display: flex; align-items: center; flex-wrap: wrap; justify-content: flex-end; gap: 12px; margin-top: 20px; }
.form-actions .draft-hint { flex: 1 1 160px; font-size: 12px; color: var(--muted); }
.form-actions .button { min-height: 46px; }
.feedback { margin-top: 20px; }
.feedback h2 { font-size: 18px; margin-top: 0; }
.rich { overflow-wrap: anywhere; line-height: 1.9; font-size: 15px; }
.rich p { white-space: pre-wrap; margin: 0 0 14px; }
.rich h3 { font-size: 18px; margin: 22px 0 10px; }
.rich h3:first-child { margin-top: 0; }
.answer-list { margin: 0; }
.answer-list dt { font-size: 14px; color: var(--muted); margin-top: 20px; }
.answer-list dd { margin: 5px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 15px; }
.meta { display: flex; flex-wrap: wrap; gap: 10px 16px; color: var(--muted); font-size: 12px; margin-top: 10px; }
.learn-footer { display: flex; justify-content: space-between; gap: 15px; padding: 34px 0 14px; margin-top: 30px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.learn-dialog { width: min(480px, calc(100% - 32px)); max-height: calc(100dvh - 48px); padding: 26px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); color: var(--ink); }
.learn-dialog::backdrop { background: #142e2360; }
.learn-dialog h2 { font-size: 21px; margin: 0 0 12px; }
.learn-dialog p { color: var(--muted); font-size: 14px; }
.quote-price { padding: 20px; border-radius: 14px; background: var(--pale); margin: 15px 0; }
.quote-price strong { display: block; font-size: 27px; }
.learn-dialog .form-actions { margin-bottom: 0; }
.account-stats div { min-width: 0; padding: 12px 10px; }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
@media (max-width: 650px) {
  .learn-header { padding: 12px 16px; gap: 14px; }
  .learn-header nav { font-size: 13px; gap: 15px; }
  .learn-header nav a:last-child { display: none; }
  .learn-brand { font-size: 17px; }
  .learn-shell { padding: 24px 16px 12px; }
  .course-grid { grid-template-columns: 1fr; }
  .course-card { min-height: 150px; }
  .reward { padding: 17px; gap: 14px; flex-wrap: wrap; }
  .reward-actions { width: 100%; justify-content: space-between; }
  .balance-number small { text-align: left; }
  .welcome { grid-template-columns: 1fr; padding: 22px 4px; gap: 28px; }
  .welcome h1 { font-size: 35px; }
  .form-card { padding: 20px 17px; }
  .form-actions .draft-hint { flex-basis: 100%; }
  .form-actions > .button.primary { flex: 1; }
  .row-card { padding: 16px; gap: 12px; }
  .learn-footer { font-size: 11px; flex-wrap: wrap; }
}
@media (max-width: 950px) {
  .learn-header { padding-left: max(16px, env(safe-area-inset-left)); padding-right: max(16px, env(safe-area-inset-right)); }
  .learn-shell { padding-left: max(16px, env(safe-area-inset-left)); padding-right: max(16px, env(safe-area-inset-right)); padding-bottom: max(12px, env(safe-area-inset-bottom)); }
}
