* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Arial', sans-serif;
}

body {
  background-color: #f5f7fa;
  color: #333;
  line-height: 1.6;
  padding: 20px;
}

.container {
  max-width: 800px;
  margin: 0 auto;
  background: white;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

h1 {
  color: #2d3748;
  font-size: 28px;
  text-align: center;
  margin-bottom: 10px;
}

.subtitle {
  text-align: center;
  color: #718096;
  margin-bottom: 30px;
  font-size: 16px;
}

.input-section {
  margin-bottom: 30px;
}

label {
  display: block;
  margin-bottom: 8px;
  color: #4a5568;
  font-weight: 500;
}

textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 16px;
  resize: vertical;
  transition: border-color 0.3s;
}

textarea:focus {
  outline: none;
  border-color: #4299e1;
  box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.1);
}

button {
  background-color: #4299e1;
  color: white;
  border: none;
  border-radius: 8px;
  padding: 12px 20px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.3s;
}

button:hover {
  background-color: #3182ce;
}

.loading {
  text-align: center;
  color: #4299e1;
  padding: 20px;
  display: none;
}

.result-section {
  display: none;
  margin-top: 30px;
}

.result-section h2 {
  color: #2d3748;
  margin-bottom: 20px;
  font-size: 20px;
}

.result-content {
  background-color: #f8f9fa;
  padding: 20px;
  border-radius: 8px;
  line-height: 1.8;
  white-space: pre-wrap;
  word-break: break-all;
}

.result-content [class^="文案"] {
  margin-bottom: 25px;
  padding-bottom: 20px;
  border-bottom: 1px dashed #dee2e6;
}

.result-content [class^="文案"]:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.copy-btn {
  margin-top: 20px;
  background-color: #48bb78;
}

.copy-btn:hover {
  background-color: #38a169;
}

.copy-btn.copied {
  background-color: #9f7aea;
}

@media (max-width: 768px) {
  .container {
    padding: 20px;
  }

  h1 {
    font-size: 24px;
  }

  button {
    width: 100%;
    padding: 14px;
  }
}