:root {
  --bg: #f7efe7;
  --bg-deep: #ead9cd;
  --card: rgba(255, 250, 246, 0.8);
  --card-strong: rgba(247, 232, 224, 0.92);
  --text: #4a3027;
  --muted: #7d5a50;
  --accent: #d06a6a;
  --accent-deep: #ae4a4a;
  --gold: #c79b6a;
  --line: rgba(87, 54, 44, 0.12);
  --line-strong: rgba(87, 54, 44, 0.18);
  --shadow: 0 22px 80px rgba(95, 54, 40, 0.12);
  --shadow-soft: 0 16px 42px rgba(95, 54, 40, 0.08);
  --radius-xl: 30px;
  --radius-lg: 22px;
  --radius-md: 16px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.85), transparent 28%),
    linear-gradient(135deg, var(--bg) 0%, #f3e3d8 45%, var(--bg-deep) 100%);
  color: var(--text);
  font-family: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", sans-serif;
}

button,
input {
  font: inherit;
}

button {
  border: 0;
}

.is-hidden {
  display: none !important;
}

.page-shell {
  position: relative;
  overflow: hidden;
  padding: 40px 20px 72px;
}

.page-switcher,
.interview-intro,
.interview-summary,
.question-browser,
.question-group,
.hero-copy,
.promise-card,
.support-card,
.care-section,
.letter-window,
.modal-card {
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.page-switcher {
  position: sticky;
  top: 20px;
  z-index: 6;
  width: min(1120px, 100%);
  margin: 0 auto 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 10px;
  border-radius: 999px;
  background: rgba(255, 250, 246, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: var(--shadow-soft);
}

.page-tab,
.unlock-entry,
.primary-button,
.ghost-button,
.answer-toggle,
.modal-close {
  cursor: pointer;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background-color 180ms ease,
    color 180ms ease,
    border-color 180ms ease;
}

.page-tab,
.unlock-entry {
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-weight: 700;
}

.page-tab.is-active {
  background: linear-gradient(135deg, var(--accent) 0%, #c8575a 100%);
  color: #fff9f5;
  box-shadow: 0 10px 24px rgba(183, 83, 83, 0.22);
}

.unlock-entry {
  border: 1px solid rgba(141, 89, 77, 0.12);
  background: rgba(255, 255, 255, 0.46);
}

.page-view {
  display: none;
}

.page-view.is-active {
  display: block;
}

.ambient {
  position: absolute;
  border-radius: 999px;
  filter: blur(14px);
  opacity: 0.55;
  pointer-events: none;
}

.ambient-one {
  top: -80px;
  right: -60px;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(208, 106, 106, 0.34), transparent 70%);
}

.ambient-two {
  left: -80px;
  top: 340px;
  width: 240px;
  height: 240px;
  background: radial-gradient(circle, rgba(199, 155, 106, 0.3), transparent 70%);
}

.hero,
.interview-hero,
.interview-main,
.hero main,
.page-view > main {
  position: relative;
  z-index: 1;
  width: min(1120px, 100%);
  margin: 0 auto;
}

.hero,
.interview-hero {
  display: grid;
  gap: 24px;
  align-items: stretch;
  padding-top: 12px;
}

.hero {
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.85fr);
}

.interview-hero {
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.78fr);
}

.hero-copy,
.interview-intro {
  padding: 38px;
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, rgba(255, 252, 249, 0.9), rgba(252, 240, 234, 0.8));
  border: 1px solid rgba(255, 255, 255, 0.65);
}

.interview-summary,
.promise-card {
  position: relative;
  overflow: hidden;
  padding: 28px;
  border-radius: var(--radius-xl);
  background: linear-gradient(150deg, rgba(254, 248, 243, 0.94), rgba(239, 220, 207, 0.88));
  border: 1px solid rgba(255, 255, 255, 0.6);
}

.eyebrow,
.section-tag,
.card-label {
  margin: 0 0 14px;
  color: var(--accent-deep);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.76rem;
}

h1,
h2 {
  margin: 0;
  font-family: "STZhongsong", "Songti SC", "Noto Serif SC", serif;
  line-height: 1.08;
  letter-spacing: 0.02em;
}

h1 {
  font-size: clamp(2.6rem, 5vw, 4.8rem);
  max-width: 11ch;
}

h2 {
  font-size: clamp(1.55rem, 2.3vw, 2.3rem);
}

h3 {
  margin: 0;
}

.lead,
.support-card p,
.letter-window p,
.modal-card p,
.interview-summary li,
.browser-copy,
.answer-panel p,
.drill-question p {
  color: var(--muted);
  line-height: 1.85;
  font-size: 1rem;
}

.lead {
  max-width: 64ch;
  margin: 22px 0 28px;
}

.memory-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: -6px 0 24px;
}

.memory-tag {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(141, 89, 77, 0.12);
  background: rgba(255, 255, 255, 0.56);
  color: var(--accent-deep);
  font-size: 0.9rem;
}

.name-tag {
  display: inline-flex;
  margin: 18px 0 0;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.52);
  border: 1px solid rgba(141, 89, 77, 0.12);
  color: var(--accent-deep);
  font-size: 0.95rem;
  font-weight: 700;
}

.lead span {
  color: var(--text);
  font-weight: 700;
}

.hero-actions,
.drill-actions,
.password-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.primary-button,
.ghost-button,
.answer-toggle {
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
}

.primary-button {
  background: linear-gradient(135deg, var(--accent) 0%, #c8575a 100%);
  color: #fff9f5;
  box-shadow: 0 16px 32px rgba(183, 83, 83, 0.24);
}

.ghost-button,
.answer-toggle {
  background: rgba(255, 255, 255, 0.48);
  color: var(--text);
  border: 1px solid rgba(141, 89, 77, 0.12);
}

.primary-button:hover,
.ghost-button:hover,
.page-tab:hover,
.unlock-entry:hover,
.answer-toggle:hover,
.modal-close:hover {
  transform: translateY(-2px);
}

.primary-button:disabled,
.ghost-button:disabled {
  cursor: not-allowed;
  transform: none;
  opacity: 0.48;
  box-shadow: none;
}

.rotating-message {
  margin: 18px 0 0;
  min-height: 28px;
  color: var(--accent-deep);
  font-weight: 700;
}

.promise-card ul,
.interview-summary ul {
  margin: 0;
  padding-left: 20px;
}

.promise-card li,
.interview-summary li {
  margin-bottom: 10px;
}

.pulse-ring {
  position: absolute;
  right: -48px;
  bottom: -48px;
  width: 160px;
  height: 160px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(208, 106, 106, 0.24), transparent 70%);
}

.memorial-card {
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.38), transparent 36%),
    linear-gradient(160deg, rgba(255, 249, 244, 0.96), rgba(239, 220, 207, 0.88));
}

.archive-notes {
  display: grid;
  gap: 14px;
}

.archive-note {
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(87, 54, 44, 0.1);
  background: rgba(255, 255, 255, 0.42);
}

.archive-note span {
  color: var(--muted);
  font-size: 0.86rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.archive-note strong {
  color: var(--text);
  line-height: 1.7;
  font-weight: 700;
}

.interview-main,
.page-view > main {
  display: grid;
  gap: 22px;
  padding-top: 24px;
}

.question-browser,
.question-group,
.care-section,
.letter-window {
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.58);
  background: linear-gradient(180deg, rgba(255, 252, 249, 0.9), rgba(248, 236, 228, 0.82));
}

.question-browser,
.question-group,
.care-section,
.letter-window {
  padding: 30px;
}

.browser-heading,
.group-heading,
.care-heading {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: flex-end;
  justify-content: space-between;
}

.drill-badge,
.drill-tag,
.card-chip {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 0.92rem;
}

.drill-badge {
  background: rgba(255, 255, 255, 0.56);
  color: var(--text);
}

.drill-tag,
.card-chip {
  background: rgba(208, 106, 106, 0.12);
  color: var(--accent-deep);
}

.browser-copy {
  max-width: 46ch;
  margin: 0;
}

.browser-toolbar {
  position: sticky;
  top: 92px;
  z-index: 4;
  display: grid;
  gap: 14px;
  margin-top: 20px;
  padding: 18px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.7);
  background: rgba(255, 248, 244, 0.88);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.browser-toolbar-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.drill-counter {
  color: var(--accent-deep);
  font-weight: 700;
}

.drill-actions {
  align-items: center;
}

.question-groups {
  display: grid;
  gap: 20px;
  margin-top: 18px;
}

.question-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.question-card {
  padding: 18px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.56);
  transition:
    border-color 180ms ease,
    background-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.question-card.is-current {
  border-color: rgba(208, 106, 106, 0.44);
  background: linear-gradient(180deg, rgba(255, 249, 245, 0.96), rgba(247, 232, 224, 0.92));
  box-shadow: 0 16px 36px rgba(183, 83, 83, 0.12);
}

.question-card-head {
  display: grid;
  gap: 12px;
  cursor: pointer;
  outline: none;
}

.question-card-head:focus-visible {
  border-radius: 12px;
  box-shadow: 0 0 0 3px rgba(208, 106, 106, 0.18);
}

.question-card-topline {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
}

.question-index {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.question-card h3 {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
}

.question-actions {
  margin-top: 14px;
}

.answer-panel {
  margin-top: 14px;
  padding-top: 16px;
  border-top: 1px dashed var(--line-strong);
}

.answer-panel p + p {
  margin-top: 12px;
}

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

.photo-archive {
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.58);
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.34), transparent 30%),
    linear-gradient(180deg, rgba(255, 252, 249, 0.94), rgba(244, 231, 223, 0.86));
  padding: 30px;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 20px;
}

.photo-card {
  display: grid;
  gap: 12px;
  padding: 14px;
  border-radius: 24px;
  border: 1px solid rgba(87, 54, 44, 0.1);
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 14px 34px rgba(95, 54, 40, 0.08);
  transform: rotate(-1.2deg);
}

.photo-card:nth-child(2n) {
  transform: rotate(1.4deg);
}

.photo-card:nth-child(3n) {
  transform: rotate(-0.4deg);
}

.photo-card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  display: block;
  border-radius: 18px;
}

.photo-card.photo-tall img {
  aspect-ratio: 4 / 6;
}

.photo-card figcaption {
  color: var(--text);
  line-height: 1.8;
  font-size: 0.96rem;
}

.memory-board {
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.58);
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.42), transparent 32%),
    linear-gradient(180deg, rgba(255, 252, 249, 0.92), rgba(246, 233, 224, 0.84));
  padding: 30px;
}

.memory-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.memory-card {
  min-height: 210px;
  padding: 22px 20px 20px;
  border-radius: 22px;
  border: 1px solid rgba(87, 54, 44, 0.1);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(249, 238, 231, 0.82));
  box-shadow: 0 14px 34px rgba(95, 54, 40, 0.08);
}

.memory-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  margin-bottom: 18px;
  background: rgba(208, 106, 106, 0.12);
  color: var(--accent-deep);
  font-weight: 700;
}

.memory-card p {
  margin: 0;
  color: var(--text);
  line-height: 1.9;
}

.memorial-grid {
  margin-bottom: 18px;
}

.support-card {
  padding: 26px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.58);
  background: linear-gradient(180deg, rgba(255, 252, 249, 0.88), rgba(248, 236, 228, 0.78));
}

.support-card.warm {
  background: linear-gradient(180deg, rgba(255, 249, 241, 0.92), rgba(246, 229, 213, 0.84));
}

.support-card.accent {
  background: linear-gradient(180deg, rgba(253, 244, 242, 0.94), rgba(245, 225, 220, 0.84));
}

.care-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.care-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 16px 18px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.52);
  color: var(--text);
}

.care-item input {
  margin-top: 4px;
}

.care-item.done {
  background: rgba(208, 106, 106, 0.12);
  border-color: rgba(208, 106, 106, 0.26);
}

.letter-window h2 {
  max-width: 14ch;
}

.letter-window p + p {
  margin-top: 12px;
}

.signature {
  color: var(--accent-deep);
  font-weight: 700;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 10;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(83, 45, 38, 0.38);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.modal-card {
  position: relative;
  z-index: 1;
  width: min(560px, calc(100% - 32px));
  margin: min(12vh, 100px) auto 0;
  padding: 34px 28px 28px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.64);
  background: linear-gradient(180deg, rgba(255, 252, 249, 0.96), rgba(246, 232, 223, 0.9));
}

.password-card {
  width: min(520px, calc(100% - 32px));
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.6);
  color: var(--text);
}

.password-copy {
  margin: 18px 0 20px;
}

.password-field {
  display: grid;
  gap: 10px;
}

.password-field span {
  color: var(--text);
  font-weight: 700;
}

.password-input {
  width: 100%;
  min-height: 52px;
  padding: 0 16px;
  border-radius: 16px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.82);
  color: var(--text);
}

.password-input:focus {
  outline: 2px solid rgba(208, 106, 106, 0.22);
  border-color: rgba(208, 106, 106, 0.44);
}

.password-error {
  min-height: 24px;
  margin: 12px 0 0;
  color: #b44343;
  font-weight: 700;
}

.password-actions {
  margin-top: 8px;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 480ms ease,
    transform 480ms ease;
}

.reveal.delay-1 {
  transition-delay: 80ms;
}

.reveal.delay-2 {
  transition-delay: 140ms;
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 920px) {
  .hero,
  .interview-hero,
  .photo-grid,
  .support-grid,
  .memory-grid,
  .care-list,
  .question-list {
    grid-template-columns: 1fr;
  }

  .page-switcher {
    top: 12px;
    border-radius: 24px;
  }

  .browser-toolbar {
    top: 82px;
  }

  .browser-heading,
  .group-heading,
  .care-heading {
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  .page-shell {
    padding: 22px 14px 48px;
  }

  .hero-copy,
  .interview-intro,
  .interview-summary,
  .question-browser,
  .question-group,
  .photo-archive,
  .memory-board,
  .care-section,
  .letter-window,
  .modal-card,
  .promise-card,
  .support-card {
    padding: 22px;
  }

  .page-switcher {
    flex-direction: column;
    border-radius: 20px;
  }

  .browser-toolbar {
    top: 154px;
    padding: 16px;
  }

  .page-tab,
  .unlock-entry {
    width: 100%;
  }

  .hero-actions,
  .drill-actions,
  .password-actions {
    flex-direction: column;
  }

  .primary-button,
  .ghost-button,
  .answer-toggle {
    width: 100%;
  }

  .memory-card {
    min-height: auto;
  }

  .photo-card {
    transform: none;
  }

  .lead,
  .support-card p,
  .memory-card p,
  .photo-card figcaption,
  .letter-window p,
  .modal-card p,
  .interview-summary li,
  .browser-copy,
  .answer-panel p {
    font-size: 0.97rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal,
  .page-tab,
  .unlock-entry,
  .primary-button,
  .ghost-button,
  .answer-toggle,
  .modal-close,
  .question-card {
    transition: none;
  }
}
