/* 🎉 优化结果样式 - 1:1复制小程序版本 */
.optimization-result {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  border: 2px solid rgba(52, 199, 89, 0.3);
  border-radius: 24px;
  margin: 20px;
  padding: 20px;
  box-shadow: 0 8px 32px rgba(52, 199, 89, 0.15);
}

.result-header {
  margin-bottom: 16px;
}

.result-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.success-icon {
  font-size: 24px;
}

.title-text {
  font-size: 24px;
  font-weight: 700;
  color: #34C759;
}

.result-stats {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.stat-text {
  font-size: 12px;
  color: #636366;
  background: rgba(52, 199, 89, 0.1);
  padding: 4px 8px;
  border-radius: 6px;
}

.result-content {
  margin-bottom: 16px;
}

.content-preview {
  background: rgba(255, 255, 255, 0.8);
  border-radius: 8px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.preview-label {
  font-size: 13px;
  font-weight: 600;
  color: #34C759;
  margin-bottom: 8px;
  display: block;
}

.preview-text {
  font-size: 14px;
  color: #1C1C1E;
  line-height: 1.6;
  max-height: 200px;
  overflow-y: auto;
  white-space: pre-wrap;
  word-wrap: break-word;
}

.result-actions {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
}

.action-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.action-btn:active {
  transform: scale(0.95);
}

.action-btn.primary {
  background: linear-gradient(135deg, #34C759, #30D158);
  color: white;
  box-shadow: 0 4px 12px rgba(52, 199, 89, 0.3);
}

.action-btn.primary:hover {
  box-shadow: 0 6px 16px rgba(52, 199, 89, 0.4);
}

.action-btn.secondary {
  background: rgba(255, 255, 255, 0.8);
  color: #34C759;
  border: 1px solid rgba(52, 199, 89, 0.3);
}

.action-btn.secondary:hover {
  background: rgba(52, 199, 89, 0.1);
}

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

.btn-text {
  font-size: 14px;
}

.result-footer {
  text-align: center;
  padding-top: 12px;
  border-top: 1px solid rgba(52, 199, 89, 0.2);
}

.footer-text {
  display: block;
  font-size: 12px;
  color: #636366;
  margin-bottom: 4px;
}

.record-id {
  display: block;
  font-size: 11px;
  color: #8E8E93;
  font-family: monospace;
}

