/* ========== 学习评价模块 CSS ========== */
/* 通过CSS变量适配各实验主题色 */

:root {
  --eval-accent: #FF6B9D;
  --eval-accent-dark: #FF8E9E;
  --eval-accent2: #4ECDC4;
  --eval-accent3: #FFB347;
  --eval-card-bg: rgba(255,255,255,0.92);
  --eval-shadow: 0 8px 30px rgba(0,0,0,0.08);
  --eval-border: 1px solid rgba(0,0,0,0.06);
  --eval-title-color: #333;
  --eval-subtitle-color: #888;
  --eval-section-color: #555;
  --eval-q-bg: rgba(0,0,0,0.02);
  --eval-q-done: rgba(76,175,80,0.06);
  --eval-q-title: #444;
  --eval-opt-border: #ddd;
  --eval-opt-bg: #fff;
  --eval-opt-color: #555;
  --eval-opt-hover: #FFF0F5;
  --eval-radius: 18px;
  --eval-btn-shadow: rgba(255,107,157,0.3);
}

#evalSection {
  margin: 40px auto;
  max-width: 800px;
  padding: 20px;
  border-radius: var(--eval-radius);
  background: var(--eval-card-bg);
  box-shadow: var(--eval-shadow);
  border: var(--eval-border);
  font-family: 'Noto Sans SC', 'Microsoft YaHei', 'PingFang SC', sans-serif;
  position: relative;
  z-index: 1;
  transition: all 0.3s ease;
}

#evalSection .eval-main-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--eval-title-color);
}

/* ========== 折叠/展开切换栏 ========== */
#evalSection .eval-toggle-bar {
  /* 无额外间距，让按钮和内容区紧贴 */
}

#evalSection .eval-toggle-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  border-radius: 14px;
  border: 2px solid var(--eval-opt-border);
  background: linear-gradient(135deg, var(--eval-q-bg), var(--eval-card-bg));
  cursor: pointer;
  font-family: inherit;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
#evalSection .eval-toggle-btn:hover {
  border-color: var(--eval-accent);
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  transform: translateY(-1px);
}
#evalSection .eval-toggle-btn.expanded {
  border-color: var(--eval-accent);
  border-radius: 14px 14px 0 0;
  border-bottom: 1px dashed var(--eval-opt-border);
  background: linear-gradient(135deg, var(--eval-accent), var(--eval-accent-dark));
  color: #fff;
}
#evalSection .eval-toggle-btn.expanded .toggle-icon,
#evalSection .eval-toggle-btn.expanded .toggle-title,
#evalSection .eval-toggle-btn.expanded .toggle-badge,
#evalSection .eval-toggle-btn.expanded .toggle-hint {
  color: #fff;
}
#evalSection .eval-toggle-btn.expanded .toggle-badge {
  background: rgba(255,255,255,0.25);
  border-color: rgba(255,255,255,0.4);
}

#evalSection .toggle-icon {
  font-size: 14px;
  color: var(--eval-accent);
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

#evalSection .toggle-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--eval-title-color);
}

#evalSection .toggle-badge {
  padding: 2px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 500;
  background: var(--eval-opt-hover);
  color: var(--eval-accent);
  border: 1px solid var(--eval-accent);
  opacity: 0.7;
}

#evalSection .toggle-hint {
  margin-left: auto;
  font-size: 12px;
  color: var(--eval-subtitle-color);
  opacity: 0.6;
}

#evalSection .toggle-summary {
  padding: 10px 20px 16px;
  font-size: 13px;
  color: var(--eval-subtitle-color);
  text-align: center;
  line-height: 1.6;
  margin-bottom: 8px;
}

/* 折叠式内容区过渡动画 */
#evalSection .eval-section-inner {
  animation: evalSlideDown 0.35s ease;
  border: 2px solid var(--eval-accent);
  border-top: none;
  border-radius: 0 0 14px 14px;
  padding: 28px;
  background: var(--eval-card-bg);
}

@keyframes evalSlideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

#evalSection .eval-subtitle {
  font-size: 13px;
  color: var(--eval-subtitle-color);
  margin-bottom: 28px;
}

#evalSection .eval-divider {
  height: 2px;
  background: linear-gradient(90deg, var(--eval-accent), var(--eval-accent2), var(--eval-accent3));
  margin: 0 0 24px;
  opacity: 0.35;
  border-radius: 1px;
}

/* 学生信息 */
#evalSection .eval-info {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 24px;
  padding: 14px 18px;
  border-radius: 12px;
  background: var(--eval-q-bg);
}
#evalSection .eval-info .info-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  min-width: 100px;
}
#evalSection .eval-info .info-field label {
  font-size: 12px;
  color: var(--eval-subtitle-color);
  font-weight: 500;
}
#evalSection .eval-info .info-field input,
#evalSection .eval-info .info-field select {
  padding: 8px 12px;
  border-radius: 8px;
  border: 2px solid var(--eval-opt-border);
  font-size: 13px;
  font-family: inherit;
  background: var(--eval-opt-bg);
  color: var(--eval-opt-color);
  transition: border-color 0.3s;
}
#evalSection .eval-info .info-field input:focus,
#evalSection .eval-info .info-field select:focus {
  outline: none;
  border-color: var(--eval-accent);
}

/* 选择题 */
#evalSection .eval-mc { margin-bottom: 30px; }
#evalSection .eval-mc h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--eval-section-color);
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--eval-accent);
}

#evalSection .eval-question {
  margin-bottom: 18px;
  padding: 14px;
  border-radius: 12px;
  background: var(--eval-q-bg);
  transition: background 0.3s;
}
#evalSection .eval-question.answered { background: var(--eval-q-done); }
#evalSection .eval-question .q-title {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--eval-q-title);
}
#evalSection .eval-question .q-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
#evalSection .eval-question .q-opt {
  padding: 8px 18px;
  border-radius: 20px;
  font-size: 13px;
  cursor: pointer;
  border: 2px solid var(--eval-opt-border);
  background: var(--eval-opt-bg);
  color: var(--eval-opt-color);
  transition: all 0.2s;
  font-family: inherit;
}
#evalSection .eval-question .q-opt:hover {
  border-color: var(--eval-accent);
  background: var(--eval-opt-hover);
}
#evalSection .eval-question .q-opt.selected {
  border-color: var(--eval-accent);
  background: var(--eval-accent);
  color: #fff;
  font-weight: 600;
}

/* 自主评价 */
#evalSection .eval-likert { margin-bottom: 30px; }
#evalSection .eval-likert h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--eval-section-color);
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--eval-accent2);
}

#evalSection .eval-likert-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  margin-bottom: 10px;
  border-radius: 12px;
  background: var(--eval-q-bg);
  flex-wrap: wrap;
  gap: 10px;
}
#evalSection .eval-likert-item .likert-label {
  font-size: 14px;
  font-weight: 500;
  color: var(--eval-q-title);
  min-width: 120px;
}
#evalSection .eval-likert-item .likert-scales { display: flex; gap: 6px; }
#evalSection .eval-likert-item .likert-btn {
  padding: 6px 14px;
  border-radius: 16px;
  font-size: 12px;
  cursor: pointer;
  border: 2px solid var(--eval-opt-border);
  background: var(--eval-opt-bg);
  color: var(--eval-opt-color);
  transition: all 0.2s;
  font-family: inherit;
  white-space: nowrap;
}
#evalSection .eval-likert-item .likert-btn:hover {
  border-color: var(--eval-accent2);
  background: var(--eval-opt-hover);
}
#evalSection .eval-likert-item .likert-btn.selected {
  border-color: var(--eval-accent2);
  background: var(--eval-accent2);
  color: #fff;
  font-weight: 600;
}

/* 学习感受 */
#evalSection .eval-reflection { margin-bottom: 24px; }
#evalSection .eval-reflection h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--eval-section-color);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--eval-accent3);
}
#evalSection .eval-reflection textarea {
  width: 100%;
  height: 80px;
  padding: 14px;
  border-radius: 12px;
  border: 2px solid var(--eval-opt-border);
  font-size: 14px;
  font-family: inherit;
  resize: none;
  background: var(--eval-opt-bg);
  color: var(--eval-opt-color);
  transition: border-color 0.3s;
}
#evalSection .eval-reflection textarea:focus {
  outline: none;
  border-color: var(--eval-accent3);
}
#evalSection .eval-reflection .char-count {
  text-align: right;
  font-size: 12px;
  color: var(--eval-subtitle-color);
  margin-top: 4px;
}

/* 按钮 */
#evalSection .eval-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
#evalSection .eval-btn {
  padding: 12px 36px;
  border-radius: 25px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  font-family: inherit;
  transition: all 0.2s;
}
#evalSection .eval-btn-submit {
  background: linear-gradient(135deg, var(--eval-accent), var(--eval-accent-dark));
  color: #fff;
  box-shadow: 0 4px 15px var(--eval-btn-shadow);
}
#evalSection .eval-btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--eval-btn-shadow);
}
#evalSection .eval-btn-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}
#evalSection .eval-btn-reset {
  background: var(--eval-opt-bg);
  color: var(--eval-opt-color);
  border: 2px solid var(--eval-opt-border);
}
#evalSection .eval-btn-reset:hover { background: #eee; }

/* 状态 */
#evalSection .eval-status {
  text-align: center;
  margin-top: 16px;
  padding: 12px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  display: none;
}
#evalSection .eval-status.show { display: block; }
#evalSection .eval-status.loading { background: #FFF3E0; color: #E65100; }
#evalSection .eval-status.success { background: #E8F5E9; color: #2E7D32; }
#evalSection .eval-status.error { background: #FFEBEE; color: #C62828; }
