* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Microsoft YaHei', 'Heiti SC', sans-serif;
}

body {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.container {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  width: 100%;
  max-width: 800px;
  padding: 30px;
}

header {
  text-align: center;
  margin-bottom: 30px;
}

header h1 {
  color: #2d3748;
  font-size: 2.2rem;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

header h1 i {
  color: #e53e3e;
}

header p {
  color: #718096;
  font-size: 1.1rem;
}

.input-section {
  background: #f7fafc;
  border-radius: 12px;
  padding: 25px;
  margin-bottom: 25px;
}

.input-section label {
  display: block;
  color: #2d3748;
  font-size: 1.1rem;
  margin-bottom: 10px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.input-section label i {
  color: #4299e1;
}

.input-section textarea {
  width: 100%;
  padding: 15px;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  font-size: 1rem;
  resize: none;
  transition: border-color 0.3s;
}

.input-section textarea:focus {
  outline: none;
  border-color: #4299e1;
  box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.1);
}

.tip {
  margin: 10px 0 20px;
  color: #718096;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.tip i {
  color: #ed8936;
}

.btn {
  background: linear-gradient(135deg, #e53e3e 0%, #c53030 100%);
  color: white;
  border: none;
  border-radius: 8px;
  padding: 14px 24px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(229, 62, 62, 0.2);
}

.btn.secondary {
  background: linear-gradient(135deg, #4299e1 0%, #3182ce 100%);
  margin-top: 20px;
}

.loading {
  text-align: center;
  padding: 30px 0;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid #e53e3e;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 20px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.result {
  margin-top: 25px;
}

.result h2 {
  color: #2d3748;
  font-size: 1.5rem;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.result h2 i {
  color: #ed8936;
}

.title-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.title-item {
  background: #f7fafc;
  border-left: 4px solid #e53e3e;
  padding: 15px 20px;
  border-radius: 8px;
  font-size: 1.1rem;
  color: #2d3748;
  line-height: 1.6;
  position: relative;
  transition: transform 0.2s;
}

.title-item:hover {
  transform: translateX(5px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.title-item .copy-btn {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: #718096;
  cursor: pointer;
  transition: color 0.3s;
}

.title-item .copy-btn:hover {
  color: #4299e1;
}

.error {
  background: #fee2e2;
  border-radius: 8px;
  padding: 15px;
  color: #dc2626;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
}

.error i {
  font-size: 1.2rem;
}

.hidden {
  display: none;
}

footer {
  text-align: center;
  margin-top: 40px;
  color: #718096;
  font-size: 0.9rem;
}

/* 响应式设计 */
@media (max-width: 600px) {
  .container {
    padding: 20px;
  }

  header h1 {
    font-size: 1.8rem;
  }

  .btn {
    width: 100%;
  }

  .title-item {
    font-size: 1rem;
    padding: 12px 15px;
  }

  .title-item .copy-btn {
    position: relative;
    right: 0;
    top: 0;
    transform: none;
    margin-top: 8px;
  }
}