/* ===== TOKENS ===== */
:root {
  --bg:       #F8F6F0;
  --bg-warm:  #F0EDE4;
  --bg-dark:  #0F0F0F;
  --white:    #FFFFFF;
  --text:     #1A1A1A;
  --text-2:   #4A4A4A;
  --text-3:   #888888;
  --gold:     #B8892A;
  --gold-lt:  #F0E4C0;
  --gold-dk:  #8B6820;
  --border:   #DDD9CE;
  --radius:   12px;
  --shadow:   0 2px 16px rgba(0,0,0,0.05);
  --shadow-lg:0 8px 32px rgba(0,0,0,0.10);
  --ease:     0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Noto Sans SC', -apple-system, 'PingFang SC', 'Microsoft YaHei', sans-serif;
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { opacity: 0.85; }

/* ===== NAV ===== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: 64px;
  display: flex;
  align-items: center;
  padding: 0 24px;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--ease);
}
.nav.scrolled { border-bottom-color: var(--border); }

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  font-family: 'Noto Serif SC', serif;
  font-weight: 700;
  font-size: 16px;
  color: var(--text);
  letter-spacing: 0.02em;
}

.nav-cta {
  padding: 8px 20px;
  border-radius: 8px;
  background: var(--gold);
  color: white;
  font-size: 14px;
  font-weight: 600;
  transition: background var(--ease);
}
.nav-cta:hover { background: var(--gold-dk); opacity: 1; }

/* ===== HERO ===== */
.hero {
  padding: 120px 24px 72px;
  margin-top: 64px;
  background: var(--bg);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 50% at 30% 40%, rgba(184,137,42,0.07) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 64px;
  align-items: start;
}

.hero-main { min-width: 0; }

.hero-kicker {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 12px;
}

.hero-title {
  font-family: 'Noto Serif SC', serif;
  font-size: 48px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}

.hero-subtitle {
  font-size: 17px;
  color: var(--text-2);
  line-height: 1.7;
  margin-bottom: 44px;
  max-width: 560px;
}
.hero-subtitle em {
  font-style: normal;
  color: var(--gold);
  font-weight: 600;
}

/* ---- 四大思维卡片 ---- */
.methodology-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.methodology-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 20px;
  transition: all var(--ease);
}

.methodology-card:hover {
  border-color: var(--gold);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.methodology-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--bg-warm);
  display: flex;
  align-items: center;
  justify-content: center;
}
.methodology-icon span { font-size: 24px; line-height: 1; }

.methodology-body { min-width: 0; }
.methodology-body h3 {
  font-family: 'Noto Serif SC', serif;
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}
.methodology-body p {
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.5;
  margin-bottom: 4px;
}
.methodology-hint {
  font-size: 11px;
  color: var(--text-3);
  letter-spacing: 0.04em;
}

/* ---- 右侧边栏 ---- */
.hero-sidebar {
  position: sticky;
  top: 100px;
}

.sidebar-inner {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  text-align: center;
  box-shadow: var(--shadow);
}

.sidebar-label {
  font-family: 'Noto Serif SC', serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 20px;
}

.sidebar-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 24px;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 20px;
}
.stat-num {
  font-family: 'Noto Serif SC', serif;
  font-size: 36px;
  font-weight: 700;
  color: var(--gold);
  line-height: 1.1;
}
.stat-label {
  font-size: 13px;
  color: var(--text-3);
  margin-top: 4px;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
  flex-shrink: 0;
}

.sidebar-cta {
  display: block;
  width: 100%;
  padding: 12px 0;
  border-radius: 8px;
  background: var(--gold);
  color: white;
  font-size: 15px;
  font-weight: 600;
  transition: background var(--ease);
  margin-bottom: 16px;
}
.sidebar-cta:hover { background: var(--gold-dk); opacity: 1; }

.sidebar-view-toggle {
  display: flex;
  gap: 8px;
}

.view-btn {
  flex: 1;
  padding: 8px 0;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--text-2);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--ease);
}
.view-btn:hover { border-color: var(--gold); color: var(--gold); }
.view-btn.active {
  background: var(--gold);
  color: white;
  border-color: var(--gold);
}

/* ---- Hero scroll indicator ---- */
.hero-scroll {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}
.hero-scroll span {
  display: block;
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--border), transparent);
  animation: scrollLine 2.2s ease-in-out infinite;
}
@keyframes scrollLine {
  0%    { transform: scaleY(0); transform-origin: top; }
  50%   { transform: scaleY(1); transform-origin: top; }
  50.01%{ transform: scaleY(1); transform-origin: bottom; }
  100%  { transform: scaleY(0); transform-origin: bottom; }
}

/* ===== WORKS SECTION ===== */
.works-section {
  padding: 80px 24px 100px;
  background: var(--white);
}

.works-section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid var(--gold);
  padding: 4px 14px;
  border-radius: 100px;
  margin-bottom: 16px;
}

.section-title {
  font-family: 'Noto Serif SC', serif;
  font-size: 32px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
  line-height: 1.3;
}

.section-desc {
  font-size: 16px;
  color: var(--text-3);
  line-height: 1.7;
}

/* ===== MAIN CONTENT ===== */
.main {
  max-width: 1200px;
  margin: 0 auto;
}

/* Generic container for footer etc */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== COHORT ===== */
.cohort { margin-bottom: 72px; }
.cohort:last-child { margin-bottom: 0; }

.cohort-header {
  margin-bottom: 32px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.cohort-name {
  font-family: 'Noto Serif SC', serif;
  font-size: 24px;
  font-weight: 700;
  color: var(--text);
}

.cohort-desc {
  font-size: 14px;
  color: var(--text-3);
}

/* ===== KID GRID ===== */
.kid-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.kid-grid.list-view {
  grid-template-columns: 1fr;
}

/* ===== KID CARD ===== */
.kid-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: all var(--ease);
}
.kid-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: var(--gold);
}

.kid-card-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 22px 22px 14px;
}

.kid-avatar-wrapper {
  position: relative;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  border: 2px solid var(--gold-lt);
  background: var(--gold-lt);
}
.kid-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}
.kid-avatar-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  z-index: 0;
}

.kid-meta { min-width: 0; }
.kid-name {
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 2px;
}

.kid-meta-line {
  display: flex;
  gap: 6px;
  margin-bottom: 4px;
  flex-wrap: wrap;
}
.kid-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 8px;
  border-radius: 6px;
  background: var(--gold-lt);
  color: var(--gold-dk);
  font-size: 11px;
  font-weight: 600;
}

.kid-intro {
  font-size: 13px;
  color: var(--text-3);
  line-height: 1.5;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.kid-projects {
  padding: 0 22px 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: auto;
}

.project-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--bg-warm);
  color: var(--text-2);
  font-size: 13px;
  transition: all var(--ease);
  text-decoration: none;
  border: 1px solid var(--border);
}
.project-link:hover {
  background: var(--gold-lt);
  color: var(--gold-dk);
  border-color: var(--gold);
  opacity: 1;
}
.project-link::after {
  content: "→";
  color: var(--gold);
  font-weight: 700;
  font-size: 14px;
}

.kid-footer {
  padding: 14px 22px;
  border-top: 1px solid var(--border);
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.kid-site-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--gold);
}
.kid-site-link:hover { color: var(--gold-dk); opacity: 1; }

.guestbook-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 8px;
  background: var(--bg-warm);
  border: 1px solid var(--border);
  color: var(--gold);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: all var(--ease);
}
.guestbook-link:hover {
  background: var(--gold-lt);
  border-color: var(--gold);
  color: var(--gold-dk);
  opacity: 1;
}
.guestbook-link .heart { font-size: 14px; }

/* ===== LIST VIEW ===== */
.kid-card-content {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 22px;
  flex: 1;
}
.kid-info { flex: 1; min-width: 0; }
.kid-projects-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}
.project-link.kid-project-link { flex: 0 1 auto; padding: 8px 14px; font-size: 13px; }

.kid-site-link-list {
  padding: 10px 22px;
  background: var(--gold);
  color: white;
  font-size: 13px;
  font-weight: 700;
  border-radius: 8px;
  transition: background var(--ease);
  white-space: nowrap;
  flex-shrink: 0;
}
.kid-site-link-list:hover { background: var(--gold-dk); opacity: 1; }

/* ===== EMPTY STATE ===== */
.empty {
  text-align: center;
  padding: 80px 24px;
  color: var(--text-3);
}
.empty-icon { font-size: 48px; margin-bottom: 16px; }

/* ===== FOOTER ===== */
.footer {
  background: var(--bg-dark);
  color: rgba(255,255,255,0.5);
  text-align: center;
  padding: 56px 24px 40px;
}
.footer-brand {
  font-family: 'Noto Serif SC', serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 8px;
}
.footer-tagline {
  font-size: 14px;
  color: rgba(255,255,255,0.35);
  margin-bottom: 20px;
}
.footer-copy {
  font-size: 12px;
  color: rgba(255,255,255,0.2);
}

/* ===== GUESTBOOK PAGE ===== */
.page-guestbook { background: var(--bg); }
.hero-guestbook { background: var(--bg); }
.hero-guestbook .hero-title { color: var(--text); font-size: 48px; }
.hero-guestbook .hero-kicker { color: var(--gold); }
.hero-guestbook .hero-inner {
  grid-template-columns: 1fr;
  max-width: 640px;
  text-align: center;
  justify-items: center;
}
.hero-desc {
  font-size: 16px;
  color: var(--text-2);
  line-height: 1.8;
  max-width: 480px;
  margin-top: 6px;
}

/* Nav aliases for guestbook */
.nav-logo { display: flex; align-items: center; text-decoration: none; }
.nav-ink { /* keeps default white nav */ }

/* Guestbook main container */
.guestbook-main { max-width: 760px; margin: 0 auto; padding: 40px 24px 100px; }

.ink-section { margin-bottom: 56px; }

/* Preface card stamp (replaces icon) */
.preface-stamp {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Noto Serif SC', serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--gold);
  background: var(--white);
  align-self: flex-start;
}

/* Voice form card */
.voice-form {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  margin-bottom: 28px;
}

/* Form sections (壹/贰/叁) */
.form-section {
  padding: 28px;
  border-bottom: 1px solid var(--border);
}
.form-section:last-child { border-bottom: none; }

.form-section-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 6px;
  font-family: 'Noto Serif SC', serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
}
.form-section-desc {
  font-size: 14px;
  color: var(--text-3);
  margin-bottom: 18px;
  line-height: 1.6;
}
.section-num {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--gold);
  color: white;
  font-family: 'Noto Serif SC', serif;
  font-size: 12px;
  font-weight: 700;
}

/* Scope tabs (给夏令营 / 给孩子们) */
.scope-tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.scope-tab {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 8px;
  border: 1.5px solid var(--border);
  background: var(--white);
  color: var(--text-2);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--ease);
  font-family: inherit;
  min-height: 44px;
}
.scope-tab:hover { border-color: var(--gold); color: var(--gold); background: var(--gold-lt); }
.scope-tab.active { background: var(--gold); color: white; border-color: var(--gold); }
.tab-icon { font-size: 16px; line-height: 1; }
.tab-text { line-height: 1; }

/* Kids selector */
.kids-selector {
  display: none;
  margin-top: 16px;
}
.kids-selector.is-visible { display: block; }

.selected-kids { min-height: 36px; margin-bottom: 10px; }
.selected-placeholder {
  padding: 12px 16px;
  border-radius: 8px;
  background: var(--bg-warm);
  color: var(--text-3);
  font-size: 14px;
  border: 1px dashed var(--border);
}
.selected-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.selected-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px 6px 12px;
  border-radius: 8px;
  background: var(--gold-lt);
  border: 1px solid var(--border);
  color: var(--gold-dk);
  font-size: 13px;
  font-weight: 600;
}
.tag-name { line-height: 1; }
.tag-remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: none;
  background: rgba(139,104,32,0.15);
  color: var(--gold-dk);
  font-size: 14px;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  transition: background var(--ease);
}
.tag-remove:hover { background: rgba(139,104,32,0.35); }

.add-kid-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  border-radius: 8px;
  border: 1.5px dashed var(--border);
  background: var(--white);
  color: var(--text-2);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--ease);
  font-family: inherit;
  margin-bottom: 8px;
  min-height: 44px;
}
.add-kid-btn:hover { border-color: var(--gold); color: var(--gold); }

.kids-dropdown {
  display: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow-lg);
  overflow-y: auto;
  max-height: 240px;
  margin-top: 4px;
}
.kids-selector.is-open .kids-dropdown { display: block; }

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border: none;
  background: transparent;
  width: 100%;
  text-align: left;
  cursor: pointer;
  transition: background var(--ease);
  font-family: inherit;
  border-bottom: 1px solid var(--border);
  min-height: 56px;
}
.dropdown-item:last-child { border-bottom: none; }
.dropdown-item:hover { background: var(--bg-warm); }
.dropdown-avatar { font-size: 24px; flex-shrink: 0; line-height: 1; }
.dropdown-name { font-size: 14px; font-weight: 700; color: var(--text); white-space: nowrap; }
.dropdown-intro { font-size: 12px; color: var(--text-3); flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dropdown-empty { padding: 20px; text-align: center; color: var(--text-3); font-size: 14px; }

/* Mood tabs (三选一大卡) */
.mood-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.mood-tab {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 16px 14px;
  border-radius: var(--radius);
  border: 1.5px solid var(--border);
  background: var(--white);
  cursor: pointer;
  transition: all var(--ease);
  font-family: inherit;
  text-align: left;
}
.mood-tab:hover { border-color: var(--gold); background: var(--gold-lt); }
.mood-tab.active {
  border-color: var(--gold);
  background: var(--gold-lt);
  box-shadow: 0 0 0 2px rgba(184,137,42,0.12);
}
.mood-icon { font-size: 22px; line-height: 1; margin-bottom: 4px; }
.mood-name { font-size: 14px; font-weight: 700; color: var(--text); }
.mood-desc { font-size: 11px; color: var(--text-3); line-height: 1.4; }

/* Form row (2-col) */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 0;
}

/* Submit btn extras */
.btn-icon { line-height: 1; font-size: 16px; }
.btn-text { line-height: 1; }

/* Messages filter pills */
.messages-filter {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.filter-btn {
  padding: 8px 18px;
  border-radius: 100px;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--text-2);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--ease);
  font-family: inherit;
  min-height: 38px;
}
.filter-btn:hover { border-color: var(--gold); color: var(--gold); }
.filter-btn.active { background: var(--gold); color: white; border-color: var(--gold); }

/* Message card target line */
.message-target-line {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.message-scope {
  padding: 3px 10px;
  border-radius: 6px;
  background: var(--bg-warm);
  color: var(--text-2);
  font-size: 11px;
  font-weight: 600;
}
.message-mood {
  padding: 3px 10px;
  border-radius: 6px;
  background: var(--gold-lt);
  color: var(--gold-dk);
  font-size: 11px;
  font-weight: 600;
}
/* Message card mood left-border variants */
.message-card { padding: 24px; }
.message-card--blessing  { border-left: 3px solid #E888BB; }
.message-card--impression { border-left: 3px solid #6BBB6B; }
.message-card--suggestion { border-left: 3px solid #6699DD; }

/* Messages section title mark */
.title-mark { color: var(--gold); margin-right: 8px; }

/* Footer ink */
.footer-ink {
  background: var(--bg-dark);
  color: rgba(255,255,255,0.4);
  text-align: center;
  padding: 36px 24px;
  font-size: 13px;
  line-height: 1.6;
}

.preface-card {
  display: flex;
  gap: 24px;
  margin-bottom: 40px;
  padding: 32px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.preface-icon { font-size: 32px; flex-shrink: 0; margin-top: 4px; }
.preface-content { flex: 1; }
.preface-content p {
  font-family: 'Noto Serif SC', serif;
  font-size: 16px;
  line-height: 2;
  color: var(--text-2);
  margin-bottom: 16px;
  text-align: justify;
}
.preface-content p:last-child { margin-bottom: 0; }
.preface-signature {
  margin-top: 24px;
  text-align: right;
  font-family: 'Noto Serif SC', serif;
  font-size: 15px;
  color: var(--text-3);
  font-style: italic;
}

.guestbook-main { max-width: 760px; margin: 0 auto; padding: 40px 24px 100px; }

.guestbook-section {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  padding: 40px;
  margin-bottom: 60px;
}

.selected-kids { margin-bottom: 32px; padding-bottom: 24px; border-bottom: 1px dashed var(--border); }
.selected-label { font-size: 14px; color: var(--text-3); margin-bottom: 12px; }
.selected-tags { display: flex; flex-wrap: wrap; gap: 10px; }
.selected-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--gold-lt);
  border: 1px solid var(--border);
  color: var(--gold-dk);
  font-size: 14px;
  font-weight: 600;
}
.selected-tag--all { background: var(--bg-warm); border-color: var(--border); color: var(--text-2); }
.tag-avatar { font-size: 18px; }

.guestbook-form { display: flex; flex-direction: column; gap: 24px; }
.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-group label { font-size: 15px; font-weight: 600; color: var(--text); }
.form-group .optional { font-size: 13px; color: var(--text-3); font-weight: 400; }
.form-group .required { color: #D84040; }
.form-group input,
.form-group select,
.form-group textarea {
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 15px;
  font-family: inherit;
  background: var(--white);
  color: var(--text);
  transition: border-color var(--ease), box-shadow var(--ease);
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-3); }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(184,137,42,0.1);
}
.form-group textarea { resize: vertical; min-height: 140px; line-height: 1.8; }
.char-count { text-align: right; font-size: 13px; color: var(--text-3); }
.char-count.over-limit { color: #D84040; font-weight: 600; }
.form-actions { display: flex; justify-content: center; padding-top: 8px; }

.submit-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 36px;
  border-radius: 8px;
  border: none;
  background: var(--gold);
  color: white;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--ease), transform 0.2s;
  box-shadow: 0 4px 12px rgba(184,137,42,0.2);
}
.submit-btn:hover { background: var(--gold-dk); transform: translateY(-1px); }

.guestbook-info {
  margin-top: 32px;
  padding: 24px;
  background: var(--gold-lt);
  border-radius: 12px;
  text-align: center;
  color: var(--text-2);
  border: 1px solid var(--border);
}
.guestbook-info .info-icon { font-size: 32px; margin-bottom: 12px; }
.guestbook-info p { font-size: 14px; margin-bottom: 6px; }
.guestbook-info p:last-child { margin-bottom: 0; }

.submit-success {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 24px;
  padding: 24px;
  background: #F0FAF4;
  border: 1px solid #D0E5D0;
  border-radius: 12px;
  transition: opacity 0.5s;
}
.submit-success.fade-out { opacity: 0; }
.success-icon { font-size: 36px; }
.success-content h3 { color: #4A7A4A; font-size: 18px; margin-bottom: 4px; }
.success-content p { color: #7DD9B3; font-size: 14px; }

.messages-section { margin-top: 60px; }
.messages-section .section-title {
  font-family: 'Noto Serif SC', serif;
  font-size: 24px;
  color: var(--text);
  margin-bottom: 24px;
  text-align: center;
  font-weight: 700;
}
.messages-list { display: flex; flex-direction: column; gap: 20px; }
.empty-messages {
  text-align: center;
  padding: 60px 24px;
  color: var(--text-3);
  background: var(--bg-warm);
  border-radius: var(--radius);
  border: 1px dashed var(--border);
}
.message-card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 28px;
  box-shadow: var(--shadow);
}
.message-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 12px; gap: 16px; }
.message-author { display: flex; align-items: center; gap: 10px; }
.message-author strong { font-size: 16px; color: var(--text); font-weight: 700; }
.message-relation {
  font-size: 12px;
  padding: 2px 10px;
  border-radius: 6px;
  background: var(--gold-lt);
  color: var(--gold-dk);
  font-weight: 600;
}
.message-time { font-size: 13px; color: var(--text-3); white-space: nowrap; }
.message-for { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 14px; font-size: 13px; color: var(--text-3); }
.message-for-tag {
  padding: 2px 10px;
  border-radius: 6px;
  background: var(--gold-lt);
  border: 1px solid var(--border);
  color: var(--gold-dk);
  font-size: 12px;
  font-weight: 600;
}
.message-body { font-size: 15px; line-height: 1.9; color: var(--text-2); white-space: pre-wrap; }
.message-status {
  display: inline-block;
  margin-top: 16px;
  padding: 4px 12px;
  border-radius: 6px;
  background: var(--gold-lt);
  color: var(--gold-dk);
  font-size: 12px;
  font-weight: 600;
}

/* ===== SIGNUP PAGE ===== */
.page-signup { background: var(--bg); }
.hero-signup { background: var(--bg); }
.hero-signup .hero-title { color: var(--text); font-size: 42px; }
.hero-signup .hero-kicker { color: var(--gold); }
.hero-signup .hero-inner {
  grid-template-columns: 1fr;
  max-width: 640px;
  text-align: center;
  justify-items: center;
}

.signup-main { max-width: 640px; margin: 0 auto; padding: 40px 24px 100px; }

.signup-form {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

/* Session select cards */
.session-options { display: flex; flex-direction: column; gap: 10px; }
.session-card {
  display: block;
  cursor: pointer;
}
.session-card input { display: none; }
.session-card-content {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  transition: all var(--ease);
  min-height: 44px;
  flex-wrap: wrap;
}
.session-card input:checked + .session-card-content {
  border-color: var(--gold);
  background: var(--gold-lt);
  box-shadow: 0 0 0 2px rgba(184,137,42,0.12);
}
.session-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
}
.session-date {
  font-size: 13px;
  color: var(--text-2);
  flex: 1;
  min-width: 0;
}
.session-badge {
  padding: 3px 12px;
  border-radius: 100px;
  background: var(--gold);
  color: white;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}
.session-badge.secondary {
  background: var(--bg-warm);
  color: var(--text-3);
}

/* Plan select cards */
.plan-options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.plan-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 18px 12px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  transition: all var(--ease);
  text-align: center;
}
.plan-card input { display: none; }
.plan-card:has(input:checked) {
  border-color: var(--gold);
  background: var(--gold-lt);
  box-shadow: 0 0 0 2px rgba(184,137,42,0.12);
}
.plan-name { font-size: 13px; font-weight: 600; color: var(--text-2); }
.plan-price {
  font-family: 'Noto Serif SC', serif;
  font-size: 24px;
  font-weight: 700;
  color: var(--gold-dk);
  line-height: 1.2;
}
.plan-unit { font-size: 12px; font-weight: 400; color: var(--text-3); }
.plan-note { font-size: 11px; color: var(--text-3); }

/* Camp type cards (非夏令营 vs 夏令营) */
.form-section--highlight {
  background: linear-gradient(135deg, rgba(184,137,42,0.04) 0%, rgba(184,137,42,0.01) 100%);
}
.camp-type-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.camp-type-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 24px 18px;
  border: 2px solid var(--border);
  border-radius: 14px;
  cursor: pointer;
  transition: all var(--ease);
  text-align: center;
  position: relative;
}
.camp-type-card:hover { border-color: var(--gold); }
.camp-type-card input { display: none; }
.camp-type-card:has(input:checked) {
  border-color: var(--gold);
  background: var(--gold-lt);
  box-shadow: 0 0 0 3px rgba(184,137,42,0.15);
}
.camp-type-badge {
  position: absolute;
  top: -10px;
  right: -4px;
  padding: 3px 12px;
  border-radius: 100px;
  background: #E85D3A;
  color: white;
  font-size: 11px;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(232,93,58,0.3);
}
.camp-type-icon { font-size: 36px; line-height: 1; margin-bottom: 4px; }
.camp-type-name {
  font-family: 'Noto Serif SC', serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
}
.camp-type-desc {
  font-size: 12px;
  color: var(--text-2);
  line-height: 1.5;
}
.camp-type-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  margin-top: 4px;
}
.camp-type-tags span {
  padding: 2px 10px;
  border-radius: 6px;
  background: var(--bg-warm);
  border: 1px solid var(--border);
  font-size: 11px;
  color: var(--text-3);
  font-weight: 600;
}
.camp-type-link {
  margin-top: 8px;
  font-size: 12px;
  color: var(--gold);
  font-weight: 600;
  cursor: pointer;
  padding: 6px 14px;
  border-radius: 6px;
  transition: all var(--ease);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.camp-type-link:hover {
  background: var(--gold);
  color: white;
  text-decoration: none;
}

/* Signup info bar */
.signup-info {
  margin-top: 28px;
  padding: 20px 24px;
  background: var(--gold-lt);
  border-radius: 12px;
  text-align: center;
  color: var(--text-2);
  border: 1px solid var(--border);
}
.signup-info .info-icon { font-size: 28px; margin-bottom: 8px; }
.signup-info p { font-size: 14px; margin-bottom: 4px; line-height: 1.7; }
.signup-info p:last-child { margin-bottom: 0; }

/* ===== RESPONSIVE ===== */
/* --- 平板 ≤ 900px --- */
@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .hero-guestbook .hero-inner { gap: 16px; }

  .hero-title { font-size: 36px; }
  .hero-subtitle { margin-bottom: 32px; }

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

  .hero-sidebar { position: static; }
  .sidebar-inner { padding: 24px 20px; }
  .sidebar-stats { flex-direction: row; }

  .hero-scroll { display: none; }

  /* Mood tabs stack to 1 col */
  .mood-tabs { grid-template-columns: 1fr; gap: 8px; }
  .mood-tab { flex-direction: row; align-items: center; padding: 14px 16px; }
  .mood-icon { font-size: 22px; margin-bottom: 0; flex-shrink: 0; }
  .mood-desc { display: none; }
}

/* --- 手机 ≤ 640px --- */
@media (max-width: 640px) {
  /* Landing hero */
  .hero { padding: 80px 16px 36px; }
  .hero-title { font-size: 28px; }
  .hero-subtitle { font-size: 15px; }

  .methodology-grid { gap: 10px; }
  .methodology-card { padding: 16px 14px; gap: 12px; }
  .methodology-icon { width: 40px; height: 40px; }
  .methodology-icon span { font-size: 20px; }

  .sidebar-inner { padding: 20px 16px; }
  .stat-num { font-size: 28px; }

  /* Works section */
  .works-section { padding: 48px 16px 64px; }
  .works-section-header { margin-bottom: 32px; }
  .section-title { font-size: 24px; }

  .kid-grid { grid-template-columns: 1fr; }
  .kid-card-header { padding: 18px 16px 12px; }
  .kid-projects { padding: 0 16px 16px; }
  .kid-footer { padding: 12px 16px; }

  /* Nav */
  .nav-brand { font-size: 13px; }
  .nav-cta { font-size: 12px; padding: 7px 12px; }

  /* Cohort */
  .cohort-name { font-size: 20px; }
  .cohort { margin-bottom: 56px; }

  /* Guestbook */
  .guestbook-main { padding: 28px 16px 80px; }
  .preface-card { flex-direction: column; gap: 16px; padding: 24px 20px; }
  .preface-stamp { align-self: flex-start; }
  .preface-content p { font-size: 15px; }

  .form-section { padding: 20px 16px; }
  .form-row { grid-template-columns: 1fr; gap: 12px; }

  .message-header { flex-direction: column; gap: 8px; }
  .message-time { white-space: normal; }
  .message-card { padding: 18px 16px; }

  .signup-main { padding: 28px 12px 80px; }
  .hero-signup .hero-title { font-size: 32px; }
  .plan-options { grid-template-columns: 1fr 1fr; gap: 8px; }
  .plan-card { padding: 14px 10px; }
  .plan-price { font-size: 20px; }
  .session-card-content { padding: 14px; }

  .camp-type-options { grid-template-columns: 1fr; gap: 16px; }
  .camp-type-card { padding: 20px 16px; }
  .camp-type-name { font-size: 15px; }
}
