/* ============================================================
   首页样式
   ============================================================ */

/* ---------- Hero ---------- */
.hero {
  padding: 56px 0 44px;
  position: relative;
  overflow: hidden;
  /* 青藤官网浅色 banner 风格 */
  background: linear-gradient(135deg, #eaf7fa 0%, #f4fbfd 40%, #ffffff 100%);
  border-bottom: 1px solid var(--border-soft);
}
.hero::after {
  content: "";
  position: absolute; right: -120px; top: -120px;
  width: 420px; height: 420px; border-radius: 50%;
  background: radial-gradient(circle, rgba(0,164,197,0.14), transparent 70%);
  pointer-events: none;
}
.hero-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; }
.hero-tag { margin-bottom: 16px; }
.hero-text h1 {
  font-size: 32px; line-height: 1.35; font-weight: 800; letter-spacing: 0.5px;
  margin-bottom: 16px;
}
.hero-text h1 .accent { color: var(--accent); }
.hero-text p { color: var(--text-muted); font-size: 15px; max-width: 560px; margin-bottom: 26px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* Hero 面板 */
.hero-panel { padding: 24px; }
.hero-panel-head {
  display: flex; align-items: center; gap: 8px;
  font-weight: 600; color: var(--accent); font-size: 14px; margin-bottom: 18px;
}
.pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent2); animation: pulse 1.6s infinite; }
.hero-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 20px; }
.stat {
  background: var(--bg-panel-2); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 16px; text-align: center;
}
.stat .num { font-size: 30px; font-weight: 800; color: var(--accent); font-family: var(--mono); }
.stat .label { display: block; color: var(--text-muted); font-size: 12px; margin-top: 4px; }
.hero-tags { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------- Section ---------- */
.section { margin-top: 40px; }
.section-title {
  font-size: 22px; font-weight: 700; margin-bottom: 8px; letter-spacing: 0.5px;
  padding-left: 12px; border-left: 3px solid var(--accent);
}
.section-sub { color: var(--text-muted); font-size: 14px; margin-bottom: 22px; }

/* ---------- 模块卡片 ---------- */
.module-card {
  padding: 26px; display: block; color: var(--text);
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.module-card:hover { transform: translateY(-4px); border-color: var(--accent); color: var(--text); }
.module-icon { font-size: 32px; margin-bottom: 14px; }
.module-card h3 { font-size: 17px; margin-bottom: 10px; color: var(--text); }
.module-card p { color: var(--text-muted); font-size: 14px; margin-bottom: 14px; }
.module-more { color: var(--accent); font-size: 14px; font-weight: 600; }

/* ---------- 课程列表 ---------- */
.course-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.course-item {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 18px; border: 1px solid var(--border);
  border-radius: var(--radius); background: var(--bg-panel);
  transition: border-color 0.2s ease, background 0.2s ease;
}
.course-item:hover { border-color: var(--accent); background: var(--bg-panel-2); }
.course-f {
  flex-shrink: 0; width: 52px; height: 52px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: 13px; font-weight: 700;
  background: var(--accent-dim); color: var(--accent);
  border: 1px solid rgba(0,164,197,0.35);
}
.course-info { flex: 1; min-width: 0; }
.course-info h4 { font-size: 15px; margin-bottom: 4px; color: var(--text); }
.course-info .course-meta { color: var(--text-faint); font-size: 12px; }
.course-progress { flex-shrink: 0; width: 120px; }
.course-progress .progress { margin-bottom: 4px; }
.course-progress .pct { font-family: var(--mono); font-size: 12px; color: var(--text-muted); }

/* ---------- 进度总览 ---------- */
.progress-overview { padding: 22px 26px; }
.progress-overview-head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 10px; font-weight: 600;
}
#overall-progress-text { color: var(--accent); font-size: 15px; }
#progress-note { margin-top: 10px; }

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .course-list { grid-template-columns: 1fr; }
}
