/*
102翻译Codex简化

*/


/*
102翻译Codex简化
*/


/*
813翻译 style

*/

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

/* 基础模块样式 - 统一风格 */
#hnc-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-translation-header-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  margin-bottom: 1em;
}

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

/* === 复制链接图标按钮 === */
#hnc-translation-workshop-section #hnc-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-translation-workshop-section #hnc-translation-copy-link-btn:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
  color: #475569;
}

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

#hnc-translation-workshop-section #hnc-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-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-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-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-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-translation-controls {
  display: flex;
  align-items: center;
  gap: 1em;
  flex-wrap: wrap;
}

.hnc-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-translation-controls {
  display: flex;
  align-items: center;
  gap: 1em;
  flex-wrap: wrap;
  margin-top: 1em;
}

.hnc-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-translation-step-2 {
  animation: hnc-fadeInUp 0.5s ease-out;
}

#hnc-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-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-translation-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.2em;
  margin: 1.5em 0;
}

.hnc-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-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-translation-card:hover::before {
  transform: scaleX(1);
}

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

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

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

/* 翻译题目文本 - 增强视觉显著性 */
#hnc-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-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-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-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-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-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-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-translation-workshop-section button:hover {
  background-color: #2563eb;
  transform: translateY(-1px);
}

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

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

.hnc-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-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-eval-grade-badge.excellent {
  background: #dcfce7;
  color: #166534;
}

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

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

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

.hnc-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-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-eval-highlights-list,
.hnc-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-eval-na-state,
.hnc-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-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-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-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;
}


