@import url("../foundation/src/tokens/tokens.css");
@import url("../foundation/src/profile/profile.css");

:root {
  --orange: #ff5a1f;
  --orange-dark: #e94d16;
  --orange-light: #fff4ef;
  --page: #f7f7f8;
  --text: #222;
  --regular: #555;
  --muted: #999;
  --line: #eeeeee;
  --green: #1fc48d;
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text);
  font-synthesis: none;
}

* { box-sizing: border-box; }
html, body { min-height: 100%; margin: 0; background: #eef0f3; }
body, button { font-family: inherit; letter-spacing: 0; }
button { border: 0; background: transparent; color: inherit; cursor: pointer; padding: 0; }
.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 #dddddf; 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); }
.scroll-area { flex: 1; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; }
.scroll-area::-webkit-scrollbar { display: none; }
.icon { width: 22px; height: 22px; display: block; }
.page-nav { position: relative; z-index: 5; min-height: 56px; display: grid; grid-template-columns: 46px 1fr 46px; align-items: center; padding: 0 8px; border-bottom: 1px solid #f2f2f2; background: #fff; }
.page-nav h1 { margin: 0; text-align: center; font-size: 18px; font-weight: 600; line-height: 26px; }
.nav-button { width: 42px; height: 42px; display: grid; place-items: center; }
.nav-button.disabled { color: #c7c7c7; }
.nav-right { display: flex; justify-content: flex-end; }
.report-screen .page-nav { grid-template-columns: 60px 1fr 60px; }
.nav-history { width: 60px; height: 42px; color: #555; font-size: 11px; white-space: nowrap; }
.page-content { padding: 14px 16px 28px; }

/* 首页 */
.home-content { padding: 0 16px 86px; background: #fff; }
.home-toolbar { height: 58px; display: flex; align-items: center; justify-content: space-between; }
.home-subject { display: flex; align-items: center; gap: 3px; color: #222; font-size: 15px; font-weight: 600; }
.home-subject .icon { width: 15px; height: 15px; }
.home-message-entry { position: relative; width: 42px; height: 42px; display: grid; place-items: center; color: #162943; }
.home-message-entry .icon { width: 25px; height: 25px; }
.home-message-entry .unread-dot { top: 5px; right: 4px; }
.home-banner { height: 145px; display: flex; flex-direction: column; align-items: center; justify-content: center; margin: 3px 0 18px; overflow: hidden; border-radius: 10px; background: radial-gradient(circle at 84% 18%, rgb(255 255 255 / 45%), transparent 28%), linear-gradient(130deg, #ff6156, #ffb97b); color: #fff; text-align: center; }
.home-banner small { font-size: 11px; font-weight: 600; }
.home-banner strong { margin: 8px 0 9px; font-size: 25px; line-height: 1; text-shadow: 0 2px 0 rgb(196 43 23 / 35%); }
.home-banner span { padding: 5px 18px; border-radius: 999px; background: rgb(255 255 255 / 84%); color: #df4c26; font-size: 11px; font-weight: 600; }
.home-quick-grid { display: grid; grid-template-columns: repeat(4, 1fr); margin-bottom: 18px; }
.home-quick-grid button { display: grid; justify-items: center; gap: 8px; color: #444; font-size: 12px; }
.home-quick-grid b { font-weight: 500; }
.home-quick-icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 14px; color: #fff; font-size: 20px; font-weight: 700; box-shadow: inset 0 1px 5px rgb(255 255 255 / 42%), 0 5px 10px rgb(35 40 50 / 8%); }
.home-quick-icon.orange { background: linear-gradient(145deg, #ffb45c, #ff792f); }
.home-quick-icon.green { background: linear-gradient(145deg, #78e4a2, #31c87a); }
.home-quick-icon.blue { background: linear-gradient(145deg, #9dd3ff, #579ae8); }
.home-quick-icon.pink { background: linear-gradient(145deg, #ff8ebc, #ef4b91); }
.home-promo-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 20px; }
.home-promo-row button { min-height: 70px; display: grid; align-content: center; gap: 5px; padding: 10px 12px; border-radius: 8px; color: #fff; text-align: left; }
.home-promo-row button:first-child { background: linear-gradient(135deg, #3c368e, #7166d1); }
.home-promo-row button:last-child { background: linear-gradient(135deg, #f4ae28, #ffd466); color: #6b3d0b; }
.home-promo-row strong { font-size: 15px; }
.home-promo-row small { font-size: 9px; opacity: .86; }
.home-section { padding-bottom: 12px; }
.home-section-head { height: 36px; display: flex; align-items: center; justify-content: space-between; margin-bottom: 7px; }
.home-section-head h2 { position: relative; margin: 0; padding-left: 11px; font-size: 17px; }
.home-section-head h2::before { content: ""; position: absolute; left: 0; top: 4px; width: 3px; height: 18px; border-radius: 2px; background: var(--orange); }
.home-section-head button { display: flex; align-items: center; color: #999; font-size: 11px; }
.home-section-head .icon { width: 14px; height: 14px; }
.live-preview { display: grid; grid-template-columns: 126px 1fr; gap: 10px; padding: 10px 0; border-bottom: 1px solid #f2f2f2; }
.live-cover { height: 76px; display: flex; flex-direction: column; justify-content: space-between; padding: 7px; border-radius: 6px; color: #fff; font-size: 9px; }
.live-cover small { font-size: 14px; font-weight: 700; }
.live-cover.coral { background: linear-gradient(145deg, #f15d60, #ff9194); }
.live-cover.navy { background: linear-gradient(145deg, #111b43, #304177); }
.live-preview > div { min-width: 0; padding-top: 2px; }
.live-preview strong { display: block; overflow: hidden; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.live-preview strong em { margin-right: 4px; color: #f05252; font-size: 10px; font-style: normal; font-weight: 500; }
.live-preview p { margin: 7px 0 6px; color: #777; font-size: 11px; white-space: nowrap; }
.live-preview div small { color: #aaa; font-size: 10px; }

.status-spacer { height: 20px; }
.unread-dot { position: absolute; top: 7px; right: 7px; width: 7px; height: 7px; border: 1.5px solid #fff; border-radius: 50%; background: #f05252; }
.bottom-nav { position: absolute; z-index: 6; left: 0; right: 0; bottom: 0; height: 68px; display: grid; grid-template-columns: repeat(4, 1fr); padding: 7px 6px max(7px, env(safe-area-inset-bottom)); border-top: 1px solid #f1f1f1; background: rgb(255 255 255 / 97%); }
.bottom-nav button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: #999; font-size: 10px; }
.bottom-nav .icon { width: 21px; height: 21px; }
.bottom-nav .active { color: var(--orange); }

.ahu-profile-grid-item[data-profile-action="weekly-report"] .ahu-profile-raster--utility-extension {
  border: 0;
  border-radius: 0;
  background: url("./assets/icons/learning-report-entry-app-style.png") center / contain no-repeat;
}

.ahu-profile-grid-item[data-profile-action="weekly-report"] .ahu-profile-raster--utility-extension::after {
  content: none;
}

/* 消息 */
.message-tabs { min-height: 52px; display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid #f2f2f2; background: #fff; }
.message-tabs button { position: relative; color: #666; font-size: 15px; }
.message-tabs button.active { color: #222; font-weight: 600; }
.message-tabs button.active::after { content: ""; position: absolute; left: 50%; bottom: 7px; width: 24px; height: 3px; transform: translateX(-50%); border-radius: 2px; background: var(--orange); }
.message-tab-label { position: relative; display: inline-flex; align-items: center; }
.tab-unread-dot { position: absolute; right: -10px; top: -2px; width: 7px; height: 7px; border: 1.5px solid #fff; border-radius: 50%; background: #f05252; }
.notification-page { padding: 4px 16px 24px; background: #f7f7f8; }
.date-divider { margin: 15px 0 10px; text-align: center; color: #aaa; font-size: 11px; }
.notification-card { position: relative; width: 100%; display: flex; align-items: flex-start; gap: 12px; margin-bottom: 10px; padding: 14px; border: 1px solid #ededee; border-radius: 13px; background: #fff; text-align: left; box-shadow: 0 3px 12px rgb(31 35 40 / 4%); }
.notification-card:active { transform: scale(.995); background: #fffcfa; }
.notification-card.featured { display: grid; gap: 9px; padding: 13px 14px 12px; border-color: #f0f0f1; box-shadow: 0 5px 16px rgb(31 35 40 / 6%); }
.weekly-notice-top { min-width: 0; display: grid; grid-template-columns: 60px minmax(0, 1fr); align-items: center; gap: 11px; }
.weekly-notice-icon { width: 60px; height: 60px; display: grid; place-items: center; border-radius: 14px; background: #fff3ed; }
.weekly-notice-icon img { width: 76px; height: 76px; max-width: none; display: block; object-fit: contain; transform: translate(-8px, -6px); }
.weekly-notice-body { min-width: 0; display: grid; gap: 5px; }
.weekly-notice-head { display: flex; align-items: center; justify-content: space-between; min-height: 22px; }
.weekly-notice-head strong { font-size: 16px; font-weight: 600; line-height: 22px; }
.weekly-notice-head small { color: #aaa; font-size: 10px; }
.weekly-notice-period { display: flex; align-items: center; overflow: hidden; color: #777; font-size: 11px; line-height: 16px; white-space: nowrap; text-overflow: ellipsis; }
.weekly-notice-period i { width: 3px; height: 3px; margin: 0 6px; flex: 0 0 auto; border-radius: 50%; background: #c3c3c3; }
.weekly-notice-metrics { width: 100%; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 8px 0; border-radius: 9px; background: #f8f8f9; }
.weekly-notice-metrics > span { min-width: 0; display: grid; justify-items: center; gap: 4px; }
.weekly-notice-metrics > span:not(:last-child) { border-right: 1px solid #e8e8e9; }
.weekly-notice-metrics small { color: #999; font-size: 8px; line-height: 12px; }
.weekly-notice-metrics b { max-width: 100%; overflow: hidden; color: #333; font-size: 13px; font-weight: 600; line-height: 18px; text-overflow: ellipsis; white-space: nowrap; }
.weekly-notice-metrics b em { margin-left: 1px; color: #777; font-size: 9px; font-style: normal; font-weight: 400; }
.weekly-notice-footer { min-height: 25px; display: flex; align-items: flex-end; justify-content: space-between; padding-top: 8px; border-top: 1px solid #eeeeef; }
.weekly-notice-date { color: #aaa; font-size: 10px; line-height: 16px; }
.weekly-notice-action { display: flex; align-items: center; justify-content: flex-end; color: var(--orange); font-size: 11px; font-weight: 500; line-height: 16px; }
.weekly-notice-action .icon { width: 13px; height: 13px; }
.message-icon { width: 42px; height: 42px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 10px; background: var(--orange-light); color: var(--orange); }
.message-icon.neutral { background: #f3f4f5; color: #70757b; }
.message-icon .icon { width: 23px; height: 23px; }
.message-copy { min-width: 0; flex: 1; display: grid; grid-template-columns: 1fr auto; gap: 6px 8px; }
.message-copy strong { font-size: 15px; }
.message-copy small { color: #aaa; font-size: 10px; }
.message-copy p { grid-column: 1 / -1; margin: 0; color: #777; font-size: 12px; line-height: 1.55; }
.notification-empty { min-height: 480px; display: grid; place-items: center; align-content: center; gap: 12px; color: #aaa; }
.notification-empty > span { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 50%; background: #eee; }
.notification-empty .icon { width: 26px; height: 26px; }
.notification-empty strong { font-size: 13px; font-weight: 400; }

/* 学习报告入口和历史 */
.report-hub { padding-top: 16px; }
.latest-report { overflow: hidden; border-radius: 12px; background: var(--orange); color: #fff; }
.latest-head { display: flex; justify-content: space-between; padding: 14px 16px 6px; }
.latest-head span { font-size: 13px; font-weight: 600; }
.latest-head small { color: rgb(255 255 255 / 72%); font-size: 10px; }
.latest-copy { padding: 8px 16px 16px; }
.latest-copy > p { margin: 0 0 7px; color: rgb(255 255 255 / 78%); font-size: 12px; }
.latest-copy h2 { margin: 0 0 17px; font-size: 21px; font-weight: 600; }
.latest-copy > div { display: grid; grid-template-columns: auto 1fr auto 1fr; align-items: baseline; gap: 5px; }
.latest-copy strong { font-size: 25px; }
.latest-copy em { font-size: 13px; font-style: normal; }
.latest-copy span { color: rgb(255 255 255 / 72%); font-size: 10px; }
.latest-action { width: 100%; height: 44px; display: flex; align-items: center; justify-content: center; gap: 3px; background: rgb(111 32 7 / 15%); color: #fff; font-size: 13px; }
.latest-action .icon { width: 15px; height: 15px; }
.history-preview { margin-top: 14px; padding: 16px; border-radius: 12px; background: #fff; }
.section-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 7px; }
.section-row h2 { margin: 0; font-size: 17px; }
.section-row button { display: flex; align-items: center; color: #999; font-size: 12px; }
.range-note { margin: 16px 12px; color: #aaa; font-size: 10px; line-height: 1.6; text-align: center; }
.history-page { padding-top: 12px; background: #f7f7f8; }
.history-year-group + .history-year-group { margin-top: 20px; }
.history-group-head { display: flex; align-items: center; justify-content: space-between; margin: 0 2px 8px; }
.history-group-head strong { font-size: 15px; font-weight: 600; }
.history-group-head span { color: #aaa; font-size: 10px; }
.history-card { display: grid; gap: 8px; }
.report-list-item { width: 100%; min-height: 88px; display: grid; gap: 6px; padding: 8px 12px 7px; border: 1px solid #eee; border-radius: 12px; background: #fff; text-align: left; box-shadow: 0 3px 10px rgb(34 34 34 / 4%); }
.report-list-item:active { background: #fffcfa; transform: scale(.995); }
.history-card-head { display: flex; align-items: center; gap: 10px; }
.history-period { min-width: 0; flex: 1; display: flex; align-items: baseline; gap: 8px; }
.history-period small { flex: 0 0 auto; color: #aaa; font-size: 8px; white-space: nowrap; }
.history-period strong { min-width: 0; overflow: hidden; flex: 1; font-size: 14px; font-weight: 600; line-height: 20px; text-overflow: ellipsis; white-space: nowrap; }
.history-card-open { width: 26px; height: 26px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 50%; background: var(--orange-light); color: var(--orange); }
.history-card-open .icon { width: 14px; height: 14px; }
.history-card-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); padding-top: 6px; border-top: 1px solid #f2f2f2; }
.history-card-stats > span { min-width: 0; display: grid; justify-items: center; gap: 2px; }
.history-card-stats > span:not(:last-child) { border-right: 1px solid #f2f2f2; }
.history-card-stats b { color: #333; font-size: 17px; font-weight: 600; line-height: 20px; white-space: nowrap; }
.history-card-stats b.history-time { font-size: 14px; }
.history-card-stats b em { margin-left: 2px; color: #888; font-size: 10px; font-style: normal; font-weight: 400; }
.history-card-stats small { color: #aaa; font-size: 8px; line-height: 11px; }
.history-end { padding: 18px 0 4px; color: #bbb; font-size: 10px; line-height: 1.6; text-align: center; }
.history-empty { min-height: 190px; display: grid; place-items: center; align-content: center; gap: 8px; padding: 48px 12px; border: 1px dashed #ddd; border-radius: 13px; background: #fff; color: #aaa; text-align: center; }
.history-empty strong { color: #666; font-size: 15px; }
.history-empty span { font-size: 11px; }

/* 周报正文 */
.report-content { padding-bottom: 28px; background: #f7f7f8; }
.no-report-page { min-height: calc(100% - 52px); display: flex; align-items: flex-start; justify-content: center; padding: 96px 28px 24px; }
.no-report-empty { display: grid; place-items: center; gap: 10px; text-align: center; }
.no-report-empty .empty-report-icon { width: 112px; height: 112px; margin-bottom: -2px; object-fit: contain; }
.no-report-empty strong { font-size: 18px; }
.no-report-empty p { margin: 0; color: #666; font-size: 13px; line-height: 1.65; }
.no-report-empty small { color: #aaa; font-size: 10px; line-height: 1.6; }
.report-hero { padding: 16px 16px 18px; background: var(--orange); color: #fff; }
.report-subject { display: flex; justify-content: space-between; align-items: center; }
.report-subject span { padding: 4px 8px; border-radius: 4px; background: rgb(255 255 255 / 18%); font-size: 11px; }
.report-subject button { display: flex; align-items: center; gap: 3px; color: #fff; font-size: 11px; }
.report-subject .icon { width: 13px; height: 13px; }
.report-full-period { margin: 18px 0 10px; color: rgb(255 255 255 / 88%); font-size: 12px; }
.head-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 11px 0 10px; border-radius: 12px; background: #fff; }
.head-metric { min-width: 0; min-height: 82px; display: grid; grid-template-rows: 18px 34px 18px; align-items: center; justify-items: center; row-gap: 5px; padding: 3px 5px; color: #222; }
.head-metric:not(:last-child) { border-right: 1px solid #f2f2f2; }
.head-metric > span:first-child { height: 18px; color: #888; font-size: 10px; line-height: 18px; }
.head-metric strong { max-width: 100%; align-self: center; color: #222; font-size: 28px; font-weight: 700; line-height: 1; letter-spacing: -.5px; white-space: nowrap; }
.head-metric.watch strong { display: flex; align-items: baseline; justify-content: center; gap: 1px; letter-spacing: 0; }
.head-metric.watch .time-number { color: #222; font-size: 25px; font-weight: 700; line-height: 1; }
.head-metric strong em { margin-left: 3px; color: #888; font-size: 11px; font-style: normal; font-weight: 400; letter-spacing: 0; }
.head-metric.watch strong em { margin: 0; color: #888; font-size: 11px; }
.comparison { width: 100%; height: 18px; display: flex; align-items: center; justify-content: center; color: #888; font-size: 9px; line-height: 18px; white-space: nowrap; }
.comparison img { width: 16px; height: 16px; margin: 0 3px; object-fit: contain; }
.comparison.up { color: #128d66; }
.comparison.down { color: #d33f4a; }
.comparison.neutral { color: #aaa; }
.report-section { padding: 22px 16px 0; }
.section-title { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.section-title > span { width: 27px; height: 27px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 7px; background: var(--orange-light); color: var(--orange); font-size: 11px; font-weight: 700; }
.section-title h3 { margin: 0; font-size: 17px; line-height: 22px; }
.data-card, .trend-card { margin-bottom: 10px; border: 1px solid #eee; border-radius: 12px; background: #fff; }
.data-card { padding: 14px; }
.data-card-head { display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 10px; }
.data-icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 10px; background: var(--orange-light); color: var(--orange); }
.practice-data .data-icon { background: #edf8ff; color: #409eff; }
.data-icon img { width: 36px; height: 36px; display: block; object-fit: contain; }
.data-card-head h4 { margin: 0 0 3px; font-size: 15px; }
.data-card-head p { margin: 0; color: #999; font-size: 10px; }
.data-card-head > strong { color: var(--orange); font-size: 23px; }
.practice-data .data-card-head > strong { color: #409eff; }
.data-card-head em { margin-left: 2px; color: #777; font-size: 10px; font-style: normal; font-weight: 400; }
.metric-grid { display: grid; margin-top: 13px; padding-top: 12px; border-top: 1px solid #f3f3f3; }
.metric-grid.three { grid-template-columns: repeat(3, 1fr); }
.metric-grid.two { grid-template-columns: repeat(2, 1fr); }
.metric-grid div { display: grid; place-items: center; gap: 4px; border-right: 1px solid #f2f2f2; }
.metric-grid div:last-child { border: 0; }
.metric-grid b { font-size: 16px; }
.metric-grid small { color: #999; font-size: 9px; line-height: 13px; text-align: center; }
.trend-card { padding: 14px; }
.empty-trend { min-height: 246px; }
.segment-control { display: grid; grid-template-columns: repeat(2, 1fr); padding: 3px; border-radius: 8px; background: #f5f5f6; }
.segment-control button { height: 30px; border-radius: 6px; color: #777; font-size: 12px; }
.segment-control button.active { background: #fff; color: var(--orange); font-weight: 600; box-shadow: 0 2px 6px rgb(31 35 40 / 8%); }
.chart-label { display: flex; justify-content: space-between; margin: 16px 0 8px; color: #aaa; font-size: 9px; }
.chart-label strong { color: #777; font-weight: 400; }
.bar-chart { height: 150px; display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; align-items: end; padding: 0 4px; border-bottom: 1px solid #eee; background: repeating-linear-gradient(to bottom, transparent 0, transparent 36px, #f5f5f5 37px); }
.bar-column { height: 146px; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 4px; }
.bar-column i { width: 18px; min-height: 0; border-radius: 5px 5px 1px 1px; background: linear-gradient(#ff8f63, var(--orange)); }
.bar-column:nth-child(4) i { background: var(--orange-dark); }
.bar-column small { height: 16px; color: #888; font-size: 9px; }
.bar-value { color: #777; font-size: 8px; }
.combo-legend { display: flex; justify-content: flex-end; gap: 12px; margin: 15px 2px 5px; color: #777; font-size: 8px; }
.combo-legend span { display: flex; align-items: center; gap: 4px; }
.combo-legend i { width: 8px; height: 8px; border-radius: 2px; }
.combo-legend .volume, .combo-bars .volume { background: var(--orange); }
.combo-legend .attempts, .combo-bars .attempts { background: #409eff; }
.combo-legend .accuracy { position: relative; width: 22px; height: 8px; border-radius: 0; background: linear-gradient(#14a873, #14a873) center / 100% 2px no-repeat; }
.combo-legend .accuracy::after { content: ""; position: absolute; left: 50%; top: 50%; width: 7px; height: 7px; transform: translate(-50%, -50%); border: 2px solid #14a873; border-radius: 50%; background: #fff; }
.combo-chart { position: relative; height: 174px; border-bottom: 1px solid #eee; background: repeating-linear-gradient(to bottom, transparent 0, transparent 37px, #f5f5f5 38px); }
.combo-chart svg { position: absolute; z-index: 2; left: 0; right: 0; top: 1px; width: 100%; height: 120px; overflow: visible; pointer-events: none; }
.combo-chart polyline { fill: none; stroke: #14a873; stroke-width: 2; vector-effect: non-scaling-stroke; }
.combo-chart circle { fill: #fff; stroke: #14a873; stroke-width: 2; vector-effect: non-scaling-stroke; }
.combo-groups { position: absolute; z-index: 1; inset: 0; display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.combo-group { min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; border-radius: 4px; }
.combo-group.selected { background: rgb(255 90 31 / 6%); }
.combo-bars { height: 108px; display: flex; align-items: flex-end; gap: 2px; }
.combo-bars i { width: 8px; min-height: 0; border-radius: 3px 3px 1px 1px; }
.combo-group small { height: 17px; margin-top: 5px; color: #888; font-size: 8px; }
.combo-group.selected small { color: var(--orange); font-weight: 600; }
.day-data-popover { position: absolute; z-index: 4; left: var(--tooltip-left); top: 4px; width: 104px; display: grid; gap: 3px; padding: 7px 8px; transform: translateX(-50%); border: 1px solid #eee; border-radius: 6px; background: #fff; box-shadow: 0 5px 14px rgb(31 35 40 / 13%); color: #666; font-size: 8px; }
.day-data-popover::after { content: ""; position: absolute; left: var(--arrow-left, 50%); top: 100%; width: 7px; height: 7px; transform: translate(-50%, -50%) rotate(45deg); border-right: 1px solid #eee; border-bottom: 1px solid #eee; background: #fff; }
.day-data-popover.edge-start { left: 1px; transform: none; --arrow-left: 24px; }
.day-data-popover.edge-end { right: 1px; left: auto; transform: none; --arrow-left: 80px; }
.day-data-popover strong { color: #222; font-size: 10px; }
.day-data-popover span { display: flex; align-items: center; gap: 4px; white-space: nowrap; }
.day-data-popover i { width: 6px; height: 6px; border-radius: 2px; }
.day-data-popover > button { position: absolute; right: 3px; top: 3px; width: 20px; height: 20px; display: grid; place-items: center; color: #999; }
.day-data-popover > button .icon { width: 11px; height: 11px; }
.day-data-popover .volume { background: var(--orange); }
.day-data-popover .attempts { background: #409eff; }
.day-data-popover .accuracy-mini { position: relative; width: 10px; border-radius: 0; background: linear-gradient(#14a873, #14a873) center / 100% 1px no-repeat; }
.day-data-popover .accuracy-mini::after { content: ""; position: absolute; left: 50%; top: 50%; width: 4px; height: 4px; transform: translate(-50%, -50%); border: 1px solid #14a873; border-radius: 50%; background: #fff; }
.report-empty { display: grid; place-items: center; color: #aaa; text-align: center; }
.chart-empty { min-height: 164px; align-content: center; gap: 7px; }
.chart-empty .empty-icon { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: #f5f5f6; color: #c4c4c4; font-size: 16px; }
.chart-empty strong { color: #888; font-size: 12px; font-weight: 500; }
.chart-empty small { max-width: 230px; font-size: 9px; line-height: 1.6; }
.report-footer { display: grid; place-items: center; gap: 4px; padding: 24px 0 10px; color: #bbb; }
.report-footer span { font-size: 11px; }
.report-footer small { font-size: 9px; }

/* 说明弹窗 */
.modal-mask { position: absolute; z-index: 20; inset: 0; display: flex; align-items: flex-end; padding: 18px; background: rgb(20 22 26 / 48%); }
.info-modal { width: 100%; max-height: calc(100% - 36px); overflow: hidden; padding: 0 16px 16px; border-radius: 16px; background: #fff; box-shadow: 0 16px 46px rgb(0 0 0 / 20%); }
.info-modal header { height: 54px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #f2f2f2; }
.info-modal h2 { margin: 0; font-size: 16px; }
.info-modal header button { width: 32px; height: 32px; display: grid; place-items: center; color: #888; }
.info-modal header .icon { width: 18px; height: 18px; }
.modal-body { max-height: calc(100dvh - 210px); overflow-y: auto; padding: 15px 0 13px; color: #666; font-size: 11px; line-height: 1.65; }
.modal-body > p { margin: 8px 0 12px; }
.modal-note { padding: 10px 11px; border-radius: 8px; background: #f7f7f8; color: #888; font-size: 10px; line-height: 1.6; }
.metric-explanation { margin-bottom: 12px; }
.metric-explanation strong { display: block; margin-bottom: 3px; color: #333; font-size: 12px; }
.metric-explanation p { margin: 0; }
.modal-confirm { width: 100%; height: 42px; border-radius: 8px; background: var(--orange); color: #fff; font-size: 13px; }
.toast { position: absolute; z-index: 30; left: 50%; bottom: 92px; transform: translateX(-50%); max-width: 260px; padding: 10px 14px; border-radius: 8px; background: rgb(28 30 33 / 88%); color: #fff; font-size: 12px; white-space: nowrap; box-shadow: 0 5px 18px rgb(0 0 0 / 16%); }

@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; }
}
