/* Puriluna Hair & Body Care — landing page */

:root {
  --night: #1d1a4a;
  --night-2: #2c2766;
  --blue: #2457d6;
  --blue-deep: #142f8f;
  --blue-soft: #e5edff;
  --lavender: #b8a6ec;
  --lilac: #ece6fb;
  --mist: #f6f3fd;
  --cream: #fffaf6;
  --ink: #26213f;
  --ink-soft: #5d5578;
  --rose: #e8577c;
  --rose-soft: #fde6ec;
  --gold: #c98a14;
  --gold-soft: #fbf0d6;
  --line: rgba(29, 26, 74, .12);
  --radius: 18px;
  --shadow: 0 18px 50px -22px rgba(29, 26, 74, .4);
  --serif: "Noto Serif TC", "Songti TC", serif;
  --sans: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
  --latin: "Cormorant Garamond", Georgia, serif;
  --nav-h: 60px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--sans); font-size: 16px; line-height: 1.75; color: var(--ink); background: var(--cream); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, video { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
a { color: inherit; }
button { font: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 700; line-height: 1.35; margin: 0; letter-spacing: .02em; }
p { margin: 0 0 .8em; }
.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 32px); }
.eyebrow { font-family: var(--latin); font-style: italic; font-size: 1.05rem; letter-spacing: .08em; color: #8f73dc; margin-bottom: .4em; }

/* ---------- buttons ---------- */
.btn {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: .4em;
  min-height: 48px; padding: .7em 1.5em; border: 0; border-radius: 999px;
  font: 700 1rem/1.2 var(--sans); letter-spacing: .04em; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .2s var(--ease), box-shadow .2s, background .2s, color .2s;
}
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .6; cursor: progress; }
.btn-sm { min-height: 42px; padding: .55em 1.1em; font-size: .9rem; }
.btn:focus-visible, a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--lavender); outline-offset: 3px; }
.btn-primary { color: #fff; background: linear-gradient(120deg, #4a5fe0, #9a63d9 55%, #e8779b); box-shadow: 0 10px 26px -10px rgba(90, 80, 220, .75); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -10px rgba(90, 80, 220, .9); }
.btn-blue { color: #fff; background: var(--blue); }
.btn-blue:hover { background: var(--blue-deep); transform: translateY(-2px); }
.btn-rose { color: #fff; background: var(--rose); }
.btn-rose:hover { background: #d84368; transform: translateY(-2px); }
.btn-ghost { color: #fff; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .6); backdrop-filter: blur(6px); }
.btn-ghost:hover { background: rgba(255, 255, 255, .26); }
.btn-outline { color: var(--night); background: #fff; border: 1.5px solid var(--night); }
.btn-outline:hover { background: var(--night); color: #fff; }
.btn-light { color: var(--night); background: #fff; }
.btn-light:hover { transform: translateY(-2px); }
.btn-block { width: 100%; }
/* 光澤掃過 */
.btn-shine::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 40%; left: -60%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .55), transparent);
  transform: skewX(-20deg); animation: shine 3.2s ease-in-out infinite;
}
@keyframes shine { 0%, 55% { left: -60%; } 100% { left: 130%; } }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }
.link-btn { padding: 0; border: 0; background: none; color: #6f58d6; font-weight: 700; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- top bars ---------- */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 80; background: linear-gradient(90deg, #4a5fe0, #e8779b); transform-origin: 0 50%; transform: scaleX(0); }
.announce { background: var(--night); color: #f3edff; text-align: center; font-size: .85rem; letter-spacing: .06em; padding: 7px 16px; }
.nav {
  position: sticky; top: 0; z-index: 40; height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 0 max(16px, calc((100% - 1160px) / 2));
  background: rgba(255, 250, 246, .88); backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--night); }
.brand span { font-family: var(--latin); font-size: 1.6rem; font-weight: 600; letter-spacing: .04em; }
.brand-moon { width: 26px; height: 26px; color: #7b6be0; }
.nav-links { display: none; gap: 26px; font-size: .95rem; }
.nav-links a { text-decoration: none; color: var(--ink-soft); }
.nav-links a:hover { color: var(--night); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav-buy { display: none; }
.cart-btn { position: relative; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--night); cursor: pointer; display: grid; place-items: center; }
.cart-btn svg { width: 22px; height: 22px; }
.cart-count { position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--rose); color: #fff; font-size: .75rem; font-weight: 700; display: grid; place-items: center; }
/* 會員與訂單選單(帳號按鈕)。裝在商店上時,內容依登入身分由 Django 產生 */
.acct { position: relative; }
.acct-btn.on::after { content: ""; position: absolute; top: 2px; right: 2px; width: 9px; height: 9px; border-radius: 50%; background: #3fb27f; border: 2px solid #fff; }
.acct-menu { position: absolute; top: calc(100% + 10px); right: -54px; z-index: 60; width: min(260px, calc(100vw - 24px)); padding: 8px; border-radius: 16px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); max-height: calc(100dvh - 90px); overflow-y: auto; overscroll-behavior: contain; }
.acct-menu[hidden] { display: none; }
.acct-menu a, .acct-menu button { display: flex; align-items: center; width: 100%; min-height: 44px; padding: 0 12px; border: 0; border-radius: 10px; background: none; color: var(--night); font: inherit; font-size: .95rem; text-align: left; text-decoration: none; cursor: pointer; }
.acct-menu a:hover, .acct-menu button:hover { background: var(--mist); }
.acct-menu form { margin: 0; }
.acct-hi { padding: 6px 12px 8px; font-size: .85rem; color: var(--ink-soft); }
.acct-sep { margin: 6px 4px; border: 0; border-top: 1px solid var(--line); }
.acct-label { padding: 4px 12px 2px; font-size: .78rem; font-weight: 700; letter-spacing: .1em; color: #8f73dc; }
.cart-count[hidden], [data-buy-now][hidden], [data-add][hidden], [data-price-row][hidden] { display: none; }
.cart-btn.bump { animation: bump .5s var(--ease); }
@keyframes bump { 35% { transform: scale(1.22) rotate(-6deg); } 70% { transform: scale(.95); } }
.fly { position: fixed; z-index: 90; width: 56px; height: 56px; object-fit: contain; pointer-events: none; filter: drop-shadow(0 6px 12px rgba(0, 0, 0, .25)); }

/* ---------- SECTION 01 hero ---------- */
.hero { position: relative; overflow: hidden; isolation: isolate; color: #fff; padding: 40px 0 72px; background: linear-gradient(115deg, #0f1e6b 0%, #2a3aa8 30%, #6a52c4 58%, #c675b6 82%, #f3a6b9 100%); }
.sky { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
/* 星空影片用 screen 疊在漸層上:黑色部分會消失,只留星光與瓶身的亮部,不蓋掉原本的配色。
   左邊是文案,用遮罩把影片壓淡,字才看得清楚。 */
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; mix-blend-mode: screen; transition: opacity 1.6s ease;
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, .9) 0%, rgba(0, 0, 0, .5) 40%, rgba(0, 0, 0, .15) 60%); mask-image: linear-gradient(180deg, rgba(0, 0, 0, .9) 0%, rgba(0, 0, 0, .5) 40%, rgba(0, 0, 0, .15) 60%); }
.hero-video.on { opacity: .6; }
.moon { position: absolute; top: 8%; right: 10%; width: 120px; height: 120px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #fff, #fdf2ff 45%, rgba(255, 240, 255, .2) 70%, transparent 72%); box-shadow: 0 0 80px 20px rgba(255, 230, 255, .35); animation: moon 8s ease-in-out infinite; }
@keyframes moon { 50% { box-shadow: 0 0 110px 30px rgba(255, 230, 255, .5); } }
.stars, .stars-2 { position: absolute; inset: 0; background-repeat: repeat; }
.stars { background-image:
  radial-gradient(1.5px 1.5px at 20px 30px, #fff, transparent), radial-gradient(1px 1px at 120px 80px, #fff, transparent),
  radial-gradient(1.5px 1.5px at 220px 40px, #ffe9a8, transparent), radial-gradient(1px 1px at 300px 140px, #fff, transparent),
  radial-gradient(2px 2px at 60px 180px, #fff, transparent), radial-gradient(1px 1px at 180px 220px, #fff, transparent);
  background-size: 340px 260px; animation: twinkle 4s ease-in-out infinite; }
.stars-2 { background-size: 420px 300px; background-position: 80px 60px; opacity: .7; animation-delay: 2s; }
@keyframes twinkle { 50% { opacity: .35; } }
.cloud { position: absolute; bottom: -40px; width: 60%; height: 160px; border-radius: 50%; background: radial-gradient(ellipse at center, rgba(255, 255, 255, .55), rgba(255, 255, 255, 0) 70%); filter: blur(6px); animation: drift 18s ease-in-out infinite alternate; }
.cloud-1 { left: -10%; }
.cloud-2 { right: -15%; bottom: -20px; animation-duration: 24s; opacity: .8; }
@keyframes drift { to { transform: translateX(8%); } }
.hero-inner { display: grid; gap: 8px; align-items: center; }
.hero .eyebrow { color: #e9e2ff; }
.hero h1 { font-size: clamp(1.9rem, 7vw, 3.3rem); text-shadow: 0 2px 24px rgba(15, 20, 80, .45); }
.hero h1 .line { display: block; }
.hero-sub { margin-top: .7em; font-size: clamp(1rem, 2.8vw, 1.15rem); color: #f1ecff; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.chips { list-style: none; padding: 0; margin: 18px 0 0; display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: .85rem; color: #f0eaff; }
.chips li::before { content: "✦ "; color: #ffd98a; }
/* 入場:標題逐行浮上 */
.hero-copy > * { opacity: 0; transform: translateY(18px); }
body.ready .hero-copy > * { animation: rise .9s var(--ease) forwards; }
body.ready .hero-copy > :nth-child(2) { animation-delay: .12s; }
body.ready .hero-copy > :nth-child(3) { animation-delay: .24s; }
body.ready .hero-copy > :nth-child(4) { animation-delay: .36s; }
body.ready .hero-copy > :nth-child(5) { animation-delay: .48s; }
@keyframes rise { to { opacity: 1; transform: none; } }

.hero-stage { position: relative; height: 340px; transform: translateY(var(--py, 0)); order: -1; }
.glow { position: absolute; left: 50%; bottom: 6%; width: 80%; height: 40px; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(ellipse, rgba(255, 255, 255, .55), transparent 70%); filter: blur(4px); }
/* 瓶身用「高度」排版,--s 是實際瓶高比例(見 config.js 的 bottles),大小才會跟實物一致。
   後排(b1、b3)只往上墊一點,不另外縮小,免得看起來比實物小。 */
.bottle { position: absolute; bottom: 12%; width: auto; max-width: none; height: calc(66% * var(--s, 1)); filter: drop-shadow(0 18px 24px rgba(10, 10, 60, .35)); opacity: 0; }
.b1 { left: 12%; bottom: 15%; }
.b2 { left: 27%; }
.b3 { right: 26%; bottom: 15%; }
.b4 { right: 11%; }
body.ready .bottle { animation: enter 1s var(--ease) forwards, float 6s ease-in-out 1s infinite; }
body.ready .b1 { animation-delay: .15s, 1.15s; }
body.ready .b2 { animation-delay: .05s, 1.6s; }
body.ready .b3 { animation-delay: .25s, 1.3s; }
body.ready .b4 { animation-delay: .1s, 1.9s; }
@keyframes enter { from { opacity: 0; transform: translateY(60px) scale(.92); } to { opacity: 1; transform: none; } }
@keyframes float { 0%, 100% { opacity: 1; transform: translateY(0) rotate(0); } 50% { opacity: 1; transform: translateY(-12px) rotate(-1.2deg); } }
.stage-label { position: absolute; bottom: 0; font-size: .7rem; letter-spacing: .14em; color: rgba(255, 255, 255, .85); line-height: 1.4; }
.stage-label b { font-family: var(--serif); letter-spacing: .04em; font-size: .85rem; color: #fff; }
.l-hair { left: 14%; }
.l-body { right: 12%; text-align: right; }
.scroll-cue { position: absolute; left: 50%; bottom: 14px; width: 26px; height: 42px; margin-left: -13px; border: 2px solid rgba(255, 255, 255, .7); border-radius: 14px; }
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: #fff; animation: cue 1.6s ease-in-out infinite; }
@keyframes cue { 0% { transform: translateY(0); opacity: 1; } 80% { transform: translateY(14px); opacity: 0; } 100% { opacity: 0; } }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0ms); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- section heads ---------- */
section { padding: 72px 0; }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 40px; }
.section-head h2 { font-size: clamp(1.6rem, 5vw, 2.4rem); color: var(--night); margin-bottom: .45em; }
.section-head p:not(.eyebrow) { color: var(--ink-soft); }

/* ---------- SECTION 02 ritual ---------- */
.ritual { background: linear-gradient(180deg, var(--mist), var(--cream)); }
.ritual-grid { display: grid; gap: 36px; align-items: center; }
.phone { position: relative; width: min(300px, 78%); margin: 0 auto; border-radius: 34px; padding: 10px; background: #0f0d26; box-shadow: 0 40px 70px -30px rgba(29, 26, 74, .7); }
.phone .clip { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 26px; background: #222; }
.clip-tag { position: absolute; top: 22px; left: 22px; padding: 4px 10px; border-radius: 999px; background: rgba(0, 0, 0, .55); color: #fff; font-size: .75rem; }
.ritual h2 { font-size: clamp(1.5rem, 4.6vw, 2.2rem); color: var(--night); margin-bottom: .6em; }
.ritual-text > p { color: var(--ink-soft); }
.pains { list-style: none; padding: 0; margin: 20px 0; display: flex; flex-wrap: wrap; gap: 10px; }
.bubble { padding: 9px 16px; border-radius: 22px 22px 22px 6px; background: #3b3654; color: #fff; font-size: .9rem; box-shadow: 0 8px 18px -10px rgba(0, 0, 0, .5); }
.bubble.in { animation: bob 5s ease-in-out infinite; }
.bubble:nth-child(2) { transition-delay: 80ms; } .bubble:nth-child(2).in { animation-delay: .6s; }
.bubble:nth-child(3) { transition-delay: 160ms; } .bubble:nth-child(3).in { animation-delay: 1.2s; }
.bubble:nth-child(4) { transition-delay: 240ms; } .bubble:nth-child(4).in { animation-delay: 1.8s; }
.bubble:nth-child(5) { transition-delay: 320ms; } .bubble:nth-child(5).in { animation-delay: 2.4s; }
@keyframes bob { 50% { transform: translateY(-5px); } }
.answers { padding: 20px 22px; border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); margin-bottom: 20px; }
.answer-title { font-family: var(--serif); font-weight: 700; color: var(--night); }
.answers ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.answers li { display: grid; grid-template-columns: 32px 1fr; gap: 10px; align-items: start; color: var(--ink-soft); font-size: .95rem; }
.answers b { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; color: #fff; font-family: var(--serif); background: linear-gradient(135deg, #4a5fe0, #e8779b); }

/* ---------- SECTION 03 products ---------- */
.products { background: var(--cream); }
.duo { display: grid; gap: 28px; }
.pcard { display: flex; flex-direction: column; overflow: hidden; border-radius: 26px; background: #fff; box-shadow: var(--shadow); }
.pcard-media { position: relative; display: block; width: 100%; padding: 0; border: 0; background: #000; cursor: zoom-in; }
.pcard-media .clip { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform .8s var(--ease); }
.pcard-body-care .pcard-media .clip { object-position: 50% 60%; }
.pcard-hair .pcard-media .clip { object-position: 50% 35%; }
.pcard-media:hover .clip { transform: scale(1.04); }
.media-hint { position: absolute; right: 14px; bottom: 14px; padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, .92); color: var(--night); font-size: .8rem; font-weight: 700; animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(255, 255, 255, .25); } }
.pcard-body { padding: 24px 22px 26px; display: flex; flex-direction: column; flex: 1; }
.kicker { font-size: .78rem; font-weight: 700; letter-spacing: .14em; margin-bottom: .2em; }
.pcard-hair .kicker { color: var(--blue); }
.pcard-body-care .kicker { color: var(--rose); }
.pcard h3 { font-size: 1.6rem; color: var(--night); }
.lead { color: var(--ink-soft); }
.specs { list-style: none; padding: 0; margin: 0 0 14px; display: grid; gap: 8px; font-size: .92rem; color: var(--ink-soft); }
.specs b { display: inline-block; min-width: 3em; margin-right: 6px; color: var(--night); }
.notes { margin: 0 0 12px; border-radius: 14px; overflow: hidden; font-size: .9rem; }
.notes div { display: grid; grid-template-columns: 56px 1fr; padding: 8px 14px; }
.notes div + div { border-top: 1px dashed rgba(0, 0, 0, .1); }
.notes dt { font-weight: 700; }
.notes dd { margin: 0; }
.notes-blue { background: var(--blue-soft); }
.notes-blue dt { color: var(--blue); }
.free, .sizes { font-size: .82rem; color: var(--ink-soft); margin-bottom: .5em; }
.scent-pick { display: grid; gap: 10px; margin-bottom: 14px; }
.scent { display: grid; grid-template-columns: 54px 1fr; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 14px; }
.scent img { width: 54px; height: 120px; object-fit: contain; transition: transform .4s var(--ease); }
.scent:hover img { transform: rotate(-6deg) translateY(-4px); }
.scent b { display: block; }
.scent span { display: block; font-size: .85rem; }
.scent small { display: block; font-size: .78rem; color: var(--ink-soft); margin-bottom: 4px; }
.s-gold { background: var(--gold-soft); } .s-gold b { color: #9b6a0c; }
.s-love { background: var(--rose-soft); } .s-love b { color: var(--rose); }
.pcard-buy { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin: auto 0 12px; padding-top: 6px; }
.pr-name { font-weight: 700; color: var(--night); margin-right: 4px; }
.price { font-family: var(--latin); font-size: 1.9rem; font-weight: 600; color: var(--night); line-height: 1; }
s { color: #9a93ad; font-size: .9rem; }
.save { font-size: .78rem; font-weight: 700; color: var(--rose); background: var(--rose-soft); padding: 2px 8px; border-radius: 6px; }
.draft { display: inline-block; font-size: .7rem; font-weight: 700; color: #8a5a00; background: #fff1c7; border: 1px dashed #d9a400; padding: 1px 6px; border-radius: 4px; }
.also { text-align: center; margin-top: 28px; color: var(--ink-soft); }

/* ---------- night band (video) ---------- */
.nightband { position: relative; isolation: isolate; overflow: hidden; padding: 0; min-height: 420px; display: flex; align-items: flex-end; color: #fff; }
.nightband-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.nightband::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(20, 25, 90, .15), rgba(20, 25, 90, .85)); }
.nightband-copy { padding: 48px 0; }
.nightband .eyebrow { color: #d9d2ff; }
.nightband h2 { font-size: clamp(1.5rem, 4.6vw, 2.3rem); margin-bottom: 18px; text-shadow: 0 2px 18px rgba(0, 0, 0, .4); }

/* ---------- 品牌形象片 ---------- */
.films { background: radial-gradient(900px 420px at 50% 0%, #2d2a78, transparent 70%), var(--night); color: #fff; }
.films .section-head h2 { color: #fff; }
.films .section-head p:not(.eyebrow) { color: #cfc8f4; }
.films .eyebrow { color: #d9d2ff; }
.film-grid { display: grid; gap: 32px; align-items: start; }
.film { margin: 0; }
.film-frame { overflow: hidden; border-radius: 24px; background: #0f0d26; box-shadow: 0 40px 70px -30px rgba(0, 0, 0, .8); }
.film video { display: block; width: 100%; height: auto; background: #0f0d26; }
.film-tall .film-frame { width: min(340px, 86%); margin: 0 auto; }
.film-tall video { aspect-ratio: 9 / 16; }
.film-wide video { aspect-ratio: 16 / 9; }
.film figcaption { margin-top: 12px; text-align: center; color: #cfc8f4; font-size: .9rem; }
.film figcaption b { display: block; color: #fff; font-family: var(--serif); font-size: 1.05rem; }
.film-copy { margin: 18px 0 16px; color: #e3ddff; text-align: center; }
.film .btn-row { justify-content: center; }

/* ---------- 情境短片 ---------- */
.moments { padding-bottom: 56px; background: var(--cream); }
.moments .section-head { margin-bottom: 28px; }
.moment-track { display: grid; grid-auto-flow: column; grid-auto-columns: 42%; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 16px 16px; scrollbar-width: none; }
.moment-track::-webkit-scrollbar { display: none; }
.moment { position: relative; margin: 0; scroll-snap-align: center; border-radius: 20px; overflow: hidden; background: #ddd; box-shadow: var(--shadow); }
.moment .clip { display: block; width: 100%; aspect-ratio: 9 / 16; object-fit: cover; }
.moment figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 28px 12px 12px; color: #fff; font-size: .85rem; letter-spacing: .05em; background: linear-gradient(transparent, rgba(15, 12, 40, .7)); }

/* ---------- 使用分享影片 ---------- */
.voices { background: linear-gradient(180deg, var(--mist), #fff3f6); }
.voice-track { display: grid; grid-auto-flow: column; grid-auto-columns: min(62%, 240px); gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 6px 4px 18px; scrollbar-width: thin; }
.voice { position: relative; display: block; padding: 0; border: 0; border-radius: 22px; overflow: hidden; background: #1d1a4a; cursor: pointer; scroll-snap-align: start; text-align: left; color: #fff; box-shadow: var(--shadow); font: inherit; }
.voice .clip { display: block; width: 100%; aspect-ratio: 9 / 16; object-fit: cover; pointer-events: none; transition: transform .8s var(--ease); }
.voice:hover .clip { transform: scale(1.04); }
/* 正方形影片不裁切(字幕在畫面兩側,裁掉會只剩半句) */
.voice-square .clip { object-fit: contain; }
.voice:focus-visible { outline: 3px solid var(--lavender); outline-offset: 3px; }
.voice-play { position: absolute; top: 50%; left: 50%; width: 56px; height: 56px; margin: -28px 0 0 -28px; border-radius: 50%; background: rgba(255, 255, 255, .88); box-shadow: 0 8px 24px rgba(0, 0, 0, .3); transition: transform .3s var(--ease); }
.voice-play::after { content: ""; position: absolute; top: 50%; left: 53%; transform: translate(-50%, -50%); border-style: solid; border-width: 10px 0 10px 16px; border-color: transparent transparent transparent var(--night); }
.voice:hover .voice-play { transform: scale(1.08); }
.voice-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 14px 14px; background: linear-gradient(transparent, rgba(15, 12, 40, .85)); }
.voice-cap b { display: block; font-size: .95rem; line-height: 1.4; }
.voice-cap small { display: block; margin-top: 2px; color: #d9d2ff; font-size: .75rem; }
.voice-note { margin-top: 6px; text-align: center; color: var(--ink-soft); font-size: .8rem; }

.vbox { position: fixed; inset: 0; z-index: 72; display: grid; place-items: center; visibility: hidden; }
.vbox.open { visibility: visible; }
.vbox-backdrop { position: absolute; inset: 0; background: rgba(10, 8, 30, .82); opacity: 0; transition: opacity .3s; }
.vbox.open .vbox-backdrop { opacity: 1; }
.vbox-panel { position: relative; display: flex; flex-direction: column; width: min(420px, 100% - 24px); max-height: calc(100dvh - 24px); border-radius: 22px; overflow: hidden; background: #fff; transform: scale(.94); opacity: 0; transition: transform .35s var(--ease), opacity .35s; }
.vbox.open .vbox-panel { transform: none; opacity: 1; }
.vbox-head { display: flex; align-items: center; justify-content: space-between; padding: 6px 8px 6px 18px; }
.vbox-head h2 { font-size: 1rem; color: var(--night); }
.vbox-video { display: block; width: 100%; min-height: 0; flex: 1; max-height: calc(100dvh - 150px); background: #000; object-fit: contain; }
.vbox-foot { padding: 12px 14px; }
.vbox-foot:empty { display: none; }
.vbox-foot .btn { width: 100%; }

/* ---------- SECTION 05 reviews ---------- */
.reviews { background: linear-gradient(180deg, #fff3f6, var(--mist)); }
.reviews[hidden] { display: none; }
.review-track { display: grid; grid-auto-flow: column; grid-auto-columns: min(82%, 320px); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 6px 4px 18px; scrollbar-width: thin; }
.review { position: relative; scroll-snap-align: start; padding: 22px 20px; border-radius: 20px; background: #fff; box-shadow: var(--shadow); }
.review .draft { position: absolute; top: 14px; right: 14px; }
.review .stars { color: #f2b01e; letter-spacing: 2px; }
.review blockquote { margin: 8px 0 14px; font-size: .95rem; }
.review figcaption { font-size: .85rem; color: var(--ink-soft); }
.rv-prod { display: inline-block; margin-left: 8px; padding: 1px 8px; border-radius: 999px; background: var(--lilac); color: #5b48b8; font-size: .75rem; }

/* ---------- SECTION 06 bundles ---------- */
.bundles { position: relative; isolation: isolate; overflow: hidden; background: linear-gradient(180deg, #fbf3ea, #f6eaf3); }
.bundles-bg { position: absolute; inset: 0; z-index: -1; background:
  radial-gradient(600px 300px at 15% 0%, rgba(255, 220, 190, .6), transparent 70%),
  radial-gradient(500px 300px at 90% 30%, rgba(210, 190, 255, .45), transparent 70%); }
.bundle-grid { display: grid; gap: 20px; }
.bundle { position: relative; display: flex; flex-direction: column; padding: 22px; border-radius: 26px; background: rgba(255, 255, 255, .85); backdrop-filter: blur(6px); box-shadow: var(--shadow); text-align: center; }
.bundle-hero { border: 2px solid #9a63d9; }
.ribbon { position: absolute; top: 14px; left: 14px; z-index: 2; padding: 3px 12px; border-radius: 999px; background: linear-gradient(120deg, #4a5fe0, #e8779b); color: #fff; font-size: .78rem; font-weight: 700; }
.bundle-media { height: 220px; margin-bottom: 10px; border-radius: 18px; background: radial-gradient(ellipse at 50% 85%, rgba(255, 255, 255, .95), rgba(240, 232, 255, .5) 60%, transparent 75%); }
.bundle h3 { font-size: 1.35rem; color: var(--night); }
.bundle-desc { font-size: .88rem; color: var(--ink-soft); }
.price-row { display: flex; align-items: baseline; justify-content: center; gap: 8px; flex-wrap: wrap; }
.ship-hint { min-height: 1.4em; font-size: .82rem; color: #6f58d6; margin: 4px 0 12px; }
.bundle .btn-row { margin-top: auto; justify-content: center; }
.bundle .btn { flex: 1 1 140px; }
.bundle-note { text-align: center; margin-top: 24px; }
.bundle-note a { color: #6f58d6; font-weight: 700; }
/* 去背瓶身疊放 */
.stack { position: relative; display: flex; align-items: flex-end; justify-content: center; height: 100%; padding-bottom: 6px; }
.stack img { height: calc(86% * var(--s, 1)); width: auto; max-width: none; min-width: 0; object-fit: contain; margin: 0 -4%; filter: drop-shadow(0 10px 12px rgba(29, 26, 74, .25)); transition: transform .5s var(--ease); }
.stack-3 img { height: calc(80% * var(--s, 1)); margin: 0 -5%; }
.stack-4 img { height: calc(70% * var(--s, 1)); margin: 0 -6%; }
.stack-1 img { height: calc(90% * var(--s, 1)); }
/* 導購區的大卡比較寬,瓶子可以大一點、少疊一點 */
.bundle .stack-3 img { height: calc(84% * var(--s, 1)); margin: 0 -3%; }
.bundle .stack-4 img { height: calc(82% * var(--s, 1)); margin: 0 -3.5%; }
.stack img:nth-child(odd) { transform: translateY(-4px); }
.bundle:hover .stack img, .card:hover .stack img { transform: translateY(-10px); }
.bundle:hover .stack img:nth-child(2), .card:hover .stack img:nth-child(2) { transition-delay: 50ms; }
.bundle:hover .stack img:nth-child(3), .card:hover .stack img:nth-child(3) { transition-delay: 100ms; }
.bundle:hover .stack img:nth-child(4), .card:hover .stack img:nth-child(4) { transition-delay: 150ms; }
.stack.float img { animation: float 6s ease-in-out infinite; animation-delay: calc(var(--i) * .4s); }

/* ---------- SECTION 07 shop ---------- */
.shop { background: #fff; }
.tabs { position: relative; display: flex; gap: 4px; overflow-x: auto; margin: 0 auto 26px; padding: 4px; width: max-content; max-width: 100%; border-radius: 999px; background: var(--mist); scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button { position: relative; z-index: 1; flex: none; min-height: 42px; padding: 0 16px; border: 0; border-radius: 999px; background: transparent; color: var(--ink-soft); font-weight: 700; cursor: pointer; transition: color .25s; }
.tabs button[aria-selected="true"] { color: #fff; }
.tabs .n { margin-left: 6px; font-size: .75rem; opacity: .7; }
.tab-ink { position: absolute; z-index: 0; top: 4px; bottom: 4px; left: 0; border-radius: 999px; background: linear-gradient(120deg, #4a5fe0, #9a63d9); transition: transform .35s var(--ease), width .35s var(--ease); }
.shop-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.card { position: relative; display: flex; flex-direction: column; padding: 12px; border-radius: 18px; border: 1px solid var(--line); background: #fff; opacity: 0; transform: translateY(14px); transition: opacity .5s var(--ease), transform .5s var(--ease), box-shadow .25s; transition-delay: var(--d, 0ms); }
.card.in { opacity: 1; transform: none; }
.card:hover { box-shadow: var(--shadow); }
.card .ribbon { top: 8px; left: 8px; font-size: .7rem; padding: 2px 8px; }
.card-media { display: block; width: 100%; height: 170px; padding: 0; margin-bottom: 10px; border: 0; border-radius: 12px; overflow: hidden; background: linear-gradient(180deg, #f8f6ff, #fff); }
button.card-media { cursor: zoom-in; }
.card-media .shot { width: 100%; height: 100%; object-fit: contain; transition: transform .5s var(--ease); }
.card:hover .card-media .shot { transform: scale(1.05); }
.card-name { font-family: var(--sans); font-size: .9rem; font-weight: 700; line-height: 1.45; color: var(--night); margin-bottom: 6px; flex: 1; }
.card .price-row { justify-content: flex-start; margin-bottom: 10px; }
.card .price { font-size: 1.5rem; }
.card-btns { display: grid; gap: 6px; }
.card-btns .btn { width: 100%; padding-inline: .6em; }

/* ---------- assure / faq ---------- */
.assure { padding: 36px 0; background: var(--night); color: #e5ddff; }
.assure-list { list-style: none; padding: 0; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 18px; font-size: .85rem; }
.assure-list strong { display: block; font-family: var(--serif); font-size: 1rem; color: #fff; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 36px 18px 0; position: relative; font-weight: 700; color: var(--night); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%); font-size: 1.4rem; color: #8f73dc; transition: transform .25s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { color: var(--ink-soft); padding-bottom: 14px; }

/* ---------- finale ---------- */
.finale { position: relative; isolation: isolate; overflow: hidden; text-align: center; padding: 88px 0 96px; color: #fff; background: linear-gradient(160deg, #142f8f, #5a46b8 50%, #d77aa8); }
.finale-stage { position: absolute; inset: auto 0 0 0; z-index: -1; display: flex; justify-content: center; gap: 2%; opacity: .25; }
.finale-stage { align-items: flex-end; }
.finale-stage img { width: auto; height: calc(min(46vw, 300px) * var(--s, 1)); animation: float 7s ease-in-out infinite; }
.finale-stage img:nth-child(2) { animation-delay: 1s; } .finale-stage img:nth-child(3) { animation-delay: 2s; }
.finale-poem { font-family: var(--serif); font-size: 1.1rem; color: #f1ebff; }
.finale h2 { font-size: clamp(1.7rem, 5.4vw, 2.6rem); margin: .3em 0 1em; }
.finale-cta { display: grid; gap: 10px; max-width: 360px; margin: 0 auto; }
.slogan { margin-top: 28px; font-family: var(--latin); font-style: italic; font-size: 1.3rem; }

/* ---------- footer ---------- */
.footer { padding: 48px 0 130px; background: #151238; color: #c9c0e8; font-size: .85rem; }
.footer-grid { display: grid; gap: 24px; }
.footer strong { color: #fff; }
.footer-brand { font-family: var(--latin); font-size: 1.8rem; color: #fff; margin-bottom: .2em; }
.footer [data-config]:empty { display: none; }
.footer [data-config]:not(:empty)::after { content: ""; display: block; }
.small { font-size: .78rem; color: #9b92bd; }

/* ---------- mobile buy bar ---------- */
.buybar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: flex; align-items: center; gap: 8px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .96); backdrop-filter: blur(10px); border-top: 1px solid var(--line); transform: translateY(110%); transition: transform .35s var(--ease); }
.buybar.show { transform: none; }
.buybar-price { flex: none; line-height: 1.1; }
.buybar-price span { display: block; font-size: .72rem; color: var(--ink-soft); }
.buybar-price strong { font-family: var(--latin); font-size: 1.5rem; color: var(--night); }
.buybar .btn { flex: 1; padding-inline: .5em; }

/* ---------- 商說圖 sheet ---------- */
.sheet { position: fixed; inset: 0; z-index: 70; visibility: hidden; }
.sheet.open { visibility: visible; }
.sheet-backdrop { position: absolute; inset: 0; background: rgba(15, 12, 40, .6); opacity: 0; transition: opacity .3s; }
.sheet.open .sheet-backdrop { opacity: 1; }
.sheet-panel { position: absolute; left: 0; right: 0; bottom: 0; top: 6%; display: flex; flex-direction: column; margin: 0 auto; width: min(560px, 100%); border-radius: 22px 22px 0 0; background: #fff; transform: translateY(100%); transition: transform .4s var(--ease); }
.sheet.open .sheet-panel { transform: none; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px 12px 20px; border-bottom: 1px solid var(--line); }
.sheet-head h2 { font-size: 1.15rem; color: var(--night); }
.sheet-body { flex: 1; overflow-y: auto; overscroll-behavior: contain; }
.sheet-body img { width: 100%; }
.sheet-foot { display: flex; gap: 8px; flex-wrap: wrap; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
.sheet-foot .btn { flex: 1 1 200px; }

/* ---------- cart drawer ---------- */
.drawer-backdrop { position: fixed; inset: 0; z-index: 75; background: rgba(15, 12, 40, .45); }
.drawer-backdrop[hidden] { display: none; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; z-index: 76; width: min(420px, 100%); display: flex; flex-direction: column; background: var(--cream); box-shadow: -20px 0 60px -20px rgba(15, 12, 40, .5); transform: translateX(100%); transition: transform .35s var(--ease); visibility: hidden; }
.drawer.open { transform: none; visibility: visible; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.drawer-head h2 { font-size: 1.3rem; color: var(--night); }
.icon-btn { width: 44px; height: 44px; border: 0; border-radius: 50%; background: transparent; font-size: 1.1rem; cursor: pointer; color: var(--ink-soft); }
.drawer-body { flex: 1; overflow-y: auto; padding: 12px 20px; }
.drawer-empty { text-align: center; color: var(--ink-soft); padding: 48px 0; }
.drawer-body .line { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.drawer-body .line img { width: 64px; height: 64px; object-fit: cover; border-radius: 10px; background: var(--mist); }
.drawer-body .line img.cut { object-fit: contain; padding: 4px; }
.line-name { font-weight: 700; font-size: .9rem; line-height: 1.4; }
.line-noimg { width: 64px; height: 64px; border-radius: 10px; background: var(--mist); }
.qty button:disabled { opacity: .4; cursor: progress; }
.line-price { font-size: .85rem; color: var(--ink-soft); }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; margin-top: 6px; }
.qty button { width: 32px; height: 32px; border: 0; background: transparent; cursor: pointer; font-size: 1rem; color: var(--night); }
.qty span { min-width: 24px; text-align: center; font-weight: 700; }
.line-total { font-weight: 700; color: var(--night); }
.drawer-foot { padding: 16px 20px calc(16px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: #fff; }
.drawer-foot:empty { display: none; }
.sum-row { display: flex; justify-content: space-between; margin-bottom: 8px; }
.sum-row strong { font-size: 1.2rem; color: var(--night); }
.ship-opts { margin: 10px 0 14px; display: grid; gap: 6px; font-size: .85rem; }
.ship-opt { display: flex; justify-content: space-between; gap: 10px; padding: 8px 12px; border-radius: 10px; background: var(--mist); }
.ship-opt em { font-style: normal; color: var(--rose); font-weight: 700; }
.ship-note { font-size: .78rem; color: var(--ink-soft); margin-bottom: 12px; }

.toast { position: fixed; left: 50%; bottom: 92px; z-index: 95; transform: translate(-50%, 20px); max-width: calc(100% - 32px); padding: 12px 20px; border-radius: 999px; background: var(--night); color: #fff; font-size: .9rem; text-align: center; opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s var(--ease); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- 減少動態 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .hero-copy > *, .bottle, .reveal, .card { opacity: 1 !important; transform: none !important; }
}

/* ---------- 手機版可讀性(2026-11-10 使用者要求調整) ----------
   小字一律不低於 13px;直式影片不要佔滿整個螢幕,滑過去時上下文還看得到。 */
@media (max-width: 599px) {
  section { padding: 56px 0; }
  .section-head { margin-bottom: 28px; }
  .stage-label { font-size: .8rem; }
  .stage-label b { font-size: .95rem; }
  .clip-tag, .voice-cap small, .rv-prod, .tabs .n, .card .ribbon { font-size: .8rem; }
  .kicker, .save, .ribbon, .scent small, .small, .ship-note, .buybar-price span, .media-hint { font-size: .84rem; }
  .free, .sizes, .specs, .notes, .ship-hint { font-size: .92rem; }
  .bundle-desc, .card-name, .answers li, .bubble, .review blockquote { font-size: 1rem; }
  .chips { font-size: .9rem; }
  .assure-list { font-size: .9rem; }
  .voice-note { font-size: .85rem; }
  .phone { width: min(250px, 66%); }
  .film-tall .film-frame { width: min(260px, 70%); }
  .voice-track { grid-auto-columns: 56%; }
  .moment-track { grid-auto-columns: 44%; }
  .nightband { min-height: 360px; }
  .card { padding: 10px; }
  .card-media { height: 180px; }
}

/* ---------- tablet / desktop ---------- */
@media (min-width: 600px) {
  .shop-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .card-btns { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 900px) {
  section { padding: 104px 0; }
  .nav-links { display: flex; }
  .nav-buy { display: inline-flex; }
  .hero { padding: 64px 0 96px; }
  .hero-inner { grid-template-columns: 1fr 1.05fr; gap: 24px; min-height: min(72vh, 640px); }
  .hero-stage { order: 0; height: 520px; }
  .hero h1 { font-size: clamp(2.1rem, 3.3vw, 3rem); }
  .hero h1 .line { white-space: nowrap; }
  .moon { width: 160px; height: 160px; top: 10%; right: 6%; }
  .hero-video { -webkit-mask-image: linear-gradient(90deg, rgba(0, 0, 0, .3) 10%, #000 65%); mask-image: linear-gradient(90deg, rgba(0, 0, 0, .3) 10%, #000 65%); }
  .ritual-grid { grid-template-columns: .8fr 1.2fr; gap: 64px; }
  .phone { width: 320px; }
  .duo { grid-template-columns: 1fr 1fr; }
  .bundle-grid { grid-template-columns: 1.15fr 1fr 1fr; align-items: stretch; }
  .bundle-hero .bundle-media { height: 260px; }
  .shop-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
  .card-media { height: 200px; }
  .review-track { grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); overflow: visible; }
  .nightband { min-height: 520px; }
  .film-grid { grid-template-columns: .75fr 1.25fr; gap: 48px; align-items: center; }
  .film-tall .film-frame { width: 100%; max-width: 360px; }
  .moment-track { grid-auto-flow: row; grid-template-columns: repeat(6, 1fr); width: min(1160px, 100% - 32px); margin-inline: auto; padding: 4px 0 16px; overflow: visible; }
  .voice-track { grid-auto-flow: row; grid-template-columns: repeat(5, 1fr); overflow: visible; }
  .assure-list { grid-template-columns: repeat(4, 1fr); }
  .finale-cta { grid-template-columns: repeat(3, auto); max-width: none; justify-content: center; }
  .footer { padding-bottom: 48px; }
  .footer-grid { grid-template-columns: 1.2fr 1fr 1fr; }
  .buybar { display: none; }
  .toast { bottom: 32px; }
  .sheet-panel { top: 4%; bottom: 4%; border-radius: 22px; }
}
