:root {
  --bg: #f8f5f0;
  --paper: #fffcf8;
  --text: #3b3432;
  --muted: #5e564f;
  --rose: #8f4e58;
  --rose-deep: #6f3b44;
  --sieve: #f1ece5;
  --quote: #6d534c;
  --rose-soft: #f2e3e2;
  --ink: #fff8f4;
  --line: #e4d9d0;
  --shadow: 0 12px 28px rgba(99, 80, 68, 0.08);
  --radius: 22px;
  --radius-sm: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --container: 1120px;
  --prose: 740px;
  --h1: 2rem;
  --h2: 1.5rem;
  --h3: 1.25rem;
  --body: 1rem;
  --small: 0.875rem;
  --ease: cubic-bezier(0.2, 0.7, 0.3, 1);
  --cta-loop: 3.2s;
  --cta-wash: rgba(242, 210, 206, 0.7);
  --cta-seal: rgba(74, 42, 46, 0.18);
  --cta-pad: 96px;
  color-scheme: light;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  background: var(--bg);
  scroll-padding-top: 110px;
  scroll-padding-bottom: var(--cta-pad);
}

body {
  margin: 0;
  min-width: 320px;
  padding-bottom: var(--cta-pad);
  background: var(--bg);
  color: var(--text);
  font-family: "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  font-size: var(--body);
  line-height: 1.7;
  overflow-wrap: break-word;
}

img {
  max-width: 100%;
  height: auto;
}

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

a:hover {
  text-decoration: underline;
}

button,
input {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  border: 0;
  background: transparent;
}

:focus-visible {
  outline: 2px solid var(--rose);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--paper);
  padding: 8px 16px;
  z-index: 80;
}

.skip-link:focus {
  left: 16px;
  top: 16px;
}

.wrap {
  width: min(var(--container), calc(100% - 48px));
  margin: 0 auto;
}

.serif {
  font-family: "Songti SC", "Noto Serif SC", "STSong", "SimSun", serif;
  font-weight: 600;
}

.mast {
  position: sticky;
  top: 16px;
  z-index: 20;
  margin-top: 16px;
}

.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
}

.brand:hover {
  text-decoration: none;
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 13px;
  display: block;
}

.brand strong {
  display: block;
  font-size: 1.35rem;
  letter-spacing: 0.18em;
}

.brand small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: var(--small);
  letter-spacing: 0.08em;
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
  font-weight: 400;
}

.links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}

.links a {
  color: var(--muted);
  font-size: var(--body);
  text-decoration: none;
}

.links a:hover,
.links a.is-on {
  color: var(--rose);
  text-decoration: none;
}

.menu-btn {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--rose-soft);
  color: var(--rose);
}

.menu-btn span,
.menu-btn span::before,
.menu-btn span::after {
  display: block;
  width: 16px;
  height: 2px;
  margin: 0 auto;
  background: currentColor;
  position: relative;
}

.menu-btn span::before,
.menu-btn span::after {
  content: "";
  position: absolute;
  left: 0;
}

.menu-btn span::before {
  top: -6px;
}

.menu-btn span::after {
  top: 6px;
}

.drawer[hidden] {
  display: none;
}

.drawer {
  position: fixed;
  inset: 0;
  z-index: 30;
  background: rgba(81, 70, 60, 0.28);
}

.drawer-panel {
  width: min(280px, 86vw);
  height: 100%;
  background: var(--paper);
  padding: 24px;
}

.drawer-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.drawer-close {
  width: 44px;
  height: 44px;
  font-size: 1.5rem;
  color: var(--muted);
}

.drawer-nav {
  list-style: none;
  margin: 0;
  padding: 0;
}

.drawer-nav a {
  display: block;
  padding: 12px 0;
  color: var(--text);
  border-bottom: 1px solid var(--line);
  font-size: var(--body);
}

.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  align-items: center;
  padding: 48px 0 32px;
}

h1 {
  margin: 12px 0 16px;
  font-size: var(--h1);
  line-height: 1.35;
  color: var(--text);
}

h2 {
  margin: 0 0 12px;
  font-size: var(--h2);
  line-height: 1.35;
  color: var(--text);
}

h3 {
  margin: 0 0 8px;
  font-size: var(--h3);
  line-height: 1.4;
  color: var(--text);
}

.eyebrow {
  display: inline-block;
  color: var(--rose);
  letter-spacing: 0.12em;
  font-size: var(--small);
}

.hero p,
.prose p,
.tile p,
.sheet td,
.sheet th,
.faq p {
  font-size: var(--body);
  line-height: 1.7;
}

.hero-copy p {
  margin: 0;
  max-width: 38rem;
}

.hero-art {
  position: relative;
  min-height: 280px;
}

.slip {
  position: absolute;
  width: min(220px, 46%);
  padding: 16px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.slip strong {
  display: block;
  margin-bottom: 6px;
  color: var(--rose);
  font-size: var(--h3);
}

.slip span {
  color: var(--muted);
  font-size: var(--body);
}

.slip.a {
  left: 0;
  top: 8px;
  transform: rotate(-7deg);
}

.slip.b {
  right: 0;
  top: 86px;
  transform: rotate(6deg);
}

.slip.c {
  left: 18%;
  bottom: 0;
  transform: rotate(-3deg);
}

.band {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}

.band strong {
  color: var(--text);
  font-weight: 650;
}

.section {
  padding: 40px 0;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  margin-bottom: 20px;
}

.section-head p {
  margin: 0;
  color: var(--muted);
  max-width: 36rem;
}

.sieve {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 12px;
  margin-bottom: 20px;
  background: var(--sieve);
  border-radius: 18px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  color: var(--muted);
  font-size: var(--body);
}

.chip.is-on,
.chip[aria-pressed="true"] {
  background: var(--paper);
  color: var(--rose);
  box-shadow: var(--shadow);
}

.find {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  max-width: 260px;
  min-width: 0;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--paper);
}

.find input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: none;
  background: transparent;
  font-size: var(--body);
}

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

.tile {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
  padding: 18px;
}

.tile-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
}

.mark {
  font-size: var(--small);
  color: var(--rose);
  background: var(--rose-soft);
  border-radius: 999px;
  padding: 4px 8px;
}

.keep {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
  color: var(--rose);
}

.keep[aria-pressed="true"] {
  background: var(--rose);
  color: var(--ink);
}

.tile p {
  margin: 8px 0 12px;
}

.empty {
  display: none;
  padding: 28px;
  text-align: center;
  color: var(--muted);
  border: 1px dashed var(--line);
  border-radius: 18px;
}

.empty.is-show {
  display: block;
}

.scroll-x {
  overflow-x: auto;
}

.sheet {
  width: 100%;
  border-collapse: collapse;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
}

.sheet th,
.sheet td {
  padding: 12px 14px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}

.sheet th {
  background: var(--rose-soft);
  color: var(--text);
}

.quote {
  margin: 8px 0 0;
  padding: 28px 8px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.quote p {
  margin: 0;
  font-size: var(--h2);
  line-height: 1.5;
  color: var(--quote);
}

.faq details {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px 16px;
  margin-bottom: 8px;
}

.faq summary {
  cursor: pointer;
  font-size: var(--h3);
  font-weight: 650;
}

.prose {
  width: min(var(--prose), 100%);
  padding: 36px 0 48px;
}

.prose li {
  margin: 8px 0;
  font-size: var(--body);
  line-height: 1.7;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 24px 0 28px;
  color: var(--muted);
  font-size: var(--small);
}

.footer-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
}

.footer-links a {
  color: var(--muted);
}

.footer-brand a {
  color: var(--text);
  font-size: var(--body);
  font-weight: 650;
  letter-spacing: 0.12em;
  text-decoration: none;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 108px;
  transform: translateX(-50%);
  z-index: 40;
  max-width: calc(100% - 32px);
  padding: 12px 16px;
  border-radius: 16px;
  background: var(--paper);
  border: 1px solid var(--line);
  color: var(--rose);
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
}

.toast.is-on {
  opacity: 1;
}

.site-cta {
  position: fixed;
  left: 50%;
  bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(520px, calc(100% - 32px));
  min-height: 56px;
  padding: 0 20px;
  border-radius: 999px;
  background: var(--rose);
  color: var(--ink);
  font-size: var(--body);
  font-weight: 700;
  text-decoration: none;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.site-cta:hover,
.site-cta:focus-visible {
  color: var(--ink);
  text-decoration: none;
  background: var(--rose-deep);
}

.site-cta::before,
.site-cta::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.site-cta::before {
  background: radial-gradient(80% 140% at 50% 50%, var(--cta-wash) 0%, transparent 62%);
  opacity: 0;
  transform: scale(0.96);
  animation: cta-bloom var(--cta-loop) var(--ease) infinite;
}

.site-cta::after {
  animation: cta-seal var(--cta-loop) var(--ease) infinite;
}

@keyframes cta-bloom {
  0%,
  50% {
    opacity: 0;
    transform: scale(0.96);
  }
  66% {
    opacity: 0.28;
    transform: scale(1);
  }
  84%,
  100% {
    opacity: 0;
    transform: scale(1);
  }
}

@keyframes cta-seal {
  0%,
  58% {
    box-shadow: inset 0 0 0 0 transparent;
  }
  72% {
    box-shadow: inset 0 12px 22px var(--cta-seal);
  }
  88%,
  100% {
    box-shadow: inset 0 0 0 0 transparent;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-cta::before,
  .site-cta::after {
    animation: none;
  }

  .site-cta::before {
    opacity: 0.16;
    transform: none;
  }

  .site-cta::after {
    box-shadow: inset 0 8px 16px var(--cta-seal);
  }
}

@media (max-width: 1100px) {
  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .links {
    display: none;
  }

  .menu-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .hero,
  .section-head,
  .sieve {
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }

  .hero-art {
    min-height: 0;
    display: grid;
    gap: 12px;
  }

  .slip,
  .slip.a,
  .slip.b,
  .slip.c {
    position: static;
    width: auto;
    transform: none;
  }

  .find {
    max-width: none;
  }
}

@media (max-width: 640px) {
  .wrap {
    width: calc(100% - 32px);
  }

  .mast {
    top: 8px;
  }

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

  .site-cta {
    width: calc(100% - 24px);
    min-height: 52px;
  }
}
