/* Jacqui M 演示站
   色板取自她的作品：复古蓝白瓷盘（钴蓝）、原生花（班克木金、桉叶绿），底色为冷调瓷白。
   唯一的“大胆”之处是右侧的询价卡：双线钴蓝边，像瓷盘边沿；其他部分保持安静。 */
@font-face { font-family: "Petrona"; src: url("../fonts/petrona-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Petrona"; src: url("../fonts/petrona-latin-wght-italic.woff2") format("woff2"); font-weight: 100 900; font-style: italic; font-display: swap; }
@font-face { font-family: "Hanken Grotesk"; src: url("../fonts/hanken-grotesk-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --porcelain: #f5f7fa;
  --white: #ffffff;
  --cobalt: #27408b;
  --cobalt-soft: #dfe5f3;
  --ink: #1c2340;
  --muted: #545c78;
  --gum: #6e8b79;
  --banksia: #c99a3b;
  --serif: "Petrona", Georgia, serif;
  --sans: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --step--1: 0.875rem;
  --step-0: 1rem;
  --step-1: 1.25rem;
  --step-2: 1.6rem;
  --step-3: 2.2rem;
  --step-4: clamp(2.4rem, 4.6vw, 3.6rem);
  --gap: clamp(1rem, 3vw, 2rem);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; }
body { margin: 0; background: var(--porcelain); color: var(--ink); font: 400 var(--step-0)/1.55 var(--sans); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--cobalt); text-underline-offset: 0.18em; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.12; margin: 0 0 0.6em; letter-spacing: -0.01em; }
p { margin: 0 0 1em; max-width: 64ch; }
:focus-visible { outline: 3px solid var(--banksia); outline-offset: 2px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: 0.6rem 1rem; z-index: 50; }
.skip:focus { left: 0.5rem; top: 0.5rem; }

/* 按钮 */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.4em; min-height: 2.9rem; padding: 0.65rem 1.2rem; border: 2px solid var(--cobalt); border-radius: 999px; background: var(--cobalt); color: #fff; font: 600 var(--step-0)/1.2 var(--sans); text-decoration: none; cursor: pointer; }
.btn:hover { background: #1d3170; border-color: #1d3170; }
.btn-ghost { background: transparent; color: var(--cobalt); }
.btn-ghost:hover { background: var(--cobalt-soft); }
.btn-small { min-height: 2.4rem; padding: 0.4rem 1rem; font-size: var(--step--1); }

/* 演示说明条 */
.demo-note { background: var(--ink); color: #e8ebf4; font-size: var(--step--1); padding: 0.5rem var(--gap); }
.demo-note p { margin: 0 auto; max-width: 75rem; }
.demo-note a { color: #fff; }

/* 顶栏 */
.top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: var(--gap); padding: 0.7rem var(--gap); background: rgba(245, 247, 250, 0.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--cobalt-soft); }
.mark { display: flex; flex-direction: column; text-decoration: none; color: var(--ink); margin-right: auto; }
.mark-name { font: italic 500 var(--step-2)/1 var(--serif); color: var(--cobalt); }
.mark-sub { font-size: var(--step--1); color: var(--muted); }
.nav { display: flex; gap: 1.4rem; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 500; }
.nav a:hover { color: var(--cobalt); text-decoration: underline; }

/* 首屏：照片 + 场地问题，选了马上在下面看到她在那里的作品 */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(1.5rem, 4vw, 4rem); align-items: center; max-width: 80rem; margin: 0 auto; padding: clamp(1.5rem, 4vw, 3.5rem) var(--gap); }
.hero-photo { margin: 0; position: relative; }
.hero-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 0 0 50% 50% / 0 0 18% 18%; }
.hero-photo figcaption { margin-top: 0.6rem; font-size: var(--step--1); color: var(--muted); }
.hero h1 { font-size: var(--step-4); max-width: 15ch; }
.lede { font-size: var(--step-1); color: var(--muted); max-width: 40ch; }
.where { border: 0; padding: 0; margin: 1.6rem 0 0; }
.where legend { font: italic 500 var(--step-2)/1.2 var(--serif); color: var(--cobalt); margin-bottom: 0.8rem; padding: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chip { min-height: 2.6rem; padding: 0.5rem 1rem; border: 1.5px solid var(--cobalt); border-radius: 999px; background: var(--white); color: var(--cobalt); font: 500 var(--step-0)/1.2 var(--sans); cursor: pointer; }
.chip[aria-pressed="true"], .chip[aria-checked="true"] { background: var(--cobalt); color: #fff; }
.chip small { font-weight: 400; opacity: 0.8; }
.where-result { margin-top: 1.2rem; min-height: 7.5rem; }
.where-result p { margin: 0 0 0.7rem; }
.strip { display: flex; gap: 0.5rem; list-style: none; margin: 0 0 0.8rem; padding: 0; overflow-x: auto; scroll-snap-type: x mandatory; }
.strip li { flex: 0 0 auto; scroll-snap-align: start; }
.strip button { padding: 0; border: 0; background: none; cursor: pointer; text-align: left; color: var(--ink); }
.strip img { width: 6.5rem; height: 8rem; object-fit: cover; border-radius: 6px; }
.strip span { display: block; width: 6.5rem; margin-top: 0.3rem; font: italic 400 var(--step--1)/1.2 var(--serif); }

/* 询价规划：左边选择，右边询价卡（桌面）／底部抽屉（手机） */
.plan { display: grid; grid-template-columns: minmax(0, 1fr) minmax(19rem, 25rem); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; max-width: 80rem; margin: 0 auto; padding: clamp(2rem, 5vw, 4rem) var(--gap); border-top: 1px solid var(--cobalt-soft); }
.plan-intro { grid-column: 1 / -1; }
.plan-intro h2 { font-size: var(--step-3); }
.group { border: 0; margin: 0 0 2rem; padding: 0; }
.group legend { font: 600 var(--step-1)/1.3 var(--sans); padding: 0; margin-bottom: 0.7rem; }
.hint { color: var(--muted); font-size: var(--step--1); margin-top: -0.3rem; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { display: grid; gap: 0.3rem; margin-bottom: 1rem; }
.field span { font-weight: 500; font-size: var(--step--1); }
.field input, .field textarea { width: 100%; min-height: 2.9rem; padding: 0.6rem 0.75rem; border: 1.5px solid #b8c1d9; border-radius: 8px; background: var(--white); color: var(--ink); font: inherit; }
.field input:focus, .field textarea:focus { border-color: var(--cobalt); }

.styles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.75rem; }
.style { position: relative; padding: 0; border: 2px solid transparent; border-radius: 10px; background: var(--white); cursor: pointer; text-align: left; overflow: hidden; color: var(--ink); }
.style img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.style span { display: block; padding: 0.5rem 0.6rem 0.6rem; font: 500 var(--step--1)/1.25 var(--sans); }
.style[aria-pressed="true"] { border-color: var(--cobalt); }
.style[aria-pressed="true"]::after { content: "✓"; position: absolute; top: 0.4rem; right: 0.4rem; width: 1.6rem; height: 1.6rem; border-radius: 50%; background: var(--cobalt); color: #fff; display: grid; place-items: center; font-size: 0.9rem; }

.items { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.item { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 3.2rem; padding: 0.4rem 0.4rem 0.4rem 0.9rem; border-radius: 10px; background: var(--white); }
.item.on { box-shadow: inset 0 0 0 1.5px var(--cobalt); }
.item-label { font-weight: 500; }
.stepper { display: flex; align-items: center; gap: 0.25rem; }
.stepper button, .toggle { min-width: 2.6rem; min-height: 2.6rem; border: 1.5px solid var(--cobalt); border-radius: 999px; background: var(--white); color: var(--cobalt); font: 600 1.1rem/1 var(--sans); cursor: pointer; }
.stepper button:disabled { opacity: 0.35; cursor: default; }
.stepper output { min-width: 2rem; text-align: center; font-weight: 600; font-variant-numeric: tabular-nums; }
.toggle { padding: 0 1rem; font-size: var(--step--1); }
.toggle[aria-pressed="true"] { background: var(--cobalt); color: #fff; }

/* 询价卡：瓷盘边 */
.docket { position: sticky; top: 5.5rem; background: var(--white); border: 3px double var(--cobalt); outline: 1px solid var(--cobalt); outline-offset: 5px; border-radius: 18px; padding: 1.4rem 1.3rem 1.2rem; margin: 6px; }
.docket-toggle { display: none; }
.docket-title { font: italic 500 var(--step-2)/1.15 var(--serif); color: var(--cobalt); margin-bottom: 0.9rem; }
.docket-photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.4rem; margin-bottom: 0.9rem; }
.docket-photos:empty { display: none; }
.docket-photos img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 6px; }
.docket-lines { margin: 0 0 1rem; display: grid; grid-template-columns: auto 1fr; gap: 0.35rem 0.9rem; font-size: var(--step--1); }
.docket-lines dt { color: var(--muted); }
.docket-lines dd { margin: 0; font-weight: 500; }
.docket-lines .fresh { animation: fresh 1.2s ease-out; }
@keyframes fresh { from { background: #f3e6c8; } to { background: transparent; } }
.docket-empty { color: var(--muted); font-size: var(--step--1); }
.docket-actions { display: grid; gap: 0.5rem; }
.docket-note { font-size: var(--step--1); color: var(--muted); margin: 0.8rem 0 0.4rem; }
.docket-preview summary { cursor: pointer; font-size: var(--step--1); color: var(--cobalt); }
.docket-preview pre { white-space: pre-wrap; font: 400 var(--step--1)/1.5 var(--sans); background: var(--porcelain); padding: 0.8rem; border-radius: 8px; max-height: 18rem; overflow: auto; }

/* 真实婚礼 */
.weddings { max-width: 80rem; margin: 0 auto; padding: clamp(2rem, 5vw, 4rem) var(--gap); border-top: 1px solid var(--cobalt-soft); }
.section-head h2 { font-size: var(--step-3); }
.filter { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0 0 1.5rem; }
.grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr)); gap: 1.4rem 1rem; }
.grid li[hidden] { display: none; }
.card { display: block; width: 100%; padding: 0; border: 0; background: none; text-align: left; cursor: pointer; color: var(--ink); }
.card img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 10px; }
.card-couple { display: block; margin-top: 0.55rem; font: italic 500 var(--step-1)/1.2 var(--serif); }
.card-venue { display: block; font-size: var(--step--1); color: var(--muted); }
.card:hover img { filter: saturate(1.08); }

/* 评价 */
.words { max-width: 80rem; margin: 0 auto; padding: clamp(2rem, 5vw, 4rem) var(--gap); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); border-top: 1px solid var(--cobalt-soft); }
.quote { margin: 0; }
.quote p { font: italic 400 var(--step-1)/1.45 var(--serif); }
.quote footer { font-size: var(--step--1); color: var(--muted); }

/* 关于 */
.about { max-width: 80rem; margin: 0 auto; padding: clamp(2rem, 5vw, 4rem) var(--gap); display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(1.5rem, 4vw, 4rem); align-items: center; border-top: 1px solid var(--cobalt-soft); }
.about-photo { margin: 0; }
.about-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 50% 50% 0 0 / 18% 18% 0 0; }
.about h2 { font-size: var(--step-3); }
.pricing:empty { display: none; }
.contact { list-style: none; padding: 0; margin: 1.2rem 0 0; display: grid; gap: 0.4rem; font-weight: 500; }

/* 作品弹窗 */
.lightbox { width: min(70rem, 96vw); max-height: 92vh; border: 0; border-radius: 16px; padding: 0; background: var(--white); color: var(--ink); }
.lightbox::backdrop { background: rgba(28, 35, 64, 0.72); }
.lb-head { display: grid; grid-template-columns: 1fr auto; align-items: start; gap: 0 1rem; padding: 1.2rem 1.4rem 0.6rem; }
.lb-head h2 { font: italic 500 var(--step-3)/1.1 var(--serif); margin: 0; }
.lb-head p { grid-column: 1; margin: 0.2rem 0 0; color: var(--muted); }
.lb-close { grid-row: 1 / span 2; grid-column: 2; min-height: 2.6rem; padding: 0 1rem; border: 1.5px solid var(--cobalt); border-radius: 999px; background: var(--white); color: var(--cobalt); font: 600 var(--step--1) var(--sans); cursor: pointer; }
.lb-photos { display: flex; gap: 0.6rem; overflow-x: auto; scroll-snap-type: x mandatory; padding: 0.6rem 1.4rem; }
.lb-photos img { flex: 0 0 auto; height: min(62vh, 34rem); width: auto; border-radius: 8px; scroll-snap-align: center; }
.lb-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; padding: 0.6rem 1.4rem 1.3rem; }

.foot { max-width: 80rem; margin: 0 auto; padding: 2rem var(--gap) 3rem; border-top: 1px solid var(--cobalt-soft); font-size: var(--step--1); color: var(--muted); }

/* 平板与手机 */
@media (max-width: 960px) {
  .nav { display: none; }
  .hero { grid-template-columns: minmax(0, 1fr); padding-top: 1rem; }
  .hero-text, .where-result { min-width: 0; }
  .hero-photo img { aspect-ratio: 4 / 3; border-radius: 10px; object-position: center 45%; }
  .hero h1 { max-width: 20ch; }
  .plan { grid-template-columns: minmax(0, 1fr); padding-bottom: 6rem; }
  .styles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .words { grid-template-columns: 1fr; }
  .about { grid-template-columns: 1fr; }
  .about-photo img { aspect-ratio: 5 / 4; border-radius: 10px; }
  /* 手机：询价卡变成底部抽屉，收起时一行显示已选内容，选择和结果始终同屏 */
  .docket { position: fixed; left: 0; right: 0; bottom: 0; top: auto; z-index: 30; margin: 0; padding: 0; border: 0; border-top: 3px double var(--cobalt); outline: 0; border-radius: 16px 16px 0 0; box-shadow: 0 -6px 24px rgba(28, 35, 64, 0.18); max-height: 82vh; display: flex; flex-direction: column; }
  .docket-toggle { display: flex; flex-direction: column; align-items: flex-start; gap: 0.1rem; width: 100%; min-height: 3.6rem; padding: 0.6rem 1.1rem; border: 0; background: none; color: var(--ink); text-align: left; cursor: pointer; }
  .docket-toggle::after { content: ""; position: absolute; right: 1.2rem; top: 1.3rem; width: 0.7rem; height: 0.7rem; border-right: 2px solid var(--cobalt); border-bottom: 2px solid var(--cobalt); transform: rotate(-135deg); transition: transform 0.2s; }
  .docket-toggle[aria-expanded="true"]::after { transform: rotate(45deg); top: 1rem; }
  .docket-count { font: italic 600 var(--step-1)/1.2 var(--serif); color: var(--cobalt); }
  .docket-sum { font-size: var(--step--1); color: var(--muted); padding-right: 2rem; }
  .docket-body { display: none; overflow-y: auto; padding: 0 1.1rem 1.2rem; }
  .docket.open .docket-body { display: block; }
  .docket-title { display: none; }
}
@media (max-width: 520px) {
  .demo-note { font-size: 0.78rem; padding: 0.4rem 1rem; }
  .hero h1 { font-size: 2.05rem; }
  .lede { font-size: var(--step-0); }
  .where { margin-top: 1rem; }
  .where legend { font-size: var(--step-1); }
  .chip { min-height: 2.5rem; padding: 0.4rem 0.85rem; }
  .row { grid-template-columns: 1fr; }
  .mark-sub { display: none; }
  .btn-small { min-height: 2.75rem; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem 0.7rem; }
  .card-couple { font-size: var(--step-0); }
  .lb-photos img { height: 52vh; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .docket-lines .fresh { animation: none; }
  .docket-toggle::after { transition: none; }
}

/* ---------- 背景装饰：散落花瓣（用户 2026-10-15 先选桉叶，看过对比后改选花瓣）----------
   粉桃色花瓣落在首屏、规划、作品、关于四处边角，像仪式结束后的通道；很淡，不挡内容、不接收点击 */
.hero, .plan, .weddings, .about { position: relative; isolation: isolate; }
main { overflow-x: clip; } /* 花瓣有一部分伸出栏目边界，在屏幕边缘裁掉、不产生横向滚动；写在 body 上会被浏览器转给视口而失效。clip 不影响询价卡吸顶 */
[data-deco="petals"] .hero::before, [data-deco="petals"] .plan::before, [data-deco="petals"] .weddings::before, [data-deco="petals"] .about::before {
  content: ""; position: absolute; z-index: -1; pointer-events: none; background: url("../img/deco-petals.svg") no-repeat center / contain; opacity: 0.55;
}
[data-deco="petals"] .hero::before { width: 480px; height: 480px; right: -150px; top: -70px; }
[data-deco="petals"] .plan::before { width: 400px; height: 400px; left: -170px; top: 35%; transform: rotate(140deg); }
[data-deco="petals"] .weddings::before { width: 340px; height: 340px; right: -150px; top: -40px; transform: rotate(60deg); opacity: 0.45; }
[data-deco="petals"] .about::before { width: 360px; height: 360px; right: 0; bottom: -90px; transform: rotate(200deg); opacity: 0.45; }
@media (max-width: 960px) {
  [data-deco="petals"] .hero::before { width: 220px; height: 220px; right: -150px; top: 52%; opacity: 0.35; }
  [data-deco="petals"] .plan::before, [data-deco="petals"] .about::before { display: none; }
}
