:root {
  --bg: #f6f1e8;
  --paper: #fffdf9;
  --ink: #1f1f1c;
  --muted: #6d675f;
  --line: rgba(33, 31, 28, 0.12);
  --accent: #b85c38;
  --accent-dark: #8e4225;
  --soft: #efe1d0;
  --shadow: 0 24px 60px rgba(53, 37, 21, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(184, 92, 56, 0.1), transparent 30%),
    linear-gradient(180deg, #fbf7f2, var(--bg));
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", serif;
  min-height: 100vh;
}

.bg-grid {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.03) 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: 0.25;
  pointer-events: none;
}

.site-header {
  width: min(1200px, calc(100vw - 40px));
  margin: 0 auto;
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 1;
}

.brand {
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.nav {
  display: flex;
  gap: 16px;
  align-items: center;
}

.nav a,
.ghost-link {
  color: var(--ink);
  text-decoration: none;
}

.nav-user,
.meta,
.muted,
.footnote {
  color: var(--muted);
}

.page-shell {
  width: min(1200px, calc(100vw - 40px));
  margin: 0 auto;
  padding: 10px 0 48px;
  position: relative;
  z-index: 1;
}

.site-footer {
  width: min(1200px, calc(100vw - 40px));
  margin: 0 auto;
  padding: 0 0 28px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  position: relative;
  z-index: 1;
}

.site-footer a {
  color: var(--muted);
  text-decoration: none;
}

.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  align-items: stretch;
  min-height: calc(100vh - 110px);
}

.hero-copy {
  padding: 60px 0 20px;
}

.eyebrow {
  margin: 0 0 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  color: var(--accent);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  font-size: clamp(2.8rem, 6vw, 5rem);
  line-height: 0.92;
  margin-bottom: 18px;
}

h2 {
  font-size: 1.5rem;
  margin-bottom: 14px;
}

h3 {
  font-size: 1rem;
  margin-bottom: 8px;
}

.lede {
  font-size: 1.15rem;
  line-height: 1.7;
  max-width: 44rem;
}

.feature-list,
.pill-row,
.cta-actions,
.feedback-row,
.section-actions,
.summary-row,
.checkbox-line {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.expectation-card,
.example-card,
.saved-note,
.journey-card,
.journey-strip {
  margin-top: 20px;
  padding: 18px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: rgba(255, 253, 249, 0.72);
}

.expectation-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.compact-list {
  margin-bottom: 0;
}

.feature-list span,
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(184, 92, 56, 0.08);
  color: var(--accent-dark);
  font-size: 0.92rem;
}

.card,
.panel {
  background: rgba(255, 253, 249, 0.9);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
}

.card {
  padding: 24px;
}

.panel {
  padding: 22px;
}

.form-card {
  align-self: center;
}

.stack-form {
  display: grid;
  gap: 16px;
}

label {
  display: grid;
  gap: 8px;
  font-size: 0.95rem;
}

.checkbox-line {
  flex-wrap: nowrap;
  gap: 10px;
}

.checkbox-line input {
  width: auto;
}

input,
textarea,
select,
button {
  font: inherit;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid rgba(33, 31, 28, 0.15);
  border-radius: 16px;
  padding: 14px 16px;
  background: #fff;
  color: var(--ink);
}

textarea {
  resize: vertical;
  line-height: 1.6;
}

.primary-btn,
.ghost-btn,
.buttonish,
.as-link {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  border-radius: 999px;
  padding: 12px 20px;
  cursor: pointer;
  text-decoration: none;
}

.primary-btn,
.as-link {
  border: none;
  color: white;
  background: linear-gradient(135deg, var(--accent), #d27a53);
}

.ghost-btn,
.buttonish {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
}

.alert {
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(184, 92, 56, 0.12);
  color: var(--accent-dark);
  border: 1px solid rgba(184, 92, 56, 0.2);
}

.content-shell,
.narrow-shell {
  display: grid;
  gap: 24px;
}

.narrow-shell {
  width: min(560px, 100%);
  margin: 40px auto 0;
}

.section-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
}

.grid-two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.ops-summary-grid {
  align-items: start;
}

.anonymous-entry-card {
  display: grid;
  gap: 16px;
}

.anonymous-entry-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px;
}

.anonymous-entry-content {
  margin: 0;
  white-space: pre-wrap;
  line-height: 1.7;
}

.json-block {
  margin: 0;
  padding: 16px;
  border-radius: 16px;
  background: rgba(33, 31, 28, 0.04);
  border: 1px solid var(--line);
  overflow-x: auto;
  font-size: 0.88rem;
  line-height: 1.5;
}

.ops-stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.stack-list,
.ops-feed {
  display: grid;
  gap: 14px;
}

.summary-row {
  justify-content: space-between;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}

.summary-row:first-child {
  border-top: none;
  padding-top: 0;
}

.feedback-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 253, 249, 0.72);
}

.journey-card {
  margin-bottom: 18px;
  background:
    linear-gradient(135deg, rgba(184, 92, 56, 0.12), rgba(255, 253, 249, 0.92)),
    rgba(255, 253, 249, 0.9);
}

.journey-strip {
  margin-top: 0;
  display: grid;
  gap: 6px;
  background: rgba(184, 92, 56, 0.06);
}

.ops-form-grid {
  gap: 16px;
}

.rich-copy {
  white-space: pre-wrap;
  line-height: 1.8;
}

.analysis-block {
  padding: 16px 0;
  border-top: 1px solid var(--line);
}

.analysis-block:first-of-type {
  border-top: none;
  padding-top: 0;
}

@media (max-width: 900px) {
  .hero,
  .grid-two {
    grid-template-columns: 1fr;
  }
}

.emphasis {
  background: rgba(184, 92, 56, 0.06);
  margin: 8px -16px 0;
  padding: 16px;
  border-radius: 18px;
  border-top: none;
}

.list {
  padding-left: 18px;
  line-height: 1.8;
}

.timeline-list {
  display: grid;
  gap: 14px;
}

.timeline-item {
  text-decoration: none;
  color: inherit;
  display: grid;
  gap: 10px;
  padding: 18px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.6);
}

.timeline-head,
.tab-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.tab-row {
  margin-bottom: 20px;
}

.tab-row a {
  text-decoration: none;
  color: var(--muted);
  padding-bottom: 6px;
  border-bottom: 2px solid transparent;
}

.tab-row a.active {
  color: var(--ink);
  border-bottom-color: var(--accent);
}

.qa-list {
  display: grid;
  gap: 12px;
  margin-bottom: 18px;
}

.qa-item {
  padding: 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid var(--line);
}

.inline-form {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.compact-form {
  gap: 12px;
}

.cta-strip {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-top: 18px;
  padding: 22px;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(184, 92, 56, 0.08), rgba(239, 225, 208, 0.9));
}

.next-step-strip {
  margin-top: 0;
  padding: 18px;
}

/* 进度追踪样式 */
.progress-tracker {
  padding: 16px 0;
}

.progress-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.stat-item {
  text-align: center;
  padding: 16px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 12px;
  border: 1px solid var(--line);
}

.stat-number {
  display: block;
  font-size: 28px;
  font-weight: bold;
  color: var(--accent);
  line-height: 1.2;
}

.stat-label {
  display: block;
  font-size: 14px;
  color: var(--muted);
  margin-top: 4px;
}

.progress-bar-container {
  margin-bottom: 24px;
}

.progress-bar-label {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 14px;
  color: var(--ink);
}

.progress-bar {
  height: 8px;
  background: rgba(0, 0, 0, 0.08);
  border-radius: 4px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-dark));
  border-radius: 4px;
  transition: width 0.3s ease;
}

.achievements-section {
  margin-bottom: 24px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.4);
  border-radius: 12px;
  border: 1px solid var(--line);
}

.achievements-section h4 {
  margin-bottom: 12px;
  color: var(--ink);
  font-size: 16px;
}

.achievements-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.achievement-badge {
  display: flex;
  align-items: center;
  padding: 12px;
  border-radius: 8px;
  border: 2px solid var(--line);
  transition: all 0.2s ease;
}

.achievement-badge.unlocked {
  background: rgba(184, 92, 56, 0.08);
  border-color: var(--accent);
}

.achievement-badge.locked {
  background: rgba(0, 0, 0, 0.04);
  opacity: 0.7;
}

.badge-icon {
  font-size: 20px;
  margin-right: 12px;
}

.badge-text {
  font-size: 14px;
  color: var(--ink);
}

.next-action-card {
  padding: 20px;
  background: linear-gradient(135deg, rgba(184, 92, 56, 0.1), rgba(239, 225, 208, 0.8));
  border-radius: 12px;
  text-align: center;
  border: 1px solid rgba(184, 92, 56, 0.2);
}

.next-action-card h4 {
  margin-bottom: 12px;
  color: var(--accent-dark);
  font-size: 18px;
}

.next-action-card p {
  margin-bottom: 16px;
  color: var(--ink);
  line-height: 1.5;
}

.next-action-card .primary-btn {
  display: inline-block;
  padding: 10px 24px;
  background: var(--accent);
  color: white;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 500;
  transition: background 0.2s;
  border: none;
  cursor: pointer;
}

.next-action-card .primary-btn:hover {
  background: var(--accent-dark);
}

/* 提醒设置样式 */
.reminder-options {
  margin: 20px 0;
}

.checkbox-label {
  display: flex;
  align-items: center;
  margin-bottom: 16px;
  cursor: pointer;
  padding: 12px;
  background: rgba(255, 255, 255, 0.4);
  border-radius: 8px;
  border: 1px solid var(--line);
  transition: background 0.2s;
}

.checkbox-label:hover {
  background: rgba(255, 255, 255, 0.6);
}

.checkbox-label input {
  margin-right: 12px;
  transform: scale(1.2);
}

.save-reminders-btn {
  width: 100%;
  margin-top: 16px;
  padding: 12px;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 16px;
  transition: background 0.2s;
}

.save-reminders-btn:hover {
  background: var(--accent-dark);
}

.reminder-note {
  margin-top: 16px;
  padding: 12px;
  background: rgba(184, 92, 56, 0.05);
  border-radius: 8px;
  border: 1px solid rgba(184, 92, 56, 0.1);
}

.reminder-note .muted {
  color: var(--muted);
  font-size: 14px;
  margin: 0;
}

/* 响应式设计 */
@media (max-width: 900px) {
  .hero,
  .grid-two,
  .anonymous-entry-grid,
  .progress-stats {
    grid-template-columns: 1fr;
  }

  .achievements-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    padding-top: 24px;
  }

  .section-head,
  .cta-strip,
  .site-footer {
    flex-direction: column;
    align-items: stretch;
  }

  .expectation-grid {
    grid-template-columns: 1fr;
  }
}
