:root {
  --bg: #eef5ff;
  --panel: rgba(255, 255, 255, 0.92);
  --text: #1a2a4a;
  --muted: #5a6a8a;
  --primary: #4a90e2;
  --primary-deep: #2c6fc2;
  --secondary: #5ec2f2;
  --accent: #8a6cff;
  --science: #27ae60;
  --history: #e67e22;
  --success: #2eaf61;
  --success-soft: rgba(46, 175, 97, 0.12);
  --error: #ef5350;
  --error-soft: rgba(239, 83, 80, 0.12);
  --border: rgba(26, 42, 74, 0.1);
  --shadow: 0 20px 60px rgba(74, 144, 226, 0.15);
  --chinese-color: #e67e22;
  --chinese-bg: rgba(230, 126, 34, 0.1);
  --math-color: #4a90e2;
  --math-bg: rgba(74, 144, 226, 0.1);
  --english-color: #8a6cff;
  --english-bg: rgba(138, 108, 255, 0.1);
  --history-color: #27ae60;
  --history-bg: rgba(39, 174, 96, 0.1);
  --geography-color: #059669;
  --geography-bg: rgba(16, 185, 129, 0.1);
  --biology-color: #d97706;
  --biology-bg: rgba(245, 158, 11, 0.1);
  --politics-color: #db2777;
  --politics-bg: rgba(236, 72, 153, 0.1);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Baloo 2", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(74, 144, 226, 0.3), transparent 35%),
    radial-gradient(circle at top right, rgba(138, 108, 255, 0.2), transparent 32%),
    linear-gradient(180deg, #f5f9ff 0%, #ddeeff 100%);
  min-height: 100vh;
}

button, input, label { font: inherit; }

.page-shell {
  max-width: 1340px;
  margin: 0 auto;
  padding: 24px 20px 48px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* ===== 待巩固提示条 ===== */
.pending-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
  border: 1px solid #ffb74d;
  border-radius: 14px;
  padding: 12px 18px;
  animation: slideDown 0.3s ease;
}

.pending-banner__icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.pending-banner__text {
  flex: 1;
  min-width: 0;
}

.pending-banner__text strong {
  font-size: 0.95rem;
  color: #e65100;
  margin-right: 8px;
}

.pending-banner__text span {
  font-size: 0.85rem;
  color: #bf360c;
}

.pending-banner__detail {
  font-size: 0.8rem;
  color: #8d6e63;
  flex-shrink: 0;
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== 主体布局（侧边时事） ===== */
.main-layout {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.main-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ===== 七科统一容器 ===== */
.subject-grid-7 {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.subject-grid-4,
.subject-grid-3 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.subject-grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

/* ===== 时事播报侧边栏 ===== */
.news-sidebar {
  width: 300px;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 16px;
  position: sticky;
  top: 20px;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
}

.news-sidebar__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(74, 144, 226, 0.1);
}

.news-sidebar__header h2 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #1a2a4a;
  margin: 0;
}

.news-sidebar__count {
  font-size: 0.78rem;
  color: #8a9aba;
  background: rgba(74, 144, 226, 0.1);
  padding: 3px 8px;
  border-radius: 999px;
}

.news-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ===== Hero ===== */
.hero {
  background: linear-gradient(135deg, rgba(255,255,255,0.95), rgba(238,245,255,0.96));
  border: 1px solid rgba(74, 144, 226, 0.14);
  box-shadow: var(--shadow);
  border-radius: 24px;
  padding: 22px 28px;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  padding: 6px 14px;
  background: rgba(74, 144, 226, 0.15);
  color: var(--primary-deep);
  font-weight: 700;
  font-size: 0.88rem;
  letter-spacing: 0.04em;
  margin-bottom: 10px;
}

.hero h1 {
  margin: 0 0 6px;
  font-size: clamp(1.8rem, 3.5vw, 3rem);
  line-height: 1.1;
}

.hero__desc {
  margin: 0 0 16px;
  font-size: 1rem;
  color: var(--muted);
  max-width: 720px;
}

.hero__topbar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text);
}

.meta-pill--accent {
  background: rgba(138, 108, 255, 0.12);
  border-color: rgba(138, 108, 255, 0.2);
  color: #6c3dd8;
}

/* ===== 通用面板 ===== */
.panel {
  background: var(--panel);
  backdrop-filter: blur(12px);
  border-radius: 24px;
  padding: 22px 24px;
  box-shadow: 0 18px 50px rgba(26, 42, 74, 0.08);
}

.panel, .subject-card, .meta-pill { border: 1px solid var(--border); }

.panel__title-row {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.panel__title-row h2 { margin: 0; font-size: 1.35rem; }
.panel__tag, .panel__hint { color: var(--muted); font-size: 0.9rem; }

/* ===== 时事播报 ===== */
.news-card {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.news-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(74, 144, 226, 0.12);
}

.news-card__head {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 5px;
}

.news-card__index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
}

.news-card__category {
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(74, 144, 226, 0.1);
  color: var(--primary);
  font-size: 0.72rem;
  font-weight: 700;
}

.news-card__title {
  margin: 0 0 4px;
  font-size: 0.98rem;
  font-weight: 700;
  color: #1a2a4a;
  line-height: 1.4;
  cursor: pointer;
  user-select: none;
}
.news-card__title::after {
  content: " ▶";
  font-size: 0.7rem;
  color: var(--muted);
  transition: transform 0.2s ease;
  display: inline-block;
}
.news-card.is-expanded .news-card__title::after {
  transform: rotate(90deg);
}

.news-card__detail {
  display: none;
}
.news-card.is-expanded .news-card__detail {
  display: block;
}

.news-card__content {
  margin: 0;
  font-size: 0.85rem;
  color: #5a6a8a;
  line-height: 1.55;
}

.news-card__source {
  font-size: 0.75rem;
  color: #8a9aba;
  margin-top: 4px;
}

.news-card__speaker {
  margin-left: auto;
  background: none;
  border: none;
  font-size: 1.1rem;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 8px;
  transition: background 0.2s;
}

.news-card__speaker:hover {
  background: rgba(74, 144, 226, 0.15);
}

.news-card__speaker:active {
  transform: scale(0.95);
}

/* ===== 四科网格 ===== */
.four-subject-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.subject-card {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 16px 44px rgba(26, 42, 74, 0.1);
  display: flex;
  flex-direction: column;
}

.subject-card__header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
  cursor: pointer;
  user-select: none;
  transition: background 0.15s ease;
}
.subject-card__header:hover {
  filter: brightness(0.96);
}
.subject-card__header::after {
  content: "▶";
  font-size: 0.7rem;
  color: var(--muted);
  transition: transform 0.2s ease;
  margin-left: auto;
}
.subject-card.is-expanded .subject-card__header::after {
  transform: rotate(90deg);
}

/* 折叠状态：隐藏内容区 */
.subject-card:not(.is-expanded) .subject-card__intro,
.subject-card:not(.is-expanded) .subject-card__reading,
.subject-card:not(.is-expanded) .subject-card__body,
.subject-card:not(.is-expanded) .subject-card__result,
.subject-card:not(.is-expanded) .subject-card__actions {
  display: none;
}

.subject-card--chinese .subject-card__header { background: var(--chinese-bg); border-color: rgba(230,126,34,0.2); }
.subject-card--math .subject-card__header { background: var(--math-bg); border-color: rgba(74,144,226,0.2); }
.subject-card--english .subject-card__header { background: var(--english-bg); border-color: rgba(138,108,255,0.2); }
.subject-card--history .subject-card__header { background: var(--history-bg); border-color: rgba(39,174,96,0.2); }
.subject-card--geography .subject-card__header { background: rgba(16,185,129,0.08); border-color: rgba(16,185,129,0.2); }
.subject-card--biology .subject-card__header { background: rgba(245,158,11,0.08); border-color: rgba(245,158,11,0.2); }
.subject-card--politics .subject-card__header { background: rgba(236,72,153,0.08); border-color: rgba(236,72,153,0.2); }

.subject-card__icon { font-size: 1.4rem; }
.subject-card__name {
  font-size: 1.1rem;
  font-weight: 700;
  flex: 1;
}

.subject-card--chinese .subject-card__name { color: var(--chinese-color); }
.subject-card--math .subject-card__name { color: var(--math-color); }
.subject-card--english .subject-card__name { color: var(--english-color); }
.subject-card--history .subject-card__name { color: var(--history-color); }
.subject-card--geography .subject-card__name { color: #059669; }
.subject-card--biology .subject-card__name { color: #d97706; }
.subject-card--politics .subject-card__name { color: #db2777; }

.subject-card__score {
  padding: 4px 12px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.88rem;
  background: rgba(255,255,255,0.8);
  color: var(--muted);
  min-width: 46px;
  text-align: center;
}

.subject-card__score.has-score {
  background: rgba(46,175,97,0.15);
  color: var(--success);
}

.subject-card__intro {
  padding: 10px 14px 8px;
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.5;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.subject-card__intro h3 { margin: 0 0 3px; font-size: 0.92rem; color: var(--text); }
.subject-card__intro p { margin: 0; }

.subject-card__body,
.subject-card__reading {
  overflow-y: auto;
  padding: 10px 14px;
}

.subject-card__reading {
  border-bottom: 1px solid var(--border);
  background: rgba(138,108,255,0.04);
  max-height: 360px;
  overflow-y: auto;
}

.subject-card__result {
  padding: 0 14px;
  flex-shrink: 0;
}

.subject-card__actions {
  display: flex;
  gap: 8px;
  padding: 10px 14px 12px;
  flex-shrink: 0;
  border-top: 1px solid var(--border);
}

/* ===== 题目卡片 ===== */
.question-card {
  background: rgba(255,255,255,0.85);
  border-radius: 14px;
  padding: 12px 14px;
  margin-bottom: 8px;
  border: 1px solid var(--border);
}

.question-card__title { margin: 0 0 8px; font-size: 0.92rem; }

.options { display: grid; gap: 6px; }

.option {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(26,42,74,0.04);
  cursor: pointer;
  transition: background 0.2s ease;
  font-size: 0.88rem;
}

.option:hover { background: rgba(74,144,226,0.08); }
.option input { accent-color: var(--primary); transform: scale(1.1); }
.option.is-correct { background: var(--success-soft); border: 1px solid rgba(46,175,97,0.3); }
.option.is-wrong { background: var(--error-soft); border: 1px solid rgba(239,83,80,0.3); }

.question-card__explain {
  display: none;
  margin-top: 8px;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(26,42,74,0.05);
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.6;
}

.question-card.show-answer .question-card__explain { display: block; }

/* 错题正确答案提示 */
.question-card__correct-tip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  padding: 8px 12px;
  border-radius: 10px;
  background: rgba(46, 175, 97, 0.08);
  border: 1px solid rgba(46, 175, 97, 0.2);
  font-size: 0.85rem;
  line-height: 1.5;
}
.correct-tip__badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 6px;
  background: rgba(46, 175, 97, 0.15);
  color: var(--success);
  font-weight: 700;
  font-size: 0.8rem;
}
.correct-tip__answer {
  font-weight: 700;
  color: #1a6b3a;
}
.correct-tip__yours {
  color: var(--error);
  font-size: 0.82rem;
  margin-left: auto;
}

/* 错题卡片边框强调 */
.question-card.is-wrong-card {
  border-color: rgba(239, 83, 80, 0.3);
  background: rgba(239, 83, 80, 0.03);
}

/* 错题解析区域强调 */
.question-card.is-wrong-card .question-card__explain {
  background: rgba(46, 175, 97, 0.06);
  border-left: 3px solid var(--success);
  color: #2a4a3a;
  font-weight: 500;
}

/* ===== 英语跟读 ===== */
.reading-card {
  background: rgba(255,255,255,0.88);
  border: 1px solid rgba(138,108,255,0.15);
  border-radius: 12px;
  padding: 10px 12px;
  margin-bottom: 8px;
}

.reading-card.is-listening {
  border-color: rgba(138,108,255,0.4);
  box-shadow: 0 6px 16px rgba(138,108,255,0.12);
}

.reading-card__top {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 5px;
}

.reading-card__index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(138,108,255,0.12);
  color: #6c56d8;
  font-weight: 700;
  font-size: 0.8rem;
}

.reading-card__level {
  padding: 2px 9px;
  border-radius: 999px;
  background: rgba(26,42,74,0.08);
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
}

.reading-card__level.is-good { background: rgba(46,175,97,0.12); color: var(--success); }
.reading-card__level.is-warn { background: rgba(239,83,80,0.12); color: var(--error); }

.reading-card__target {
  margin: 6px 0 3px;
  font-size: 1.1rem;
  font-weight: 700;
  color: #1a2a4a;
}

.reading-card__meaning,
.reading-card__example,
.reading-card__score {
  margin: 3px 0 0;
  font-size: 0.83rem;
  color: var(--muted);
  line-height: 1.5;
}

.reading-card__meaning { font-weight: 700; color: #44516a; }

/* 短语卡片样式 */
.reading-card--phrase {
  border-color: rgba(5, 150, 105, 0.18);
}
.reading-card--phrase .reading-card__index {
  background: rgba(5, 150, 105, 0.12);
  color: #059669;
}
.reading-card--phrase .reading-card__target {
  color: #065f46;
}
.reading-card--phrase.is-listening {
  border-color: rgba(5, 150, 105, 0.4);
  box-shadow: 0 6px 16px rgba(5, 150, 105, 0.12);
}

/* 单词/短语分区标题 */
.reading-section { margin-bottom: 12px; }
.reading-section__title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--muted);
  margin: 10px 0 6px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--border);
}


.reading-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 8px;
}

.reading-action {
  border: 0;
  border-radius: 10px;
  padding: 7px 12px;
  cursor: pointer;
  font-weight: 700;
  font-size: 0.82rem;
  transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
}

.reading-action:hover { transform: translateY(-1px); }
.reading-action:disabled { cursor: not-allowed; opacity: 0.65; }

.reading-action--speak { background: rgba(74,144,226,0.15); color: var(--primary-deep); }
.reading-action--record {
  background: linear-gradient(135deg, #8a6cff, #6c8cff);
  color: #fff;
  box-shadow: 0 6px 14px rgba(108,86,216,0.2);
}

.reading-action--record.is-active { background: linear-gradient(135deg, #e67e22, #f39c12); }

/* ===== 按钮 ===== */
.btn {
  border: 0;
  border-radius: 12px;
  padding: 9px 16px;
  cursor: pointer;
  font-weight: 700;
  font-size: 0.88rem;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  flex: 1;
  text-align: center;
}

.btn:hover { transform: translateY(-1px); }
.btn--primary {
  background: linear-gradient(135deg, var(--primary), #6aa8ff);
  color: #fff;
  box-shadow: 0 10px 18px rgba(74,144,226,0.22);
}
.btn--ghost { background: rgba(26,42,74,0.08); color: var(--text); }
.btn--week-report-sm {
  border: 0;
  border-radius: 999px;
  padding: 7px 16px;
  background: linear-gradient(135deg, var(--primary), #6aa8ff);
  color: #fff;
  cursor: pointer;
  font-weight: 700;
  font-size: 0.88rem;
  box-shadow: 0 6px 16px rgba(74,144,226,0.22);
  transition: transform 0.18s ease;
}
.btn--week-report-sm:hover:not(:disabled) { transform: translateY(-1px); }
.btn--week-report-sm:disabled {
  background: rgba(26,42,74,0.12);
  color: var(--muted);
  cursor: not-allowed;
  box-shadow: none;
}

/* ===== 结果面板 ===== */
.result-panel { margin-top: 12px; }

.result-card {
  border-radius: 16px;
  padding: 14px 16px;
  background: linear-gradient(135deg, rgba(74,144,226,0.1), rgba(138,108,255,0.1));
  border: 1px solid rgba(74,144,226,0.1);
}

.result-card h3, .result-card p { margin: 0; }
.result-card p { margin-top: 7px; color: var(--muted); font-size: 0.88rem; line-height: 1.6; }

.result-badges { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 10px; }

.result-badge {
  padding: 4px 10px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.8rem;
}

.result-badge.good { background: rgba(46,175,97,0.14); color: var(--success); }
.result-badge.keep { background: rgba(74,144,226,0.14); color: var(--primary-deep); }

/* ===== 其他学科切换栏 ===== */
.other-subjects-bar {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.other-subject-btn {
  border-radius: 999px;
  padding: 8px 20px;
  background: rgba(26,42,74,0.07);
  color: var(--text);
  cursor: pointer;
  font-weight: 700;
  font-size: 0.92rem;
  border: 2px solid transparent;
  transition: all 0.2s ease;
}

.other-subject-btn:hover { background: rgba(74,144,226,0.1); }
.other-subject-btn.is-active {
  background: rgba(74,144,226,0.14);
  border-color: var(--primary);
  color: var(--primary-deep);
}

/* ===== 总体成绩 ===== */
.overall-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.overall-bar__label { font-size: 0.9rem; color: var(--muted); font-weight: 700; white-space: nowrap; }

.overall-bar__track {
  flex: 1;
  height: 10px;
  background: rgba(26,42,74,0.08);
  border-radius: 99px;
  overflow: hidden;
}

.overall-bar__fill {
  height: 100%;
  background: linear-gradient(90deg, #4a90e2, #6aa8ff);
  border-radius: 99px;
  transition: width 0.5s ease;
}

.overall-bar__text { font-weight: 700; font-size: 0.9rem; color: var(--text); white-space: nowrap; }

.overall-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px;
}

.overall-card {
  background: rgba(255,255,255,0.78);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.overall-card__dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.overall-card__info { flex: 1; }
.overall-card__name { font-size: 0.85rem; color: var(--muted); }
.overall-card__score { font-size: 1.05rem; font-weight: 700; color: var(--text); }

/* ===== 周报模态框 ===== */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(26,42,74,0.55);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  padding: 20px;
}

.modal[hidden] { display: none; }

.modal__dialog {
  background: var(--panel);
  border-radius: 28px;
  width: 100%;
  max-width: 660px;
  max-height: 88vh;
  overflow-y: auto;
  box-shadow: 0 30px 80px rgba(26,42,74,0.25);
}

.modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px 0;
  position: sticky;
  top: 0;
  background: var(--panel);
  border-radius: 28px 28px 0 0;
}

.modal__header h3 { margin: 0; font-size: 1.25rem; }

.modal__close {
  border: 0;
  background: rgba(26,42,74,0.1);
  border-radius: 50%;
  width: 34px;
  height: 34px;
  font-size: 1.3rem;
  cursor: pointer;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal__body { padding: 18px 22px 22px; }

.week-report__header { margin-bottom: 14px; }
.week-report__title { font-size: 1.25rem; font-weight: 700; }
.week-report__subtitle { color: var(--muted); font-size: 0.88rem; margin-top: 4px; }

.week-report__chart {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 100px;
  padding: 10px 10px 0;
  background: rgba(26,42,74,0.04);
  border-radius: 16px;
  margin-bottom: 14px;
}

.chart-bar {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  height: 100%;
  position: relative;
}

.chart-bar__fill {
  width: 100%;
  background: linear-gradient(180deg, #4a90e2, #6aa8ff);
  border-radius: 6px 6px 0 0;
  min-height: 4px;
  position: absolute;
  bottom: 22px;
  transition: height 0.4s ease;
}

.chart-bar__fill.is-today { background: linear-gradient(180deg, #8a6cff, #6c8cff); }
.chart-bar__label { font-size: 0.68rem; color: var(--muted); position: absolute; bottom: 4px; }
.chart-bar__score { font-size: 0.65rem; font-weight: 700; color: var(--muted); position: absolute; top: 0; }

.week-report__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 12px; }

.week-stat {
  background: rgba(255,255,255,0.7);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px 10px;
  text-align: center;
}

.week-stat span { display: block; font-size: 0.82rem; color: var(--muted); }
.week-stat strong { display: block; font-size: 1.2rem; margin-top: 4px; }

.week-report__subjects { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.week-report__wrongs { border-top: 1px solid var(--border); padding-top: 14px; }
.week-report__wrongs-title { font-size: 0.95rem; font-weight: 700; margin-bottom: 10px; }
.week-report__wrongs-list { display: grid; gap: 8px; margin-bottom: 12px; }

.wrong-mini-card {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(239,83,80,0.08);
  border: 1px solid rgba(239,83,80,0.18);
  border-radius: 12px;
  padding: 8px 12px;
  cursor: pointer;
  transition: background 0.15s;
}

.wrong-mini-card:hover { background: rgba(239,83,80,0.14); }

.wrong-mini-card__sub {
  background: rgba(239,83,80,0.15);
  color: #c0392b;
  border-radius: 99px;
  padding: 2px 7px;
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
}

.wrong-mini-card__q { font-size: 0.88rem; color: var(--text); }
.wrong-mini-more { text-align: center; color: var(--muted); font-size: 0.85rem; padding: 4px; }

.week-report__empty {
  text-align: center;
  padding: 22px;
  background: rgba(46,175,97,0.08);
  border-radius: 16px;
  color: var(--success);
  font-weight: 700;
  font-size: 1rem;
}

/* ===== 错题重练 ===== */
.wrong-review-panel {
  padding: 14px 18px;
  border-radius: 20px;
  border: 1px solid rgba(74,144,226,0.3);
  background: linear-gradient(135deg, rgba(74,144,226,0.1), rgba(138,108,255,0.08));
  margin-bottom: 14px;
}

.wrong-review__head { margin-bottom: 10px; }
.wrong-review__progress { font-size: 0.88rem; color: var(--muted); font-weight: 700; margin-bottom: 8px; }

.wrong-review__bar {
  height: 6px;
  background: rgba(26,42,74,0.1);
  border-radius: 99px;
  overflow: hidden;
}

.wrong-review__bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #4a90e2, #6aa8ff);
  border-radius: 99px;
  transition: width 0.3s ease;
}

/* ===== 古诗学习 ===== */
.poetry-card {
  background: rgba(255,159,67,0.08);
  border: 1.5px solid rgba(255,159,67,0.25);
  border-radius: 16px;
  padding: 14px 16px;
  margin-bottom: 12px;
}

.poetry-card__text {
  font-size: 1.15rem;
  line-height: 2;
  color: #27324a;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-align: center;
  margin-bottom: 10px;
}

.poetry-card__actions { display: flex; align-items: center; gap: 10px; }
.poetry-card__status { font-size: 0.83rem; color: #27ae60; font-weight: 700; }

.poetry-translate, .poetry-appreciate {
  background: rgba(255,255,255,0.85);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 14px;
  margin-bottom: 10px;
}

.poetry-translate h4, .poetry-appreciate h4 {
  margin: 0 0 5px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--primary);
}

.poetry-translate p, .poetry-appreciate p {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.7;
  color: #44516a;
}

/* ===== 科学/历史知识卡片 ===== */
.science-card {
  background: rgba(255,255,255,0.82);
  border: 1px solid rgba(39,174,96,0.12);
  border-radius: 14px;
  padding: 12px;
  margin-bottom: 8px;
}

.science-card__top {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}

.science-card__index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(39,174,96,0.12);
  color: #1a7a4a;
  font-weight: 700;
  font-size: 0.8rem;
}

.science-card__tag {
  padding: 2px 9px;
  border-radius: 999px;
  background: rgba(39,174,96,0.12);
  color: #1a7a4a;
  font-size: 0.75rem;
  font-weight: 700;
}

.science-card__title {
  margin: 6px 0 3px;
  font-size: 1.05rem;
  font-weight: 700;
  color: #1a2a4a;
}

.science-card__desc {
  margin: 3px 0 0;
  font-size: 0.83rem;
  color: var(--muted);
  line-height: 1.5;
}

.science-points {
  margin: 7px 0 0;
  padding-left: 14px;
  color: #44516a;
  font-size: 0.85rem;
}

.science-points li + li { margin-top: 4px; }

.science-card__tip {
  margin: 7px 0 0;
  padding: 7px 10px;
  border-radius: 10px;
  background: rgba(39,174,96,0.08);
  color: #1a7a4a;
  font-size: 0.83rem;
}

/* ===== 响应式 ===== */
@media (max-width: 1100px) {
  .subject-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .subject-grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .main-layout { flex-direction: column; }
  .news-sidebar { width: 100%; position: static; max-height: none; }
  .news-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; }
}

@media (max-width: 700px) {
  .page-shell { padding: 14px 12px 28px; gap: 12px; }
  .hero, .panel { border-radius: 18px; padding: 16px; }
  .subject-grid-4, .subject-grid-3 { grid-template-columns: 1fr; }
  .subject-card { }
  .hero__topbar { gap: 8px; }
  .overall-cards { grid-template-columns: repeat(2, 1fr); }
  .week-report__stats { grid-template-columns: repeat(3, 1fr); }
  .news-list { grid-template-columns: 1fr; }
  .news-sidebar { padding: 14px; }
}

@media (max-width: 440px) {
  .hero h1 { font-size: 1.6rem; }
  .subject-card__name { font-size: 1rem; }
  .btn { font-size: 0.83rem; padding: 8px 12px; }
}

.pending-tag {
  display: inline-block;
  background: linear-gradient(135deg, #ff9800, #ff5722);
  color: #fff;
  font-size: 0.7rem;
  padding: 2px 8px;
  border-radius: 99px;
  font-weight: 700;
  vertical-align: middle;
  margin-left: 6px;
}

.start-subject-panel {
  display: flex;
  justify-content: center;
  padding: 30px 20px;
}

.btn--start-other {
  font-size: 1.1rem;
  padding: 14px 40px;
}

.date-picker {
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid rgba(74, 144, 226, 0.3);
  background: rgba(255,255,255,0.9);
  font-family: inherit;
  font-size: 0.85rem;
  color: #333;
  cursor: pointer;
}

.btn--catchup {
  background: linear-gradient(135deg, #4a90e2, #6aa8ff);
  color: #fff;
  border: none;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.btn--catchup:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(74, 144, 226, 0.4);
}

.catchup-banner {
  background: linear-gradient(135deg, #ff9800, #ff5722);
  color: #fff;
  padding: 12px 20px;
  border-radius: 12px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
}

.catchup-banner__icon {
  font-size: 1.5rem;
}

.catchup-banner__text {
  flex: 1;
}

.catchup-banner__text small {
  display: block;
  font-weight: 400;
  opacity: 0.9;
  font-size: 0.85rem;
}

/* ===== 补做日期选择面板 ===== */
.catchup-panel {
  background: rgba(255, 255, 255, 0.95);
  border: 1.5px solid rgba(74, 144, 226, 0.25);
  border-radius: 18px;
  padding: 18px 20px;
  box-shadow: 0 12px 40px rgba(74, 144, 226, 0.12);
  animation: slideDown 0.3s ease;
}

.catchup-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.catchup-panel__header h3 {
  margin: 0;
  font-size: 1.05rem;
  color: #1a2a4a;
}

.catchup-panel__close {
  border: 0;
  background: rgba(26, 42, 74, 0.08);
  border-radius: 50%;
  width: 30px;
  height: 30px;
  font-size: 1.2rem;
  cursor: pointer;
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.catchup-panel__close:hover {
  background: rgba(239, 83, 80, 0.15);
  color: var(--error);
}

.catchup-panel__dates {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 10px;
}

.catchup-date-card {
  background: rgba(26, 42, 74, 0.04);
  border: 1.5px solid rgba(26, 42, 74, 0.1);
  border-radius: 14px;
  padding: 12px 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}

.catchup-date-card:hover {
  border-color: var(--primary);
  background: rgba(74, 144, 226, 0.08);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(74, 144, 226, 0.15);
}

.catchup-date-card.is-today {
  border-color: rgba(138, 108, 255, 0.4);
  background: rgba(138, 108, 255, 0.08);
}

.catchup-date-card.is-today .catchup-date-card__label {
  color: #6c3dd8;
}

.catchup-date-card.is-active {
  border-color: var(--primary);
  background: rgba(74, 144, 226, 0.15);
  box-shadow: 0 4px 12px rgba(74, 144, 226, 0.2);
}

.catchup-date-card__weekday {
  font-size: 0.75rem;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 4px;
}

.catchup-date-card__date {
  font-size: 1rem;
  font-weight: 700;
  color: #1a2a4a;
  margin-bottom: 6px;
}

.catchup-date-card__label {
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 999px;
  padding: 2px 8px;
  display: inline-block;
}

.catchup-date-card__label.is-done {
  background: rgba(46, 175, 97, 0.12);
  color: var(--success);
}

.catchup-date-card__label.is-partial {
  background: rgba(230, 126, 34, 0.12);
  color: #e67e22;
}

.catchup-date-card__label.is-todo {
  background: rgba(239, 83, 80, 0.1);
  color: var(--error);
}

.catchup-date-card__label.is-today-label {
  background: rgba(138, 108, 255, 0.12);
  color: #6c3dd8;
}

/* 备案号底部 */
.icp-footer {
  text-align: center;
  padding: 16px 0 12px;
  margin-top: 24px;
  border-top: 1px solid var(--border);
}
.icp-footer a {
  color: var(--muted);
  font-size: 0.78rem;
  text-decoration: none;
  letter-spacing: 0.02em;
}
.icp-footer a:hover {
  color: var(--primary);
  text-decoration: underline;
}
