﻿/*
TeachAny 清新明亮主题 (Bright Light Theme)
专为小学数学课件设计
*/
:root {
  --bg: #fafbfc;
  --bg-gradient: linear-gradient(135deg, #e8f4fd 0%, #fef9e7 50%, #e8f5e9 100%);
  --panel: #ffffff;
  --card: #ffffff;
  --card-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  --card-hover: 0 8px 30px rgba(0, 0, 0, 0.12);
  --line: #e2e8f0;
  --text: #1a202c;
  --text-secondary: #4a5568;
  --muted: #718096;
  --brand: #4299e1;
  --brand-light: #ebf8ff;
  --brand-2: #9f7aea;
  --brand-2-light: #faf5ff;
  --ok: #48bb78;
  --ok-light: #f0fff4;
  --warn: #ed8936;
  --warn-light: #fffaf0;
  --red: #f56565;
  --red-light: #fff5f5;
  --purple: #9f7aea;
  --purple-light: #faf5ff;
  --orange: #ed8936;
  --orange-light: #fffaf0;
  --yellow: #ecc94b;
  --yellow-light: #fffff0;
  --teal: #38b2ac;
  --teal-light: #e6fffa;
  --pink: #ed64a6;
  --pink-light: #fff5f7;
  --blue-light: #ebf8ff;
  --green-light: #f0fff4;
  --border-radius: 16px;
  --border-radius-sm: 12px;
  --border-radius-lg: 24px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  max-width: 100%;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  padding-top: env(safe-area-inset-top);
  padding-bottom: calc(24px + env(safe-area-inset-bottom));
  background: var(--bg);
  background-image: var(--bg-gradient);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Source Han Sans SC", "Microsoft YaHei", system-ui, sans-serif;
  line-height: 1.8;
  font-size: 16px;
  min-height: 100vh;
}

a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-2); }

button, input, select, textarea { min-height: 44px; }

/* 顶部导航栏 */
.teachany-brand-bar {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 20px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  font-size: 18px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: white;
  font-weight: 900;
  font-size: 16px;
  box-shadow: 0 2px 8px rgba(66, 153, 225, 0.3);
}

.brand-right {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
}

.brand-tag {
  background: var(--brand-light);
  color: var(--brand);
  padding: 4px 12px;
  border-radius: 20px;
  font-weight: 600;
}

/* Hero 区域 */
.hero {
  padding: 60px 20px 40px;
  text-align: center;
  background: linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(237,244,253,0.5) 100%);
}

.hero h1 {
  font-size: clamp(32px, 6vw, 56px);
  line-height: 1.2;
  margin: 0 auto 16px;
  color: var(--text);
  text-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.hero .subtitle {
  color: var(--text-secondary);
  font-size: clamp(16px, 2.5vw, 20px);
  max-width: 800px;
  margin: 0 auto;
}

/* 课件类型导航标签 */
.lesson-type-nav {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 20px;
  background: white;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 60px;
  z-index: 90;
}

.lesson-type-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border: 2px solid var(--line);
  border-radius: 30px;
  background: white;
  color: var(--text-secondary);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}

.lesson-type-btn:hover {
  border-color: var(--brand);
  color: var(--brand);
  transform: translateY(-2px);
}

.lesson-type-btn.active {
  background: var(--brand);
  border-color: var(--brand);
  color: white;
  box-shadow: 0 4px 12px rgba(66, 153, 225, 0.3);
}

.lesson-type-btn .icon { font-size: 20px; }

/* 区块容器 */
.section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 20px;
}

/* 卡片样式 */
.card {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--border-radius);
  padding: 28px;
  box-shadow: var(--card-shadow);
  transition: all 0.3s;
}

.card:hover {
  box-shadow: var(--card-hover);
  transform: translateY(-2px);
}

/* 标签 */
.phase-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--brand);
  background: var(--brand-light);
  border: 1px solid rgba(66, 153, 225, 0.2);
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 600;
}

.phase-tag.orange { color: var(--orange); background: var(--orange-light); border-color: rgba(237, 137, 54, 0.2); }
.phase-tag.green { color: var(--ok); background: var(--ok-light); border-color: rgba(72, 187, 120, 0.2); }
.phase-tag.purple { color: var(--purple); background: var(--purple-light); border-color: rgba(159, 122, 234, 0.2); }
.phase-tag.teal { color: var(--teal); background: var(--teal-light); border-color: rgba(56, 178, 172, 0.2); }
.phase-tag.pink { color: var(--pink); background: var(--pink-light); border-color: rgba(237, 100, 166, 0.2); }
.phase-tag.yellow { color: #b7791f; background: var(--yellow-light); border-color: rgba(236, 201, 75, 0.3); }

/* 网格布局 */
.grid, .objectives {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }

/* 选项按钮 */
.choice {
  width: 100%;
  text-align: left;
  border: 2px solid var(--line);
  border-radius: var(--border-radius-sm);
  background: white;
  color: var(--text);
  padding: 16px 20px;
  cursor: pointer;
  transition: all 0.25s;
  font-size: 15px;
  font-family: inherit;
}

.choice:hover {
  border-color: var(--brand);
  background: var(--brand-light);
  transform: translateX(4px);
}

.choice.selected, .choice:active {
  border-color: var(--brand);
  background: var(--brand-light);
  box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.15);
}

/* 结果提示 */
.result {
  padding: 16px 20px;
  border-radius: var(--border-radius-sm);
  background: var(--ok-light);
  border: 1px solid rgba(72, 187, 120, 0.3);
  color: #276749;
}

.result.warn {
  background: var(--warn-light);
  border-color: rgba(237, 137, 54, 0.3);
  color: #975a16;
}

.result.error-bg {
  background: var(--red-light);
  border-color: rgba(245, 101, 101, 0.3);
  color: #c53030;
}

.result.success-bg {
  background: var(--ok-light);
  border-color: rgba(72, 187, 120, 0.4);
  color: #276749;
}

/* ABT 叙事框 */
.abt-box {
  background: linear-gradient(135deg, var(--purple-light), var(--brand-light));
  border: 1px solid rgba(159, 122, 234, 0.2);
  border-radius: var(--border-radius-sm);
  padding: 20px;
  margin: 20px 0;
}

.abt-box strong { color: var(--purple); }

/* 进度条 */
.progress-bar {
  background: var(--line);
  border-radius: 999px;
  height: 12px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--brand), var(--teal));
  border-radius: 999px;
  transition: width 0.5s ease;
}

/* 星级 */
.star { color: var(--line); font-size: 24px; transition: color 0.3s; }
.star.earned { color: var(--yellow); }

/* Canvas 容器 */
.canvas-wrap {
  overflow: auto;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: var(--border-radius-sm);
  padding: 16px;
  margin-top: 16px;
}

canvas { display: block; margin: 0 auto; max-width: 100%; }

/* 滑块 */
input[type="range"] {
  width: 100%;
  margin: 10px 0;
  accent-color: var(--brand);
}

/* 链接卡片（用于四课联动） */
.link-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  background: white;
  border: 2px solid var(--line);
  border-radius: var(--border-radius);
  transition: all 0.3s;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}

.link-card:hover {
  border-color: var(--brand);
  box-shadow: 0 4px 16px rgba(66, 153, 225, 0.15);
  transform: translateY(-2px);
}

.link-card .icon {
  font-size: 32px;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: var(--brand-light);
}

.link-card .arrow {
  margin-left: auto;
  font-size: 24px;
  color: var(--muted);
}

/* 知识点卡片 */
.topic-card {
  position: relative;
  padding: 24px;
  background: white;
  border: 2px solid var(--line);
  border-radius: var(--border-radius);
  transition: all 0.3s;
  overflow: hidden;
}

.topic-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
}

.topic-card:hover {
  border-color: var(--brand);
  box-shadow: var(--card-hover);
  transform: translateY(-4px);
}

.topic-card .badge {
  position: absolute;
  top: 16px;
  right: 16px;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

.badge.up { background: var(--blue-light); color: var(--brand); }
.badge.down { background: var(--green-light); color: var(--ok); }

/* 思维导图 */
.mindmap {
  background: linear-gradient(135deg, #f8fafc, #f1f5f9);
  border-radius: var(--border-radius);
  padding: 30px;
  text-align: center;
}

.mindmap-node {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 12px;
  margin: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}

.mindmap-center {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: white;
  font-size: 18px;
  box-shadow: 0 4px 16px rgba(66, 153, 225, 0.3);
}

.mindmap-child {
  background: white;
  border: 2px solid var(--brand);
  color: var(--brand);
}

.mindmap-child:hover {
  background: var(--brand-light);
  transform: scale(1.05);
}

/* 时间线 */
.timeline {
  position: relative;
  padding-left: 40px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 15px;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--brand), var(--teal));
  border-radius: 999px;
}

.timeline-item {
  position: relative;
  margin-bottom: 24px;
  padding: 20px;
  background: white;
  border-radius: var(--border-radius-sm);
  border-left: 4px solid var(--brand);
  box-shadow: var(--card-shadow);
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -32px;
  top: 24px;
  width: 20px;
  height: 20px;
  background: var(--brand);
  border-radius: 50%;
  border: 4px solid white;
  box-shadow: 0 2px 8px rgba(66, 153, 225, 0.3);
}

/* 四课联动进度指示器 */
.lesson-progress {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 20px;
  background: white;
  border-radius: var(--border-radius);
  margin-bottom: 20px;
}

.progress-step {
  display: flex;
  align-items: center;
  gap: 8px;
}

.progress-step .num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--line);
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  transition: all 0.3s;
}

.progress-step.active .num {
  background: var(--brand);
  color: white;
  box-shadow: 0 2px 8px rgba(66, 153, 225, 0.3);
}

.progress-step.completed .num {
  background: var(--ok);
  color: white;
}

.progress-step .label {
  font-size: 13px;
  color: var(--muted);
  white-space: nowrap;
}

.progress-step.active .label { color: var(--brand); font-weight: 600; }
.progress-step.completed .label { color: var(--ok); }

.progress-arrow {
  color: var(--line);
  font-size: 20px;
}

/* 公式框 */
.formula-box {
  background: linear-gradient(135deg, #f8fafc, #f1f5f9);
  border-radius: var(--border-radius-sm);
  padding: 24px;
  text-align: center;
  border: 1px solid var(--line);
  margin: 12px 0;
}

.formula-highlight {
  color: var(--brand);
  font-weight: 800;
  font-size: 28px;
}

/* 互动按钮组 */
.btn-group {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin: 16px 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border: 2px solid var(--brand);
  border-radius: 30px;
  background: white;
  color: var(--brand);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}

.btn:hover {
  background: var(--brand);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(66, 153, 225, 0.3);
}

.btn.primary {
  background: var(--brand);
  color: white;
}

.btn.primary:hover {
  background: #3182ce;
}

/* 响应式 */
@media (max-width: 768px) {
  .hero { padding: 40px 16px 24px; }
  .section { padding: 24px 16px; }
  .card { padding: 20px; }
  .grid { grid-template-columns: 1fr !important; }
  .lesson-type-nav { top: 56px; padding: 12px; gap: 8px; }
  .lesson-type-btn { padding: 8px 14px; font-size: 13px; }
  h1 { font-size: 28px !important; }
  h2 { font-size: 22px !important; }
}

/* 动画 */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-in-up {
  animation: fadeInUp 0.5s ease forwards;
}

/* 阴影 */
.shadow-sm { box-shadow: 0 2px 8px rgba(0,0,0,0.06); }
.shadow-md { box-shadow: var(--card-shadow); }
.shadow-lg { box-shadow: var(--card-hover); }

/* ===== 课件组件样式（合并自知识点样式，统一主样式） ===== */
/* 人教版三年级数学上册 - 清新明亮主题样式 */
:root {
  --bg-start: #fafbfc;
  --bg-end: #f0f4f8;
  --primary: #4299e1;
  --primary-light: #63b3ed;
  --primary-dark: #3182ce;
  --secondary: #48bb78;
  --accent: #ed8936;
  --danger: #fc8181;
  --card: #ffffff;
  --text: #2d3748;
  --text-muted: #718096;
  --border: #e2e8f0;
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --radius: 16px;
  --radius-sm: 8px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: linear-gradient(135deg, var(--bg-start) 0%, var(--bg-end) 100%);
  min-height: 100vh;
}

/* 四课联动导航条 */
.lesson-progress {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 20px;
  background: linear-gradient(135deg, rgba(66, 153, 225, 0.08) 0%, rgba(72, 187, 120, 0.08) 100%);
  border-bottom: 2px solid var(--border);
  flex-wrap: wrap;
}

.progress-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  background: var(--card);
  border-radius: var(--radius);
  border: 2px solid var(--border);
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 90px;
}

.progress-step:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.progress-step.active {
  border-color: var(--primary);
  background: linear-gradient(135deg, rgba(66, 153, 225, 0.1) 0%, rgba(66, 153, 225, 0.05) 100%);
  box-shadow: var(--shadow);
}

.progress-step.completed {
  border-color: var(--secondary);
  background: linear-gradient(135deg, rgba(72, 187, 120, 0.1) 0%, rgba(72, 187, 120, 0.05) 100%);
}

.progress-step.completed .num {
  background: var(--secondary);
}

.progress-step .num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
}

.progress-step.active .num {
  background: var(--primary);
  animation: pulse 2s infinite;
}

.progress-step .label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
}

.progress-step.active .label {
  color: var(--primary);
  font-weight: 600;
}

.progress-step.completed .label {
  color: var(--secondary);
}

.progress-arrow {
  font-size: 20px;
  color: var(--text-muted);
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(66, 153, 225, 0.4); }
  50% { box-shadow: 0 0 0 8px rgba(66, 153, 225, 0); }
}

/* 页面头部 */
.hero {
  text-align: center;
  padding: 60px 20px 40px;
  background: linear-gradient(135deg, rgba(66, 153, 225, 0.1) 0%, rgba(72, 187, 120, 0.08) 100%);
}

.hero h1 {
  font-size: clamp(28px, 5vw, 48px);
  font-weight: 800;
  color: var(--text);
  margin-bottom: 16px;
}

.hero .subtitle {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}

/* 内容区域 */
.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 20px;
}

.card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
  margin-bottom: 20px;
  border: 1px solid var(--border);
}

.card h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--border);
}

.card h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  margin: 20px 0 12px;
}

/* 互动按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  min-height: 48px;
}

.btn-primary {
  background: var(--primary);
  color: white;
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--secondary);
  color: white;
}

.btn-secondary:hover {
  background: #38a169;
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: white;
}

/* 选择题选项 */
.choice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.choice-item {
  padding: 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--card);
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}

.choice-item:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
}

.choice-item.selected {
  border-color: var(--primary);
  background: rgba(66, 153, 225, 0.1);
}

.choice-item.correct {
  border-color: var(--secondary);
  background: rgba(72, 187, 120, 0.15);
}

.choice-item.wrong {
  border-color: var(--danger);
  background: rgba(252, 129, 129, 0.15);
}

/* 输入框 */
input[type="text"],
input[type="number"],
textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 16px;
  background: var(--card);
  transition: border-color 0.2s ease;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: var(--primary);
}

/* 进度条 */
.progress-bar {
  width: 100%;
  height: 12px;
  background: var(--border);
  border-radius: 6px;
  overflow: hidden;
  margin: 16px 0;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
  border-radius: 6px;
  transition: width 0.3s ease;
}

/* 计时器 */
.timer {
  font-size: 48px;
  font-weight: 700;
  color: var(--primary);
  text-align: center;
  padding: 30px;
  background: linear-gradient(135deg, rgba(66, 153, 225, 0.1) 0%, rgba(66, 153, 225, 0.05) 100%);
  border-radius: var(--radius);
  margin: 20px 0;
}

/* 知识卡片 */
.knowledge-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px;
  background: linear-gradient(135deg, rgba(66, 153, 225, 0.08) 0%, rgba(72, 187, 120, 0.05) 100%);
  border-radius: var(--radius);
  margin-bottom: 16px;
}

.knowledge-card .icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
}

.knowledge-card .content {
  flex: 1;
}

.knowledge-card h4 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 6px;
}

.knowledge-card p {
  font-size: 14px;
  color: var(--text-muted);
}

/* 时间线 */
.timeline {
  position: relative;
  padding-left: 30px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--primary);
}

.timeline-item {
  position: relative;
  padding: 20px;
  background: var(--card);
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
  border: 1px solid var(--border);
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -26px;
  top: 24px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--primary);
  border: 2px solid white;
}

/* 反馈消息 */
.feedback {
  padding: 16px;
  border-radius: var(--radius-sm);
  margin-top: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.feedback.success {
  background: rgba(72, 187, 120, 0.15);
  border: 1px solid var(--secondary);
  color: #276749;
}

.feedback.error {
  background: rgba(252, 129, 129, 0.15);
  border: 1px solid var(--danger);
  color: #c53030;
}

.feedback.info {
  background: rgba(66, 153, 225, 0.15);
  border: 1px solid var(--primary);
  color: #2b6cb0;
}

/* 表格 */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  background: var(--card);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

th, td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

th {
  background: linear-gradient(135deg, rgba(66, 153, 225, 0.1) 0%, rgba(66, 153, 225, 0.05) 100%);
  font-weight: 600;
  color: var(--text);
}

tr:last-child td {
  border-bottom: none;
}

/* Canvas 区域 */
.canvas-container {
  background: var(--card);
  border-radius: var(--radius);
  padding: 20px;
  margin: 20px 0;
  border: 1px solid var(--border);
  overflow: auto;
}

canvas {
  display: block;
  max-width: 100%;
}

/* 响应式 */
@media (max-width: 600px) {
  .lesson-progress {
    gap: 6px;
    padding: 12px;
  }
  
  .progress-step {
    padding: 8px 12px;
    min-width: 70px;
  }
  
  .progress-step .num {
    width: 28px;
    height: 28px;
    font-size: 12px;
  }
  
  .progress-step .label {
    font-size: 11px;
  }
  
  .progress-arrow {
    font-size: 16px;
  }
  
  .hero {
    padding: 40px 16px 30px;
  }
  
  .container {
    padding: 16px;
  }
  
  .card {
    padding: 16px;
  }
  
  .choice-grid {
    grid-template-columns: 1fr;
  }
}

/* 打印样式 */
@media print {
  .lesson-progress {
    display: none;
  }
  
  .card {
    box-shadow: none;
    border: 1px solid #ccc;
  }
}

