:root {
  --pink: #f472a0;
  --pink-dark: #e0568a;
  --cream: #fff6ef;
  --brown: #6b4a3a;
  --ink: #3a2a24;
  --card-radius: 18px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "PingFang TC", "Microsoft JhengHei", -apple-system, sans-serif;
  background: var(--cream);
  color: var(--ink);
}

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* header */
.site-header {
  background: #fff;
  border-bottom: 1px solid #f1e2d8;
  position: sticky;
  top: 0;
  z-index: 10;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.logo {
  font-weight: 800;
  font-size: 20px;
  color: var(--brown);
}
.logo-dot {
  color: var(--pink);
  margin-left: 4px;
}
.site-header nav a {
  color: var(--brown);
  text-decoration: none;
  font-weight: 600;
  padding: 8px 4px;
}
.site-header nav a.active {
  color: var(--pink-dark);
  border-bottom: 2px solid var(--pink-dark);
}

/* hero */
.hero {
  background: linear-gradient(180deg, #ffe3ee 0%, var(--cream) 100%);
  padding: 56px 0 40px;
  text-align: center;
}
.hero h1 {
  margin: 0 0 12px;
  font-size: 32px;
  line-height: 1.4;
  color: var(--brown);
}
.hero p {
  margin: 0;
  color: #8a6f63;
  font-size: 16px;
}

/* section */
.section-title {
  font-size: 22px;
  color: var(--brown);
  margin: 40px 0 20px;
}

/* series grid */
.series-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
  padding-bottom: 60px;
}
.series-card {
  background: #fff;
  border-radius: var(--card-radius);
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(180, 120, 100, 0.12);
  display: flex;
  flex-direction: column;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.series-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 26px rgba(180, 120, 100, 0.2);
}
.series-card img {
  width: 100%;
  aspect-ratio: 1.4 / 1;
  object-fit: cover;
  display: block;
  background: #fbe9e2;
}
.series-card .body {
  padding: 16px 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.series-card h3 {
  margin: 0;
  font-size: 18px;
  color: var(--ink);
}
.series-card .price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.series-card .price {
  font-size: 20px;
  font-weight: 800;
  color: var(--pink-dark);
}
.series-card .price::before {
  content: "¥";
  font-size: 13px;
  font-weight: 600;
  color: #c98;
}
.btn {
  display: inline-block;
  background: var(--pink);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 10px 22px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: background 0.15s ease;
}
.btn:hover { background: var(--pink-dark); }
.btn-block { width: 100%; }
.btn-ghost {
  background: #fff;
  color: var(--pink-dark);
  border: 2px solid var(--pink);
}
.btn-ghost:hover { background: #fff0f5; }

/* footer */
.site-footer {
  border-top: 1px solid #f1e2d8;
  padding: 20px 0;
  text-align: center;
  color: #b09183;
  font-size: 13px;
}

/* box page */
.box-page {
  padding: 48px 0 80px;
  text-align: center;
}
.box-page h1 {
  font-size: 26px;
  color: var(--brown);
  margin: 0 0 6px;
}
.box-page .price {
  font-size: 22px;
  font-weight: 800;
  color: var(--pink-dark);
  margin-bottom: 28px;
}
.box-page .price::before {
  content: "¥";
  font-size: 14px;
  color: #c98;
}

.reveal-stage {
  max-width: 640px;
  margin: 0 auto 28px;
  position: relative;
  border-radius: var(--card-radius);
  box-shadow: 0 8px 30px rgba(180, 120, 100, 0.18);
  background: #fff;
  animation: reveal-in 0.5s ease;
}
.reveal-stage img {
  width: 100%;
  display: block;
  border-radius: var(--card-radius);
}
@keyframes reveal-in {
  0% { opacity: 0; transform: scale(0.85); }
  100% { opacity: 1; transform: scale(1); }
}

.actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.hint {
  color: #b09183;
  font-size: 14px;
  margin-top: 16px;
}

/* mystery box open animation */
.mystery-box-wrap {
  max-width: 640px;
  margin: 0 auto 28px;
  position: relative;
}
.mystery-box {
  width: 180px;
  height: 180px;
  margin: 0 auto 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 76px;
  background: linear-gradient(160deg, #ffc9de, #ff9dc0);
  border-radius: 24px;
  box-shadow: 0 10px 30px rgba(224, 86, 138, 0.35);
  cursor: pointer;
  user-select: none;
  transition: transform 0.15s ease;
}
.mystery-box:hover {
  transform: translateY(-4px);
}
.mystery-box.shaking {
  animation: shake 0.45s ease-in-out infinite;
  cursor: default;
}
.mystery-box.shaking:hover {
  transform: none;
}
@keyframes shake {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(-8deg); }
  75% { transform: rotate(8deg); }
}

.confetti-piece {
  position: absolute;
  top: 40%;
  left: 50%;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  pointer-events: none;
  animation: confetti-burst 0.8s ease-out forwards;
}
@keyframes confetti-burst {
  0% {
    opacity: 1;
    transform: translate(-50%, -50%) rotate(0deg) translateY(0);
  }
  100% {
    opacity: 0;
    transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) rotate(360deg) translateY(0);
  }
}
