/* ========== Pencil 01Jo1: Theory Main Page ========== */

.theory-hero {
  padding: 64px 0 32px;
  background: var(--color-bg-primary);
  position: relative;
}

.theory-hero-title {
  font-size: 32px;
  font-weight: 800;
  line-height: 1.1;
  text-align: center;
  color: var(--color-text-primary);
}

.theory-hero-subtitle {
  font-size: 16px;
  font-weight: normal;
  text-align: center;
  color: var(--color-text-secondary);
  margin-top: 8px;
}

.hero-card {
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  padding: 28px 24px;
}

.hero-card-title {
  font-size: 18px;
  font-weight: 800;
  color: #0F172A;
}

.hero-card-tag {
  display: inline-flex;
  margin-left: 10px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #EFF6FF;
  color: #1D4ED8;
  font-size: 12px;
  font-weight: 600;
}

.hero-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.hero-card-link {
  font-size: 13px;
  font-weight: 800;
  color: #2563EB;
}

.hero-continue-main .hero-continue-k {
  font-size: 12px;
  color: #64748B;
  font-weight: 600;
}
.hero-continue-main .hero-continue-v {
  font-size: 20px;
  font-weight: 800;
  color: #0F172A;
  margin-top: 6px;
}
.hero-continue-main .hero-continue-sub {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.6;
  color: #64748B;
}
.hero-continue-meta {
  display: flex;
  gap: 10px;
  margin-top: 14px;
  flex-wrap: wrap;
}
.meta-pill {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  color: #475569;
  font-size: 12px;
  font-weight: 700;
  border-radius: 999px;
  padding: 8px 12px;
}

/* Overview section：学习状态条 */
.theory-overview {
  padding: 48px 0 0;
  background: var(--color-bg-primary);
}

.overview-status-bar {
  background: #F8FAFC;
  border-radius: 16px;
  border: 1px solid #E2E8F0;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.overview-status-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.overview-status-item {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  font-size: 13px;
  color: #64748B;
}

.overview-status-item .k {
  font-weight: 500;
}

.overview-status-item .v {
  font-weight: 600;
  color: #0F172A;
}

.overview-status-item .badge {
  padding: 3px 8px;
  border-radius: 999px;
  background: #EFF6FF;
  color: #1D4ED8;
  font-size: 11px;
  font-weight: 600;
}

.overview-status-item--grow {
  flex: 1;
  min-width: 200px;
}

.overview-status-cta {
  white-space: nowrap;
}

/* 旧的 overview 卡片样式保留以供后续复用，但当前未使用 */
.overview-title {
  font-size: 22px;
  font-weight: 700;
  color: #18181B;
}
.overview-subtitle {
  margin-top: 8px;
  font-size: 15px;
  color: #64748B;
}
.overview-progress-main {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 24px;
}
.overview-progress-total {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #EFF6FF;
  border-radius: 16px;
  padding: 24px 32px;
  min-width: 180px;
}
.overview-progress-total .num {
  font-size: 32px;
  font-weight: 700;
  color: #2563EB;
}
.overview-progress-total .label {
  margin-top: 4px;
  font-size: 14px;
  color: #64748B;
}
.overview-chapters {
  display: flex;
  gap: 16px;
  flex: 1;
  flex-wrap: wrap;
}

.overview-meta {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.overview-meta-pill {
  padding: 8px 12px;
  border-radius: 999px;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  font-size: 12px;
  font-weight: 600;
  color: #475569;
}

.overview-current {
  margin-top: 16px;
}

.overview-current-label {
  font-size: 12px;
  color: #64748B;
  margin-bottom: 4px;
}

.overview-current-main {
  font-size: 15px;
  font-weight: 600;
  color: #0F172A;
}

.overview-current-main .badge {
  margin-left: 8px;
  padding: 3px 8px;
  border-radius: 999px;
  background: #EFF6FF;
  color: #1D4ED8;
  font-size: 11px;
  font-weight: 600;
}

.overview-bottom {
  margin-top: 24px;
  display: flex;
  gap: 32px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.overview-next {
  flex: 0 0 260px;
}

.overview-next-title {
  font-size: 14px;
  font-weight: 600;
  color: #0F172A;
  margin-bottom: 10px;
}

.overview-next-desc {
  margin-top: 4px;
  font-size: 13px;
  color: #64748B;
  line-height: 1.6;
}

.overview-next-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  color: #64748B;
  margin-top: 4px;
}

.overview-next-row .k {
  white-space: nowrap;
}

.overview-next-row .v {
  font-weight: 600;
  color: #0F172A;
}

.overview-next-btn {
  margin-top: 12px;
  width: 100%;
}

.overview-path-wrapper {
  flex: 1;
  min-width: 220px;
}

.overview-path-title {
  font-size: 14px;
  font-weight: 600;
  color: #0F172A;
  margin-bottom: 10px;
}

.overview-course-structure {
  margin: 0 auto;
  max-width: 1200px;
}

.overview-course-title {
  font-size: 14px;
  font-weight: 600;
  color: #0F172A;
  margin-bottom: 0px;
}
.chapter-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 600;
}
.chapter-pill.done {
  background: #ECFDF5;
  color: #065F46;
}
.chapter-pill.doing {
  background: #EFF6FF;
  color: #1D4ED8;
}
.chapter-pill.todo {
  background: #F1F5F9;
  color: #475569;
}
.chapter-pill .icon {
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
}
.overview-path {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 28px;
  flex-wrap: wrap;
}
.overview-path .path-node {
  background: #EFF6FF;
  border-radius: 14px;
  padding: 14px 20px;
  font-size: 15px;
  font-weight: 600;
}
.overview-path .path-node.active {
  color: #2563EB;
}
.overview-path .badge {
  margin-left: 8px;
}

/* Chapters (Pencil: theoryChaptersSection padding [120,160], list gap 56) */
.theory-chapters {
  padding: 32px 0 72px;
  background: var(--color-bg-primary);
}

.chapters-header {
  margin-bottom: 16px;
}
.theory-chapters-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.theory-chapter {
  background: #FFFFFF;
  border-radius: 22px;
  padding: 20px 20px;
  border: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.chapter--1 { box-shadow: 0 12px 32px rgba(14, 165, 233, 0.125); } /* #0EA5E920 */
.chapter--2 { box-shadow: 0 12px 32px rgba(6, 182, 212, 0.125); }  /* #06B6D420 */
.chapter--3 { box-shadow: 0 12px 32px rgba(245, 158, 11, 0.125); } /* #F59E0B20 */
.chapter--4 { box-shadow: 0 12px 32px rgba(139, 92, 246, 0.125); } /* #8B5CF620 */

.chapter-title-wrapper {
  padding-bottom: 16px;
}
.chapter-header {
  display: block;
}
.chapter-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}
.chapter-title-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.chapter-title-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}
.chapter-title {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.2;
  color: #18181B;
}
.chapter-desc {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  color: #64748B;
}
.chapter-progress-badge {
  font-size: 12px;
  font-weight: 600;
  color: #1D4ED8;
  padding: 3px 8px;
  border-radius: 999px;
  background: #EFF6FF;
}
.chapter-progress-badge--locked {
  color: #9CA3AF;
  background: #F3F4F6;
}

.chapter-locked-badge {
  gap: 12px;
}
.chapter-locked-badge .lock-text {
  font-size: 16px;
  font-weight: 600;
  color: #9CA3AF;
}
.chapter-locked-badge .lock-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.chapter-content-wrapper {
  padding: 16px 0 0;
  border-top: 1px solid #E5E7EB;
}

/* Lessons grid (Pencil: card width 320, gap 36) */
.chapter-lessons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
}
.lesson-card {
  border-radius: 12px;
  padding: 10px 12px;
  background: #FFFFFF;
  border: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: none;
  transition: background-color 0.15s ease;
}
.lesson-card:hover {
  background-color: #F9FAFB;
}
.lesson-icon {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.lesson-title {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3;
  color: #18181B;
}
.lesson-desc {
  font-size: 13px;
  font-weight: 400;
  line-height: 1.6;
  color: #64748B;
}

/* Accent lesson cards (Pencil: colored shadow) */
.lesson-card--accent-red { box-shadow: 0 6px 16px rgba(231, 20, 81, 0.145); }  /* #E7145125 */
.lesson-card--accent-cyan { box-shadow: 0 6px 16px rgba(6, 182, 212, 0.145); }  /* #06B6D425 */
.lesson-card--accent-blue { box-shadow: 0 6px 16px rgba(37, 99, 235, 0.145); }  /* #2563EB25 */

/* Chapter 4 lock overlay (Pencil: chapter4LockOverlay) */
.chapter-lock-overlay {
  border-radius: 18px;
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-align: center;
  margin-bottom: 20px;
}
.chapter-lock-overlay .overlay-title {
  font-size: 18px;
  font-weight: 700;
  color: #18181B;
}
.chapter-lock-overlay .overlay-desc {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  color: #64748B;
  max-width: 520px;
}
.overlay-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}
.overlay-download-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 18px 40px;
  border-radius: 28px;
  background: #F59E0B;
  color: #FFFFFF;
  font-size: 14px;
  font-weight: 600;
}
.overlay-qr {
  width: 96px;
  height: 96px;
  border-radius: 12px;
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.overlay-qr-text {
  font-size: 14px;
  font-weight: 400;
  color: #9CA3AF;
  text-align: center;
}

/* Locked lesson cards (Pencil: fill #F9FAFB, opacity 0.6, shadow #0000000D blur 12 y4) */
.chapter-lessons--locked {
  pointer-events: none;
}
.lesson-card--locked {
  background: #F9FAFB;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.051);
  opacity: 0.6;
}
.lesson-card--locked .lesson-title,
.lesson-card--locked .lesson-desc {
  color: #9CA3AF;
}

@media (max-width: 1200px) {
  .theory-chapters .container {
    padding-left: 80px;
    padding-right: 80px;
  }
}

@media (max-width: 1024px) {
  .hero-main-content {
    flex-direction: column;
  }
  .hero-right-panel {
    width: 100%;
  }
  .theory-chapters .container {
    padding-left: 40px;
    padding-right: 40px;
  }
  .theory-chapter {
    padding: 40px 24px;
  }
  .chapter-title {
    font-size: 32px;
  }
  .chapter-desc {
    font-size: 16px;
  }
}

@media (max-width: 768px) {
  .theory-hero {
    padding: 80px 0 60px;
  }
  .theory-hero-title {
    font-size: 36px;
  }
  .theory-hero-subtitle {
    font-size: 18px;
  }
  .hero-card {
    padding: 24px 20px;
  }
  .overview-progress-main {
    flex-direction: column;
  }
  .theory-chapters {
    padding: 80px 0;
  }
  .theory-chapters .container {
    padding-left: 20px;
    padding-right: 20px;
  }
  .chapter-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .chapter-title-wrapper {
    padding-bottom: 32px;
  }
  .chapter-lock-overlay {
    padding: 40px 20px;
  }
  .lesson-card {
    width: 100%;
  }
}

