/* 家长中心基础版 */

.page--parent {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  align-items: stretch;
  justify-content: flex-start;
}

.site-body--parent {
  --parent-primary: #f27620;
  --parent-primary-soft: rgba(242, 118, 32, 0.12);
}

.parent-header {
  background-color: var(--glass-fill);
  background-image: var(--glass-gradient);
  -webkit-backdrop-filter: var(--glass-backdrop);
  backdrop-filter: var(--glass-backdrop);
  border: var(--glass-border);
  border-radius: var(--glass-radius);
  box-shadow: var(--glass-shadow);
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  width: min(960px, 100%);
  margin: 0 auto;
  padding: 14px clamp(16px, 4vw, 32px) 0;
}

.parent-header__logo {
  display: block;
  line-height: 0;
}

.parent-header__logo-img {
  width: clamp(130px, 11vw, 180px);
  height: auto;
}

.parent-header__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #4a3e36;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  text-shadow: none;
}

.parent-header__link-icon {
  width: 22px;
  height: 22px;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
  filter: none;
}

.parent-header__link:hover,
.parent-header__link:focus-visible {
  color: #f58220;
  text-decoration: none;
  outline: none;
}

.parent-header__link.is-active {
  color: #f58220;
}

.parent-main {
  position: relative;
  z-index: 2;
  width: min(960px, 100%);
  margin: 0 auto;
  padding: 20px clamp(16px, 4vw, 32px) 48px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.parent-panel {
  background-color: var(--glass-fill);
  background-image: var(--glass-gradient);
  -webkit-backdrop-filter: var(--glass-backdrop);
  backdrop-filter: var(--glass-backdrop);
  border: var(--glass-border);
  border-radius: var(--glass-radius);
  box-shadow: var(--glass-shadow);
  padding: clamp(20px, 4vw, 28px);
}

.parent-panel__title {
  margin: 0 0 12px;
  color: #382d27;
  font-size: clamp(22px, 4vw, 28px);
  font-weight: 900;
  line-height: 1.3;
}

.parent-panel__lead {
  margin: 0 0 10px;
  color: #4a3b32;
  font-size: clamp(17px, 3.5vw, 20px);
  font-weight: 700;
  line-height: 1.6;
}

.parent-panel__text {
  margin: 0 0 10px;
  color: #5c4a40;
  font-size: 17px;
  line-height: 1.65;
}

.parent-feature-list {
  margin: 0;
  padding-left: 1.2em;
  color: #382d27;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.9;
}

.parent-launch__grade {
  margin: 0 0 14px;
  color: var(--parent-primary);
  font-size: 20px;
  font-weight: 900;
}

.parent-launch-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.parent-launch-card {
  padding: 16px 18px;
  border-radius: 16px;
  background: var(--parent-primary-soft);
  border: 2px solid rgba(242, 118, 32, 0.22);
}

.parent-launch-card__title {
  margin: 0 0 6px;
  font-size: 20px;
  font-weight: 900;
  color: #382d27;
}

.parent-launch-card__count {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 800;
  color: var(--parent-primary);
}

.parent-launch-card__subjects {
  margin: 0;
  padding-left: 1.1em;
  font-size: 15px;
  color: #5c4a40;
  line-height: 1.7;
}

.parent-launch__total {
  margin: 14px 0 0;
  font-size: 15px;
  font-weight: 700;
  color: #6b5648;
}

.parent-message-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.parent-message-form__label {
  font-size: 15px;
  font-weight: 700;
  color: #4a3b32;
}

.parent-message-form__textarea {
  width: 100%;
  min-height: 140px;
  padding: 14px 16px;
  border: 2px solid rgba(242, 118, 32, 0.28);
  border-radius: 16px;
  background: #fffdfa;
  color: #382d27;
  font-size: 16px;
  line-height: 1.6;
  resize: vertical;
  font-family: inherit;
}

.parent-message-form__textarea:focus {
  outline: 3px solid rgba(242, 118, 32, 0.25);
  border-color: var(--parent-primary);
}

.parent-message-form__submit {
  align-self: flex-start;
  min-height: 48px;
  padding: 12px 28px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(180deg, #ff9a3c 0%, #f27620 100%);
  color: #fff;
  font-size: 17px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(242, 118, 32, 0.32);
}

.parent-message-form__submit:hover,
.parent-message-form__submit:focus-visible {
  filter: brightness(1.03);
  outline: 3px solid rgba(242, 118, 32, 0.3);
  outline-offset: 2px;
}

.parent-message-form__toast {
  margin: 0;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(242, 118, 32, 0.12);
  color: #8a4d12;
  font-size: 15px;
  font-weight: 700;
}

.parent-roadmap-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
}

.parent-roadmap-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  min-height: 88px;
  padding: 16px;
  border-radius: 16px;
  background: #ececec;
  border: 2px solid #d8d8d8;
  color: #777;
}

.parent-roadmap-card__badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  background: #cfcfcf;
  color: #666;
  font-size: 12px;
  font-weight: 800;
}

.parent-roadmap-card__label {
  font-size: 17px;
  font-weight: 800;
}

@media (max-width: 600px) {
  .parent-message-form__submit {
    width: 100%;
  }
}

/* ---------------------------------------------------------------------------
 * 阶段3学习数据页宽版（不改变默认 .parent-main = 960px）
 * --------------------------------------------------------------------------- */
.parent-main--learning-wide {
  width: min(1280px, 100%);
  max-width: 100%;
  box-sizing: border-box;
  padding-left: clamp(16px, 3vw, 28px);
  padding-right: clamp(16px, 3vw, 28px);
}

/* 同页顶栏与宽版内容对齐（不改默认 .parent-header） */
.page--parent:has(.parent-main--learning-wide) .parent-header {
  width: min(1280px, 100%);
  max-width: 100%;
  box-sizing: border-box;
}

/* 学习情况首屏：四窗 2×2（亮点 | 学习情况 | 安排 | 学习记录） */
.parent-main--learning-wide .learn-hero {
  display: grid;
  gap: 12px 16px;
  align-items: stretch;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.parent-main--learning-wide .learn-block--shine {
  grid-column: 1;
  grid-row: 1;
}

.parent-main--learning-wide .learn-block--focus {
  grid-column: 2;
  grid-row: 1;
}

.parent-main--learning-wide .learn-block--plan {
  grid-column: 1;
  grid-row: 2;
}

.parent-main--learning-wide .learn-block--records {
  grid-column: 2;
  grid-row: 2;
}

@media (max-width: 759px) {
  .parent-main--learning-wide .learn-hero {
    display: flex;
    flex-direction: column;
    grid-template-columns: 1fr;
  }

  .parent-main--learning-wide .learn-block--shine { order: 1; }
  .parent-main--learning-wide .learn-block--focus { order: 2; }
  .parent-main--learning-wide .learn-block--plan { order: 3; }
  .parent-main--learning-wide .learn-block--records { order: 4; }
}

/* 1366×768 首屏紧凑 */
@media (min-width: 760px) and (max-height: 800px) {
  .parent-main--learning-wide .parent-panel {
    padding: 16px 20px 20px;
  }

  .parent-main--learning-wide .parent-panel__title {
    margin-bottom: 6px;
    font-size: 22px;
  }

  .parent-main--learning-wide .parent-panel__lead,
  .parent-main--learning-wide .learn-today {
    margin-bottom: 6px;
    font-size: 14px;
  }

  .parent-main--learning-wide .learn-week {
    margin-bottom: 10px;
  }

  .parent-main--learning-wide .learn-block {
    padding: 10px 12px;
    min-height: 148px;
  }

  .parent-main--learning-wide .learn-block__headline {
    font-size: 15px;
  }

  .parent-main--learning-wide .learn-hero {
    gap: 10px 12px;
  }
}

/* ---------------------------------------------------------------------------
 * 阶段3详情页：报告式布局（亮点 / 学习情况）
 * --------------------------------------------------------------------------- */
.report-detail {
  color: #382d27;
  max-width: 100%;
  overflow-x: hidden;
}

.report-back-wrap {
  margin: 0 0 8px;
}

.report-back {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 44px;
  padding: 8px 2px;
  box-sizing: border-box;
  font-size: 14px;
  font-weight: 700;
  color: #c45f12;
  text-decoration: none;
  line-height: 1.3;
}

.report-back:hover,
.report-back:focus-visible {
  color: #a34e0f;
  text-decoration: underline;
}

.report-back:focus-visible {
  outline: 2px solid rgba(196, 95, 18, 0.45);
  outline-offset: 3px;
  border-radius: 6px;
}

.report-detail__title {
  margin: 0 0 6px;
  font-size: 24px;
  font-weight: 800;
  color: #2a1f1a;
}

.report-detail__lead {
  margin: 0 0 16px;
  font-size: 14px;
  color: #6b5b52;
}

.report-banner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 18px 20px;
  border-radius: 18px;
  margin-bottom: 16px;
  box-sizing: border-box;
}

.report-banner--shine {
  background: linear-gradient(135deg, rgba(214, 242, 224, 0.95), rgba(232, 246, 255, 0.92));
  border: 1px solid rgba(46, 125, 79, 0.18);
}

.report-banner--focus {
  background: linear-gradient(135deg, rgba(255, 243, 224, 0.96), rgba(255, 236, 210, 0.9));
  border: 1px solid rgba(196, 95, 18, 0.2);
}

.report-banner__badge {
  width: 88px;
  height: 88px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.72);
  display: grid;
  place-items: center;
  box-shadow: 0 4px 12px rgba(56, 45, 39, 0.06);
  flex: 0 0 auto;
}

.report-banner__badge img,
.report-banner__art img {
  width: 80px;
  height: 80px;
  max-width: 100%;
  object-fit: contain;
  display: block;
}

.report-banner__art img {
  width: 80px;
  height: 80px;
}

.report-banner__kicker {
  margin: 0 0 4px;
  font-size: 12px;
  font-weight: 700;
  color: #6b5b52;
  letter-spacing: 0.04em;
}

.report-banner__name {
  margin: 0 0 4px;
  font-size: 20px;
  font-weight: 800;
  color: #2a1f1a;
}

.report-banner__meta {
  margin: 0;
  font-size: 14px;
  color: #5a463a;
}

.report-status {
  display: grid;
  grid-template-columns: minmax(240px, 0.95fr) minmax(0, 1.35fr);
  gap: 14px;
  margin-bottom: 16px;
  align-items: stretch;
}

@media (max-width: 860px) {
  .report-banner {
    grid-template-columns: auto 1fr;
  }
  .report-banner__art { display: none; }
  .report-banner__badge {
    width: 64px;
    height: 64px;
    border-radius: 16px;
  }
  .report-banner__badge img,
  .report-banner__art img {
    width: 56px;
    height: 56px;
  }
  .report-status {
    grid-template-columns: 1fr;
  }
}

.report-status__main {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 16px;
  border-radius: 16px;
  background: rgba(255, 252, 248, 0.96);
  border: 1px solid rgba(56, 45, 39, 0.1);
  box-sizing: border-box;
  min-width: 0;
}

.report-detail--shine .report-status__main {
  border-color: rgba(46, 125, 79, 0.18);
  background: rgba(245, 252, 248, 0.96);
}

.report-detail--focus .report-status__main {
  border-color: rgba(196, 95, 18, 0.18);
  background: rgba(255, 250, 244, 0.96);
}

.report-status__icon {
  width: 128px;
  height: 128px;
  flex: 0 0 auto;
  border-radius: 24px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.85);
}

.report-status__icon img {
  width: 128px;
  height: 128px;
  max-width: 100%;
  object-fit: contain;
  display: block;
}

.report-status__label {
  margin: 0 0 4px;
  font-size: 12px;
  font-weight: 700;
  color: #6b5b52;
}

.report-status__headline {
  margin: 0 0 6px;
  font-size: 22px;
  font-weight: 800;
  color: #2a1f1a;
  line-height: 1.25;
}

.report-status__blurb {
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
  color: #5a463a;
}

.report-kpis {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

@media (min-width: 980px) {
  .report-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 1100px) {
  .report-kpis { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

.report-kpi {
  min-height: 108px;
  padding: 12px;
  border-radius: 14px;
  background: rgba(255, 252, 248, 0.96);
  border: 1px solid rgba(56, 45, 39, 0.1);
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-sizing: border-box;
  min-width: 0;
}

.report-kpi__top {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.report-kpi__top img {
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  object-fit: contain;
  display: block;
}

.report-kpi__label {
  font-size: 12px;
  font-weight: 700;
  color: #6b5b52;
  line-height: 1.3;
  min-width: 0;
}

.report-kpi__value {
  margin-top: auto;
  font-size: 22px;
  font-weight: 800;
  color: #2a1f1a;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
  word-break: break-word;
}

.report-kpi__value--text {
  font-size: 16px;
  line-height: 1.25;
}

@media (max-width: 860px) {
  .report-status__icon {
    width: 96px;
    height: 96px;
    border-radius: 20px;
  }
  .report-status__icon img {
    width: 96px;
    height: 96px;
  }
  .report-kpi__top img {
    width: 40px;
    height: 40px;
  }
  .report-kpi {
    min-height: 100px;
  }
}

.report-section {
  margin: 0 0 16px;
  padding: 16px 18px;
  border-radius: 16px;
  background: rgba(255, 252, 248, 0.92);
  border: 1px solid rgba(56, 45, 39, 0.08);
  box-sizing: border-box;
}

.report-section--conclusion {
  border: none;
  background: transparent;
  padding: 0;
}

.report-section__title {
  margin: 0 0 12px;
  font-size: 15px;
  font-weight: 800;
  color: #6b5b52;
}

.report-donut-row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 28px;
  align-items: center;
}

.report-donut {
  width: 148px;
  height: 148px;
  border-radius: 50%;
  position: relative;
  flex: 0 0 auto;
  box-shadow: inset 0 0 0 1px rgba(56, 45, 39, 0.06);
}

.report-donut__hole {
  position: absolute;
  inset: 26%;
  border-radius: 50%;
  background: #fffaf4;
  display: grid;
  place-items: center;
  text-align: center;
  box-shadow: 0 0 0 1px rgba(56, 45, 39, 0.05);
}

.report-donut__hole strong {
  display: block;
  font-size: 22px;
  font-weight: 800;
  color: #2a1f1a;
  line-height: 1.1;
}

.report-donut__hole span {
  display: block;
  font-size: 11px;
  color: #6b5b52;
  font-weight: 700;
}

.report-legend {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
  min-width: 160px;
}

.report-legend li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 14px;
  color: #382d27;
}

.report-legend__label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
}

.report-legend__swatch {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex: 0 0 auto;
}

.report-legend strong {
  font-variant-numeric: tabular-nums;
  font-size: 16px;
}

.report-empty {
  margin: 0;
  color: #6b5b52;
  font-size: 14px;
  line-height: 1.5;
}

.report-table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.report-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  min-width: 480px;
}

.report-table th,
.report-table td {
  text-align: left;
  padding: 12px 10px;
  border-bottom: 1px solid rgba(56, 45, 39, 0.1);
  vertical-align: middle;
}

.report-table th {
  color: #6b5b52;
  font-weight: 700;
  font-size: 12px;
}

.report-table td {
  color: #2a1f1a;
  font-variant-numeric: tabular-nums;
}

.report-bar {
  height: 8px;
  border-radius: 999px;
  background: rgba(107, 91, 82, 0.12);
  overflow: hidden;
  min-width: 72px;
}

.report-bar > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  min-width: 4px;
}

.report-detail--shine .report-bar > span {
  background: linear-gradient(90deg, #4caf78, #2e7d4f);
}

.report-detail--focus .report-bar > span {
  background: linear-gradient(90deg, #f0a35a, #c45f12);
}

.report-conclusion {
  margin: 0;
  padding: 16px 18px;
  border-radius: 16px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  box-sizing: border-box;
}

.report-conclusion__icon {
  width: 56px;
  height: 56px;
  flex: 0 0 auto;
  object-fit: contain;
  display: block;
}

.report-conclusion__text {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
  color: #2a1f1a;
  font-weight: 600;
  min-width: 0;
}

.report-detail--shine .report-conclusion {
  background: linear-gradient(135deg, rgba(214, 242, 224, 0.7), rgba(245, 252, 248, 0.95));
  border: 1px solid rgba(46, 125, 79, 0.16);
}

.report-detail--focus .report-conclusion {
  background: linear-gradient(135deg, rgba(255, 243, 224, 0.75), rgba(255, 250, 244, 0.95));
  border: 1px solid rgba(196, 95, 18, 0.16);
}

@media (max-width: 860px) {
  .report-conclusion__icon {
    width: 48px;
    height: 48px;
  }
}
