/* 识字报告 · forgetting-curve 主题之上 */

.lr-root {
  position: relative;
}

.lr-growth-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px 16px;
}

.lr-days {
  display: inline-flex;
  gap: 6px;
  flex-shrink: 0;
}
.lr-day {
  min-width: 64px;
  height: 32px;
  padding: 0 10px;
  border: 1px solid var(--fc-line);
  background: transparent;
  color: var(--fc-muted);
  font-family: var(--fc-font);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
}
.lr-day.active {
  border-color: var(--fc-accent);
  color: var(--fc-accent);
  background: var(--fc-glass);
}

.lr-chart-wrap {
  position: relative;
  min-height: 220px;
}
.lr-chart-wrap #lrGrowthCanvas {
  display: block;
  width: 100%;
  height: auto;
  min-height: 200px;
  vertical-align: top;
}
.lr-chart-wrap .fc-status.is-hidden,
.lr-chart-wrap .fc-status[hidden] {
  display: none !important;
}

.lr-l-lib i {
  background: var(--fc-accent);
}
.lr-l-mas i {
  background: var(--fc-accent-3, var(--fc-accent-2));
}

/* 总览双栏 */
.lr-stat-split {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 8px 16px;
  align-items: center;
  padding: 8px 0 4px;
  border-top: 1px solid var(--fc-line);
  border-bottom: 1px solid var(--fc-line);
}
.lr-stat-col {
  min-width: 0;
  text-align: center;
  padding: 18px 8px;
}
.lr-stat-divider {
  width: 1px;
  align-self: stretch;
  background: var(--fc-line);
}
.lr-stat-ratio {
  margin: 0;
  font-size: clamp(22px, 6vw, 32px);
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--fc-ink);
  font-variant-numeric: tabular-nums;
}
.lr-stat-ratio--sub {
  margin-top: 8px;
  font-size: clamp(14px, 3.6vw, 18px);
  font-weight: 600;
  color: var(--fc-muted);
}
.lr-stat-ratio--sub strong {
  color: var(--fc-ink);
}
.lr-slash {
  margin: 0 4px;
  color: var(--fc-muted);
  font-weight: 500;
}
.lr-stat-big {
  margin: 0;
  font-size: clamp(28px, 8vw, 40px);
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--fc-accent);
  font-variant-numeric: tabular-nums;
}
.lr-stat-label {
  margin: 8px 0 0;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--fc-muted);
  text-transform: uppercase;
}

/* 折叠明细 */
.lr-block {
  margin-bottom: 22px;
  border-bottom: 1px solid var(--fc-line);
  padding-bottom: 18px;
}
.lr-block:last-child {
  border-bottom: 0;
  margin-bottom: 0;
  padding-bottom: 0;
}
.lr-block-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.lr-block-title {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--fc-label);
  text-transform: none;
}
.lr-toggle {
  border: 0;
  background: transparent;
  color: var(--fc-muted);
  font-family: var(--fc-font);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  cursor: pointer;
  padding: 4px 0;
}
.lr-block.is-collapsed .lr-block-body {
  display: none;
}
.lr-block.is-collapsed .lr-toggle::after {
  content: none;
}

.lr-table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.lr-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--fc-ink);
}
.lr-table th {
  text-align: left;
  padding: 8px 8px 10px 0;
  color: var(--fc-muted);
  font-size: 10px;
  letter-spacing: 1px;
  border-bottom: 1px solid var(--fc-line);
  white-space: nowrap;
}
.lr-table td {
  padding: 10px 8px 10px 0;
  border-bottom: 1px solid color-mix(in srgb, var(--fc-line) 55%, transparent);
  vertical-align: baseline;
  font-variant-numeric: tabular-nums;
}
.lr-table tr:last-child td {
  border-bottom: 0;
}
.lr-table .lr-rate {
  color: var(--fc-accent);
}
.lr-table .lr-lesson {
  max-width: 9em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.lr-lesson-scroll {
  max-height: none;
  overflow: visible;
  border: 0;
  padding: 0;
  background: transparent;
}
.lr-block-body .nt-vscroll {
  margin-top: 2px;
}
.lr-block.is-collapsed .nt-vscroll {
  display: none;
}

.lr-empty {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--fc-muted);
}

/* 分享主按钮 */
.lr-share-btn {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 100%;
  max-width: 420px;
  min-height: 72px;
  padding: 16px 22px;
  border: 2px solid var(--fc-accent);
  background: var(--fc-accent);
  color: #060709;
  font-family: var(--fc-font);
  cursor: pointer;
  line-height: 1.1;
  box-shadow: 0 10px 36px color-mix(in srgb, var(--fc-accent) 28%, transparent);
  transition: transform 0.15s ease, filter 0.2s ease;
}
.lr-share-btn .fc-corner {
  color: #060709;
  opacity: 0.55;
}
.lr-share-btn .lp-start-zh,
.lr-share-btn .lr-share-zh {
  position: relative;
  z-index: 1;
  font-size: clamp(18px, 4.8vw, 24px);
  font-weight: 700;
  letter-spacing: 0.22em;
  text-indent: 0.22em;
}
.lr-share-btn .lp-start-en,
.lr-share-btn .lr-share-en {
  position: relative;
  z-index: 1;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2.5px;
  opacity: 0.72;
}
.lr-share-btn:hover {
  filter: brightness(1.06);
}
.lr-share-btn:active {
  transform: scale(0.985);
}
.lr-share-btn:disabled {
  opacity: 0.55;
  cursor: wait;
}
.fc-root.fc-scheme-paper .lr-share-btn {
  color: #fff;
}
.fc-root.fc-scheme-paper .lr-share-btn .fc-corner {
  color: #fff;
}
.fc-root.fc-scheme-vivid .lr-share-btn {
  color: #041412;
  box-shadow: 0 0 24px rgba(0, 245, 214, 0.25), 0 10px 36px rgba(0, 245, 214, 0.2);
}

.lr-share-result {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: stretch;
  margin-top: 16px;
  max-width: 520px;
}
.lr-share-result[hidden] {
  display: none !important;
}
.lr-share-input {
  flex: 1 1 200px;
  min-width: 0;
  height: 48px;
  padding: 0 12px;
  border: 1px solid var(--fc-line);
  background: var(--fc-chart-bg);
  color: var(--fc-ink);
  font-family: var(--fc-font);
  font-size: 12px;
  font-weight: 500;
}
.lr-share-result .fc-entrybtn {
  max-width: 120px;
  min-height: 48px;
}

.lr-toast {
  position: fixed;
  left: 50%;
  bottom: max(28px, env(safe-area-inset-bottom));
  z-index: 60;
  transform: translateX(-50%);
  max-width: min(92vw, 420px);
  padding: 12px 16px;
  border: 1px solid var(--fc-line);
  background: var(--fc-chart-bg);
  color: var(--fc-ink);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
}
.lr-toast[hidden] {
  display: none !important;
}

@media (max-width: 639.98px) {
  .lr-growth-head {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .lr-days {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
  }
  .lr-day {
    min-width: 0;
    width: 100%;
    height: 36px;
  }

  .lr-stat-split {
    gap: 6px 10px;
    padding: 4px 0 2px;
  }
  .lr-stat-col {
    padding: 12px 4px;
  }
  .lr-stat-ratio {
    font-size: clamp(18px, 5.4vw, 26px);
  }
  .lr-stat-big {
    font-size: clamp(22px, 6.5vw, 30px);
  }

  .lr-block {
    margin-bottom: 14px;
    padding-bottom: 12px;
  }
  .lr-block-head {
    margin-bottom: 8px;
  }
  .lr-table th {
    padding: 6px 6px 8px 0;
  }
  .lr-table td {
    padding: 8px 6px 8px 0;
  }
  .lr-table .lr-lesson {
    max-width: 7.5em;
  }

  .lr-share-btn {
    max-width: none;
    min-height: 60px;
    padding: 14px 16px;
  }
  .lr-share-btn .lp-start-zh,
  .lr-share-btn .lr-share-zh {
    letter-spacing: 0.12em;
    text-indent: 0.08em;
    font-size: clamp(16px, 4.4vw, 20px);
  }
  .lr-share-result {
    flex-direction: column;
    gap: 8px;
    max-width: none;
  }
  .lr-share-result .fc-entrybtn {
    max-width: none;
    width: 100%;
  }
}

@media (max-width: 380px) {
  .lr-stat-split {
    grid-template-columns: 1fr;
  }
  .lr-stat-divider {
    width: 100%;
    height: 1px;
  }
}
