@import url('https://fonts.googleapis.com/css2?family=Archivo+Black&family=Noto+Sans+SC:wght@400;600;700;900&display=swap');

:root {
  --ink: #171717;
  --paper: #fffaf1;
  --pink: #ff4fa3;
  --pink-soft: #ff94c7;
  --yellow: #ffe84a;
  --blue: #4869ff;
  --cyan: #76e8f2;
  --green: #b9f54a;
  --orange: #ff8248;
  --border: 3px solid var(--ink);
  --shadow: 8px 8px 0 var(--ink);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background-color: var(--paper);
  background-image:
    radial-gradient(circle at 16px 16px, rgba(23, 23, 23, 0.1) 1.5px, transparent 1.5px);
  background-size: 32px 32px;
  font-family: "Noto Sans SC", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button,
a {
  font: inherit;
}

button {
  color: inherit;
}

.page-shell {
  width: min(1440px, 100%);
  min-height: 100vh;
  margin: 0 auto;
  padding: 24px clamp(20px, 4vw, 64px) 30px;
  display: flex;
  flex-direction: column;
}

.topbar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 58px;
}

.brand {
  width: max-content;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-family: "Archivo Black", "Noto Sans SC", sans-serif;
  font-size: clamp(24px, 3vw, 34px);
  letter-spacing: -1.5px;
}

.brand-dot {
  width: 20px;
  height: 20px;
  border: 3px solid var(--ink);
  border-radius: 50%;
  background: var(--pink);
  box-shadow: 4px 4px 0 var(--yellow);
}

.date-chip {
  margin: 0;
  padding: 8px 16px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--green);
  font-family: "Archivo Black", "Noto Sans SC", sans-serif;
  font-size: 12px;
  letter-spacing: 0.08em;
  box-shadow: 3px 3px 0 var(--ink);
  transform: rotate(-1deg);
}

.sound-button {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 14px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: white;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 3px 3px 0 var(--ink);
  position: relative;
  transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease, color 160ms ease;
}

.sound-button::after {
  content: "";
  position: absolute;
  inset: -7px;
  border: 3px solid transparent;
  border-radius: 999px;
  pointer-events: none;
  transition: border-color 160ms ease, transform 160ms ease;
}

.sound-button:hover,
.sound-button:focus-visible {
  transform: translate(-2px, -2px) scale(1.04);
  box-shadow: 6px 6px 0 var(--ink);
  background: var(--cyan);
  outline: none;
}

.sound-button:hover::after,
.sound-button:focus-visible::after {
  border-color: var(--pink);
  transform: rotate(-2deg);
}

.sound-button[aria-pressed="true"] {
  color: white;
  background: var(--blue);
  box-shadow: 5px 5px 0 var(--pink), 9px 9px 0 var(--ink);
  transform: translate(-3px, -3px);
}

.sound-button[aria-pressed="true"]::after {
  border-color: var(--yellow);
  transform: rotate(2deg);
}

.sound-icon {
  height: 16px;
  display: flex;
  align-items: center;
  gap: 2px;
}

.sound-icon i {
  display: block;
  width: 3px;
  border-radius: 4px;
  background: currentColor;
  animation: equalize 900ms ease-in-out infinite alternate;
}

.sound-icon i:nth-child(1) { height: 8px; }
.sound-icon i:nth-child(2) { height: 16px; animation-delay: -300ms; }
.sound-icon i:nth-child(3) { height: 11px; animation-delay: -600ms; }

main {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(48px, 7vh, 90px) 0;
}

.hero {
  width: min(820px, 100%);
  margin: 0 auto clamp(38px, 6vh, 64px);
  text-align: center;
}

.hero-kicker {
  width: max-content;
  max-width: 100%;
  margin: 0 auto 20px;
  padding: 8px 15px;
  border: 2px solid var(--ink);
  background: var(--cyan);
  font-family: "Archivo Black", "Noto Sans SC", sans-serif;
  font-size: 12px;
  letter-spacing: 0.1em;
  box-shadow: 4px 4px 0 var(--ink);
  transform: rotate(1deg);
}

.hero-kicker span {
  color: var(--blue);
}

.hero h1 {
  margin: 0;
  font-size: clamp(45px, 6.7vw, 90px);
  line-height: 0.98;
  letter-spacing: -0.075em;
  font-weight: 900;
}

.hero h1 em {
  position: relative;
  display: inline-block;
  color: var(--blue);
  font-style: normal;
  z-index: 0;
}

.hero h1 em::after {
  content: "";
  position: absolute;
  left: -3%;
  right: -3%;
  bottom: -5px;
  height: 22%;
  border: 2px solid var(--ink);
  background: var(--yellow);
  transform: rotate(-2deg);
  z-index: -1;
}

.hero > p {
  margin: 22px auto 0;
  color: #4a4a4a;
  font-size: clamp(15px, 1.5vw, 18px);
  line-height: 1.8;
}

.module-grid {
  width: min(1240px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 2.2vw, 30px);
  align-items: stretch;
}

@media (hover: hover) {
  .module-grid:has(.module-card:hover) .module-card:not(:hover) {
    opacity: 0.66;
    filter: saturate(0.72);
    transform: scale(0.975);
  }
}

.module-card {
  position: relative;
  min-height: 490px;
  padding: clamp(20px, 2vw, 28px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: var(--border);
  border-radius: 28px;
  box-shadow: var(--shadow);
  transition: transform 220ms cubic-bezier(.2,.8,.2,1), box-shadow 220ms ease, opacity 180ms ease, filter 180ms ease;
  outline: none;
}

.module-card::before {
  content: "";
  position: absolute;
  inset: 9px;
  z-index: 2;
  border: 3px solid transparent;
  border-radius: 19px;
  pointer-events: none;
  transition: border-color 180ms ease, inset 180ms ease;
}

.module-card::after {
  content: "当前选择  ↗";
  position: absolute;
  top: 72px;
  left: 50%;
  z-index: 4;
  padding: 7px 13px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--green);
  color: var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
  opacity: 0;
  transform: translate(-50%, -8px) rotate(-2deg);
  pointer-events: none;
  transition: opacity 160ms ease, transform 180ms ease;
}

.module-card > * {
  position: relative;
  z-index: 1;
}

.module-card:hover,
.module-card:focus-visible {
  z-index: 3;
  filter: saturate(1.2);
  transform: translate(-5px, -12px) rotate(-0.9deg) scale(1.035);
  box-shadow: 16px 19px 0 var(--ink), 0 0 0 5px var(--paper);
}

.module-card:hover::before,
.module-card:focus-visible::before {
  inset: 7px;
  border-color: currentColor;
}

.card-blue:hover::before,
.card-blue:focus-visible::before {
  border-color: white;
}

.module-card:hover::after,
.module-card:focus-visible::after {
  opacity: 1;
  transform: translate(-50%, 0) rotate(-2deg);
}

.module-card:hover .card-action,
.module-card:focus-visible .card-action {
  background: var(--green);
  box-shadow: 5px 5px 0 var(--ink);
}

.module-card:nth-child(2):hover,
.module-card:nth-child(2):focus-visible {
  transform: translate(0, -14px) rotate(0.7deg) scale(1.035);
}

.module-card:nth-child(3):hover,
.module-card:nth-child(3):focus-visible {
  transform: translate(5px, -12px) rotate(-0.5deg) scale(1.035);
}

.card-pink { background: var(--pink-soft); }
.card-yellow { background: var(--yellow); }
.card-blue { background: var(--blue); color: white; }

.card-topline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: "Archivo Black", "Noto Sans SC", sans-serif;
}

.card-index {
  font-size: 18px;
}

.card-tag {
  padding: 5px 10px;
  border: 2px solid currentColor;
  border-radius: 999px;
  font-size: 10px;
  letter-spacing: 0.12em;
}

.card-visual {
  position: relative;
  height: 200px;
  margin: 16px 0 10px;
  display: grid;
  place-items: center;
}

.bulb {
  width: 126px;
  color: var(--ink);
  transform: rotate(-5deg);
  transition: transform 250ms ease;
}

.module-card:hover .bulb {
  transform: rotate(3deg) scale(1.06);
}

.spark {
  position: absolute;
  color: var(--yellow);
  -webkit-text-stroke: 2px var(--ink);
  font-size: 45px;
}

.spark-one { left: 9%; top: 15%; transform: rotate(-15deg); }
.spark-two { right: 9%; bottom: 12%; font-size: 29px; transform: rotate(18deg); }

.orbit {
  position: absolute;
  border: 3px dashed var(--ink);
  border-radius: 50%;
  opacity: 0.5;
}

.orbit-one { width: 180px; height: 180px; }
.orbit-two { width: 235px; height: 115px; transform: rotate(-22deg); }

.target {
  position: relative;
  width: 138px;
  height: 138px;
  border: 4px solid var(--ink);
  border-radius: 50%;
  background: var(--paper);
  box-shadow: 6px 7px 0 var(--ink);
  transition: transform 250ms ease;
}

.module-card:hover .target {
  transform: scale(1.05) rotate(-5deg);
}

.target-ring,
.target-center {
  position: absolute;
  inset: 50% auto auto 50%;
  border: 4px solid var(--ink);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.ring-one { width: 94px; height: 94px; background: var(--pink); }
.ring-two { width: 52px; height: 52px; background: var(--cyan); }
.target-center { width: 16px; height: 16px; background: var(--ink); }
.target-arrow {
  position: absolute;
  right: -34px;
  top: 24px;
  color: var(--blue);
  font-size: 64px;
  font-weight: 900;
  transform: rotate(-43deg);
  -webkit-text-stroke: 2px var(--ink);
}

.polaroid {
  position: relative;
  width: 150px;
  padding: 10px 10px 28px;
  border: 3px solid var(--ink);
  background: white;
  color: var(--ink);
  box-shadow: 6px 7px 0 var(--ink);
  transform: rotate(5deg);
  transition: transform 250ms ease;
}

.module-card:hover .polaroid {
  transform: rotate(-3deg) scale(1.05);
}

.photo-scene {
  position: relative;
  height: 112px;
  overflow: hidden;
  border: 2px solid var(--ink);
  background: var(--cyan);
}

.sun {
  position: absolute;
  width: 40px;
  height: 40px;
  top: 15px;
  right: 14px;
  border: 3px solid var(--ink);
  border-radius: 50%;
  background: var(--yellow);
}

.hill {
  position: absolute;
  width: 125px;
  height: 90px;
  bottom: -55px;
  border: 3px solid var(--ink);
  border-radius: 50%;
}

.hill-one { left: -35px; background: var(--pink); transform: rotate(10deg); }
.hill-two { right: -52px; bottom: -49px; background: var(--green); transform: rotate(-10deg); }

.photo-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 6px;
  font-family: "Archivo Black", sans-serif;
  font-size: 11px;
  text-align: center;
}

.flower {
  position: absolute;
  color: var(--yellow);
  font-size: 44px;
  -webkit-text-stroke: 2px var(--ink);
}

.flower-one { top: 4px; right: 6%; transform: rotate(12deg); }
.flower-two { left: 7%; bottom: 10px; color: var(--pink); font-size: 36px; transform: rotate(-12deg); }

.card-copy {
  margin-top: auto;
}

.card-copy h2 {
  margin: 0 0 10px;
  font-size: clamp(27px, 2.4vw, 38px);
  line-height: 1.1;
  letter-spacing: -0.045em;
  font-weight: 900;
}

.card-copy p {
  margin: 0;
  min-height: 58px;
  color: rgba(23, 23, 23, 0.72);
  font-size: 14px;
  line-height: 1.65;
}

.card-blue .card-copy p {
  color: rgba(255, 255, 255, 0.78);
}

.card-action {
  width: 100%;
  margin-top: 22px;
  padding: 12px 12px 12px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  font-weight: 900;
  cursor: pointer;
  box-shadow: 4px 4px 0 var(--ink);
  transition: transform 150ms ease, box-shadow 150ms ease, background-color 150ms ease;
}

.card-action:hover,
.card-action:focus-visible {
  background: var(--green);
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 var(--ink);
  outline: none;
}

.arrow {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--yellow);
  font-size: 19px;
}

.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding-top: 12px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.footer p,
.footer span {
  margin: 0;
}

.footer strong {
  color: var(--pink);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 30px;
  z-index: 10;
  max-width: calc(100vw - 40px);
  padding: 12px 18px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--green);
  color: var(--ink);
  font-weight: 800;
  box-shadow: 5px 5px 0 var(--ink);
  opacity: 0;
  transform: translate(-50%, 20px);
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

body.alt-vibe {
  --paper: #f0f8ff;
  --pink-soft: #ff734d;
  --yellow: #c5ff45;
  --blue: #9a58ff;
}

@keyframes equalize {
  from { transform: scaleY(0.45); }
  to { transform: scaleY(1); }
}

@media (max-width: 900px) {
  .module-grid {
    grid-template-columns: 1fr;
    width: min(560px, 100%);
    gap: 26px;
  }

  .module-card {
    min-height: 440px;
  }

  .card-visual {
    height: 170px;
  }

  .card-copy p {
    min-height: 0;
  }
}

@media (max-width: 620px) {
  .page-shell {
    padding: 18px 16px 24px;
  }

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

  .date-chip {
    display: none;
  }

  .sound-button span:last-child {
    display: none;
  }

  .sound-button {
    width: 42px;
    height: 42px;
    padding: 0;
    justify-content: center;
  }

  main {
    padding: 54px 0 64px;
  }

  .hero {
    margin-bottom: 40px;
  }

  .hero h1 {
    font-size: clamp(42px, 14vw, 64px);
  }

  .hero h1 br {
    display: none;
  }

  .hero > p {
    max-width: 310px;
  }

  .module-card {
    min-height: 435px;
    padding: 21px;
    border-radius: 24px;
    box-shadow: 6px 6px 0 var(--ink);
  }

  .footer {
    align-items: flex-end;
  }

  .footer p {
    max-width: 180px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
