/* ============ AI 提示词生成器 ============ */

:root {
  --bg: #f7f8fa;
  --card: #ffffff;
  --line: #e3e6eb;
  --text: #1a1d21;
  --text-dim: #656d77;
  --text-faint: #9aa3ad;
  --accent: #2563eb;
  --accent-dim: rgba(37, 99, 235, 0.08);
  --accent-hover: #1d4ed8;
  --ok: #16a34a;
  --mono: 'JetBrains Mono', 'SF Mono', Consolas, monospace;
  --sans: 'Noto Sans SC', -apple-system, 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ============ Hero ============ */
.hero {
  padding: 64px 0 48px;
  text-align: center;
  background: linear-gradient(180deg, #ffffff 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--line);
}

.badge {
  display: inline-block;
  padding: 6px 16px;
  background: var(--accent-dim);
  color: var(--accent);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 24px;
}

.hero h1 {
  font-size: clamp(26px, 5vw, 40px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.3;
  margin-bottom: 16px;
}

.hero .sub {
  font-size: clamp(14px, 2vw, 17px);
  color: var(--text-dim);
  line-height: 1.8;
}

/* ============ 步骤 ============ */
.step {
  padding: 40px 0;
  border-bottom: 1px solid var(--line);
}

.step-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}

.step-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--accent);
  color: white;
  border-radius: 10px;
  font-weight: 700;
  font-size: 17px;
  flex-shrink: 0;
}

.step-head h2 {
  font-size: clamp(18px, 3vw, 22px);
  font-weight: 700;
}

/* ============ 场景选择 ============ */
.scenes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px;
}

.scene {
  padding: 16px 12px;
  background: var(--card);
  border: 1.5px solid var(--line);
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-dim);
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}

.scene:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.scene.active {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}

/* ============ 填空 ============ */
.fields {
  display: grid;
  gap: 18px;
}

.field label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text);
}

.field label .hint {
  font-weight: 400;
  color: var(--text-faint);
  font-size: 13px;
  margin-left: 6px;
}

.field input,
.field textarea {
  width: 100%;
  padding: 13px 16px;
  background: var(--card);
  border: 1.5px solid var(--line);
  border-radius: 10px;
  font-size: 15px;
  font-family: inherit;
  color: var(--text);
  transition: border-color 0.2s;
}

.field textarea { resize: vertical; min-height: 80px; line-height: 1.7; }

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: white;
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--text-faint);
}

/* ============ 输出 ============ */
.output-wrap {
  position: relative;
}

#output {
  width: 100%;
  min-height: 200px;
  padding: 20px;
  background: #0f172a;
  color: #e2e8f0;
  border: none;
  border-radius: 12px;
  font-family: var(--mono);
  font-size: 14px;
  line-height: 1.9;
  resize: vertical;
}

#output::placeholder { color: #64748b; }

.copy-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  margin-top: 14px;
  padding: 15px;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.2s;
}

.copy-btn:hover { background: var(--accent-hover); }
.copy-btn:active { transform: scale(0.99); }
.copy-btn svg { width: 19px; height: 19px; }

.copy-btn.done { background: var(--ok); }

/* ============ 提示 ============ */
.tips {
  padding: 48px 0 64px;
}

.tips h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 24px;
  text-align: center;
}

.tips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.tip {
  padding: 24px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.tip-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-dim);
  border-radius: 9px;
  color: var(--accent);
  margin-bottom: 14px;
}

.tip-icon svg { width: 20px; height: 20px; }

.tip h4 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
}

.tip p {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.7;
}

/* ============ Footer ============ */
.footer {
  padding: 32px 0;
  text-align: center;
  border-top: 1px solid var(--line);
}

.footer p {
  font-size: 14px;
  color: var(--text-dim);
}

.footer .note {
  font-size: 12.5px;
  color: var(--text-faint);
  margin-top: 6px;
}

@media (max-width: 600px) {
  .hero { padding: 40px 0 32px; }
  .step { padding: 28px 0; }
  .scenes { grid-template-columns: repeat(2, 1fr); }
}
