/* ===================== 跨学科附加知识面板 ===================== */
.supplementary-panel {
  background: var(--bg-card);
  border-radius: 16px;
  padding: 1.5rem;
  animation: fadeIn 0.3s ease;
}

.supplementary-header {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.supplementary-title {
  font-size: 1.25rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.supplementary-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.supplementary-search {
  flex: 1;
  min-width: 200px;
  position: relative;
}

.supplementary-search input {
  width: 100%;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  padding: 0.6rem 1rem 0.6rem 2.2rem;
  color: var(--text-primary);
  font-size: 0.9rem;
  outline: none;
  transition: all 0.2s;
}

.supplementary-search input:focus {
  border-color: var(--accent2);
  background: rgba(255,255,255,0.08);
}

.supplementary-search::before {
  content: '🔍';
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.9rem;
  opacity: 0.7;
}

.supplementary-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.supplementary-filter {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--text-secondary);
  padding: 0.35rem 0.8rem;
  border-radius: 20px;
  cursor: pointer;
  font-size: 0.85rem;
  transition: all 0.2s;
}

.supplementary-filter:hover {
  background: rgba(255,255,255,0.1);
  color: var(--text-primary);
}

.supplementary-filter.active {
  background: var(--accent2);
  border-color: var(--accent2);
  color: white;
}

.supplementary-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
  padding: 0.75rem;
  background: rgba(0,0,0,0.2);
  border-radius: 12px;
}

.supplementary-toc-btn {
  background: rgba(255,255,255,0.05);
  border: none;
  color: var(--text-secondary);
  padding: 0.4rem 0.8rem;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.85rem;
  transition: all 0.2s;
}

.supplementary-toc-btn:hover { background: rgba(255,255,255,0.1); color: var(--text-primary); }
.supplementary-toc-btn.active { background: var(--accent); color: #0f172a; font-weight: 600; }

.supplementary-list { display: flex; flex-direction: column; gap: 0.75rem; }

.supplementary-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s;
}

.supplementary-card:hover { border-color: rgba(255,255,255,0.15); }

.supplementary-card.hidden { display: none; }

.supplementary-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.2rem;
  cursor: pointer;
  user-select: none;
  transition: background 0.2s;
}

.supplementary-card-header:hover { background: rgba(255,255,255,0.04); }

.supplementary-card-title {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 600;
  font-size: 1rem;
}

.supplementary-card-icon { font-size: 1.2rem; }
.supplementary-card-tags { display: flex; gap: 0.35rem; flex-wrap: wrap; }

.supplementary-tag {
  background: rgba(59,130,246,0.12);
  color: #93c5fd;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  font-size: 0.75rem;
}

.supplementary-toggle {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 0.9rem;
  cursor: pointer;
  transition: transform 0.3s;
  padding: 0.25rem;
}

.supplementary-card.expanded .supplementary-toggle { transform: rotate(180deg); }

.supplementary-card-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
}

.supplementary-card.expanded .supplementary-card-body {
  max-height: 1200px;
  padding: 0 1.2rem 1.2rem;
}

.supplementary-card-body p {
  font-size: 0.92rem;
  line-height: 1.8;
  color: rgba(255,255,255,0.85);
  margin-bottom: 0.8rem;
}

.supplementary-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0.8rem 0;
  font-size: 0.9rem;
}

.supplementary-table th,
.supplementary-table td {
  padding: 0.6rem 0.8rem;
  text-align: left;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.supplementary-table th {
  background: rgba(59,130,246,0.1);
  color: #93c5fd;
  font-weight: 600;
}

.supplementary-table tr:hover td { background: rgba(255,255,255,0.03); }

.supplementary-list-bullets {
  list-style: none;
  padding: 0;
  margin: 0.8rem 0;
}

.supplementary-list-bullets li {
  padding: 0.4rem 0 0.4rem 1.4rem;
  position: relative;
  font-size: 0.9rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.85);
}

.supplementary-list-bullets li::before {
  content: '•';
  position: absolute;
  left: 0.4rem;
  color: var(--accent);
  font-weight: 700;
}

.supplementary-empty {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--text-secondary);
}

.supplementary-visual-container {
  width: 100%;
  max-width: 340px;
  margin: 0.8rem auto;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(59, 130, 246, 0.3);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.supplementary-card.expanded .supplementary-card-body {
  max-height: 1500px;
}

.supplementary-card-body p {
  font-size: 0.88rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.8);
  margin: 0.5rem 0;
}

.supplementary-card-body b {
  color: #93c5fd;
  font-weight: 600;
}

/* ===================== 知识拓展 Skill - 证明材料 & 动画播放器 ===================== */

/* 证明材料面板 */
.proof-materials-panel {
  background: rgba(30, 41, 59, 0.5);
  border: 1px solid rgba(96, 165, 250, 0.2);
  border-radius: 12px;
  padding: 1rem 1.2rem;
  margin: 0.75rem 0;
}

.pm-row {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.pm-row:last-child { border-bottom: none; }

.pm-icon { font-size: 1.1rem; flex-shrink: 0; }

.pm-label {
  font-size: 0.8rem;
  color: #94a3b8;
  font-weight: 600;
  min-width: 80px;
  flex-shrink: 0;
  padding-top: 0.15rem;
}

.pm-value {
  color: #e2e8f0;
  font-size: 0.9rem;
  flex: 1;
}

.pm-formula-value {
  color: #93c5fd;
  font-family: 'Cambria Math', 'Times New Roman', serif;
  font-size: 1.1rem;
  font-weight: 600;
  padding: 0.4rem 0.8rem;
  background: rgba(59, 130, 246, 0.1);
  border-radius: 8px;
  border: 1px solid rgba(59, 130, 246, 0.3);
  display: inline-block;
  margin: 0.25rem 0;
}

.pm-steps-list {
  list-style: decimal;
  padding-left: 1.2rem;
  margin: 0;
  color: #cbd5e1;
  font-size: 0.88rem;
  line-height: 1.8;
}

.pm-step {
  padding: 0.3rem 0;
  transition: color 0.2s;
}

.pm-step:hover { color: #fbbf24; }

.pm-verify-value {
  color: #34d399;
  font-size: 0.88rem;
  font-weight: 500;
  padding: 0.4rem 0.8rem;
  background: rgba(16, 185, 129, 0.1);
  border-radius: 8px;
  border: 1px solid rgba(16, 185, 129, 0.3);
  display: inline-block;
}

/* 统一动画+TTS 按钮 */
.pm-action-row {
  margin-top: 0.75rem;
}

.pm-play-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #3b82f6, #6366f1);
  border: none;
  color: white;
  padding: 0.6rem 1.2rem;
  border-radius: 24px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s;
  box-shadow: 0 2px 12px rgba(59, 130, 246, 0.4);
}

.pm-play-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(59, 130, 246, 0.55);
}

.pm-play-btn:active { transform: translateY(0); }

.pm-video-container {
  margin-top: 0.75rem;
  background: rgba(15, 23, 42, 0.6);
  border-radius: 12px;
  overflow: hidden;
}

/* 动画播放器 */
.pm-player {
  background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(99, 102, 241, 0.2);
}

.pmp-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  background: rgba(30, 41, 59, 0.6);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.pmp-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: #fbbf24;
}

.pmp-dots { display: flex; gap: 6px; }

.pmp-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  transition: all 0.3s;
}

.pmp-dot.active {
  background: #3b82f6;
  box-shadow: 0 0 8px #3b82f6;
  transform: scale(1.3);
}

.pmp-dot.done { background: #10b981; }

.pmp-progress {
  height: 3px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.pmp-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #3b82f6, #8b5cf6);
  width: 0%;
}

.pmp-canvas-wrap {
  display: flex;
  justify-content: center;
  padding: 0.5rem;
}

.pm-canvas {
  max-width: 100%;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.pmp-controls {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: rgba(30, 41, 59, 0.4);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.pmp-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #e2e8f0;
  padding: 0.4rem 0.9rem;
  border-radius: 8px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s;
}

.pmp-btn:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.15);
  color: white;
}

.pmp-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.pmp-btn.pmp-play {
  background: linear-gradient(135deg, #3b82f6, #6366f1);
  border: none;
  color: white;
  font-weight: 600;
  padding: 0.4rem 1.2rem;
}

.pmp-btn.pmp-play:hover {
  background: linear-gradient(135deg, #2563eb, #4f46e5);
}

/* 验证面板 */
#verificationReport {
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(96, 165, 250, 0.2);
  border-radius: 12px;
  padding: 1rem;
  margin-top: 1rem;
}

/* TTS 语音朗读按钮 */
.ext-narration-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(59, 130, 246, 0.15);
  border: 1px solid rgba(59, 130, 246, 0.4);
  color: #93c5fd;
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.2s;
  margin: 0.5rem 0;
}

.ext-narration-btn:hover {
  background: rgba(59, 130, 246, 0.25);
  color: white;
}

/* 证明卡片 */
.deep-proof-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 1rem 1.2rem;
  margin-bottom: 0.75rem;
  transition: all 0.3s;
}

.deep-proof-card:hover {
  border-color: rgba(96, 165, 250, 0.3);
  background: rgba(255, 255, 255, 0.06);
}

.deep-proof-card.highlight {
  border-color: rgba(251, 191, 36, 0.5);
  background: rgba(251, 191, 36, 0.05);
}

.deep-proof-card h5 {
  font-size: 1rem;
  font-weight: 600;
  color: #fbbf24;
  margin-bottom: 0.4rem;
}

.deep-proof-card .proof-desc {
  color: #94a3b8;
  font-size: 0.9rem;
  line-height: 1.7;
}

.socrates-opt-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.opt-letter {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  flex-shrink: 0;
}
