:root {
  --bg: #fbf6f7;
  --surface: #ffffff;
  --surface-2: #fff1f5;
  --text: #3a2430;
  --text-muted: #4a3340;
  --accent: #a33d68;
  --accent-ink: #fff8fb;
  --ink: #4a2436;
  --border: #f0d4e0;
  --line: #e8c9d6;
  --ok: #246b3e;
  --warn: #8a5a12;
  --shadow-1: 0 12px 32px rgba(74, 36, 54, 0.07);
  --shadow-2: 0 8px 20px rgba(74, 36, 54, 0.05);
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 24px;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --container: 1120px;
  --prose: 740px;
  --ease: cubic-bezier(0.2, 0.7, 0.3, 1);
  --dur: 180ms;
  --cta-loop: 2.8s;
  --cta-wash: rgba(255, 214, 228, 0.55);
  --cta-press: rgba(74, 36, 54, 0.16);
  --cta-pad: 96px;
  --h1: 2rem;
  --h2: 1.5rem;
  --h3: 1.25rem;
  --body: 1rem;
  --small: 0.875rem;
  color-scheme: light;
}

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

html {
  font-size: 16px;
  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(--accent);
  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(--accent);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--surface);
  padding: var(--space-2) var(--space-4);
  z-index: 100;
}

.skip-link:focus {
  left: var(--space-4);
  top: var(--space-4);
}

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

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

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

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.12em;
  font-size: 1.25rem;
}

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

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

.brand small {
  display: block;
  margin-top: 2px;
  font-size: var(--small);
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}

.links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  align-items: center;
}

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

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

.menu-btn {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface-2);
}

.menu-btn span,
.menu-btn span::before,
.menu-btn span::after {
  display: block;
  width: 16px;
  height: 2px;
  margin: 0 auto;
  background: var(--ink);
  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(74, 36, 54, 0.28);
}

.drawer-panel {
  width: min(280px, 86vw);
  height: 100%;
  background: var(--surface);
  padding: var(--space-5);
  box-shadow: var(--shadow-1);
}

.drawer-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-4);
}

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

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

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

.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: var(--space-7);
  align-items: center;
  padding: var(--space-7) 0 var(--space-6);
}

h1 {
  margin: 12px 0 16px;
  font-size: var(--h1);
  line-height: 1.3;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0;
}

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

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

.eyebrow {
  display: inline-block;
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--accent);
  font-size: var(--small);
}

.hero p,
.prose p,
.panel p,
.card p,
.faq p,
.table-note {
  font-size: var(--body);
  line-height: 1.7;
}

.hero-copy p {
  margin: 0;
  max-width: 38rem;
  color: var(--text);
}

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

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

.paper.one {
  left: 4%;
  top: 12px;
  transform: rotate(-8deg);
}

.paper.two {
  right: 2%;
  top: 78px;
  transform: rotate(7deg);
}

.paper strong {
  display: block;
  margin-bottom: 8px;
  color: var(--accent);
  font-size: var(--h3);
}

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

.section {
  padding-bottom: var(--space-7);
}

.section-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: var(--space-4);
  margin-bottom: var(--space-4);
}

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

.filters {
  display: flex;
  justify-content: space-between;
  gap: var(--space-4);
  align-items: center;
  padding: 12px;
  margin-bottom: var(--space-5);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

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

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

.chip.is-on,
.chip[aria-pressed="true"] {
  background: var(--accent);
  color: var(--accent-ink);
}

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

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

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

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-2);
  overflow: hidden;
}

.card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
  padding: 16px 16px 0;
}

.tag {
  font-size: var(--small);
  color: var(--accent);
  background: var(--surface-2);
  border-radius: 999px;
  padding: 4px 8px;
}

.save {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border);
  color: var(--accent);
  font-size: 1.1rem;
}

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

.card-body {
  padding: 8px 16px 16px;
}

.card p {
  margin: 0 0 12px;
  color: var(--text);
}

.card a.more {
  font-weight: 650;
}

.empty {
  display: none;
  grid-column: 1 / -1;
  padding: var(--space-6);
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-muted);
}

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

.sheet {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

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

.sheet th {
  background: var(--surface-2);
  color: var(--ink);
  font-weight: 650;
}

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

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

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

.prose {
  width: min(var(--prose), 100%);
  padding: var(--space-6) 0 var(--space-7);
}

.prose ul,
.field-list {
  padding-left: 1.2em;
}

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

.quote {
  margin: 0 0 16px;
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.quote p {
  margin: 0;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-5);
}

.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-5);
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: var(--space-5) 0 var(--space-6);
  color: var(--text-muted);
  font-size: var(--small);
}

.footer-row {
  display: flex;
  justify-content: space-between;
  gap: var(--space-4);
  flex-wrap: wrap;
  align-items: center;
}

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

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

.footer-brand a {
  color: var(--ink);
  font-weight: 700;
  font-size: var(--body);
  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: var(--radius-md);
  background: var(--ink);
  color: var(--accent-ink);
  font-size: var(--body);
  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(--accent);
  color: var(--accent-ink);
  font-size: var(--body);
  font-weight: 700;
  text-decoration: none;
  box-shadow: var(--shadow-1);
  overflow: hidden;
}

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

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

.site-cta::before {
  background: radial-gradient(120% 150% at 28% 50%, var(--cta-wash) 0%, transparent 68%);
  opacity: 0;
  transform: scale(0.96);
  animation: cta-blush var(--cta-loop) var(--ease) infinite;
}

.site-cta::after {
  box-shadow: inset 0 0 0 0 transparent;
  animation: cta-press var(--cta-loop) var(--ease) infinite;
}

@keyframes cta-blush {
  0%,
  52% {
    opacity: 0;
    transform: scale(0.96);
  }
  68% {
    opacity: 0.28;
    transform: scale(1);
  }
  86%,
  100% {
    opacity: 0;
    transform: scale(1);
  }
}

@keyframes cta-press {
  0%,
  60% {
    box-shadow: inset 0 0 0 0 transparent;
  }
  74% {
    box-shadow: inset 0 10px 24px var(--cta-press);
  }
  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-press);
  }
}

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

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

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

  .hero,
  .split,
  .section-top {
    grid-template-columns: 1fr;
  }

  .section-top {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-art {
    min-height: 220px;
  }

  .filters {
    flex-direction: column;
    align-items: stretch;
  }

  .search {
    max-width: none;
  }

  .board {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

  .site-header {
    top: 8px;
  }

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

  .paper {
    width: 46%;
  }

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