:root {
  --bg: #f6f0e6;
  --bg-deep: #efe6d8;
  --paper: #fffbf6;
  --ink: #2b2118;
  --ink-soft: #6a5748;
  --ink-faint: #8a7463;
  --accent: #9a5530;
  --accent-hover: #7e4325;
  --accent-soft: #f3e3d4;
  --line: #e4d6c4;
  --shadow: 0 12px 32px rgba(80, 50, 20, 0.08);
  --radius: 20px;
  --serif: "Noto Serif TC", "Songti TC", "PMingLiU", "Noto Serif CJK TC", serif;
  --sans: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", "Noto Sans CJK TC", sans-serif;
  --max: 1120px;
  --header-h: 84px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input { font-family: inherit; }

.preview-bar {
  background: var(--ink);
  color: #f6ef e6;
  color: #f3eadc;
  text-align: center;
  font-size: 12px;
  letter-spacing: 0.04em;
  padding: 8px 16px;
  line-height: 1.5;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(246, 240, 230, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: var(--header-h);
}
.wordmark {
  display: flex;
  flex-direction: column;
  gap: 0;
  line-height: 1.15;
}
.wordmark .zh {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: 0.08em;
}
.wordmark .en {
  font-size: 11px;
  color: var(--ink-faint);
  letter-spacing: 0.08em;
  margin-top: 2px;
}
.wordmark .domain {
  font-size: 10px;
  color: var(--ink-faint);
  letter-spacing: 0.14em;
  margin-top: 3px;
  font-weight: 400;
  opacity: 0.85;
}
.nav {
  display: none;
  gap: 28px;
  font-size: 15px;
}
.nav a { color: var(--ink-soft); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }
.menu-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: 999px;
  color: var(--ink);
  cursor: pointer;
}
.menu-btn span,
.menu-btn span::before,
.menu-btn span::after {
  display: block;
  width: 16px;
  height: 1.5px;
  background: currentColor;
  position: relative;
}
.menu-btn span::before,
.menu-btn span::after {
  content: "";
  position: absolute;
  left: 0;
}
.menu-btn span::before { top: -5px; }
.menu-btn span::after { top: 5px; }

.mobile-nav {
  display: none;
  border-top: 1px solid var(--line);
  background: var(--paper);
  padding: 8px 20px 16px;
}
.mobile-nav.open { display: block; }
.mobile-nav a {
  display: block;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
}

.hero {
  padding: 28px 0 8px;
}
.hero-grid {
  display: grid;
  gap: 28px;
  align-items: center;
}
.eyebrow {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: none;
  color: var(--accent);
  font-weight: 500;
  margin: 0 0 10px;
}
.hero h1 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(32px, 7vw, 56px);
  line-height: 1.2;
  letter-spacing: 0.04em;
  margin: 0 0 16px;
}
.lede {
  color: var(--ink-soft);
  font-size: 16px;
  max-width: 36em;
  margin: 0 0 24px;
}
.hero-photo {
  background: var(--paper);
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.hero-photo img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: 50% 60%;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 15px;
  cursor: pointer;
  gap: 8px;
}
.btn-primary {
  background: var(--accent);
  color: #fffbf6;
}
.btn-primary:hover { background: var(--accent-hover); }
.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}
.btn-ghost:hover { background: var(--paper); }
.btn[disabled], .btn.is-disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.season-strip {
  margin: 28px auto 8px;
  max-width: var(--max);
  padding: 0 20px;
}
.season-strip a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px 18px;
  color: var(--ink-soft);
  font-size: 14px;
}
.season-strip strong { color: var(--ink); font-weight: 600; }

.section {
  padding: 48px 0;
}
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 22px;
}
.section h2 {
  font-family: var(--serif);
  font-size: 28px;
  letter-spacing: 0.08em;
  margin: 0;
  font-weight: 700;
}

.grid-products {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}
.card {
  background: var(--paper);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.card .thumb {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--bg-deep);
}
.card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.card.ayuan .thumb img { object-position: 50% 55%; }
.card.duel .thumb img { object-position: 50% 45%; }
.card.xmas .thumb img { object-position: 50% 50%; }
.card.clicker .thumb img { object-position: 50% 70%; }
.card-body { padding: 16px 16px 18px; }
.card-body h3 {
  font-family: var(--serif);
  font-size: 20px;
  margin: 0 0 6px;
  letter-spacing: 0.04em;
}
.price {
  font-size: 15px;
  color: var(--ink);
}
.price-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 22px;
  font-weight: 600;
  margin: 0 0 20px;
}
.price .note,
.price-row .note {
  display: inline-block;
  margin-left: 6px;
  font-size: 11px;
  color: var(--ink-faint);
  background: var(--accent-soft);
  padding: 2px 7px;
  border-radius: 999px;
  vertical-align: 1px;
}

.about-teaser {
  display: grid;
  gap: 24px;
  background: var(--paper);
  border-radius: 28px;
  padding: 28px 22px;
  box-shadow: var(--shadow);
}
.about-teaser h2 { margin-bottom: 12px; }
.about-teaser p {
  color: var(--ink-soft);
  margin: 0 0 12px;
}
.about-teaser p:last-of-type { margin-bottom: 20px; }
.about-photo {
  border-radius: 20px;
  overflow: hidden;
}
.about-photo img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: 50% 45%;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 40px 0 28px;
  margin-top: 24px;
  color: var(--ink-soft);
  font-size: 14px;
}
.footer-grid {
  display: grid;
  gap: 28px;
}
.site-footer .zh {
  font-family: var(--serif);
  color: var(--ink);
  font-size: 20px;
  letter-spacing: 0.12em;
  font-weight: 700;
}
.site-footer .en { font-size: 12px; color: var(--ink-faint); margin: 4px 0 0; }
.site-footer .domain {
  font-size: 11px;
  color: var(--ink-faint);
  letter-spacing: 0.12em;
  margin: 3px 0 10px;
}
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.footer-links a { color: var(--ink-soft); }
.footer-links a:hover { color: var(--ink); }
.legal {
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--ink-faint);
}

/* Product page */
.breadcrumb {
  padding: 18px 0 8px;
  font-size: 13px;
  color: var(--ink-faint);
}
.breadcrumb a { color: var(--ink-soft); }
.product {
  display: grid;
  gap: 28px;
  padding-bottom: 20px;
}
.gallery-main {
  background: var(--paper);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.gallery-main img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}
.thumbs {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  flex-wrap: wrap;
}
.thumbs button {
  width: 72px;
  height: 72px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 12px;
  overflow: hidden;
  background: var(--paper);
  cursor: pointer;
}
.thumbs button[aria-current="true"] { border-color: var(--accent); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }

.buy h1 {
  font-family: var(--serif);
  font-size: clamp(26px, 5vw, 36px);
  letter-spacing: 0.06em;
  margin: 0 0 10px;
}
.buy .lede { margin-bottom: 16px; }
.option-label {
  font-size: 13px;
  color: var(--ink-soft);
  margin: 0 0 8px;
}
.variants {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}
.variants button {
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: 999px;
  padding: 8px 14px;
  cursor: pointer;
  color: var(--ink);
  font-size: 14px;
}
.variants button[aria-pressed="true"] {
  border-color: var(--accent);
  background: var(--accent-soft);
}
.qty {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.qty input {
  width: 64px;
  height: 44px;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
  font-size: 16px;
}
.fine-print {
  margin-top: 18px;
  font-size: 13px;
  color: var(--ink-soft);
}
.fine-print p { margin: 0 0 8px; }
.warn {
  margin-top: 16px;
  padding: 14px 16px;
  background: var(--accent-soft);
  border-radius: 14px;
  font-size: 13px;
  color: var(--ink);
}

.prose { max-width: 42em; }
.prose h1, .prose h2 {
  font-family: var(--serif);
  letter-spacing: 0.06em;
}
.prose h1 { font-size: clamp(28px, 6vw, 42px); margin: 12px 0 16px; }
.prose h2 { font-size: 22px; margin: 28px 0 10px; }
.prose p { color: var(--ink-soft); margin: 0 0 14px; }

.faq details {
  background: var(--paper);
  border-radius: 16px;
  padding: 4px 18px;
  margin: 0 0 10px;
  border: 1px solid var(--line);
}
.faq summary {
  cursor: pointer;
  padding: 14px 0;
  font-weight: 500;
}
.faq details p {
  margin: 0 0 16px;
  color: var(--ink-soft);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%) translateY(20px);
  background: var(--ink);
  color: #f6f0e6;
  padding: 12px 18px;
  border-radius: 999px;
  font-size: 14px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 80;
  max-width: calc(100% - 32px);
  text-align: center;
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@media (min-width: 600px) {
  .grid-products { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 860px) {
  .menu-btn, .mobile-nav { display: none !important; }
  .nav { display: flex; }
  .hero { padding: 48px 0 12px; }
  .hero-grid { grid-template-columns: 1fr 1.15fr; gap: 48px; }
  .grid-products { grid-template-columns: repeat(4, 1fr); }
  .about-teaser {
    grid-template-columns: 1.1fr 0.9fr;
    padding: 36px;
    align-items: center;
  }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .product { grid-template-columns: 1.1fr 0.9fr; gap: 48px; padding-top: 12px; }
  .section { padding: 64px 0; }
}

.footer-grid > div > p:first-child {
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--ink-faint);
  margin: 0 0 10px;
}
.qty label {
  font-size: 13px;
  color: var(--ink-soft);
}
.buy .btn-primary { width: 100%; }
@media (min-width: 860px) {
  .buy .btn-primary { width: auto; min-width: 200px; }
}
