:root {
  --cream: #f8f2ea;
  --paper: #fffaf5;
  --sage: #d7e1d5;
  --sage-deep: #7f9784;
  --terracotta: #b35f52;
  --terracotta-deep: #7e3b37;
  --gold: #d8b06d;
  --ink: #352621;
  --muted: #735f54;
  --line: rgba(112, 82, 63, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body.home-page {
  margin: 0;
  color: var(--ink);
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
  background:
    radial-gradient(circle at 10% 10%, rgba(216, 176, 109, 0.18) 0%, rgba(216, 176, 109, 0) 28%),
    radial-gradient(circle at 86% 14%, rgba(127, 151, 132, 0.18) 0%, rgba(127, 151, 132, 0) 26%),
    linear-gradient(180deg, #fbf6ef 0%, #f4ede4 40%, #eef2ec 100%);
}

body.home-page::before,
body.home-page::after {
  content: "";
  position: fixed;
  inset: auto;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

body.home-page::before {
  width: 26rem;
  height: 26rem;
  left: -10rem;
  bottom: -10rem;
  background: rgba(179, 95, 82, 0.08);
  filter: blur(10px);
}

body.home-page::after {
  width: 18rem;
  height: 18rem;
  right: -6rem;
  top: 6rem;
  background: rgba(127, 151, 132, 0.12);
  filter: blur(8px);
}

a {
  color: inherit;
  text-decoration: none;
}

.hero-header,
main {
  width: min(1200px, calc(100% - 40px));
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 24px 0 14px;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.brand-icon {
  width: 50px;
  height: 50px;
  border-radius: 18px;
  background: linear-gradient(180deg, #ca7a68 0%, #9f4e46 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.4),
    0 14px 28px rgba(120, 68, 59, 0.18);
  position: relative;
}

.brand-icon::before,
.brand-icon::after {
  content: "";
  position: absolute;
  top: 9px;
  bottom: 9px;
  width: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
}

.brand-icon::before {
  left: 12px;
}

.brand-icon::after {
  right: 12px;
}

.brand-copy {
  display: grid;
  gap: 4px;
}

.brand-copy strong,
.hero-copy h1,
.section-title h2,
.story-card h2,
.journal-main h3,
.cta-panel h2 {
  font-family: "STSong", "Songti SC", "Noto Serif SC", serif;
}

.brand-copy strong {
  font-size: 18px;
  font-weight: 700;
}

.brand-copy small {
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  color: #614a3f;
  font-size: 14px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-link,
.nav-btn,
.primary-btn,
.secondary-btn,
.inline-link {
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.nav-link {
  color: #6f5648;
  font-size: 14px;
}

.nav-btn,
.primary-btn,
.secondary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  font-weight: 600;
}

.nav-btn,
.primary-btn {
  background: linear-gradient(135deg, var(--terracotta) 0%, #c67f63 50%, var(--terracotta-deep) 100%);
  color: #fffaf5;
  box-shadow: 0 18px 32px rgba(126, 59, 55, 0.2);
}

.secondary-btn {
  border: 1px solid rgba(109, 82, 67, 0.18);
  background: rgba(255, 250, 245, 0.72);
  color: #624c3f;
}

.light-btn {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.24);
}

.nav-btn:hover,
.primary-btn:hover,
.secondary-btn:hover,
.inline-link:hover {
  transform: translateY(-2px);
}

.hero-panel,
.section-block,
.cta-panel {
  position: relative;
}

.hero-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(420px, 0.98fr);
  gap: 40px;
  align-items: center;
  min-height: calc(100vh - 120px);
  padding: 30px 0 56px;
}

.hero-copy {
  max-width: 560px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255, 250, 244, 0.72);
  border: 1px solid rgba(112, 82, 63, 0.14);
  color: #9f684e;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-copy h1 {
  margin: 18px 0 18px;
  font-size: clamp(42px, 6vw, 72px);
  line-height: 1.03;
  letter-spacing: 0.01em;
}

.hero-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.9;
}

.hero-cta {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.hero-stats {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 34px 0 0;
  padding: 0;
}

.hero-stats li {
  padding: 18px 16px;
  border-radius: 24px;
  background: rgba(255, 251, 247, 0.72);
  border: 1px solid var(--line);
  box-shadow: 0 18px 30px rgba(109, 82, 67, 0.08);
}

.hero-stats strong {
  display: block;
  font-size: 32px;
  color: #8f4e46;
  font-family: "STSong", "Songti SC", "Noto Serif SC", serif;
}

.hero-stats span {
  display: block;
  margin-top: 8px;
  color: #6f5c50;
  font-size: 13px;
  line-height: 1.6;
}

.hero-stage {
  position: relative;
  min-height: 680px;
  border-radius: 40px;
  padding: 32px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 248, 240, 0.9) 0%, rgba(246, 238, 228, 0.88) 55%, rgba(229, 237, 230, 0.92) 100%);
  border: 1px solid rgba(112, 82, 63, 0.12);
  box-shadow: 0 30px 60px rgba(97, 70, 53, 0.14);
}

.hero-stage::before {
  content: "";
  position: absolute;
  inset: 24px;
  border-radius: 32px;
  border: 1px solid rgba(142, 111, 90, 0.12);
}

.stage-top {
  position: absolute;
  top: 32px;
  left: 54px;
  right: 54px;
  height: 12px;
  border-radius: 999px;
  background: linear-gradient(90deg, #a97841 0%, #dfc283 50%, #98683c 100%);
  box-shadow: 0 8px 16px rgba(111, 77, 42, 0.18);
}

.stage-top::after {
  content: "";
  position: absolute;
  left: 26px;
  right: 26px;
  top: 11px;
  height: 24px;
  background:
    radial-gradient(circle at 50% 9px, transparent 5px, rgba(214, 178, 104, 0.95) 5px 7px, transparent 7px)
    0 0 / 34px 24px repeat-x;
}

.curtain {
  position: absolute;
  top: 46px;
  bottom: 44px;
  width: 38%;
  background: linear-gradient(180deg, #cb7768 0%, #a14a44 100%);
  box-shadow: inset 14px 0 18px rgba(255, 255, 255, 0.09), inset -22px 0 24px rgba(81, 28, 26, 0.15);
}

.curtain::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.16) 0 16px, rgba(255, 255, 255, 0.03) 16px 34px);
}

.left-curtain {
  left: -2%;
  clip-path: polygon(0 0, 100% 0, 84% 100%, 0 100%);
}

.right-curtain {
  right: -2%;
  clip-path: polygon(16% 0, 100% 0, 100% 100%, 0 100%);
}

.stage-window {
  position: absolute;
  inset: 102px 23% 58px;
  border-radius: 32px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0%, rgba(237, 243, 236, 0.96) 100%);
  border: 1px solid rgba(165, 145, 123, 0.28);
  box-shadow:
    inset 0 0 0 12px rgba(255, 255, 255, 0.54),
    inset 0 -32px 50px rgba(201, 216, 201, 0.28);
}

.stage-window::before {
  content: "";
  position: absolute;
  inset: 22px;
  border-radius: 22px;
  background:
    linear-gradient(90deg, rgba(242, 245, 239, 0.48) 0 18%, rgba(255, 255, 255, 0.8) 18% 20%, rgba(242, 245, 239, 0.48) 20% 80%, rgba(255, 255, 255, 0.8) 80% 82%, rgba(242, 245, 239, 0.48) 82% 100%);
  border: 1px solid rgba(184, 195, 182, 0.4);
}

.sun-aura {
  position: absolute;
  top: 56px;
  right: 50px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(244, 219, 143, 0.95) 0%, rgba(244, 219, 143, 0.2) 44%, rgba(244, 219, 143, 0) 72%);
  animation: drift 6s ease-in-out infinite;
}

.window-note {
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: 28px;
  z-index: 1;
  padding: 18px 20px;
  border-radius: 20px;
  background: rgba(255, 251, 247, 0.82);
  border: 1px solid rgba(161, 133, 112, 0.16);
  box-shadow: 0 16px 26px rgba(118, 95, 79, 0.12);
}

.window-note span,
.float-card span,
.story-tag,
.journal-kicker {
  display: block;
  color: #9a6a52;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.window-note strong,
.float-card strong {
  display: block;
  margin-top: 8px;
  font-size: 22px;
  color: #5f4538;
  font-family: "STSong", "Songti SC", "Noto Serif SC", serif;
}

.float-card {
  position: absolute;
  z-index: 2;
  width: 240px;
  padding: 18px 18px 16px;
  border-radius: 24px;
  background: rgba(255, 251, 246, 0.9);
  border: 1px solid rgba(127, 99, 81, 0.14);
  box-shadow: 0 22px 32px rgba(112, 84, 67, 0.12);
  backdrop-filter: blur(12px);
}

.float-card small {
  display: block;
  margin-top: 10px;
  color: #786458;
  line-height: 1.7;
}

.card-top {
  top: 142px;
  left: 20px;
  animation: rise 7s ease-in-out infinite;
}

.card-bottom {
  right: 26px;
  bottom: 78px;
  animation: rise 8s ease-in-out infinite reverse;
}

.section-block {
  padding: 36px 0;
}

.section-title {
  max-width: 720px;
  margin-bottom: 26px;
}

.section-title span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 250, 244, 0.72);
  border: 1px solid var(--line);
  color: #9a6a52;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.section-title h2,
.story-card h2,
.cta-panel h2 {
  margin: 16px 0 0;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.15;
}

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

.mood-card,
.story-card,
.journal-main,
.note-card {
  background: rgba(255, 251, 247, 0.82);
  border: 1px solid var(--line);
  box-shadow: 0 18px 32px rgba(115, 90, 70, 0.08);
}

.mood-card {
  padding: 22px;
  border-radius: 28px;
}

.mood-swatch {
  height: 220px;
  border-radius: 22px;
  margin-bottom: 18px;
  position: relative;
  overflow: hidden;
}

.mood-swatch::before,
.mood-swatch::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 38%;
  background: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.18) 0 14px, rgba(255, 255, 255, 0.02) 14px 28px);
}

.mood-swatch::before {
  left: -2%;
  clip-path: polygon(0 0, 100% 0, 82% 100%, 0 100%);
}

.mood-swatch::after {
  right: -2%;
  clip-path: polygon(18% 0, 100% 0, 100% 100%, 0 100%);
}

.rose-card .mood-swatch {
  background: linear-gradient(135deg, #f8e6db 0%, #f1d9cf 55%, #f8f2e8 100%);
}

.green-card .mood-swatch {
  background: linear-gradient(135deg, #dbe7de 0%, #cfe1d4 55%, #f6f1e7 100%);
}

.gold-card .mood-swatch {
  background: linear-gradient(135deg, #f1dfc6 0%, #ecd0ac 55%, #fbf5ec 100%);
}

.mood-card h3 {
  margin: 0 0 10px;
  font-size: 22px;
  font-family: "STSong", "Songti SC", "Noto Serif SC", serif;
}

.mood-card p,
.story-card p,
.detail-list li,
.journal-main p,
.note-card span {
  margin: 0;
  color: var(--muted);
  line-height: 1.9;
}

.story-block {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 22px;
}

.story-card {
  border-radius: 32px;
  padding: 28px;
}

.wide-card {
  min-height: 320px;
  background:
    linear-gradient(135deg, rgba(255, 247, 240, 0.92) 0%, rgba(246, 239, 230, 0.84) 70%, rgba(230, 237, 231, 0.82) 100%);
}

.detail-list {
  margin: 18px 0 0;
  padding-left: 18px;
}

.detail-list li + li {
  margin-top: 14px;
}

.journal-layout {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 22px;
}

.journal-main {
  border-radius: 34px;
  padding: 32px;
  background: linear-gradient(180deg, rgba(255, 251, 247, 0.9) 0%, rgba(246, 239, 230, 0.84) 100%);
}

.journal-main h3 {
  margin: 16px 0 14px;
  font-size: 34px;
  line-height: 1.25;
}

.inline-link {
  display: inline-flex;
  margin-top: 20px;
  color: #9f584b;
  font-weight: 600;
}

.journal-side {
  display: grid;
  gap: 18px;
}

.note-card {
  border-radius: 26px;
  padding: 22px;
}

.note-card strong {
  display: block;
  margin-bottom: 10px;
  font-size: 18px;
  font-family: "STSong", "Songti SC", "Noto Serif SC", serif;
}

.cta-block {
  padding-bottom: 64px;
}

.cta-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 34px 36px;
  border-radius: 36px;
  background: linear-gradient(135deg, #9b544a 0%, #bf765f 44%, #6e7d6f 100%);
  color: #fffaf4;
  box-shadow: 0 24px 40px rgba(107, 78, 62, 0.18);
}

.cta-panel h2 {
  margin-top: 14px;
  max-width: 760px;
}

.cta-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.site-footer {
  width: min(1200px, calc(100% - 40px));
  margin: 0 auto;
  padding: 0 0 28px;
  position: relative;
  z-index: 1;
  text-align: center;
}

.site-footer-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 18px 24px;
  flex-wrap: wrap;
}

.site-footer a {
  color: #7b675c;
  font-size: 13px;
  line-height: 1.8;
  transition: color 0.25s ease;
}

.police-record-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.police-record-icon {
  width: 16px;
  height: 16px;
  object-fit: contain;
  flex: 0 0 16px;
}

.site-footer a:hover {
  color: #9f584b;
}

@keyframes drift {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(-8px, 10px, 0);
  }
}

@keyframes rise {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(0, -12px, 0);
  }
}

@media (max-width: 1080px) {
  .hero-panel,
  .story-block,
  .journal-layout {
    grid-template-columns: 1fr;
  }

  .hero-panel {
    min-height: auto;
    padding-top: 18px;
  }

  .hero-stage {
    min-height: 560px;
  }

  .cta-panel {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 820px) {
  .hero-header {
    flex-wrap: wrap;
  }

  .hero-nav {
    order: 3;
    width: 100%;
    justify-content: center;
    gap: 18px;
  }

  .mood-grid,
  .hero-stats {
    grid-template-columns: 1fr;
  }

  .hero-stage {
    min-height: 460px;
    padding: 22px;
  }

  .stage-window {
    inset: 92px 18% 54px;
  }

  .float-card {
    width: 210px;
  }
}

@media (max-width: 640px) {
  .hero-header,
  main,
  .site-footer {
    width: min(calc(100% - 28px), 1200px);
  }

  .hero-actions {
    width: 100%;
    justify-content: space-between;
  }

  .nav-btn,
  .primary-btn,
  .secondary-btn {
    min-height: 44px;
    padding: 0 18px;
  }

  .hero-copy h1 {
    font-size: 40px;
  }

  .hero-stage {
    min-height: 360px;
  }

  .stage-top {
    left: 26px;
    right: 26px;
  }

  .curtain {
    width: 42%;
  }

  .stage-window {
    inset: 86px 12% 44px;
  }

  .sun-aura {
    top: 42px;
    right: 22px;
    width: 126px;
    height: 126px;
  }

  .float-card {
    position: static;
    width: 100%;
    margin-top: 14px;
    animation: none;
  }

  .hero-stage {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
  }

  .story-card,
  .journal-main,
  .note-card,
  .mood-card,
  .cta-panel {
    border-radius: 24px;
  }

  .cta-actions {
    width: 100%;
  }

  .cta-actions a {
    width: 100%;
  }
}
