:root {
  --bg-primary: #ffffff;
  --bg-secondary: #f8f9fa;
  --text-primary: #1a1a1a;
  --text-secondary: #6c757d;
  --border-color: #dee2e6;
  --card-bg: #ffffff;
  --accent-color: #2d2d2d;
  --hover-bg: #f8f9fa;
}

* {
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
}

body {
  background: var(--bg-primary);
  min-height: 100vh;
  padding: 2rem 1rem;
  color: var(--text-primary);
}

.hero-header {
  text-align: center;
  padding: 3rem 1rem 4rem;
  position: relative;
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 900;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  letter-spacing: -1px;
  line-height: 1.1;
}

.hero-title i {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 25%, #f093fb 50%, #4facfe 75%, #00f2fe 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  color: var(--text-secondary);
  line-height: 1.8;
  font-weight: 400;
  max-width: 600px;
  margin: 0 auto;
}

.form-section {
  padding: 0;
  margin-bottom: 3rem;
}

.form-label {
  color: var(--text-primary);
  font-weight: 600;
  font-size: 1.05rem;
  margin-bottom: 0.75rem;
}

.form-label i {
  color: #888;
}

.prompt-textarea {
  height: 20rem;
  font-size: 1rem;
  border-radius: 0.75rem;
  resize: vertical;
  border: 2px solid var(--border-color);
  -webkit-transition: all 0.3s ease;
  transition: all 0.3s ease;
  background: var(--bg-secondary);
}

.prompt-textarea:focus {
  border-color: var(--accent-color);
  -webkit-box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.05);
          box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.05);
  background: #ffffff;
}

.form-text {
  color: #888;
  font-size: 0.875rem;
}

.btn-gradient {
  background: linear-gradient(135deg, #2d2d2d 0%, #1a1a1a 100%);
  border: none;
  color: #ffffff;
  font-weight: 700;
  padding: 1rem 2.5rem;
  font-size: 1.125rem;
  border-radius: 50px;
  -webkit-transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  -webkit-box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
          box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.btn-gradient:hover {
  -webkit-transform: translateY(-3px);
          transform: translateY(-3px);
  -webkit-box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
          box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  background: linear-gradient(135deg, #404040 0%, #2d2d2d 100%);
  color: #ffffff;
}

.btn-gradient:active {
  -webkit-transform: translateY(-1px);
          transform: translateY(-1px);
}


/* 重试按钮样式 */
.retry-btn {
  font-size: 0.875rem;
  padding: 0.25rem 0.5rem;
}

/* 错误提示样式 */
.alert {
  border-radius: 0.75rem;
  border: none;
  -webkit-box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
          box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  margin-bottom: 1.5rem;
}

.alert-danger {
  background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
  color: #ffffff;
}

.alert-success {
  background: linear-gradient(135deg, #28a745 0%, #218838 100%);
  color: #ffffff;
}

.alert i {
  margin-right: 0.5rem;
}


.history-section {
  padding: 0;
}

.history-title {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 0.75rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 2rem;
  font-size: 1.75rem;
}

.history-title i {
  color: #888;
}

.history-item {
  background: var(--bg-secondary);
  border: 2px solid var(--border-color);
  border-radius: 0.875rem;
  padding: 1.5rem;
  cursor: pointer;
  -webkit-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  margin-bottom: 1rem;
}

.history-item:hover {
  border-color: var(--accent-color);
  background: #ffffff;
  -webkit-transform: translateX(12px);
          transform: translateX(12px);
  -webkit-box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
          box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.history-item-prompt {
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 1.05rem;
}

.history-item-meta {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  font-size: 0.875rem;
  color: #888;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
  gap: 0.5rem;
}

.badge {
  font-weight: 600;
  padding: 0.4rem 0.8rem;
  border-radius: 50px;
  font-size: 0.75rem;
  letter-spacing: 0.3px;
}

.bg-success {
  background-color: #1a1a1a !important;
  color: #ffffff !important;
}

.bg-warning {
  background-color: #6b6b6b !important;
  color: #ffffff !important;
}

.bg-secondary {
  background-color: #b0b0b0 !important;
  color: #ffffff !important;
}

.bg-danger {
  background-color: #505050 !important;
  color: #ffffff !important;
}

@-webkit-keyframes fadeInUp {
  from {
    opacity: 0;
    -webkit-transform: translateY(30px);
            transform: translateY(30px);
  }
  to {
    opacity: 1;
    -webkit-transform: translateY(0);
            transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    -webkit-transform: translateY(30px);
            transform: translateY(30px);
  }
  to {
    opacity: 1;
    -webkit-transform: translateY(0);
            transform: translateY(0);
  }
}

.hero-header,
.form-section,
.history-section {
  -webkit-animation: fadeInUp 0.8s ease-out forwards;
          animation: fadeInUp 0.8s ease-out forwards;
}

.form-section {
  -webkit-animation-delay: 0.1s;
          animation-delay: 0.1s;
}

.history-section {
  -webkit-animation-delay: 0.2s;
          animation-delay: 0.2s;
}

@media (max-width: 576px) {
  body {
    padding: 1rem 0.5rem;
  }
  .hero-header {
    padding: 2rem 0.5rem 2.5rem;
  }
  .form-section {
    padding: 0;
  }
  .history-section {
    padding: 0;
  }
  .btn-gradient {
    padding: 0.875rem 1.75rem;
    font-size: 1rem;
  }
  .history-item {
    padding: 1.25rem;
  }
  .history-title {
    font-size: 1.5rem;
  }
}
/*# sourceMappingURL=index.css.map */