@font-face {
  font-family: "Cormorant Garamond";
  src: url("./assets/fonts/cormorant-garamond-latin-normal.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
}

@font-face {
  font-family: "Cormorant Garamond";
  src: url("./assets/fonts/cormorant-garamond-latin-italic.woff2") format("woff2");
  font-style: italic;
  font-weight: 400 500;
  font-display: swap;
}

:root {
  --bg: #EFE7DC;
  --bg-subtle: #EAE0D2;
  --surface: rgba(255, 253, 249, 0.9);
  --surface-warm: rgba(255, 253, 249, 0.94);
  --border: rgba(196, 177, 156, 0.45);
  --border-strong: #CEBCA8;
  --ink: #2C231D;
  --ink-muted: #66574D;
  --ink-soft: #69594E;
  --accent: #B38562;
  --accent-soft: #F5ECE2;
  --accent-deep: #764C30;
  --focus: #764C30;
  --btn-dark: #352B25;
  --ok: #3C6248;
  --ok-bg: rgba(255, 253, 249, 0.92);
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --shadow-card: 0 18px 46px rgba(58, 43, 32, 0.1);
  --shadow-soft: 0 6px 20px rgba(58, 43, 32, 0.06);
  --shadow-bar: 0 -10px 32px rgba(56, 46, 40, 0.1);
  --target-size: 44px;
  --shell-width: 552px;
  --footer-space: 8.5rem;
  --ease-luxury: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.22, 1, 0.36, 1);
  --font-display: "Cormorant Garamond", "Didot", "Bodoni MT", Georgia, serif;
  --font-serif-cn: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong", SimSun, serif;
  --font-sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "HarmonyOS Sans SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
}

*, *::before, *::after {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  scroll-padding-bottom: var(--footer-space);
  scroll-padding-bottom: calc(var(--footer-space) + env(safe-area-inset-bottom, 0px));
}

body {
  position: relative;
  z-index: 0;
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  overflow-wrap: break-word;
  background-color: var(--bg);
  padding-top: 0;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: var(--footer-space);
  padding-bottom: calc(var(--footer-space) + env(safe-area-inset-bottom, 0px));
}

/* Awwwards 法式画报立体背景层：燕麦微水泥底 + 亚麻细织肌理 + 巨幅斜体水印 + 午后斑驳橄榄树影 */
.ambient-backdrop {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
  background:
    radial-gradient(ellipse 90% 58% at 15% 6%, rgba(255, 248, 238, 0.88), transparent 65%),
    radial-gradient(ellipse 75% 64% at 88% 18%, rgba(211, 176, 145, 0.42), transparent 70%),
    linear-gradient(155deg, #F3ECE2 0%, #EAE0D2 48%, #E4D7C6 100%);
}

/* 细腻法式亚麻织物十字纹理 + 艺术纸颗粒 */
.ambient-linen {
  position: absolute;
  inset: 0;
  opacity: 0.65;
  background-image:
    repeating-linear-gradient(0deg, rgba(138, 108, 82, 0.045) 0px, rgba(138, 108, 82, 0.045) 1px, transparent 1px, transparent 5px),
    repeating-linear-gradient(90deg, rgba(138, 108, 82, 0.035) 0px, rgba(138, 108, 82, 0.035) 1px, transparent 1px, transparent 6px);
}

.ambient-paper-grain {
  position: absolute;
  inset: 0;
  opacity: 0.085;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.88' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  background-repeat: repeat;
}

/* 午后百叶窗暖光斜束（高对比可见柔光） */
.ambient-sunbeams {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    -30deg,
    transparent 0,
    transparent 64px,
    rgba(255, 252, 246, 0.45) 87px,
    rgba(255, 252, 246, 0.45) 112px,
    transparent 137px,
    transparent 178px
  );
  mask-image: radial-gradient(ellipse 72% 62% at 72% 16%, rgba(0, 0, 0, 0.95), transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 72% 62% at 72% 16%, rgba(0, 0, 0, 0.95), transparent 80%);
}

/* 巨幅高定杂志衬线水印（随业态联动切换） */
.ambient-watermark {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 6vh 0 12vh;
  overflow: hidden;
  user-select: none;
}

.watermark-line {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(78px, 20vw, 180px);
  line-height: 0.88;
  letter-spacing: 0.04em;
  white-space: nowrap;
  color: rgba(138, 102, 72, 0.085);
  transform: rotate(-7deg);
}

.watermark-line.line-1 {
  margin-left: -6vw;
}

.watermark-line.line-2 {
  align-self: flex-end;
  margin-right: -4vw;
  color: rgba(138, 102, 72, 0.068);
}

/* 午后的柔风橄榄枝影 */
.botanical-shadow {
  position: absolute;
  pointer-events: none;
  mix-blend-mode: multiply;
  color: rgba(88, 66, 48, 0.16);
  filter: blur(4px);
}

.botanical-shadow.top-right {
  top: -28px;
  right: -36px;
  width: min(74vw, 390px);
  height: auto;
  transform-origin: top right;
}

.botanical-shadow.bottom-left {
  bottom: 34px;
  left: -38px;
  width: min(68vw, 350px);
  height: auto;
  color: rgba(88, 66, 48, 0.13);
  transform: rotate(180deg);
  transform-origin: bottom left;
}

@keyframes branchSway {
  0%, 100% { transform: rotate(0deg) translate3d(0, 0, 0); }
  50% { transform: rotate(2.4deg) translate3d(-5px, 7px, 0); }
}

@keyframes branchSwayReverse {
  0%, 100% { transform: rotate(180deg) translate3d(0, 0, 0); }
  50% { transform: rotate(177.5deg) translate3d(5px, -6px, 0); }
}

@media (prefers-reduced-motion: no-preference) {
  .botanical-shadow.top-right { animation: branchSway 14s ease-in-out infinite; }
  .botanical-shadow.bottom-left { animation: branchSwayReverse 17s ease-in-out infinite; }
}

/* 精致法式画报双线装饰框（宽屏与留白处凸显高定邀请函氛围） */
.ambient-frame {
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(146, 114, 86, 0.22);
  border-radius: 26px;
}

.ambient-frame::after {
  content: "ATELIER EDITION · BESPOKE MENU";
  position: fixed;
  right: 26px;
  top: 50%;
  transform: translateY(-50%) rotate(90deg);
  transform-origin: right center;
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.34em;
  color: rgba(122, 94, 70, 0.42);
  display: none;
}

@media (min-width: 720px) {
  .ambient-frame::after {
    display: block;
  }
  .app-shell {
    margin-top: 14px;
  }
}

h1, h2, h3 {
  text-wrap: balance;
  margin: 0;
}

p, li {
  text-wrap: pretty;
}

img, canvas {
  max-inline-size: 100%;
  block-size: auto;
}

button, input, textarea {
  font: inherit;
  color: inherit;
  touch-action: manipulation;
}

button {
  min-width: var(--target-size);
  min-height: var(--target-size);
}

:focus {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

:focus:not(:focus-visible) {
  outline: none;
}

.app-shell {
  width: 100%;
  max-width: var(--shell-width);
  margin-right: auto;
  margin-left: auto;
  padding: 14px 16px 32px;
}

/* 顶部演示切换胶囊 + 液态丝滑滑块 */
.demo-switcher {
  position: relative;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: 4px;
  padding: 5px;
  margin-bottom: 14px;
  background: rgba(255, 253, 249, 0.94);
  border: 1px solid var(--border);
  border-radius: 999px;
  box-shadow: var(--shadow-soft);
}

.demo-switcher[hidden] {
  display: none;
}

.demo-indicator {
  position: absolute;
  top: 5px;
  left: 5px;
  bottom: 5px;
  border-radius: 999px;
  background: var(--btn-dark);
  box-shadow: 0 5px 14px rgba(56, 46, 40, 0.2);
  pointer-events: none;
  z-index: 0;
  transition: transform 0.29s var(--ease-luxury), width 0.29s var(--ease-luxury);
}

.demo-tab {
  position: relative;
  z-index: 1;
  border: 0;
  background: transparent;
  color: var(--ink-muted);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.03em;
  padding: 6px 8px;
  border-radius: 999px;
  cursor: pointer;
  transition: color 0.18s var(--ease-soft);
}

.demo-tab[aria-selected="true"] {
  color: #FFFDF9;
  font-weight: 500;
}

/* 画报级入场与滚动显影 */
@keyframes editorialFadeUp {
  from {
    opacity: 0;
    transform: translate3d(0, 14px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes coverSettle {
  from {
    transform: scale(1.025);
    opacity: 0.92;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes deltaRise {
  0% {
    opacity: 0;
    transform: translate3d(0, 6px, 0) scale(0.92);
  }
  22% {
    opacity: 1;
    transform: translate3d(0, -4px, 0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate3d(0, -22px, 0) scale(0.98);
  }
}

@keyframes qtyTick {
  0% {
    opacity: 0.35;
    transform: translateY(4px) scale(0.9);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes receiptExtrude {
  0% {
    transform: translate3d(0, -104%, 0);
    opacity: 0.92;
  }
  12% {
    opacity: 1;
  }
  100% {
    transform: translate3d(0, 0, 0);
    opacity: 1;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .reveal-section {
    transition: opacity 0.32s var(--ease-luxury), transform 0.32s var(--ease-luxury);
  }
  .reveal-section.is-pending {
    opacity: 0;
    transform: translate3d(0, 8px, 0);
  }
  .reveal-section.is-visible,
  .reveal-section:focus-within {
    opacity: 1;
    transform: none;
  }
  .reveal-section:focus-within {
    transition: none;
  }
  .hero-card.is-entering .hero-cover-img {
    animation: coverSettle 0.45s var(--ease-luxury) both;
  }
  .hero-card.is-entering .hero-body {
    animation: editorialFadeUp 0.32s var(--ease-luxury) both;
  }
}

/* 杂志 Lookbook 封面卡片 */
.hero-card {
  background: var(--surface-warm);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  margin-bottom: 20px;
}

.hero-cover {
  position: relative;
  height: 220px;
  background: var(--bg-subtle);
  overflow: hidden;
}

.hero-cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-cover picture {
  display: block;
  height: 100%;
}

.hero-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(46, 37, 31, 0.18) 0%,
    rgba(46, 37, 31, 0) 44%,
    rgba(255, 253, 249, 0.96) 100%
  );
  pointer-events: none;
}

.hero-cover-overlay {
  position: absolute;
  top: 12px;
  left: 14px;
  right: 14px;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.cover-vol {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 13px;
  letter-spacing: 0.12em;
  padding: 2px 7px;
  border-radius: 999px;
  color: #FFFDF9;
  background: rgba(44, 35, 29, 0.82);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px;
  border-radius: 999px;
  background: var(--ok-bg);
  color: var(--ok);
  font-size: 11px;
  font-weight: 500;
  box-shadow: 0 2px 10px rgba(46, 37, 31, 0.08);
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 3px rgba(80, 121, 94, 0.2);
}

.hero-body {
  position: relative;
  margin-top: -18px;
  padding: 0 20px 20px;
  text-align: center;
}

.brand-en {
  display: block;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.16em;
  color: var(--accent-deep);
  margin-bottom: 4px;
}

.brand-name {
  font-family: var(--font-serif-cn);
  font-size: 25px;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--ink);
  line-height: 1.35;
}

.hero-divider {
  width: 38px;
  height: 1px;
  margin: 11px auto;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  transform-origin: center;
}

.brand-sub {
  margin: 0 0 13px;
  font-size: 12.5px;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--ink-muted);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 12px;
  font-size: 11.5px;
  color: var(--ink-muted);
  padding-top: 11px;
  border-top: 1px solid rgba(234, 224, 212, 0.78);
}

.copy-wx-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 11px;
  border-radius: 999px;
  border: 1px solid rgba(179, 133, 98, 0.35);
  background: var(--accent-soft);
  color: var(--accent-deep);
  font-size: 11.5px;
  cursor: pointer;
  transition: background-color 0.18s var(--ease-soft), border-color 0.18s ease;
}

.manual-wechat {
  margin: 8px 0 0;
  color: var(--ink-muted);
  font-size: 12px;
  -webkit-user-select: text;
  user-select: text;
}

.config-error {
  margin: 0 0 16px;
  padding: 14px 16px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  background: var(--surface-warm);
  color: var(--ink);
  font-size: 14px;
}

.hero-notice {
  margin-top: 13px;
  padding: 10px 13px;
  border-radius: var(--radius-sm);
  background: var(--bg);
  border: 1px solid rgba(234, 224, 212, 0.8);
  color: var(--ink-muted);
  font-size: 11.5px;
  line-height: 1.65;
  text-align: left;
}

/* 主理人推荐快选区 */
.combo-section {
  margin-bottom: 24px;
}

.combo-scroller {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(156px, 168px);
  gap: 10px;
  overflow-x: auto;
  padding: 3px 2px 10px;
  scrollbar-width: thin;
  scrollbar-color: var(--border-strong) transparent;
}

.combo-card {
  position: relative;
  overflow: hidden;
  text-align: left;
  padding: 12px 13px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: border-color 0.2s var(--ease-soft), background-color 0.2s var(--ease-soft), box-shadow 0.2s var(--ease-luxury);
}

.combo-card[aria-pressed="true"] {
  border-color: var(--accent-deep);
  background: linear-gradient(155deg, #FFFFFF 0%, var(--accent-soft) 100%);
  box-shadow: 0 5px 12px rgba(179, 133, 98, 0.15);
}

.combo-tag {
  align-self: flex-start;
  font-size: 10px;
  letter-spacing: 0.04em;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-deep);
}

.combo-name {
  font-family: var(--font-serif-cn);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink);
  margin-top: 2px;
}

.combo-desc {
  font-size: 11px;
  font-weight: 400;
  color: var(--ink-muted);
  line-height: 1.45;
}

/* 杂志风格章节头 */
.section-block {
  margin-bottom: 24px;
}

.section-head {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 12px;
  padding-inline: 2px;
}

.section-en {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--accent-deep);
  line-height: 1.2;
}

.section-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px;
}

.section-title {
  font-family: var(--font-serif-cn);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--ink);
}

.section-hint {
  font-size: 11.5px;
  font-weight: 400;
  color: var(--ink-soft);
}

.option-stack {
  display: grid;
  gap: 11px;
}

/* 卡片选中：取消廉价扫光，改用高定黄铜书签竖线从中心温柔展开 */
.visual-card,
.option-card {
  position: relative;
  overflow: hidden;
}

.visual-card::before,
.option-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 14%;
  bottom: 14%;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: var(--accent-deep);
  transform: scaleY(0);
  opacity: 0;
  transform-origin: center;
  transition: transform 0.24s var(--ease-luxury), opacity 0.18s var(--ease-soft);
  pointer-events: none;
}

.visual-card.is-selected::before,
.option-card.is-selected::before {
  transform: scaleY(1);
  opacity: 1;
}

/* 基础款图文卡片 */
.visual-card {
  display: flex;
  align-items: stretch;
  gap: 13px;
  width: 100%;
  padding: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  cursor: pointer;
  transition: border-color 0.2s var(--ease-soft), box-shadow 0.2s var(--ease-luxury);
}

.visual-card.is-selected {
  border-color: var(--accent-deep);
  background: linear-gradient(135deg, #FFFFFF 0%, var(--accent-soft) 100%);
  box-shadow: 0 6px 14px rgba(179, 133, 98, 0.14);
}

.visual-card:focus-within,
.option-card:focus-within,
.note-box:focus-within {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

.visual-card > label,
.visual-select {
  display: flex;
  flex: 1 1 auto;
  align-items: stretch;
  min-width: 0;
  min-height: var(--target-size);
  cursor: pointer;
}

.visual-card > label::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1;
}

.visual-card input,
.option-card input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  opacity: 0;
  pointer-events: none;
}

.thumb-btn {
  position: relative;
  z-index: 2;
  flex: 0 0 84px;
  width: 84px;
  height: 84px;
  padding: 0;
  border: 1px solid rgba(214, 198, 181, 0.7);
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg-subtle);
  cursor: zoom-in;
  align-self: center;
  box-shadow: 0 4px 12px rgba(46, 37, 31, 0.08);
}

.thumb-btn picture {
  display: block;
  height: 100%;
}

.thumb-btn:disabled {
  cursor: default;
}

.thumb-img {
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .thumb-img {
    transition: transform 0.25s var(--ease-luxury);
  }
  .thumb-btn:hover .thumb-img {
    transform: scale(1.04);
  }
}

.thumb-zoom-badge {
  position: absolute;
  right: 5px;
  bottom: 5px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(46, 37, 31, 0.75);
  color: #FFFDF9;
  display: grid;
  place-items: center;
  pointer-events: none;
}

.thumb-zoom-badge svg {
  width: 12px;
  height: 12px;
}

/* 规格偏好单选标签卡 */
.spec-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 15px;
  box-shadow: var(--shadow-soft);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
}

.spec-group-label {
  font-family: var(--font-serif-cn);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 8px;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.spec-pill {
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--ink-muted);
  font-size: 12px;
  padding: 6px 12px;
  border-radius: 999px;
  cursor: pointer;
  transition: background-color 0.18s var(--ease-soft), border-color 0.18s var(--ease-soft), color 0.18s ease;
}

.spec-pill[aria-pressed="true"] {
  background: var(--btn-dark);
  border-color: var(--btn-dark);
  color: #FFFDF9;
  font-weight: 500;
}

/* 横向档期日历 */
.date-scroller {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(66px, 72px);
  gap: 8px;
  overflow-x: auto;
  padding: 3px 2px 10px;
  margin-bottom: 10px;
  scrollbar-width: thin;
  scrollbar-color: var(--border-strong) transparent;
}

.date-chip {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 12px;
  padding: 8px 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  cursor: pointer;
  transition: border-color 0.18s var(--ease-soft), background-color 0.18s var(--ease-soft), color 0.18s ease;
}

.date-chip[aria-pressed="true"] {
  border-color: var(--btn-dark);
  background: var(--btn-dark);
  color: #FFFDF9;
}

.date-chip:disabled {
  background: var(--bg-subtle);
  color: var(--ink-soft);
  cursor: not-allowed;
}

.date-week {
  font-size: 10.5px;
}

.date-day {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.15;
}

.date-state {
  font-size: 10px;
  color: var(--ok);
}

.date-chip[aria-pressed="true"] .date-state {
  color: #EBD8C3;
}

.date-chip:disabled .date-state {
  color: var(--ink-soft);
}

.schedule-status {
  margin: 0;
  color: var(--ink-muted);
  font-size: 12px;
}

/* 普通多选/倍率卡片 */
.option-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
  min-height: var(--target-size);
  padding: 14px 15px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  cursor: pointer;
  transition: border-color 0.2s var(--ease-soft), box-shadow 0.2s var(--ease-luxury);
}

.option-card.is-selected {
  border-color: var(--accent-deep);
  background: linear-gradient(180deg, #FFFFFF 0%, var(--accent-soft) 100%);
  box-shadow: 0 5px 12px rgba(179, 133, 98, 0.12);
}

/* 手绘描边对勾动效 */
.check-indicator {
  flex: 0 0 21px;
  width: 21px;
  height: 21px;
  margin-top: 2px;
  border-radius: 50%;
  border: 1.5px solid #9A7F6B;
  display: grid;
  place-items: center;
  background: #FFF;
  transition: background-color 0.18s var(--ease-luxury), border-color 0.18s var(--ease-luxury);
}

.check-indicator.square {
  border-radius: 6px;
}

.option-card.is-selected .check-indicator,
.visual-card.is-selected .check-indicator {
  background: var(--accent-deep);
  border-color: var(--accent-deep);
  color: #FFF;
}

.check-indicator svg {
  width: 12px;
  height: 12px;
}

.check-indicator path {
  stroke-dasharray: 20;
  stroke-dashoffset: 20;
  transition: stroke-dashoffset 0.22s var(--ease-luxury);
}

.option-card.is-selected .check-indicator path,
.visual-card.is-selected .check-indicator path {
  stroke-dashoffset: 0;
}

.option-body {
  flex: 1 1 auto;
  min-inline-size: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.option-top {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 8px;
}

.option-name {
  font-family: var(--font-serif-cn);
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--ink);
}

.badge-tag {
  font-family: var(--font-sans);
  font-size: 10.5px;
  font-weight: 400;
  letter-spacing: 0.04em;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-deep);
  border: 1px solid rgba(179, 133, 98, 0.22);
}

.duration-tag {
  font-size: 11px;
  color: var(--ink-soft);
  font-weight: 400;
}

.option-price {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  color: var(--accent-deep);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  line-height: 1.1;
}

.option-price .unit-sm {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 400;
  color: var(--ink-muted);
  margin-left: 1px;
}

.option-desc {
  margin: 5px 0 0;
  font-size: 12px;
  font-weight: 400;
  color: var(--ink-muted);
  line-height: 1.55;
}

.visual-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-top: 8px;
}

.visual-tags {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

/* 数量步进器卡片 */
.counter-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 12px;
  padding: 14px 15px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  transition: border-color 0.3s var(--ease-soft), background-color 0.3s var(--ease-soft), box-shadow 0.3s var(--ease-luxury);
}

.counter-card.active {
  border-color: var(--accent);
  background: #FFFDF9;
  box-shadow: 0 8px 20px rgba(179, 133, 98, 0.12);
}

.stepper {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--bg);
  padding: 3px;
  border-radius: 999px;
  border: 1px solid var(--border);
}

.step-btn {
  width: var(--target-size);
  border: 0;
  border-radius: 50%;
  background: #FFF;
  color: var(--ink);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: 0 1px 4px rgba(46, 37, 31, 0.08);
  transition: background-color 0.18s ease, opacity 0.18s ease;
}

.step-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  box-shadow: none;
}

.step-btn.plus {
  background: var(--btn-dark);
  color: #FFFDF9;
}

.step-val {
  min-inline-size: 26px;
  text-align: center;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  display: inline-block;
}

@media (prefers-reduced-motion: no-preference) {
  .step-val.tick {
    animation: qtyTick 0.24s var(--ease-luxury);
  }
}

/* 备注输入框 */
.note-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 15px;
  box-shadow: var(--shadow-soft);
  transition: border-color 0.25s ease;
}

.note-box:focus-within {
  border-color: var(--accent);
}

.note-label {
  display: block;
  font-family: var(--font-serif-cn);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--ink);
  margin-bottom: 8px;
}

.note-textarea {
  width: 100%;
  min-height: 62px;
  border: 0;
  resize: vertical;
  background: transparent;
  font-size: 13px;
  font-weight: 400;
  color: var(--ink);
  outline: none;
  line-height: 1.6;
}

.note-textarea::placeholder {
  color: var(--ink-soft);
}

.note-count {
  display: block;
  color: var(--ink-soft);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.reset-row {
  display: flex;
  justify-content: flex-end;
  margin-top: 8px;
}

.text-btn {
  border: 0;
  background: transparent;
  color: var(--ink-soft);
  font-size: 12px;
  padding: 6px 8px;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* 底部结算条 + 香槟金增量浮标 */
.bottom-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 20;
  background: #FFFDF9;
  background: rgba(255, 253, 249, 0.97);
  border-top: 1px solid var(--border);
  box-shadow: var(--shadow-bar);
  padding: 8px 14px 10px;
  padding-bottom: max(12px, env(safe-area-inset-bottom, 0px));
  padding-left: max(14px, env(safe-area-inset-left, 0px));
  padding-right: max(14px, env(safe-area-inset-right, 0px));
}

.bottom-inner {
  width: 100%;
  max-width: calc(var(--shell-width) - 32px);
  margin-right: auto;
  margin-left: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.price-summary {
  position: relative;
  flex: 1 1 144px;
  min-inline-size: 0;
}

.price-delta-host {
  position: absolute;
  left: 4px;
  top: -16px;
  pointer-events: none;
  height: 22px;
  overflow: visible;
}

.price-delta-badge {
  position: absolute;
  left: 0;
  top: 0;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
  color: var(--accent-deep);
  animation: deltaRise 0.52s var(--ease-luxury) forwards;
}

.price-delta-badge.minus {
  color: var(--ok);
}

.price-label {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 6px;
  font-size: 11px;
  color: var(--ink-muted);
}

.detail-trigger {
  border: 0;
  background: transparent;
  color: var(--accent-deep);
  font-size: 11px;
  padding: 0 6px;
  border-radius: var(--radius-sm);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.total-price {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.05;
  font-variant-numeric: tabular-nums;
  transform-origin: left center;
}

.total-price .curr {
  font-size: 18px;
  margin-right: 2px;
  color: var(--accent-deep);
}

.deposit-sub {
  font-size: 11px;
  color: var(--ink-soft);
  margin-top: 1px;
}

.next-step {
  flex: 1 1 100%;
  margin: 0;
  color: var(--ink-muted);
  font-size: 11px;
}

.action-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.btn-secondary, .btn-primary {
  border-radius: 999px;
  padding: 10px 15px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: background-color 0.18s ease, box-shadow 0.18s ease;
}

.btn-secondary {
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--ink);
}

.btn-primary {
  border: 0;
  background: var(--btn-dark);
  color: #FFFDF9;
  box-shadow: 0 4px 10px rgba(56, 46, 40, 0.14);
}

.btn-secondary:not(:disabled):active,
.copy-wx-pill:active,
.close-icon-btn:active {
  background: var(--bg-subtle);
}

.btn-primary:not(:disabled):active {
  background: #4F3E33;
}

.btn-primary:disabled,
.btn-secondary:disabled {
  border: 1px solid var(--border-strong);
  background: var(--bg-subtle);
  color: var(--ink-muted);
  box-shadow: none;
  cursor: not-allowed;
}

/* 原生对话框及不支持 showModal 的浏览器后备样式 */
dialog {
  display: none;
  width: calc(100% - 28px);
  max-width: 444px;
  max-height: calc(100vh - 28px);
  max-height: calc(100dvh - 28px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  opacity: 0;
  overflow: hidden;
  overscroll-behavior: contain;
  transition-property: opacity, display, overlay;
  transition-duration: 0.22s;
  transition-timing-function: var(--ease-luxury);
  transition-behavior: allow-discrete;
}

dialog[open],
dialog.is-fallback-open {
  display: flex;
  flex-direction: column;
}

dialog[open]:not([data-closing]),
dialog.is-fallback-open:not([data-closing]) {
  opacity: 1;
}

body.has-fallback-dialog {
  overflow: hidden;
}

body.has-fallback-dialog::after {
  content: "";
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 50;
  background: rgba(34, 27, 23, 0.54);
  touch-action: none;
}

dialog.is-fallback-open {
  position: fixed;
  top: 14px;
  right: 14px;
  bottom: 14px;
  left: 14px;
  top: calc(14px + env(safe-area-inset-top, 0px));
  bottom: calc(14px + env(safe-area-inset-bottom, 0px));
  z-index: 51;
  height: -webkit-fit-content;
  height: fit-content;
  margin: auto;
}

dialog::backdrop {
  background-color: rgba(34, 27, 23, 0);
  transition-property: background-color, display, overlay;
  transition-duration: 0.22s;
  transition-timing-function: var(--ease-soft);
  transition-behavior: allow-discrete;
}

dialog[open]:not([data-closing])::backdrop {
  background-color: rgba(34, 27, 23, 0.54);
}

@starting-style {
  dialog[open]:not([data-closing]),
  dialog.is-fallback-open:not([data-closing]) {
    opacity: 0;
  }
  dialog[open]:not([data-closing])::backdrop {
    background-color: rgba(34, 27, 23, 0);
  }
}

.modal-sheet {
  background: #FFFDF9;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
}

.modal-sheet > * {
  flex-shrink: 0;
}

.receipt-sheet {
  max-height: calc(100vh - 28px);
  max-height: calc(100dvh - 28px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
}

.receipt-preview {
  flex: 1 1 auto;
  min-height: 58px;
  overflow: auto;
  overscroll-behavior: contain;
  border-radius: var(--radius-md);
  scrollbar-color: var(--border-strong) transparent;
}

.receipt-preview:focus-visible {
  outline-offset: 1px;
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.modal-title {
  font-family: var(--font-serif-cn);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0.05em;
}

.close-icon-btn {
  width: var(--target-size);
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--ink);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background-color 0.18s ease;
}

/* 小票双皮肤切换 */
.receipt-style-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 4px;
  border-radius: 999px;
  background: var(--bg-subtle);
}

.style-tab {
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink-muted);
  font-size: 12px;
  padding: 6px 10px;
  cursor: pointer;
  transition: background-color 0.18s var(--ease-soft), color 0.18s ease;
}

.style-tab[aria-pressed="true"] {
  background: var(--surface);
  color: var(--ink);
  font-weight: 500;
  box-shadow: 0 2px 8px rgba(46, 37, 31, 0.08);
}

/* 高定出纸口 + 真实热敏吐纸舞台 */
.printer-stage {
  position: relative;
  background: linear-gradient(180deg, #ECE4DA 0%, #F4EEE6 100%);
  border-radius: var(--radius-md);
  padding: 16px 14px 16px;
  border: 1px solid rgba(214, 198, 181, 0.7);
}

.printer-bar {
  position: relative;
  z-index: 3;
  height: 14px;
  margin: 0 6px -6px;
  border-radius: 999px;
  background: linear-gradient(180deg, #4B4039 0%, #2C2420 100%);
  box-shadow: 0 4px 10px rgba(46, 37, 31, 0.25), inset 0 1px 0 rgba(255, 240, 224, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
}

.printer-slit {
  width: 86%;
  height: 4px;
  border-radius: 999px;
  background: #14100E;
  box-shadow: 0 1px 0 rgba(214, 184, 148, 0.35);
}

.printer-viewport {
  position: relative;
  z-index: 2;
  overflow: hidden;
  padding: 8px 6px 6px;
}

.receipt-img {
  display: block;
  margin-inline: auto;
  border-radius: 3px;
  box-shadow: 0 14px 32px rgba(46, 37, 31, 0.18);
}

@media (prefers-reduced-motion: no-preference) {
  .receipt-img.is-printing {
    animation: receiptExtrude 1.25s cubic-bezier(0.18, 0.88, 0.28, 1) both;
  }
}

/* 高清款式 Lookbook 灯箱 */
.lightbox-photo-wrap {
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
}

.lightbox-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
}

.lightbox-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.lightbox-price {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 600;
  color: var(--accent-deep);
}

.lightbox-desc {
  margin: 0;
  font-size: 13px;
  font-weight: 400;
  color: var(--ink-muted);
  line-height: 1.65;
}

.modal-inline-status {
  min-block-size: 20px;
  font-size: 12px;
  color: var(--ok);
  text-align: center;
  font-weight: 500;
}

.modal-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.breakdown-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.breakdown-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  padding-bottom: 8px;
  border-bottom: 1px dashed var(--border);
}

.breakdown-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.breakdown-row strong {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  color: var(--accent-deep);
}

.breakdown-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-top: 10px;
  border-top: 1px solid var(--ink);
  font-family: var(--font-serif-cn);
  font-size: 15px;
  font-weight: 500;
}

.breakdown-total strong {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 600;
  color: var(--ink);
}

.manual-copy-box {
  color: var(--ink-muted);
  font-size: 12px;
}

.manual-copy-box summary {
  min-height: var(--target-size);
  padding: 12px 10px;
  border-radius: var(--radius-sm);
  color: var(--accent-deep);
  cursor: pointer;
}

.manual-copy-box textarea {
  display: block;
  width: 100%;
  min-height: var(--target-size);
  padding: 8px 10px;
  resize: vertical;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: #FFFDF9;
  color: var(--ink);
  font-size: 14px;
  -webkit-user-select: text;
  user-select: text;
}

.receipt-preview .manual-copy-box {
  margin: 8px 3px 3px;
}

.image-unavailable {
  display: grid;
  place-items: center;
  min-height: 100%;
  padding: 6px;
  color: var(--ink-muted);
  font-size: 11px;
  background: var(--bg-subtle);
  text-align: center;
}

.hero-cover .image-unavailable {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
}

.lightbox-photo-wrap .image-unavailable {
  min-height: 130px;
}

/* 原生 Popover Toast 区域 */
.toast-region {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  inset: 0;
  pointer-events: none;
  z-index: 40;
}

.toast-card {
  pointer-events: auto;
  position: fixed;
  right: auto;
  bottom: auto;
  inset: auto;
  top: 18px;
  top: max(18px, env(safe-area-inset-top, 0px));
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(56, 46, 40, 0.94);
  color: #FFFDF9;
  border-radius: 999px;
  padding: 3px 4px 3px 14px;
  font-size: 12.5px;
  letter-spacing: 0.02em;
  box-shadow: 0 12px 30px rgba(46, 37, 31, 0.24);
  max-width: 92vw;
  max-width: min(92vw, 420px);
  display: none;
  align-items: center;
  gap: 10px;
  opacity: 0;
  transition-property: opacity, display, overlay;
  transition-duration: 0.2s;
  transition-timing-function: var(--ease-luxury);
  transition-behavior: allow-discrete;
}

.toast-card.is-open {
  display: flex;
  opacity: 1;
}

.toast-card:popover-open {
  display: flex;
  opacity: 1;
}

@starting-style {
  .toast-card.is-open {
    opacity: 0;
  }
  .toast-card:popover-open {
    opacity: 0;
  }
}

.toast-close {
  border: 0;
  background: rgba(255, 255, 255, 0.14);
  color: #FFFDF9;
  border-radius: 50%;
  width: var(--target-size);
  flex: 0 0 var(--target-size);
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 14px;
}

.toast-close:focus {
  outline-color: #FFFDF9;
  outline-offset: -3px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 600px) {
  .ambient-linen,
  .ambient-sunbeams,
  .ambient-frame,
  .botanical-shadow.bottom-left,
  .watermark-line.line-2 {
    display: none;
  }

  .ambient-backdrop {
    background:
      radial-gradient(ellipse 84% 54% at 100% 0%, rgba(215, 177, 148, 0.36), transparent 80%),
      linear-gradient(155deg, #F3ECE2 0%, #E8DCCE 100%);
  }

  .botanical-shadow.top-right {
    width: 160px;
    filter: none;
    color: rgba(88, 66, 48, 0.075);
  }

  .watermark-line {
    font-size: 68px;
    color: rgba(138, 102, 72, 0.065);
  }

  .ambient-watermark {
    padding-top: 4vh;
  }

  .app-shell {
    padding: 10px 14px 20px;
  }

  .demo-switcher {
    margin-bottom: 10px;
  }

  .hero-card {
    margin-bottom: 16px;
  }

  .hero-cover {
    height: 138px;
    height: clamp(124px, 37vw, 180px);
  }

  .hero-body {
    margin-top: -13px;
    padding: 0 14px 12px;
  }

  .brand-name {
    font-size: 22px;
    letter-spacing: 0.07em;
  }

  .brand-en {
    margin-bottom: 2px;
  }

  .hero-divider {
    margin: 7px auto;
  }

  .brand-sub {
    margin-bottom: 8px;
  }

  .hero-meta {
    gap: 4px 9px;
    padding-top: 4px;
  }

  .hero-notice {
    margin-top: 5px;
    padding: 7px 9px;
  }

  .combo-section {
    margin-bottom: 16px;
  }

  .combo-card {
    padding: 9px 11px;
  }

  .section-head {
    margin-bottom: 8px;
  }

  .section-row {
    column-gap: 8px;
    row-gap: 2px;
  }

  .section-title {
    font-size: 17px;
  }

  .action-group {
    gap: 6px;
  }

  .action-group .btn-primary,
  .action-group .btn-secondary {
    padding-inline: 10px;
    letter-spacing: 0.01em;
  }
}

@media (max-width: 350px) {
  :root {
    --footer-space: 12rem;
  }

  .action-group {
    flex: 1 1 100%;
  }

  .action-group button {
    flex: 1;
  }
}

@media (max-height: 480px) {
  .receipt-sheet {
    gap: 7px;
    padding: 11px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }

  dialog::backdrop {
    transition: none;
  }

  .price-delta-host {
    display: none;
  }
}

.clipboard-helper {
  position: fixed;
  top: 0;
  left: 0;
  width: 1px;
  height: 1px;
  padding: 0;
  border: 0;
  opacity: 0;
  pointer-events: none;
}

.is-disabled .option-name,
.is-disabled .option-price {
  color: var(--ink-muted);
}

.is-disabled.option-card {
  cursor: not-allowed;
}
