/* ═══ GESP 共享功能：复制按钮 + 已学完 ═══ */

/* 复制按钮容器 */
.code-block { position: relative; }
.copy-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  background: #8b6b4e;
  color: #fdf6e8;
  border: 1px solid #a08060;
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 0.78rem;
  cursor: pointer;
  transition: all 0.2s;
  z-index: 2;
  font-family: -apple-system, sans-serif;
}
.copy-btn:hover { background: #a08060; color: #fff; }
.copy-btn.copied { background: #5a9e85; color: #e8f6f0; border-color: #5a9e85; }

/* 已学完按钮区 */
.done-area {
  text-align: center;
  margin: 36px 0 20px;
  padding: 28px 20px;
  background: linear-gradient(135deg, #f0ebe3 0%, #e8e0d5 100%);
  border-radius: 14px;
  border: 1px solid #e5dfd5;
}
.done-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fffcf7;
  color: #8b6b4e;
  border: 2px solid #d4c4b0;
  border-radius: 12px;
  padding: 14px 32px;
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  font-family: -apple-system, sans-serif;
}
.done-btn:hover { background: #d4764e; border-color: #d4764e; color: #fff; transform: translateY(-2px); }
.done-btn.completed {
  background: #e8f6f0;
  color: #5a9e85;
  border-color: #5a9e85;
  cursor: default;
}
.done-btn.completed:hover { transform: none; }
.done-btn .icon { font-size: 1.3rem; }
.done-hint {
  margin-top: 10px;
  font-size: 0.82rem;
  color: #918a7e;
}

/* 练习题区 */
.practice-q {
  background: #f5f0e8;
  border: 2px solid #d4c4b0;
  border-radius: 12px;
  padding: 20px;
  margin: 12px 0;
}
.practice-q h3 {
  color: #8b6bae;
  font-size: 1rem;
  margin-bottom: 12px;
}
.practice-q .question-text {
  color: #2c2620;
  font-size: 0.95rem;
  margin-bottom: 14px;
  line-height: 1.6;
}
.practice-q .hint-btn {
  background: #f0ebe3;
  color: #8b6bae;
  border: 1px solid #d4c4b0;
  border-radius: 8px;
  padding: 8px 16px;
  font-size: 0.88rem;
  cursor: pointer;
  transition: all 0.2s;
  font-family: -apple-system, sans-serif;
}
.practice-q .hint-btn:hover { background: #e8e0d5; }
.practice-q .answer-box {
  display: none;
  margin-top: 14px;
  padding: 14px 16px;
  background: rgba(90,158,133,0.08);
  border-left: 3px solid #5a9e85;
  border-radius: 8px;
  color: #2c2620;
  font-size: 0.92rem;
  line-height: 1.7;
}
.practice-q .answer-box.show { display: block; }
.practice-q .answer-box pre {
  background: #2d2926;
  border-radius: 6px;
  padding: 10px 14px;
  margin-top: 8px;
  font-family: 'Cascadia Code', 'Fira Code', monospace;
  font-size: 0.85rem;
  color: #e8e0d8;
  overflow-x: auto;
}
