/* ===== 学习进度独立页面（与 achievement/wrongbook 风格统一） ===== */
.progress-page {
  min-height: 100vh;
  background: var(--gc-background);
  padding: 0 0 40px;
}

/* 顶部栏（复用 achievement/wrongbook 风格） */
.progress-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--gc-border);
}
.progress-title {
  display: flex;
  align-items: center;
  gap: 10px;
}
.progress-title-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(79,140,255,0.15), rgba(79,140,255,0.25));
  color: var(--gc-primary);
}
.progress-title-main {
  font-size: 17px;
  font-weight: 800;
  color: var(--gc-foreground);
  line-height: 1.2;
}
.progress-title-sub {
  font-size: 11px;
  color: var(--gc-muted-foreground);
  font-weight: 500;
  margin-top: 2px;
}

/* ===== 总进度大横幅 ===== */
.progress-overall-card {
  margin: 16px;
  padding: 20px;
  border-radius: var(--gc-radius-lg);
  background: linear-gradient(135deg, #4F8CFF 0%, #7C3AED 100%);
  color: white;
  box-shadow: 0 8px 24px rgba(79,140,255,0.3);
  position: relative;
  overflow: hidden;
}
.progress-overall-card::before {
  content: '📊';
  position: absolute;
  right: -10px;
  bottom: -16px;
  font-size: 120px;
  opacity: 0.12;
  line-height: 1;
}
.progress-overall-label {
  font-size: 12px;
  font-weight: 600;
  opacity: 0.85;
  margin-bottom: 4px;
}
.progress-overall-num {
  font-size: 42px;
  font-weight: 900;
  line-height: 1;
  margin-bottom: 12px;
}
.progress-overall-bar {
  height: 10px;
  border-radius: 5px;
  background: rgba(255,255,255,0.2);
  overflow: hidden;
  margin-bottom: 8px;
}
.progress-overall-bar span {
  display: block;
  height: 100%;
  border-radius: 5px;
  background: white;
  transition: width 0.5s ease;
}
.progress-overall-sub {
  font-size: 12px;
  opacity: 0.88;
  font-weight: 600;
}

/* ===== 学科进度卡片列表 ===== */
.progress-detail-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 0 16px;
}
.progress-detail-card {
  background: var(--gc-card);
  border-radius: var(--gc-radius-md);
  padding: 14px;
  box-shadow: var(--gc-shadow-sm);
  border: 1px solid var(--gc-border);
  border-left-width: 4px;
}
.progress-detail-card.subj-card-math    { border-left-color: var(--gc-math); }
.progress-detail-card.subj-card-chinese { border-left-color: var(--gc-chinese); }
.progress-detail-card.subj-card-english { border-left-color: var(--gc-english); }

.progress-detail-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.progress-detail-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}
.progress-detail-icon.subj-bg-math    { background: linear-gradient(135deg, #4F8CFF, #3B6FD9); }
.progress-detail-icon.subj-bg-chinese { background: linear-gradient(135deg, #F97316, #EA580C); }
.progress-detail-icon.subj-bg-english { background: linear-gradient(135deg, #8B5CF6, #7C3AED); }
.progress-detail-info { flex: 1; min-width: 0; }
.progress-detail-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--gc-foreground);
  margin-bottom: 2px;
}
.progress-detail-sub {
  font-size: 11px;
  color: var(--gc-muted-foreground);
}
.progress-detail-percent {
  font-size: 18px;
  font-weight: 800;
  flex-shrink: 0;
}

.progress-detail-bar-bg {
  height: 8px;
  border-radius: 4px;
  background: var(--gc-muted);
  overflow: hidden;
  margin-bottom: 12px;
}
.progress-detail-bar-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.4s ease;
}

/* 10 章小节进度 */
.progress-detail-chapters {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px 10px;
}
.chapter-mini {
  display: grid;
  grid-template-columns: 36px 1fr 38px;
  align-items: center;
  gap: 6px;
  padding: 4px 0;
}
.chapter-mini-label {
  font-size: 10px;
  font-weight: 600;
  color: var(--gc-muted-foreground);
}
.chapter-mini-bar {
  height: 6px;
  border-radius: 3px;
  background: var(--gc-muted);
  overflow: hidden;
}
.chapter-mini-bar span {
  display: block;
  height: 100%;
  border-radius: 3px;
  transition: width 0.3s ease;
}
.chapter-mini-num {
  font-size: 10px;
  color: var(--gc-muted-foreground);
  font-weight: 600;
  text-align: right;
}

/* ===== Profile 页学习进度入口卡片（渐变横幅，与错题本入口风格统一） ===== */
.profile-progress-entry-card {
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #EFF6FF 0%, #DBEAFE 100%) !important;
  border: 1px solid rgba(79,140,255,0.2);
}
.profile-progress-entry-card::before {
  content: '';
  position: absolute;
  right: -30px;
  top: -30px;
  width: 120px;
  height: 120px;
  background: radial-gradient(circle, rgba(79,140,255,0.15) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.profile-progress-entry-card::after {
  content: '📊';
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 36px;
  opacity: 0.18;
  pointer-events: none;
}
.profile-progress-entry-card:active {
  transform: scale(0.98);
  box-shadow: var(--gc-shadow-md);
}
.profile-progress-entry-card .section-head {
  margin-bottom: 8px;
  position: relative;
  z-index: 1;
}
.profile-progress-entry-card .section-icon {
  background: linear-gradient(135deg, #4F8CFF, #3B6FD9) !important;
  color: white !important;
  box-shadow: 0 2px 8px rgba(79,140,255,0.3);
}
.profile-progress-entry-card .section-title {
  color: #1E40AF;
}
.profile-progress-entry-card .section-link-btn {
  background: rgba(79,140,255,0.18);
  color: #1E40AF;
}

/* ===== Profile 页学习进度摘要（独立类名，避免与 orchard.css 冲突） ===== */
.profile-progress-summary {
  margin-top: 6px;
}
.profile-progress-total-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 8px;
}
.profile-progress-percent {
  font-size: 22px;
  font-weight: 800;
  color: var(--gc-primary);
  line-height: 1;
}
.profile-progress-sub {
  font-size: 11px;
  color: var(--gc-muted-foreground);
  font-weight: 600;
}
/* 总进度横条 */
.profile-progress-total-bar {
  height: 10px;
  border-radius: 5px;
  background: var(--gc-muted);
  overflow: hidden;
  margin-bottom: 10px;
}
.profile-progress-total-fill {
  height: 100%;
  border-radius: 5px;
  background: linear-gradient(90deg, #4F8CFF, #7C3AED);
  transition: width 0.5s ease;
}
/* 三学科小进度 */
.profile-progress-subjects {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.profile-progress-subject {
  display: grid;
  grid-template-columns: 48px 1fr 32px;
  align-items: center;
  gap: 8px;
}
.profile-progress-subject-name {
  font-size: 11px;
  font-weight: 600;
  color: var(--gc-muted-foreground);
}
.profile-progress-subject-bar {
  height: 6px;
  border-radius: 3px;
  background: var(--gc-muted);
  overflow: hidden;
}
.profile-progress-subject-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.4s ease;
}
.profile-progress-subject-num {
  font-size: 10px;
  color: var(--gc-muted-foreground);
  font-weight: 700;
  text-align: right;
}
