:root {
  color-scheme: light;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: #12233f;
  background: #eaf1f8;
  font-synthesis: none;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background:
    radial-gradient(circle at 90% 0%, rgba(35, 211, 184, 0.2), transparent 28rem),
    linear-gradient(180deg, #071a33 0 17rem, #eaf1f8 17rem);
}

button, input, select { font: inherit; }
button { touch-action: manipulation; }
button:disabled { cursor: not-allowed; opacity: .46; box-shadow: none; }
[hidden] { display: none !important; }

.app-shell {
  width: min(100%, 540px);
  min-height: 100vh;
  margin: 0 auto;
  padding: env(safe-area-inset-top) 18px calc(96px + env(safe-area-inset-bottom));
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 150px;
  color: white;
}

.eyebrow {
  margin: 0 0 8px;
  color: #65e6d2;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

h1, h2, p { margin-top: 0; }
h1 { margin-bottom: 0; font-size: clamp(1.65rem, 7vw, 2.2rem); line-height: 1.2; }

.progress-orbit {
  flex: 0 0 68px;
  width: 68px;
  height: 68px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(#23d3b8 0deg, rgba(255,255,255,.15) 0deg);
  position: relative;
}
.progress-orbit::after {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: inherit;
  background: #0b2343;
}
.progress-orbit span { position: relative; z-index: 1; font-weight: 800; }

.lesson-hero {
  position: relative;
  overflow: hidden;
  padding: 26px;
  border-radius: 26px;
  background: white;
  box-shadow: 0 22px 60px rgba(9, 31, 61, .16);
}
.lesson-hero::before {
  content: "";
  position: absolute;
  width: 140px;
  height: 140px;
  right: -38px;
  top: 58px;
  border: 24px solid rgba(35, 211, 184, .13);
  border-radius: 50%;
}
.lesson-meta { display: flex; gap: 8px; margin-bottom: 28px; }
.lesson-meta span, .goal-list span {
  border-radius: 999px;
  background: #edf8f6;
  color: #087968;
  font-size: .78rem;
  font-weight: 700;
  padding: 7px 10px;
}
.lesson-number { margin-bottom: 6px; color: #64758e; font-size: .85rem; font-weight: 700; }
.lesson-hero h2 { position: relative; max-width: 310px; margin-bottom: 12px; font-size: 1.65rem; line-height: 1.25; }
.lesson-hero > p:not(.lesson-number) { position: relative; color: #52657f; line-height: 1.7; }
.goal-list { position: relative; display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0; }
.goal-list span { background: #eff3f8; color: #4c607b; }

.primary-action {
  width: 100%;
  min-height: 54px;
  border: 0;
  border-radius: 16px;
  background: #0d63e7;
  color: white;
  font-weight: 800;
  box-shadow: 0 12px 24px rgba(13, 99, 231, .25);
}

.today-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 16px; }
.today-grid article { min-width: 0; padding: 16px 10px; border-radius: 18px; background: rgba(255,255,255,.78); }
.today-grid strong, .today-grid span { display: block; }
.today-grid strong { margin-bottom: 5px; font-size: .95rem; }
.today-grid span { color: #6c7b90; font-size: .72rem; line-height: 1.35; }

.next-lesson-card {
  display: grid;
  gap: 18px;
  margin-top: 16px;
  padding: 22px;
  border: 1px solid rgba(101, 230, 210, .32);
  border-radius: 22px;
  background: #102e53;
  color: white;
  box-shadow: 0 18px 42px rgba(9, 31, 61, .18);
}
.next-lesson-card h2 { margin: 5px 0 8px; font-size: 1.25rem; }
.next-lesson-card p { margin: 0; color: #c9dbef; font-size: .9rem; line-height: 1.6; }
.next-label { color: #65e6d2; font-size: .75rem; font-weight: 800; letter-spacing: .06em; }
.next-lesson-action {
  display: grid;
  place-items: center;
  min-height: 50px;
  border-radius: 14px;
  background: #23d3b8;
  color: #082443;
  font-weight: 850;
  text-decoration: none;
}

.bottom-nav {
  position: fixed;
  z-index: 20;
  left: 50%;
  bottom: 0;
  width: min(100%, 540px);
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  padding: 10px 10px calc(10px + env(safe-area-inset-bottom));
  border-top: 1px solid rgba(16, 44, 78, .08);
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(18px);
}
.bottom-nav button { border: 0; background: none; color: #8290a4; font-size: .72rem; }
.bottom-nav a { color: #8290a4; font-size: .72rem; text-align: center; text-decoration: none; }
.bottom-nav button span, .bottom-nav a span { display: block; height: 20px; font-size: 1rem; }
.bottom-nav button.active, .bottom-nav a.active { color: #0d63e7; font-weight: 800; }
.bottom-nav button:disabled { opacity: 1; color: #a8b2c0; }

.back-home {
  display: inline-block;
  margin-bottom: 22px;
  color: #b8cde6;
  font-size: .82rem;
  font-weight: 750;
  text-decoration: none;
}
.lesson-two-topbar { min-height: 190px; }
.lesson-two-hero::before { border-color: rgba(255, 173, 94, .18); }

.lesson-header { display: grid; grid-template-columns: 40px 1fr auto; align-items: center; gap: 12px; padding: 18px 0; color: white; }
.icon-button { width: 40px; height: 40px; border: 1px solid rgba(255,255,255,.2); border-radius: 14px; background: rgba(255,255,255,.1); color: white; font-size: 1.2rem; }
.step-progress { height: 8px; overflow: hidden; border-radius: 99px; background: rgba(255,255,255,.16); }
.step-progress span { display: block; width: 12.5%; height: 100%; border-radius: inherit; background: #65e6d2; transition: width .3s ease; }
#stepCounter { font-size: .8rem; font-weight: 700; }
.step-card { min-height: 68vh; padding: 26px; border-radius: 26px; background: white; box-shadow: 0 22px 60px rgba(9,31,61,.17); }
.step-kicker { color: #087968; font-size: .78rem; font-weight: 800; letter-spacing: .08em; }
.step-card h2 { font-size: 1.65rem; }
.step-card p { color: #52657f; line-height: 1.75; }
.scene-panel { margin: 28px 0; padding: 22px; border-left: 4px solid #23d3b8; border-radius: 0 18px 18px 0; background: #edf8f6; color: #183c47; font-size: 1.05rem; line-height: 1.7; }

.micro-task {
  display: grid;
  gap: 6px;
  margin: 24px 0;
  padding: 16px 18px;
  border: 1px solid #dbe6f2;
  border-radius: 16px;
  background: #f7f9fc;
}
.micro-task strong { color: #1b3558; }
.micro-task span { color: #61738b; font-size: .92rem; line-height: 1.55; }

.step-actions {
  display: grid;
  grid-template-columns: minmax(88px, auto) minmax(170px, 1fr);
  align-items: center;
  gap: 12px;
  margin-top: 28px;
}
.primary-action.compact { min-width: 0; }
.text-action {
  min-height: 48px;
  border: 0;
  background: transparent;
  color: #52657f;
  font-weight: 750;
}

.audio-action,
.secondary-action {
  width: 100%;
  min-height: 50px;
  border: 1px solid #bfd0e2;
  border-radius: 15px;
  background: #f7faff;
  color: #0d55ba;
  font-weight: 800;
}
.audio-action { margin: 10px 0 8px; border-color: #9bc7ff; background: #eaf3ff; }
.play-note { margin-bottom: 24px; text-align: center; font-size: .78rem; }

.question-block {
  display: grid;
  gap: 10px;
  margin: 20px 0;
  padding: 0;
  border: 0;
}
.question-block legend { margin-bottom: 12px; color: #203858; font-weight: 800; line-height: 1.5; }
.option {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 12px 14px;
  border: 1px solid #d9e3ef;
  border-radius: 14px;
  color: #304866;
  line-height: 1.45;
}
.option:has(input:checked) { border-color: #5aa3ff; background: #edf5ff; }
.option input { width: 19px; height: 19px; accent-color: #0d63e7; }

.feedback {
  margin-top: 14px;
  padding: 13px 15px;
  border-radius: 13px;
  font-size: .9rem;
  line-height: 1.55;
}
.feedback.correct { background: #e9f8f4; color: #08705f; }
.feedback.incorrect { background: #fff1ec; color: #a23c22; }

.info-form { display: grid; gap: 14px; margin: 20px 0 14px; }
.info-form label { display: grid; gap: 7px; color: #425978; font-size: .85rem; font-weight: 800; }
.info-form select {
  min-height: 50px;
  padding: 0 13px;
  border: 1px solid #ccd9e8;
  border-radius: 13px;
  background: white;
  color: #152d4d;
}

.transcript-block { margin-top: 18px; border-top: 1px solid #e1e9f2; padding-top: 16px; }
.transcript-block summary { cursor: pointer; color: #0d63e7; font-weight: 800; }
.transcript-block p { margin: 12px 0 0; font-size: .9rem; line-height: 1.55; }
.reading-transcript { max-height: 330px; overflow: auto; padding-right: 5px; }

.vocab-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 20px 0; }
.vocab-card {
  min-height: 138px;
  padding: 15px;
  border: 1px solid #d8e4f0;
  border-radius: 16px;
  background: #f8fbff;
  color: #163457;
  text-align: left;
}
.vocab-card strong, .vocab-card span, .vocab-card small { display: block; }
.vocab-card strong { margin-bottom: 5px; color: #0b5dcf; font-size: 1.02rem; }
.vocab-card span { margin-bottom: 10px; color: #62758e; font-size: .8rem; }
.vocab-card small { color: #2d496b; font-size: .78rem; line-height: 1.45; }
.vocab-card.playing { border-color: #23bfa8; background: #eaf9f6; opacity: 1; }
.vocab-card.playing::after {
  content: "正在播放";
  display: block;
  margin-top: 10px;
  color: #08705f;
  font-size: .72rem;
  font-weight: 800;
}
.expression-strip { padding: 16px; border-radius: 15px; background: #102e53; color: white; }
.expression-strip span, .expression-strip strong { display: block; }
.expression-strip span { margin-bottom: 7px; color: #82e9d8; font-size: .75rem; font-weight: 800; }
.warmup-strip { margin: 22px 0; }
.grammar-note { margin: 20px 0; padding: 16px 18px; border-left: 4px solid #23c9af; border-radius: 0 15px 15px 0; background: #edf8f6; }
.grammar-note p { margin: 0; color: #244761; }

.grammar-rule { display: grid; gap: 9px; margin: 20px 0 24px; }
.grammar-rule p {
  display: grid;
  grid-template-columns: 120px 1fr;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 12px 14px;
  border-radius: 13px;
  background: #f2f6fb;
  line-height: 1.4;
}
.grammar-rule strong { color: #0d63e7; }
.grammar-rule span { color: #5d6f86; font-size: .85rem; }

.polite-scale { display: grid; gap: 9px; margin: 20px 0 24px; }
.polite-scale p {
  display: grid;
  grid-template-columns: 66px 1fr;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 13px 14px;
  border-radius: 13px;
  background: #f2f6fb;
  line-height: 1.45;
}
.polite-scale p:last-child { background: #e9f8f4; }
.polite-scale span { color: #6b7c91; font-size: .78rem; font-weight: 800; }
.polite-scale strong { color: #244361; font-size: .9rem; }
.polite-scale p:last-child strong { color: #08705f; }
.spaced-review { padding: 16px; border-radius: 16px; background: #f4f8fc; }

.gap-list { display: grid; gap: 13px; margin: 22px 0 16px; }
.gap-list label { color: #263f5f; font-size: 1rem; line-height: 2.8; }
.gap-list input {
  width: min(210px, 78vw);
  height: 42px;
  margin: 0 4px;
  padding: 0 9px;
  border: 0;
  border-bottom: 2px solid #5a9af0;
  border-radius: 8px 8px 0 0;
  background: #eff6ff;
  color: #102d53;
  text-align: center;
}

.speaking-prompt {
  margin: 22px 0 10px;
  padding: 20px;
  border-left: 4px solid #ff805c;
  border-radius: 0 16px 16px 0;
  background: #fff3ee;
  color: #2d3441;
  font-size: 1.15rem;
  line-height: 1.65;
}
.oral-actions { display: grid; gap: 10px; margin-top: 20px; }
.oral-status { margin: 14px 0 8px; font-size: .85rem; }
.oral-status.warning, .oral-result.warning { color: #a23c22; }
.oral-result {
  min-height: 108px;
  margin: 0;
  padding: 14px;
  overflow: auto;
  border: 1px dashed #c9d6e4;
  border-radius: 13px;
  background: #f9fbfd;
  color: #2f4868;
  font: inherit;
  font-size: .84rem;
  line-height: 1.65;
  white-space: pre-wrap;
}
.setup-link { display: inline-block; margin-top: 12px; color: #0d63e7; font-size: .85rem; font-weight: 750; }
.speaking-skip { width: 100%; margin-top: 8px; color: #0d63e7; }
.secondary-link { display: grid; place-items: center; min-height: 48px; padding: 0 12px; border: 1px solid #bfd0e2; border-radius: 14px; color: #0d63e7; font-size: .82rem; font-weight: 800; text-align: center; text-decoration: none; }
.summary-actions { grid-template-columns: auto minmax(110px, .7fr) minmax(150px, 1fr); }

.summary-score {
  display: grid;
  place-items: center;
  gap: 4px;
  margin: 22px 0;
  padding: 22px;
  border-radius: 22px;
  background: linear-gradient(135deg, #09274b, #0d63e7);
  color: white;
}
.summary-score span { color: #91d9ff; font-size: .8rem; font-weight: 800; }
.summary-score strong { font-size: 3rem; line-height: 1; }
.summary-score small { color: #d9eaff; text-align: center; line-height: 1.5; }
.summary-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 0 0 20px; padding: 0; list-style: none; }
.summary-list li { min-width: 0; padding: 12px 7px; border-radius: 14px; background: #f0f5fa; text-align: center; }
.summary-list strong, .summary-list span { display: block; }
.summary-list strong { margin-bottom: 4px; color: #0d63e7; font-size: 1.25rem; }
.summary-list span { color: #697b91; font-size: .7rem; line-height: 1.3; }
.travel-card { padding: 18px; border-radius: 17px; background: #eaf8f5; }
.travel-card span { color: #08705f; font-size: .75rem; font-weight: 800; }
.travel-card p { margin: 8px 0 0; color: #1c454c; font-size: 1rem; line-height: 1.65; }
.review-note { margin-top: 18px; font-size: .9rem; }

/* 学习首页 */
.dashboard-shell { padding-top: env(safe-area-inset-top); }
.dashboard-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 166px;
  color: white;
}
.profile-switch-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 18px 0 14px;
  padding: 7px 11px 7px 7px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 16px;
  background: rgba(255,255,255,.1);
  color: white;
  text-decoration: none;
}
.profile-switch-avatar { display: grid; place-items: center; width: 35px; height: 35px; border-radius: 12px; background: #0d63e7; font-weight: 900; }
.profile-switch-pill > span:last-child { display: grid; gap: 1px; }
.profile-switch-pill small { color: #b9cde5; font-size: .66rem; }
.profile-switch-pill strong { color: #76ead8; font-size: .75rem; }
.sync-badge {
  display: inline-flex;
  margin-top: 10px;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(255,255,255,.1);
  color: #bdd0e7;
  font-size: .7rem;
  font-weight: 750;
}
.sync-badge[data-status="synced"] { background: rgba(35,211,184,.16); color: #78ecd9; }
.sync-badge[data-status="error"] { background: rgba(255,139,102,.16); color: #ffc2ad; }
.today-task-card {
  position: relative;
  overflow: hidden;
  padding: 26px;
  border-radius: 26px;
  background: white;
  box-shadow: 0 22px 60px rgba(9,31,61,.16);
}
.today-task-card::after {
  content: "";
  position: absolute;
  right: -58px;
  top: -50px;
  width: 150px;
  height: 150px;
  border: 26px solid rgba(35,211,184,.12);
  border-radius: 50%;
}
.today-task-card h2 { position: relative; margin-bottom: 10px; font-size: 1.6rem; line-height: 1.28; }
.today-task-card p:not(.lesson-number) { position: relative; color: #556a84; line-height: 1.65; }
.task-status {
  position: relative;
  z-index: 1;
  display: inline-flex;
  margin-bottom: 24px;
  padding: 7px 10px;
  border-radius: 999px;
  font-size: .75rem;
  font-weight: 850;
}
.task-status.new { background: #eaf2ff; color: #0d63e7; }
.task-status.due { background: #fff0e8; color: #b64e25; }
.task-status.complete { background: #e8f8f4; color: #08705f; }
.primary-link {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 54px;
  margin-top: 22px;
  border-radius: 16px;
  background: #0d63e7;
  color: white;
  font-weight: 850;
  text-decoration: none;
  box-shadow: 0 12px 24px rgba(13,99,231,.22);
}
.dashboard-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 16px;
}
.dashboard-metrics article { min-width: 0; padding: 16px 10px; border-radius: 18px; background: rgba(255,255,255,.82); }
.dashboard-metrics span, .dashboard-metrics strong { display: block; }
.dashboard-metrics span { margin-bottom: 7px; color: #718095; font-size: .72rem; line-height: 1.35; }
.dashboard-metrics strong { color: #1b385c; font-size: .95rem; }
.dashboard-section { margin-top: 18px; padding: 22px; border-radius: 22px; background: white; box-shadow: 0 12px 34px rgba(25,55,87,.08); }
.compact-section { margin-bottom: 8px; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.section-heading h2 { margin: 3px 0 0; font-size: 1.18rem; }
.section-kicker { margin: 0; color: #0b8170; font-size: .7rem; font-weight: 850; letter-spacing: .1em; }
.inline-link { min-height: 42px; border: 0; background: transparent; color: #0d63e7; font-size: .85rem; font-weight: 800; }
.review-preview { margin-top: 16px; padding-top: 15px; border-top: 1px solid #e7edf4; }
.review-preview > div { display: flex; align-items: baseline; gap: 9px; }
.review-preview strong { color: #0d63e7; font-size: 1.15rem; }
.review-preview span { color: #7a899c; font-size: .78rem; }
.review-preview p { margin: 8px 0 0; color: #405673; font-size: .88rem; line-height: 1.55; }

.inner-page-header { padding: 52px 4px 28px; color: white; }
.inner-page-header h1 { margin-bottom: 10px; }
.inner-page-header > p:last-child { margin: 0; color: #b9cee5; line-height: 1.6; }
.course-list, .review-lesson-list { display: grid; gap: 12px; }
.course-week-heading { display: flex; align-items: baseline; justify-content: space-between; margin: 22px 3px 2px; color: white; }
.course-week-heading span { color: #63e0cf; font-size: .7rem; font-weight: 850; letter-spacing: .12em; }
.course-week-heading strong { font-size: .95rem; }
.course-row {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) 30px;
  align-items: center;
  gap: 13px;
  padding: 18px;
  border-radius: 20px;
  background: white;
  box-shadow: 0 12px 32px rgba(25,55,87,.08);
}
.course-index { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 13px; background: #eaf2ff; color: #0d63e7; font-weight: 850; }
.course-row.completed .course-index { background: #e6f7f2; color: #08705f; }
.course-copy > span { color: #0b8170; font-size: .72rem; font-weight: 800; }
.course-copy h2 { margin: 5px 0 7px; font-size: 1.05rem; line-height: 1.35; }
.course-copy p { margin: 0 0 12px; color: #6b7d92; font-size: .82rem; line-height: 1.5; }
.course-row > a { color: #0d63e7; font-size: 1.25rem; font-weight: 900; text-align: center; text-decoration: none; }
.course-progress { height: 6px; overflow: hidden; border-radius: 99px; background: #e8eef5; }
.course-progress span { display: block; height: 100%; border-radius: inherit; background: #23c9af; }

.review-status-card {
  display: grid;
  gap: 14px;
  margin-bottom: 14px;
  padding: 22px;
  border-radius: 22px;
  background: linear-gradient(135deg, #0b2d55, #0d63e7);
  color: white;
}
.review-status-card > div { display: flex; align-items: baseline; justify-content: space-between; }
.review-status-card span { color: #9bd9ff; font-size: .82rem; font-weight: 800; }
.review-status-card strong { font-size: 2.2rem; }
.review-status-card p { margin: 0; color: #dceaff; line-height: 1.6; }
.review-status-card a { display: grid; place-items: center; min-height: 48px; border-radius: 14px; background: white; color: #0d55ba; font-weight: 850; text-decoration: none; }
.review-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  padding: 19px;
  border-radius: 20px;
  background: white;
}
.review-row span { color: #0b8170; font-size: .72rem; font-weight: 800; }
.review-row h2 { margin: 5px 0 7px; font-size: 1rem; }
.review-row p { margin: 0; color: #6b7d92; font-size: .8rem; line-height: 1.5; }
.review-due { display: grid; justify-items: end; align-content: center; gap: 4px; }
.review-due strong { color: #0d63e7; font-size: .88rem; }
.review-due small { color: #8a98aa; }
.review-due a { margin-top: 6px; color: #0d63e7; font-size: .8rem; font-weight: 800; }

.progress-summary { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.progress-summary article { padding: 18px; border-radius: 18px; background: white; }
.progress-summary span, .progress-summary strong { display: block; }
.progress-summary span { margin-bottom: 8px; color: #738298; font-size: .78rem; }
.progress-summary strong { color: #16385f; font-size: 1.65rem; }
.progress-summary small { font-size: .75rem; }
.score-trend { display: grid; gap: 20px; margin-top: 18px; }
.score-row > div:first-child { display: flex; align-items: baseline; justify-content: space-between; }
.score-row span { color: #657890; font-size: .82rem; }
.score-row strong { color: #0d63e7; font-size: 1.5rem; }
.score-bar { height: 10px; overflow: hidden; margin-top: 8px; border-radius: 99px; background: #e7edf5; }
.score-bar span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #23c9af, #0d63e7); }
.score-row p { margin: 8px 0 0; color: #718197; font-size: .76rem; line-height: 1.5; }
.activity-list { display: grid; gap: 12px; margin-top: 16px; }
.activity-row { display: grid; grid-template-columns: 36px 1fr; align-items: center; gap: 12px; }
.activity-mark { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 12px; background: #e8f8f4; color: #08705f; font-weight: 900; }
.activity-row strong, .activity-row span { display: block; }
.activity-row strong { margin-bottom: 4px; color: #243e60; font-size: .88rem; }
.activity-row span { color: #8390a2; font-size: .74rem; }
.empty-copy { margin: 0; color: #758499; line-height: 1.6; }
.surface-empty { padding: 20px; border-radius: 18px; background: white; }

.profile-card {
  display: grid;
  grid-template-columns: 58px 1fr;
  align-items: center;
  gap: 16px;
  padding: 22px;
  border-radius: 22px;
  background: white;
}
.profile-avatar { display: grid; place-items: center; width: 58px; height: 58px; border-radius: 18px; background: #0d63e7; color: white; font-size: 1.4rem; font-weight: 900; }
.profile-card span { color: #738298; font-size: .75rem; }
.profile-card h2 { margin: 3px 0 4px; font-size: 1.25rem; }
.profile-card p { margin: 0; color: #718197; font-size: .78rem; }
.profile-actions { display: grid; gap: 12px; }
.profile-actions > div { display: grid; gap: 5px; margin-bottom: 5px; }
.profile-actions > div span { color: #748398; font-size: .8rem; line-height: 1.5; }
.profile-course-switch { display: grid; gap: 4px; padding: 15px 16px; border: 1px solid #f0d080; border-radius: 15px; background: #fff7dc; color: #273b58; text-decoration: none; }
.profile-course-switch span { color: #b76822; font-size: .72rem; font-weight: 800; }
.profile-course-switch strong { font-size: .9rem; }
.danger-action { width: 100%; min-height: 50px; border: 1px solid #efc1b6; border-radius: 15px; background: #fff7f4; color: #a7432c; font-weight: 800; }
.privacy-copy { margin: 16px 4px 0; color: #728298; font-size: .78rem; line-height: 1.65; }

.site-footer {
  padding: 24px 8px 4px;
  color: #6f8095;
  font-size: .72rem;
  line-height: 1.5;
  text-align: center;
}
.site-footer a { color: inherit; text-decoration: none; }
.site-footer a:hover, .site-footer a:focus-visible { color: #0d63e7; text-decoration: underline; }

/* 间隔复习会话 */
.review-session-shell { padding-top: env(safe-area-inset-top); }
.icon-link { display: grid; place-items: center; text-decoration: none; }
.review-card { min-height: 72vh; }
.review-prompt {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: 8px;
  margin: 30px 0;
  padding: 24px 16px;
  border-radius: 18px;
  background: #eef5fd;
  color: #173756;
  font-size: 1.08rem;
  line-height: 2.4;
}
.review-prompt input {
  width: 128px;
  height: 44px;
  padding: 0 9px;
  border: 0;
  border-bottom: 2px solid #0d63e7;
  border-radius: 8px 8px 0 0;
  background: white;
  color: #0d3d75;
  text-align: center;
}
.review-next { margin-top: 12px; }
.review-score { margin-bottom: 18px; }

/* 登录 */
.login-body { background: radial-gradient(circle at 80% 0%, rgba(35,211,184,.23), transparent 31rem), #081a33; }
.login-shell { width: min(100%, 460px); min-height: 100vh; margin: 0 auto; padding: max(58px, env(safe-area-inset-top)) 20px 42px; }
.login-intro { color: white; }
.login-intro h1 { margin-bottom: 13px; }
.login-intro > p:last-child { color: #b8cce3; line-height: 1.65; }
.login-card { display: grid; gap: 17px; margin-top: 30px; padding: 26px; border-radius: 25px; background: white; box-shadow: 0 25px 70px rgba(0,0,0,.25); }
.login-card h2 { margin: 4px 0 0; font-size: 1.35rem; }
.login-card label { display: grid; gap: 7px; color: #526780; font-size: .82rem; font-weight: 800; }
.login-card input { width: 100%; min-height: 52px; padding: 0 14px; border: 1px solid #cdd9e6; border-radius: 14px; background: #fbfcfe; color: #173656; }
.login-card input:focus { outline: 3px solid rgba(13,99,231,.14); border-color: #5b9fee; }
.login-status { margin: -2px 0 0; color: #718197; font-size: .78rem; line-height: 1.55; }
.login-status.error { color: #a7432c; }
.login-note { margin: 18px 10px 0; color: #9db2ca; font-size: .75rem; line-height: 1.6; text-align: center; }
.login-site-footer { color: #9db2ca; }

@media (min-width: 760px) {
  body { background: radial-gradient(circle at 70% 0%, rgba(35,211,184,.18), transparent 35rem), #081a33; }
  .app-shell { padding-top: 18px; }
}

@media (max-width: 520px) {
  .summary-actions { grid-template-columns: 1fr; }
}

@media (max-width: 380px) {
  .lesson-hero, .step-card { padding: 21px; }
  .vocab-grid { grid-template-columns: 1fr; }
  .grammar-rule p { grid-template-columns: 1fr; gap: 3px; }
  .step-actions { grid-template-columns: 82px minmax(0, 1fr); }
  .course-row { grid-template-columns: 36px minmax(0, 1fr) 24px; padding: 15px; }
  .course-index { width: 36px; height: 36px; }
}
