/* ============ 出门吧 · 基础样式 ============ */

:root {
  --primary: #C2410C;
  --primary-dark: #9A3412;
  --accent: #FB923C;
  --accent-soft: #FFEDD5;
  --bg: #FFFAF5;
  --card-bg: #FFFFFF;
  --text: #44403C;
  --text-strong: #292524;
  --text-muted: #78716C;
  --border: #F3E3D3;
  --radius: 12px;
  --shadow: 0 2px 10px rgba(194, 65, 12, 0.08);
  --shadow-hover: 0 6px 18px rgba(194, 65, 12, 0.14);
  --font: -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

.container {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 16px;
}

h1, h2, h3, h4 {
  color: var(--text-strong);
  line-height: 1.4;
}

a {
  color: var(--primary);
  text-decoration: none;
}

img {
  max-width: 100%;
}

/* ---------- 顶部导航 ---------- */

.site-header {
  background: rgba(255, 250, 245, 0.95);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(6px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 12px;
  padding-bottom: 12px;
}

.brand {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
  white-space: nowrap;
}

.nav-links {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

.nav-links a {
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.95rem;
  color: var(--text);
  transition: background 0.2s, color 0.2s;
}

.nav-links a:hover {
  background: var(--accent-soft);
  color: var(--primary);
}

.nav-links a.active {
  background: var(--primary);
  color: #FFF;
  font-weight: 600;
}

/* ---------- 页脚 ---------- */

.site-footer {
  border-top: 1px solid var(--border);
  margin-top: 56px;
  padding: 28px 16px 36px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.site-footer p {
  margin-bottom: 6px;
}

.site-footer a {
  color: var(--primary);
  font-weight: 600;
}

/* ---------- 按钮 ---------- */

.btn {
  display: inline-block;
  border: none;
  cursor: pointer;
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 600;
  padding: 10px 22px;
  border-radius: 999px;
  transition: transform 0.15s, box-shadow 0.15s, background 0.2s;
  text-align: center;
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background: var(--primary);
  color: #FFF;
  box-shadow: var(--shadow);
}

.btn-primary:hover {
  background: var(--primary-dark);
  box-shadow: var(--shadow-hover);
}

.btn-secondary {
  background: var(--accent-soft);
  color: var(--primary);
}

.btn-secondary:hover {
  background: #FFE0C2;
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--primary);
}

.btn-small {
  font-size: 0.88rem;
  padding: 6px 14px;
}

.btn-danger {
  background: transparent;
  color: #B91C1C;
  border: 1px solid #FECACA;
}

.btn-danger:hover {
  background: #FEF2F2;
}

/* ---------- 卡片 ---------- */

.card {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
}

/* ---------- 表单 ---------- */

label {
  display: block;
  font-weight: 600;
  color: var(--text-strong);
  margin-bottom: 6px;
}

input[type="text"],
input[type="date"],
input[type="time"],
input[type="number"],
textarea,
select {
  width: 100%;
  font-family: var(--font);
  font-size: 1rem;
  color: var(--text-strong);
  background: #FFF;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  transition: border-color 0.2s;
}

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

textarea {
  resize: vertical;
  min-height: 72px;
}

.field-error {
  color: #B91C1C;
  font-size: 0.85rem;
  margin-top: 4px;
  min-height: 1.2em;
}

input.invalid,
textarea.invalid {
  border-color: #DC2626;
}

/* ---------- 轻提示 ---------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: 36px;
  transform: translate(-50%, 16px);
  background: var(--text-strong);
  color: #FFF;
  padding: 10px 20px;
  border-radius: 999px;
  font-size: 0.95rem;
  opacity: 0;
  transition: opacity 0.3s, transform 0.3s;
  z-index: 100;
  max-width: 90vw;
}

.toast-show {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ---------- 通用 ---------- */

.page-title {
  font-size: 1.7rem;
  margin: 32px 0 8px;
}

.page-subtitle {
  color: var(--text-muted);
  margin-bottom: 24px;
}

.section-title {
  font-size: 1.3rem;
  margin: 36px 0 16px;
}

.tag {
  display: inline-block;
  font-size: 0.78rem;
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--primary);
  font-weight: 600;
}

/* ---------- 后续话术包（发起向导结果页 / 活动板共用） ---------- */

.followup-card {
  margin-top: 24px;
}

.followup-card h3 {
  font-size: 1.05rem;
  margin-bottom: 6px;
}

.followup-note {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.followup-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.followup-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.followup-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.followup-head strong {
  color: var(--text-strong);
  font-size: 0.95rem;
}

.followup-hint {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.followup-text {
  font-family: var(--font);
  white-space: pre-wrap;
  word-break: break-word;
  background: var(--bg);
  border: 1px dashed var(--border);
  border-radius: 10px;
  padding: 12px;
  font-size: 0.86rem;
  color: var(--text);
  line-height: 1.7;
  flex: 1;
  margin: 0;
}

@media (max-width: 600px) {
  .page-title {
    font-size: 1.45rem;
  }

  .card {
    padding: 18px;
  }

  .followup-list {
    grid-template-columns: 1fr;
  }
}
