/* 自定义样式 */
:root {
  --md-primary-fg-color: #4f46e5;
  --md-accent-fg-color: #7c3aed;
}

/* 标签页样式 */
.md-typeset .tabbed-set > input:checked + label {
  border-bottom-color: var(--md-accent-fg-color);
}

/* 代码块样式 */
.md-typeset pre > code {
  font-size: 0.82rem;
}

/* 表格样式 */
.md-typeset table:not([class]) {
  font-size: 0.82rem;
}

.md-typeset table:not([class]) th {
  background-color: rgba(79, 70, 229, 0.1);
  font-weight: 600;
}

/* 任务列表样式 */
.md-typeset .task-list-item input[type="checkbox"] {
  margin-right: 0.5em;
}

/* 难度标签 */
.difficulty-easy {
  background-color: #10b981;
  color: white;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
}

.difficulty-medium {
  background-color: #f59e0b;
  color: white;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
}

.difficulty-hard {
  background-color: #ef4444;
  color: white;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
}

/* 首页英雄区 */
.hero-section {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 3rem 2rem;
  border-radius: 12px;
  margin-bottom: 2rem;
  text-align: center;
}

.hero-section h1 {
  color: white;
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.hero-section p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.2rem;
}

/* 卡片网格 */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}

.card {
  border: 1px solid rgba(79, 70, 229, 0.2);
  border-radius: 8px;
  padding: 1.2rem;
  transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.15);
}

.card h3 {
  margin-top: 0;
  color: var(--md-primary-fg-color);
}

/* 进度条 */
.progress-bar {
  background-color: rgba(79, 70, 229, 0.1);
  border-radius: 4px;
  overflow: hidden;
  height: 8px;
  margin: 0.5rem 0;
}

.progress-bar-fill {
  background-color: var(--md-primary-fg-color);
  height: 100%;
  border-radius: 4px;
  transition: width 0.3s ease;
}
