:root {
  --bg: #fff8ec;
  --card: #ffffff;
  --ink: #3b2a20;
  --muted: #8a7566;
  --butter: #ffd966;
  --butter-deep: #f5b82e;
  --pink: #ff9eb5;
  --line: #f0e2c8;
  --radius: 22px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 17px/1.6 "Nunito", system-ui, -apple-system, sans-serif;
}
h1, h2, h3, .logo { font-family: "Baloo 2", "Nunito", sans-serif; line-height: 1.15; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); margin: 0 0 .4em; }
h2 { font-size: clamp(1.45rem, 3vw, 2rem); margin: 1.6em 0 .6em; }
a { color: #c2410c; }
img { max-width: 100%; height: auto; }
main { max-width: 1080px; margin: 0 auto; padding: 0 16px 48px; }
section { margin: 0 0 24px; }

.top {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  max-width: 1080px; margin: 0 auto; padding: 14px 16px;
}
.logo { font-size: 1.5rem; font-weight: 800; color: var(--ink); text-decoration: none; display: flex; align-items: center; gap: 8px; }
.blob { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 14px; background: var(--butter); }
.top nav { display: flex; gap: 18px; flex-wrap: wrap; }
.top nav a { color: var(--ink); text-decoration: none; font-weight: 700; }
.top nav a:hover { color: #c2410c; }

.hero { text-align: center; padding: 40px 0 16px; }
.small-hero { padding-top: 16px; }
.lead { font-size: 1.15rem; color: #5a4636; max-width: 720px; margin: 0 auto 1em; }
.answer { margin-left: 0; }

.btn {
  display: inline-block; border: 0; cursor: pointer; text-decoration: none;
  background: var(--butter); color: var(--ink); font: 800 1.05rem "Nunito", sans-serif;
  padding: 12px 22px; border-radius: 999px; box-shadow: 0 4px 0 var(--butter-deep);
  transition: transform .08s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(2px); box-shadow: 0 2px 0 var(--butter-deep); }
.btn.ghost { background: #fff; box-shadow: 0 4px 0 var(--line); }
.btn.big { font-size: 1.2rem; padding: 16px 30px; }
.btn[disabled] { opacity: .6; cursor: wait; }

.maker {
  background: var(--card); border-radius: var(--radius); padding: 24px; border: 3px solid var(--line);
  box-shadow: 0 10px 30px rgba(120, 80, 20, .07);
}
.maker h2 { margin-top: 0; }
#make-form { display: flex; gap: 10px; flex-wrap: wrap; }
#subject {
  flex: 1 1 260px; min-width: 0; font: 700 1.1rem "Nunito", sans-serif; padding: 12px 18px;
  border: 3px solid var(--line); border-radius: 999px; background: #fffdf7; color: var(--ink);
}
#subject:focus { outline: none; border-color: var(--butter-deep); }
.ideas { margin: 10px 0 0; color: var(--muted); font-size: .95rem; }
.idea, .chip, .tab {
  border: 2px solid var(--line); background: #fff; color: var(--ink); border-radius: 999px;
  padding: 4px 12px; margin: 4px 4px 0 0; font: 700 .9rem "Nunito", sans-serif; cursor: pointer;
}
.chip.on, .tab.on { background: var(--butter); border-color: var(--butter-deep); }
.status { min-height: 1.6em; font-weight: 700; color: #b45309; }
.result { margin-top: 8px; }
.pieces { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; margin: 12px 0 16px; }
.pieces figure { margin: 0; text-align: center; flex: 1 1 220px; max-width: 320px; }
.pieces canvas { width: 100%; height: auto; background: #fff; border-radius: 12px; }
figcaption { color: var(--muted); font-weight: 700; font-size: .9rem; }
.small { font-size: .88rem; color: var(--muted); }
.center { text-align: center; }

.chips { margin-bottom: 12px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.card {
  background: var(--card); border-radius: 18px; padding: 10px; text-decoration: none; color: var(--ink);
  border: 2px solid var(--line); text-align: center; font-weight: 800; transition: transform .12s ease;
}
.card:hover { transform: translateY(-3px) rotate(-1deg); border-color: var(--butter-deep); }
.card img { aspect-ratio: 1; object-fit: contain; width: 100%; }
.card span { display: block; font-size: .95rem; }
.card.hide { display: none; }

.steps { padding-left: 1.3em; }
.steps li { margin: .4em 0; }
.howto, .faq { background: var(--card); border-radius: var(--radius); padding: 8px 24px 16px; border: 3px solid var(--line); }
.faq details { border-bottom: 2px dashed var(--line); padding: 10px 0; }
.faq summary { font-weight: 800; cursor: pointer; }
.faq p { margin: .5em 0 0; }

.crumbs { color: var(--muted); font-size: .9rem; margin: 8px 0 12px; }
.crumbs a { color: var(--muted); }
.tpl { max-width: 820px; margin: 0 auto; }
.previews { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin: 16px 0; }
.previews figure { margin: 0; background: #fff; border-radius: var(--radius); padding: 14px; border: 3px solid var(--line); flex: 1 1 240px; max-width: 340px; text-align: center; }

.foot { text-align: center; padding: 32px 16px; color: var(--muted); border-top: 3px solid var(--line); }
.foot a { color: var(--muted); }

@media (max-width: 560px) {
  body { font-size: 16px; }
  .maker { padding: 18px 14px; }
  .top nav { gap: 12px; font-size: .95rem; }
  .grid { grid-template-columns: repeat(2, 1fr); }
}

/* 礼包入口和销售页 */
.packbox {
  display: flex; gap: 16px; align-items: center; background: #fffdf3; border: 3px dashed var(--butter-deep);
  border-radius: var(--radius); padding: 14px 18px; margin: 24px 0;
}
.packbox img { width: 90px; height: auto; border-radius: 8px; box-shadow: 0 4px 12px rgba(0,0,0,.08); }
.packhero { display: flex; gap: 28px; align-items: center; flex-wrap: wrap; justify-content: center; }
.packhero img { width: min(360px, 100%); border-radius: 14px; border: 3px solid var(--line); background: #fff; box-shadow: 0 12px 30px rgba(120,80,20,.15); transform: rotate(-2deg); }
.packhero > div { flex: 1 1 320px; }
.ticks { padding-left: 1.2em; }
.ticks li { margin: .45em 0; }
.winter { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 12px; }
.winter figure { margin: 0; text-align: center; background: #fff; border: 2px solid var(--line); border-radius: 16px; padding: 8px; }
.prices { display: flex; gap: 18px; flex-wrap: wrap; justify-content: center; margin: 28px 0 8px; }
.price { flex: 1 1 260px; max-width: 360px; background: #fff; border: 3px solid var(--line); border-radius: var(--radius); padding: 20px; text-align: center; }
.price h3 { margin: 0; font-size: 1.5rem; }
.amount { font: 800 2.4rem "Baloo 2", sans-serif; margin: .2em 0; }
span.btn[aria-disabled] { opacity: .55; cursor: default; }
@media (max-width: 560px) { .packbox { flex-direction: column; text-align: center; } }
.product { border-top: 3px dashed var(--line); padding-top: 8px; }
