* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Noto Serif SC', 'Microsoft YaHei', serif;
  background-color: #f3f4f6;
  padding: 1rem;
}

.container {
  max-width: 80rem;
  margin: 0 auto;
}

.heading-1 {
  font-size: 1.875rem;
  font-weight: bold;
  text-align: center;
  margin-bottom: 2rem;
  color: #1f2937;
}

.flex-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: flex-start;
}

@media (min-width: 1024px) {
  .flex-container {
    flex-direction: row;
  }
}

.flex-1 {
  flex: 1;
  width: 100%;
}

.card {
  background-color: #ffffff;
  border-radius: 1rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  padding: 1.5rem;
}

.card-title {
  font-size: 1.125rem;
  font-weight: bold;
  margin-bottom: 1rem;
  color: #374151;
  display: flex;
  align-items: center;
}

.form-global-hint {
  margin: -0.25rem 0 1rem;
  padding: 0.625rem 0.875rem;
  border-radius: 0.5rem;
  background: #fff7e6;
  color: #8c6d1f;
  font-size: 0.875rem;
  line-height: 1.5;
  border: 1px solid #f3d19e;
}

.icon {
  width: 1.25rem;
  height: 1.25rem;
  margin-right: 0.5rem;
}

.btn-group {
  margin-top: 15px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.btn-group .el-button {
  flex: 1;
  min-width: 0;
  margin-left: 0 !important;
}

.btn-primary {
  background: linear-gradient(135deg, #c9a227 0%, #b8860b 100%) !important;
  border: none !important;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(201, 162, 39, 0.4);
}

.btn-secondary {
  min-width: 120px;
}

.btn-primary:disabled,
.el-button.btn-primary:disabled,
.el-button.btn-primary.is-loading {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

@media (max-width: 480px) {
  .btn-group .el-button {
    flex: 1 1 100%;
  }
}

.preview-section {
  width: 100%;
}

@media (min-width: 1024px) {
  .preview-section {
    width: auto;
  }
}

.preview-container {
  overflow: auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background-color: #f3f4f6;
  border-radius: 0.5rem;
  padding: 1rem;
}

.text-hint {
  font-size: 0.75rem;
  color: #6b7280;
  margin-top: 0.75rem;
  text-align: center;
}

/* 图片预览弹窗 */
.image-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 1rem;
}

.image-modal-content {
  background-color: #fff;
  border-radius: 12px;
  max-width: 100%;
  max-height: 90vh;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.image-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0 1rem 1.5rem;
  border-bottom: 1px solid #eee;
}

.image-modal-title {
  font-size: 1.125rem;
  font-weight: bold;
  color: #333;
}

.image-modal-close {
  background: none;
  border: none;
  color: #999;
  cursor: pointer;
  padding: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.image-modal-close:hover {
  color: #666;
}

.image-modal-body {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.generated-image {
  max-width: 100%;
  max-height: 70vh;
}

.save-hint {
  margin-top: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #666;
  font-size: 0.875rem;
}

@media print {
  .no-print {
    display: none !important;
  }
}
