/* ==========================================================================
   红豆心意店 · 首页 Maison 版式 (luxe-home.css)
   ========================================================================== */

body[data-panel="landing"] { background: var(--lx-ivory); }
body[data-panel="landing"] #page { width: var(--lx-container); }

.lx-home { color: var(--lx-ink); }
.lx-home h1, .lx-home h2, .lx-home h3, .lx-home h4 { font-family: var(--lx-display); font-weight: 400; color: var(--lx-ink); }
.lx-home p { margin: 0; }

/* Reveal on load */
@keyframes lx-rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes lx-fade { from { opacity: 0; } to { opacity: 1; } }

/* ---------------- HERO ---------------- */
.lx-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  align-items: center;
  gap: clamp(25px, 5vw, 82px);
  padding-block: clamp(32px, 4.7vw, 70px) clamp(36px, 5vw, 78px);
}
.lx-hero-copy > * { animation: lx-rise 1s var(--lx-ease) both; }
.lx-hero-copy > :nth-child(2) { animation-delay: .08s; }
.lx-hero-copy > :nth-child(3) { animation-delay: .16s; }
.lx-hero-copy > :nth-child(4) { animation-delay: .24s; }

.lx-hero-title {
  display: grid;
  margin: 0 0 30px;
  font: 300 clamp(36px, 4.3vw, 64px)/1.24 var(--lx-display) !important;
  letter-spacing: 0.04em;
}
.lx-hero-title em {
  font-style: normal;
  color: var(--lx-wine);
  background: linear-gradient(transparent 72%, rgba(192, 138, 143, .28) 72%);
}
.lx-hero-lead {
  max-width: 30em;
  color: var(--lx-ink-soft);
  font: 300 15.5px/2.05 var(--lx-sans);
  letter-spacing: .04em;
}
.lx-hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 40px; }

.lx-hero-specimen { position: relative; margin: 0; padding: clamp(28px, 4vw, 64px) clamp(20px, 3vw, 48px) 0; animation: lx-fade 1.4s var(--lx-ease) .1s both; }
.lx-arch {
  position: absolute;
  inset: 0 0 64px 0;
  border-radius: 999px 999px 0 0;
  background:
    radial-gradient(120% 70% at 50% 0%, rgba(255,255,255,.75), transparent 60%),
    linear-gradient(180deg, var(--lx-blush) 0%, var(--lx-porcelain) 100%);
  z-index: -1;
}
.lx-arch::after {
  content: "";
  position: absolute;
  inset: 12px 12px 0;
  border: 1px solid var(--lx-gold-soft);
  border-bottom: 0;
  border-radius: 999px 999px 0 0;
}
.lx-specimen-frame.storefront-sample-frame {
  aspect-ratio: 1240 / 718;
  padding: 10px;
  border: 0;
  background: #fff;
  box-shadow: 0 40px 70px -40px rgba(75, 15, 25, .45), 0 2px 6px rgba(75, 15, 25, .06);
  transform: rotate(-1.6deg);
  transition: transform .8s var(--lx-ease);
}
.lx-specimen-frame.storefront-sample-frame > img { object-fit: contain; }
.lx-hero-specimen:hover .lx-specimen-frame { transform: rotate(0deg) translateY(-4px); }
.lx-seal.storefront-seal {
  right: -14px;
  bottom: -14px;
  inline-size: 62px;
  block-size: 62px;
  border: 1px solid rgba(255, 244, 236, .55);
  outline: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 34% 30%, #e2625a, var(--lx-wine) 56%, var(--lx-wine-deep));
  color: #fff8f2;
  font: 400 22px/1 var(--lx-display);
  box-shadow: 0 14px 28px -10px rgba(160, 42, 36, .6), inset 0 0 0 5px rgba(255,255,255,.08);
}
.lx-seal.storefront-seal:hover { background: radial-gradient(circle at 34% 30%, #d4524a, var(--lx-wine-deep)); transform: scale(1.05) rotate(-6deg); }
.lx-sample-letter.storefront-sample-letter { inset: 10px; border: 0; background: #fffdfb; padding: 24px 80px 24px 32px; }
.lx-home #gift-letter-text { font: 400 clamp(19px, 2.2vw, 27px)/1.6 var(--lx-display); }
.lx-home .sample-letter-actions button { border-radius: 0; background: transparent; letter-spacing: .1em; }

.lx-specimen-caption {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px 20px;
  padding: 34px 4px 0;
}
.lx-specimen-kicker { display: block; margin-bottom: 8px; color: var(--lx-wine); font: italic 400 13px/1 var(--lx-latin); letter-spacing: .06em; }
.lx-specimen-caption strong { display: block; font: 400 15px/1.5 var(--lx-display); letter-spacing: .06em; }
.lx-specimen-caption p { margin-top: 4px; color: var(--lx-ink-faint); font-size: 12.5px; letter-spacing: .06em; }

/* ---------------- Sections ---------------- */
.lx-section { padding-block: clamp(42px, 5.5vw, 78px); border-top: 1px solid var(--lx-line); scroll-margin-top: 84px; }
.lx-section-head { margin: 0 0 clamp(20px, 3.5vw, 36px); }
.lx-section-head h2 { margin: 0; font: 300 clamp(30px, 3.6vw, 50px)/1.35 var(--lx-display) !important; letter-spacing: .08em; }
.lx-section-sub { margin-top: 9px !important; color: var(--lx-ink-soft); font: 300 15px/2 var(--lx-sans); letter-spacing: .05em; }
.lx-showcase-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 28px);
  margin: 0;
  padding: 0;
  list-style: none;
}
.lx-case-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #fff;
  color: inherit;
  text-decoration: none;
  box-shadow: var(--lx-shadow-soft);
  transition: transform .5s var(--lx-ease), box-shadow .5s var(--lx-ease);
}
.lx-case-card:hover { transform: translateY(-6px); box-shadow: var(--lx-shadow); }
.lx-case-media {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 2 / 1;
  background: var(--lx-porcelain);
}
.lx-case-media.is-dark { background: #100b0f; }
.lx-case-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s var(--lx-ease);
}
.lx-case-card:hover .lx-case-media img { transform: scale(1.05); }
.lx-case-copy {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 18px 18px 20px;
}
.lx-case-copy h3 { margin: 0; font-size: clamp(17px, 1.65vw, 22px); }
.lx-case-copy .lx-case-desc { margin: 7px 0 10px; color: var(--lx-ink-soft); font-size: 14px; line-height: 1.65; }
.lx-case-copy > a { align-self: start; margin-top: auto; }
.lx-case-links { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: auto; }

/* ---------------- 09 Embedded Postcard Selector (#postcard-select) ---------------- */
.lx-selector-board {
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(0, 1.06fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: start;
}
.lx-selector-controls,
.lx-selector-stage-wrap {
  background: #fff;
  border: 1px solid var(--lx-line);
  padding: clamp(22px, 3vw, 40px);
  box-shadow: var(--lx-shadow-soft);
}
.lx-sel-fieldset { min-inline-size: 0; margin: 0; padding: 0; border: 0; }
.lx-sel-fieldset legend {
  margin: 0 0 12px;
  padding: 0;
  color: var(--lx-ink-faint);
  font: 400 11.5px/1 var(--lx-sans);
  letter-spacing: 0.22em;
}
.lx-sel-kinds { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.lx-sel-kind {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 50px;
  padding: 10px 14px;
  border: 1px solid var(--lx-line-strong);
  background: var(--lx-ivory);
  color: var(--lx-ink);
  font: 400 13.5px/1.4 var(--lx-sans);
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: border-color .25s var(--lx-ease), background-color .25s var(--lx-ease);
}
.lx-sel-kind:hover { border-color: var(--lx-wine); background: #fff; }
.lx-sel-kind:has(:checked) { border-color: var(--lx-wine); background: var(--lx-blush); color: var(--lx-wine-deep); }
.lx-sel-kind input { width: 16px; height: 16px; min-height: 0; margin: 0; accent-color: var(--lx-wine); flex: none; }
.lx-sel-desc {
  margin: 14px 0 24px !important;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--lx-line);
  color: var(--lx-ink-soft);
  font: 300 13.5px/1.9 var(--lx-sans);
}
.lx-sel-date { display: flex; gap: 10px; }
.lx-sel-date label {
  display: grid;
  flex: 1 1 0;
  gap: 6px;
  min-width: 0;
  color: var(--lx-ink-faint);
  font-size: 11.5px;
  letter-spacing: 0.18em;
}
.lx-sel-date select {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  height: 48px;
  padding: 0 32px 0 12px;
  border: 1px solid var(--lx-line-strong);
  border-radius: 0;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%236d1a27' stroke-width='1.2'/%3E%3C/svg%3E") right 12px center no-repeat;
  color: var(--lx-ink);
  font: 400 14.5px/1 var(--lx-sans);
  font-variant-numeric: tabular-nums;
}
.lx-sel-date select:focus { border-color: var(--lx-wine); outline: none; }

.lx-sel-stamp-box {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-top: 22px;
  padding: 18px 20px;
  background: linear-gradient(135deg, var(--lx-blush) 0%, var(--lx-ivory) 100%);
  border: 1px solid var(--lx-gold-soft);
}
.lx-sel-stamp-kicker { display: block; color: var(--lx-ink-faint); font-size: 11px; letter-spacing: 0.2em; margin-bottom: 6px; }
.lx-sel-stamp-box strong { display: block; color: var(--lx-wine); font-size: clamp(28px, 3vw, 40px); line-height: 1; }
.lx-sel-stamp-name { color: var(--lx-ink-soft); font-size: 13px; letter-spacing: 0.08em; }

.lx-sel-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 22px; }
.lx-sel-actions .hd-btn-primary { flex: 1 1 200px; }
.lx-sel-status { margin-top: 12px !important; color: var(--lx-wine); font-size: 13px; letter-spacing: 0.04em; min-height: 1.4em; }
.lx-sel-brief {
  width: 100%;
  margin-top: 10px;
  padding: 12px;
  border: 1px solid var(--lx-line-strong);
  background: var(--lx-ivory);
  color: var(--lx-ink);
  font: 400 13px/1.7 var(--lx-sans);
}

/* Interactive Swipeable Deck */
.lx-deck-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--lx-line);
}
.lx-deck-eyebrow { display: block; color: var(--lx-wine); font-size: 13px; margin-bottom: 4px; }
.lx-deck-head h3 { margin: 0; font-size: 20px !important; letter-spacing: 0.08em; }
.lx-deck-count { color: var(--lx-ink-faint); font: italic 400 16px/1 var(--lx-latin); white-space: nowrap; }

.lx-deck-stage {
  position: relative;
  height: clamp(250px, 30vw, 340px);
  margin-block: 18px;
  overflow: hidden;
  background: linear-gradient(180deg, var(--lx-blush) 0%, var(--lx-porcelain) 100%);
  border: 1px solid var(--lx-line);
  cursor: grab;
  touch-action: pan-y;
}
.lx-deck-stage:active { cursor: grabbing; }
.lx-deck-stack { position: absolute; inset: 0; perspective: 900px; }
.lx-deck-card {
  --tx: 0%;
  --sc: 1;
  --rot: 0deg;
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(calc(100% - 36px), 370px);
  aspect-ratio: 1.44;
  padding: 8px;
  background: #fff;
  box-shadow: 0 22px 44px -22px rgba(75, 15, 25, .42);
  z-index: var(--layer);
  transform: translate(-50%, -50%) translateX(var(--tx)) scale(var(--sc)) rotate(var(--rot));
  transition: transform .45s var(--lx-ease), opacity .35s var(--lx-ease);
  pointer-events: none;
}
.lx-deck-card[data-offset="-1"] { --tx: -74%; --sc: 0.86; --rot: -4deg; opacity: 0.45; }
.lx-deck-card[data-offset="1"] { --tx: 74%; --sc: 0.86; --rot: 4deg; opacity: 0.45; }
.lx-deck-card img { display: block; width: 100%; height: 100%; object-fit: contain; background: #fbf8f4; user-select: none; }

.lx-deck-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 16px;
  flex-wrap: wrap;
  padding-top: 4px;
}
.lx-deck-meta strong { display: block; font: 400 15.5px/1.4 var(--lx-display); letter-spacing: 0.06em; color: var(--lx-ink); }
.lx-deck-meta p { margin-top: 3px; color: var(--lx-ink-soft); font-size: 12.5px; line-height: 1.65; }
.lx-deck-controls { display: flex; align-items: center; gap: 8px; }
.lx-deck-arrow,
.lx-deck-pick {
  min-width: 44px;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--lx-line-strong);
  border-radius: 0;
  background: transparent;
  color: var(--lx-ink);
  font: 400 13px/1 var(--lx-sans);
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: border-color .25s var(--lx-ease), background-color .25s var(--lx-ease), color .25s var(--lx-ease);
}
.lx-deck-arrow:disabled { opacity: 0.35; cursor: default; }
.lx-deck-arrow:not(:disabled):hover,
.lx-deck-pick:hover { border-color: var(--lx-wine); color: var(--lx-wine); }
.lx-deck-pick[aria-pressed="true"] { border-color: var(--lx-wine); background: var(--lx-wine); color: #fbf3ef; }
.lx-deck-note {
  margin-top: 16px !important;
  padding-top: 14px;
  border-top: 1px solid var(--lx-line);
  color: var(--lx-ink-faint);
  font-size: 12px;
  line-height: 1.8;
  letter-spacing: 0.04em;
}

/* Responsive home layout */
@media (max-width: 900px) {
  .lx-hero { grid-template-columns: 1fr; min-height: 0; padding-top: 34px; }
  .lx-hero-specimen { max-width: 560px; margin-inline: auto; width: 100%; }
  .lx-showcase-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lx-selector-board { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .lx-hero-specimen { padding: 20px 12px 0; }
  .lx-specimen-frame.storefront-sample-frame { transform: none; padding: 7px; }
  .lx-hero-title { font-size: clamp(32px, 8.8vw, 42px) !important; }
  .lx-hero-cta .hd-btn { flex: 1 1 100%; }
  .lx-specimen-caption { flex-direction: column; align-items: flex-start; padding-top: 15px; }
  .lx-seal.storefront-seal { right: 10px; bottom: 10px; inline-size: 52px; block-size: 52px; }
  .lx-sample-letter.storefront-sample-letter { padding: 16px 60px 16px 18px; }
  .lx-showcase-grid { gap: 12px; }
  .lx-case-copy { padding: 12px; }
  .lx-case-copy .lx-case-desc { font-size: 13px; }
  .lx-case-copy .hd-btn-quiet { font-size: 12px; text-align: left; letter-spacing: 0; }
  .lx-selector-controls, .lx-selector-stage-wrap { padding: 20px 16px; }
  .lx-sel-kinds { grid-template-columns: 1fr; }
  .lx-sel-date { gap: 8px; }
  .lx-sel-actions .hd-btn { width: 100%; }
  .lx-deck-stage { height: 226px; }
  .lx-deck-card { width: min(calc(100% - 24px), 310px); padding: 6px; }
  .lx-deck-controls { width: 100%; }
  .lx-deck-pick { flex: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .lx-hero-copy > *, .lx-hero-specimen { animation: none; }
  .lx-case-card, .lx-case-media img, .lx-specimen-frame { transition: none; }
}

/* 商品展示 */
.lx-catalog-section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 24px;
}
.lx-paper-products {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(10px, 1.6vw, 22px);
}
.lx-visual-note {
  position: absolute;
  padding: 3px 7px;
  bottom: 4px;
  right: 4px;
  background: #fff8ee;
  color: var(--lx-ink-soft);
  font-size: 11px;
}
.lx-selector-board.is-year { grid-template-columns: minmax(0, 640px); }
.lx-gift-flow {
  margin-top: 20px;
  scroll-margin-top: 90px;
  border-block: 1px solid var(--lx-line);
}
.lx-gift-flow summary { padding: 12px 0; font-size: 15px; cursor: pointer; }
.lx-gift-flow ol { margin: 0 0 15px; padding-left: 1.45em; color: var(--lx-ink-soft); font-size: 14px; line-height: 1.8; }

.lx-paper-product-link {
  display: block;
  height: 100%;
  color: inherit;
  background: #fffdf9;
  border: 1px solid var(--lx-line);
  text-decoration: none;
}

.lx-paper-product-link:hover h3,
.lx-paper-product-link:focus-visible h3 {
  color: var(--lx-wine);
  text-decoration: underline;
  text-underline-offset: .18em;
}
.lx-paper-product-caption { padding: 12px clamp(11px, 1.4vw, 18px) 16px; }
.lx-paper-product-caption h3 { margin: 0 0 5px; font-size: clamp(16px, 1.5vw, 20px); }
.lx-paper-product-caption p { color: var(--lx-ink-soft); font-size: 14px; line-height: 1.65; }

.lx-product-visual {
  display: grid;
  place-items: center;
  overflow: hidden;
  position: relative;
  aspect-ratio: 3 / 2;
  background: #ede4d9;
  container-type: inline-size;
}

.lx-product-visual--photo img {
  display: block;
  width: 87%;
  height: auto;
  max-height: 90%;
  object-fit: contain;
  filter: drop-shadow(0 9px 7px #5d342f26);
}

.lx-product-visual--birth-paper { background: #e9e2d8; }
.lx-product-visual--birth-paper img {
  width: auto;
  height: 56cqi;
  max-width: 88%;
  max-height: 88%;
}

.lx-birth-paper-samples {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.lx-catalog-copy .lx-birth-paper-samples a {
  display: grid;
  justify-items: start;
  margin: 0;
  padding: 10px;
  border: 1px solid var(--lx-line);
  background: #fffdf9;
  color: var(--lx-ink);
  font-size: 13px;
  text-decoration: none;
}
.lx-birth-paper-samples a:hover span { text-decoration: underline; }
.lx-birth-paper-samples img {
  display: block;
  width: 100%;
  height: clamp(84px, 13vw, 150px);
  margin-bottom: 8px;
  object-fit: contain;
  background: #e9e2d8;
}
.lx-birth-paper-samples time { color: var(--lx-wine); }

.lx-product-visual--envelope { background: #e3d7c7; }
.lx-display-envelope {
  position: relative;
  width: 69%;
  aspect-ratio: 1.6;
  isolation: isolate;
  background:
    linear-gradient(to top right, #f2e5d6 49.7%, transparent 50%) left bottom / 52% 82% no-repeat,
    linear-gradient(to top left, #f2e5d6 49.7%, transparent 50%) right bottom / 52% 82% no-repeat,
    #eee0ce;
  box-shadow: 2px 9px 15px #52302036;
}

.lx-display-envelope::before {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(#fff9eb, #f4e8d6);
  clip-path: polygon(0 0, 100% 0, 52% 65%, 48% 65%);
}

.lx-display-envelope-seal {
  position: absolute;
  display: grid;
  top: 58%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 17%;
  aspect-ratio: 1;
  place-items: center;
  border: .6cqi double #ce7269;
  border-radius: 50%;
  background: #9d302c;
  color: #fff6e7;
  font: 400 5.1cqi/1 var(--lx-display);
  box-shadow: 1px 3px 4px #42241f45;
}

.lx-product-catalog { background: var(--lx-ivory); }
.lx-catalog-wrap { width: var(--lx-container); max-width: 1280px; margin-inline: auto; }
.lx-catalog-head { padding-block: clamp(38px, 7vw, 98px) clamp(28px, 5vw, 62px); }
.lx-catalog-head h1 { margin: 0 0 14px; font-size: clamp(32px, 5vw, 60px); line-height: 1.2; }
.lx-catalog-head p, .lx-catalog-copy p, .lx-catalog-digital p {
  color: var(--lx-ink-soft);
  font-size: 15px;
  line-height: 1.85;
}

.lx-catalog-jumps { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.lx-catalog-jumps a {
  display: inline-grid;
  align-items: center;
  min-height: 44px;
  padding-inline: 14px;
  border: 1px solid var(--lx-line);
  color: var(--lx-wine);
  font-size: 14px;
}
.lx-catalog-jumps a:hover { background: #fff; border-color: var(--lx-wine); }

.lx-catalog-item {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: clamp(24px, 5vw, 76px);
  align-items: center;
  scroll-margin-top: 90px;
  padding-block: clamp(30px, 5vw, 68px);
  border-top: 1px solid var(--lx-line);
}
#postcard { scroll-margin-top: 90px; }
.lx-catalog-item:target .lx-catalog-copy h2 { color: var(--lx-wine); }
.lx-catalog-item figure { margin: 0; min-width: 0; }
.lx-catalog-item figcaption { padding-top: 10px; color: var(--lx-ink-soft); font-size: 13px; }
.lx-catalog-copy h2, .lx-catalog-digital h2 { margin: 0 0 13px; font-size: clamp(24px, 3.4vw, 39px); }
.lx-catalog-copy a { margin-top: 20px; }
.lx-catalog-digital { border-top: 1px solid var(--lx-line); padding-block: clamp(32px, 6vw, 74px); }

@media (max-width: 680px) {
  .lx-paper-products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lx-paper-product-caption { padding: 10px 11px 14px; }
  .lx-paper-product-caption p { font-size: 13px; }
  .lx-catalog-item { grid-template-columns: 1fr; gap: 16px; }
  .lx-catalog-item .lx-catalog-copy { grid-row: 1; }
  #birth-paper .lx-catalog-copy { display: contents; }
  #birth-paper h2 { grid-row: 1; margin: 0; }
  #birth-paper p { grid-row: 2; }
  #birth-paper figure { grid-row: 3; }
  #birth-paper .lx-birth-paper-samples { grid-row: 4; margin-top: 0; }
}
