:root {
  --orange: #ff5a1f;
  --orange-dark: #e94d16;
  --orange-soft: #fff4ef;
  --orange-pale: #fff8f5;
  --orange-border: #f6b28f;
  --page: #f7f7f8;
  --white: #fff;
  --text: #222;
  --regular: #555;
  --muted: #999;
  --disabled: #c7c7c7;
  --divider: #f0f0f2;
  --green: #1fc48d;
  --warning: #f59e0b;
  font-family: "PingFang SC", "SF Pro Display", "Microsoft YaHei", sans-serif;
  color: var(--text);
  font-synthesis: none;
  letter-spacing: 0;
}

* { box-sizing: border-box; }
html, body { min-height: 100%; margin: 0; }
body { background: #eef0f3; }
button { padding: 0; border: 0; background: transparent; color: inherit; font: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }
svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.demo-stage { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.phone { position: relative; width: min(390px, 100vw); height: min(844px, calc(100vh - 48px)); min-height: 680px; overflow: hidden; border: 1px solid #dddde0; border-radius: 28px; background: var(--page); box-shadow: 0 24px 72px rgb(25 30 38 / 18%); }
#app, .app-screen { width: 100%; height: 100%; }
.app-screen { position: relative; display: flex; flex-direction: column; overflow: hidden; background: var(--page); }
.ui-icon { display: inline-grid; width: 20px; height: 20px; place-items: center; flex: 0 0 auto; }

.status-bar { height: 25px; display: flex; align-items: center; justify-content: space-between; padding: 4px 18px 0; background: #fff; font-size: 11px; font-weight: 600; }
.status-icons { display: flex; align-items: flex-end; gap: 3px; }
.status-icons i { display: inline-block; width: 3px; height: 8px; border-radius: 2px; background: #333; }
.status-icons i:nth-child(2) { width: 12px; height: 7px; border: 1.5px solid #333; border-bottom: 0; border-radius: 8px 8px 0 0; background: transparent; }
.status-icons b { padding: 1px 4px; border: 1px solid #333; border-radius: 4px; font-size: 8px; line-height: 10px; }

.learning-scroll, .report-scroll { flex: 1; overflow-y: auto; scrollbar-width: none; }
.learning-scroll::-webkit-scrollbar, .report-scroll::-webkit-scrollbar { display: none; }
.learning-scroll { padding: 0 14px 96px; }

.learning-header { height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 -14px; padding: 0 16px; background: #fff; }
.learning-header h1 { margin: 0; font-size: 18px; font-weight: 600; line-height: 26px; }
.learning-header p { margin: 1px 0 0; color: var(--muted); font-size: 11px; }
.header-actions { display: flex; align-items: center; gap: 13px; }
.header-action { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; color: #555; font-size: 10px; }
.header-action .ui-icon { width: 21px; height: 21px; }
.report-header-action { color: var(--orange-dark); }
.report-header-action::after { content: ""; position: absolute; top: -2px; right: 4px; width: 5px; height: 5px; border-radius: 50%; background: var(--orange); }

.calendar-card { margin: 9px 0 10px; border-radius: 8px; background: #fff; overflow: hidden; }
.calendar-row { display: grid; grid-template-columns: repeat(7, 1fr); padding: 7px 5px 6px; }
.calendar-day { position: relative; min-height: 46px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; border-radius: 8px; }
.calendar-day span { color: var(--muted); font-size: 10px; }
.calendar-day strong { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; font-size: 12px; font-weight: 500; }
.calendar-day i { position: absolute; bottom: 1px; width: 3px; height: 3px; border-radius: 50%; background: var(--orange); }
.calendar-day.is-active strong { background: var(--orange); color: #fff; font-weight: 600; }
.calendar-day.is-active span { color: var(--orange-dark); }
.calendar-day.is-active i { background: #fff; }
.today-state { height: 34px; display: flex; align-items: center; justify-content: center; gap: 6px; border-top: 1px solid var(--divider); color: var(--muted); font-size: 11px; }
.today-state span { width: 5px; height: 5px; border-radius: 50%; background: #d9d9dc; }

.week-report-card { width: 100%; min-height: 94px; display: flex; align-items: center; gap: 12px; margin: 0 0 10px; padding: 14px; border: 1px solid #ffe0d2; border-radius: 10px; background: linear-gradient(108deg, #fff6f1 0%, #fff 70%); text-align: left; box-shadow: 0 4px 18px rgb(255 90 31 / 5%); }
.learning-focus-card { margin-bottom: 10px; overflow: hidden; border: 1px solid #ffe0d2; border-radius: 12px; background: #fff; box-shadow: 0 4px 18px rgb(255 90 31 / 5%); }
.learning-focus-card .week-report-card { margin: 0; border: 0; border-radius: 0; box-shadow: none; }
.learning-focus-card .continue-card { margin: 0; border-top: 1px solid #f2f2f3; border-radius: 0; }
.report-card-icon { width: 43px; height: 43px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 13px; background: var(--orange); color: #fff; }
.report-card-icon .ui-icon { width: 23px; height: 23px; }
.report-card-copy { min-width: 0; display: flex; flex: 1; flex-direction: column; gap: 3px; }
.report-card-copy small { color: var(--orange-dark); font-size: 11px; font-weight: 600; }
.report-card-copy strong { overflow: hidden; font-size: 15px; text-overflow: ellipsis; white-space: nowrap; }
.report-card-copy em { color: var(--muted); font-size: 11px; font-style: normal; }
.report-card-more { display: inline-flex; align-items: center; color: var(--muted); font-size: 11px; }
.report-card-more .ui-icon { width: 14px; height: 14px; }

.continue-card { min-height: 88px; display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; align-items: center; gap: 9px; margin-bottom: 9px; padding: 12px; border-radius: 8px; background: #fff; }
.continue-icon { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: var(--orange-soft); color: var(--orange); }
.continue-icon .ui-icon { width: 21px; height: 21px; }
.continue-card div:nth-child(2) { min-width: 0; }
.continue-card small { display: block; color: var(--muted); font-size: 10px; }
.continue-card strong { display: block; overflow: hidden; margin-top: 2px; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.continue-card p { overflow: hidden; margin: 3px 0 0; color: var(--muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.continue-card button { padding: 7px 10px; border-radius: 999px; background: var(--orange); color: #fff; font-size: 10px; font-weight: 600; }

.learning-tabs { height: 45px; display: grid; grid-template-columns: repeat(3, 1fr); align-items: end; margin: 0 -14px; padding: 0 14px; border-bottom: 1px solid var(--divider); background: #fff; }
.learning-tabs button { position: relative; height: 45px; color: #666; font-size: 13px; }
.learning-tabs button.is-active { color: var(--text); font-weight: 600; }
.learning-tabs button.is-active::after { content: ""; position: absolute; right: 30%; bottom: 0; left: 30%; height: 3px; border-radius: 3px; background: var(--orange); }

.course-section-head { height: 52px; display: flex; align-items: center; justify-content: space-between; margin: 0 -14px; padding: 0 14px; background: #fff; }
.course-section-head div { display: flex; align-items: baseline; gap: 7px; }
.course-section-head strong { font-size: 14px; }
.course-section-head span { color: var(--muted); font-size: 10px; }
.course-section-head button { display: inline-flex; align-items: center; gap: 4px; padding: 6px 9px; border: 1px solid var(--orange-border); border-radius: 999px; color: var(--orange-dark); font-size: 10px; }
.course-section-head .ui-icon { width: 13px; height: 13px; }

.course-list { margin: 0 -14px; background: #fff; }
.course-row { min-height: 86px; display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--divider); }
.course-cover { width: 76px; height: 49px; display: grid; place-items: center; flex: 0 0 auto; overflow: hidden; border-radius: 6px; color: #fff; text-align: center; box-shadow: inset 0 0 0 1px rgb(255 255 255 / 14%); }
.course-cover span { font-size: 15px; font-weight: 700; line-height: 1.12; text-shadow: 0 1px 2px rgb(0 0 0 / 12%); }
.cover-orange { background: linear-gradient(135deg, #ffae54, #ff5a1f); }
.cover-red { background: linear-gradient(135deg, #ff6d5e, #e63527); }
.cover-blue { background: linear-gradient(135deg, #50c5ec, #308ddd); }
.course-copy { min-width: 0; flex: 1; }
.course-copy h3 { display: -webkit-box; overflow: hidden; margin: 0; font-size: 12.5px; font-weight: 600; line-height: 1.35; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.course-copy p { overflow: hidden; margin: 4px 0; color: var(--muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.row-progress { display: flex; align-items: center; gap: 6px; }
.row-progress > span { height: 3px; display: block; flex: 1; overflow: hidden; border-radius: 3px; background: #eee; }
.row-progress i { height: 100%; display: block; border-radius: 3px; background: var(--orange); }
.row-progress em { color: var(--muted); font-size: 9px; font-style: normal; white-space: nowrap; }
.row-primary-action, .row-report-action { flex: 0 0 auto; font-size: 10px; }
.row-primary-action { color: var(--orange-dark); }
.row-report-action { padding: 6px 9px; border: 1px solid var(--orange-border); border-radius: 999px; color: var(--orange-dark); }

.floating-service { position: absolute; right: 12px; bottom: 78px; z-index: 6; width: 48px; height: 56px; display: flex; flex-direction: column; align-items: center; justify-content: center; border: 1px solid #ffe0d2; border-radius: 24px 24px 10px 10px; background: #fff; box-shadow: 0 5px 18px rgb(46 52 59 / 12%); }
.floating-service span { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: var(--orange); color: #fff; font-size: 13px; font-weight: 700; }
.floating-service em { margin-top: 2px; color: var(--orange-dark); font-size: 9px; font-style: normal; font-weight: 600; }
.floating-service i { position: absolute; top: -1px; right: 2px; width: 7px; height: 7px; border: 1px solid #fff; border-radius: 50%; background: #f05252; }

.bottom-nav { position: absolute; right: 0; bottom: 0; left: 0; z-index: 5; height: 66px; display: grid; grid-template-columns: repeat(4, 1fr); padding: 6px 14px calc(5px + env(safe-area-inset-bottom)); border-top: 1px solid var(--divider); background: rgb(255 255 255 / 96%); }
.bottom-nav button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: #9b9b9b; font-size: 9px; }
.bottom-nav button.is-active { color: var(--orange); font-weight: 600; }
.bottom-nav .ui-icon { width: 21px; height: 21px; }

/* 方案 B：红框外直接沿用当前 APP 截图，只把新增模块做成可交互代码。 */
.learning-reference-screen { background: #f7f7f8; }
.learning-reference-home {
  --original-top: 36.84%;
  --entry-height: 110px;
  --bottom-nav-height: 9.94%;
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}
.learning-reference-image { position: relative; z-index: 0; width: 100%; height: 100%; display: block; object-fit: fill; }
.learning-reference-body-cover {
  position: absolute;
  z-index: 1;
  top: var(--original-top);
  right: 0;
  bottom: var(--bottom-nav-height);
  left: 0;
  background: #fff;
}
.learning-reference-shifted-image {
  position: absolute;
  z-index: 2;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
  clip-path: inset(var(--original-top) 0 calc(var(--entry-height) + var(--bottom-nav-height)) 0);
  transform: translateY(var(--entry-height));
}
.learning-reference-focus {
  position: absolute;
  z-index: 3;
  top: var(--original-top);
  right: 0;
  left: 0;
  height: var(--entry-height);
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 8px 13px;
  background: #f7f7f8;
}
.learning-reference-focus .learning-focus-card {
  width: 100%;
  height: 100%;
  margin: 0;
  border: 0;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgb(31 45 61 / 4%);
}
.learning-reference-focus .week-report-card {
  height: 100%;
  min-height: 0;
  padding: 12px;
  gap: 10px;
  background: #fffaf7;
}
.learning-reference-focus .report-card-icon { width: 39px; height: 39px; border-radius: 12px; }
.learning-reference-focus .report-card-icon .ui-icon { width: 22px; height: 22px; }
.learning-reference-focus .report-card-copy { gap: 2px; }
.learning-reference-focus .report-card-copy small { font-size: 10px; }
.learning-reference-focus .report-card-more { align-self: flex-start; margin-top: 8px; font-size: 9px; }
.today-report-main { display: flex; align-items: baseline; gap: 7px; }
.today-report-main em { color: var(--regular); font-size: 10px; font-style: normal; }
.today-report-main strong { font-size: 21px; line-height: 24px; }
.today-report-main strong i { margin-left: 2px; font-size: 9px; font-style: normal; font-weight: 500; }
.today-report-meta { color: var(--muted); font-size: 9px; }
.today-report-entry .week-report-card:active {
  background: #fff5ef;
}
.today-watch-card { width: 100%; height: 100%; min-height: 0; display: grid; grid-template-rows: 28px minmax(0, 1fr); padding: 9px 14px 8px; text-align: left; }
.today-watch-card:active { background: #fffaf7; }
.today-watch-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 6px; border-bottom: 1px solid var(--divider); }
.today-watch-title { display: inline-flex; align-items: center; gap: 6px; }
.today-watch-title .ui-icon { width: 14px; height: 14px; color: var(--orange); }
.today-watch-title img { width: 15px; height: 15px; display: block; flex: 0 0 auto; object-fit: contain; }
.today-watch-title strong { font-size: 13px; }
.today-watch-report-link { display: inline-flex; align-items: center; gap: 1px; color: var(--orange-dark); font-size: 11px; }
.today-watch-report-link .ui-icon { width: 14px; height: 14px; }
.today-watch-stats { min-height: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: stretch; padding-top: 6px; }
.today-watch-stats > span { min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; border-right: 1px solid var(--divider); }
.today-watch-stats > span:last-child { border-right: 0; }
.today-watch-stats b, .today-watch-stats small { display: block; }
.today-watch-stats b { overflow: hidden; color: var(--text); font-size: 12px; font-weight: 600; line-height: 16px; text-overflow: ellipsis; white-space: nowrap; }
.today-watch-stats small { margin-top: 2px; color: var(--muted); font-size: 9px; line-height: 12px; white-space: nowrap; }
.course-report-link {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 15px;
  align-items: center;
  gap: 9px;
  padding: 7px 14px;
  border-top: 1px solid var(--divider);
  text-align: left;
}
.course-report-link:active { background: #fff8f5; }
.course-report-link-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid #ffdcca;
  border-radius: 10px;
  background: #fff3ed;
  color: var(--orange);
}
.course-report-link-icon .ui-icon { width: 27px; height: 27px; }
.course-report-link-icon svg { stroke-width: 1.8; }
.course-report-link-copy { min-width: 0; display: grid; gap: 2px; }
.course-report-link-copy strong { font-size: 13px; }
.course-report-link-copy small { overflow: hidden; color: var(--muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.course-report-link-more { width: 15px; height: 15px; color: var(--muted); }

.report-screen { background: var(--page); }
.report-nav { height: 50px; display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; padding: 0 6px; border-bottom: 1px solid var(--divider); background: #fff; }
.report-nav > button:first-child { width: 40px; height: 40px; display: grid; place-items: center; }
.report-nav > button:first-child .ui-icon { width: 25px; height: 25px; }
.report-nav h1 { margin: 0; text-align: center; font-size: 17px; font-weight: 600; }
.nav-spacer { width: 40px; height: 40px; }
.report-share-button { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; color: #333; }
.report-share-button:active { background: var(--orange-soft); color: var(--orange-dark); }
.report-share-button img { width: 24px; height: 24px; display: block; object-fit: contain; }
.share-action { color: var(--orange-dark); font-size: 11px; }
.report-scroll { padding: 14px 14px 28px; }
.report-page-title { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.report-page-title span { font-size: 13px; font-weight: 600; }
.report-page-title small { color: var(--muted); font-size: 10px; }
.report-page-title.light { margin-bottom: 10px; }
.report-page-title.light span, .report-page-title.light small { color: rgb(255 255 255 / 90%); }
.metric-guide-actions { display: flex; align-items: center; gap: 8px; }
.metric-guide-actions > small { padding-right: 8px; border-right: 1px solid rgb(255 255 255 / 28%); }
.metric-guide-actions > button { display: inline-flex; align-items: center; gap: 3px; color: #fff; font-size: 10px; }
.metric-guide-actions .ui-icon { width: 13px; height: 13px; }
.period-selector { width: 154px; height: 31px; display: grid; grid-template-columns: 1fr 1fr; margin: 0 auto 12px; padding: 3px; border-radius: 999px; background: #ececef; }
.period-selector button { border-radius: 999px; color: var(--muted); font-size: 11px; }
.period-selector button.is-active { background: #fff; color: var(--orange-dark); font-weight: 600; box-shadow: 0 1px 4px rgb(0 0 0 / 7%); }
.granularity-tabs { height: 37px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 3px; margin-bottom: 10px; padding: 3px; border-radius: 999px; background: rgb(255 255 255 / 18%); }
.granularity-tabs button { border-radius: 999px; color: rgb(255 255 255 / 76%); font-size: 11px; }
.granularity-tabs button.is-active { background: #fff; color: var(--orange-dark); font-weight: 600; box-shadow: 0 2px 8px rgb(120 38 10 / 15%); }
.week-navigator { min-height: 50px; display: grid; grid-template-columns: 38px minmax(0, 1fr) 38px; align-items: center; margin-bottom: 12px; padding: 4px; border: 1px solid #eaebed; border-radius: 10px; background: #fff; }
.week-step { width: 36px; height: 36px; display: grid; place-items: center; color: #616871; }
.week-step .ui-icon { width: 18px; height: 18px; }
.week-step.next .ui-icon { width: 16px; height: 16px; }
.week-step:disabled { opacity: .25; }
.week-current { min-width: 0; display: grid; gap: 2px; justify-items: center; padding: 4px 8px; }
.week-current strong { overflow: hidden; max-width: 100%; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.week-current span { color: var(--orange-dark); font-size: 9px; }
.week-navigator.is-light { border-color: rgb(255 255 255 / 22%); background: rgb(255 255 255 / 12%); }
.week-navigator.is-light .week-step, .week-navigator.is-light .week-current strong { color: #fff; }
.week-navigator.is-light .week-current span { color: rgb(255 255 255 / 72%); }
.report-period-nav { margin-bottom: 10px; }
.period-switcher { height: 46px; display: grid; grid-template-columns: 42px minmax(0, 1fr) 42px; align-items: center; margin-bottom: 10px; }
.period-arrow { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: rgb(255 255 255 / 16%); color: #fff; }
.period-arrow.next { justify-self: end; }
.period-arrow .ui-icon { width: 17px; height: 17px; }
.period-arrow:disabled { color: rgb(255 255 255 / 30%); background: rgb(255 255 255 / 8%); cursor: default; }
.period-date-button { min-width: 0; display: flex; align-items: center; justify-content: center; gap: 5px; padding: 6px; color: #fff; }
.period-date-button strong { overflow: hidden; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.period-date-button .period-down { width: 14px; height: 14px; transform: rotate(90deg); }
.total-period-label { min-height: 46px; display: grid; place-content: center; gap: 2px; margin-bottom: 10px; text-align: center; }
.total-period-label strong { font-size: 14px; }
.total-period-label small { color: rgb(255 255 255 / 72%); font-size: 9px; }
.week-sheet-mask[hidden] { display: none; }
.week-sheet-mask { position: absolute; inset: 0; z-index: 20; display: flex; align-items: flex-end; background: rgb(20 24 28 / 42%); }
.week-sheet { width: 100%; max-height: 78%; overflow-y: auto; padding: 18px 16px calc(18px + env(safe-area-inset-bottom)); border-radius: 18px 18px 0 0; background: #fff; box-shadow: 0 -10px 36px rgb(31 45 61 / 16%); }
.week-sheet header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.week-sheet header strong { font-size: 16px; }
.week-sheet header button { padding: 6px; color: var(--muted); font-size: 11px; }
.metric-guide-sheet { width: 100%; overflow: hidden; padding: 0 16px calc(18px + env(safe-area-inset-bottom)); border-radius: 20px 20px 0 0; background: #fff; box-shadow: 0 -10px 36px rgb(31 45 61 / 16%); }
.metric-guide-sheet > header { display: flex; align-items: center; justify-content: space-between; padding: 8px 0 12px; border-bottom: 1px solid var(--divider); }
.metric-guide-sheet > header > div { display: grid; gap: 3px; }
.metric-guide-sheet > header strong { font-size: 17px; }
.metric-guide-sheet > header small { color: var(--muted); font-size: 10px; }
.metric-guide-sheet > header button { width: 32px; height: 32px; border-radius: 50%; background: #f5f5f6; color: var(--regular); font-size: 24px; line-height: 30px; }
.metric-guide-list article { padding: 11px 0; border-bottom: 1px solid var(--divider); }
.metric-guide-list strong { display: block; font-size: 12px; }
.metric-guide-list p { margin: 4px 0 0; color: var(--muted); font-size: 10px; line-height: 16px; }
.metric-guide-note { margin: 12px 0 0; padding: 10px 11px; border-radius: 8px; background: var(--orange-pale); color: var(--orange-dark); font-size: 10px; line-height: 16px; }
.period-calendar-sheet { width: 100%; max-height: 82%; overflow: hidden; border-radius: 20px 20px 0 0; background: #fff; box-shadow: 0 -10px 36px rgb(31 45 61 / 16%); }
.period-sheet-handle { width: 42px; height: 5px; display: block; margin: 12px auto 5px; border-radius: 999px; background: #dedee1; }
.period-picker-header { height: 56px; display: grid; grid-template-columns: 38px 1fr 38px; align-items: center; gap: 8px; padding: 0 16px; }
.period-picker-header strong { font-size: 16px; text-align: center; }
.period-picker-header > button { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: #f7f7f8; }
.period-picker-header > button:last-child { justify-self: end; }
.period-picker-header > button:disabled { color: #d0d0d3; }
.period-picker-header .ui-icon { width: 18px; height: 18px; }
.period-calendar-weekdays { display: grid; grid-template-columns: repeat(7, 1fr); padding: 8px 12px 9px; color: var(--muted); font-size: 11px; text-align: center; }
.period-calendar-grid { display: grid; grid-template-columns: repeat(7, 1fr); row-gap: 6px; padding: 0 10px 16px; }
.period-calendar-grid, .period-month-grid { touch-action: pan-y; transition: transform .18s ease, opacity .18s ease; }
.period-calendar-sheet.is-swiping .period-calendar-grid, .period-calendar-sheet.is-swiping .period-month-grid { transition: none; }
.period-calendar-placeholder { height: 38px; }
.period-calendar-day { height: 38px; padding: 0 2px; }
.period-calendar-day span { height: 38px; display: grid; place-items: center; border-radius: 7px; background: #f7f7f8; font-size: 12px; font-weight: 600; }
.period-calendar-day.is-outside span, .period-calendar-day.is-disabled span { color: #c8c8cb; background: #fafafa; }
.period-calendar-day.is-selected span { background: var(--orange); color: #fff; }
.period-calendar-day.is-week-range span { border-radius: 0; background: #fff0e9; color: var(--text); }
.period-calendar-day.is-range-start span { border-radius: 8px 0 0 8px; background: var(--orange); color: #fff; }
.period-calendar-day.is-range-end span { border-radius: 0 8px 8px 0; background: var(--orange); color: #fff; }
.period-month-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; padding: 8px 16px 24px; }
.period-month-placeholder { height: 44px; }
.period-month-grid button { height: 44px; border-radius: 8px; background: #f7f7f8; font-size: 12px; font-weight: 600; }
.period-month-grid button.is-selected { background: var(--orange); color: #fff; }
.period-month-grid button:disabled { color: #c9c9cc; background: #fafafa; }
.period-calendar-sheet footer { display: flex; justify-content: flex-end; padding: 12px 16px calc(16px + env(safe-area-inset-bottom)); border-top: 1px solid var(--divider); }
.period-calendar-sheet footer button { min-width: 98px; height: 34px; display: inline-flex; align-items: center; justify-content: center; gap: 5px; padding: 0 13px; border: 1px solid #dedee1; border-radius: 999px; font-size: 11px; font-weight: 600; }
.period-calendar-sheet footer .ui-icon { width: 15px; height: 15px; }
.week-option { width: 100%; display: flex; align-items: center; justify-content: space-between; padding: 13px 12px; border-top: 1px solid var(--divider); text-align: left; }
.week-option span { display: grid; gap: 4px; }
.week-option strong { font-size: 12px; }
.week-option small { color: var(--muted); font-size: 9px; }
.week-option em { padding: 3px 6px; border-radius: 999px; background: #f1f2f4; color: var(--muted); font-size: 8px; font-style: normal; }
.week-option.is-active { border-radius: 8px; background: var(--orange-pale); }
.week-option.is-active em { background: var(--orange); color: #fff; }

.metric-hero { margin-bottom: 12px; padding: 20px 16px 14px; border-radius: 12px; color: #fff; }
.overview-hero { background: linear-gradient(128deg, #ff713d, #ff5a1f 52%, #f4481c); }
.metric-hero > p { margin: 0; color: rgb(255 255 255 / 82%); font-size: 11px; }
.metric-hero > h2 { margin: 4px 0 2px; font-size: 30px; line-height: 1.15; }
.metric-hero > span { color: rgb(255 255 255 / 78%); font-size: 10px; }
.overview-stats { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 18px; padding-top: 13px; border-top: 1px solid rgb(255 255 255 / 22%); }
.overview-stats div { text-align: center; border-right: 1px solid rgb(255 255 255 / 18%); }
.overview-stats div:last-child { border-right: 0; }
.overview-stats strong { display: block; font-size: 17px; }
.overview-stats small { color: rgb(255 255 255 / 75%); font-size: 9px; }

.report-card { margin-bottom: 12px; padding: 14px; border-radius: 10px; background: #fff; }
.section-title-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 13px; }
.section-title-row strong { font-size: 14px; }
.section-title-row small { color: var(--muted); font-size: 9px; }
.chart-bars { height: 108px; display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; align-items: end; padding-top: 4px; }
.chart-bars > div { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 5px; }
.chart-bars > div > span { width: 12px; height: 78px; display: flex; align-items: flex-end; overflow: hidden; border-radius: 7px; background: #f1f1f3; }
.chart-bars i { width: 100%; display: block; border-radius: 7px; background: linear-gradient(180deg, #ff8a56, var(--orange)); }
.chart-bars small { color: var(--muted); font-size: 9px; }
.chart-bars .is-future > span { border: 1px dashed #e4e5e8; background: transparent; }
.selected-trend-summary { min-height: 42px; display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; padding: 8px 10px; border-radius: 8px; background: var(--orange-pale); }
.selected-trend-summary span { color: var(--regular); font-size: 10px; }
.selected-trend-summary strong { color: var(--orange-dark); font-size: 16px; }
.interactive-bars { height: 130px; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 7px; align-items: end; padding: 6px 2px 0; }
.interactive-bars.is-month { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.trend-bar { height: 120px; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 6px; color: var(--muted); }
.trend-bar > span { position: relative; width: 15px; height: 92px; display: flex; align-items: flex-end; overflow: hidden; border-radius: 8px; background: #f0f1f3; }
.interactive-bars.is-month .trend-bar > span { width: 20px; }
.trend-bar i { width: 100%; min-height: 2px; display: block; border-radius: 8px; background: #ffc1a9; transition: height .18s ease; }
.trend-bar small { font-size: 9px; }
.trend-bar.is-active { color: var(--orange-dark); font-weight: 600; }
.trend-bar.is-active > span { box-shadow: 0 0 0 2px #ffe0d3; }
.trend-bar.is-active i { background: linear-gradient(180deg, #ff8d60, var(--orange)); }
.trend-bar.is-future > span { border: 1px dashed #e1e2e5; background: transparent; box-shadow: none; }
.trend-bar:disabled { cursor: default; }
.trend-caption { margin: 7px 0 0; color: var(--muted); font-size: 8px; text-align: center; }
.peer-period-trend { overflow: hidden; }
.period-chart-stage { position: relative; margin: 0 -14px; }
.period-chart-scroller { position: relative; z-index: 1; overflow-x: auto; overscroll-behavior-inline: contain; scroll-behavior: auto; scroll-snap-type: x mandatory; scrollbar-width: none; cursor: grab; touch-action: pan-x; -webkit-overflow-scrolling: touch; }
.period-chart-scroller.is-dragging { cursor: grabbing; scroll-snap-type: none; user-select: none; }
.period-chart-scroller::-webkit-scrollbar { display: none; }
.peer-period-bars { position: relative; z-index: 1; width: max-content; min-width: 100%; height: 154px; display: flex; align-items: flex-end; gap: 8px; padding: 24px calc(50% - 31px) 0; }
.peer-period-bars::after { content: ""; position: absolute; right: 0; bottom: 19px; left: 0; height: 1px; background: #ffc9b3; }
.peer-bar { position: relative; z-index: 1; width: 62px; height: 130px; display: flex; flex: 0 0 62px; flex-direction: column; align-items: center; justify-content: flex-end; gap: 6px; color: var(--muted); cursor: pointer; scroll-snap-align: center; }
.peer-bar > span { width: 19px; height: 94px; display: flex; align-items: flex-end; border-radius: 4px 4px 0 0; }
.peer-bar i { width: 100%; min-height: 0; display: block; border-radius: 4px 4px 0 0; background: #ffc0a7; transition: height .28s ease, background-color .2s ease; }
.peer-bar small { min-height: 13px; max-width: 64px; overflow: hidden; font-size: 8px; line-height: 13px; text-overflow: ellipsis; white-space: nowrap; }
.peer-bar.is-active { color: var(--orange-dark); font-weight: 600; }
.peer-bar.is-active i { background: var(--orange); }
.trend-grid-lines { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.trend-grid-lines i { position: absolute; right: 0; left: 0; border-top: 1px dashed #e4e4e7; }
.trend-grid-lines i:nth-child(1) { bottom: 47px; }
.trend-grid-lines i:nth-child(2) { bottom: 75px; }
.trend-grid-lines i:nth-child(3) { bottom: 103px; }
.trend-center-axis { position: absolute; top: 0; bottom: 19px; left: 50%; z-index: 4; width: 1px; pointer-events: none; transform: translateX(-50%); }
.trend-center-axis i { position: absolute; top: 23px; bottom: 0; left: 0; width: 1px; background: var(--orange); }
.trend-center-axis strong { position: absolute; top: 0; left: 50%; min-width: 45px; padding: 4px 7px; border-radius: 5px; background: var(--orange); color: #fff; font-size: 8px; line-height: 12px; text-align: center; white-space: nowrap; box-shadow: 0 3px 8px rgb(255 90 31 / 18%); transform: translateX(-50%); }
.trend-center-axis strong::after { content: ""; position: absolute; bottom: -4px; left: 50%; border-width: 4px 4px 0; border-style: solid; border-color: var(--orange) transparent transparent; transform: translateX(-50%); }
.total-learning-trend { overflow: hidden; }
.total-trend-chart { margin: 0 -14px; }
.total-trend-chart svg { width: 100%; height: 140px; display: block; overflow: visible; }
.total-trend-grid { stroke: #e4e4e7; stroke-width: 1; stroke-dasharray: 3 4; }
.total-trend-area { fill: url(#totalTrendArea); stroke: none; }
.total-trend-line { fill: none; stroke: var(--orange); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.total-trend-end { fill: var(--orange); stroke: none; }
.total-trend-value rect { fill: var(--orange); stroke: none; filter: drop-shadow(0 3px 5px rgb(255 90 31 / 22%)); }
.total-trend-value text { fill: #fff; stroke: none; font-size: 9px; text-anchor: middle; }
.total-trend-axis { display: flex; justify-content: space-between; margin-top: -7px; padding: 0 2px; color: var(--muted); font-size: 8px; line-height: 13px; }
.total-trend-axis span:last-child { color: var(--orange-dark); font-weight: 600; }

/* 课程报告分享图 */
.report-share-layer { position: absolute; inset: 0; z-index: 80; display: flex; flex-direction: column; background: var(--page); animation: share-layer-in .22s ease both; }
.report-share-layer[hidden] { display: none; }
.share-preview-nav { height: 50px; display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; padding: 0 6px; border-bottom: 1px solid var(--divider); background: #fff; }
.share-preview-nav > button { width: 40px; height: 40px; display: grid; place-items: center; }
.share-preview-nav > button .ui-icon { width: 25px; height: 25px; }
.share-preview-nav > strong { font-size: 17px; text-align: center; }
.share-preview-scroll { flex: 1; overflow-y: auto; padding: 18px 46px 22px; background: #eef0f3; scrollbar-width: none; }
.share-preview-scroll::-webkit-scrollbar { display: none; }
.share-poster-frame { width: 100%; margin: 0; overflow: hidden; border: 1px solid #e1e1e4; border-radius: 11px; background: #fff; box-shadow: 0 12px 28px rgb(31 38 48 / 13%); animation: share-poster-in .28s ease both; }
.share-poster-frame[hidden], .share-poster-loading[hidden] { display: none; }
.share-poster-frame img { width: 100%; height: auto; display: block; }
.share-poster-loading { min-height: 510px; display: flex; align-items: center; justify-content: center; flex-direction: column; color: var(--regular); }
.share-loading-mark { width: 48px; height: 48px; display: grid; place-items: center; margin-bottom: 14px; border-radius: 14px; background: var(--orange); color: #fff; animation: share-loading-pulse 1s ease-in-out infinite; }
.share-loading-mark .ui-icon { width: 27px; height: 27px; }
.share-poster-loading strong { font-size: 14px; }
.share-poster-loading small { margin-top: 6px; color: var(--muted); font-size: 10px; }
.share-preview-actions { min-height: 126px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; padding: 14px 7px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--divider); border-radius: 18px 18px 0 0; background: #fff; }
.share-preview-actions button { min-width: 0; display: flex; align-items: center; justify-content: flex-start; flex-direction: column; gap: 8px; padding: 0 2px; border-radius: 8px; background: transparent; color: var(--main); font-size: 12px; line-height: 17px; white-space: nowrap; }
.share-channel-icon { width: 51px; height: 51px; display: grid; flex: 0 0 51px; place-items: center; border-radius: 50%; color: #fff; }
.share-channel-icon .ui-icon { width: 29px; height: 29px; }
.share-channel-icon img { width: 31px; height: 31px; display: block; object-fit: contain; }
.share-channel-icon.is-wechat { background: #07c160; }
.share-channel-icon.is-moments { background: #68ca3d; }
.share-channel-icon.is-xiaohongshu { background: #ff2442; }
.share-channel-icon.is-local { background: #35a8d8; }
.share-preview-actions button:disabled { opacity: .42; cursor: default; }
.report-share-toast { position: absolute; right: 50%; bottom: 144px; z-index: 95; max-width: 280px; padding: 9px 14px; border-radius: 999px; background: rgb(34 34 34 / 88%); color: #fff; font-size: 11px; text-align: center; white-space: nowrap; transform: translateX(50%); animation: share-toast-in .18s ease both; }
.report-share-toast[hidden] { display: none; }
@keyframes share-layer-in { from { opacity: .4; transform: translateX(14px); } to { opacity: 1; transform: translateX(0); } }
@keyframes share-poster-in { from { opacity: 0; transform: translateY(8px) scale(.985); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes share-loading-pulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(.94); opacity: .72; } }
@keyframes share-toast-in { from { opacity: 0; transform: translate(50%, 6px); } to { opacity: 1; transform: translate(50%, 0); } }

.report-course-progress article, .report-course-item { display: grid; grid-template-columns: 72px minmax(0, 1fr) 30px; align-items: center; gap: 9px; padding: 10px 0; border-top: 1px solid var(--divider); }
.report-course-progress article:nth-of-type(1) { border-top: 0; }
.report-course-progress .course-cover, .report-course-item .course-cover { width: 57px; height: 39px; }
.report-course-progress .course-cover span, .report-course-item .course-cover span { font-size: 11px; }
.course-cover-image { width: 72px; height: 41px; display: block; border-radius: 6px; object-fit: cover; }
.report-course-progress article > div:nth-child(2), .report-course-item > div:nth-child(2) { min-width: 0; }
.report-course-progress article strong, .report-course-item strong { display: block; overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.report-course-progress article p, .report-course-item p { margin: 4px 0 6px; color: var(--muted); font-size: 9px; }
.report-course-progress article > em, .report-course-item > em { color: var(--orange-dark); font-size: 10px; font-style: normal; text-align: right; }
.line-progress { height: 4px; display: block; overflow: hidden; border-radius: 4px; background: #eeeef0; }
.line-progress i { height: 100%; display: block; border-radius: 4px; background: var(--orange); }

.next-action { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 13px; border: 1px solid #ffd8c8; border-radius: 10px; background: var(--orange-pale); }
.next-action > div { min-width: 0; display: flex; align-items: center; gap: 8px; }
.next-action > div > span { width: 32px; height: 32px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 50%; background: #fff; color: var(--orange); }
.next-action p { min-width: 0; margin: 0; }
.next-action small { display: block; color: var(--orange-dark); font-size: 9px; }
.next-action strong { display: block; overflow: hidden; margin-top: 2px; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.next-action > button { flex: 0 0 auto; padding: 8px 11px; border-radius: 999px; background: var(--orange); color: #fff; font-size: 9px; font-weight: 600; }

.option-b .report-scroll { padding: 0 14px 28px; }
.action-report-head { margin: 0 -14px 12px; padding: 14px 14px 18px; border-radius: 0 0 18px 18px; background: linear-gradient(145deg, #ff7640, #f24c18); color: #fff; }
.practice-report-head { background: var(--orange); }
.action-report-head .period-selector { background: rgb(255 255 255 / 18%); }
.action-report-head .period-selector button { color: rgb(255 255 255 / 72%); }
.action-report-head .period-selector button.is-active { color: var(--orange-dark); }
.streak-layout { display: flex; align-items: center; justify-content: space-between; padding: 5px 12px 2px; }
.streak-copy small { color: rgb(255 255 255 / 75%); font-size: 10px; }
.streak-copy strong { display: block; margin: 2px 0; font-size: 30px; }
.streak-copy p { margin: 0; color: rgb(255 255 255 / 72%); font-size: 9px; }
.progress-ring { width: 76px; height: 76px; display: grid; place-content: center; border: 8px solid rgb(255 255 255 / 24%); border-top-color: #fff; border-right-color: #fff; border-radius: 50%; text-align: center; transform: rotate(8deg); }
.progress-ring span, .progress-ring small { transform: rotate(-8deg); }
.progress-ring span { font-size: 17px; font-weight: 700; }
.progress-ring small { color: rgb(255 255 255 / 72%); font-size: 8px; }
.compact-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 15px; }
.compact-stats.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.compact-stats.four { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.compact-stats.six { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.compact-stats > div { display: flex; align-items: center; gap: 8px; padding: 9px; border-radius: 8px; background: rgb(255 255 255 / 14%); }
.compact-stats.three > div { gap: 5px; padding: 9px 7px; }
.compact-stats.four > div { min-width: 0; gap: 4px; padding: 9px 5px; }
.compact-stats.four > div > span { min-width: 0; }
.compact-stats.four .ui-icon { width: 17px; height: 17px; flex: 0 0 auto; }
.compact-stats.four strong { overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.compact-stats.four small { font-size: 8px; white-space: nowrap; }
.compact-stats.six > div { min-width: 0; gap: 5px; padding: 9px 7px; }
.compact-stats.six .ui-icon { width: 17px; height: 17px; }
.compact-stats.six strong { font-size: 11px; white-space: nowrap; }
.compact-stats.six small { font-size: 8px; white-space: nowrap; }
.compact-stats .ui-icon { width: 20px; height: 20px; }
.compact-stats strong, .compact-stats small { display: block; }
.compact-stats strong { font-size: 12px; }
.compact-stats small { color: rgb(255 255 255 / 72%); font-size: 8px; }
.streak-summary { padding: 5px 8px 1px; }
.streak-summary small { color: rgb(255 255 255 / 75%); font-size: 10px; }
.streak-summary strong { display: block; margin: 2px 0; font-size: 30px; }
.streak-summary strong i { margin-left: 4px; font-size: 12px; font-style: normal; font-weight: 500; }
.streak-summary p { margin: 0; color: rgb(255 255 255 / 72%); font-size: 9px; }
.period-content-enter { animation: period-content-in .28s ease both; }
.period-content-enter.from-left { --period-shift: -10px; }
.period-content-enter.from-right { --period-shift: 10px; }
@keyframes period-content-in { from { opacity: .55; transform: translateX(var(--period-shift, 8px)); } to { opacity: 1; transform: translateX(0); } }
.card-heading { display: flex; align-items: flex-start; justify-content: space-between; }
.card-heading > div { display: flex; align-items: center; gap: 6px; }
.card-heading strong { font-size: 12px; }
.card-heading > small { color: var(--warning); font-size: 8px; }
.warning-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--warning); }
.week-course-activity article { display: grid; grid-template-columns: 57px minmax(0, 1fr) 42px; align-items: center; gap: 9px; padding: 10px 0; border-top: 1px solid var(--divider); }
.week-course-activity article:nth-of-type(1) { border-top: 0; }
.week-course-activity .course-cover { width: 57px; height: 39px; }
.week-course-activity .course-cover span { font-size: 11px; }
.week-course-activity article > div:nth-child(2) { min-width: 0; }
.week-course-activity article strong { display: block; overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.week-course-activity article p { margin: 4px 0 0; color: var(--muted); font-size: 9px; }
.week-course-activity article em { color: var(--orange-dark); font-size: 9px; font-style: normal; text-align: right; }
.learning-record-row { min-height: 62px; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--divider); }
.learning-record-row:nth-of-type(1) { border-top: 0; }
.record-play { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: var(--orange-soft); color: var(--orange); }
.record-play .ui-icon { width: 17px; height: 17px; }
.learning-record-row > div { min-width: 0; }
.learning-record-row strong { display: block; overflow: hidden; min-width: 0; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.record-type { flex: 0 0 auto; padding: 2px 5px; border-radius: 3px; font-size: 8px; font-weight: 500; line-height: 12px; }
.record-type.is-live { background: #fff0ea; color: var(--orange-dark); }
.record-type.is-replay { background: #eef5ff; color: #4d79bd; }
.record-type.is-recorded { background: #f1f7ef; color: #54884a; }
.learning-record-row p { display: flex; align-items: center; gap: 5px; overflow: hidden; margin: 5px 0 0; color: var(--muted); font-size: 10px; white-space: nowrap; }
.learning-record-row p > span:last-child { overflow: hidden; text-overflow: ellipsis; }
.learning-record-row > em { color: var(--muted); font-size: 10px; font-style: normal; text-align: right; white-space: nowrap; }
.learning-records-more { width: 100%; height: 38px; margin-top: 8px; border-radius: 999px; background: #f7f7f8; font-size: 11px; font-weight: 600; }
.learning-records-sheet { width: 100%; max-height: 76%; display: flex; flex-direction: column; overflow: hidden; border-radius: 18px 18px 0 0; background: #fff; box-shadow: 0 -10px 36px rgb(31 45 61 / 16%); }
.learning-records-sheet > header { display: flex; align-items: flex-start; justify-content: space-between; padding: 18px 16px 12px; border-bottom: 1px solid var(--divider); }
.learning-records-sheet > header div { display: grid; gap: 5px; }
.learning-records-sheet > header small { color: var(--muted); font-size: 10px; }
.learning-records-sheet > header strong { font-size: 17px; }
.learning-records-sheet > header button { width: 32px; height: 32px; border-radius: 50%; background: #f5f5f6; color: var(--regular); font-size: 24px; line-height: 30px; }
.learning-records-sheet-list { overflow-y: auto; padding: 0 16px calc(18px + env(safe-area-inset-bottom)); }
.learning-record-day h3 { margin: 16px 0 2px; color: var(--regular); font-size: 11px; font-weight: 500; }
.learning-records-sheet .learning-record-row { min-height: 66px; }
.detail-empty { padding: 22px 0 16px; color: var(--muted); font-size: 10px; text-align: center; }
.snapshot-card .section-title-row { padding-bottom: 2px; }
.history-return { width: 100%; height: 42px; border: 1px solid var(--orange-border); border-radius: 10px; background: #fff; color: var(--orange-dark); font-size: 11px; font-weight: 600; }

.course-report-header { margin: -14px -14px 0; padding: 14px 14px 12px; background: #fff; }
.scope-selector { width: 100%; min-height: 52px; display: flex; align-items: center; justify-content: space-between; padding: 8px 12px; border: 1px solid #eee; border-radius: 8px; text-align: left; }
.scope-selector small, .scope-selector strong { display: block; }
.scope-selector small { color: var(--muted); font-size: 9px; }
.scope-selector strong { max-width: 270px; overflow: hidden; margin-top: 2px; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.scope-selector .ui-icon { width: 17px; height: 17px; color: var(--muted); }
.course-total-card { margin: 12px 0; padding: 16px; border-radius: 10px; background: #fff; }
.course-total-card > div:first-child small { display: block; color: var(--muted); font-size: 10px; }
.course-total-card > div:first-child strong { display: block; margin-top: 2px; color: var(--orange-dark); font-size: 27px; }
.course-total-grid { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--divider); }
.course-total-grid span { text-align: center; border-right: 1px solid var(--divider); }
.course-total-grid span:last-child { border-right: 0; }
.course-total-grid b { display: block; font-size: 15px; }
.course-total-grid small { color: var(--muted); font-size: 8px; }
.recent-timeline > div:not(.section-title-row) { position: relative; display: flex; gap: 10px; padding: 7px 0 9px; }
.recent-timeline > div:not(.section-title-row) > i { width: 8px; height: 8px; margin-top: 4px; border: 2px solid var(--orange); border-radius: 50%; }
.recent-timeline > div:not(.section-title-row) > span { border-bottom: 1px solid var(--divider); padding-bottom: 8px; flex: 1; }
.recent-timeline > div:last-child > span { border-bottom: 0; }
.recent-timeline strong, .recent-timeline small { display: block; }
.recent-timeline strong { font-size: 11px; }
.recent-timeline small { margin-top: 3px; color: var(--muted); font-size: 8px; }

/* 一二期学习报告串接 */
.learning-reference-bank-hotspot { position: absolute; right: 50%; bottom: 0; z-index: 8; width: 25%; height: var(--bottom-nav-height); }
.report-type-tabs { height: 100%; display: flex; align-items: stretch; justify-content: center; gap: 34px; }
.report-type-tabs button { position: relative; color: #777; font-size: 15px; font-weight: 500; }
.report-type-tabs button.is-active { color: var(--text); font-weight: 600; }
.report-type-practice .report-type-tabs button.is-active { font-weight: 500; }
.report-type-tabs button.is-active::after { content: ""; position: absolute; bottom: 5px; left: 50%; width: 26px; height: 3px; border-radius: 3px; background: var(--orange); transform: translateX(-50%); }

/* 题库首页入口 */
.question-home-screen { background: var(--page); }
.question-home-nav { height: 50px; display: grid; grid-template-columns: 42px 1fr 42px; align-items: center; padding: 0 8px; border-bottom: 1px solid var(--divider); background: #fff; }
.question-home-nav h1 { margin: 0; font-size: 18px; text-align: center; }
.question-home-nav button { width: 38px; height: 38px; display: grid; place-items: center; }
.question-home-nav .ui-icon { width: 21px; height: 21px; }
.question-home-scroll { flex: 1; overflow-y: auto; padding: 10px 0 82px; background: var(--page); scrollbar-width: none; }
.question-home-scroll::-webkit-scrollbar { display: none; }
.question-daily-card { margin: 0 10px 12px; padding-bottom: 1px; border-radius: 8px; background: #fff; }
.question-practice-summary { display: grid; grid-template-columns: 1fr 1px 1.25fr; gap: 20px; align-items: center; padding: 20px 18px 16px; }
.question-practice-summary > i { height: 70px; background: var(--divider); }
.question-streak { text-align: center; }
.question-streak > strong { display: block; color: var(--orange); font-size: 48px; font-weight: 500; line-height: 1; }
.question-streak small { display: flex; align-items: center; justify-content: center; gap: 4px; margin-top: 8px; color: #777; font-size: 12px; white-space: nowrap; }
.question-streak .ui-icon { width: 14px; height: 14px; color: var(--orange); }
.question-summary-data p { margin: 5px 0; color: #777; font-size: 12px; }
.question-summary-data p strong { color: var(--orange); font-size: 17px; }
.question-daily-button { position: relative; width: calc(100% - 28px); height: 48px; margin: 0 14px 14px; border-radius: 7px; background: var(--orange); color: #fff; font-size: 17px; font-weight: 600; }
.question-daily-button em { position: absolute; top: -10px; right: 12px; padding: 3px 7px; border-radius: 5px; background: #ff7960; font-size: 10px; font-style: normal; }
.question-daily-button span { margin-right: 6px; }
.question-report-entry { width: calc(100% - 20px); min-height: 110px; display: block; margin: 0 10px 12px; padding: 13px 14px 12px; border-radius: 8px; background: #fff; text-align: left; }
.question-report-entry:active { background: #fafafa; }
.question-report-entry-head { display: flex; align-items: center; justify-content: space-between; padding-bottom: 11px; border-bottom: 1px solid var(--divider); }
.question-report-entry-head > strong { display: inline-flex; align-items: center; gap: 5px; color: var(--text); font-size: 15px; font-weight: 600; }
.question-report-entry-head > strong img { width: 18px; height: 18px; display: block; object-fit: contain; }
.question-report-entry-head > span { display: inline-flex; align-items: center; gap: 1px; color: var(--orange-dark); font-size: 11px; font-weight: 400; }
.question-report-entry-head .ui-icon { width: 14px; height: 14px; }
.question-report-today-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); padding-top: 11px; }
.question-report-today-stats > span { min-width: 0; text-align: center; border-right: 1px solid var(--divider); }
.question-report-today-stats > span:last-child { border-right: 0; }
.question-report-today-stats b, .question-report-today-stats small { display: block; }
.question-report-today-stats b { overflow: hidden; color: var(--text); font-size: 13px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.question-report-today-stats small { margin-top: 4px; color: var(--muted); font-size: 9px; }
.question-vip-section { margin: 0 10px 12px; overflow: hidden; border-radius: 8px; background: #fff; }
.question-vip-card { position: relative; min-height: 126px; overflow: hidden; padding: 18px; border-bottom: 1px solid #ffe2d4; background: var(--orange-soft); }
.question-vip-copy { position: relative; z-index: 1; }
.question-vip-copy > span { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 8px; background: #9f7135; color: #fff; font-size: 14px; font-weight: 700; }
.question-vip-copy > strong { display: block; margin: -24px 0 7px 48px; font-size: 17px; }
.question-vip-copy p { margin: 4px 0; color: #8b4a2e; font-size: 12px; }
.question-vip-copy button { position: absolute; top: 54px; right: -2px; padding: 8px 13px; border-radius: 18px; background: var(--orange); color: #fff; font-size: 11px; }
.question-shortcuts { display: grid; grid-template-columns: repeat(3, 1fr); padding: 13px 6px; background: #fff; }
.question-shortcuts button { display: grid; place-items: center; gap: 6px; color: #333; font-size: 11px; }
.question-shortcuts button + button { border-left: 1px solid var(--divider); }
.question-shortcuts .ui-icon { width: 24px; height: 24px; color: var(--orange); }
.question-exam-section { margin-top: 0; padding: 17px 16px 20px; background: #fff; }
.question-exam-section > header { display: flex; align-items: center; gap: 8px; }
.question-exam-section > header i { width: 4px; height: 19px; background: var(--orange); }
.question-exam-section h2 { margin: 0; font-size: 17px; }
.question-product-item { position: relative; min-height: 112px; display: grid; grid-template-columns: 78px 1fr; gap: 11px; padding: 15px 0; border-bottom: 1px solid var(--divider); }
.question-product-cover { display: grid; place-items: center; border-radius: 6px; background: #ff7a61; color: #fff; font-size: 16px; font-weight: 700; text-align: center; }
.question-product-item.is-beige .question-product-cover { background: #f0b476; }
.question-product-item.is-blue .question-product-cover { background: #6f98ed; }
.question-product-copy h3 { margin: 0 0 7px; font-size: 14px; }
.question-product-copy span { display: inline-block; margin: 0 3px 4px 0; padding: 2px 4px; border: 1px solid var(--orange-border); border-radius: 3px; color: #e86a2c; font-size: 9px; }
.question-product-copy p { margin: 7px 0 0; color: var(--muted); font-size: 10px; }
.question-product-item > button { position: absolute; right: 0; bottom: 15px; padding: 7px 11px; border-radius: 16px; background: var(--orange); color: #fff; font-size: 10px; }
.question-service { bottom: 76px; }

/* 刷题报告，复用一期报告框架 */
.practice-core-metrics { display: grid; grid-template-columns: 1.35fr 1fr; grid-auto-rows: 54px; gap: 7px; }
.practice-core-metrics article { min-height: 0; padding: 8px 10px; border-radius: 9px; background: rgb(255 255 255 / 15%); }
.practice-core-metrics .practice-volume { grid-row: span 3; padding-top: 14px; }
.practice-core-metrics small { display: block; color: rgb(255 255 255 / 80%); font-size: 9px; }
.practice-core-metrics strong { display: block; margin-top: 3px; font-size: 19px; line-height: 1.15; }
.practice-core-metrics .practice-volume strong { margin-top: 10px; font-size: 38px; }
.practice-core-metrics strong i { margin-left: 3px; font-size: 9px; font-style: normal; }
.practice-core-metrics .practice-duration { font-size: 14px; }
.practice-core-metrics p { margin: 10px 0 0; color: rgb(255 255 255 / 76%); font-size: 9px; }
.practice-accuracy-pair { display: grid; grid-template-columns: 1fr 20px 1fr; align-items: center; margin-top: 9px; padding: 9px 11px; border-radius: 9px; background: rgb(255 255 255 / 15%); }
.practice-accuracy-pair div { display: flex; align-items: baseline; gap: 6px; }
.practice-accuracy-pair small { color: rgb(255 255 255 / 76%); font-size: 9px; }
.practice-accuracy-pair strong { font-size: 16px; }
.practice-accuracy-pair > i { text-align: center; font-style: normal; opacity: .75; }
.practice-accuracy-pair em { grid-column: 1 / -1; margin-top: 3px; color: #fff1c6; font-size: 9px; font-style: normal; }
.practice-trend-card { min-height: 218px; }
.practice-chart-stage { position: relative; height: 162px; }
.practice-grid-lines { position: absolute; inset: 13px 0 28px; display: flex; flex-direction: column; justify-content: space-around; }
.practice-grid-lines i { border-top: 1px dashed #ddd; }
.practice-bars { position: absolute; inset: 7px 0 0; display: flex; align-items: flex-end; gap: 7px; }
.practice-bar { position: relative; height: 100%; display: flex; flex: 1; flex-direction: column; align-items: center; justify-content: flex-end; }
.practice-bar > span { width: 18px; height: 122px; display: flex; align-items: flex-end; }
.practice-bar > span i { width: 100%; min-height: 7px; border-radius: 4px 4px 0 0; background: #ffb69a; }
.practice-bar small { margin-top: 6px; color: var(--muted); font-size: 8px; }
.practice-bar.is-active > span i { background: var(--orange); }
.practice-bar.is-active small { color: var(--orange-dark); font-weight: 600; }
.practice-bar b { position: absolute; top: 0; min-width: 34px; padding: 3px 5px; border-radius: 5px; background: var(--orange); color: #fff; font-size: 8px; text-align: center; }
.practice-accuracy-bars { display: grid; gap: 13px; }
.practice-accuracy-bars > div { display: grid; grid-template-columns: 68px 1fr 34px; align-items: center; gap: 7px; }
.practice-accuracy-bars span { color: #777; font-size: 9px; }
.practice-accuracy-bars i { height: 7px; overflow: hidden; border-radius: 5px; background: #f2f2f3; }
.practice-accuracy-bars b { display: block; height: 100%; border-radius: 5px; background: #ffb49a; }
.practice-accuracy-bars > div + div b { background: var(--orange); }
.practice-accuracy-bars strong { font-size: 10px; text-align: right; }
.practice-accuracy-card > p { margin: 12px 0 0; color: var(--muted); font-size: 9px; line-height: 1.55; }
.practice-record-card article { display: flex; align-items: flex-start; justify-content: space-between; gap: 9px; padding: 12px 0; border-top: 1px solid var(--divider); }
.practice-record-card article strong { display: block; font-size: 10px; }
.practice-record-card article p { margin: 5px 0 0; color: var(--muted); font-size: 9px; }
.practice-record-card article p span { margin-right: 6px; padding: 2px 4px; border-radius: 3px; background: var(--orange-soft); color: var(--orange-dark); }
.practice-record-card article em { color: var(--muted); font-size: 9px; font-style: normal; }
.practice-record-more { width: 100%; display: flex; align-items: center; justify-content: center; gap: 2px; padding-top: 11px; color: #777; font-size: 9px; }
.practice-record-more .ui-icon { width: 12px; height: 12px; }
.practice-report-head .compact-stats.three > div { height: 45px; gap: 4px; padding: 9px 5px; }
.practice-report-head .compact-stats.three .ui-icon { width: 17px; height: 17px; }
.practice-report-head .compact-stats.three strong { overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.practice-report-head .compact-stats.three small { font-size: 8px; white-space: nowrap; }
.compact-stats.practice-four { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.compact-stats.practice-four > div { min-width: 0; height: 45px; gap: 5px; padding: 9px 8px; }
.compact-stats.practice-four .ui-icon { width: 17px; height: 17px; }
.compact-stats.practice-four strong { overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.compact-stats.practice-four small { font-size: 8px; white-space: nowrap; }
.practice-trend-title { margin-bottom: 7px; }
.practice-trend-switch { display: flex; gap: 3px; padding: 2px; border-radius: 999px; background: #f2f2f4; }
.practice-trend-switch button { min-width: 49px; height: 23px; padding: 0 8px; border-radius: 999px; color: var(--muted); font-size: 9px; }
.practice-trend-switch button.is-active { background: #fff; color: var(--orange-dark); font-weight: 600; box-shadow: 0 1px 4px rgb(0 0 0 / 8%); }
.practice-chart-legend { display: flex; justify-content: flex-end; gap: 12px; margin-bottom: -4px; color: var(--muted); font-size: 8px; }
.practice-chart-legend span { display: inline-flex; align-items: center; gap: 4px; }
.practice-chart-legend i { width: 12px; height: 4px; border-radius: 2px; background: var(--orange); }
.practice-chart-legend span + span i { height: 2px; background: var(--green); }
.practice-peer-bars { position: relative; }
.practice-rate-segment { position: absolute; left: 50%; z-index: 4; height: 2px; border-radius: 2px; background: var(--green); transform-origin: left center; pointer-events: none; }
.practice-rate-point { position: absolute; left: 50%; z-index: 5; width: 7px; height: 7px; border: 2px solid #fff; border-radius: 50%; background: var(--green); text-decoration: none; pointer-events: none; transform: translate(-50%, 50%); box-shadow: 0 0 0 1px var(--green); }
.practice-center-axis i { top: 36px; }
.practice-center-axis strong { min-width: 104px; padding: 4px 9px; line-height: 12px; text-align: left; }
.practice-center-axis strong span { display: block; }
.practice-center-axis strong b { font-weight: 600; }
.practice-history-card > .section-title-row { margin-bottom: 2px; }
.practice-record-card .practice-history-row { display: block; padding: 13px 0; }
.practice-records-sheet .practice-history-row { display: block; padding: 14px 0; border-bottom: 1px solid var(--divider); }
.practice-records-sheet .practice-history-row:last-child { border-bottom: 0; }
.practice-records-sheet .learning-records-sheet-list { padding-bottom: calc(20px + env(safe-area-inset-bottom)); }
.practice-history-row > header { margin-bottom: 10px; }
.practice-history-row > header strong { font-size: 12px; }
.practice-history-row > div { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.practice-history-row > div > span { min-width: 0; padding: 0 5px; text-align: center; border-right: 1px solid var(--divider); }
.practice-history-row > div > span:first-child { padding-left: 0; }
.practice-history-row > div > span:last-child { padding-right: 0; border-right: 0; }
.practice-history-row b, .practice-history-row small { display: block; }
.practice-history-row b { overflow: hidden; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.practice-history-row small { margin-top: 4px; color: var(--muted); font-size: 8px; white-space: nowrap; }

@media (max-width: 480px) {
  body { background: #fff; }
  .demo-stage { display: block; min-height: 100dvh; padding: 0; }
  .phone { width: 100vw; height: 100dvh; min-height: 0; border: 0; border-radius: 0; box-shadow: none; }
}
