/*
102翻译Codex简化

*/


/*
102翻译Codex简化
*/


/*
813翻译 style

*/

/*
87翻译 完整样式 - 包含新版评估组件
Summary-first设计，解决UX问题
*/

/* 基础模块样式 - 统一风格 */
#hnc-cet6-translation-workshop-section {
  background-color: #ffffff;
  border: 1px solid #e0e6f0;
  border-radius: 12px;
  padding: 1.5em 2em;
  margin-top: 2em;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.hnc-module-title {
  margin-top: 0;
  color: #1e293b;
  font-size: 1.8em;
  font-weight: 600;
}

/* === 翻译工坊标题行 === */
.hnc-cet6-translation-header-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  margin-bottom: 1em;
}

#hnc-cet6-translation-workshop-section .hnc-cet6-translation-header-row .hnc-module-title {
  margin: 0;
  text-align: left;
}

/* === 复制链接图标按钮 === */
#hnc-cet6-translation-workshop-section #hnc-cet6-translation-copy-link-btn {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  cursor: pointer;
  transition: all 0.2s ease;
}

#hnc-cet6-translation-workshop-section #hnc-cet6-translation-copy-link-btn:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
  color: #475569;
}

#hnc-cet6-translation-workshop-section #hnc-cet6-translation-copy-link-btn:active {
  background: #f1f5f9;
}

#hnc-cet6-translation-workshop-section #hnc-cet6-translation-copy-link-btn.copied {
  background: #f0fdf4;
  border-color: #86efac;
  color: #166534;
}

.hnc-info-box {
  background: #e3f2fd;
  color: #1565c0;
  font-size: 14px;
  padding: 8px 14px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  margin: 1em 0;
  font-weight: 500;
  line-height: 1.5;
}

/* 进度指示器 - 统一写作工坊风格 */
.hnc-progress-indicator {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2em;
  padding: 0 1em;
  position: relative;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  background: transparent;
  /* Remove background */
  border-radius: 0;
}

.hnc-progress-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 2;
  gap: 8px;
  opacity: 0.6;
  transition: all 0.3s ease;
  flex: initial;
  /* Remove flex:1 to behave like items */
  padding: 0;
}

.hnc-progress-step.active {
  opacity: 1;
}

/* Remove old line pseudo-element */
.hnc-progress-step:not(:last-child)::after {
  display: none;
}

.hnc-progress-number {
  width: 32px;
  height: 32px;
  background-color: #f1f5f9;
  border: 2px solid #cbd5e1;
  color: #64748b;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  z-index: 2;
}

.hnc-progress-step.active .hnc-progress-number {
  background-color: #3b82f6;
  border-color: #3b82f6;
  color: white;
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.2);
  transform: scale(1.1);
}

.hnc-progress-label {
  font-size: 13px;
  font-weight: 600;
  color: #475569;
  margin-top: 0;
  /* Adjust spacing */
}

.hnc-progress-step.active .hnc-progress-label {
  color: #3b82f6;
}

/* Add the line element via CSS if possible, but structure suggests likely existing line div or pseudo is needed. 
   Writing module uses a separate .hnc-stepper-line div. 
   To mimic without changing HTML structure too much, we can try to style the Container to have a line behind.
   However, the best approach is to match the HTML structure if possible. 
   For now, strictly matching style means matching button look first. */


/* 按钮样式 - 统一写作工坊 Pill 风格 */
.hnc-primary-btn,
#hnc-cet6-translation-workshop-section button {
  background: #3b82f6;
  color: #ffffff;
  border: 1px solid #3b82f6;
  padding: 10px 18px;
  /* Stick to the specified padding */
  border-radius: 999px;
  /* Pill shape */
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  letter-spacing: 0.2px;
  box-shadow: 0 8px 20px rgba(59, 130, 246, 0.18);
  font-size: 15px;
}

.hnc-primary-btn:hover,
#hnc-cet6-translation-workshop-section button:hover {
  background: #2563eb;
  border-color: #2563eb;
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.2);
}

.hnc-primary-btn:disabled,
#hnc-cet6-translation-workshop-section button:disabled {
  background: #94a3b8;
  border-color: #94a3b8;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

/* Emoji Removal Overrides */
.hnc-info-icon::before,
.hnc-info-icon::after,
.hnc-btn-icon::before,
.hnc-btn-icon::after,
#hnc-cet6-translation-step-2 h4::before {
  content: none !important;
}

/* Hide specific emoji containers if they exist */
.hnc-info-icon-wrapper {
  display: none !important;
}

/* Layout Force: Equal Width for Controls */
.hnc-cet6-translation-controls {
  display: flex;
  align-items: center;
  gap: 1em;
  flex-wrap: wrap;
}

.hnc-cet6-translation-controls>* {
  flex: 1 !important;
  width: 0 !important;
  min-width: 0 !important;
}

/* 统计面板 (Restored & Modernized) */
.hnc-stats-panel {
  display: flex;
  justify-content: center;
  gap: 3em;
  margin: 1.5em 0;
  padding: 1.5em;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.hnc-stats-item {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.5em;
}

.hnc-stats-number {
  font-size: 2em;
  font-weight: 700;
  color: #3b82f6;
  line-height: 1;
}

.hnc-stats-label {
  font-size: 0.9em;
  color: #64748b;
  font-weight: 500;
}

/* 筛选控件 */
.hnc-filter-controls {
  display: flex;
  gap: 1em;
  margin: 1em 0;
  padding: 1em;
  background-color: #f8fafc;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  flex-wrap: wrap;
}

.hnc-filter-group {
  display: flex;
  align-items: center;
  gap: 0.5em;
}

.hnc-filter-group label {
  font-size: 14px;
  font-weight: 500;
  color: #374151;
  white-space: nowrap;
}

.hnc-filter-group select {
  padding: 0.4em 2em 0.4em 0.8em;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  font-size: 14px;
  appearance: none;
  background: white url('data:image/svg+xml;charset=UTF-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2212%22%20height%3D%2212%22%20viewBox%3D%220%200%2012%2012%22%3E%3Cpath%20fill%3D%22%2364748b%22%20d%3D%22M6%209L2%205h8z%22%2F%3E%3C%2Fsvg%3E') no-repeat right 0.5em center;
  background-size: 12px;
  cursor: pointer;
  min-width: 120px;
}

/* 翻译控件 */
.hnc-cet6-translation-controls {
  display: flex;
  align-items: center;
  gap: 1em;
  flex-wrap: wrap;
  margin-top: 1em;
}

.hnc-cet6-translation-controls select {
  flex-grow: 1;
  max-width: 100%;
  box-sizing: border-box;
  padding: 0.8em;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  font-size: 15px;
}

/* 第二步容器样式 */
#hnc-cet6-translation-step-2 {
  animation: hnc-fadeInUp 0.5s ease-out;
}

#hnc-cet6-translation-step-2 h4 {
  background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
  border: 1px solid #3b82f6;
  border-radius: 12px;
  padding: 1.2em;
  margin-bottom: 1.5em;
  color: #1e40af;
  font-size: 1.1em;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5em;
  animation: hnc-slideInDown 0.4s ease-out;
}

#hnc-cet6-translation-step-2 h4::before {
  content: "📚";
  font-size: 1.2em;
}

@keyframes hnc-fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes hnc-slideInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 翻译卡片 */
.hnc-cet6-translation-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.2em;
  margin: 1.5em 0;
}

.hnc-cet6-translation-card {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  padding: 1.5em;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.hnc-cet6-translation-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #3b82f6, #8b5cf6);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.hnc-cet6-translation-card:hover::before {
  transform: scaleX(1);
}

.hnc-cet6-translation-card:hover {
  border-color: #3b82f6;
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.15);
  transform: translateY(-2px);
}

.hnc-cet6-translation-card.selected {
  border-color: #3b82f6;
  background-color: #eff6ff;
  transform: translateY(-2px);
}

.hnc-cet6-translation-card.selected::before {
  transform: scaleX(1);
}

/* 翻译题目文本 - 增强视觉显著性 */
#hnc-cet6-translation-chinese-text {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.8;
  color: #1e3a8a;
  background-color: #f0f9ff;
  padding: 1.5em;
  border-radius: 12px;
  border: 2px solid #bfdbfe;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  margin: 1em 0 2em 0;
}

/* AI提示系统 */
.hnc-hint-system {
  margin: 1.5em 0;
  padding: 1.5em;
  background: linear-gradient(135deg, #fafafa 0%, #f0f9ff 100%);
  border-radius: 12px;
  border: 1px solid #e2e8f0;
}

.hnc-hint-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1em;
}

.hnc-hint-header h5 {
  margin: 0;
  color: #1e293b;
  font-size: 16px;
}

.hnc-hint-status {
  display: flex;
  align-items: center;
  gap: 0.5em;
}

.hnc-cet6-hint-status-text {
  font-size: 13px;
  color: #64748b;
}

.hnc-loading-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid #e2e8f0;
  border-top: 2px solid #3b82f6;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

.hnc-hint-buttons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.8em;
  margin-bottom: 1em;
}

.hnc-hint-btn {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%) !important;
  color: #374151 !important;
  border: 2px solid #e2e8f0 !important;
  font-size: 14px !important;
  padding: 0.8em 1em !important;
  border-radius: 8px !important;
  cursor: pointer !important;
  transition: all 0.3s ease !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.5em !important;
  position: relative !important;
  overflow: hidden !important;
}

.hnc-hint-btn:hover {
  background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%) !important;
  color: white !important;
  border-color: #3b82f6 !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.hnc-hint-all {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
  color: white !important;
  border-color: #10b981 !important;
}

.hnc-hint-icon {
  font-size: 16px;
}

.hnc-hint-area {
  background-color: #ffffff;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  padding: 1.2em;
  margin-bottom: 0.8em;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.hnc-hint-area h5 {
  margin: 0 0 1em 0;
  color: #1e293b;
  font-size: 15px;
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 0.5em;
}

/* 输入区域 */
.hnc-cet6-translation-input-area {
  margin-top: 2em;
}

.hnc-input-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1em;
}

.hnc-input-header h4 {
  margin: 0;
}

.hnc-input-stats {
  display: flex;
  align-items: center;
  gap: 1em;
}

.hnc-word-count,
.hnc-char-count {
  font-size: 12px;
  color: #64748b;
  font-weight: normal;
  padding: 0.25em 0.5em;
  background-color: #f1f5f9;
  border-radius: 4px;
}

.hnc-draft-btn {
  background: none !important;
  border: 1px solid #d1d5db !important;
  color: #6b7280 !important;
  padding: 0.4em 0.6em !important;
  font-size: 14px !important;
  border-radius: 4px !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
}

.hnc-draft-btn:hover {
  background-color: #f3f4f6 !important;
  color: #374151 !important;
}

.hnc-textarea-container {
  position: relative;
}

#hnc-cet6-translation-user-input {
  width: 100%;
  min-height: 140px;
  padding: 1.2em;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  font-size: 15px;
  line-height: 1.7;
  resize: vertical;
  transition: all 0.3s ease;
  box-sizing: border-box;
  font-family: inherit;
}

#hnc-cet6-translation-user-input:focus {
  border-color: #3b82f6;
  outline: none;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.hnc-textarea-tools {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  gap: 0.3em;
}

.hnc-tool-btn {
  background: rgba(255, 255, 255, 0.9) !important;
  border: 1px solid #e2e8f0 !important;
  color: #6b7280 !important;
  padding: 0.3em 0.5em !important;
  font-size: 12px !important;
  border-radius: 4px !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
}

.hnc-tool-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed !important;
}

/* 按钮样式 - 已统一到上方 Pill 风格 */
.hnc-cet6-translation-actions {
  display: flex;
  gap: 1em;
  margin-top: 1.5em;
  flex-wrap: wrap;
}

/*
.hnc-primary-btn {
  background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%) !important;
  color: white !important;
  border: none !important;
  font-size: 16px !important;
  padding: 0.8em 1.5em !important;
  border-radius: 8px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  transition: all 0.3s ease !important;
  display: flex !important;
  align-items: center !important;
  gap: 0.5em !important;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3) !important;
}

.hnc-primary-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4) !important;
}

#hnc-cet6-translation-workshop-section button {
  font-size: 15px;
  padding: 0.7em 1.2em;
  border-radius: 8px;
  border: 2px solid #3b82f6;
  background-color: #3b82f6;
  color: white;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
}

#hnc-cet6-translation-workshop-section button:hover {
  background-color: #2563eb;
  transform: translateY(-1px);
}

#hnc-cet6-translation-workshop-section button:disabled {
  background-color: #94a3b8;
  border-color: #94a3b8;
  cursor: not-allowed;
  transform: none;
}
*/

.hnc-cet6-translation-btn-secondary {
  background-color: #f8fafc !important;
  color: #475569 !important;
  border-color: #cbd5e1 !important;
}

.hnc-cet6-translation-btn-secondary:hover {
  background-color: #e2e8f0 !important;
}

.hnc-btn-icon {
  font-size: 14px;
}

/* 参考答案 */
.hnc-reference-tabs {
  display: flex;
  gap: 0.5em;
  margin-bottom: 1em;
}

.hnc-tab {
  background-color: #f1f5f9 !important;
  color: #64748b !important;
  border: 1px solid #cbd5e1 !important;
  padding: 0.5em 1em !important;
  font-size: 14px !important;
  border-radius: 6px 6px 0 0 !important;
  cursor: pointer !important;
}

.hnc-tab.active {
  background-color: #3b82f6 !important;
  color: white !important;
  border-color: #3b82f6 !important;
}

.hnc-reference-content {
  background-color: #fffbeb;
  border: 2px solid #f59e0b;
  border-radius: 12px;
  padding: 1.5em;
  margin: 1em 0;
  line-height: 1.7;
  font-size: 15px;
  color: #92400e;
}

/* 加载动画 */
.hnc-loading-animation {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1em;
  padding: 2em;
}

.hnc-loading-text {
  color: #64748b;
  font-size: 14px;
}

/* 词汇提示样式 */
.hnc-vocab-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5em;
}

.hnc-vocab-item {
  display: inline-block;
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  color: #1e40af;
  padding: 0.4em 0.8em;
  margin: 0.2em;
  border-radius: 6px;
  border: 1px solid #bfdbfe;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 13px;
}

.hnc-vocab-item:hover {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}













.hnc-chip-subject {
  border-color: rgba(34, 197, 94, 0.45);
  color: #166534;
  background: rgba(34, 197, 94, 0.12);
}

.hnc-chip-verb {
  border-color: rgba(59, 130, 246, 0.45);
  color: #1d4ed8;
  background: rgba(59, 130, 246, 0.12);
}

.hnc-chip-object {
  border-color: rgba(251, 191, 36, 0.45);
  color: #b45309;
  background: rgba(251, 191, 36, 0.18);
}

.hnc-chip-complement {
  border-color: rgba(236, 72, 153, 0.45);
  color: #9d174d;
  background: rgba(236, 72, 153, 0.12);
}


.hnc-modifier-time {
  background: rgba(59, 130, 246, 0.16);
  color: #1d4ed8;
}

.hnc-modifier-place {
  background: rgba(34, 197, 94, 0.16);
  color: #166534;
}

.hnc-modifier-reason {
  background: rgba(239, 68, 68, 0.16);
  color: #b91c1c;
}

.hnc-modifier-manner {
  background: rgba(14, 165, 233, 0.16);
  color: #0369a1;
}

.hnc-modifier-purpose {
  background: rgba(245, 158, 11, 0.18);
  color: #b45309;
}

.hnc-modifier-target {
  background: rgba(168, 85, 247, 0.18);
  color: #7e22ce;
}

.hnc-modifier-background {
  background: rgba(96, 165, 250, 0.14);
  color: #1e3a8a;
}

.hnc-modifier-attribute {
  background: rgba(251, 191, 36, 0.16);
  color: #92400e;
}

.hnc-modifier-example {
  background: rgba(74, 222, 128, 0.18);
  color: #047857;
}

.hnc-modifier-conjunction {
  background: rgba(161, 161, 170, 0.18);
  color: #3f3f46;
}

.hnc-modifier-emphasis {
  background: rgba(236, 72, 153, 0.18);
  color: #9d174d;
}

.hnc-modifier-result {
  background: rgba(146, 64, 14, 0.16);
  color: #7c2d12;
}

.hnc-modifier-supplement {
  background: rgba(148, 163, 184, 0.18);
  color: #1f2937;
}




.hnc-breakdown-item {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  border: 1px solid #f59e0b;
  padding: 1em;
  margin: 0.8em 0;
  border-radius: 8px;
  border-left: 4px solid #f59e0b;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.1);
}

.hnc-breakdown-chinese {
  color: #92400e;
  font-weight: 600;
  margin-bottom: 0.5em;
  font-size: 15px;
}

.hnc-breakdown-hint {
  color: #6b7280;
  font-size: 13px;
  font-style: italic;
  line-height: 1.5;
}

/* AI翻译评估结果新版样式 - Summary-first设计，解决UX问题 */

/* 主容器 */
.hnc-eval-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 1.5em;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* 总体评分卡片 - 永远可见，解决空白页错觉 */
.hnc-eval-summary-card {
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  border-radius: 16px;
  padding: 2em;
  margin-bottom: 1.5em;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.hnc-eval-summary-header {
  display: flex;
  align-items: flex-start;
  gap: 2em;
  margin-bottom: 2em;
}

/* 评分圆圈 */
.hnc-eval-score-circle {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3b82f6 0%, #1e40af 100%);
  color: white;
  flex-shrink: 0;
  position: relative;
}

.hnc-eval-score-number {
  font-size: 2.5em;
  font-weight: 700;
  line-height: 1;
}

.hnc-eval-score-label {
  font-size: 1em;
  opacity: 0.9;
  margin-top: -4px;
}

/* 等级信息 */
.hnc-eval-grade-info {
  flex: 1;
  min-width: 0;
}

.hnc-cet6-eval-grade-badge {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 1em;
  background: #dcfce7;
  color: #166534;
}

.hnc-cet6-eval-grade-badge.excellent {
  background: #dcfce7;
  color: #166534;
}

.hnc-cet6-eval-grade-badge.good {
  background: #dbeafe;
  color: #1e40af;
}

.hnc-cet6-eval-grade-badge.fair {
  background: #fef3c7;
  color: #92400e;
}

.hnc-cet6-eval-grade-badge.poor {
  background: #fecaca;
  color: #991b1b;
}

.hnc-cet6-eval-summary-text {
  font-size: 16px;
  line-height: 1.6;
  color: #475569;
  margin: 0;
}

/* 分项评分进度条 */
.hnc-eval-subscores {
  margin-bottom: 2em;
}

.hnc-eval-subscore-item {
  display: flex;
  align-items: center;
  gap: 1em;
  margin-bottom: 1em;
}

.hnc-eval-subscore-item:last-child {
  margin-bottom: 0;
}

.hnc-eval-subscore-label {
  font-weight: 600;
  color: #334155;
  min-width: 100px;
  font-size: 14px;
}

.hnc-eval-progress-bar {
  flex: 1;
  height: 8px;
  background: #e2e8f0;
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}

.hnc-eval-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #3b82f6 0%, #1e40af 100%);
  border-radius: 4px;
  transition: width 1s ease-out;
  position: relative;
}

.hnc-eval-subscore-value {
  font-weight: 600;
  color: #334155;
  min-width: 30px;
  text-align: right;
  font-size: 14px;
}

/* 快速操作按钮 */
.hnc-eval-quick-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hnc-eval-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  text-decoration: none;
}

.hnc-eval-btn-primary {
  background: #3b82f6;
  color: white;
}

.hnc-eval-btn-primary:hover {
  background: #2563eb;
  transform: translateY(-1px);
}

.hnc-eval-btn-secondary {
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #e2e8f0;
}

.hnc-eval-btn-secondary:hover {
  background: #e2e8f0;
  border-color: #cbd5e1;
}

.hnc-eval-btn-tertiary {
  background: transparent;
  color: #64748b;
  border: 1px solid #cbd5e1;
}

.hnc-eval-btn-tertiary:hover {
  background: #f8fafc;
  color: #475569;
}

.hnc-eval-btn-icon {
  font-size: 16px;
}

/* 详细分析部分 */
.hnc-cet6-eval-detailed-section {
  margin-top: 1.5em;
}

/* 亮点与问题部分 */
.hnc-eval-highlights-section {
  margin-bottom: 1.5em;
}

.hnc-eval-section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 1.5em 0 1em 0;
  font-size: 18px;
  font-weight: 600;
  color: #1e293b;
}

.hnc-eval-title-icon {
  font-size: 20px;
}

.hnc-cet6-eval-highlights-list,
.hnc-cet6-eval-issues-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 1.5em;
}

.hnc-eval-highlight-item,
.hnc-eval-issue-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.5;
}

.hnc-eval-highlight-item {
  background: #f0f9ff;
  border-left: 3px solid #3b82f6;
  color: #1e40af;
}

.hnc-eval-issue-item {
  background: #fef3c7;
  border-left: 3px solid #f59e0b;
  color: #92400e;
}

.hnc-eval-item-icon {
  font-size: 16px;
  flex-shrink: 0;
  margin-top: 1px;
}

.hnc-eval-item-text {
  flex: 1;
  margin: 0;
}

.hnc-eval-urgency {
  background: #fee2e2;
  color: #dc2626;
  font-size: 12px;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 600;
  margin-left: 8px;
}

/* 手风琴样式 - 统一设计 */
.hnc-eval-accordion-item {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  margin-bottom: 1em;
  background: #ffffff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.hnc-eval-accordion-item:last-child {
  margin-bottom: 0;
}

.hnc-eval-accordion-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2em 1.5em;
  cursor: pointer;
  font-weight: 600;
  font-size: 1.1em;
  color: #334155;
  list-style: none;
  transition: all 0.2s ease;
  background: #f8fafc;
  border-radius: 12px 12px 0 0;
  margin: 0;
}

.hnc-eval-accordion-title:hover {
  background: #f1f5f9;
  color: #1e293b;
}

.hnc-eval-accordion-title::-webkit-details-marker {
  display: none;
}

.hnc-eval-accordion-text {
  flex: 1;
}

.hnc-eval-accordion-icon {
  display: inline-block;
  width: 24px;
  height: 24px;
  transition: transform 0.3s ease;
  background: #3b82f6;
  color: white;
  border-radius: 50%;
  text-align: center;
  line-height: 24px;
  font-size: 14px;
}

.hnc-eval-accordion-icon::after {
  content: "▼";
}

.hnc-eval-accordion-item[open]>.hnc-eval-accordion-title .hnc-eval-accordion-icon {
  transform: rotate(180deg);
}

.hnc-eval-accordion-item[open]>.hnc-eval-accordion-title {
  color: #1e293b;
  background: #eff6ff;
  border-bottom: 1px solid #e2e8f0;
}

.hnc-eval-accordion-content {
  padding: 1.5em;
  background: #ffffff;
  border-radius: 0 0 12px 12px;
  animation: slideDown 0.3s ease-out;
}

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

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* N/A状态样式 */
.hnc-cet6-eval-na-state,
.hnc-cet6-eval-error-state {
  text-align: center;
  padding: 3em 2em;
  background: #f8fafc;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
}

.hnc-eval-na-icon,
.hnc-eval-error-icon {
  font-size: 4em;
  margin-bottom: 0.5em;
  display: block;
}

.hnc-eval-na-title,
.hnc-eval-error-title {
  font-size: 1.5em;
  font-weight: 600;
  color: #334155;
  margin-bottom: 0.5em;
}

.hnc-eval-na-message,
.hnc-cet6-eval-error-message {
  color: #64748b;
  line-height: 1.6;
  margin-bottom: 2em;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

/* 响应式设计 */
@media (max-width: 600px) {
  .hnc-eval-container {
    padding: 1em;
  }

  .hnc-eval-summary-card {
    padding: 1.5em;
  }

  .hnc-eval-summary-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.5em;
  }

  .hnc-eval-score-circle {
    width: 100px;
    height: 100px;
  }

  .hnc-eval-score-number {
    font-size: 2em;
  }

  .hnc-eval-quick-actions {
    flex-direction: column;
  }

  .hnc-eval-action-btn {
    width: 100%;
    justify-content: center;
  }

  .hnc-eval-subscore-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5em;
  }

  .hnc-eval-subscore-label {
    min-width: auto;
  }

  .hnc-eval-progress-bar {
    width: 100%;
  }
}

/* 详细评分样式 */
.hnc-eval-score-breakdown {
  line-height: 1.6;
}

.hnc-eval-score-grid {
  display: grid;
  gap: 1.5em;
  margin-bottom: 2em;
}

.hnc-eval-score-item {
  padding: 1.2em;
  background: #f8fafc;
  border-radius: 8px;
  border-left: 4px solid #3b82f6;
}

.hnc-eval-score-name {
  font-weight: 600;
  color: #1e293b;
  font-size: 16px;
  display: block;
  margin-bottom: 0.5em;
}

.hnc-eval-score-detail {
  display: flex;
  flex-direction: column;
  gap: 0.5em;
}

.hnc-eval-score-value {
  font-size: 18px;
  font-weight: 700;
  color: #3b82f6;
}

.hnc-eval-score-desc {
  color: #64748b;
  margin: 0;
  font-size: 14px;
}

.hnc-eval-scoring-criteria {
  background: #fffbeb;
  padding: 1.2em;
  border-radius: 8px;
  border: 1px solid #fbbf24;
}

.hnc-eval-scoring-criteria h5 {
  margin: 0 0 1em 0;
  color: #92400e;
  font-size: 16px;
}

.hnc-eval-scoring-criteria ul {
  margin: 0;
  padding-left: 1.2em;
  color: #78716c;
}

.hnc-eval-scoring-criteria li {
  margin-bottom: 0.5em;
}

/* 逐句分析样式 */
.hnc-eval-sentence-breakdown {
  line-height: 1.6;
}

.hnc-eval-sentence-item {
  background: #f8fafc;
  border-radius: 8px;
  padding: 1.2em;
  margin-bottom: 1.5em;
  border-left: 4px solid #10b981;
}

.hnc-eval-sentence-header {
  font-weight: 600;
  font-size: 16px;
  color: #1e293b;
  margin-bottom: 1em;
  padding-bottom: 0.5em;
  border-bottom: 1px solid #e2e8f0;
}

.hnc-eval-sentence-original,
.hnc-eval-sentence-user,
.hnc-eval-sentence-reference,
.hnc-eval-sentence-comment {
  margin-bottom: 0.8em;
  display: flex;
  gap: 0.5em;
}

.hnc-eval-sentence-original label,
.hnc-eval-sentence-user label,
.hnc-eval-sentence-reference label,
.hnc-eval-sentence-comment label {
  font-weight: 600;
  color: #374151;
  min-width: 80px;
  flex-shrink: 0;
}

.hnc-eval-sentence-original span {
  color: #6b7280;
}

.hnc-eval-sentence-user span {
  color: #3b82f6;
}

.hnc-eval-sentence-reference span {
  color: #10b981;
}

.hnc-eval-sentence-comment span {
  color: #92400e;
}

/* 术语检查样式 */
.hnc-cet6-eval-terminology-section {
  line-height: 1.6;
}

.hnc-eval-term-list {
  margin-bottom: 2em;
}

.hnc-eval-term-item {
  background: #f8fafc;
  border-radius: 8px;
  padding: 1em;
  margin-bottom: 1em;
  border-left: 4px solid #6b7280;
}

.hnc-eval-term-item.correct {
  border-left-color: #10b981;
  background: #f0fdf4;
}

.hnc-eval-term-item.incorrect {
  border-left-color: #ef4444;
  background: #fef2f2;
}

.hnc-eval-term-name {
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 0.5em;
}

.hnc-eval-term-translation {
  display: flex;
  flex-direction: column;
  gap: 0.3em;
  margin-bottom: 0.5em;
}

.user-term {
  color: #3b82f6;
  font-weight: 500;
}

.suggested-term {
  color: #10b981;
  font-weight: 500;
}

.hnc-eval-term-comment {
  font-size: 14px;
  color: #64748b;
}

.hnc-eval-consistency {
  background: #f0f9ff;
  padding: 1.2em;
  border-radius: 8px;
  border: 1px solid #3b82f6;
}

.hnc-eval-consistency h5 {
  margin: 0 0 0.8em 0;
  color: #1e40af;
}

.hnc-eval-consistency-score {
  font-weight: 600;
  color: #3b82f6;
  margin-bottom: 0.5em;
}

/* 改进建议样式 */
.hnc-cet6-eval-suggestions-section {
  line-height: 1.6;
}

.hnc-eval-suggestion-list {
  margin-bottom: 2em;
}

.hnc-eval-suggestion-item {
  background: #f8fafc;
  border-radius: 8px;
  padding: 1.2em;
  margin-bottom: 1.5em;
  border-left: 4px solid #8b5cf6;
}

.hnc-eval-suggestion-title {
  font-weight: 600;
  color: #1e293b;
  font-size: 16px;
  margin-bottom: 0.8em;
}

.hnc-eval-suggestion-content {
  color: #4b5563;
  margin-bottom: 0.8em;
}

.hnc-eval-suggestion-example {
  background: #fef3c7;
  padding: 0.8em;
  border-radius: 4px;
  font-family: 'Courier New', monospace;
  color: #92400e;
  border-left: 3px solid #f59e0b;
}

.hnc-eval-generic-suggestions {
  padding: 1.5em;
  border-radius: 8px;
  margin-bottom: 2em;
}

.hnc-eval-generic-suggestions.excellent {
  background: #f0fdf4;
  border: 1px solid #22c55e;
}

.hnc-eval-generic-suggestions.good {
  background: #eff6ff;
  border: 1px solid #3b82f6;
}

.hnc-eval-generic-suggestions.fair {
  background: #fffbeb;
  border: 1px solid #f59e0b;
}

.hnc-eval-generic-suggestions.poor {
  background: #fef2f2;
  border: 1px solid #ef4444;
}

.hnc-eval-generic-suggestions h5 {
  margin: 0 0 1em 0;
  font-size: 18px;
}

.hnc-eval-generic-suggestions ul {
  margin: 0;
  padding-left: 1.2em;
}

.hnc-eval-generic-suggestions li {
  margin-bottom: 0.8em;
  line-height: 1.5;
}

.hnc-eval-next-steps {
  background: #f1f5f9;
  padding: 1.5em;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
}

.hnc-eval-next-steps h5 {
  margin: 0 0 1em 0;
  color: #1e293b;
}

.hnc-eval-action-items {
  display: flex;
  flex-direction: column;
  gap: 0.8em;
}

.hnc-eval-action-item {
  display: flex;
  align-items: center;
  gap: 0.8em;
  padding: 0.8em;
  background: white;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
}

.hnc-eval-action-icon {
  font-size: 18px;
  flex-shrink: 0;
}

/* 无数据状态样式 */
.hnc-eval-no-data {
  text-align: center;
  padding: 2em;
  background: #f8fafc;
  border-radius: 8px;
  color: #64748b;
  font-style: italic;
}

/* 打印样式 */
@media print {
  .hnc-eval-quick-actions {
    display: none;
  }

  .hnc-eval-accordion-item {
    break-inside: avoid;
  }

  .hnc-eval-summary-card {
    box-shadow: none;
    border: 2px solid #e2e8f0;
  }
}

/* === 新增：Stepper 进度条样式 (统一风格) === */
.hnc-stepper-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2em;
  padding: 0 1em;
  position: relative;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hnc-stepper-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 2;
  gap: 8px;
  opacity: 0.6;
  transition: all 0.3s ease;
}

.hnc-stepper-item.active {
  opacity: 1;
}

.hnc-step-circle {
  width: 32px;
  height: 32px;
  background-color: #f1f5f9;
  border: 2px solid #cbd5e1;
  color: #64748b;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hnc-stepper-item.active .hnc-step-circle {
  background-color: #3b82f6;
  border-color: #3b82f6;
  color: white;
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.2);
  transform: scale(1.1);
}

.hnc-stepper-item.completed .hnc-step-circle {
  background-color: #10b981;
  border-color: #10b981;
  color: white;
}

.hnc-step-label {
  font-size: 13px;
  font-weight: 600;
  color: #475569;
}

.hnc-stepper-item.active .hnc-step-label {
  color: #3b82f6;
}

.hnc-stepper-line {
  flex-grow: 1;
  height: 2px;
  background-color: #e2e8f0;
  margin: 0 10px;
  position: relative;
  top: -14px;
  z-index: 1;
}


/* ============================================================
   CET-4 智能翻译工坊 纸感改版(批3, 2026-06-10) — scoped overrides
   与 听力(.hnc-lab--a) / 汉译英(.hnc-trx) / 每日新闻(.hnc-news-x)
   同源暖纸 token。

   挂载约定:
   - 根选择器 = #hnc-cet6-translation-workshop-section (PHP 渲染自带,
     hnc-cet6-translation-workshop.php line ~3837), 主体无需任何 JS 配合。
   - 唯一 body 直挂元素是 showToast() 的 .hnc-toast (translation-workshop.js
     ~line 374, 颜色走 inline style)。若要 toast 也纸感, JS 一行改:
       toast.className = `hnc-trw-paper hnc-toast hnc-toast-${type}`;
     本文件已按「同元素+后代」双形态写好 .hnc-trw-paper 规则;
     不改 JS 则 toast 维持旧 inline 配色, 其余不受影响。
   - 追加式: 本段追加到 translation-workshop.css 末尾(或之后 enqueue)。
     同特异性覆盖(如 #section button 兜底)依赖「后到先得」, 勿前置加载。
   - 旧规则带 !important 的 (.hnc-hint-btn / .hnc-draft-btn / .hnc-tool-btn /
     .hnc-tab / .hnc-cet6-translation-btn-secondary), 覆盖同样带 !important。
   ============================================================ */

#hnc-cet6-translation-workshop-section {
  --w-paper: #FAF6EE;
  --w-paper-deep: #F3ECDC;
  --w-ink: #231F1A;
  --w-ink-2: #5E5347;
  --w-ink-3: #8D8375;
  --w-rule: #E5DCC6;
  --w-rule-soft: #EFE7D4;
  --w-coral: #D8593A;
  --w-coral-soft: #F6E6DD;
  --w-leaf: #5A7A47;
  --w-leaf-soft: #E7EEDD;
  --w-marker: #F7E9B5;
  --w-serif: Georgia, 'Times New Roman', 'Songti SC', 'Noto Serif SC', serif;
  --w-mono: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  --w-ink-hover: #3D362E;
  --w-focus: rgba(216, 89, 58, 0.16);
  background-color: var(--w-paper);
  border: 1px solid var(--w-rule);
  box-shadow: none;
  color: var(--w-ink);
}

/* ---- 标题区 ---- */
#hnc-cet6-translation-workshop-section .hnc-module-title {
  color: var(--w-ink);
  font-family: var(--w-serif);
  font-weight: 700;
  letter-spacing: 0;
}

#hnc-cet6-translation-workshop-section h3,
#hnc-cet6-translation-workshop-section h4,
#hnc-cet6-translation-workshop-section h5 {
  color: var(--w-ink);
}

/* 复制链接圆钮: 旧规则 #section #btn = (2,0,0), 必须同特异性重写 */
#hnc-cet6-translation-workshop-section #hnc-cet6-translation-copy-link-btn {
  background: var(--w-paper);
  border: 1px solid var(--w-rule);
  border-radius: 50%;
  color: var(--w-ink-3);
  box-shadow: none;
}
#hnc-cet6-translation-workshop-section #hnc-cet6-translation-copy-link-btn:hover {
  background: var(--w-rule-soft);
  border-color: var(--w-ink-3);
  color: var(--w-ink);
}
#hnc-cet6-translation-workshop-section #hnc-cet6-translation-copy-link-btn:active {
  background: var(--w-rule-soft);
}
#hnc-cet6-translation-workshop-section #hnc-cet6-translation-copy-link-btn.copied {
  background: var(--w-leaf-soft);
  border-color: var(--w-leaf);
  color: var(--w-leaf);
}

/* 说明条: 蓝底 → 纸深底 + 珊瑚左缘 */
#hnc-cet6-translation-workshop-section .hnc-info-box {
  background: var(--w-paper-deep);
  border: 1px solid var(--w-rule-soft);
  border-left: 3px solid var(--w-coral);
  border-radius: 0 8px 8px 0;
  color: var(--w-ink-2);
  box-shadow: none;
}

/* ============================================================
   按钮体系
   层1 幽灵(兜底): rule 边 + paper 底 + ink-2 字, hover rule-soft
   层2 墨实心(主操作): 提交 / 查看题目 / 再次练习
   层3 mini: 草稿钮 / 工具钮
   is-on / .active = 墨反白
   注意: 本兜底与旧 `#section button` 同特异性(1,0,1), 靠追加在后生效
   ============================================================ */
#hnc-cet6-translation-workshop-section button {
  background: var(--w-paper);
  color: var(--w-ink-2);
  border: 1px solid var(--w-rule);
  border-radius: 8px;
  font-weight: 600;
  box-shadow: none;
  letter-spacing: 0;
}
#hnc-cet6-translation-workshop-section button:hover {
  background: var(--w-rule-soft);
  border-color: var(--w-ink-3);
  color: var(--w-ink);
  transform: none;
  box-shadow: none;
}
#hnc-cet6-translation-workshop-section button:disabled,
#hnc-cet6-translation-workshop-section #hnc-cet6-translation-next-btn-1:disabled,
#hnc-cet6-translation-workshop-section .hnc-primary-btn:disabled {
  background: var(--w-rule-soft);
  border-color: var(--w-rule);
  color: var(--w-ink-3);
  box-shadow: none;
  transform: none;
  cursor: not-allowed;
}
#hnc-cet6-translation-workshop-section button:focus-visible,
#hnc-cet6-translation-workshop-section select:focus-visible,
#hnc-cet6-translation-workshop-section textarea:focus-visible,
#hnc-cet6-translation-workshop-section [role="button"]:focus-visible {
  outline: 2px solid var(--w-coral);
  outline-offset: 2px;
}

/* 墨实心主操作 */
#hnc-cet6-translation-workshop-section .hnc-primary-btn,
#hnc-cet6-translation-workshop-section #hnc-cet6-translation-next-btn-1:not(:disabled) {
  background: var(--w-ink);
  border-color: var(--w-ink);
  color: var(--w-paper);
  font-weight: 700;
  box-shadow: none;
}
#hnc-cet6-translation-workshop-section .hnc-primary-btn:hover:not(:disabled),
#hnc-cet6-translation-workshop-section #hnc-cet6-translation-next-btn-1:hover:not(:disabled) {
  background: var(--w-ink-hover);
  border-color: var(--w-ink-hover);
  color: var(--w-paper);
  transform: none;
  box-shadow: none;
}

/* 次级按钮(返回/查看参考答案/保存/导出): 旧规则全 !important */
#hnc-cet6-translation-workshop-section .hnc-cet6-translation-btn-secondary {
  background-color: var(--w-paper) !important;
  color: var(--w-ink-2) !important;
  border-color: var(--w-rule) !important;
  box-shadow: none !important;
}
#hnc-cet6-translation-workshop-section .hnc-cet6-translation-btn-secondary:hover {
  background-color: var(--w-rule-soft) !important;
  border-color: var(--w-ink-3) !important;
  color: var(--w-ink) !important;
  transform: none;
}

/* ---- Stepper 进度条 ---- */
#hnc-cet6-translation-workshop-section .hnc-step-circle {
  background-color: var(--w-paper-deep);
  border: 2px solid var(--w-rule);
  color: var(--w-ink-3);
  font-family: var(--w-mono);
}
#hnc-cet6-translation-workshop-section .hnc-stepper-item.active .hnc-step-circle {
  background-color: var(--w-ink);
  border-color: var(--w-ink);
  color: var(--w-paper);
  box-shadow: none;
  transform: none;
}
#hnc-cet6-translation-workshop-section .hnc-stepper-item.completed .hnc-step-circle {
  background-color: var(--w-leaf);
  border-color: var(--w-leaf);
  color: var(--w-paper);
}
#hnc-cet6-translation-workshop-section .hnc-step-label {
  color: var(--w-ink-3);
}
#hnc-cet6-translation-workshop-section .hnc-stepper-item.active .hnc-step-label {
  color: var(--w-ink);
  font-weight: 700;
}
#hnc-cet6-translation-workshop-section .hnc-stepper-line {
  background-color: var(--w-rule);
}

/* ---- 统计面板 ---- */
#hnc-cet6-translation-workshop-section .hnc-stats-panel {
  background: var(--w-paper);
  border: 1px solid var(--w-rule);
  box-shadow: none;
}
#hnc-cet6-translation-workshop-section .hnc-stats-number {
  color: var(--w-ink);
  font-family: var(--w-mono);
}
#hnc-cet6-translation-workshop-section .hnc-stats-label {
  color: var(--w-ink-3);
}

/* ---- 下拉/筛选 ---- */
#hnc-cet6-translation-workshop-section .hnc-cet6-translation-controls select {
  border: 1px solid var(--w-rule);
  background-color: var(--w-paper);
  color: var(--w-ink);
  border-radius: 8px;
}
#hnc-cet6-translation-workshop-section .hnc-filter-controls {
  background-color: var(--w-paper-deep);
  border: 1px solid var(--w-rule-soft);
}
#hnc-cet6-translation-workshop-section .hnc-filter-group label {
  color: var(--w-ink-2);
  font-family: var(--w-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
}
/* 只覆 background-color, 保留旧 shorthand 里的下拉箭头 svg */
#hnc-cet6-translation-workshop-section .hnc-filter-group select {
  border: 1px solid var(--w-rule);
  background-color: var(--w-paper);
  color: var(--w-ink-2);
  border-radius: 6px;
}

/* ---- Step2 横幅 h4 (旧: 蓝渐变, (1,0,2) → 用 (2,0,1) 压过) ---- */
#hnc-cet6-translation-workshop-section #hnc-cet6-translation-step-2 h4 {
  background: var(--w-paper-deep);
  border: 1px solid var(--w-rule-soft);
  border-left: 3px solid var(--w-coral);
  border-radius: 0 8px 8px 0;
  color: var(--w-ink);
  font-weight: 700;
  animation: none;
}

/* ---- 题目卡(列表) ---- */
#hnc-cet6-translation-workshop-section .hnc-cet6-translation-card {
  background: var(--w-paper);
  border: 1px solid var(--w-rule);
  box-shadow: none;
}
#hnc-cet6-translation-workshop-section .hnc-cet6-translation-card::before {
  background: var(--w-coral);
}
#hnc-cet6-translation-workshop-section .hnc-cet6-translation-card:hover {
  border-color: var(--w-ink-3);
  box-shadow: none;
  transform: none;
}
#hnc-cet6-translation-workshop-section .hnc-cet6-translation-card.selected {
  border-color: var(--w-coral);
  background-color: var(--w-paper-deep);
  transform: none;
}
#hnc-cet6-translation-workshop-section .hnc-cet6-translation-card-title {
  color: var(--w-ink);
  font-family: var(--w-serif);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.45;
}
#hnc-cet6-translation-workshop-section .hnc-cet6-translation-card-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}
#hnc-cet6-translation-workshop-section .hnc-cet6-translation-card-meta {
  color: var(--w-ink-3);
  font-family: var(--w-mono);
  font-size: 12px;
  text-align: right;
  flex-shrink: 0;
}
#hnc-cet6-translation-workshop-section .hnc-cet6-translation-card-preview {
  color: var(--w-ink-2);
  font-size: 14px;
  line-height: 1.7;
}
#hnc-cet6-translation-workshop-section .hnc-difficulty-badge {
  display: inline-block;
  margin-top: 4px;
  padding: 2px 8px;
  border-radius: 999px;
  font-family: var(--w-mono);
  font-size: 11px;
  font-weight: 700;
  background: var(--w-paper-deep);
  color: var(--w-ink-2);
}
#hnc-cet6-translation-workshop-section .hnc-difficulty-easy {
  background: var(--w-leaf-soft);
  color: var(--w-leaf);
}
#hnc-cet6-translation-workshop-section .hnc-difficulty-medium {
  background: var(--w-marker);
  color: var(--w-ink-2);
}
#hnc-cet6-translation-workshop-section .hnc-difficulty-hard {
  background: var(--w-coral-soft);
  color: var(--w-coral);
}

/* ---- 中文原文(题目正文卡) ---- */
#hnc-cet6-translation-workshop-section #hnc-cet6-translation-chinese-text {
  color: var(--w-ink);
  background-color: var(--w-paper-deep);
  border: 1px solid var(--w-rule);
  box-shadow: none;
  font-family: var(--w-serif);
  font-weight: 600;
}
#hnc-cet6-translation-workshop-section .hnc-cet6-translation-meta {
  color: var(--w-ink-3);
  font-family: var(--w-mono);
  font-size: 12px;
}

/* ---- AI 提示系统 ---- */
#hnc-cet6-translation-workshop-section .hnc-hint-system {
  background: var(--w-paper-deep);
  border: 1px solid var(--w-rule-soft);
  box-shadow: none;
}
#hnc-cet6-translation-workshop-section .hnc-hint-header h5 {
  color: var(--w-ink);
}
#hnc-cet6-translation-workshop-section #hnc-cet6-hint-status-text,
#hnc-cet6-translation-workshop-section .hnc-cet6-hint-status-text {
  color: var(--w-ink-3);
  font-family: var(--w-mono);
  font-size: 12px;
}
#hnc-cet6-translation-workshop-section .hnc-loading-spinner {
  border: 2px solid var(--w-rule-soft);
  border-top: 2px solid var(--w-coral);
}

/* 提示按钮: 旧规则全 !important, 覆盖必须同带 */
#hnc-cet6-translation-workshop-section .hnc-hint-btn {
  background: var(--w-paper) !important;
  color: var(--w-ink-2) !important;
  border: 1px solid var(--w-rule) !important;
  box-shadow: none !important;
}
#hnc-cet6-translation-workshop-section .hnc-hint-btn:hover {
  background: var(--w-rule-soft) !important;
  color: var(--w-ink) !important;
  border-color: var(--w-ink-3) !important;
  transform: none;
  box-shadow: none;
}
#hnc-cet6-translation-workshop-section .hnc-hint-all {
  background: var(--w-paper) !important;
  color: var(--w-ink) !important;
  border-color: var(--w-ink-3) !important;
  font-weight: 700;
}
/* JS 会给提示钮 toggle .active / .loading (原 CSS 漏了这两态) */
#hnc-cet6-translation-workshop-section .hnc-hint-btn.active,
#hnc-cet6-translation-workshop-section .hnc-hint-btn.active:hover {
  background: var(--w-ink) !important;
  color: var(--w-paper) !important;
  border-color: var(--w-ink) !important;
}
#hnc-cet6-translation-workshop-section .hnc-hint-btn.loading {
  opacity: 0.6;
}

#hnc-cet6-translation-workshop-section .hnc-hint-area {
  background-color: var(--w-paper);
  border: 1px solid var(--w-rule-soft);
  box-shadow: none;
}
#hnc-cet6-translation-workshop-section .hnc-hint-area h5 {
  color: var(--w-ink);
  border-bottom: 1px solid var(--w-rule-soft);
}
#hnc-cet6-translation-workshop-section .hnc-hint-content {
  color: var(--w-ink-2);
}

/* 词汇提示: 蓝渐变 chip → 荧光标记 */
#hnc-cet6-translation-workshop-section .hnc-vocab-item {
  background: var(--w-marker);
  color: var(--w-ink);
  border: 1px solid rgba(35, 31, 26, 0.08);
  font-family: var(--w-serif);
  font-weight: 600;
}
#hnc-cet6-translation-workshop-section .hnc-vocab-item:hover {
  background: var(--w-marker);
  color: var(--w-ink);
  border-color: var(--w-ink-3);
  transform: none;
  box-shadow: none;
}

/* 句子拆解: 琥珀渐变 → 纸面 + 珊瑚左缘 */
#hnc-cet6-translation-workshop-section .hnc-breakdown-item {
  background: var(--w-paper);
  border: 1px solid var(--w-rule-soft);
  border-left: 3px solid var(--w-coral);
  box-shadow: none;
}
#hnc-cet6-translation-workshop-section .hnc-breakdown-chinese {
  color: var(--w-ink);
  font-family: var(--w-serif);
}
#hnc-cet6-translation-workshop-section .hnc-breakdown-hint {
  color: var(--w-ink-3);
}

/* ---- 输入区 ---- */
#hnc-cet6-translation-workshop-section .hnc-input-header h4 {
  color: var(--w-ink);
  font-family: var(--w-serif);
}
#hnc-cet6-translation-workshop-section .hnc-word-count,
#hnc-cet6-translation-workshop-section .hnc-char-count {
  color: var(--w-ink-3);
  background-color: var(--w-paper-deep);
  font-family: var(--w-mono);
}
/* 草稿钮: 旧规则全 !important */
#hnc-cet6-translation-workshop-section .hnc-draft-btn {
  background: var(--w-paper) !important;
  border: 1px solid var(--w-rule) !important;
  color: var(--w-ink-3) !important;
}
#hnc-cet6-translation-workshop-section .hnc-draft-btn:hover {
  background-color: var(--w-rule-soft) !important;
  color: var(--w-ink) !important;
  border-color: var(--w-ink-3) !important;
}

/* 译文输入框: 英文正文 serif. 旧 (1,0,0) → (2,0,0) 压过 */
#hnc-cet6-translation-workshop-section #hnc-cet6-translation-user-input {
  background-color: var(--w-paper);
  border: 1px solid var(--w-rule);
  color: var(--w-ink);
  font-family: var(--w-serif);
  font-size: 16px;
  line-height: 1.8;
}
#hnc-cet6-translation-workshop-section #hnc-cet6-translation-user-input::placeholder {
  color: var(--w-ink-3);
  font-family: var(--w-serif);
}
#hnc-cet6-translation-workshop-section #hnc-cet6-translation-user-input:focus {
  border-color: var(--w-ink-3);
  box-shadow: 0 0 0 3px var(--w-focus);
}

/* 浮在输入框右上的工具钮: 旧规则全 !important */
#hnc-cet6-translation-workshop-section .hnc-tool-btn {
  background: rgba(250, 246, 238, 0.92) !important;
  border: 1px solid var(--w-rule) !important;
  color: var(--w-ink-3) !important;
}
#hnc-cet6-translation-workshop-section .hnc-tool-btn:hover:not(:disabled) {
  background: var(--w-rule-soft) !important;
  color: var(--w-ink) !important;
  border-color: var(--w-ink-3) !important;
}

/* 实时建议面板(原无样式) */
#hnc-cet6-translation-workshop-section .hnc-suggestions-panel {
  background: var(--w-paper-deep);
  border: 1px solid var(--w-rule-soft);
  border-radius: 10px;
  padding: 12px 16px;
  margin-top: 10px;
}
#hnc-cet6-translation-workshop-section .hnc-suggestions-panel h5 {
  color: var(--w-ink);
  margin: 0 0 8px;
}
#hnc-cet6-translation-workshop-section #hnc-cet6-suggestions-content {
  color: var(--w-ink-2);
}

/* ---- 参考答案 ---- */
#hnc-cet6-translation-workshop-section #hnc-cet6-translation-reference-area h4 {
  color: var(--w-ink);
  font-family: var(--w-serif);
}
/* 标签页: 旧规则全 !important; active = 墨反白 */
#hnc-cet6-translation-workshop-section .hnc-tab {
  background-color: var(--w-paper) !important;
  color: var(--w-ink-2) !important;
  border: 1px solid var(--w-rule) !important;
  border-radius: 8px 8px 0 0 !important;
}
#hnc-cet6-translation-workshop-section .hnc-tab:hover {
  background-color: var(--w-rule-soft) !important;
  color: var(--w-ink) !important;
}
#hnc-cet6-translation-workshop-section .hnc-tab.active,
#hnc-cet6-translation-workshop-section .hnc-tab.active:hover {
  background-color: var(--w-ink) !important;
  color: var(--w-paper) !important;
  border-color: var(--w-ink) !important;
}
/* 参考译文 = 答案 → leaf 左缘 + serif 英文正文 */
#hnc-cet6-translation-workshop-section .hnc-reference-content {
  background-color: var(--w-paper-deep);
  border: 1px solid var(--w-rule);
  border-left: 3px solid var(--w-leaf);
  border-radius: 0 10px 10px 0;
  color: var(--w-ink);
  font-family: var(--w-serif);
  font-size: 16px;
  line-height: 1.85;
}

/* ---- 结果区通用 ---- */
#hnc-cet6-translation-workshop-section .hnc-loading-text {
  color: var(--w-ink-3);
}
/* 错误条: PHP 上有 inline style="color:red" → 必须 !important */
#hnc-cet6-translation-workshop-section #hnc-cet6-translation-error {
  color: var(--w-coral) !important;
  font-weight: 600;
}

/* ============================================================
   新版 AI 评分反馈 (.hnc-eval-*)
   ============================================================ */
#hnc-cet6-translation-workshop-section .hnc-eval-summary-card {
  background: var(--w-paper);
  border: 1px solid var(--w-rule);
  box-shadow: none;
}
/* 总分圆: 蓝渐变 → 墨实心 */
#hnc-cet6-translation-workshop-section .hnc-eval-score-circle {
  background: var(--w-ink);
  color: var(--w-paper);
  box-shadow: none;
}
#hnc-cet6-translation-workshop-section .hnc-eval-score-number {
  font-family: var(--w-mono);
  color: var(--w-paper);
}
#hnc-cet6-translation-workshop-section .hnc-eval-score-label {
  font-family: var(--w-mono);
  color: var(--w-paper);
  opacity: 0.75;
}
/* 等级徽章 */
#hnc-cet6-translation-workshop-section .hnc-cet6-eval-grade-badge {
  background: var(--w-paper-deep);
  color: var(--w-ink-2);
  border: 1px solid var(--w-rule);
}
#hnc-cet6-translation-workshop-section .hnc-cet6-eval-grade-badge.excellent {
  background: var(--w-leaf-soft);
  color: var(--w-leaf);
  border-color: var(--w-leaf);
}
#hnc-cet6-translation-workshop-section .hnc-cet6-eval-grade-badge.good {
  background: var(--w-paper-deep);
  color: var(--w-ink);
  border-color: var(--w-rule);
}
#hnc-cet6-translation-workshop-section .hnc-cet6-eval-grade-badge.fair {
  background: var(--w-marker);
  color: var(--w-ink-2);
  border-color: var(--w-rule);
}
#hnc-cet6-translation-workshop-section .hnc-cet6-eval-grade-badge.poor {
  background: var(--w-coral-soft);
  color: var(--w-coral);
  border-color: var(--w-coral);
}
#hnc-cet6-translation-workshop-section .hnc-cet6-eval-summary-text {
  color: var(--w-ink-2);
}
/* 分项评分 */
#hnc-cet6-translation-workshop-section .hnc-eval-subscore-label {
  color: var(--w-ink-2);
}
#hnc-cet6-translation-workshop-section .hnc-eval-progress-bar {
  background: var(--w-rule-soft);
}
#hnc-cet6-translation-workshop-section .hnc-eval-progress-fill {
  background: var(--w-coral);
}
#hnc-cet6-translation-workshop-section .hnc-eval-subscore-value {
  color: var(--w-ink);
  font-family: var(--w-mono);
}
/* 快速操作三钮 */
#hnc-cet6-translation-workshop-section .hnc-eval-action-btn {
  border: 1px solid var(--w-rule);
  box-shadow: none;
}
#hnc-cet6-translation-workshop-section .hnc-eval-btn-primary {
  background: var(--w-ink);
  color: var(--w-paper);
  border-color: var(--w-ink);
}
#hnc-cet6-translation-workshop-section .hnc-eval-btn-primary:hover {
  background: var(--w-ink-hover);
  border-color: var(--w-ink-hover);
  color: var(--w-paper);
  transform: none;
}
#hnc-cet6-translation-workshop-section .hnc-eval-btn-secondary,
#hnc-cet6-translation-workshop-section .hnc-eval-btn-tertiary {
  background: var(--w-paper);
  color: var(--w-ink-2);
  border: 1px solid var(--w-rule);
}
#hnc-cet6-translation-workshop-section .hnc-eval-btn-secondary:hover,
#hnc-cet6-translation-workshop-section .hnc-eval-btn-tertiary:hover {
  background: var(--w-rule-soft);
  border-color: var(--w-ink-3);
  color: var(--w-ink);
}

/* 区段标题 */
#hnc-cet6-translation-workshop-section .hnc-eval-section-title {
  color: var(--w-ink);
  font-family: var(--w-serif);
}

/* 亮点 = leaf / 待改进 = coral */
#hnc-cet6-translation-workshop-section .hnc-eval-highlight-item {
  background: var(--w-leaf-soft);
  border-left: 3px solid var(--w-leaf);
  color: var(--w-ink);
}
#hnc-cet6-translation-workshop-section .hnc-eval-issue-item {
  background: var(--w-coral-soft);
  border-left: 3px solid var(--w-coral);
  color: var(--w-ink);
}
#hnc-cet6-translation-workshop-section .hnc-eval-urgency {
  background: var(--w-coral-soft);
  color: var(--w-coral);
}

/* 手风琴 */
#hnc-cet6-translation-workshop-section .hnc-eval-accordion-item {
  border: 1px solid var(--w-rule);
  background: var(--w-paper);
  box-shadow: none;
}
#hnc-cet6-translation-workshop-section .hnc-eval-accordion-title {
  background: var(--w-paper-deep);
  color: var(--w-ink);
}
#hnc-cet6-translation-workshop-section .hnc-eval-accordion-title:hover {
  background: var(--w-rule-soft);
  color: var(--w-ink);
}
#hnc-cet6-translation-workshop-section .hnc-eval-accordion-item[open] > .hnc-eval-accordion-title {
  background: var(--w-paper-deep);
  color: var(--w-ink);
  border-bottom: 1px solid var(--w-rule);
}
#hnc-cet6-translation-workshop-section .hnc-eval-accordion-icon {
  background: var(--w-ink);
  color: var(--w-paper);
}
#hnc-cet6-translation-workshop-section .hnc-eval-accordion-content {
  background: var(--w-paper);
  color: var(--w-ink-2);
}

/* 详细评分 */
#hnc-cet6-translation-workshop-section .hnc-eval-score-item {
  background: var(--w-paper-deep);
  border-left: 3px solid var(--w-coral);
}
#hnc-cet6-translation-workshop-section .hnc-eval-score-name {
  color: var(--w-ink);
}
#hnc-cet6-translation-workshop-section .hnc-eval-score-value {
  color: var(--w-ink);
  font-family: var(--w-mono);
}
#hnc-cet6-translation-workshop-section .hnc-eval-score-desc {
  color: var(--w-ink-2);
}
#hnc-cet6-translation-workshop-section .hnc-eval-scoring-criteria {
  background: var(--w-paper-deep);
  border: 1px solid var(--w-rule);
}
#hnc-cet6-translation-workshop-section .hnc-eval-scoring-criteria h5 {
  color: var(--w-ink);
}
#hnc-cet6-translation-workshop-section .hnc-eval-scoring-criteria ul,
#hnc-cet6-translation-workshop-section .hnc-eval-scoring-criteria li {
  color: var(--w-ink-2);
}

/* 逐句对比 */
#hnc-cet6-translation-workshop-section .hnc-eval-sentence-item {
  background: var(--w-paper-deep);
  border-left: 3px solid var(--w-rule);
}
#hnc-cet6-translation-workshop-section .hnc-eval-sentence-header {
  color: var(--w-ink);
  border-bottom: 1px solid var(--w-rule);
}
#hnc-cet6-translation-workshop-section .hnc-eval-sentence-original label,
#hnc-cet6-translation-workshop-section .hnc-eval-sentence-user label,
#hnc-cet6-translation-workshop-section .hnc-eval-sentence-reference label,
#hnc-cet6-translation-workshop-section .hnc-eval-sentence-comment label {
  color: var(--w-ink-2);
}
#hnc-cet6-translation-workshop-section .hnc-eval-sentence-original span {
  color: var(--w-ink-3);
}
#hnc-cet6-translation-workshop-section .hnc-eval-sentence-user span {
  color: var(--w-ink);
  font-family: var(--w-serif);
}
#hnc-cet6-translation-workshop-section .hnc-eval-sentence-reference span {
  color: var(--w-leaf);
  font-family: var(--w-serif);
}
#hnc-cet6-translation-workshop-section .hnc-eval-sentence-comment span {
  color: var(--w-ink-2);
}

/* 术语检查 */
#hnc-cet6-translation-workshop-section .hnc-eval-term-item {
  background: var(--w-paper-deep);
  border-left: 3px solid var(--w-ink-3);
}
#hnc-cet6-translation-workshop-section .hnc-eval-term-item.correct {
  border-left-color: var(--w-leaf);
  background: var(--w-leaf-soft);
}
#hnc-cet6-translation-workshop-section .hnc-eval-term-item.incorrect {
  border-left-color: var(--w-coral);
  background: var(--w-coral-soft);
}
#hnc-cet6-translation-workshop-section .hnc-eval-term-name {
  color: var(--w-ink);
}
#hnc-cet6-translation-workshop-section .user-term {
  color: var(--w-ink-2);
  font-family: var(--w-serif);
}
#hnc-cet6-translation-workshop-section .suggested-term {
  color: var(--w-leaf);
  font-family: var(--w-serif);
}
#hnc-cet6-translation-workshop-section .hnc-eval-term-comment {
  color: var(--w-ink-2);
}
#hnc-cet6-translation-workshop-section .hnc-eval-consistency {
  background: var(--w-paper-deep);
  border: 1px solid var(--w-rule);
  color: var(--w-ink-2);
}
#hnc-cet6-translation-workshop-section .hnc-eval-consistency h5 {
  color: var(--w-ink);
}
#hnc-cet6-translation-workshop-section .hnc-eval-consistency-score {
  color: var(--w-ink);
  font-family: var(--w-mono);
}

/* 改进建议 */
#hnc-cet6-translation-workshop-section .hnc-eval-suggestion-item {
  background: var(--w-paper-deep);
  border-left: 3px solid var(--w-coral);
}
#hnc-cet6-translation-workshop-section .hnc-eval-suggestion-title {
  color: var(--w-ink);
}
#hnc-cet6-translation-workshop-section .hnc-eval-suggestion-content {
  color: var(--w-ink-2);
}
#hnc-cet6-translation-workshop-section .hnc-eval-suggestion-example {
  background: var(--w-marker);
  color: var(--w-ink);
  border-left: 3px solid var(--w-coral);
  font-family: var(--w-mono);
}
#hnc-cet6-translation-workshop-section .hnc-eval-generic-suggestions.excellent {
  background: var(--w-leaf-soft);
  border: 1px solid var(--w-leaf);
}
#hnc-cet6-translation-workshop-section .hnc-eval-generic-suggestions.good {
  background: var(--w-paper-deep);
  border: 1px solid var(--w-rule);
}
#hnc-cet6-translation-workshop-section .hnc-eval-generic-suggestions.fair {
  background: var(--w-marker);
  border: 1px solid var(--w-rule);
}
#hnc-cet6-translation-workshop-section .hnc-eval-generic-suggestions.poor {
  background: var(--w-coral-soft);
  border: 1px solid var(--w-coral);
}
#hnc-cet6-translation-workshop-section .hnc-eval-generic-suggestions h5 {
  color: var(--w-ink);
}
#hnc-cet6-translation-workshop-section .hnc-eval-generic-suggestions ul,
#hnc-cet6-translation-workshop-section .hnc-eval-generic-suggestions li {
  color: var(--w-ink-2);
}
#hnc-cet6-translation-workshop-section .hnc-eval-next-steps {
  background: var(--w-paper-deep);
  border: 1px solid var(--w-rule);
}
#hnc-cet6-translation-workshop-section .hnc-eval-next-steps h5 {
  color: var(--w-ink);
}
#hnc-cet6-translation-workshop-section .hnc-eval-action-item {
  background: var(--w-paper);
  border: 1px solid var(--w-rule);
  color: var(--w-ink-2);
}

/* N/A、错误、无数据 */
#hnc-cet6-translation-workshop-section .hnc-cet6-eval-na-state,
#hnc-cet6-translation-workshop-section .hnc-cet6-eval-error-state {
  background: var(--w-paper-deep);
  border: 1px solid var(--w-rule);
}
#hnc-cet6-translation-workshop-section .hnc-eval-na-title,
#hnc-cet6-translation-workshop-section .hnc-eval-error-title {
  color: var(--w-ink);
}
#hnc-cet6-translation-workshop-section .hnc-eval-na-message,
#hnc-cet6-translation-workshop-section .hnc-cet6-eval-error-message {
  color: var(--w-ink-2);
}
#hnc-cet6-translation-workshop-section .hnc-eval-no-data {
  background: var(--w-paper-deep);
  color: var(--w-ink-3);
}

/* ---- 旧版评估渲染兜底(#hnc-cet6-translation-result 内 hnc-accordion-* 等,
        原本完全无样式; 只给最低限度纸感, 不动布局) ---- */
#hnc-cet6-translation-workshop-section #hnc-cet6-translation-result {
  color: var(--w-ink);
}
#hnc-cet6-translation-workshop-section .hnc-accordion-item {
  background: var(--w-paper);
  border: 1px solid var(--w-rule);
  border-radius: 10px;
  padding: 10px 14px;
  margin-bottom: 10px;
}
#hnc-cet6-translation-workshop-section .hnc-accordion-title {
  color: var(--w-ink);
  font-weight: 700;
  cursor: pointer;
}
#hnc-cet6-translation-workshop-section .hnc-accordion-content {
  color: var(--w-ink-2);
}
#hnc-cet6-translation-workshop-section .hnc-improvement-card,
#hnc-cet6-translation-workshop-section .hnc-insight-card,
#hnc-cet6-translation-workshop-section .hnc-strength-item {
  background: var(--w-paper-deep);
  border: 1px solid var(--w-rule-soft);
  border-radius: 8px;
  padding: 10px 14px;
  margin-bottom: 8px;
  color: var(--w-ink-2);
}
#hnc-cet6-translation-workshop-section .hnc-overall-score,
#hnc-cet6-translation-workshop-section .hnc-score-value {
  color: var(--w-ink);
  font-family: var(--w-mono);
  font-weight: 700;
}

/* ---- 练习历史 ---- */
#hnc-cet6-translation-workshop-section .hnc-history-panel {
  background: var(--w-paper);
  border: 1px solid var(--w-rule);
  border-radius: 12px;
  padding: 16px 20px;
  margin-top: 16px;
}
#hnc-cet6-translation-workshop-section .hnc-history-panel h4 {
  color: var(--w-ink);
  font-family: var(--w-serif);
  margin-top: 0;
}
#hnc-cet6-translation-workshop-section #hnc-cet6-history-content {
  color: var(--w-ink-2);
}

/* ============================================================
   body 直挂 toast (.hnc-toast) — 需 JS 给 toast 加 .hnc-trw-paper
   (showToast() 一行改); inline style 配色必须 !important 压制。
   双形态: 类挂元素自身 + 类挂父级后代, 两种挂法都生效。
   注意: body 上没有 --w-* 变量, 这里用字面量。
   ============================================================ */
.hnc-trw-paper.hnc-toast,
.hnc-trw-paper .hnc-toast {
  background: #231F1A !important;
  color: #FAF6EE !important;
  border: 1px solid #231F1A !important;
  border-radius: 8px !important;
  box-shadow: 0 6px 18px rgba(35, 31, 26, 0.25) !important;
  font-weight: 600;
}
.hnc-trw-paper.hnc-toast-success,
.hnc-trw-paper .hnc-toast-success {
  background: #5A7A47 !important;
  border-color: #5A7A47 !important;
  color: #FAF6EE !important;
}
.hnc-trw-paper.hnc-toast-warning,
.hnc-trw-paper .hnc-toast-warning {
  background: #D8593A !important;
  border-color: #D8593A !important;
  color: #FAF6EE !important;
}
