:root {
  --pink-50: #fff7f9;
  --pink-100: #fbeff2;
  --pink-200: #f4dbe2;
  --pink-300: #ecc7d1;
  --pink-400: #e2b1c1;
  --pink-500: #d59bad;
  --pink-600: #c08297;
  --pink-700: #a0667f;
  --ink-900: #2a2225;
  --ink-700: #5a4b52;
  --ink-500: #7a6a70;
  --cream: #f6f1ea;
  --line: #ead9de;
  --shadow: 0 16px 40px rgba(58, 39, 45, 0.08);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --font-display: "Noto Serif TC", "Source Han Serif TC", "Songti TC", "PMingLiU", serif;
  --font-body: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  overflow-x: clip;
}

/* 橫向輪播不要把手勢外傳（避免誤觸上一頁、也不會干擾直向捲動） */
[class*="-scroll"],
[class*="-row"],
[class*="-strip"] {
  overscroll-behavior-x: contain;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink-900);
  background: #fff;
  overflow-x: clip;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
}

.container {
  width: min(1200px, 90vw);
  margin: 0 auto;
}

.section {
  padding: 84px 0;
  scroll-margin-top: 110px;
}

.section.compact {
  padding: 56px 0;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 40px);
  margin: 0 0 12px;
  letter-spacing: 1px;
  text-align: center;
}

.section-subtitle {
  margin: 0 0 32px;
  color: var(--ink-500);
  max-width: 720px;
  line-height: 1.7;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.section-kicker {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 12px;
  color: var(--pink-600);
  text-align: center;
  margin-bottom: 12px;
}

.section-kicker.secondary {
  margin-top: -6px;
  color: var(--ink-500);
  text-transform: none;
}

.flag {
  display: inline-block;
  width: 20px;
  height: 14px;
  border-radius: 3px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08);
  vertical-align: middle;
}

.flag.swiss {
  background: #d52b1e;
  position: relative;
}

.flag.swiss::before,
.flag.swiss::after {
  content: "";
  position: absolute;
  background: #fff;
  border-radius: 1px;
}

.flag.swiss::before {
  width: 10px;
  height: 3px;
  top: 5.5px;
  left: 5px;
}

.flag.swiss::after {
  width: 3px;
  height: 10px;
  top: 2px;
  left: 8.5px;
}

.flag.us {
  background: repeating-linear-gradient(
    to bottom,
    #b22234 0 2px,
    #fff 2px 4px
  );
  position: relative;
}

.flag.us::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 9px;
  height: 8px;
  background: #3c3b6e;
  border-top-left-radius: 3px;
}

.material-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 14px;
  margin-bottom: 22px;
}

.material-stat {
  border: 1px solid rgba(234, 217, 222, 0.8);
  border-radius: var(--radius-md);
  padding: 12px;
  text-align: center;
  background: #fff;
}

.material-stat .stat-value {
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--ink-900);
}

.material-stat .stat-label {
  margin-top: 6px;
  font-size: 12px;
  color: var(--ink-500);
}

.material-checks {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.material-check {
  border-radius: var(--radius-md);
  border: 1px solid rgba(234, 217, 222, 0.7);
  padding: 12px;
  text-align: center;
  background: var(--pink-50);
  font-size: 12px;
  color: var(--ink-600);
}

.material-compare {
  margin-top: 24px;
}

.compare-title {
  text-align: center;
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-size: 20px;
}

.compare-subtitle {
  text-align: center;
  margin: 0 0 16px;
  font-size: 13px;
  color: var(--ink-500);
}

.compare-grid {
  display: grid;
  grid-template-columns: 140px repeat(4, minmax(120px, 1fr));
  border: 1px solid rgba(234, 217, 222, 0.7);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.compare-cell {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(234, 217, 222, 0.5);
  border-right: 1px solid rgba(234, 217, 222, 0.5);
  font-size: 12px;
  color: var(--ink-600);
  text-align: center;
  background: #fff;
}

.compare-cell.head {
  font-weight: 600;
  color: var(--ink-900);
  background: var(--pink-50);
}

.compare-cell.head .flag {
  margin-right: 6px;
}

.compare-cell.label {
  font-weight: 600;
  color: var(--ink-700);
  background: #fffafc;
  text-align: left;
}

.compare-grid .compare-cell:nth-last-child(-n+5) {
  border-bottom: none;
}

.compare-grid .compare-cell:nth-child(5n) {
  border-right: none;
}

@media (max-width: 900px) {
  .compare-grid {
    grid-template-columns: 120px repeat(4, minmax(120px, 1fr));
    overflow-x: auto;
    display: grid;
  }
}

.material-hero {
  padding-top: 72px;
  padding-bottom: 64px;
  background: #fff;
}

.material-pill {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid rgba(160, 102, 127, 0.4);
  color: var(--pink-700);
  font-size: 12px;
  letter-spacing: 1px;
  font-weight: 600;
  margin: 0 auto 18px;
  background: #fff;
  text-align: center;
}

.material-title {
  font-family: var(--font-display);
  font-size: clamp(26px, 4vw, 44px);
  text-align: center;
  margin: 0 0 16px;
  line-height: 1.35;
}

.material-accent {
  color: var(--pink-700);
}

.material-vs {
  display: inline-block;
  color: var(--ink-500);
  font-size: 0.85em;
  margin: 0 8px;
}

.material-muted {
  color: var(--ink-500);
  font-size: 0.9em;
}

.material-intro {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
  color: var(--ink-500);
  line-height: 1.7;
}

.material-round {
  background: var(--pink-50);
}

.material-round.alt {
  background: #fff;
}

.round-header {
  display: grid;
  gap: 10px;
  margin-bottom: 32px;
  text-align: left;
}

.round-header h3 {
  margin: 0;
  font-size: clamp(22px, 3vw, 32px);
  font-family: var(--font-display);
}

.round-header p {
  margin: 0;
  color: var(--ink-500);
}

.round-tag {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: 12px;
  background: var(--pink-500);
  color: #fff;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 1px;
  width: fit-content;
}

.round-tag.dark {
  background: var(--ink-900);
}

.vs-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  align-items: stretch;
}

.vs-card {
  position: relative;
  border-radius: var(--radius-xl);
  padding: 28px;
  background: #fff;
  border: 1px solid rgba(234, 217, 222, 0.8);
  box-shadow: var(--shadow);
  display: grid;
  gap: 18px;
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.vs-card::after {
  content: "";
  position: absolute;
  inset: 14px;
  border-radius: inherit;
  border: 1px solid transparent;
  transition: border-color 0.35s ease;
  pointer-events: none;
}

.vs-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 45px rgba(40, 30, 50, 0.14);
  border-color: rgba(210, 150, 170, 0.5);
}

.vs-card:hover::after {
  border-color: rgba(210, 150, 170, 0.28);
}

.vs-card.highlight {
  border-top: 6px solid var(--pink-600);
}

.vs-card.muted {
  background: #f7f2f4;
  border-top: 6px solid rgba(90, 75, 82, 0.4);
}

.vs-card.dark {
  background: #2c2428;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-top: 6px solid var(--pink-600);
}

.vs-badge {
  position: absolute;
  top: -14px;
  left: 24px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--pink-600);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
}

.vs-badge.muted {
  background: rgba(90, 75, 82, 0.6);
}

.vs-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.vs-col {
  display: grid;
  gap: 10px;
}

.vs-title {
  font-size: 20px;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.vs-title.large {
  font-size: 30px;
}

.vs-sub {
  font-size: 12px;
  letter-spacing: 1px;
  color: var(--ink-500);
  font-weight: 600;
}

.vs-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
  color: var(--ink-700);
  font-size: 13px;
}

.vs-list li {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 8px;
  align-items: start;
}

.vs-foot {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  background: var(--pink-100);
  color: var(--pink-700);
  text-align: center;
  font-weight: 600;
  font-size: 13px;
}

.vs-block {
  display: grid;
  gap: 8px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(120, 105, 112, 0.2);
}

.vs-block:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.vs-block-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 700;
}

.vs-tag {
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(90, 75, 82, 0.15);
  color: var(--ink-700);
  font-weight: 600;
}

.vs-tag.danger {
  background: rgba(192, 130, 151, 0.25);
  color: var(--pink-700);
}

.vs-warning {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 8px;
  color: var(--pink-700);
  font-size: 12px;
  font-weight: 600;
}

.vs-muted {
  color: var(--ink-500);
  font-size: 12px;
}

.vs-center {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid rgba(234, 217, 222, 0.8);
  display: grid;
  place-items: center;
  font-weight: 700;
  color: var(--ink-700);
  box-shadow: var(--shadow);
}

.mini-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
}

.mini-grid strong {
  display: block;
  color: var(--pink-400);
  margin-bottom: 6px;
}

.mini-grid span {
  display: block;
  color: rgba(255, 255, 255, 0.75);
  font-size: 12px;
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.tech-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 24px;
  border: 1px solid rgba(234, 217, 222, 0.8);
  box-shadow: var(--shadow);
  display: grid;
  gap: 8px;
}

.tech-card h4 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
}

.tech-card p {
  margin: 0;
  color: var(--ink-500);
  line-height: 1.6;
}

.tech-card span {
  font-size: 12px;
  color: var(--ink-700);
}

.evidence-header {
  display: grid;
  gap: 10px;
  text-align: center;
  margin-bottom: 30px;
}

.evidence-header h3 {
  margin: 0;
  font-size: clamp(22px, 3vw, 32px);
  font-family: var(--font-display);
}

.evidence-header p {
  margin: 0;
  color: var(--ink-500);
}

.evidence-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
}

.evidence-card {
  background: #fff;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(234, 217, 222, 0.8);
  box-shadow: var(--shadow);
  padding: 24px;
  display: grid;
  gap: 16px;
}

.evidence-title {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 12px;
  align-items: center;
}

.evidence-title strong {
  display: block;
  font-size: 18px;
  font-weight: 700;
}

.evidence-title span {
  font-size: 12px;
  color: var(--ink-500);
}

.evidence-card p {
  margin: 0;
  color: var(--ink-600);
  line-height: 1.7;
  font-size: 13px;
}

.ion-lab {
  background: #f6f8fb;
}

.ion-module {
  display: grid;
  gap: 18px;
  margin-bottom: 48px;
}

.ion-module:last-child {
  margin-bottom: 0;
}

.ion-head {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.ion-pill {
  padding: 4px 10px;
  border-radius: 999px;
  background: #e8f0ff;
  color: #2e5bd0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.ion-head h3 {
  margin: 0;
  font-size: clamp(20px, 3vw, 28px);
  font-family: var(--font-display);
  color: var(--ink-900);
}

.ion-lead {
  margin: 0;
  color: var(--ink-600);
  font-size: 14px;
  line-height: 1.7;
}

.ion-card {
  background: #fff;
  border-radius: 20px;
  border: 1px solid rgba(234, 217, 222, 0.8);
  box-shadow: var(--shadow);
  padding: 18px;
  display: grid;
  gap: 14px;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

body[data-page="home"] .ion-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 45px rgba(40, 40, 60, 0.14);
}

.ion-hint {
  font-size: 12px;
  color: var(--ink-500);
}

.ion-stage,
.heat-stage {
  position: relative;
  height: 220px;
  border-radius: 16px;
  overflow: hidden;
  background: #0f1a33;
  display: grid;
  place-items: center;
}

.heat-stage {
  background: linear-gradient(140deg, #0f1424 0%, #111c30 55%, #1b2340 100%);
}

.ion-orbit {
  position: absolute;
  border: 1px solid rgba(120, 150, 190, 0.35);
  border-radius: 50%;
  animation: orbitSpin 10s linear infinite;
}

.ion-orbit.orbit-1 {
  width: 100px;
  height: 100px;
  animation-duration: 8s;
}

.ion-orbit.orbit-2 {
  width: 150px;
  height: 150px;
  animation-duration: 12s;
}

.ion-orbit.orbit-3 {
  width: 200px;
  height: 200px;
  animation-duration: 16s;
}

.ion-orbit.orbit-4 {
  width: 240px;
  height: 240px;
  animation-duration: 20s;
  opacity: 0;
}

.ion-electron {
  position: absolute;
  top: -4px;
  left: 50%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #59b7ff;
  transform: translateX(-50%);
  box-shadow: 0 0 10px rgba(89, 183, 255, 0.6);
  cursor: pointer;
}

.ion-core {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: radial-gradient(circle, #ff7a7a 0%, #d84545 55%, #b23333 100%);
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
  box-shadow: 0 0 20px rgba(255, 120, 120, 0.5);
}

.ion-charge {
  position: absolute;
  top: 14px;
  right: 16px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #d5e1ff;
  font-size: 12px;
  font-weight: 600;
}

.ion-card.active .ion-charge {
  background: rgba(60, 120, 255, 0.25);
  color: #ffffff;
}

.ion-card.active .ion-orbit.orbit-4 {
  opacity: 1;
}

.ion-card.active .ion-orbit.orbit-4 .ion-electron {
  background: #49ff95;
  box-shadow: 0 0 12px rgba(73, 255, 149, 0.8), 0 0 22px rgba(73, 255, 149, 0.6);
}

.ion-card.active .ion-core {
  transform: scale(1.05);
  transition: transform 0.3s ease;
}

.heat-core {
  width: 70px;
  height: 70px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
}

.heat-label {
  position: absolute;
  top: 14px;
  right: 16px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #d5e1ff;
  font-size: 12px;
  font-weight: 600;
}

.ion-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border-radius: 14px;
  background: #f1f6ff;
  color: var(--ink-700);
}

.ion-status strong {
  display: block;
  font-size: 14px;
  color: var(--ink-900);
}

.ion-status span {
  font-size: 12px;
  color: var(--ink-600);
}

.ion-action {
  padding: 8px 18px;
  font-size: 13px;
}

.ion-bars,
.ion-notes {
  display: grid;
  gap: 12px;
}

.ion-bars-title {
  font-size: 13px;
  color: var(--ink-700);
  font-weight: 600;
}

.ion-bar-row {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) minmax(120px, 2fr) 40px;
  gap: 12px;
  align-items: center;
  font-size: 13px;
  color: var(--ink-700);
}

.ion-bar {
  height: 8px;
  border-radius: 999px;
  background: #e9eef6;
  overflow: hidden;
}

.ion-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  transform-origin: left;
  transform: scaleX(0);
}

.ion-bar.high span {
  width: 92%;
  background: #3ac17e;
}

.ion-bar.mid span {
  width: 55%;
  background: #4b82ff;
}

.ion-bar.low span {
  width: 20%;
  background: #f07b7b;
}

.ion-bars.is-inview .ion-bar span {
  animation: barFill 1.2s ease forwards;
}

@keyframes barFill {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

.ion-range {
  text-align: right;
  font-weight: 600;
}

.ion-note-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
  color: var(--ink-600);
  font-size: 13px;
}

.ion-note-list li {
  display: grid;
  grid-template-columns: 10px 1fr;
  gap: 8px;
  align-items: start;
}

.ion-note-list li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--pink-600);
  margin-top: 6px;
}

.ir-spectrum {
  display: grid;
  gap: 10px;
}

.ir-spectrum-bar {
  position: relative;
  height: 44px;
  border-radius: 12px;
  overflow: hidden;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border: 1px solid rgba(234, 217, 222, 0.8);
  background: linear-gradient(90deg, #5b3fd8 0%, #4f7cff 25%, #52d3b5 45%, #f7b24a 65%, #f06b2f 100%);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  background-size: 200% 100%;
  animation: spectrumFlow 10s linear infinite;
}

@keyframes spectrumFlow {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 100% 50%;
  }
}

.ir-band {
  display: grid;
  place-items: center;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}

.ir-band.ir-life {
  background: rgba(255, 255, 255, 0.16);
  border-left: 1px solid rgba(255, 255, 255, 0.3);
  border-right: 1px solid rgba(255, 255, 255, 0.3);
}

.ir-spectrum-note {
  font-size: 12px;
  color: var(--ink-600);
}

.ir-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.ir-info-card {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 12px;
  padding: 16px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid rgba(234, 217, 222, 0.8);
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ir-info-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 30px rgba(35, 35, 56, 0.12);
}

.ir-info-card strong {
  display: block;
  font-size: 14px;
  color: var(--ink-900);
  margin-bottom: 6px;
}

.ir-info-card p {
  margin: 0;
  font-size: 12px;
  color: var(--ink-600);
  line-height: 1.6;
}

.interaction-panel {
  background: linear-gradient(180deg, #1b2436 0%, #111827 100%);
  border-radius: 20px;
  padding: 20px;
  color: #d7e0ee;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 24px 50px rgba(7, 12, 24, 0.3);
  display: grid;
  gap: 16px;
  animation: panelGlow 6s ease-in-out infinite;
}

@keyframes panelGlow {
  0%,
  100% {
    box-shadow: 0 24px 50px rgba(7, 12, 24, 0.3);
  }
  50% {
    box-shadow: 0 32px 70px rgba(7, 12, 24, 0.45);
  }
}

.interaction-title {
  text-align: center;
  font-size: 14px;
  color: #7af0c5;
  font-weight: 700;
}

.interaction-flow {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: grid;
  gap: 14px;
}

.interaction-step {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 14px;
  align-items: center;
  color: #d7e0ee;
  padding: 8px 10px;
  border-radius: 12px;
  transition: background 0.3s ease, transform 0.3s ease;
}

.interaction-step:hover {
  background: rgba(255, 255, 255, 0.06);
  transform: translateY(-2px);
}

.interaction-step strong {
  display: block;
  font-size: 14px;
  margin-bottom: 6px;
  color: #fff;
}

.interaction-step p {
  margin: 0;
  font-size: 12px;
  color: #c5d2e6;
  line-height: 1.6;
}

.interaction-icon {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  text-align: center;
  line-height: 1;
}

.interaction-icon.heat {
  background: rgba(255, 161, 107, 0.16);
  color: #ffb37a;
  border-color: rgba(255, 161, 107, 0.35);
}

.interaction-icon.press {
  background: rgba(88, 160, 255, 0.16);
  color: #8ab4ff;
  border-color: rgba(88, 160, 255, 0.35);
}

.interaction-arrow {
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.5);
}

.interaction-arrow svg {
  width: 22px;
  height: 22px;
}

.interaction-result {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px;
  border-radius: 12px;
  background: rgba(46, 204, 140, 0.16);
  color: #9bf0c7;
  font-weight: 600;
  border: 1px solid rgba(46, 204, 140, 0.4);
  animation: resultPulse 2.8s ease-in-out infinite;
}

.result-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid #9bf0c7;
  box-shadow: 0 0 8px rgba(155, 240, 199, 0.6);
}

.interaction-foot {
  text-align: center;
  font-size: 12px;
  color: #c5d2e6;
  line-height: 1.7;
}

@keyframes resultPulse {
  0%,
  100% {
    box-shadow: 0 0 0 rgba(46, 204, 140, 0.18);
  }
  50% {
    box-shadow: 0 0 18px rgba(46, 204, 140, 0.35);
  }
}

.ir-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: #f3f6ff;
  border: 1px solid rgba(100, 140, 200, 0.2);
  display: grid;
  place-items: center;
  color: #5b7ae5;
}

@keyframes orbitSpin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes heatPulse {
  0% {
    transform: scale(0.9);
    opacity: 0.15;
  }
  50% {
    transform: scale(1);
    opacity: 0.35;
  }
  100% {
    transform: scale(1.08);
    opacity: 0.1;
  }
}

@media (max-width: 900px) {
  .ion-status {
    flex-wrap: wrap;
    justify-content: center;
    text-align: center;
  }

  .ion-bar-row {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .ion-range {
    text-align: left;
  }
}

.evidence-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.evidence-data {
  display: grid;
  gap: 14px;
}

.evidence-lesson {
  border-radius: 14px;
  padding: 14px 16px;
  background: #fff7f9;
  border: 1px dashed rgba(192, 130, 151, 0.35);
  display: grid;
  gap: 10px;
}

.evidence-lesson strong {
  font-size: 13px;
  color: var(--ink-900);
}

.evidence-lesson ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
  counter-reset: lesson-step;
}

.evidence-lesson li {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 10px;
  font-size: 12px;
  color: var(--ink-600);
  align-items: start;
}

.evidence-lesson li::before {
  counter-increment: lesson-step;
  content: counter(lesson-step);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--pink-700);
  background: #fff;
  border: 1px solid rgba(192, 130, 151, 0.4);
}

.lesson-label {
  font-weight: 600;
  color: var(--ink-900);
  margin-right: 6px;
}

.lesson-note {
  font-size: 11px;
  color: var(--ink-500);
}

@media (max-width: 900px) {
  .evidence-body {
    grid-template-columns: 1fr;
  }
}

.evidence-scale {
  display: grid;
  gap: 8px;
}

.scale-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.scale-chip {
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(234, 217, 222, 0.9);
  background: #fff;
  color: var(--ink-600);
  font-weight: 600;
}

.scale-chip.safe {
  background: var(--pink-100);
  border-color: rgba(192, 130, 151, 0.4);
  color: var(--pink-700);
}

.scale-chip.warn {
  background: #f1f1f1;
  border-color: rgba(90, 75, 82, 0.2);
}

.scale-bar {
  height: 8px;
  border-radius: 999px;
  background: #f1e6ea;
  overflow: hidden;
}

.scale-fill {
  display: block;
  height: 100%;
  width: calc(var(--fill, 0.5) * 100%);
  background: linear-gradient(90deg, var(--pink-300), var(--pink-600));
}

.scale-note {
  font-size: 12px;
  color: var(--ink-500);
}

.metric-highlight {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--pink-100);
  border: 1px solid rgba(192, 130, 151, 0.4);
  color: var(--ink-900);
}

.metric-highlight span {
  font-size: 12px;
  color: var(--ink-600);
}

.metric-highlight strong {
  font-size: 20px;
  font-weight: 700;
}

.metric-highlight em {
  font-size: 12px;
  color: var(--ink-600);
  font-style: normal;
}

.metric-stack {
  display: grid;
  gap: 10px;
}

.metric-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid rgba(234, 217, 222, 0.8);
  background: #fffafc;
  font-size: 12px;
  color: var(--ink-600);
}

.metric-row.highlight {
  background: var(--pink-100);
  border-color: rgba(192, 130, 151, 0.4);
  color: var(--ink-900);
  font-weight: 600;
}

.metric-row strong {
  font-weight: 600;
  color: var(--ink-900);
}

.evidence-foot {
  padding: 10px 14px;
  border-radius: 12px;
  background: var(--pink-50);
  border: 1px dashed rgba(192, 130, 151, 0.4);
  font-size: 12px;
  color: var(--ink-700);
  text-align: center;
}

.icon-shield,
.icon-sun {
  width: 26px;
  height: 26px;
  color: var(--pink-600);
}

.material-table {
  background: var(--pink-50);
}

.table-shell {
  overflow-x: auto;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(234, 217, 222, 0.8);
  background: #fff;
  box-shadow: var(--shadow);
}

.material-table-grid {
  width: 100%;
  border-collapse: collapse;
  min-width: 860px;
}

.material-table-grid th,
.material-table-grid td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(234, 217, 222, 0.6);
  font-size: 13px;
  text-align: left;
}

.material-table-grid thead th {
  background: #f7f1f3;
  font-weight: 700;
  color: var(--ink-900);
}

.material-table-grid tbody tr:nth-child(even) td {
  background: #fffafc;
}

.table-note {
  margin-top: 12px;
  text-align: center;
  color: var(--ink-500);
  font-size: 12px;
}

.icon {
  width: 18px;
  height: 18px;
}

.icon-ok {
  color: var(--pink-600);
}

.icon-warn {
  color: var(--pink-700);
}

.vs-card.dark .vs-title,
.vs-card.dark .vs-lead {
  color: #fff;
}

.vs-lead {
  margin: 0 0 16px;
  color: var(--ink-500);
}

.muted-text {
  color: var(--ink-500);
}

@media (max-width: 900px) {
  .vs-center {
    display: none;
  }

  .round-header {
    text-align: center;
  }

  .round-header .round-tag {
    margin: 0 auto;
  }
}

.material-details {
  max-width: 720px;
  margin: 0 auto 28px;
  display: grid;
  gap: 12px;
  text-align: center;
  color: var(--ink-600);
  line-height: 1.7;
}

.material-details p {
  margin: 0;
}


.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: #fff;
  border-bottom: 1px solid rgba(234, 217, 222, 0.6);
}

.header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
  padding: 16px 0;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 14px;
  justify-self: start;
}

.icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(234, 217, 222, 0.9);
  background: #fff;
  display: grid;
  place-items: center;
  color: var(--ink-700);
  box-shadow: 0 8px 16px rgba(213, 155, 173, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
}

.menu-toggle {
  display: none;
}

.icon-btn:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 14px 24px rgba(213, 155, 173, 0.24);
}

.icon-btn.plain {
  border: none;
  box-shadow: none;
  background: transparent;
}

.icon-btn.plain:hover {
  transform: translateY(-1px);
  box-shadow: none;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  align-self: center;
  margin-top: 6px;
}

.logo-img {
  width: 140px;
  height: auto;
  display: block;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.main-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  justify-self: center;
}

.nav-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-item.has-dropdown {
  padding-bottom: 12px;
  margin-bottom: -12px;
}

.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  display: none;
  flex-wrap: nowrap;
  gap: 8px;
  padding: 10px 12px;
  background: #fff;
  border: 1px solid rgba(234, 217, 222, 0.9);
  border-radius: 16px;
  box-shadow: 0 16px 30px rgba(58, 39, 45, 0.12);
  z-index: 30;
  min-width: 260px;
  justify-content: center;
  overflow-x: auto;
  scrollbar-width: none;
}

.nav-dropdown::-webkit-scrollbar {
  display: none;
}

.nav-dropdown a {
  font-size: 13px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--pink-50);
  color: var(--ink-700);
  white-space: nowrap;
}

.nav-item.has-dropdown:hover .nav-dropdown,
.nav-item.has-dropdown:focus-within .nav-dropdown {
  display: flex;
}

.nav-item.has-dropdown:hover .nav-dropdown.mega-menu,
.nav-item.has-dropdown:focus-within .nav-dropdown.mega-menu,
.nav-item.has-dropdown.open .nav-dropdown.mega-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.nav-item.has-dropdown.open .nav-dropdown {
  display: flex;
}

.nav-dropdown.mega-menu {
  display: flex;
  position: fixed;
  top: var(--header-height, 72px);
  left: 0;
  right: 0;
  transform: translateY(12px);
  width: 100vw;
  max-width: 100vw;
  flex-direction: column;
  gap: 10px;
  align-items: stretch;
  overflow: visible;
  padding: 14px 0 18px;
  background: linear-gradient(180deg, #fff, #fff5f7);
  border-top: 1px solid rgba(234, 217, 222, 0.9);
  border-bottom: 1px solid rgba(234, 217, 222, 0.9);
  border-left: none;
  border-right: none;
  border-radius: 0 0 24px 24px;
  box-shadow: 0 18px 32px rgba(58, 39, 45, 0.12);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.mega-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}

.mega-groups {
  border-bottom: 1px solid rgba(234, 217, 222, 0.6);
  padding-bottom: 10px;
}

.mega-sub {
  padding-top: 6px;
}

.nav-dropdown.mega-menu.sub-hidden .mega-sub {
  display: none;
}

.mega-cat {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  padding: 0 12px;
  border-radius: 0;
  background: transparent;
  color: var(--ink-700);
  font-size: 13px;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.mega-cat.active,
.mega-cat:hover {
  color: var(--pink-700);
}

.mega-sub a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 34px;
  padding: 0 12px;
  border-radius: 0;
  background: transparent;
  border: none;
  font-size: 13px;
  color: var(--ink-600);
  text-align: center;
  white-space: nowrap;
  line-height: 1;
}

.nav-dropdown.mega-menu .mega-cat,
.nav-dropdown.mega-menu .mega-sub a {
  background: transparent;
  border: none;
  box-shadow: none;
}

.nav-dropdown.mega-menu .mega-cat:hover,
.nav-dropdown.mega-menu .mega-cat.active {
  background: transparent;
  box-shadow: none;
}

.mega-empty {
  font-size: 12px;
  color: var(--ink-500);
  padding: 6px 10px;
  text-align: center;
}

.main-nav a {
  padding: 6px 4px;
  border-radius: 0;
  font-size: 15px;
  color: var(--ink-700);
  position: relative;
  transition: color 0.3s ease, background 0.3s ease;
}

.main-nav .nav-search {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: none;
  background: transparent;
  color: var(--ink-700);
  padding: 6px 4px;
  font-size: 15px;
  cursor: pointer;
  transition: color 0.3s ease;
}

.main-nav .nav-search:hover {
  color: var(--pink-700);
}

.main-nav .nav-search svg {
  width: 16px;
  height: 16px;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 1px;
  background: var(--pink-500);
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
  transform: translateY(4px);
}

.main-nav a:hover,
.main-nav a.active {
  background: transparent;
  color: var(--pink-700);
}

.main-nav a:hover::after,
.main-nav a.active::after {
  opacity: 1;
  transform: translateY(0);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: flex-end;
  justify-self: end;
}

.header-pill {
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(234, 217, 222, 0.9);
  background: #fff;
  font-size: 13px;
  color: var(--ink-700);
}

.hero {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  padding: clamp(16px, 4vw, 40px);
  background: linear-gradient(140deg, #ffffff 0%, var(--cream) 55%, var(--pink-50) 100%);
  border: 1px solid rgba(234, 217, 222, 0.8);
  box-shadow: 0 20px 50px rgba(58, 39, 45, 0.08);
  padding-top: clamp(44px, 6vw, 72px);
  padding-bottom: clamp(44px, 6vw, 72px);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: center;
  gap: clamp(16px, 3vw, 40px);
  height: 100%;
  align-content: center;
}

.hero-grid > :only-child {
  grid-column: 1 / -1;
  justify-self: center;
  align-self: center;
}

.hero-band {
  background: #fff;
  border-top: 1px solid rgba(234, 217, 222, 0.6);
  border-bottom: 1px solid rgba(234, 217, 222, 0.6);
}

.hero-band .container {
  display: flex;
  justify-content: center;
  align-items: center;
}

body[data-page="home"] .hero-band .container {
  width: min(1200px, 100%);
  padding: 0 4vw;
}

.hero-banner {
  position: relative;
  overflow: visible;
  display: block;
  text-align: center;
  padding: 0;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(234, 217, 222, 0.9);
  background: linear-gradient(140deg, #ffffff 0%, var(--cream) 55%, var(--pink-100) 100%);
  box-shadow: 0 24px 50px rgba(58, 39, 45, 0.08);
  aspect-ratio: 3 / 1;
  width: 100%;
  margin: 0 auto;
  flex: 1 1 auto;
}


.hero-banner::before,
.hero-banner::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
}

.hero-banner::before {
  width: 320px;
  height: 320px;
  right: -120px;
  top: -140px;
  background: radial-gradient(circle, rgba(226, 177, 193, 0.45), rgba(255, 255, 255, 0));
}

.hero-banner::after {
  width: 280px;
  height: 280px;
  left: -120px;
  bottom: -120px;
  background: radial-gradient(circle, rgba(246, 241, 234, 0.9), rgba(255, 255, 255, 0));
}

.hero-banner > * {
  position: relative;
  z-index: 1;
}

.hero-scroll {
  display: flex;
  gap: 0;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x proximity;
  height: 100%;
  border-radius: inherit;
  background: inherit;
  scrollbar-width: none;
  width: 100%;
  -webkit-overflow-scrolling: touch;
}

.hero-scroll::-webkit-scrollbar {
  display: none;
}

body[data-page="home"] .hero-banner::before {
  animation: heroBlob 12s ease-in-out infinite;
}

body[data-page="home"] .hero-banner::after {
  animation: heroBlobAlt 14s ease-in-out infinite;
}

body[data-page="home"] .hero-banner {
  animation: heroFloat 6s ease-in-out infinite;
}

body[data-page="home"] .hero-slide .banner-content {
  animation: heroFade 0.9s ease both;
}

body[data-page="home"] .hero-actions .btn {
  position: relative;
  overflow: hidden;
}

body[data-page="home"] .hero-actions .btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, 0.5) 45%, transparent 70%);
  transform: translateX(-120%);
  animation: btnShine 6s ease-in-out infinite;
}

@keyframes heroBlob {
  0% {
    transform: translate(0, 0) scale(1);
    opacity: 0.7;
  }
  50% {
    transform: translate(-20px, 18px) scale(1.05);
    opacity: 0.9;
  }
  100% {
    transform: translate(0, 0) scale(1);
    opacity: 0.7;
  }
}

@keyframes heroBlobAlt {
  0% {
    transform: translate(0, 0) scale(1);
    opacity: 0.75;
  }
  50% {
    transform: translate(24px, -16px) scale(1.06);
    opacity: 0.95;
  }
  100% {
    transform: translate(0, 0) scale(1);
    opacity: 0.75;
  }
}

@keyframes heroFade {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes btnShine {
  0%,
  70% {
    transform: translateX(-120%);
  }
  100% {
    transform: translateX(120%);
  }
}

@keyframes heroFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

@media (prefers-reduced-motion: reduce) {
  body[data-page="home"] .hero-banner::before,
  body[data-page="home"] .hero-banner::after,
  body[data-page="home"] .hero-slide .banner-content,
  body[data-page="home"] .hero-actions .btn::after,
  body[data-page="home"] .hero-banner {
    animation: none;
  }

  .ir-spectrum-bar,
  .interaction-panel {
    animation: none;
  }
}

.hero-slide {
  min-width: 100%;
  height: 100%;
  scroll-snap-align: start;
  display: grid;
  place-items: center;
  padding: clamp(16px, 4vw, 40px);
}


.banner-content {
  display: grid;
  gap: 18px;
  text-align: center;
  justify-items: center;
  align-content: center;
  width: min(560px, 100%);
  margin: 0 auto;
}

.banner-visual {
  display: grid;
  gap: 14px;
}

.banner-frame {
  min-height: 260px;
  border-radius: var(--radius-lg);
  border: 1px dashed rgba(213, 155, 173, 0.45);
  background: #fff;
  display: grid;
  place-items: center;
  font-size: 12px;
  color: var(--ink-500);
  letter-spacing: 2px;
}

.banner-strip {
  margin-top: 20px;
}

.hero-band .banner-strip {
  margin-bottom: 20px;
}

.hero-copy {
  display: grid;
  gap: 18px;
  text-align: center;
  justify-items: center;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(24px, 4.2vw, 46px);
  line-height: 1.15;
  margin: 0;
}

.hero-lead {
  margin: 0;
  color: var(--ink-500);
  line-height: 1.7;
  font-size: 16px;
}

.hero-sub {
  margin: 0;
  color: var(--ink-700);
  font-size: 14px;
  line-height: 1.6;
}

.hero-media {
  display: grid;
  gap: 16px;
  justify-items: center;
}

.container.hero .hero-media {
  justify-self: center;
  align-self: center;
}

.hero > * {
  position: relative;
  z-index: 1;
}

.hero-accent {
  font-family: var(--font-display);
  color: var(--pink-700);
  letter-spacing: 4px;
  font-size: 12px;
  text-transform: uppercase;
  margin: 0;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
}

.hero-highlights {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  font-size: 12px;
  color: var(--ink-600);
}

.hero-highlights span {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(234, 217, 222, 0.8);
  background: #fff;
  white-space: nowrap;
}


.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: var(--pink-600);
  color: #fff;
  font-weight: 600;
  letter-spacing: 1px;
  box-shadow: 0 12px 20px rgba(192, 130, 151, 0.18);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.btn.secondary {
  background: #fff;
  color: var(--ink-900);
  border-color: rgba(234, 217, 222, 0.9);
  box-shadow: none;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 28px rgba(192, 130, 151, 0.22);
}

.preview-frame {
  width: min(320px, 100%);
  max-width: 100%;
  max-height: 100%;
  aspect-ratio: 3 / 1;
  min-height: 0;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(234, 217, 222, 0.6);
  background: linear-gradient(135deg, rgba(213, 155, 173, 0.08), rgba(246, 241, 234, 0.6));
  display: grid;
  place-items: center;
  gap: 8px;
  font-family: var(--font-display);
  color: var(--pink-700);
  letter-spacing: 3px;
  position: relative;
  overflow: hidden;
  animation: float 8s ease-in-out infinite;
}

.hero .preview-frame {
  aspect-ratio: 4 / 3;
  width: min(220px, 100%);
  max-height: 70%;
}

.preview-frame.square {
  aspect-ratio: 1 / 1;
  width: min(210px, 100%);
}

.preview-frame svg {
  width: 36px;
  height: 36px;
}

.preview-frame span {
  font-size: 12px;
  letter-spacing: 2px;
}

.preview-frame::after {
  content: "";
  position: absolute;
  inset: auto 16px 16px auto;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: rgba(213, 155, 173, 0.12);
}

.promo-scroll {
  border-radius: var(--radius-lg);
  border: 1px solid rgba(234, 217, 222, 0.6);
  background: #fff;
  overflow-x: auto;
  overflow-y: hidden;
  position: relative;
  scrollbar-width: none;
  cursor: grab;
}

.promo-board {
  display: grid;
  gap: 18px;
}

.promo-strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 100%;
  gap: 18px;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 12px;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  cursor: grab;
}

.promo-strip::-webkit-scrollbar {
  display: none;
}

.promo-panel {
  scroll-snap-align: start;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(234, 217, 222, 0.8);
  background: linear-gradient(140deg, #ffffff 0%, var(--cream) 60%, var(--pink-50) 100%);
  padding: 22px;
  display: grid;
  gap: 12px;
  text-align: left;
  min-height: 320px;
}

.promo-panel.seasonal {
  background: linear-gradient(140deg, #fff 0%, #f5eee4 55%, #fdf6f7 100%);
}

.promo-panel h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 22px;
}

.promo-feature {
  border-radius: var(--radius-lg);
  border: 1px solid rgba(234, 217, 222, 0.8);
  background: linear-gradient(140deg, #ffffff 0%, var(--cream) 60%, var(--pink-50) 100%);
  padding: 20px;
  display: grid;
  gap: 12px;
  text-align: left;
  position: relative;
  overflow: hidden;
}

.promo-feature.seasonal {
  background: linear-gradient(140deg, #fff 0%, #f5eee4 55%, #fdf6f7 100%);
}

.promo-label {
  font-size: 12px;
  letter-spacing: 2px;
  color: var(--pink-700);
}

.promo-feature h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 22px;
}

.promo-feature p {
  margin: 0;
  color: var(--ink-600);
  line-height: 1.7;
}

.promo-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.promo-media {
  min-height: 140px;
  border-radius: var(--radius-md);
  border: 1px dashed rgba(213, 155, 173, 0.45);
  background: #fff;
  display: grid;
  place-items: center;
  color: var(--ink-500);
  font-size: 12px;
  letter-spacing: 2px;
}

.promo-mini {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.promo-mini-card {
  border-radius: var(--radius-md);
  border: 1px solid rgba(234, 217, 222, 0.8);
  background: #fff;
  padding: 12px;
  text-align: center;
  font-size: 12px;
  color: var(--ink-600);
}

.promo-track {
  display: flex;
  gap: 14px;
  padding: 16px;
  animation: promo-marquee 14s linear infinite;
  width: max-content;
}

.promo-scroll:hover .promo-track {
  animation-play-state: paused;
}

.promo-card {
  min-width: 180px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(234, 217, 222, 0.6);
  background: var(--pink-50);
  padding: 14px;
  display: grid;
  gap: 6px;
  font-size: 12px;
  color: var(--ink-500);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.promo-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 20px rgba(192, 130, 151, 0.12);
}

.promo-scroll::-webkit-scrollbar {
  display: none;
}

.scroll-shell {
  position: relative;
}

.scroll-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(234, 217, 222, 0.9);
  background: #fff;
  color: var(--pink-700);
  display: grid;
  place-items: center;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 12px 24px rgba(192, 130, 151, 0.16);
  z-index: 2;
}

.scroll-arrow.left {
  left: -22px;
}

.scroll-arrow.right {
  right: -22px;
}

.scroll-shell:hover .scroll-arrow {
  opacity: 1;
  pointer-events: auto;
}

.scroll-arrow:hover {
  transform: translateY(-50%) scale(1.05);
}

.promo-thumb {
  height: 68px;
  border-radius: var(--radius-sm);
  border: 1px dashed rgba(213, 155, 173, 0.45);
  background: linear-gradient(140deg, #ffffff 0%, var(--cream) 60%, var(--pink-100) 100%);
  display: grid;
  place-items: center;
  font-size: 11px;
  color: var(--ink-500);
  letter-spacing: 1px;
}

.promo-card strong {
  font-size: 14px;
  color: var(--ink-900);
}

@keyframes promo-marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.tab-bar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 20px;
  justify-content: center;
}

.tab-btn {
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid rgba(234, 217, 222, 0.8);
  background: #fff;
  font-size: 13px;
  color: var(--ink-700);
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease;
}

.tab-btn.active {
  background: var(--pink-100);
  color: var(--pink-700);
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

.icon-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
}

.icon-item {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid rgba(234, 217, 222, 0.8);
  background: #fff;
  font-size: 13px;
  color: var(--ink-700);
}

.icon-circle {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid rgba(234, 217, 222, 0.8);
  display: grid;
  place-items: center;
  color: var(--pink-700);
}

.vision-stack {
  display: grid;
  gap: 16px;
}

.vision-item {
  border-radius: var(--radius-lg);
  border: 1px solid rgba(234, 217, 222, 0.8);
  background: #fff;
  padding: 18px;
  text-align: center;
  justify-items: center;
}

.vision-item h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 20px;
  text-align: center;
}

.vision-item p {
  margin: 8px 0 0;
  color: var(--ink-500);
  line-height: 1.7;
  text-align: center;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 24px;
}

.badge {
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid rgba(234, 217, 222, 0.9);
  background: rgba(255, 255, 255, 0.85);
  font-size: 13px;
  color: var(--ink-700);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 18px;
  margin-top: 32px;
}

.stat-card {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 20px;
  border: 1px solid rgba(234, 217, 222, 0.8);
  box-shadow: 0 12px 24px rgba(213, 155, 173, 0.14);
}

.stat-value {
  font-size: 28px;
  font-weight: 700;
  color: var(--pink-700);
  font-family: var(--font-display);
}

.series-scroll {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(240px, 1fr);
  gap: 18px;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 18px;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  cursor: grab;
}

.popular-scroll {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(240px, 1fr);
  gap: 18px;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 18px;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  cursor: grab;
}

.series-scroll:active,
.popular-scroll:active,
.promo-scroll:active,
.promo-strip:active {
  cursor: grabbing;
}

.series-scroll::-webkit-scrollbar {
  display: none;
}

.popular-scroll::-webkit-scrollbar {
  display: none;
}

.series-card {
  scroll-snap-align: start;
  background: #fff;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(234, 217, 222, 0.8);
  padding: 22px;
  min-height: 180px;
  display: grid;
  gap: 12px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}

.series-preview {
  width: min(180px, 100%);
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-md);
  border: 1px solid rgba(234, 217, 222, 0.6);
  background: var(--pink-50);
  display: grid;
  place-items: center;
  place-content: center;
  gap: 8px;
  text-align: center;
  font-size: 12px;
  color: var(--ink-500);
  overflow: hidden;
}

.series-preview svg {
  width: 30px;
  height: 30px;
}

.series-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.series-preview span {
  font-size: 11px;
  color: var(--ink-500);
}

.popular-card {
  scroll-snap-align: start;
  background: #fff;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(234, 217, 222, 0.8);
  padding: 18px;
  min-height: 200px;
  display: grid;
  gap: 12px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
  justify-items: center;
}

.popular-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 24px rgba(192, 130, 151, 0.12);
}

.popular-card .product-actions {
  justify-content: center;
}

.special-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

.special-card {
  border-radius: var(--radius-lg);
  border: 1px solid rgba(234, 217, 222, 0.8);
  background: #fff;
  padding: 18px;
  display: grid;
  gap: 12px;
  text-align: center;
  justify-items: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  min-height: 200px;
  scroll-snap-align: start;
}

.special-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 26px rgba(58, 39, 45, 0.08);
}

.special-title {
  font-weight: 600;
}

.special-price {
  font-size: 14px;
  font-weight: 700;
  color: var(--pink-700);
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
}

.price-original {
  font-size: 12px;
  font-weight: 400;
  color: var(--ink-500);
  text-decoration: line-through;
}

.gift-note {
  display: inline-block;
  margin: 4px 0 8px;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(214, 51, 108, 0.08);
  color: var(--pink-700);
  font-size: 13px;
  font-weight: 600;
}

.color-picker {
  margin: 8px 0 4px;
  display: grid;
  gap: 8px;
}

.color-picker-label {
  font-size: 13px;
  color: var(--ink-500);
}

.color-picker-label strong {
  color: var(--ink-900, #333);
}

.color-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.color-option {
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(234, 217, 222, 0.9);
  background: #fff;
  font-size: 13px;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.color-option:hover,
.color-option:focus-visible {
  border-color: var(--pink-700);
  transform: translateY(-1px);
}

.color-option.active {
  background: var(--pink-700);
  border-color: var(--pink-700);
  color: #fff;
  font-weight: 600;
}

.spec-image {
  max-width: 860px;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(234, 217, 222, 0.8);
}

.spec-image img {
  display: block;
  width: 100%;
  height: auto;
}

/* 原廠型錄圖：跟站內卡片同一套外框（白底、圓角、細邊、陰影），
   上面留出足夠距離並加小標，讓它跟文字規格區明確分段。 */
.spec-gallery {
  margin-top: 44px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 30px 32px 32px;
  box-shadow: var(--shadow);
}

.spec-gallery-head {
  margin-bottom: 22px;
}

.spec-gallery-head h3 {
  margin: 0 0 4px;
  font-size: 1.28rem;
  color: var(--ink-900);
  letter-spacing: 0.02em;
}

.spec-gallery-head .spec-en {
  margin: 0;
  font-size: 0.8rem;
  letter-spacing: 0.26em;
  color: var(--pink-600);
  text-transform: uppercase;
}

/* 產品詳細資訊可放多張，往下堆疊 */
.spec-image-stack {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.spec-gallery .spec-image {
  max-width: 100%;
  border-radius: 14px;
  background: var(--cream);
}

@media (max-width: 720px) {
  .spec-gallery {
    padding: 22px 18px 24px;
    border-radius: 18px;
  }
}

.faq-category-title {
  margin: 28px 0 12px;
  font-size: 17px;
  color: var(--pink-700);
}

.faq-category-title:first-child {
  margin-top: 0;
}

.popular-title {
  font-weight: 600;
}

.popular-price {
  font-size: 14px;
  font-weight: 700;
  color: var(--pink-700);
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
}

.product-item-price .price-original {
  margin-right: 6px;
}

.series-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 24px rgba(192, 130, 151, 0.12);
}

.series-card,
.banner-card,
.detail-info,
.faq-item {
  text-align: left;
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.icon-badge {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--pink-100);
  display: grid;
  place-items: center;
  color: var(--pink-700);
  border: 1px solid rgba(234, 217, 222, 0.8);
}

.icon-badge svg {
  width: 22px;
  height: 22px;
}

.value-card,
.story-card,
.support-card,
.testimonial-card,
.group-card {
  border-radius: var(--radius-lg);
  border: 1px solid rgba(234, 217, 222, 0.8);
  background: #fff;
  padding: 12px;
  display: grid;
  gap: 10px;
  text-align: center;
  justify-items: center;
  grid-template-rows: auto auto 1fr auto;
  align-content: start;
  min-height: 320px;
}

.group-card .tag-list {
  justify-content: center;
}

.group-card .btn {
  justify-self: center;
}

.group-card .series-preview {
  width: min(180px, 100%);
  aspect-ratio: 1 / 1;
  min-height: 0;
  border-radius: var(--radius-md);
  border: 1px solid rgba(234, 217, 222, 0.6);
  background: var(--pink-50);
  display: grid;
  place-items: center;
  font-size: 12px;
  color: var(--ink-500);
}

.group-card {
  height: 100%;
}


.value-card h3,
.story-card h3,
.support-card h3,
.testimonial-card h3,
.group-card h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 20px;
  min-height: 48px;
}

.value-card p,
.story-card p,
.support-card p,
.testimonial-card p,
.group-card p {
  margin: 0;
  color: var(--ink-600);
  line-height: 1.7;
}

.testimonial-card strong {
  font-size: 13px;
  color: var(--ink-700);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.group-card .tag-list {
  justify-content: center;
}

.tag-list span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 12px;
  min-width: 92px;
  height: 30px;
  border-radius: 999px;
  background: var(--pink-50);
  border: 1px solid rgba(234, 217, 222, 0.8);
  font-size: 12px;
  color: var(--ink-500);
  white-space: nowrap;
}

body[data-page="products"] .tag-list {
  gap: 8px;
  justify-content: center;
  display: flex;
  flex-wrap: wrap;
}

.product-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  justify-items: center;
}

.product-tabs .tab-btn {
  width: 100%;
}

@media (max-width: 820px) {
  .product-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .product-tabs {
    grid-template-columns: 1fr;
  }
}

.accessory-grid {
  max-width: 1080px;
  margin: 0 auto;
}

body[data-page="products"] .tag-list span {
  padding: 0 12px;
  min-width: 92px;
  height: 30px;
  font-size: 12px;
}

.quote {
  margin: 0;
  padding: 16px;
  border-radius: var(--radius-md);
  background: var(--pink-50);
  border: 1px solid rgba(234, 217, 222, 0.8);
  font-size: 14px;
  color: var(--ink-700);
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 6px;
  font-size: 13px;
  color: var(--ink-600);
}

.material-details,
.material-details .feature-list {
  text-align: center;
  justify-items: center;
}

.material-showcase {
  margin-top: 24px;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(234, 217, 222, 0.8);
  background: #fff;
  padding: 20px;
  display: grid;
  gap: 18px;
  text-align: center;
  box-shadow: 0 18px 36px rgba(58, 39, 45, 0.08);
}

.material-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.material-step {
  border-radius: var(--radius-md);
  border: 1px solid rgba(234, 217, 222, 0.8);
  background: var(--cream);
  padding: 14px 12px;
  display: grid;
  gap: 6px;
  text-align: center;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border 0.3s ease, background 0.3s ease;
}

.material-step .step-title {
  font-family: var(--font-display);
  font-size: 16px;
  color: var(--ink-900);
}

.material-step .step-desc {
  font-size: 12px;
  color: var(--ink-500);
}

.material-step.active,
.material-step:hover {
  background: var(--pink-50);
  border-color: rgba(213, 155, 173, 0.7);
  box-shadow: 0 12px 22px rgba(192, 130, 151, 0.14);
  transform: translateY(-2px);
}

.material-steps.animate .material-step {
  animation: statIn 0.6s ease forwards;
  animation-delay: var(--delay, 0ms);
}

.material-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.material-tab {
  border: 1px solid rgba(234, 217, 222, 0.9);
  background: #fff;
  color: var(--ink-700);
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 13px;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.material-tab.active {
  background: var(--pink-100);
  color: var(--pink-700);
  box-shadow: 0 10px 18px rgba(213, 155, 173, 0.18);
}

.material-panel {
  display: none;
  gap: 14px;
  animation: panelFade 0.5s ease;
}

.material-panel.active {
  display: grid;
}

.material-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 12px;
  justify-items: center;
}

.stat-card {
  width: 100%;
  border-radius: var(--radius-md);
  border: 1px solid rgba(234, 217, 222, 0.8);
  background: var(--cream);
  padding: 12px 10px;
  display: grid;
  gap: 4px;
  text-align: center;
  opacity: 0;
  transform: translateY(10px) scale(0.98);
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.stat-card.active,
.stat-card:hover {
  background: var(--pink-50);
  border-color: rgba(213, 155, 173, 0.7);
  box-shadow: 0 12px 20px rgba(192, 130, 151, 0.14);
  transform: translateY(-2px) scale(1);
}

.material-stats.animate .stat-card {
  animation: statIn 0.6s ease forwards;
  animation-delay: var(--delay, 0ms);
}

.stat-number {
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--pink-700);
}

.stat-label {
  font-size: 12px;
  color: var(--ink-600);
}

.material-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.material-pill {
  border: 1px solid rgba(234, 217, 222, 0.9);
  background: #fff;
  color: var(--ink-700);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.material-pill.active {
  background: var(--pink-100);
  color: var(--pink-700);
  box-shadow: 0 8px 16px rgba(213, 155, 173, 0.18);
}

.material-detail {
  min-height: 24px;
  font-size: 13px;
  color: var(--ink-600);
  text-align: center;
  transition: opacity 0.3s ease;
}

.material-detail.animate {
  animation: detailIn 0.4s ease;
}

.material-head h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 20px;
}

.material-head p {
  margin: 8px 0 0;
  color: var(--ink-600);
  line-height: 1.7;
}

.material-features {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
  justify-items: center;
  font-size: 13px;
  color: var(--ink-600);
}

.material-features li {
  opacity: 0;
  transform: translateY(10px);
}

.material-features.animate li {
  animation: featureIn 0.6s ease forwards;
  animation-delay: var(--delay, 0ms);
}

@keyframes panelFade {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes featureIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes statIn {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes detailIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.feature-list li {
  display: grid;
  grid-template-columns: 10px 1fr;
  gap: 8px;
  align-items: start;
}

.feature-list li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--pink-600);
  margin-top: 6px;
}

.hero-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.hero-links a {
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid rgba(234, 217, 222, 0.8);
  font-size: 13px;
  color: var(--ink-700);
}

.hero-links a:hover {
  background: var(--pink-50);
  color: var(--pink-700);
}

.vision-columns {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.vision-columns .vision-item {
  border-radius: var(--radius-lg);
  border: 1px solid rgba(234, 217, 222, 0.8);
  padding: 24px;
  background: #fff;
  text-align: left;
}

.vision-columns .vision-item h3 {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--ink-900);
}

.social-icons {
  display: flex;
  gap: 12px;
  margin-top: 16px;
  justify-content: center;
}

.social-icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  border: 1px solid rgba(234, 217, 222, 0.9);
  display: grid;
  place-items: center;
  color: #6f666b;
  background: #f7f3f4;
  transition: transform 0.3s ease;
}

.social-icon svg {
  width: 22px;
  height: 22px;
}

.social-text {
  font-size: 12px;
  letter-spacing: 1px;
  font-weight: 600;
  line-height: 1;
}

.social-icon.instagram {
  color: #6f666b;
}

.social-icon.facebook {
  color: #5f6b78;
}

.social-icon.line {
  color: #5e6b62;
}

.social-icon:hover {
  transform: translateY(-2px);
}

.group-block {
  display: grid;
  gap: 16px;
  margin-bottom: 32px;
}

.group-block h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--ink-900);
  text-align: left;
}

.subgroup-block {
  display: grid;
  gap: 12px;
  margin-bottom: 18px;
}

.subgroup-block h4 {
  margin: 0;
  font-size: 16px;
  color: var(--ink-700);
  text-align: left;
}

.pill-link {
  font-size: 13px;
  color: var(--pink-700);
  font-weight: 600;
}

.series-id {
  font-size: 13px;
  color: var(--pink-700);
  font-weight: 700;
  letter-spacing: 2px;
}

.series-title {
  font-family: var(--font-display);
  font-size: 20px;
}

.series-desc {
  font-size: 14px;
  color: var(--ink-500);
  line-height: 1.6;
}

.pill-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  justify-content: center;
  justify-items: center;
  align-items: stretch;
}

.pill-grid.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.pill-card {
  border-radius: var(--radius-lg);
  background: #fff;
  padding: 18px;
  border: 1px solid rgba(234, 217, 222, 0.8);
  display: grid;
  gap: 10px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
  justify-items: center;
}

.spirit-grid .pill-card {
  min-height: 140px;
  gap: 6px;
}

.spirit-grid .pill-title {
  line-height: 1.2;
  margin-bottom: 0;
}

.spirit-grid .section-subtitle {
  line-height: 1.35;
  margin-top: 0;
}

.pill-card .section-subtitle {
  text-align: center;
  margin: 0;
}

.pill-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 24px rgba(192, 130, 151, 0.12);
}

.pill-title {
  font-weight: 700;
}

.timeline {
  display: grid;
  gap: 20px;
}

.timeline-item {
  padding: 20px;
  border-radius: var(--radius-lg);
  background: #fff;
  border: 1px solid rgba(234, 217, 222, 0.8);
  position: relative;
  text-align: center;
  justify-items: center;
}

.timeline-item::before {
  content: "";
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: 10px;
  height: 10px;
  background: var(--pink-600);
  border-radius: 50%;
  box-shadow: 0 0 0 6px rgba(213, 155, 173, 0.2);
}

.timeline-year {
  font-size: 14px;
  color: var(--ink-500);
  margin: 12px 0 0;
  text-align: center;
}

.timeline-title {
  font-family: var(--font-display);
  font-size: 20px;
  margin: 6px 0 8px;
  text-align: center;
}

.timeline-desc {
  margin: 0;
  color: var(--ink-500);
  line-height: 1.7;
  text-align: center;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.product-card {
  background: #fff;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(234, 217, 222, 0.8);
  padding: 20px;
  display: grid;
  gap: 10px;
  box-shadow: none;
}

.product-title {
  font-family: var(--font-display);
  font-size: 20px;
}

.product-subtitle {
  color: var(--ink-500);
  font-size: 14px;
}

.product-summary-text {
  display: grid;
  gap: 4px;
}

.product-note {
  font-size: 13px;
  color: var(--ink-500);
  margin: 0;
}

.product-list {
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.product-list li {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  font-size: 14px;
  line-height: 1.6;
  border-bottom: 1px dashed rgba(234, 217, 222, 0.6);
  padding-bottom: 8px;
}

.product-details summary {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  cursor: pointer;
  list-style: none;
}

.product-details summary::-webkit-details-marker {
  display: none;
}

.product-details {
  display: grid;
  gap: 12px;
}

.summary-cta {
  font-size: 12px;
  color: var(--pink-600);
  letter-spacing: 1px;
}

.summary-cta::before {
  content: "展開";
}

.product-details[open] .summary-cta::before {
  content: "收合";
}

.product-body {
  border-top: 1px solid rgba(234, 217, 222, 0.6);
  padding-top: 12px;
  display: grid;
  gap: 12px;
}

.group-details {
  padding-top: 8px;
  border-top: 1px dashed rgba(234, 217, 222, 0.5);
}

.group-details summary {
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  list-style: none;
}

.group-details summary::-webkit-details-marker {
  display: none;
}

.group-details[open] summary {
  color: var(--pink-700);
}

.product-group,
.product-section {
  margin-top: 14px;
}

.product-group h4,
.product-section h4 {
  margin: 0 0 10px;
  font-size: 15px;
  color: var(--ink-700);
}

.price-tag {
  color: var(--pink-700);
  font-weight: 600;
}

.original {
  color: var(--ink-500);
  text-decoration: line-through;
  font-size: 12px;
  margin-right: 6px;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-bottom: 24px;
  justify-content: center;
}

.filter-input {
  flex: 1 1 220px;
  padding: 12px 16px;
  border-radius: 999px;
  border: 1px solid rgba(234, 217, 222, 0.9);
  background: #fff;
  font-size: 14px;
  text-align: center;
}

.filter-chip {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(234, 217, 222, 0.9);
  background: rgba(255, 255, 255, 0.8);
  font-size: 13px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.filter-chip.active {
  background: var(--pink-100);
}

.store-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

.store-card {
  background: #fff;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(234, 217, 222, 0.8);
  padding: 18px;
  display: grid;
  gap: 8px;
  text-align: center;
  justify-items: center;
}

.store-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 8px;
}

.store-card h4 {
  margin: 0;
  font-size: 18px;
}

.region-title {
  margin: 40px 0 16px;
  font-family: var(--font-display);
  font-size: 24px;
  color: var(--pink-700);
  text-align: center;
}

.store-meta {
  font-size: 13px;
  color: var(--ink-500);
  line-height: 1.6;
}

.notice-card {
  border-radius: var(--radius-lg);
  background: var(--cream);
  border: 1px solid rgba(234, 217, 222, 0.8);
  padding: 18px;
  box-shadow: none;
  text-align: center;
  justify-items: center;
  display: grid;
  gap: 12px;
  align-content: center;
  place-items: center;
}

.notice-card .section-subtitle {
  margin: 0;
}

.notice-card .section-title {
  margin: 0;
}

.notice-card .pill-grid {
  width: 100%;
  max-width: 840px;
  margin: 0 auto;
  justify-items: center;
}

body[data-page="faq"] .notice-card {
  min-height: 280px;
  padding: 26px;
}

.report-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

.report-card {
  padding: 18px;
  border-radius: var(--radius-lg);
  background: #fff;
  border: 1px solid rgba(234, 217, 222, 0.8);
  position: relative;
  overflow: hidden;
  text-align: center;
  justify-items: center;
  display: grid;
  gap: 10px;
}

.report-card .section-subtitle {
  margin: 0;
  line-height: 1.6;
}

.report-card .btn {
  align-self: center;
  width: auto;
  max-width: 100%;
  white-space: nowrap;
  font-size: 13px;
  padding: 9px 18px;
}

.report-card::after {
  content: "";
  position: absolute;
  inset: auto -60px -60px auto;
  width: 140px;
  height: 140px;
  background: rgba(213, 155, 173, 0.08);
  border-radius: 50%;
}

.faq-list {
  display: grid;
  gap: 14px;
}

.faq-item {
  border-radius: var(--radius-md);
  border: 1px solid rgba(234, 217, 222, 0.8);
  background: #fff;
  padding: 14px 18px;
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  font-weight: 600;
}

.faq-answer {
  margin-top: 10px;
  color: var(--ink-500);
  line-height: 1.7;
  display: none;
}

.faq-item.open .faq-answer {
  display: block;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.contact-grid.centered {
  justify-items: center;
  justify-content: center;
  grid-template-columns: minmax(0, 1fr);
}

.contact-grid.centered .contact-card {
  width: min(100%, 420px);
  margin: 0 auto;
}

.contact-card {
  padding: 22px;
  border-radius: var(--radius-lg);
  background: #fff;
  border: 1px solid rgba(234, 217, 222, 0.8);
  text-align: center;
  justify-items: center;
}

.contact-card form {
  display: grid;
  gap: 8px;
  justify-items: center;
  width: 100%;
}

.form-field {
  width: 100%;
  max-width: 360px;
  text-align: center;
}

body[data-page="contact"] .form-field {
  max-width: 520px;
  margin-bottom: 8px;
  gap: 4px;
}

body[data-page="contact"] .form-field label {
  font-size: 13px;
  line-height: 1.2;
}

body[data-page="contact"] .form-field input,
body[data-page="contact"] .form-field textarea {
  padding: 10px 14px;
  line-height: 1.2;
}

.form-field {
  display: grid;
  gap: 6px;
  margin-bottom: 12px;
}

.form-field input,
.form-field textarea {
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(234, 217, 222, 0.9);
  font-size: 14px;
  font-family: inherit;
}

.footer {
  padding: 60px 0 40px;
  background: #fff;
  border-top: 1px solid rgba(234, 217, 222, 0.6);
}

.footer-top {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  align-items: start;
  max-width: 860px;
  margin: 0 auto;
}

.footer-col {
  display: grid;
  gap: 10px;
  text-align: center;
  justify-items: center;
}

.footer h4 {
  margin: 0 0 12px;
  font-size: 16px;
}

.footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
  font-size: 14px;
  color: var(--ink-500);
}

.footer-col ul {
  justify-items: center;
}


.footer-bottom {
  margin-top: 32px;
  font-size: 12px;
  color: var(--ink-500);
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  align-items: center;
  text-align: center;
  line-height: 1.6;
}

.footer-flags {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-flags .flag-label {
  font-size: 12px;
  color: var(--ink-500);
}

.quick-panel {
  position: fixed;
  inset: 0;
  background: rgba(42, 34, 37, 0.2);
  display: grid;
  place-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 40;
}

.quick-panel.open {
  opacity: 1;
  pointer-events: auto;
}

.quick-panel-inner {
  width: min(420px, 90vw);
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 24px;
  border: 1px solid rgba(234, 217, 222, 0.9);
  box-shadow: var(--shadow);
  display: grid;
  gap: 16px;
}

.quick-panel-title {
  font-family: var(--font-display);
  font-size: 20px;
}

.icon-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--pink-600);
  color: #fff;
  font-size: 10px;
  display: none;
  place-items: center;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  justify-content: center;
  justify-items: center;
  align-items: stretch;
}

.category-grid.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.category-grid.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.category-card {
  border-radius: var(--radius-lg);
  border: 1px solid rgba(234, 217, 222, 0.9);
  background: #fff;
  padding: 12px;
  display: grid;
  gap: 8px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
  justify-items: center;
  width: 100%;
  max-width: 300px;
  grid-template-rows: auto auto 1fr auto;
  align-content: start;
  min-height: 320px;
}

.category-card .series-preview {
  width: min(140px, 100%);
}

.category-card .category-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 20px;
  min-height: 48px;
}

.category-card .category-meta {
  margin: 0;
  color: var(--ink-600);
  font-size: 13px;
  line-height: 1.6;
  min-height: 48px;
}

.category-card .btn {
  justify-self: center;
  margin-top: auto;
}

.category-page .category-card {
  max-width: 260px;
  min-height: 280px;
  padding: 10px;
  gap: 6px;
}

.category-page .hero {
  padding-top: clamp(22px, 4.5vw, 54px);
  padding-bottom: clamp(26px, 5vw, 60px);
}

.category-page .hero-copy {
  gap: 22px;
}

.category-page .hero-lead {
  font-size: 15px;
  line-height: 1.65;
  max-width: 520px;
}

.category-page .category-card .series-preview {
  width: min(120px, 100%);
}

.category-page .category-card .category-title {
  font-size: 18px;
  min-height: 40px;
}

.category-page .category-card .category-meta {
  font-size: 12px;
  min-height: 40px;
}

.category-page .banner-card {
  grid-template-columns: minmax(120px, 180px) 1fr;
  gap: 14px;
}

.category-page .banner-media {
  width: 120px;
  margin: 0 auto;
}

.group-card .btn {
  margin-top: auto;
}

body[data-page="products"] #product-groups .pill-grid.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(220px, 300px));
  justify-content: center;
}

body[data-page="products"] #product-groups .group-card {
  width: 100%;
  max-width: 300px;
}

body[data-page="categories"] .category-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  justify-content: center;
  max-width: 1080px;
  margin: 0 auto;
  grid-auto-rows: 1fr;
}

body[data-page="categories"] .category-card {
  max-width: none;
  height: 100%;
}

@media (max-width: 1100px) {
  body[data-page="categories"] .category-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  body[data-page="categories"] .category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  body[data-page="categories"] .category-grid {
    grid-template-columns: 1fr;
  }
}

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 28px rgba(58, 39, 45, 0.08);
}

.category-label {
  font-size: 12px;
  letter-spacing: 2px;
  color: var(--pink-700);
}

.category-title {
  font-family: var(--font-display);
  font-size: 20px;
}

.category-meta {
  font-size: 13px;
  color: var(--ink-500);
}

.category-count {
  font-size: 12px;
  color: var(--ink-500);
}

.category-actions {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  justify-content: center;
}

.product-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px dashed rgba(234, 217, 222, 0.6);
  align-items: center;
}

.product-item:last-child {
  border-bottom: none;
}

.product-item-name {
  font-weight: 600;
  color: var(--ink-900);
}

.product-item-price {
  font-size: 13px;
  color: var(--pink-700);
}

.banner-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.banner-card {
  border-radius: var(--radius-lg);
  border: 1px solid rgba(234, 217, 222, 0.8);
  background: #fff;
  padding: 18px;
  display: grid;
  grid-template-columns: minmax(180px, 260px) 1fr;
  gap: 18px;
  align-items: center;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.banner-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 20px rgba(192, 130, 151, 0.12);
}

.banner-card:focus-visible {
  outline: 2px solid var(--pink-400);
  outline-offset: 2px;
}

.banner-media {
  min-height: 0;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-md);
  border: 1px dashed rgba(213, 155, 173, 0.45);
  background: var(--pink-50);
  display: grid;
  place-items: center;
  gap: 6px;
  text-align: center;
  font-size: 12px;
  color: var(--ink-500);
  overflow: hidden;
}

.banner-media svg {
  width: 26px;
  height: 26px;
}

.banner-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.banner-media span {
  font-size: 11px;
  color: var(--ink-500);
}

.banner-body {
  display: grid;
  gap: 8px;
}

.product-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.item-card .product-actions {
  justify-content: flex-start;
}

.btn.small {
  padding: 8px 14px;
  font-size: 12px;
  min-width: 88px;
  text-align: center;
}

.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(42, 34, 37, 0.25);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 1250;
}

.cart-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.cart-drawer {
  /* 動 transform 而不是 right：動 right 每一幀都要重新排版，手機上就是掉幀卡頓 */
  position: fixed;
  top: 0;
  right: 0;
  width: min(380px, 90vw);
  height: 100%;
  background: #fff;
  border-left: 1px solid rgba(234, 217, 222, 0.9);
  box-shadow: -10px 0 30px rgba(58, 39, 45, 0.08);
  padding: 24px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 18px;
  transform: translate3d(105%, 0, 0);
  visibility: hidden;
  will-change: transform;
  transition: transform 0.34s cubic-bezier(0.22, 1, 0.36, 1), visibility 0.34s linear;
  z-index: 1260;
}

.cart-drawer.open {
  transform: translate3d(0, 0, 0);
  visibility: visible;
}

@media (prefers-reduced-motion: reduce) {
  .cart-drawer { transition: none; }
}

.cart-title {
  font-family: var(--font-display);
  font-size: 20px;
}

.cart-items {
  display: grid;
  gap: 14px;
  overflow-y: auto;
}

.cart-item {
  display: grid;
  gap: 6px;
  border-bottom: 1px dashed rgba(234, 217, 222, 0.6);
  padding-bottom: 10px;
}

.cart-item-title {
  font-weight: 600;
}

.cart-item-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--ink-500);
}

.cart-summary {
  display: grid;
  gap: 10px;
  font-size: 14px;
}

.cart-empty {
  font-size: 14px;
  color: var(--ink-500);
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
  align-items: start;
}

.detail-grid.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.pill-grid.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.pill-grid.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.detail-media {
  min-height: 280px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(234, 217, 222, 0.8);
  background: linear-gradient(140deg, #ffffff 0%, var(--cream) 60%, var(--pink-50) 100%);
  display: grid;
  gap: 12px;
  text-align: center;
  padding: 20px;
  color: var(--pink-700);
  font-family: var(--font-display);
  align-content: start;
}

.detail-media svg {
  width: 40px;
  height: 40px;
}

.detail-media span {
  font-size: 16px;
  color: var(--ink-700);
}

.media-stage {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid rgba(234, 217, 222, 0.6);
  background: #fff;
  display: grid;
  place-items: center;
}

.media-stage img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.media-stage.icon {
  background: transparent;
  border: none;
  gap: 8px;
}

.media-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.media-thumb {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  border: 1px solid rgba(213, 155, 173, 0.45);
  background: #fff;
  padding: 0;
  overflow: hidden;
  cursor: pointer;
  opacity: 0.7;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease, border-color 0.2s ease;
}

.media-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.media-thumb:hover {
  transform: translateY(-2px);
  opacity: 0.95;
}

.media-thumb.active {
  opacity: 1;
  border-color: var(--pink-500);
  box-shadow: 0 8px 16px rgba(192, 130, 151, 0.18);
}

.detail-info {
  display: grid;
  gap: 14px;
}

.price-large {
  font-size: 24px;
  font-weight: 600;
  color: var(--pink-700);
}

.highlight-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 6px;
  font-size: 14px;
  color: var(--ink-500);
}

.spec-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 6px;
  font-size: 14px;
  color: var(--ink-700);
}

.search-results {
  display: grid;
  gap: 12px;
}

.reveal {
  opacity: 0;
  transform: translateY(26px) scale(0.98);
  filter: blur(6px);
  transition: opacity 0.8s ease, transform 0.8s ease, filter 0.8s ease;
}

.reveal.is-inview {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}

.reveal[data-anim="right"] {
  transform: translateX(30px) scale(0.98);
}

.reveal[data-anim="left"] {
  transform: translateX(-30px) scale(0.98);
}

.reveal[data-anim="right"].is-inview,
.reveal[data-anim="left"].is-inview {
  transform: translateX(0) scale(1);
}

@media (max-width: 900px) {
  .header-inner {
    position: relative;
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    row-gap: 10px;
    justify-items: center;
    align-items: center;
  }

  .header-left,
  .header-right {
    justify-content: center;
  }

  .header-left {
    width: 100%;
    justify-self: center;
    justify-content: center;
  }


  .header-right {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    margin-top: 0;
    justify-self: end;
    justify-content: flex-end;
  }

  .menu-toggle {
    display: grid;
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
  }

  .site-header.nav-open .menu-toggle {
    position: fixed;
    top: 14px;
    left: 16px;
    transform: none;
    z-index: 30;
  }

  .site-header.nav-open .header-right {
    position: fixed;
    top: 14px;
    right: 16px;
    transform: none;
    z-index: 30;
  }

  .site-header.nav-open .logo {
    margin: 0 auto;
  }

  .main-nav {
    order: 3;
    grid-column: 1 / -1;
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 12px 0 4px;
  }

  .nav-item {
    width: 100%;
    flex-direction: column;
    align-items: center;
  }

  .nav-dropdown {
    position: static;
    transform: none;
    width: 100%;
    border: none;
    box-shadow: none;
    background: transparent;
    padding: 6px 0;
    display: none;
    flex-wrap: wrap;
    overflow-x: visible;
  }

  .nav-item.has-dropdown.open .nav-dropdown {
    display: flex;
  }

  .nav-item.has-dropdown.open .nav-dropdown.mega-menu {
    display: grid;
  }

  .site-header.nav-open .main-nav {
    display: flex;
  }

  .main-nav .nav-search {
    display: inline-flex;
  }

  .main-nav a {
    font-size: 14px;
    padding: 6px 4px;
    letter-spacing: 0;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-copy {
    align-items: center;
    text-align: center;
  }

  .hero-media {
    justify-self: center;
    width: 100%;
  }

  .hero-media .preview-frame {
    width: min(200px, 100%);
  }

  .hero-band .container {
    padding: 0 5vw;
  }

  .nav-dropdown.mega-menu {
    display: none !important;
  }

  .hero {
    padding: 24px;
  }

  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }

  .pill-grid.grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pill-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .contact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .promo-mini {
    grid-template-columns: 1fr;
  }

  .category-grid,
  .store-grid,
  .report-grid,
  .value-grid,
  .story-grid,
  .support-grid,
  .testimonial-grid {
    grid-template-columns: 1fr;
  }

  body[data-page="categories"] .category-grid {
    grid-template-columns: 1fr;
    max-width: 100%;
  }

  .footer-top {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    max-width: 300px;
  }

  .footer-col.contact-col {
    grid-column: 1 / -1;
  }

}

@media (max-width: 600px) {
  body {
    font-size: 14px;
    line-height: 1.6;
  }

  .section-title {
    font-size: 22px;
  }

  .section-subtitle {
    font-size: 12px;
  }

  .section-kicker {
    font-size: 11px;
  }

  .logo-img {
    width: 110px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .hero-banner .hero-actions {
    gap: 8px;
  }

  .hero-banner .btn {
    padding: 8px 16px;
    font-size: 11px;
  }

  .hero-banner::before,
  .hero-banner::after {
    opacity: 0.3;
    transform: scale(0.8);
  }

  .hero-banner .scroll-arrow {
    opacity: 1;
    pointer-events: auto;
  }

  .hero-banner .scroll-arrow.left {
    left: -8px;
  }

  .hero-banner .scroll-arrow.right {
    right: -8px;
  }

  .hero,
  .hero-banner {
    padding: 12px;
  }

  .hero-banner {
    aspect-ratio: 4 / 3;
  }

  .hero .preview-frame {
    width: min(150px, 100%);
    max-height: 60%;
  }

  .hero-scroll {
    height: auto;
    overflow-x: auto;
    overflow-y: hidden;
  }

  .hero-slide {
    height: auto;
    padding: 16px 18px;
  }


  .hero-title {
    font-size: 17px;
  }

  .hero-lead {
    font-size: 11px;
  }

  .hero-sub {
    font-size: 10px;
    display: block;
  }

  .hero-copy {
    gap: 8px;
  }

  .hero-highlights {
    gap: 6px;
    font-size: 10px;
  }

  .hero-highlights span {
    padding: 5px 10px;
  }

  .header-right {
    margin-top: 6px;
  }

  .main-nav {
    gap: 10px;
  }

  .main-nav a {
    font-size: 12px;
  }

  .section {
    padding: 72px 0;
  }

  .section.compact {
    padding: 48px 0;
  }

  .product-item {
    grid-template-columns: 1fr;
  }

  .product-actions {
    justify-content: flex-start;
  }

  .banner-card {
    grid-template-columns: 1fr;
  }

  .pill-grid,
  .pill-grid.grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  body[data-page="products"] #product-groups .pill-grid.grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 100%;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  body[data-page="categories"] .category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 100%;
  }

  .mega-sub {
    grid-template-columns: 1fr;
  }

}

/* 結帳表單驗證與成功畫面 */
.field-error {
  border-color: #d06a6a !important;
  box-shadow: 0 0 0 3px rgba(208, 106, 106, 0.15);
}

.field-error-msg {
  margin: 6px 0 0;
  font-size: 0.82rem;
  color: #c0504f;
}

.order-success {
  text-align: center;
  padding: 34px 20px;
  display: grid;
  gap: 12px;
  justify-items: center;
}

.order-success-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--pink-600);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 1.6rem;
}

.order-success h3 {
  margin: 0;
  font-size: 1.3rem;
  color: var(--ink-900);
}

.order-success p {
  margin: 0;
  color: var(--ink-700);
  line-height: 1.7;
}

.order-success-items {
  font-size: 0.9rem;
  color: var(--ink-500);
}

/* 產品詳細資訊（結構化規格區塊） */
.spec-blocks{display:grid;gap:26px;margin-top:8px}
.spec-block{background:#fff;border:1px solid var(--line);border-radius:22px;padding:30px 32px;box-shadow:var(--shadow)}
.spec-block h3{margin:0 0 4px;font-size:1.28rem;color:var(--ink-900);letter-spacing:.02em}
.spec-block .spec-en{margin:0 0 20px;font-size:.8rem;letter-spacing:.26em;color:var(--pink-600);text-transform:uppercase}
.spec-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:14px}
.spec-chip{border:1px solid var(--line);border-radius:16px;padding:16px 14px;text-align:center;background:var(--pink-50)}
.spec-chip .v{display:block;font-size:1.02rem;color:var(--ink-900);font-weight:600;margin-bottom:4px}
.spec-chip .d{font-size:.8rem;color:var(--ink-500);line-height:1.6}
.spec-ul{list-style:none;margin:0;padding:0;display:grid;gap:11px}
.spec-ul li{display:flex;gap:12px;align-items:flex-start;font-size:.94rem;color:var(--ink-700);line-height:1.7}
.spec-ul li::before{content:"";flex:0 0 7px;height:7px;margin-top:.55em;border-radius:50%;background:var(--pink-500)}
/* 有圖示時圓點就多餘了 */
.spec-ul li:has(.spec-ico)::before{display:none}
.spec-steps{display:grid;gap:12px}
.spec-step{display:grid;grid-template-columns:auto 1fr;gap:15px;align-items:start;border:1px solid var(--line);border-radius:16px;padding:15px 17px}
.spec-step .n{width:29px;height:29px;border-radius:50%;background:var(--pink-600);color:#fff;display:grid;place-items:center;font-size:.84rem}
.spec-step .t{font-weight:600;color:var(--ink-900);margin-bottom:3px}
.spec-step .s{font-size:.86rem;color:var(--ink-500);line-height:1.7}

/* ===== TR55 規格區視覺層：配圖、細線圖示、捲到才進場 ===== */

/* 有配圖的區塊改成左文右圖 */
.spec-block--figured {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.82fr);
  gap: 32px;
  align-items: center;
}

.spec-figure {
  margin: 0;
  border-radius: 16px;
  overflow: hidden;
  background: var(--cream);
  border: 1px solid var(--line);
}

.spec-figure img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 190px;
  object-fit: cover;
  transform: scale(1.04);
  transition: transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

.spec-block.is-inview .spec-figure img {
  transform: scale(1);
}

/* 零件標示：文字用 HTML 畫在照片上，不燒進圖片 */
.spec-figure-stage {
  position: relative;
  display: block;
  line-height: 0;
}

.spec-figure--pinned .spec-figure-stage img {
  min-height: 0;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

/* 按鈕本身是零尺寸的錨點，圓點就精準落在標示的位置上 */
.spec-pin {
  position: absolute;
  width: 0;
  height: 0;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  line-height: 1.4;
  opacity: 0;
  animation: specPinIn 0.5s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: calc(var(--d, 0ms) + 400ms);
}

@keyframes specPinIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

.spec-pin-dot {
  position: absolute;
  left: -5.5px;
  top: -5.5px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--pink-600);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.9), 0 2px 6px rgba(90, 50, 62, 0.25);
}

/* 呼吸光暈，提示可以點 */
.spec-pin-dot::after {
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 1px solid var(--pink-500);
  opacity: 0.7;
  animation: specPinPulse 2.6s ease-out infinite;
}

@keyframes specPinPulse {
  0% { transform: scale(0.75); opacity: 0.75; }
  70% { transform: scale(1.7); opacity: 0; }
  100% { transform: scale(1.7); opacity: 0; }
}

.spec-pin-label {
  position: absolute;
  top: 50%;
  left: 15px;
  transform: translateY(-50%);
  white-space: nowrap;
  font-size: 0.82rem;
  color: var(--ink-900);
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 12px;
  box-shadow: 0 6px 16px -10px rgba(90, 50, 62, 0.5);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), background 0.25s ease;
}

/* 標籤放在左邊時，改成從圓點往左長 */
.spec-pin--left .spec-pin-label {
  left: auto;
  right: 15px;
}

.spec-pin:hover .spec-pin-label,
.spec-pin:focus-visible .spec-pin-label {
  transform: translateY(calc(-50% - 2px));
  background: #fff;
}

.spec-pin:focus-visible {
  outline: 2px solid var(--pink-600);
  outline-offset: 6px;
  border-radius: 999px;
}

@media (max-width: 620px) {
  .spec-pin-label {
    font-size: 0.74rem;
    padding: 4px 9px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .spec-pin { opacity: 1; animation: none; }
  .spec-pin-dot::after { animation: none; opacity: 0.5; }
}

/* 文件類（證書、報告）要完整看到，不裁切 */
.spec-figure--contain img {
  object-fit: contain;
  background: #fff;
  padding: 10px;
  min-height: 0;
  aspect-ratio: 3 / 4;
  max-height: 420px;
}



.spec-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.spec-links .btn {
  font-size: 0.88rem;
  padding: 10px 18px;
}

.spec-figure figcaption {
  padding: 10px 14px 12px;
  font-size: 0.78rem;
  color: var(--ink-500);
  line-height: 1.6;
  background: #fff;
  border-top: 1px solid var(--line);
}

/* 細線圖示 */
.spec-ico {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border-radius: 13px;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--pink-700);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.25s ease;
}

.spec-ico svg {
  width: 22px;
  height: 22px;
  stroke-width: 1.6;
}

.spec-chip {
  display: grid;
  justify-items: center;
  gap: 2px;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease;
}

.spec-chip .spec-ico {
  margin-bottom: 8px;
}

.spec-chip:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 22px -14px rgba(158, 106, 122, 0.55);
}

.spec-chip:hover .spec-ico {
  transform: scale(1.08);
  border-color: var(--pink-500);
}

.spec-ul li .spec-ico {
  margin-top: -4px;
}

/* 捲到才進場：只動 transform / opacity */
.spec-block.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease var(--d, 0ms), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1) var(--d, 0ms);
}

.spec-block.reveal.is-inview {
  opacity: 1;
  transform: none;
}

.spec-block.reveal .spec-chip,
.spec-block.reveal .spec-step,
.spec-block.reveal .spec-ul li {
  opacity: 0;
  transform: translateY(10px);
}

.spec-block.reveal.is-inview .spec-chip,
.spec-block.reveal.is-inview .spec-step,
.spec-block.reveal.is-inview .spec-ul li {
  opacity: 1;
  transform: none;
  transition: opacity 0.5s ease calc(var(--d, 0ms) + 120ms),
    transform 0.6s cubic-bezier(0.22, 1, 0.36, 1) calc(var(--d, 0ms) + 120ms);
}

@media (max-width: 860px) {
  .spec-block--figured {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .spec-figure img {
    min-height: 0;
    aspect-ratio: 16 / 10;
  }
}

@media (prefers-reduced-motion: reduce) {
  .spec-block.reveal,
  .spec-block.reveal .spec-chip,
  .spec-block.reveal .spec-step,
  .spec-block.reveal .spec-ul li {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .spec-figure img {
    transform: none;
    transition: none;
  }
}
.spec-note-box{margin-top:4px;padding:15px 17px;border-radius:14px;background:var(--cream);font-size:.87rem;color:var(--ink-700);line-height:1.75}

/* ============================================================
   ENERGY LAYER — 2026-08 視覺優化：動感 hero、跑馬燈、hover 彈性
   ============================================================ */

/* ---------- Hero Stage ---------- */
.hero-stage {
  position: relative;
  overflow: hidden;
  background: var(--cream);
  padding: 56px 0 0;
}
.hero-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 0.6 0 0 0 0 0.45 0 0 0 0 0.5 0 0 0 0.05 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}
.hero-stage .hero-copy,
.hero-stage .hero-copy p,
.hero-stage .hero-copy h1 { text-align: left; }
.hero-stage .hero-copy { display: block; justify-items: start; }
.hero-stage .hero-actions { justify-content: flex-start; }
.hero-stage .hero-stats { justify-content: flex-start; }
.hero-stage .hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: 24px;
  min-height: 560px;
  padding-top: 24px;
  padding-bottom: 40px;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  letter-spacing: 0.22em;
  color: var(--pink-700);
  margin: 0 0 18px;
  animation: heroRise 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.hero-eyebrow-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--pink-600);
  animation: heroPulse 2.4s ease-in-out infinite;
}
.hero-display {
  font-family: var(--font-display);
  font-size: clamp(48px, 6.4vw, 88px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 22px;
  color: var(--ink-900);
  animation: heroRise 0.7s 0.08s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.hero-display em {
  font-style: normal;
  color: var(--pink-700);
  position: relative;
  display: inline-block;
}
.hero-display em::after {
  content: "";
  position: absolute;
  left: 2%;
  bottom: 0.06em;
  width: 96%;
  height: 0.22em;
  background: linear-gradient(90deg, var(--pink-300), var(--pink-200));
  z-index: -1;
  border-radius: 4px;
  transform-origin: left center;
  animation: heroUnderline 0.8s 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.hero-lead-xl {
  font-size: 17px;
  line-height: 1.9;
  color: var(--ink-700);
  margin: 0 0 28px;
  animation: heroRise 0.7s 0.16s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.hero-stage .hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  animation: heroRise 0.7s 0.24s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.hero-cta {
  box-shadow: 0 10px 26px rgba(160, 102, 127, 0.35);
}
.hero-stats {
  display: flex;
  gap: 36px;
  margin-top: 40px;
  animation: heroRise 0.7s 0.32s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.hero-stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 34px;
  letter-spacing: -0.02em;
  color: var(--ink-900);
  line-height: 1.1;
}
.hero-stat span {
  font-size: 13px;
  color: var(--ink-500);
  letter-spacing: 0.08em;
}

/* ---------- Hero 漂浮產品卡 ---------- */
.hero-visual {
  position: relative;
  height: 540px;
}
.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.75;
}
.hero-blob--1 {
  width: 420px;
  height: 420px;
  right: -80px;
  top: -40px;
  background: radial-gradient(circle at 40% 40%, #f4cdd9, #fdeef3 70%);
  animation: blobDrift 14s ease-in-out infinite alternate;
}
.hero-blob--2 {
  width: 300px;
  height: 300px;
  left: -30px;
  bottom: -60px;
  background: radial-gradient(circle at 60% 40%, #ffe3cd, #fff4ea 70%);
  animation: blobDrift 18s 2s ease-in-out infinite alternate-reverse;
}
.hero-card {
  position: absolute;
  margin: 0;
  border-radius: 22px;
  background: #fff;
  padding: 10px;
  box-shadow:
    0 2px 6px rgba(58, 39, 45, 0.06),
    0 24px 48px rgba(160, 102, 127, 0.22);
  will-change: transform;
}
.hero-card img {
  display: block;
  border-radius: 14px;
  object-fit: cover;
  width: 100%;
  height: 100%;
}
.hero-card--a {
  width: 230px;
  height: 300px;
  left: 4%;
  top: 8%;
  transform: rotate(-7deg);
  animation: heroCardIn 0.9s 0.35s cubic-bezier(0.34, 1.4, 0.64, 1) both,
             floatA 6.5s 1.4s ease-in-out infinite;
}
.hero-card--b {
  width: 260px;
  height: 340px;
  left: 36%;
  top: 26%;
  transform: rotate(3deg);
  z-index: 2;
  animation: heroCardIn 0.9s 0.5s cubic-bezier(0.34, 1.4, 0.64, 1) both,
             floatB 7.5s 1.6s ease-in-out infinite;
}
.hero-card--c {
  width: 210px;
  height: 280px;
  right: 0;
  top: 2%;
  transform: rotate(9deg);
  animation: heroCardIn 0.9s 0.65s cubic-bezier(0.34, 1.4, 0.64, 1) both,
             floatC 8.5s 1.8s ease-in-out infinite;
}

@keyframes heroRise {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes heroUnderline {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}
@keyframes heroPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.5); opacity: 0.55; }
}
@keyframes heroCardIn {
  from { opacity: 0; transform: translateY(60px) rotate(0deg) scale(0.85); }
}
@keyframes floatA {
  0%, 100% { transform: rotate(-7deg) translateY(0); }
  50% { transform: rotate(-8.5deg) translateY(-16px); }
}
@keyframes floatB {
  0%, 100% { transform: rotate(3deg) translateY(0); }
  50% { transform: rotate(4.5deg) translateY(-20px); }
}
@keyframes floatC {
  0%, 100% { transform: rotate(9deg) translateY(0); }
  50% { transform: rotate(7.5deg) translateY(-14px); }
}
@keyframes blobDrift {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(-30px, 26px) scale(1.08); }
}

/* ---------- 跑馬燈 ---------- */
.hero-marquee {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.65);
  overflow: hidden;
  padding: 14px 0;
}
.hero-marquee-track {
  display: flex;
  align-items: center;
  gap: 28px;
  width: max-content;
  animation: marquee 26s linear infinite;
}
.hero-marquee-track span {
  font-family: var(--font-display);
  font-size: 15px;
  letter-spacing: 0.14em;
  color: var(--ink-700);
  white-space: nowrap;
}
.hero-marquee-track i {
  font-style: normal;
  color: var(--pink-500);
  font-size: 12px;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- 全站 hover 活力 ---------- */
.btn {
  transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 0.28s ease,
              background-color 0.2s ease,
              color 0.2s ease;
}
.btn:hover {
  transform: translateY(-2px);
}
.btn:active {
  transform: translateY(0) scale(0.97);
}
.series-card,
.category-card,
.special-card,
.popular-card,
.banner-card,
.report-card,
.store-card,
.pill-card,
.vs-card {
  transition: transform 0.34s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.34s ease;
}
.series-card:hover,
.category-card:hover,
.special-card:hover,
.popular-card:hover,
.banner-card:hover,
.report-card:hover,
.store-card:hover,
.pill-card:hover {
  transform: translateY(-6px);
  box-shadow:
    0 3px 8px rgba(58, 39, 45, 0.05),
    0 22px 44px rgba(160, 102, 127, 0.2);
}

/* ---------- RWD ---------- */
@media (max-width: 960px) {
  .hero-stage .hero-grid {
    grid-template-columns: 1fr;
    min-height: 0;
    padding-bottom: 12px;
  }
  .hero-visual {
    height: 380px;
    margin-top: 8px;
  }
  .hero-card--a { width: 168px; height: 220px; left: 0; top: 10%; }
  .hero-card--b { width: 190px; height: 250px; left: 32%; top: 22%; }
  .hero-card--c { width: 156px; height: 205px; right: 0; top: 4%; }
  .hero-stats { gap: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-eyebrow,
  .hero-display,
  .hero-lead-xl,
  .hero-stage .hero-actions,
  .hero-stats,
  .hero-card,
  .hero-blob,
  .hero-display em::after,
  .hero-eyebrow-dot,
  .hero-marquee-track {
    animation: none !important;
  }
}

/* ---------- Color Story：scroll 驅動換色秀 ---------- */
.color-story {
  position: relative;
  height: 460vh;
  background: var(--cream);
}
.color-story-stage {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.color-story-wash {
  position: absolute;
  inset: 0;
  background: #e5d5c9;
  transition: background 0.7s ease;
}
.color-story-wash::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 55% at 50% 45%, rgba(255, 255, 255, 0.55), transparent 70%);
}
.color-story-name {
  position: absolute;
  left: 50%;
  top: 44%;
  transform: translate(-50%, -50%);
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(96px, 17vw, 250px);
  letter-spacing: 0.04em;
  line-height: 1;
  color: #8a6247;
  opacity: 0.28;
  white-space: nowrap;
  transition: color 0.7s ease;
  user-select: none;
}
.color-story-name.cs-swap {
  animation: csNameIn 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes csNameIn {
  from { opacity: 0; }
  to { opacity: 0.28; }
}
.color-story-bottle {
  position: relative;
  z-index: 2;
  width: min(46vh, 420px);
  aspect-ratio: 3 / 4;
  will-change: transform;
}
.cs-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 26px;
  box-shadow:
    0 4px 10px rgba(42, 34, 37, 0.08),
    0 34px 70px rgba(42, 34, 37, 0.28);
  opacity: 0;
  transform: scale(0.94);
  transition: opacity 0.45s ease, transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}
.cs-img.is-active {
  opacity: 1;
  transform: scale(1);
}
.color-story-meta {
  position: absolute;
  z-index: 3;
  left: clamp(20px, 6vw, 90px);
  bottom: clamp(28px, 7vh, 70px);
  color: var(--ink-900);
}
.color-story-kicker {
  font-size: 12px;
  letter-spacing: 0.3em;
  margin: 0 0 10px;
  color: rgba(42, 34, 37, 0.55);
}
.color-story-counter {
  font-family: var(--font-display);
  font-size: 44px;
  margin: 0 0 10px;
  line-height: 1;
}
.color-story-counter em {
  font-style: normal;
  font-size: 18px;
  color: rgba(42, 34, 37, 0.45);
  margin-left: 6px;
}
.color-story-bar {
  width: 180px;
  height: 2px;
  background: rgba(42, 34, 37, 0.18);
  border-radius: 2px;
  overflow: hidden;
}
.color-story-bar i {
  display: block;
  height: 100%;
  background: var(--ink-900);
  transform: scaleX(0);
  transform-origin: left center;
}
.color-story-hint {
  margin: 14px 0 0;
  font-size: 13px;
  color: rgba(42, 34, 37, 0.5);
  letter-spacing: 0.1em;
}
.color-story-cta {
  position: absolute;
  z-index: 3;
  right: clamp(20px, 6vw, 90px);
  bottom: clamp(28px, 7vh, 70px);
}
@media (max-width: 720px) {
  .color-story { height: 420vh; }
  .color-story-bottle { width: min(60vw, 300px); }
  .color-story-name { top: 40%; }
  .color-story-cta { right: auto; left: clamp(20px, 6vw, 90px); bottom: auto; top: 24px; }
  .color-story-meta { bottom: 22px; }
  .color-story-counter { font-size: 32px; }
}
@media (prefers-reduced-motion: reduce) {
  .color-story-wash,
  .cs-img,
  .color-story-name { transition: none; animation: none !important; }
}

/* ---------- AWARD LAYER：深色 hero / 開場簾幕 / 自訂游標 ---------- */

/* 開場簾幕 */
.intro-veil {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.85s cubic-bezier(0.76, 0, 0.24, 1);
}
.intro-veil img {
  height: 64px;
  opacity: 0;
  animation: veilLogo 0.9s 0.15s ease both;
}
.intro-veil.is-done {
  transform: translateY(-100%);
}
.intro-veil.is-off { display: none; }
@keyframes veilLogo {
  from { opacity: 0; transform: translateY(14px) scale(0.94); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* 深色 hero */
.hero-stage.hero-dark {
  background: #1c1316;
  margin-top: -118px;
  padding-top: 158px;
}
.hero-stage.hero-dark::after { opacity: 0.35; }
.hero-dark .hero-eyebrow { color: #e2b1c1; }
.hero-dark .hero-eyebrow-dot { background: #e2b1c1; box-shadow: 0 0 12px rgba(226, 177, 193, 0.9); }
.hero-dark .hero-display { color: #f6ede9; }
.hero-dark .hero-display em { color: #e2b1c1; }
.hero-dark .hero-display em::after {
  background: linear-gradient(90deg, rgba(192, 130, 151, 0.55), rgba(226, 177, 193, 0.25));
}
.hero-dark .hero-lead-xl { color: rgba(246, 237, 233, 0.72); }
.hero-dark .hero-stat strong { color: #f6ede9; }
.hero-dark .hero-stat span { color: rgba(246, 237, 233, 0.5); }
.hero-dark .btn.secondary {
  background: transparent;
  color: #f6ede9;
  border: 1px solid rgba(246, 237, 233, 0.35);
}
.hero-dark .btn.secondary:hover { background: rgba(246, 237, 233, 0.1); }
.hero-dark .hero-blob--1 {
  background: radial-gradient(circle at 40% 40%, rgba(192, 130, 151, 0.55), rgba(28, 19, 22, 0) 70%);
  opacity: 0.9;
}
.hero-dark .hero-blob--2 {
  background: radial-gradient(circle at 60% 40%, rgba(120, 82, 100, 0.5), rgba(28, 19, 22, 0) 70%);
  opacity: 0.9;
}
.hero-dark .hero-card {
  background: #241a1e;
  box-shadow:
    0 2px 6px rgba(0, 0, 0, 0.4),
    0 30px 70px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(246, 237, 233, 0.06);
}
.hero-dark .hero-marquee {
  background: rgba(28, 19, 22, 0.85);
  border-color: rgba(246, 237, 233, 0.12);
}
.hero-dark .hero-marquee-track span { color: rgba(246, 237, 233, 0.66); }
.hero-dark .hero-marquee-track i { color: #c08297; }

/* 深色 hero 上的 header 透明化（JS 切換） */
body.header-on-dark .site-header {
  background: transparent;
  border-bottom-color: transparent;
  box-shadow: none;
}
body.header-on-dark .site-header .main-nav a,
body.header-on-dark .site-header .nav-search,
body.header-on-dark .site-header .icon-btn { color: #f6ede9; }
.site-header { transition: background 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease; }

/* 標題逐字進場 */
.hero-display .ch {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.55em) rotate(4deg);
  animation: chIn 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
@keyframes chIn {
  to { opacity: 1; transform: translateY(0) rotate(0); }
}

@media (prefers-reduced-motion: reduce) {
  .intro-veil { display: none; }
  .hero-display .ch { animation: none; opacity: 1; transform: none; }
}

/* ---------- 當期主打 ---------- */
.campaign-list {
  display: grid;
  gap: 22px;
}
.campaign-card {
  display: block;
  text-decoration: none;
  color: inherit;
  border-radius: 24px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  transition: transform 0.34s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.34s ease;
}
.campaign-card:hover {
  transform: translateY(-6px);
  box-shadow:
    0 3px 8px rgba(58, 39, 45, 0.05),
    0 26px 52px rgba(160, 102, 127, 0.24);
}
.campaign-card:focus-visible { outline: 2px solid var(--pink-600); outline-offset: 3px; }
.campaign-media {
  overflow: hidden;
  aspect-ratio: 2740 / 886;
  background: var(--pink-50);
}
.campaign-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.campaign-card:hover .campaign-media img { transform: scale(1.03); }
.campaign-info {
  position: relative;
  display: flex;
  align-items: baseline;
  gap: 14px;
  flex-wrap: wrap;
  padding: 16px 22px;
}
.campaign-info h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 19px;
  letter-spacing: 0.02em;
}
.campaign-info p {
  margin: 0;
  font-size: 13px;
  color: var(--ink-500);
}
.campaign-tag {
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--pink-700);
  background: var(--pink-100);
  border-radius: 999px;
  padding: 3px 12px;
  white-space: nowrap;
}
.campaign-arrow {
  margin-left: auto;
  font-size: 20px;
  color: var(--pink-600);
  transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.campaign-card:hover .campaign-arrow { transform: translateX(6px); }
.campaign-card--lead .campaign-info h3 { font-size: 23px; }

/* ---------- 關係企業 ---------- */
.affiliate-section {
  background: #eef4f3;
  border-top: 1px solid #dbe7e5;
  padding: 56px 0 64px;
  margin-top: 56px;
}
.affiliate-kicker {
  font-size: 12px;
  letter-spacing: 0.3em;
  color: #4a8078;
  margin: 0 0 18px;
}
.affiliate-card {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 0;
  text-decoration: none;
  color: inherit;
  background: #fff;
  border: 1px solid #d5e4e1;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 14px 36px rgba(59, 92, 86, 0.12);
  transition: transform 0.34s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.34s ease;
}
.affiliate-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 50px rgba(59, 92, 86, 0.18);
}
.affiliate-card:focus-visible { outline: 2px solid #4a8078; outline-offset: 3px; }
.affiliate-media { overflow: hidden; background: #f4f8f7; }
.affiliate-media img { width: 100%; height: 100%; object-fit: cover; display: block; min-height: 220px; }
.affiliate-info {
  padding: 30px 34px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
}
.affiliate-info h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 24px;
  color: #2f5049;
}
.affiliate-info p {
  margin: 0;
  font-size: 14px;
  line-height: 1.8;
  color: #4f6f68;
}
.affiliate-note {
  align-self: flex-start;
  font-size: 12px;
  letter-spacing: 0.14em;
  color: #4a8078;
  border: 1px solid #b9d4cf;
  border-radius: 999px;
  padding: 3px 12px;
}
@media (max-width: 760px) {
  .affiliate-card { grid-template-columns: 1fr; }
  .campaign-info h3 { font-size: 16px; }
  .campaign-card--lead .campaign-info h3 { font-size: 18px; }
}

/* ---------- 當期主打輪播 ---------- */
.campaign-carousel { position: relative; }
.cc-viewport {
  overflow: hidden;
  border-radius: 26px;
  box-shadow: var(--shadow);
  touch-action: pan-y;
}
.cc-track {
  display: flex;
  transition: transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}
.cc-slide {
  position: relative;
  flex: 0 0 100%;
  display: block;
  text-decoration: none;
  color: inherit;
}
.cc-media {
  aspect-ratio: 21 / 9;
  overflow: hidden;
  background: var(--pink-50);
}
.cc-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 50%;
  display: block;
}
.cc-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 12px;
  padding: 0 clamp(26px, 6vw, 84px);
  background: linear-gradient(95deg, rgba(255, 252, 250, 0.92) 0%, rgba(255, 252, 250, 0.62) 34%, rgba(255, 252, 250, 0) 58%);
}
.cc-overlay h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(26px, 3.6vw, 48px);
  letter-spacing: 0.02em;
  line-height: 1.2;
  color: var(--ink-900);
  max-width: 46%;
}
.cc-overlay p {
  margin: 0;
  font-size: clamp(12px, 1.2vw, 15px);
  line-height: 1.8;
  color: var(--ink-700);
  max-width: 42%;
}
.cc-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--pink-700);
  border: 1px solid var(--pink-300);
  background: rgba(255, 255, 255, 0.75);
  border-radius: 999px;
  padding: 8px 18px;
  transition: background 0.2s ease, transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.cc-cta i { font-style: normal; transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1); }
.cc-slide:hover .cc-cta { background: var(--pink-600); color: #fff; border-color: var(--pink-600); transform: translateY(-2px); }
.cc-slide:hover .cc-cta i { transform: translateX(4px); }
.cc-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink-700);
  font-size: 22px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 22px rgba(58, 39, 45, 0.14);
  transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.2s ease;
}
.cc-nav:hover { background: #fff; transform: translateY(-50%) scale(1.08); }
.cc-nav:focus-visible { outline: 2px solid var(--pink-600); outline-offset: 2px; }
.cc-nav--prev { left: -12px; }
.cc-nav--next { right: -12px; }
.cc-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 18px;
}
.cc-dot {
  width: 46px;
  height: 5px;
  border: 0;
  border-radius: 999px;
  background: var(--pink-200);
  overflow: hidden;
  padding: 0;
  position: relative;
}
.cc-dot i {
  position: absolute;
  inset: 0;
  transform-origin: left center;
  background: var(--pink-600);
  transform: scaleX(0);
  display: block;
}
.cc-dot.is-active i { animation: dotFill 5.2s linear forwards; }
@keyframes dotFill { to { transform: scaleX(1); } }
.cc-dot:focus-visible { outline: 2px solid var(--pink-600); outline-offset: 2px; }
@media (max-width: 720px) {
  .cc-media { aspect-ratio: 4 / 3; }
  .cc-media img { object-position: 68% 50%; }
  .cc-overlay { justify-content: flex-end; padding-bottom: 22px; background: linear-gradient(180deg, rgba(255, 252, 250, 0) 30%, rgba(255, 252, 250, 0.9) 72%); }
  .cc-overlay h3, .cc-overlay p { max-width: 100%; }
  .cc-nav { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .cc-track { transition: none; }
  .cc-dot.is-active i { animation: none; transform: scaleX(1); }
}

/* ---------- 當期主打 v3：編輯式版面 ---------- */
.camp-feature {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: stretch;
  text-decoration: none;
  color: inherit;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 26px;
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-bottom: 22px;
  transition: transform 0.34s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.34s ease;
}
.camp-feature:hover {
  transform: translateY(-6px);
  box-shadow: 0 3px 8px rgba(58, 39, 45, 0.05), 0 26px 52px rgba(160, 102, 127, 0.24);
}
.camp-feature:focus-visible { outline: 2px solid var(--pink-600); outline-offset: 3px; }
.camp-feature-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 14px;
  padding: clamp(28px, 4vw, 56px);
  background: linear-gradient(160deg, #fff 0%, var(--pink-50) 100%);
}
.camp-feature-body h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(30px, 3.6vw, 50px);
  letter-spacing: 0.02em;
  line-height: 1.16;
}
.camp-feature-body p {
  margin: 0;
  font-size: 15px;
  line-height: 1.9;
  color: var(--ink-700);
}
.camp-feature-media { overflow: hidden; }
.camp-feature-media img {
  width: 100%;
  height: 100%;
  min-height: 340px;
  object-fit: cover;
  display: block;
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.camp-feature:hover .camp-feature-media img { transform: scale(1.035); }
.camp-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.camp-cell {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.34s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.34s ease;
}
.camp-cell:hover {
  transform: translateY(-6px);
  box-shadow: 0 3px 8px rgba(58, 39, 45, 0.05), 0 22px 44px rgba(160, 102, 127, 0.2);
}
.camp-cell:focus-visible { outline: 2px solid var(--pink-600); outline-offset: 3px; }
.camp-cell-media { overflow: hidden; aspect-ratio: 4 / 3; }
.camp-cell-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.camp-cell:hover .camp-cell-media img { transform: scale(1.045); }
.camp-cell-body {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 18px 20px 20px;
  flex: 1;
}
.camp-cell-body h4 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 19px;
  letter-spacing: 0.02em;
}
.camp-cell-body p {
  margin: 0;
  font-size: 13px;
  line-height: 1.75;
  color: var(--ink-500);
}
.camp-cell-body .campaign-arrow { position: absolute; right: 20px; top: 18px; }
@media (max-width: 900px) {
  .camp-feature { grid-template-columns: 1fr; }
  .camp-feature-media img { min-height: 240px; }
  .camp-grid { grid-template-columns: 1fr; }
}

/* ---------- 主打 v4：重點資訊層 ---------- */
.camp-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.camp-deadline {
  font-size: 12px;
  letter-spacing: 0.06em;
  color: #a3471f;
  background: #fdeee2;
  border-radius: 999px;
  padding: 3px 12px;
  white-space: nowrap;
  font-weight: 700;
}
.camp-sub { margin: 0; font-size: 14px; color: var(--ink-500); }
.camp-points {
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 7px;
}
.camp-points li {
  position: relative;
  padding-left: 18px;
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--ink-700);
}
.camp-points li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.62em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--pink-500);
}
.camp-price {
  margin: 2px 0 0;
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.camp-price strong {
  font-family: var(--font-display);
  font-size: 30px;
  letter-spacing: -0.01em;
  color: var(--pink-700);
  line-height: 1;
}
.camp-price-note { font-size: 13px; color: var(--pink-700); margin-left: -6px; }
.camp-price s { font-size: 14px; color: var(--ink-500); }
.cc-cta--small { font-size: 13px; padding: 7px 15px; margin-top: 4px; }
.camp-cell-body { gap: 10px; padding: 20px 22px 22px; }
.camp-cell-body h4 { font-size: 22px; }
/* 照片緊裁切：產品放大（純裁切，非合成） */
.camp-feature-media { position: relative; }
.camp-feature-media img { object-position: 50% 55%; transform: scale(1.25); }
.camp-feature:hover .camp-feature-media img { transform: scale(1.3); }
.camp-cell-media img { object-position: 50% 52%; transform: scale(1.45); }
.camp-cell:hover .camp-cell-media img { transform: scale(1.52); }

/* ---------- 主打 v5：多張棚拍並排（排版，非合成） ---------- */
.camp-media {
  display: grid;
  width: 100%;
  height: 100%;
  gap: 3px;
  background: #fff;
}
.camp-media--n1 { grid-template-columns: 1fr; }
.camp-media--n2 { grid-template-columns: 1fr 1fr; }
.camp-media--n3 { grid-template-columns: 1fr 1fr 1fr; }
.camp-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
  display: block;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  transform: scale(1.75);
}
.camp-media--n1 img { transform: scale(1.2); }
.camp-media--n2 img { transform: scale(1.5); }
.camp-feature .camp-media img { transform: scale(1.6); }
.camp-feature .camp-media--n1 img { transform: scale(1.15); }
.camp-cell:hover .camp-media img,
.camp-feature:hover .camp-media img { transform: scale(1.82); }
.camp-cell:hover .camp-media--n1 img,
.camp-feature:hover .camp-media--n1 img { transform: scale(1.26); }
.camp-cell:hover .camp-media--n2 img { transform: scale(1.57); }
.camp-feature:hover .camp-media img { transform: scale(1.66); }
/* 蓋掉 v4 的單圖裁切設定 */
.camp-feature-media img, .camp-cell-media img { object-position: 50% 50%; }

/* ---------- 主打 v6：AI 形象圖為完整構圖，不裁切 ---------- */
.camp-media img,
.camp-media--n1 img,
.camp-media--n2 img,
.camp-feature .camp-media img,
.camp-feature .camp-media--n1 img {
  transform: none;
}
.camp-cell:hover .camp-media img,
.camp-cell:hover .camp-media--n1 img,
.camp-cell:hover .camp-media--n2 img,
.camp-feature:hover .camp-media img,
.camp-feature:hover .camp-media--n1 img {
  transform: scale(1.035);
}

/* ---------- Mega Menu v2：置中卡片面板 + 縮圖 ---------- */
.nav-dropdown.mega-menu {
  position: fixed;
  top: calc(var(--header-height, 72px) + 10px);
  left: 50%;
  right: auto;
  transform: translateX(-50%) translateY(10px);
  width: min(880px, 94vw);
  max-width: 94vw;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
  box-shadow:
    0 4px 10px rgba(58, 39, 45, 0.06),
    0 30px 60px rgba(58, 39, 45, 0.18);
  transition: opacity 0.28s ease, transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}
.nav-item.has-dropdown:hover .nav-dropdown.mega-menu,
.nav-item.has-dropdown:focus-within .nav-dropdown.mega-menu,
.nav-item.has-dropdown.open .nav-dropdown.mega-menu {
  transform: translateX(-50%) translateY(0);
}
.mega-panel {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 14px;
  width: 100%;
}
.mega-tabs {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-right: 14px;
  border-right: 1px solid var(--line);
}
.mega-cat {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 14px;
  border-radius: 12px;
  font-size: 14.5px;
  color: var(--ink-700);
  text-decoration: none;
  background: transparent;
  white-space: nowrap;
  transition: background 0.16s ease, color 0.16s ease, transform 0.2s ease;
}
.mega-cat i {
  font-style: normal;
  color: var(--pink-500);
  opacity: 0;
  transition: opacity 0.16s ease, transform 0.2s ease;
}
.mega-cat:hover,
.mega-cat.active {
  background: var(--pink-100);
  color: var(--pink-700);
  font-weight: 700;
}
.mega-cat:hover i,
.mega-cat.active i {
  opacity: 1;
  transform: translateX(2px);
}
.mega-content {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  align-content: start;
  min-height: 220px;
}
.mega-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px 8px 8px;
  border-radius: 14px;
  border: 1px solid transparent;
  text-decoration: none;
  color: var(--ink-900);
  background: transparent;
  transition: background 0.16s ease, border-color 0.16s ease, transform 0.24s cubic-bezier(0.22, 1, 0.36, 1);
}
.mega-card:hover {
  background: var(--pink-50);
  border-color: var(--line);
  transform: translateY(-2px);
}
.mega-card-thumb {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  border-radius: 12px;
  overflow: hidden;
  background: var(--cream);
}
.mega-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.mega-card-label {
  font-size: 13.5px;
  line-height: 1.45;
  flex: 1;
}
.mega-card-arrow {
  color: var(--pink-500);
  opacity: 0;
  transition: opacity 0.16s ease, transform 0.2s ease;
}
.mega-card:hover .mega-card-arrow {
  opacity: 1;
  transform: translateX(3px);
}
@media (max-width: 900px) {
  .mega-panel { grid-template-columns: 1fr; }
  .mega-tabs { flex-direction: row; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--line); padding: 0 0 10px; }
  .mega-content { grid-template-columns: 1fr 1fr; }
}
.mega-card-thumb img { transform: scale(1.9); }
.mega-content { min-height: 128px; }

/* ---------- Command Palette 搜尋 ---------- */
.quick-panel {
  position: fixed;
  inset: 0;
  z-index: 150;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 12vh 20px 0;
  background: rgba(42, 34, 37, 0.4);
  backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}
.quick-panel.open { opacity: 1; visibility: visible; }
.cmdk {
  width: min(640px, 100%);
  background: #fff;
  border-radius: 20px;
  border: 1px solid var(--line);
  box-shadow: 0 6px 16px rgba(42, 34, 37, 0.1), 0 40px 90px rgba(42, 34, 37, 0.35);
  overflow: hidden;
  transform: translateY(14px) scale(0.98);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.quick-panel.open .cmdk { transform: translateY(0) scale(1); }
.cmdk-inputrow {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  color: var(--ink-500);
}
.cmdk-input {
  flex: 1;
  border: 0;
  outline: none;
  font-size: 17px;
  font-family: inherit;
  color: var(--ink-900);
  background: transparent;
}
.cmdk-kbd {
  font-size: 11px;
  color: var(--ink-500);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 2px 7px;
  letter-spacing: 0.05em;
}
.cmdk-results { max-height: 52vh; overflow-y: auto; padding: 8px; }
.cmdk-hint { font-size: 12px; letter-spacing: 0.15em; color: var(--ink-500); padding: 8px 12px 4px; }
.cmdk-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 9px 12px;
  border-radius: 12px;
  text-decoration: none;
  color: var(--ink-900);
}
.cmdk-item.is-active { background: var(--pink-100); }
.cmdk-thumb {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border-radius: 10px;
  overflow: hidden;
  background: var(--cream);
}
.cmdk-thumb img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.8); display: block; }
.cmdk-info { flex: 1; min-width: 0; }
.cmdk-info strong { display: block; font-size: 14.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cmdk-info small { color: var(--ink-500); font-size: 12.5px; }
.cmdk-price { font-family: var(--font-display); font-size: 15px; color: var(--pink-700); white-space: nowrap; }
.cmdk-empty { padding: 32px 16px; text-align: center; color: var(--ink-500); font-size: 14px; }
.cmdk-foot {
  display: flex;
  gap: 18px;
  padding: 10px 18px;
  border-top: 1px solid var(--line);
  font-size: 11.5px;
  color: var(--ink-500);
  background: var(--pink-50);
}

/* ---------- 動畫調順 ---------- */
.reveal {
  transform: translateY(34px);
  filter: none;
  transition:
    opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}
.reveal.is-inview { transform: translateY(0); }
/* 同排卡片依序進場 */
.camp-grid .reveal:nth-child(2),
.series-grid .reveal:nth-child(3n+2),
.category-grid .reveal:nth-child(3n+2) { transition-delay: 0.08s; }
.camp-grid .reveal:nth-child(3),
.series-grid .reveal:nth-child(3n+3),
.category-grid .reveal:nth-child(3n+3) { transition-delay: 0.16s; }
.cs-img {
  transition: opacity 0.6s ease, transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}
.color-story-wash { transition: background 1s ease; }
.hero-card { transition: translate 0.2s linear; }
@media (prefers-reduced-motion: reduce) {
  .reveal { transition: none; transform: none; opacity: 1; }
}

/* ---------- Mega Menu 動畫加順 ---------- */
.nav-dropdown.mega-menu {
  transform: translateX(-50%) translateY(18px) scale(0.97);
  transform-origin: top center;
  transition: opacity 0.32s ease, transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), visibility 0.32s;
}
.nav-item.has-dropdown:hover .nav-dropdown.mega-menu,
.nav-item.has-dropdown:focus-within .nav-dropdown.mega-menu,
.nav-item.has-dropdown.open .nav-dropdown.mega-menu {
  transform: translateX(-50%) translateY(0) scale(1);
}
.mega-content .mega-card {
  opacity: 0;
  transform: translateY(12px);
  animation: megaCardIn 0.5s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.mega-content .mega-card:nth-child(1) { animation-delay: 0.03s; }
.mega-content .mega-card:nth-child(2) { animation-delay: 0.07s; }
.mega-content .mega-card:nth-child(3) { animation-delay: 0.11s; }
.mega-content .mega-card:nth-child(4) { animation-delay: 0.15s; }
.mega-content .mega-card:nth-child(5) { animation-delay: 0.19s; }
.mega-content .mega-card:nth-child(6) { animation-delay: 0.23s; }
@keyframes megaCardIn {
  to { opacity: 1; transform: translateY(0); }
}
.mega-cat { transition: background 0.22s ease, color 0.22s ease; }
@media (prefers-reduced-motion: reduce) {
  .mega-content .mega-card { animation: none; opacity: 1; transform: none; }
}

/* ---------- 角落公告卡 ---------- */
.ann-root {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 120;
}
.ann-card {
  width: min(320px, calc(100vw - 40px));
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(58, 39, 45, 0.08), 0 28px 60px rgba(58, 39, 45, 0.28);
  opacity: 0;
  transform: translateY(24px) scale(0.95);
  transform-origin: bottom right;
  pointer-events: none;
  transition: opacity 0.35s ease, transform 0.55s cubic-bezier(0.34, 1.4, 0.64, 1);
}
.ann-root.ann-open .ann-card {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
.ann-media { display: block; aspect-ratio: 4 / 3; overflow: hidden; }
.ann-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ann-body {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}
.ann-body h4 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 17px;
  letter-spacing: 0.02em;
}
.ann-body p {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--ink-500);
}
.ann-close {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink-700);
  font-size: 17px;
  line-height: 1;
  box-shadow: 0 2px 8px rgba(58, 39, 45, 0.18);
  transition: transform 0.2s ease, background 0.2s ease;
}
.ann-close:hover { background: #fff; transform: scale(1.1); }
.ann-pill {
  position: absolute;
  right: 0;
  bottom: 0;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
  padding: 10px 16px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 4px 10px rgba(58, 39, 45, 0.08), 0 14px 30px rgba(160, 102, 127, 0.25);
  color: var(--pink-700);
  font-size: 13.5px;
  font-weight: 700;
  text-decoration: none;
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.45s cubic-bezier(0.34, 1.4, 0.64, 1);
}
.ann-root.ann-min .ann-pill {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.ann-pill:hover { transform: translateY(-2px); }
.ann-pill-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--pink-600);
  animation: heroPulse 2s ease-in-out infinite;
}
.ann-root.ann-bye { transition: opacity 0.35s ease; opacity: 0; }
@media (max-width: 720px) {
  .ann-root { right: 12px; bottom: 12px; }
}

/* ---------- 公告中央海報模式 ---------- */
.ann-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(42, 34, 37, 0.45);
  backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}
.ann-root.ann-splash .ann-backdrop {
  opacity: 1;
  pointer-events: auto;
}
.ann-root.ann-splash {
  inset: 0;
  right: 0;
  bottom: 0;
}
.ann-root.ann-splash .ann-card {
  position: fixed;
  left: 50%;
  top: 50%;
  width: min(400px, calc(100vw - 48px));
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
  animation: annSplashIn 0.65s cubic-bezier(0.34, 1.3, 0.64, 1) both;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2), 0 60px 120px rgba(0, 0, 0, 0.45);
}
@keyframes annSplashIn {
  from { opacity: 0; transform: translate(-50%, -44%) scale(0.86); }
  to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}
.ann-root.ann-splash .ann-body h4 { font-size: 20px; }
.ann-root.ann-splash .ann-body p { font-size: 13.5px; }

/* ---------- 公告動畫海報 ---------- */
.ann-poster {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  opacity: 0;
  pointer-events: none;
  filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.4));
}
.ann-root.ann-splash .ann-poster {
  opacity: 1;
  pointer-events: auto;
  animation:
    annPosterIn 0.8s cubic-bezier(0.34, 1.45, 0.64, 1) both,
    annPosterFloat 3.4s 0.8s ease-in-out infinite;
}
.ann-poster-link {
  display: block;
  position: relative;
}
.ann-poster img {
  display: block;
  width: min(560px, 86vw);
  border-radius: 22px;
}
.ann-poster-cta {
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  background: #fff;
  color: var(--pink-700);
  font-size: 14px;
  font-weight: 700;
  padding: 9px 22px;
  border-radius: 999px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.22);
  white-space: nowrap;
  animation: annCtaPulse 1.8s 1.2s ease-in-out infinite;
}
.ann-poster-close {
  position: absolute;
  top: -12px;
  right: -12px;
  z-index: 3;
  width: 32px;
  height: 32px;
  font-size: 19px;
}
@keyframes annPosterIn {
  0% { opacity: 0; transform: translate(-50%, -64%) scale(0.6) rotate(-6deg); }
  60% { opacity: 1; transform: translate(-50%, -49%) scale(1.03) rotate(1.5deg); }
  100% { opacity: 1; transform: translate(-50%, -50%) scale(1) rotate(0deg); }
}
@keyframes annPosterFloat {
  0%, 100% { transform: translate(-50%, -50%) rotate(-1deg); }
  50% { transform: translate(-50%, -52%) rotate(1.2deg); }
}
@keyframes annCtaPulse {
  0%, 100% { transform: translateX(-50%) scale(1); }
  50% { transform: translateX(-50%) scale(1.07); }
}
/* splash 模式只顯示海報，蓋掉舊版置中卡 */
.ann-root.ann-splash .ann-card { display: none; animation: none; }

/* ---------- 公告特效層 + 海報從天而降 ---------- */
.ann-fx {
  position: fixed;
  inset: 0;
  z-index: 4;
  pointer-events: none;
}
.ann-root.ann-splash .ann-poster {
  animation:
    annPosterDrop 0.75s cubic-bezier(0.45, 0, 0.2, 1.35) both,
    annPosterFloat 3.4s 0.9s ease-in-out infinite;
}
@keyframes annPosterDrop {
  0% { opacity: 0; transform: translate(-50%, -160%) rotate(-5deg); }
  55% { opacity: 1; transform: translate(-50%, -47%) rotate(2deg); }
  75% { transform: translate(-50%, -52%) rotate(-1.2deg); }
  100% { opacity: 1; transform: translate(-50%, -50%) rotate(0); }
}

/* ---------- 夏日海邊主題場景 ---------- */
.sea-scene {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
  transition: opacity 0.8s ease;
}
.sea-sun {
  position: absolute;
  top: 6%;
  right: 10%;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 236, 190, 0.95) 0%, rgba(255, 214, 140, 0.5) 38%, rgba(255, 200, 120, 0) 70%);
  opacity: 0;
  animation: sunIn 1.2s 0.1s ease both, sunPulse 3s 1.3s ease-in-out infinite;
}
.sea-sun::after {
  content: "";
  position: absolute;
  inset: -40px;
  background: conic-gradient(
    rgba(255, 226, 160, 0.15) 0deg 10deg, transparent 10deg 45deg,
    rgba(255, 226, 160, 0.15) 45deg 55deg, transparent 55deg 90deg,
    rgba(255, 226, 160, 0.15) 90deg 100deg, transparent 100deg 135deg,
    rgba(255, 226, 160, 0.15) 135deg 145deg, transparent 145deg 180deg,
    rgba(255, 226, 160, 0.15) 180deg 190deg, transparent 190deg 225deg,
    rgba(255, 226, 160, 0.15) 225deg 235deg, transparent 235deg 270deg,
    rgba(255, 226, 160, 0.15) 270deg 280deg, transparent 280deg 315deg,
    rgba(255, 226, 160, 0.15) 315deg 325deg, transparent 325deg 360deg);
  border-radius: 50%;
  filter: blur(6px);
  animation: sunSpin 14s linear infinite;
}
@keyframes sunIn { from { opacity: 0; transform: translateY(30px) scale(0.7); } to { opacity: 1; transform: none; } }
@keyframes sunPulse { 0%, 100% { filter: brightness(1); } 50% { filter: brightness(1.18); } }
@keyframes sunSpin { to { transform: rotate(360deg); } }

.sea-gull {
  position: absolute;
  width: 54px;
  opacity: 0;
}
.sea-gull--1 { top: 16%; animation: gullFly 3.6s 0.6s cubic-bezier(0.3, 0, 0.7, 1) both; }
.sea-gull--2 { top: 24%; width: 38px; animation: gullFly 4.2s 1.4s cubic-bezier(0.3, 0, 0.7, 1) both; }
@keyframes gullFly {
  0% { opacity: 0; transform: translateX(-12vw) translateY(0) scaleY(1); }
  8% { opacity: 1; }
  25% { transform: translateX(22vw) translateY(-16px) scaleY(0.72); }
  50% { transform: translateX(52vw) translateY(6px) scaleY(1.06); }
  75% { transform: translateX(82vw) translateY(-14px) scaleY(0.75); }
  92% { opacity: 1; }
  100% { opacity: 0; transform: translateX(114vw) translateY(0) scaleY(1); }
}

.sea-wave {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: 34vh;
  pointer-events: none;
  background-repeat: repeat-x;
  background-position: 0 top;
  background-size: 620px 100%;
  transform: translateY(105%);
  transition: opacity 0.8s ease;
}
.sea-wave--3 {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 620 300' preserveAspectRatio='none'%3E%3Cpath d='M0 70 C 110 20 200 110 310 65 C 420 20 510 110 620 70 L620 300 L0 300 Z' fill='rgba(126,190,222,0.35)'/%3E%3C/svg%3E");
  height: 40vh;
  animation: waveRise 1.1s 0.15s cubic-bezier(0.22, 1, 0.36, 1) forwards, waveDriftA 9s 0.15s linear infinite;
}
.sea-wave--2 {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 620 300' preserveAspectRatio='none'%3E%3Cpath d='M0 80 C 120 30 220 120 320 75 C 430 30 520 120 620 80 L620 300 L0 300 Z' fill='rgba(84,158,200,0.5)'/%3E%3C/svg%3E");
  height: 30vh;
  animation: waveRise 1.1s 0.3s cubic-bezier(0.22, 1, 0.36, 1) forwards, waveDriftB 6.5s 0.3s linear infinite;
}
.sea-wave--1 {
  z-index: 6;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 620 300' preserveAspectRatio='none'%3E%3Cpath d='M0 90 C 100 40 230 130 330 85 C 440 40 530 130 620 90 L620 300 L0 300 Z' fill='rgba(46,124,176,0.62)'/%3E%3C/svg%3E");
  height: 22vh;
  animation: waveRise 1.1s 0.45s cubic-bezier(0.22, 1, 0.36, 1) forwards, waveDriftC 5s 0.45s linear infinite;
}
@keyframes waveRise { to { transform: translateY(12%); } }
@keyframes waveDriftA { from { background-position-x: 0; } to { background-position-x: 620px; } }
@keyframes waveDriftB { from { background-position-x: 620px; } to { background-position-x: 0; } }
@keyframes waveDriftC { from { background-position-x: 0; } to { background-position-x: 620px; } }
.sea-out { opacity: 0 !important; }
.sea-out.sea-wave { transform: translateY(105%) !important; transition: transform 0.9s cubic-bezier(0.6, 0, 0.8, 1), opacity 0.9s ease !important; }
/* 海報隨浪漂浮幅度加大 */
.ann-root.ann-splash .ann-poster { z-index: 3; }
@media (prefers-reduced-motion: reduce) {
  .sea-scene, .sea-wave { display: none; }
}

/* ---------- 公告舞台（產品主演版） ---------- */
.ann-stage {
  position: fixed;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.ann-root.ann-splash .ann-stage { opacity: 1; }
.ann-stage-close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 36px;
  height: 36px;
  font-size: 20px;
  pointer-events: auto;
}
.stage-bottle {
  position: absolute;
  left: 50%;
  bottom: 9vh;
  width: min(190px, 30vw);
  margin-left: calc(min(190px, 30vw) / -2);
  transform-origin: 50% 90%;
  filter: drop-shadow(0 24px 40px rgba(10, 50, 80, 0.45));
  animation:
    bottleDrop 1.15s 0.1s cubic-bezier(0.4, 0, 0.6, 1) both,
    bottleBob 3.4s 1.3s ease-in-out infinite;
  pointer-events: auto;
}
@keyframes bottleDrop {
  0% { opacity: 0; transform: translateY(-92vh) rotate(-16deg); }
  12% { opacity: 1; }
  74% { transform: translateY(0) rotate(6deg) scale(1, 1); }
  81% { transform: translateY(3vh) rotate(2deg) scale(1.1, 0.84); }
  90% { transform: translateY(0.6vh) rotate(-2deg) scale(0.96, 1.05); }
  100% { transform: translateY(1.6vh) rotate(0) scale(1, 1); }
}
@keyframes bottleBob {
  0%, 100% { transform: translateY(1.6vh) rotate(-2.6deg); }
  50% { transform: translateY(0.2vh) rotate(2.6deg); }
}
.stage-title {
  position: absolute;
  left: 50%;
  top: 15vh;
  transform: translateX(-50%);
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(46px, 7.5vw, 96px);
  letter-spacing: 0.14em;
  color: #fff;
  text-shadow: 0 4px 24px rgba(20, 70, 110, 0.55), 0 1px 0 rgba(30, 80, 120, 0.4);
  white-space: nowrap;
}
.stage-title span {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.5em) scale(1.5) rotate(5deg);
  animation: stageChar 0.62s cubic-bezier(0.24, 1.3, 0.5, 1) forwards;
}
@keyframes stageChar {
  60% { opacity: 1; transform: translateY(-0.06em) scale(0.96) rotate(-1deg); }
  100% { opacity: 1; transform: translateY(0) scale(1) rotate(0); }
}
.stage-sub {
  position: absolute;
  left: 50%;
  top: calc(15vh + clamp(60px, 9.4vw, 120px));
  transform: translateX(-50%) translateY(14px);
  margin: 0;
  font-size: clamp(17px, 2vw, 24px);
  letter-spacing: 0.42em;
  text-indent: 0.42em;
  color: rgba(255, 255, 255, 0.94);
  text-shadow: 0 2px 14px rgba(20, 70, 110, 0.5);
  opacity: 0;
  animation: stageFadeUp 0.8s 2.6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.stage-cta {
  position: absolute;
  left: 50%;
  bottom: 5vh;
  transform: translateX(-50%) scale(0.6);
  z-index: 7;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  color: var(--pink-700);
  font-size: 15.5px;
  font-weight: 700;
  padding: 12px 28px;
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 10px 26px rgba(10, 50, 80, 0.35);
  opacity: 0;
  pointer-events: auto;
  animation: stageCtaIn 0.6s 3.1s cubic-bezier(0.34, 1.5, 0.64, 1) forwards, annCtaPulse 1.9s 3.8s ease-in-out infinite;
}
.stage-cta i { font-style: normal; }
@keyframes stageFadeUp { to { opacity: 1; transform: translateX(-50%) translateY(0); } }
@keyframes stageCtaIn { to { opacity: 1; transform: translateX(-50%) scale(1); } }
.stage-out .stage-title,
.stage-out .stage-sub,
.stage-out .stage-cta,
.stage-out .ann-stage-close {
  transition: opacity 0.4s ease;
  opacity: 0 !important;
  animation-play-state: paused;
}
/* 雲朵 */
.sea-cloud {
  position: absolute;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.5);
  filter: blur(14px);
}
.sea-cloud--1 { width: 240px; height: 54px; top: 12%; left: -18%; animation: cloudDrift 26s linear infinite; }
.sea-cloud--2 { width: 170px; height: 42px; top: 27%; left: -30%; animation: cloudDrift 34s 4s linear infinite; }
@keyframes cloudDrift { from { transform: translateX(0); } to { transform: translateX(160vw); } }
@media (max-width: 720px) {
  .stage-title { top: 12vh; }
  .stage-bottle { bottom: 12vh; }
}

/* ---------- 會員系統 ---------- */
.member-link { position: relative; }
.member-dot {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ok, #4c7a62);
}
.member-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow);
  padding: 26px 28px;
}
.member-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.member-card--wide { grid-column: 1 / -1; }
.member-card-title {
  font-family: var(--font-display);
  font-size: 19px;
  margin: 0 0 14px;
}
.member-tabs {
  display: flex;
  gap: 6px;
  background: var(--pink-50);
  border-radius: 12px;
  padding: 5px;
  margin-bottom: 20px;
}
.member-tab {
  flex: 1;
  border: 0;
  background: none;
  padding: 9px;
  border-radius: 9px;
  font-size: 15px;
  color: var(--ink-500);
  transition: background 0.2s ease, color 0.2s ease;
}
.member-tab.active {
  background: #fff;
  color: var(--pink-700);
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(58, 39, 45, 0.08);
}
/* 結帳表單整體置中，但選項卡的文字要跟左邊的圓鈕對齊，
   不然標題會飄到中間、看起來像沒對準。 */
.pay-option { text-align: left; }
.pay-option-body { text-align: left; }

/* 會員訂單的物流進度：四個點串成一條線，走到哪亮到哪 */
.order-track {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
}

.order-track li {
  display: grid;
  justify-items: center;
  gap: 6px;
  position: relative;
  font-size: 12px;
  color: var(--ink-400);
}

/* 連接線畫在點的後面，最後一個不用畫 */
.order-track li::before {
  content: "";
  position: absolute;
  top: 5px;
  left: 50%;
  width: 100%;
  height: 2px;
  background: var(--line);
}

.order-track li:last-child::before { display: none; }
.order-track li.is-done::before { background: var(--pink-400); }
.order-track li:last-child.is-done::before { display: none; }

.order-track-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--line);
  position: relative;
  z-index: 1;
}

.order-track li.is-done .order-track-dot { background: var(--pink-600); }
.order-track li.is-done .order-track-label { color: var(--ink-700); }

.order-track li.is-current .order-track-dot {
  box-shadow: 0 0 0 4px var(--pink-100);
}

.order-track li.is-current .order-track-label { font-weight: 700; }

.order-track-meta {
  margin: 14px 0 0;
  display: grid;
  gap: 6px;
  font-size: 13px;
}

.order-track-meta > div {
  display: grid;
  grid-template-columns: 5.5em 1fr;
  gap: 10px;
  align-items: baseline;
}

.order-track-meta dt { color: var(--ink-500); }
.order-track-meta dd { margin: 0; }

.order-track-cancelled {
  margin: 12px 0 0;
  font-size: 13px;
  color: var(--ink-500);
}

.cvs-pick { width: 100%; margin-top: 10px; }

.cvs-chosen {
  margin: 10px 0 0;
  padding: 10px 14px;
  border-radius: 12px;
  background: var(--pink-50);
  border: 1px solid var(--pink-200);
  font-size: 14px;
  text-align: left;
  line-height: 1.6;
}

.cvs-chosen span { color: var(--ink-500); font-size: 13px; }

/* 配送方式與付款方式共用同一組選項樣式，中間留白區隔 */
.ship-methods { margin-bottom: 18px; }

.order-lines {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
  text-align: left;
}

.order-lines li {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 10px;
  align-items: baseline;
  font-size: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.order-line-qty { color: var(--ink-500); font-size: 13px; }
.order-line-price { font-variant-numeric: tabular-nums; }

.order-total {
  margin: 12px 0 0;
  text-align: right;
  font-size: 16px;
  font-weight: 700;
}

.order-ship {
  margin: 18px 0 0;
  display: grid;
  gap: 8px;
  text-align: left;
  font-size: 14px;
}

.order-ship > div {
  display: grid;
  grid-template-columns: 5.5em 1fr;
  gap: 10px;
  align-items: baseline;
}

.order-ship dt { color: var(--ink-500); font-size: 13px; }
.order-ship dd { margin: 0; }

/* 個人資料的唯讀檢視：預設看到的樣子，按「編輯個人資料」才換成表單 */
.member-profile-view {
  display: grid;
  gap: 12px;
  margin: 4px 0 16px;
}

.member-profile-view > div {
  display: grid;
  grid-template-columns: 4em 1fr;
  align-items: baseline;
  gap: 12px;
}

.member-profile-view dt {
  font-size: 13px;
  color: var(--ink-500);
}

.member-profile-view dd {
  margin: 0;
  font-size: 15px;
  color: var(--ink-900);
}

.member-edit-toggle { width: 100%; }

.member-form-actions {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
}

.member-form { display: grid; gap: 14px; }
.member-form label {
  display: grid;
  gap: 6px;
  font-size: 13px;
  color: var(--ink-500);
}
.member-form input {
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  font-size: 15px;
  font-family: inherit;
}
.member-form input:focus { outline: 2px solid var(--pink-500); border-color: transparent; }
.member-msg { margin: 0; font-size: 13px; color: var(--ink-700); min-height: 18px; }
.member-email { color: var(--ink-500); font-size: 14px; margin: 0 0 12px; }
.member-logout { margin-top: 16px; width: 100%; color: var(--danger, #b0523f); }
.member-favs { display: grid; gap: 8px; }
.member-fav {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 10px;
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  transition: background 0.15s ease;
}
.member-fav:hover { background: var(--pink-50); }
.member-fav-thumb { width: 44px; height: 44px; border-radius: 10px; overflow: hidden; background: var(--cream); flex-shrink: 0; }
.member-fav-thumb img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.7); }
.member-fav-name { flex: 1; font-size: 14px; }
.member-fav-price { font-family: var(--font-display); color: var(--pink-700); font-size: 14px; }
.member-orders { display: grid; gap: 12px; }
.member-order {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 18px;
}
.member-order-head { display: flex; align-items: center; gap: 12px; font-size: 14px; }
.member-order-status {
  font-size: 12px;
  background: var(--pink-100);
  color: var(--pink-700);
  border-radius: 999px;
  padding: 2px 10px;
}
.member-order-date { margin-left: auto; color: var(--ink-500); font-size: 12.5px; }
.member-order-items { font-size: 13px; color: var(--ink-700); margin-top: 6px; }
.member-order-total { font-family: var(--font-display); color: var(--pink-700); margin-top: 4px; font-size: 14px; }
.fav-btn {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.92);
  color: var(--pink-700);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 600;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.2s ease;
}
.fav-btn:hover { transform: translateY(-2px); background: #fff; }
.fav-btn.is-on { background: var(--pink-600); color: #fff; border-color: var(--pink-600); }
@media (max-width: 780px) {
  .member-grid { grid-template-columns: 1fr; }
}

/* ---------- 2026 互動層 ---------- */
/* 跨頁原生轉場（View Transitions API，支援的瀏覽器自動生效） */
@view-transition {
  navigation: auto;
}
@keyframes vtOut { to { opacity: 0; transform: translateY(-14px); } }
@keyframes vtIn { from { opacity: 0; transform: translateY(18px); } }
::view-transition-old(root) { animation: vtOut 0.22s ease both; }
::view-transition-new(root) { animation: vtIn 0.34s 0.08s cubic-bezier(0.22, 1, 0.36, 1) both; }

/* 捲動進度條（純 CSS scroll-driven，支援才顯示） */
@supports (animation-timeline: scroll()) {
  body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    z-index: 300;
    background: linear-gradient(90deg, var(--pink-500), var(--pink-700));
    transform-origin: left center;
    transform: scaleX(0);
    animation: scrollProgress linear both;
    animation-timeline: scroll(root);
    pointer-events: none;
  }
}
@keyframes scrollProgress { to { transform: scaleX(1); } }

/* 區塊圖片進場視差。
   只在滑鼠裝置開啟：手機用手指捲動時，圖片反向漂移會讓人覺得畫面在跟自己拉扯、抓不準位置。 */
@supports (animation-timeline: view()) {
  @media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
    .camp-feature-media img,
    .camp-cell-media img {
      animation: mediaDrift linear both;
      animation-timeline: view();
      animation-range: entry 0% exit 100%;
    }
  }
  @keyframes mediaDrift {
    from { transform: translateY(2.5%) scale(1.05); }
    to { transform: translateY(-2.5%) scale(1.05); }
  }
}

/* 3D tilt */
.tiltable {
  transform-style: preserve-3d;
  will-change: transform;
}
.camp-feature.tiltable,
.camp-cell.tiltable {
  position: relative;
}
.tilt-glare {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 3;
}

/* 飛入購物車 */
.fly-item {
  position: fixed;
  z-index: 400;
  width: 84px;
  height: 84px;
  margin: -42px 0 0 -42px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 14px 34px rgba(58, 39, 45, 0.35);
  pointer-events: none;
  transition: transform 0.62s cubic-bezier(0.5, -0.1, 0.3, 1), opacity 0.62s ease;
}
.fly-item img { width: 100%; height: 100%; object-fit: cover; }
.cart-pop { animation: cartPop 0.5s cubic-bezier(0.34, 1.8, 0.64, 1); }
@keyframes cartPop {
  0% { transform: scale(1); }
  40% { transform: scale(1.35) rotate(-6deg); }
  100% { transform: scale(1); }
}

/* marquee hover 減速（可讀性 micro-interaction） */
.hero-marquee:hover .hero-marquee-track { animation-play-state: paused; }

@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
  .camp-feature-media img, .camp-cell-media img { animation: none !important; }
}

/* ---------- 購物車抽屜 v2 ---------- */
.cart-item--rich {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.cart-thumb {
  width: 64px;
  height: 64px;
  flex-shrink: 0;
  border-radius: 12px;
  overflow: hidden;
  background: var(--cream);
}
.cart-thumb img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.6); }
.cart-info { flex: 1; min-width: 0; }
.cart-item--rich .cart-item-title { font-size: 14.5px; font-weight: 600; margin: 0; }
.cart-color {
  display: inline-block;
  font-size: 12px;
  color: var(--pink-700);
  background: var(--pink-100);
  border-radius: 999px;
  padding: 1px 10px;
  margin: 4px 0;
}
.cart-item-title .cart-color { margin-left: 8px; }
.cart-unit { font-size: 12.5px; color: var(--ink-500); }
.cart-qty {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}
.cart-step {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink-700);
  font-size: 15px;
  line-height: 1;
  transition: background 0.15s ease, transform 0.2s ease;
}
.cart-step:hover { background: var(--pink-50); transform: scale(1.08); }
.cart-qty-num { min-width: 20px; text-align: center; font-weight: 700; font-size: 14px; }
.cart-remove {
  margin-left: auto;
  border: 0;
  background: none;
  color: var(--ink-500);
  font-size: 12.5px;
  text-decoration: underline;
}
.cart-remove:hover { color: var(--danger, #b0523f); }
.cart-line-total {
  font-family: var(--font-display);
  font-size: 15px;
  color: var(--pink-700);
  white-space: nowrap;
  padding-top: 2px;
}

/* ---------- 門市內嵌地圖 ---------- */
.store-map {
  margin: 22px 0 26px;
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow);
}
.store-map-head {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--line);
}
.store-map-label { font-size: 14.5px; }
.store-map-hint { font-size: 12px; color: var(--ink-500); margin-left: auto; }
.store-map iframe {
  display: block;
  width: 100%;
  height: 380px;
  border: 0;
}
.store-card--active {
  border-color: var(--pink-500) !important;
  box-shadow: 0 0 0 2px var(--pink-200), var(--shadow);
}
@media (max-width: 720px) {
  .store-map iframe { height: 280px; }
  .store-map-hint { display: none; }
}
.store-map-label small { display: block; font-size: 12.5px; color: var(--ink-500); font-weight: 400; margin-top: 2px; }
.store-map-open {
  margin-left: auto;
  font-size: 13px;
  color: var(--pink-700);
  text-decoration: none;
  white-space: nowrap;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 14px;
  transition: background 0.2s ease, transform 0.25s cubic-bezier(0.34,1.56,0.64,1);
}
.store-map-open:hover { background: var(--pink-50); transform: translateY(-1px); }
.store-map-head { align-items: center; }

/* ================= FX 層（51/53/56/58/63/65/66/67/68） ================= */
/* 51 共享元素轉場 */
::view-transition-old(product-hero),
::view-transition-new(product-hero) {
  animation-duration: 0.5s;
  animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
  mix-blend-mode: normal;
}

/* 53 換頁載入條 */
.nav-loadbar {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0;
  z-index: 400;
  background: linear-gradient(90deg, var(--pink-500), var(--pink-700));
  opacity: 0;
  pointer-events: none;
}
.nav-loadbar.run { animation: navLoad 1.4s cubic-bezier(0.2, 0.8, 0.3, 1) forwards; }
@keyframes navLoad {
  0% { width: 0; opacity: 1; }
  70% { width: 82%; opacity: 1; }
  100% { width: 100%; opacity: 0; }
}

/* 56 情境游標 */
.cursor-ring.has-label {
  width: 82px; height: 82px;
  margin: -41px 0 0 -41px;
  background: rgba(192, 130, 151, 0.92);
  border-color: transparent;
}
.cursor-label {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.cursor-ring.has-label .cursor-label { opacity: 1; }

/* 58 放大鏡 */
.media-stage.zoomable { overflow: hidden; cursor: zoom-in; }
.media-stage.zoomable img { transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1); }
.media-stage.is-zoom img { transform: scale(2.1); }

/* 63 水位捲動指示器 */
.water-gauge {
  position: fixed;
  right: 22px;
  top: 50%;
  transform: translateY(-50%) translateX(18px);
  z-index: 90;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0;
  transition: opacity 0.4s ease, transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}
.water-gauge.is-visible { opacity: 1; transform: translateY(-50%) translateX(0); }
.water-gauge-bottle {
  position: relative;
  width: 26px;
  height: 78px;
  border: 2px solid var(--pink-300);
  border-radius: 9px 9px 11px 11px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.7);
}
.water-gauge-bottle::before {
  content: "";
  position: absolute;
  top: -7px; left: 50%;
  transform: translateX(-50%);
  width: 12px; height: 7px;
  border-radius: 3px 3px 0 0;
  background: var(--pink-300);
}
.water-gauge-fill {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 0;
  background: linear-gradient(180deg, rgba(146, 200, 230, 0.95), rgba(90, 160, 210, 0.95));
  transition: height 0.25s ease-out;
}
.water-gauge-fill::after {
  content: "";
  position: absolute;
  top: -4px; left: -10%;
  width: 120%; height: 8px;
  border-radius: 50%;
  background: rgba(210, 240, 255, 0.9);
  animation: gaugeWave 2.4s ease-in-out infinite;
}
@keyframes gaugeWave {
  0%, 100% { transform: translateX(-4%) scaleY(0.7); }
  50% { transform: translateX(4%) scaleY(1.1); }
}
.water-gauge-num { font-size: 11px; color: var(--ink-500); font-family: var(--font-display); }

/* 65 加入購物車按鈕形變 */
.btn-morph {
  border-radius: 999px !important;
  width: 46px !important;
  padding: 0 !important;
  min-width: 46px;
  transition: width 0.32s cubic-bezier(0.6, 0, 0.3, 1), border-radius 0.3s ease;
  overflow: hidden;
}
.btn-check {
  display: inline-block;
  animation: btnCheck 0.4s 0.18s cubic-bezier(0.34, 1.8, 0.64, 1) both;
  font-size: 18px;
  line-height: 1;
}
@keyframes btnCheck {
  from { opacity: 0; transform: scale(0.2) rotate(-25deg); }
  to { opacity: 1; transform: scale(1) rotate(0); }
}

/* 66 換色水波紋 */
.media-stage { position: relative; }
.color-ripple {
  position: absolute;
  width: 12px; height: 12px;
  margin: -6px 0 0 -6px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.85), rgba(255,255,255,0));
  pointer-events: none;
  animation: colorRipple 0.85s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
@keyframes colorRipple {
  to { transform: scale(60); opacity: 0; }
}

/* 67 表單驗證動效 */
input.valid, textarea.valid { border-color: #7fb79a !important; background-image: linear-gradient(transparent, transparent); }
input.invalid, textarea.invalid { border-color: #d98b76 !important; }
.shake { animation: fieldShake 0.35s ease; }
@keyframes fieldShake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  50% { transform: translateX(5px); }
  75% { transform: translateX(-3px); }
}

/* 68 骨架屏 */
.img-loading {
  position: relative;
  background: linear-gradient(100deg, var(--pink-50) 30%, #fff 50%, var(--pink-50) 70%);
  background-size: 220% 100%;
  animation: skelShimmer 1.3s linear infinite;
}
.img-loading > img { opacity: 0; }
@keyframes skelShimmer { to { background-position: -220% 0; } }

@media (prefers-reduced-motion: reduce) {
  .nav-loadbar, .water-gauge, .color-ripple { display: none; }
  .img-loading { animation: none; }
}

/* ================= 功能層 CSS ================= */
/* 法律頁 */
.legal-doc { max-width: 760px; margin: 0 auto; line-height: 1.9; }
.legal-doc h2 { font-family: var(--font-display); font-size: 20px; margin: 30px 0 10px; }
.legal-doc p, .legal-doc li { color: var(--ink-700); font-size: 15px; }
.legal-doc ul { padding-left: 20px; }

/* 37 色牆 */
.color-wall-tools { display: flex; align-items: center; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.color-wall-tools .filter-input { flex: 1; min-width: 260px; }
.color-wall-legend { font-size: 13px; color: var(--ink-500); }
.color-wall { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.color-swatch-group { position: relative; }
.color-swatch {
  width: 100%;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 16px;
  padding: 0 0 12px;
  overflow: hidden;
  display: grid;
  gap: 6px;
  justify-items: center;
  transition: transform 0.3s cubic-bezier(0.22,1,0.36,1), box-shadow 0.3s ease;
}
.color-swatch:hover, .color-swatch.is-open { transform: translateY(-4px); box-shadow: 0 18px 36px rgba(160,102,127,0.2); }
.color-swatch-img { display: block; width: 100%; aspect-ratio: 1; overflow: hidden; background: var(--cream); }
.color-swatch-img img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.7); }
.color-swatch-name { font-family: var(--font-display); font-size: 15px; }
.color-swatch-count { font-size: 11px; color: var(--pink-700); background: var(--pink-100); border-radius: 999px; padding: 1px 9px; }
.color-swatch-panel {
  position: absolute; left: 0; right: 0; top: calc(100% + 8px); z-index: 20;
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 20px 44px rgba(58,39,45,0.2); padding: 8px; min-width: 280px;
  max-height: 320px; overflow-y: auto;
}
.color-swatch-item { display: flex; align-items: center; gap: 10px; padding: 7px 9px; border-radius: 10px; text-decoration: none; color: inherit; }
.color-swatch-item:hover { background: var(--pink-50); }
.color-swatch-thumb { width: 40px; height: 40px; border-radius: 9px; overflow: hidden; background: var(--cream); flex-shrink: 0; }
.color-swatch-thumb img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.7); }
.color-swatch-info { flex: 1; display: grid; }
.color-swatch-info strong { font-size: 13.5px; font-weight: 600; }
.color-swatch-info small { color: var(--ink-500); font-size: 11.5px; }
.color-swatch-price { font-family: var(--font-display); color: var(--pink-700); font-size: 13px; }

/* 40 FAQ 搜尋 */
.faq-search-box { display: flex; align-items: center; gap: 14px; margin-bottom: 24px; }
.faq-search-box .filter-input { flex: 1; }
.faq-search-count { font-size: 13px; color: var(--ink-500); white-space: nowrap; }

/* 36 分享 */
.share-row { display: flex; align-items: center; gap: 8px; margin-top: 16px; }
.share-label { font-size: 13px; color: var(--ink-500); }
.share-btn {
  border: 1px solid var(--line); background: #fff; color: var(--ink-700);
  border-radius: 999px; padding: 6px 14px; font-size: 12.5px; text-decoration: none;
  transition: background 0.2s ease, transform 0.25s cubic-bezier(0.34,1.56,0.64,1);
}
.share-btn:hover { background: var(--pink-50); transform: translateY(-2px); }

/* 5 最近瀏覽 */
.recent-row { display: flex; flex-wrap: wrap; gap: 16px; }
.recent-card {
  display: grid;
  gap: 8px;
  width: 190px;
  padding: 10px 10px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s cubic-bezier(0.22,1,0.36,1), box-shadow 0.3s ease;
}
.recent-card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(160,102,127,0.16); }
.recent-thumb { display: block; aspect-ratio: 1; border-radius: 14px; overflow: hidden; background: var(--cream); }
.recent-thumb img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.6); transition: transform 0.5s cubic-bezier(0.22,1,0.36,1); }
.recent-card:hover .recent-thumb img { transform: scale(1.72); }
.recent-name { font-size: 13.5px; padding: 0 2px; }
.recent-price { font-family: var(--font-display); color: var(--pink-700); font-size: 14px; padding: 0 2px; }

/* 4 免運進度 */
.ship-progress { margin: 4px 0 12px; }
.ship-msg { font-size: 13px; color: var(--ink-700); margin-bottom: 6px; }
.ship-msg.ok { color: #4c7a62; font-weight: 700; }
.ship-bar { height: 6px; border-radius: 999px; background: var(--pink-100); overflow: hidden; }
.ship-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--pink-500), var(--pink-700)); transition: width 0.5s cubic-bezier(0.22,1,0.36,1); }

/* 42 地圖模式切換 */
.map-mode { display: flex; gap: 8px; padding: 12px 18px 0; }
.map-mode-btn {
  border: 1px solid var(--line); background: #fff; color: var(--ink-700);
  border-radius: 999px; padding: 6px 14px; font-size: 13px;
  transition: background 0.2s ease, color 0.2s ease;
}
.map-mode-btn.is-on { background: var(--pink-600); color: #fff; border-color: var(--pink-600); }

/* 35 電子報 */
.newsletter {
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  box-sizing: border-box; max-width: 100%;
  padding: 20px 24px; margin-bottom: 28px;
  background: var(--pink-50); border: 1px solid var(--line); border-radius: 18px;
}
.newsletter-copy { display: grid; }
.newsletter-copy strong { font-family: var(--font-display); font-size: 17px; }
.newsletter-copy span { font-size: 13px; color: var(--ink-500); }
.newsletter-form { display: flex; gap: 8px; flex: 1; min-width: 0; justify-content: flex-end; }
.newsletter-form input {
  padding: 9px 14px; border-radius: 999px; border: 1px solid var(--line);
  font-family: inherit; font-size: 14px; flex: 1; min-width: 0; max-width: 320px;
}
.newsletter-form .btn { flex-shrink: 0; }
.newsletter-done { margin: 0; color: #4c7a62; font-weight: 700; font-size: 14px; }
@media (max-width: 720px) {
  .color-wall { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
  .color-swatch-panel { position: static; box-shadow: none; margin-top: 8px; }
  .newsletter { flex-direction: column; align-items: stretch; }
  .newsletter-form input { min-width: 0; flex: 1; }
}
.footer-legal { margin: 0 0 6px; font-size: 12.5px; }
.footer-legal a { color: var(--ink-500); text-decoration: none; }
.footer-legal a:hover { color: var(--pink-700); text-decoration: underline; }
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 500;
  background: var(--pink-700); color: #fff; padding: 10px 18px; border-radius: 0 0 12px 0;
  text-decoration: none; font-size: 14px;
}
.skip-link:focus { left: 0; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ================= 購物功能層 ================= */
.theme-toggle { font-size: 17px; line-height: 1; }

/* 3 庫存徽章 */
.stock-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 10px 0 4px; }
.stock-badge { font-size: 12px; border-radius: 999px; padding: 3px 11px; }
.stock-badge.in { color: #3f7a5f; background: #e9f4ee; }
.stock-badge.alt { color: var(--pink-700); background: var(--pink-100); }
.stock-badge.hot { color: #a3471f; background: #fdeee2; }
.stock-ship { font-size: 12px; color: var(--ink-500); }

/* 2 常一起買 */
.bundle-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 16px; }
.bundle-card {
  display: grid; gap: 10px; padding: 14px;
  border: 1px solid var(--line); border-radius: 16px; background: #fff;
  transition: transform 0.3s cubic-bezier(0.22,1,0.36,1), box-shadow 0.3s ease;
}
.bundle-card:hover { transform: translateY(-4px); box-shadow: 0 18px 36px rgba(160,102,127,0.18); }
.bundle-thumb { display: block; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: var(--cream); }
.bundle-thumb img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.6); }
.bundle-info { display: grid; gap: 2px; }
.bundle-info a { font-size: 13.5px; text-decoration: none; color: inherit; }
.bundle-price { font-family: var(--font-display); color: var(--pink-700); font-size: 14px; }

/* 7 比較 */
.cmp-btn {
  position: absolute; top: 10px; left: 10px; z-index: 3;
  border: 1px solid var(--line); background: rgba(255,255,255,0.92);
  color: var(--ink-700); border-radius: 999px; padding: 4px 11px; font-size: 11.5px;
  opacity: 0; transition: opacity 0.2s ease, background 0.2s ease;
}
article:hover .cmp-btn, .cmp-btn.is-on { opacity: 1; }
.cmp-btn.is-on { background: var(--pink-600); color: #fff; border-color: var(--pink-600); }
.cmp-bar {
  position: fixed; left: 50%; bottom: 18px; transform: translate(-50%, calc(100% + 30px));
  z-index: 120; display: flex; align-items: center; gap: 16px;
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  padding: 10px 16px; box-shadow: 0 18px 40px rgba(58,39,45,0.24);
  transition: transform 0.45s cubic-bezier(0.34,1.4,0.64,1), visibility 0.45s;
  visibility: hidden;
  max-width: min(92vw, 860px);
}
.cmp-bar.is-visible { transform: translate(-50%, 0); visibility: visible; }
.cmp-items { display: flex; gap: 8px; overflow-x: auto; }
.cmp-chip {
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
  background: var(--pink-50); border-radius: 999px; padding: 5px 12px; font-size: 12.5px;
}
.cmp-chip button { border: 0; background: none; color: var(--ink-500); font-size: 14px; }
.cmp-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.cmp-clear { border: 0; background: none; color: var(--ink-500); font-size: 12.5px; text-decoration: underline; }
.cmp-modal {
  position: fixed; inset: 0; z-index: 150; display: flex; align-items: center; justify-content: center;
  background: rgba(42,34,37,0.45); backdrop-filter: blur(6px);
  opacity: 0; visibility: hidden; transition: opacity 0.25s ease, visibility 0.25s;
  padding: 20px;
}
.cmp-modal.open { opacity: 1; visibility: visible; }
.cmp-panel {
  position: relative; background: #fff; border-radius: 20px; padding: 26px;
  max-width: 900px; width: 100%; max-height: 84vh; overflow: auto;
  box-shadow: 0 40px 90px rgba(0,0,0,0.35);
}
.cmp-title { font-family: var(--font-display); font-size: 21px; margin: 0 0 16px; }
.cmp-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.cmp-table th, .cmp-table td { padding: 12px 10px; border-bottom: 1px solid var(--line); text-align: center; }
.cmp-table th a { text-decoration: none; color: inherit; display: grid; gap: 6px; justify-items: center; font-size: 13px; }
.cmp-th-img { width: 72px; height: 72px; border-radius: 12px; overflow: hidden; background: var(--cream); display: block; }
.cmp-th-img img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.6); }
.cmp-label { text-align: left; color: var(--ink-500); font-size: 12.5px; white-space: nowrap; }
.cmp-table-wrap { overflow-x: auto; }

/* 38 影片 */
.video-frame { position: relative; padding-top: 56.25%; border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ================= 視覺互動層 2 ================= */
/* 62 時間軸進場 */
.tl-item { opacity: 0; transform: translateY(26px); transition: opacity 0.8s cubic-bezier(0.22,1,0.36,1), transform 0.8s cubic-bezier(0.22,1,0.36,1); transition-delay: var(--tl-delay, 0s); }
.tl-item.tl-in { opacity: 1; transform: translateY(0); }

/* 64 釘住主圖 */
@media (min-width: 900px) {
  .detail-media.is-sticky { position: sticky; top: 96px; align-self: start; }
}

/* 69 hero 流體背景 */
.hero-fluid {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  opacity: 0; transition: opacity 0.5s ease;
  background: radial-gradient(420px circle at var(--fx, 50%) var(--fy, 50%), rgba(226,177,193,0.4), rgba(255,214,180,0.18) 45%, transparent 70%);
  filter: blur(20px);
}

/* 70 音效開關 */
.sound-toggle {
  position: fixed; left: 18px; bottom: 18px; z-index: 110;
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--line); background: rgba(255,255,255,0.9);
  font-size: 16px; line-height: 1; opacity: 0.55;
  box-shadow: 0 6px 18px rgba(58,39,45,0.14);
  transition: opacity 0.2s ease, transform 0.25s cubic-bezier(0.34,1.56,0.64,1);
}
.sound-toggle:hover { opacity: 1; transform: scale(1.08); }
.sound-toggle.is-on { opacity: 1; border-color: var(--pink-500); }

/* 55 季節主題 */
:root[data-season="summer"] .hero-blob--1 { background: radial-gradient(circle at 40% 40%, rgba(150,205,230,0.55), rgba(255,255,255,0) 70%); }
:root[data-season="autumn"] .hero-blob--1 { background: radial-gradient(circle at 40% 40%, rgba(232,178,120,0.5), rgba(255,255,255,0) 70%); }
:root[data-season="winter"] .hero-blob--1 { background: radial-gradient(circle at 40% 40%, rgba(190,205,225,0.55), rgba(255,255,255,0) 70%); }
:root[data-season="spring"] .hero-blob--1 { background: radial-gradient(circle at 40% 40%, rgba(244,205,217,0.6), rgba(255,255,255,0) 70%); }

@media (prefers-reduced-motion: reduce) {
  .tl-item { opacity: 1; transform: none; transition: none; }
  .hero-fluid { display: none; }
}

/* 39 評價 */
.reviews-summary { display: flex; align-items: baseline; gap: 12px; margin-bottom: 16px; }
.rv-avg { font-family: var(--font-display); font-size: 34px; color: var(--pink-700); }
.rv-avg-stars { color: #e0a94a; font-size: 18px; letter-spacing: 2px; }
.rv-count { color: var(--ink-500); font-size: 13.5px; }
.reviews-list { display: grid; gap: 12px; margin-bottom: 22px; }
.review-item { border: 1px solid var(--line); border-radius: 14px; padding: 14px 18px; background: #fff; }
.rv-head { display: flex; align-items: center; gap: 10px; font-size: 13.5px; }
.rv-item-stars { color: #e0a94a; letter-spacing: 1px; }
.rv-head time { margin-left: auto; color: var(--ink-500); font-size: 12px; }
.review-item p { margin: 6px 0 0; font-size: 14px; line-height: 1.75; color: var(--ink-700); }
.review-form { display: grid; gap: 10px; max-width: 520px; }
.review-form input, .review-form textarea { padding: 10px 14px; border-radius: 12px; border: 1px solid var(--line); font-family: inherit; font-size: 14px; }
.review-form textarea { min-height: 84px; resize: vertical; }
.rv-stars { display: flex; gap: 4px; }
.rv-star { border: 0; background: none; font-size: 24px; color: var(--line); line-height: 1; padding: 0; transition: transform 0.2s ease, color 0.2s ease; }
.rv-star.on { color: #e0a94a; }
.rv-star:hover { transform: scale(1.15); }
.forgot-link { border: 0; background: none; color: var(--ink-500); font-size: 13px; text-decoration: underline; justify-self: start; }

/* ================= 去模板化設計層（editorial polish） ================= */
/* 1. 區塊標題：從「置中 kicker+title+subtitle」改成左對齊編輯式標頭 + 髮絲線 */
body[data-page="home"] .section > .container > .section-kicker,
body[data-page="products"] .section > .container > .section-kicker,
body[data-page="stores"] .section > .container > .section-kicker {
  text-align: left;
  margin: 0 0 6px;
  letter-spacing: 0.34em;
  font-size: 11px;
  color: var(--pink-600);
}
body[data-page="home"] .section > .container > .section-title,
body[data-page="products"] .section > .container > .section-title,
body[data-page="stores"] .section > .container > .section-title,
body[data-page="certifications"] .section > .container > .section-title {
  text-align: left;
  letter-spacing: -0.01em;
  position: relative;
  padding-bottom: 14px;
  margin-bottom: 6px;
}
body[data-page="home"] .section > .container > .section-title::after,
body[data-page="products"] .section > .container > .section-title::after,
body[data-page="stores"] .section > .container > .section-title::after,
body[data-page="certifications"] .section > .container > .section-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 54px;
  height: 2px;
  background: var(--pink-500);
}
body[data-page="home"] .section > .container > .section-subtitle,
body[data-page="products"] .section > .container > .section-subtitle,
body[data-page="stores"] .section > .container > .section-subtitle,
body[data-page="certifications"] .section > .container > .section-subtitle {
  text-align: left;
  margin-left: 0;
  margin-right: 0;
  max-width: 46ch;
}

/* 2. 紙質顆粒（取代全站柔光塑膠感） */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.4;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3CfeColorMatrix values='0 0 0 0 0.55 0 0 0 0 0.45 0 0 0 0 0.48 0 0 0 0.035 0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23g)'/%3E%3C/svg%3E");
}

/* 3. 陰影降噪：卡片改以髮絲線與極輕位移為主 */
.camp-cell, .bundle-card, .store-card, .report-card, .color-swatch, .recent-card, .review-item {
  box-shadow: 0 1px 2px rgba(58, 39, 45, 0.04), 0 8px 20px rgba(58, 39, 45, 0.05);
}
.camp-cell:hover, .bundle-card:hover, .store-card:hover, .color-swatch:hover {
  box-shadow: 0 2px 4px rgba(58, 39, 45, 0.05), 0 16px 34px rgba(160, 102, 127, 0.14);
}

/* 4. 圓角層級化（不再全站同一個 radius） */
.camp-feature { border-radius: 4px 26px 26px 26px; }
.camp-cell { border-radius: 4px 20px 20px 20px; }
.store-map { border-radius: 4px 20px 20px 20px; }
.member-card { border-radius: 4px 20px 20px 20px; }

/* 5. 價格數字用襯線 + 表格對齊數字 */
.camp-price strong, .price-large, .cart-line-total, .member-fav-price, .recent-price, .cmp-table td {
  font-variant-numeric: tabular-nums;
}
.price-large { letter-spacing: -0.02em; }

/* 6. 內文排版鬆一點、字距收一點（東方雜誌感） */
.section-subtitle, .legal-doc p, .spec-list li, .highlight-list li { line-height: 1.85; }
.hero-display, .section-title, .camp-feature-body h3 { letter-spacing: -0.015em; }

/* 7. 區塊之間用髮絲線分隔，取代一路留白 */
body[data-page="home"] .section + .section > .container::before {
  content: "";
  display: block;
  height: 1px;
  background: linear-gradient(90deg, var(--line), transparent 62%);
  margin-bottom: 40px;
}
body[data-page="home"] .hero-stage + .section > .container::before,
body[data-page="home"] .color-story + .section > .container::before { content: none; }

/* 8. 主打大卡文字區加編號感（真的有序才用） */
.camp-feature-body { position: relative; }
.camp-feature-body::before {
  content: "01";
  position: absolute;
  top: clamp(20px, 3vw, 34px);
  right: clamp(20px, 3vw, 34px);
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.2em;
  color: var(--pink-300);
}

/* pill 改成 inline（不再拉成整條） */
.material-pill {
  display: inline-flex;
  width: auto;
  margin: 0 0 16px;
}
body[data-page="home"] .material-hero .material-pill { margin-left: 0; }

/* 區塊間距收斂：主打 → 材質區塊之間留白過大 */
.campaigns-section { padding-bottom: 20px; }
.material-hero { padding-top: 48px; }
body[data-page="home"] .section + .section > .container::before { margin-bottom: 32px; }

/* 材質對決標題改左對齊編輯式（與全站一致） */
body[data-page="home"] .material-hero .section-title,
body[data-page="home"] .material-hero h2,
body[data-page="home"] .material-hero .section-subtitle { text-align: left; margin-left: 0; margin-right: 0; }
body[data-page="home"] .material-hero .section-subtitle { max-width: 52ch; }
body[data-page="home"] .material-hero .material-intro {
  text-align: left;
  margin-left: 0;
  margin-right: 0;
  max-width: 56ch;
}
/* 電子報：頁尾為 grid，讓它橫跨整列 */
.newsletter { grid-column: 1 / -1; width: 100%; }

/* ---------- 內頁 editorial split hero ---------- */
.container.page-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  align-items: stretch;
  gap: 0;
  padding: 0;
  overflow: hidden;
  min-height: 300px;
}
.container.page-hero .hero-grid {
  display: flex;
  align-items: center;
  padding: clamp(30px, 4.5vw, 60px);
}
.container.page-hero .hero-copy {
  display: block;
  text-align: left;
  justify-items: start;
}
.container.page-hero .hero-title {
  text-align: left;
  font-size: clamp(30px, 4vw, 46px);
  letter-spacing: -0.01em;
  margin-bottom: 10px;
}
.container.page-hero .hero-lead {
  text-align: left;
  margin: 0;
  color: var(--ink-500);
  max-width: 40ch;
}

/* 商品頁抬頭：原本五行的間距差不多，全部黏在一起。
   給它節奏——類別貼著標題，規格標籤和按鈕各自拉開。 */
.container.page-hero .hero-copy--product .hero-accent {
  margin-bottom: 12px;
}
.container.page-hero .hero-copy--product .hero-title {
  margin-bottom: 12px;
}
.container.page-hero .hero-copy--product .hero-lead {
  margin-bottom: 22px;
}
.container.page-hero .hero-copy--product .tag-list {
  margin-bottom: 30px;
}
.page-hero-media {
  position: relative;
  overflow: hidden;
  background: var(--cream);
  min-height: 300px;
}
.page-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.02);
  animation: heroMediaIn 1.2s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes heroMediaIn { from { opacity: 0; transform: scale(1.08); } to { opacity: 1; transform: scale(1.02); } }
.page-hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--cream) 0%, rgba(246, 241, 234, 0) 22%);
  pointer-events: none;
}
.page-hero-tag {
  position: absolute;
  left: 8%;
  bottom: 22px;
  z-index: 2;
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink-900);
  font-size: 12.5px;
  letter-spacing: 0.16em;
  padding: 7px 16px;
  border-radius: 999px;
  box-shadow: 0 6px 18px rgba(58, 39, 45, 0.14);
}
@media (max-width: 860px) {
  .container.page-hero { grid-template-columns: 1fr; min-height: 0; }
  .page-hero-media { min-height: 200px; order: -1; }
  .page-hero-media::after { background: linear-gradient(180deg, rgba(246,241,234,0) 60%, var(--cream)); }
}

/* ================= 手機版去促銷化（品牌型錄感，不是一頁式廣告） ================= */
@media (max-width: 899px) {
  /* 浮動元件全部退場 */
  .sound-toggle, .water-gauge { display: none !important; }

  /* 公告藥丸：低調、閒置淡出 */
  .ann-pill {
    background: rgba(255, 255, 255, 0.92);
    border-color: var(--line);
    color: var(--ink-700);
    font-weight: 500;
    font-size: 12.5px;
    padding: 8px 14px;
    box-shadow: 0 4px 14px rgba(58, 39, 45, 0.12);
    transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  }
  .ann-pill-dot { background: var(--pink-500); animation: none; }
  .ann-root.ann-idle .ann-pill { opacity: 0.42; transform: translateY(6px) scale(0.94); }

  /* 價格降溫：不用大粉紅，改墨色 + 適中字級 */
  .camp-price strong, .price-large {
    color: var(--ink-900);
    font-size: 22px;
  }
  .camp-price s, .original { color: var(--ink-500); font-size: 12.5px; }

  /* 卡片降噪：薄邊、小圓角、幾乎無陰影 */
  .camp-feature, .camp-cell, .bundle-card, .store-card, .report-card, .color-swatch, .review-item {
    border-radius: 14px;
    box-shadow: none;
    border-color: rgba(234, 217, 222, 0.9);
  }
  .camp-feature { border-radius: 14px; }
  .camp-feature-body { padding: 20px 18px 24px; }
  .camp-feature-body::before { display: none; }

  /* 促銷徽章縮小、去除誇張色塊 */
  .campaign-tag, .stock-badge, .camp-deadline {
    font-size: 11px;
    padding: 2px 9px;
    font-weight: 500;
  }
  .stock-badge.hot { background: #f6f0ea; color: #8a6247; }

  /* 條列縮短視覺長度、區塊間距收斂 */
  .camp-points li { font-size: 12.5px; }
  .section { padding: 34px 0; }
  .campaigns-section { padding-bottom: 10px; }

  /* 標題級距下修，避免每段都像廣告大標 */
  .section-title { font-size: 24px !important; }
  .camp-feature-body h3 { font-size: 22px; }
  .camp-cell-body h4 { font-size: 17px; }

  /* header 精簡：深色模式鈕收起 */
  .theme-toggle { display: none; }
}

/* 首頁材質導引（取代三大段科普） */
.material-teaser { background: #fff; }
.teaser-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 22px 0 26px;
  max-width: 720px;
}
.teaser-item { display: grid; gap: 4px; padding-left: 14px; border-left: 2px solid var(--pink-300); }
.teaser-item strong { font-family: var(--font-display); font-size: 19px; letter-spacing: 0.02em; }
.teaser-item span { font-size: 13px; color: var(--ink-500); line-height: 1.7; }
@media (max-width: 720px) {
  .teaser-row { grid-template-columns: 1fr; gap: 12px; margin: 18px 0 20px; }
}

/* 內頁 hero 比例修正：加高、媒體欄加寬、角標歸位 */
.container.page-hero {
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  min-height: 380px;
}
.page-hero-media { min-height: 380px; }
.page-hero-media::after {
  background: linear-gradient(90deg, var(--cream) 0%, rgba(246, 241, 234, 0.55) 12%, rgba(246, 241, 234, 0) 30%);
}
.page-hero-tag {
  left: auto;
  right: 20px;
  bottom: 20px;
}
@media (max-width: 860px) {
  .container.page-hero { min-height: 0; }
  .page-hero-media { min-height: 210px; }
  .page-hero-tag { right: 14px; bottom: 14px; }
}
@media (max-width: 640px) {
  .recent-row { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; }
  .recent-row::-webkit-scrollbar { display: none; }
  .recent-card { width: 150px; flex: 0 0 auto; }
}

/* ---------- 產品縮圖不再裁切：完整顯示（contain） ---------- */
.recent-thumb img,
.cmdk-thumb img,
.member-fav-thumb img,
.cart-thumb img,
.mega-card-thumb img,
.bundle-thumb img,
.cmp-th-img img,
.color-swatch-img img,
.color-swatch-thumb img {
  object-fit: contain !important;
  transform: scale(1.12) !important;
  padding: 2%;
  background: #fff;
}
.recent-thumb, .cmdk-thumb, .member-fav-thumb, .cart-thumb,
.mega-card-thumb, .bundle-thumb, .cmp-th-img,
.color-swatch-img, .color-swatch-thumb { background: #fff; }
.recent-card:hover .recent-thumb img,
.bundle-card:hover .bundle-thumb img { transform: scale(1.05) !important; }

/* 46 PWA 安裝引導 */
.pwa-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  z-index: 1200;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 480px;
  margin: 0 auto;
  padding: 12px 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 48px rgba(58, 39, 45, 0.16), 0 4px 12px rgba(58, 39, 45, 0.08);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.3s ease, transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.pwa-banner.is-visible { opacity: 1; transform: translateY(0); }
.pwa-banner-icon { border-radius: 10px; border: 1px solid var(--line); flex: none; }
.pwa-banner-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.pwa-banner-text strong { font-family: var(--font-display); font-size: 15px; color: var(--ink-900); }
.pwa-banner-text span { font-size: 12.5px; line-height: 1.5; color: var(--ink-500); }
.pwa-banner-install {
  flex: none;
  padding: 8px 16px;
  border: none;
  border-radius: 999px;
  background: var(--pink-600);
  color: #fff;
  font-size: 13.5px;
  font-family: var(--font-body);
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.15s ease;
}
.pwa-banner-install:hover { opacity: 0.9; }
.pwa-banner-install:focus-visible { outline: 2px solid var(--pink-700); outline-offset: 2px; }
.pwa-banner-install:active { transform: scale(0.96); }
.pwa-banner-install:disabled { opacity: 0.5; cursor: default; }
.pwa-banner-close {
  flex: none;
  width: 28px;
  height: 28px;
  border: none;
  background: none;
  color: var(--ink-500);
  font-size: 14px;
  cursor: pointer;
  border-radius: 50%;
  transition: opacity 0.15s ease, transform 0.15s ease;
}
.pwa-banner-close:hover { opacity: 0.7; }
.pwa-banner-close:focus-visible { outline: 2px solid var(--pink-700); outline-offset: 2px; }
.pwa-banner-close:active { transform: scale(0.92); }
@media (prefers-reduced-motion: reduce) {
  .pwa-banner { transition: opacity 0.2s ease; transform: none; }
}

/* =====================================================================
   手機瀏覽優化層（放在檔案最後，覆寫前面的桌機值）
   依 390px 實測結果修正：點擊區太小、字太小、浮動元件擋畫面、表單被放大
   ===================================================================== */

@media (max-width: 720px) {
  /* --- 1. 點擊區至少 44px（Apple/Google 建議值），手指才點得準 --- */
  .btn,
  .btn.small,
  .btn.secondary,
  .color-option,
  .share-btn,
  .fav-btn,
  .cmp-btn,
  .cc-cta,
  .pwa-banner-install {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .color-option {
    padding: 0 16px;
  }

  .cmp-btn {
    min-height: 40px;
    padding: 0 14px;
  }

  .ann-close,
  .pwa-banner-close {
    min-width: 40px;
    min-height: 40px;
  }

  /* 頁尾與說明區的細連結：撐開可點範圍，視覺不變 */
  .site-footer a,
  .footer-legal a,
  .bundle-item a {
    display: inline-block;
    padding: 8px 2px;
  }

  /* 搜尋輸入框原本只有 25px 高 */
  .cmdk-input {
    min-height: 46px;
  }

  /* --- 2. 字級下限：手機不放 11–12px 的內文 --- */
  .hero-lead,
  .section-subtitle,
  .stock-badge,
  .stock-ship,
  .campaign-tag,
  .camp-deadline,
  .price-original,
  .original,
  .flag-label,
  .page-hero-tag,
  .spec-pin-label,
  .btn.small,
  .btn.secondary,
  .cmp-btn {
    font-size: 13.5px;
  }

  .section-kicker,
  .color-story-kicker,
  .hero-accent {
    font-size: 12.5px;
    letter-spacing: 0.18em;
  }

  .main-nav a,
  .site-footer a {
    font-size: 14px;
  }

  /* --- 3. 表單：iOS 在 font-size < 16px 的欄位會自動放大整頁 --- */
  input,
  select,
  textarea,
  .member-form input,
  .newsletter-form input,
  .review-form input,
  .review-form textarea {
    font-size: 16px;
    min-height: 46px;
  }

  textarea {
    min-height: 96px;
  }

  /* --- 4. 浮動元件不要吃掉整片畫面的觸控 --- */
  .ann-root {
    pointer-events: none;
  }
  .ann-root .ann-pill,
  .ann-root .ann-close,
  .ann-root .ann-cta {
    pointer-events: auto;
  }

  /* 比較列在手機只有 22px 高，形同壞掉；直接收起來 */
  .cmp-bar {
    display: none !important;
  }



  /* --- 6. 點下去要有回饋，但不要藍色方框 --- */
  a,
  button,
  [role="button"] {
    -webkit-tap-highlight-color: rgba(190, 140, 155, 0.16);
  }

  /* --- 7. 橫向卡片列：留出邊界留白，讓人看得出還能滑 --- */
  .card-scroll,
  .group-scroll,
  .special-scroll {
    scroll-padding-inline: 16px;
    padding-inline: 16px;
  }
}

/* 商品頁：手機把「加入購物車」釘在底部，不用捲回去找 */
@media (max-width: 720px) {
  body[data-page="products"] .product-actions {
    position: sticky;
    bottom: 0;
    z-index: 40;
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    margin: 18px -16px 0;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    background: rgba(253, 250, 250, 0.94);
    backdrop-filter: blur(12px);
    border-top: 1px solid var(--line);
  }

  body[data-page="products"] .product-actions .btn {
    width: 100%;
  }

  /* 次要按鈕在手機收窄成文字連結，避免兩顆大按鈕搶注意力 */
  body[data-page="products"] .product-actions .btn.secondary {
    min-height: 40px;
    background: none;
    border: 0;
    text-decoration: underline;
    text-underline-offset: 3px;
  }
}

/* 規格區配圖在手機改為上下堆疊時，標示點跟著縮小以免壓住產品 */
@media (max-width: 620px) {
  .spec-pin-dot {
    width: 9px;
    height: 9px;
    left: -4.5px;
    top: -4.5px;
  }
  .spec-pin-label {
    padding: 4px 10px;
  }
}

/* 第二輪實測後補的個別修正（390px） */
@media (max-width: 720px) {
  /* 常一起買的商品名連結原本只有 22px 高 */
  .bundle-info a {
    display: inline-block;
    padding: 10px 0;
  }

  /* 評分星星要一顆一顆點，24px 太小 */
  .rv-star {
    min-width: 44px;
    min-height: 44px;
    font-size: 26px;
    line-height: 1;
  }

  /* 內文中的行內連結（例如「登入」）撐開可點範圍 */
  .section-subtitle a,
  .page-hint a,
  .spec-note-box a {
    display: inline-block;
    padding: 8px 4px;
  }

  .footer-legal a {
    padding: 12px 4px;
  }

  .footer-flags .flag-label {
    font-size: 13px;
  }
}

/* 公告小卡的可點元件（選擇器比通用規則更具體，放最後才吃得到） */
@media (max-width: 720px) {
  .ann-root .ann-pill {
    min-height: 44px;
    padding: 12px 18px;
  }
  .ann-root .ann-close {
    width: 40px;
    height: 40px;
  }
}

/* App 安裝橫幅出現時，把底部釘住的購物車按鈕往上讓，不要互相遮擋 */
@media (max-width: 720px) {
  body.has-pwa-banner[data-page="products"] .product-actions {
    bottom: 92px;
  }
  body.has-pwa-banner {
    padding-bottom: 92px;
  }
}

/* 47 App Shell — 只在安裝成 App（standalone）時出現的底部導覽 */
html.is-pwa body { padding-bottom: calc(66px + env(safe-area-inset-bottom, 0px)); }
.app-tabbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1100;
  display: flex;
  justify-content: space-around;
  align-items: stretch;
  padding: 6px 8px calc(6px + env(safe-area-inset-bottom, 0px));
  background: rgba(255, 255, 255, 0.94);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
  box-shadow: 0 -8px 24px rgba(58, 39, 45, 0.06);
}
.app-tab {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 6px 2px 4px;
  border: 0;
  background: none;
  color: var(--ink-500);
  font-family: var(--font-body);
  font-size: 10.5px;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.2s ease, transform 0.15s ease;
}
.app-tab svg { width: 23px; height: 23px; }
.app-tab:active { transform: scale(0.94); }
.app-tab:focus-visible { outline: 2px solid var(--pink-700); outline-offset: -2px; border-radius: 10px; }
.app-tab.is-active { color: var(--pink-700); }
.app-tab.is-active::before {
  content: "";
  position: absolute;
  top: -6px;
  width: 18px;
  height: 3px;
  border-radius: 999px;
  background: var(--pink-600);
}
.app-tab-badge {
  position: absolute;
  top: 2px;
  right: calc(50% - 20px);
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--pink-600);
  color: #fff;
  font-style: normal;
  font-size: 10px;
  line-height: 16px;
  text-align: center;
}
/* App 模式：底部浮動元件往上讓位給 tab bar */
html.is-pwa .cmp-bar { bottom: calc(78px + env(safe-area-inset-bottom, 0px)); }
html.is-pwa .ann-pill { bottom: calc(70px + env(safe-area-inset-bottom, 0px)); }
html.is-pwa .pwa-banner { display: none; }

/* =====================================================================
   內頁 banner 手機版修正
   原本在手機仍維持左右兩欄，圖片欄只剩 146px 寬，
   21:9 的橫幅被 object-fit:cover 裁掉 3 倍以上，只看得到中間一小條。
   改成上下堆疊、圖片全寬 16:9。
   ===================================================================== */
@media (max-width: 720px) {
  .container.page-hero {
    grid-template-columns: 1fr !important;
    min-height: 0;
    gap: 0;
    padding: 0 0 22px;
  }

  .container.page-hero .hero-copy {
    order: 1;
    padding: 20px 18px 0;
  }

  .page-hero-media {
    order: 0;
    min-height: 0;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 0;
  }

  .page-hero-media img {
    width: 100%;
    height: 100%;
  }

  /* 桌機是左側漸層淡出，手機改成底部淡出才接得上下方文字 */
  .page-hero-media::after {
    background: linear-gradient(180deg, rgba(246, 241, 234, 0) 55%, var(--cream) 100%);
  }

  .page-hero-tag {
    right: 12px;
    bottom: 12px;
  }
}

/* 各頁的分頁鈕／地圖切換／門市按鈕也補到 44px */
@media (max-width: 720px) {
  .tab-btn,
  .map-mode-btn,
  .store-map-open,
  .filter-chip,
  .cat-tab,
  .rv-submit {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
}

/* 反機器人陷阱欄位改用不影響版面的隱藏方式（原本 left:-9999 會被算成頁面元素） */
.hp-field {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
  left: auto !important;
}

/* 會員頁：分頁鈕與「忘記密碼」也要好點 */
@media (max-width: 720px) {
  .member-tab { min-height: 46px; }
  .forgot-link {
    min-height: 44px;
    padding: 10px 4px;
  }
}

/* =====================================================================
   色彩故事：保留捲動換色的效果，只修手機上的兩個實際問題
   1) 產品照是橫式（3:2），原本裝進直式框被 cover 裁掉一大半
   2) 420vh ＝ 4.2 個螢幕，滑很久都在同一區
   ===================================================================== */
@media (max-width: 720px) {
  .color-story {
    /* 每個顏色約 0.6 個螢幕，5 色共 3 個螢幕多一點 */
    height: 320vh;
  }

  .color-story-bottle {
    /* 框改成跟照片一樣的橫式比例，就不需要裁切 */
    width: min(86vw, 420px);
    aspect-ratio: 3 / 2;
    height: auto;
  }

  .cs-img {
    object-fit: contain;
    background: rgba(255, 255, 255, 0.55);
  }
}

/* 表單欄位在手機一律 16px：低於 16px 時 iOS Safari 一聚焦就會把整頁放大，
   使用者得手動縮回來，結帳流程最忌諱這個。（.form-field 那組選擇器比通用規則具體，要在這裡再蓋一次） */
@media (max-width: 720px) {
  .form-field input,
  .form-field textarea,
  .form-field select,
  body[data-page="contact"] .form-field input,
  body[data-page="contact"] .form-field textarea {
    font-size: 16px;
    min-height: 48px;
  }
  .form-field textarea {
    min-height: 110px;
  }
  .form-field label {
    font-size: 14px;
  }
}

/* 零件標示在手機：螢幕窄，標籤會被圖片邊界切掉。
   改成圓點顯示編號、名稱列在圖片下方，一樣看得懂又不會爆版。 */
.spec-pin-dot {
  font-size: 0;
  color: #fff;
  line-height: 1;
  display: grid;
  place-items: center;
}

.spec-pin-legend {
  display: none;
  margin: 12px 0 0;
  padding: 0 0 0 4px;
  list-style: none;
  counter-reset: pin;
}

@media (max-width: 860px) {
  .spec-pin-label {
    display: none;
  }

  .spec-pin-dot {
    width: 22px;
    height: 22px;
    left: -11px;
    top: -11px;
    font-size: 12px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
  }

  .spec-pin-legend {
    display: grid;
    gap: 6px;
  }

  .spec-pin-legend li {
    counter-increment: pin;
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 13.5px;
    color: var(--ink-700);
  }

  .spec-pin-legend li::before {
    content: counter(pin);
    flex: 0 0 auto;
    width: 22px;
    height: 22px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--pink-600);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
  }
}

/* 色名維持桌機的「瓶子後面巨大浮水印」設計。
   手機只調兩件事：字級略縮以免超出邊界、透明度提高才看得清楚。
   （先前我把它改成瓶子上方的實色標題，既失去設計感又會被固定頁首擋住） */
@media (max-width: 720px) {
  .color-story-name {
    /* 手機的圖片框較大，色名放中央會被完全蓋住；上移到圖片上緣露出來 */
    top: 27%;
    font-size: clamp(64px, 18vw, 96px);
    opacity: 0.42;
    max-width: 96vw;
  }
  .color-story-name.cs-swap {
    animation-name: csNameInMobile;
  }
  @keyframes csNameInMobile {
    from { opacity: 0; }
    to { opacity: 0.42; }
  }
}
  }
}

/* 主打活動：大卡在手機是「文字在上、圖在下」，小卡卻是「圖在上」，
   同一區塊兩種順序看起來像壞掉。統一成圖先出現。 */
@media (max-width: 720px) {
  .camp-feature {
    display: flex;
    flex-direction: column;
  }
  .camp-feature-media {
    order: -1;
  }
  .camp-feature-media img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
  }
}

/* 搜尋/篩選輸入框也要 16px（同樣避免 iOS 聚焦放大） */
@media (max-width: 720px) {
  .filter-input,
  .search-input,
  input[type="search"] {
    font-size: 16px;
    min-height: 46px;
  }
}

/* 進場動畫的左右交錯位移（±30px）在手機會把卡片推出畫面右緣，
   造成整頁可以左右晃。手機只保留上下淡入。 */
@media (max-width: 720px) {
  .reveal[data-anim="left"],
  .reveal[data-anim="right"] {
    transform: translateY(20px);
  }
  .reveal[data-anim="left"].is-inview,
  .reveal[data-anim="right"].is-inview {
    transform: none;
  }
}

/* 比較表在手機放不下：讓表格自己橫向捲，不要把整頁撐寬 */
@media (max-width: 720px) {
  .material-table,
  .material-table-wrap,
  .table-wrap {
    overflow-x: auto;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
  }
  .material-table-grid,
  table {
    min-width: 520px;
    font-size: 14px;
  }
  .material-table-grid th,
  .material-table-grid td {
    white-space: nowrap;
  }
}

/* 手機上減少不必要的合成層。
   .reveal 套在幾十個元素上，每個都掛 will-change 會逼瀏覽器一次準備幾十張圖層，
   記憶體吃緊時捲動就會掉幀，體感像被拖住。3D tilt 是滑鼠效果，手機根本用不到。 */
@media (hover: none), (pointer: coarse) {
  .reveal {
    will-change: auto;
  }
  .reveal.is-inview {
    will-change: auto;
  }
  .tiltable {
    will-change: auto;
    transform-style: flat;
  }
}

/* =====================================================================
   內頁 banner 手機版：第二輪修正
   實測問題：圖片比容器寬 7px（右緣被切）、取樣點偏右、文字區有雙重內距、
   「全系列一次看」壓在產品上。
   ===================================================================== */
@media (max-width: 720px) {
  .container.page-hero {
    padding: 0 0 18px;
    overflow: hidden;            /* 圓角卡片內不要露出溢出的圖 */
  }

  /* 內距只給一層，文字才不會被推到偏右 */
  .container.page-hero .hero-grid {
    padding: 22px 18px 16px;
  }
  .container.page-hero .hero-copy {
    padding: 0;
  }

  .page-hero-media {
    width: 100%;
    max-width: 100%;
    aspect-ratio: 16 / 9;
    margin: 0;
  }

  .page-hero-media img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: 100%;
    /* 取景焦點沿用各頁原本設定（features.js 逐頁指定），
       這張產品照的瓶子群在畫面 62% 處，硬改成 50% 反而會把右邊的杯子切掉 */
    /* 桌機用 scale(1.02) 做微放大，手機會讓兩側各被裁掉約 3px */
    transform: none;
    animation-name: heroMediaInFlat;
  }

  @keyframes heroMediaInFlat {
    from { opacity: 0; transform: scale(1.04); }
    to { opacity: 1; transform: none; }
  }

  /* 角標從圖片上移到圖片下方，不再遮住產品 */
  .page-hero-tag {
    position: static;
    display: inline-flex;
    align-items: center;
    margin: 12px 18px 0;
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: none;
  }
}

/* 手機的內頁 banner 是一張置中卡片，文字靠左會顯得重心偏掉；改成置中對齊 */
@media (max-width: 720px) {
  .container.page-hero .hero-copy,
  .container.page-hero .hero-title,
  .container.page-hero .hero-lead {
    text-align: center;
  }
  .container.page-hero .hero-lead {
    margin-left: auto;
    margin-right: auto;
  }
  /* .hero-grid 實際是 flex，justify-items 無效；讓內容區撐滿寬度才置中得了 */
  .container.page-hero .hero-grid {
    align-items: center;
  }
  .container.page-hero .hero-copy {
    display: block;
    width: 100%;
  }
  /* 標題與副標在 grid 佈局下只有內容寬，撐滿才置中得起來 */
  .container.page-hero .hero-title,
  .container.page-hero .hero-lead,
  .container.page-hero .hero-accent {
    width: 100%;
    max-width: none;
  }
  .page-hero-tag {
    margin-left: auto;
    margin-right: auto;
  }
}

/* 手機專用取景焦點：窄容器裁掉的比例更大，焦點要再往主體那側推 */
@media (max-width: 720px) {
  .page-hero-media img {
    object-position: var(--focal-m, 50% 50%) !important;
  }
}

/* 訂閱按鈕：欄位是 flex:1，按鈕被擠壓時「訂閱」兩字會被推出邊界 */
.newsletter-form .btn,
.newsletter-form button {
  flex: 0 0 auto;
  white-space: nowrap;
  padding-inline: 20px;
}

/* 分類卡片在手機太長：標籤原本一行一個，改成並排換行 */
@media (max-width: 720px) {
  .need-tags,
  .cat-tags,
  .need-card .tag-list,
  .cat-card .tag-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
  }
  .need-tags > *,
  .cat-tags > *,
  .need-card .tag-list > *,
  .cat-card .tag-list > * {
    width: auto;
    flex: 0 0 auto;
  }
}

/* 分類卡片在手機是兩欄、每欄僅約 160px 寬，
   三個標籤各佔一行把卡片撐到 416px 高。改成單欄橫式：圖左文右。 */
@media (max-width: 720px) {
  .pill-grid,
  .group-grid,
  .need-grid,
  .category-grid {
    grid-template-columns: 1fr !important;
  }

  body[data-page="products"] #product-groups .group-card,
  .group-card {
    display: grid;
    /* 桌機有 max-width:300px 與 min-height:320px（選擇器更具體），
       單欄橫式要解掉才不會又高又窄 */
    max-width: none;
    width: 100%;
    min-height: 0;
    grid-template-columns: 116px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    text-align: left;
    padding: 14px;
  }

  body[data-page="products"] #product-groups .group-card .series-preview,
  .group-card .series-preview {
    grid-column: 1;
    grid-row: 1 / span 3;
    width: 116px;
    height: 116px;
    margin: 0;
  }

  body[data-page="products"] #product-groups .group-card h3,
  .group-card h3 {
    grid-column: 2;
    text-align: left;
    margin: 0 0 6px;
    font-size: 1.02rem;
    line-height: 1.35;
  }

  body[data-page="products"] #product-groups .group-card .tag-list,
  .group-card .tag-list {
    grid-column: 2;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 6px;
    margin: 0;
  }

  body[data-page="products"] #product-groups .group-card .tag-list > *,
  .group-card .tag-list > * {
    font-size: 12px;
    padding: 4px 9px;
  }

  body[data-page="products"] #product-groups .group-card .btn,
  .group-card .btn {
    grid-column: 2;
    justify-self: start;
    margin-top: 10px;
  }
}

/* 訂閱表單在手機比卡片寬（欄位最小寬 202 + 按鈕 88 + 間距 > 可用寬度），
   按鈕因此被推出粉色卡片外。改成上下排：欄位一行、按鈕一行，也比較好按。 */
@media (max-width: 720px) {
  .newsletter-form {
    width: 100%;
    max-width: 100%;
    flex-wrap: wrap;
    justify-content: stretch;
  }
  .newsletter-form input {
    flex: 1 1 100%;
    max-width: 100%;
    min-height: 48px;
  }
  .newsletter-form .btn,
  .newsletter-form button {
    flex: 1 1 100%;
    width: 100%;
    min-height: 48px;
  }
}

/* 首頁 hero 在手機置中：桌機是左對齊的大版面，
   手機窄欄時左對齊會讓右側空一大塊，重心偏掉。 */
@media (max-width: 720px) {
  .hero-stage .hero-copy,
  .hero-stage .hero-copy p,
  .hero-stage .hero-copy h1,
  .hero-stage .hero-eyebrow,
  .hero-stage .hero-lead-xl {
    text-align: center;
  }

  .hero-stage .hero-eyebrow {
    justify-content: center;
  }

  /* 按鈕列與數字列只有內容寬，要撐滿才置中得起來 */
  .hero-stage .hero-actions,
  .hero-stage .hero-stats {
    width: 100%;
    justify-content: center;
  }

  .hero-stage .hero-stats {
    justify-content: center;
    text-align: center;
  }

  /* 標題有標記色底線，置中時要跟著文字走 */
  .hero-stage .hero-copy h1 {
    width: 100%;
  }
}

/* 送出失敗時在按鈕上方的總結提示：讓人立刻知道「有按到、但還缺東西」 */
.form-error-summary {
  margin: 0 0 12px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #fdecec;
  border: 1px solid #f0c4c4;
  color: #a33b3b;
  font-size: 14px;
  line-height: 1.6;
}

/* ===== 結帳付款方式 ===== */
.pay-methods {
  margin: 4px 0 0;
  padding: 0;
  border: 0;
}

.pay-methods legend {
  padding: 0;
  margin-bottom: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-900);
}

.pay-test-note {
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(190, 120, 20, 0.35);
  background: rgba(255, 196, 87, 0.14);
  color: #7a4c06;
  font-size: 13px;
  line-height: 1.6;
}

.pay-test-note strong {
  display: inline-block;
  margin-right: 6px;
  padding: 1px 8px;
  border-radius: 999px;
  background: #7a4c06;
  color: #fff;
  font-size: 12px;
  letter-spacing: 0.04em;
}

.pay-methods.is-test .pay-option {
  border-style: dashed;
}

.pay-option {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  margin-bottom: 8px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.pay-option:hover {
  border-color: var(--pink-500);
}

.pay-option:has(input:checked) {
  border-color: var(--pink-600);
  background: var(--pink-50);
}

.pay-option input {
  margin: 3px 0 0;
  accent-color: var(--pink-600);
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.pay-option-body {
  display: grid;
  gap: 2px;
}

.pay-option-body strong {
  font-size: 15px;
  color: var(--ink-900);
}

.pay-option-body small {
  font-size: 13px;
  color: var(--ink-500);
  line-height: 1.6;
}

@media (max-width: 720px) {
  .pay-option {
    padding: 16px;
  }
}

/* 訂單完成後的「接下來會發生什麼」 */
.order-next-steps {
  counter-reset: step;
  list-style: none;
  margin: 18px auto 20px;
  padding: 0;
  max-width: 420px;
  text-align: left;
  display: grid;
  gap: 10px;
}

.order-next-steps li {
  counter-increment: step;
  display: flex;
  align-items: flex-start;
  gap: 11px;
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--ink-700);
}

.order-next-steps li::before {
  content: counter(step);
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  margin-top: 1px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--pink-100);
  color: var(--pink-700);
  font-size: 12px;
  font-weight: 700;
}

.order-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 14px;
}

.order-help {
  margin: 0;
  font-size: 13.5px;
  color: var(--ink-500);
}

.order-help a {
  color: var(--pink-700);
  font-weight: 600;
}

.order-failed .order-success-icon {
  background: #c9705f;
}

@media (max-width: 720px) {
  .order-actions .btn {
    flex: 1 1 100%;
  }
}

/* 待繳費／結果未知的結果卡：不能長得跟「已付款」一樣讓人誤會 */
.order-pending .order-success-icon {
  background: #f0e6d2;
  color: #8a6a2f;
}

/* 手機上的觸控區域
   ------------------------------------------------------------------
   文字連結在桌面用滑鼠點很準，但手機上的手指大約要 44px 見方才點得穩。
   實測發現頁尾連結只有 20px 高、電話連結 18px——這些都會點不中。
   只在手機尺寸放大觸控區，桌面維持原本的緊湊排版。 */
@media (max-width: 767px) {
  .footer-col ul li a,
  .footer-col ul li {
    display: inline-block;
    padding: 10px 6px;
    min-height: 24px;
  }

  /* 電話與客服連結：客人真的會點，而且常常是急著要打 */
  a[href^="tel:"] {
    display: inline-block;
    padding: 8px 4px;
  }

  /* 首頁與各區塊的文字型連結按鈕 */
  .section-link,
  .hero-actions a,
  .page-hero a {
    padding: 10px 14px;
  }

  /* 角落公告的按鈕：實測只有 29px 高，手指點不穩 */
  .cc-cta,
  .cc-cta--small,
  .stage-cta {
    padding: 12px 20px;
    min-height: 44px;
  }
}

/* 最新消息 */
.news-list { display: grid; gap: 14px; max-width: 720px; margin: 0 auto; }

.news-card {
  display: grid;
  grid-template-columns: 108px 1fr;
  gap: 16px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  text-align: left;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.news-card:hover { transform: translateY(-2px); border-color: var(--pink-400); }
.news-card:focus-visible { outline: 2px solid var(--pink-500); outline-offset: 3px; }

.news-card-media {
  width: 108px; height: 76px; border-radius: 12px; overflow: hidden;
  background: var(--pink-50); display: grid; place-items: center;
}
.news-card-media img { width: 100%; height: 100%; object-fit: cover; }
.news-card-blank { width: 100%; height: 100%; background: var(--pink-100); }

.news-card-body { display: grid; gap: 4px; min-width: 0; }
.news-card-date { font-size: 12px; color: var(--ink-500); font-variant-numeric: tabular-nums; }
.news-card-title { font-size: 15px; font-weight: 600; color: var(--ink-900); line-height: 1.5; }

.news-article { max-width: 720px; margin: 0 auto; text-align: left; }
.news-article-img { width: 100%; border-radius: 16px; margin-bottom: 20px; }
.news-article-body p { margin: 0 0 12px; font-size: 15px; line-height: 1.9; color: var(--ink-700); }

@media (max-width: 480px) {
  .news-card { grid-template-columns: 84px 1fr; gap: 12px; }
  .news-card-media { width: 84px; height: 60px; }
}

/* 訪客訂單查詢頁 */
.lookup-wrap { max-width: 460px; margin: 0 auto; }

.lookup-form {
  display: grid;
  gap: 4px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px;
}

.lookup-form .btn { width: 100%; margin-top: 6px; }

.lookup-msg {
  margin: 10px 0 0;
  min-height: 1.2em;
  font-size: 13px;
  color: var(--pink-700);
  text-align: center;
}

.lookup-result { margin-top: 18px; }

.lookup-help {
  margin: 18px 0 0;
  font-size: 13px;
  color: var(--ink-500);
  text-align: center;
  line-height: 1.7;
}

/* 商品資訊卡的品名
   價格上方要先講清楚這是什麼商品，字級壓在頁面主標之下，不搶焦點。 */
.detail-title {
  margin: 0 0 4px;
  font-size: clamp(20px, 2.4vw, 26px);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: var(--ink-900);
  text-wrap: balance;
}

.detail-series {
  margin: 0 0 14px;
  font-size: 14px;
  color: var(--ink-500);
}

/* 結帳表單的下拉選單與選項區
   ------------------------------------------------------------------
   原本 select 沿用瀏覽器原生樣式（方角、系統藍框），跟旁邊圓角柔邊的
   輸入框像兩套設計；選項區又沒有寬度限制，比 360px 的輸入框寬一截，
   整欄看起來參差不齊。這裡讓兩者都對齊既有輸入框的規格。 */

.form-field select {
  width: 100%;
  padding: 12px 40px 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(234, 217, 222, 0.9);
  font-size: 14px;
  font-family: inherit;
  color: var(--ink-900);
  background-color: #fff;
  /* 自訂箭頭，換掉各家瀏覽器長得都不一樣的原生樣式 */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' fill='none' stroke='%23a0667f' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  -webkit-appearance: none;
  appearance: none;
  text-align: left;
  cursor: pointer;
}

.form-field select:focus-visible,
.form-field input:focus-visible,
.form-field textarea:focus-visible {
  outline: none;
  border-color: var(--pink-500);
  box-shadow: 0 0 0 3px var(--pink-100);
}

/* 選項區跟輸入框同寬同位置，整欄才對得齊 */
.pay-methods {
  width: 100%;
  max-width: 360px;
  margin-left: auto;
  margin-right: auto;
}

.pay-methods legend { text-align: center; width: 100%; }

/* hidden 屬性必須真的隱藏
   ------------------------------------------------------------------
   [hidden] 的預設樣式只是 display:none，任何帶 display 宣告的 class
   （.form-field、.member-form 都是 display:grid）都會蓋過它，元素就
   藏不住 —— 會員頁曾因此同時顯示唯讀檢視與編輯表單。
   這條放在最後統一收斂，語意上 hidden 就該是看不見。 */
[hidden] { display: none !important; }

/* ---------- 手機主選單 v2：左側抽屜（取代往下推擠的展開式選單） ----------
   舊版點漢堡是把 .main-nav 塞進 header 下方，header 元素同時改成 fixed，
   造成畫面「往上跳」而且整頁被推開。改成獨立抽屜後 header 完全不動。 */
.nav-scrim {
  position: fixed;
  inset: 0;
  z-index: 1290;
  background: rgba(42, 34, 37, 0.42);
  backdrop-filter: blur(3px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.28s ease, visibility 0.28s ease;
}
.nav-scrim.open { opacity: 1; visibility: visible; }

.nav-drawer {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 1300;
  width: min(86vw, 340px);
  display: flex;
  flex-direction: column;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(234, 217, 222, 0.9), 24px 0 60px rgba(58, 39, 45, 0.22);
  transform: translateX(-102%);
  transition: transform 0.34s cubic-bezier(0.22, 1, 0.36, 1);
  overscroll-behavior: contain;
  padding-bottom: env(safe-area-inset-bottom, 0px);
  visibility: hidden;
}
.nav-drawer.open { transform: translateX(0); visibility: visible; }
@media (prefers-reduced-motion: reduce) {
  .nav-drawer { transition: none; }
}

.nav-drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: calc(env(safe-area-inset-top, 0px) + 14px) 14px 12px 18px;
  border-bottom: 1px solid var(--line);
}
.nav-drawer__logo { width: 104px; height: auto; display: block; }
.nav-drawer__close {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink-700);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background 0.16s ease, transform 0.2s ease;
}
.nav-drawer__close:active { transform: scale(0.94); }
.nav-drawer__close:focus-visible { outline: 2px solid var(--pink-500); outline-offset: 2px; }

.nav-drawer__search {
  margin: 14px 16px 6px;
  padding: 11px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--pink-50, #fdf6f8);
  color: var(--ink-500);
  font-size: 14px;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
}
.nav-drawer__search:active { background: var(--pink-100); }

.nav-drawer__list {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 8px 10px 20px;
}

.nd-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  padding: 14px 12px;
  border: 0;
  background: transparent;
  border-radius: 12px;
  font-family: var(--font-display);
  font-size: 16px;
  letter-spacing: 0.03em;
  color: var(--ink-900);
  text-decoration: none;
  cursor: pointer;
  transition: background 0.16s ease;
}
.nd-link:active { background: var(--pink-100); }
.nd-link.active { color: var(--pink-700); font-weight: 700; }
.nd-link:focus-visible { outline: 2px solid var(--pink-500); outline-offset: -2px; }
.nd-link i {
  font-style: normal;
  color: var(--pink-500);
  transition: transform 0.24s cubic-bezier(0.22, 1, 0.36, 1);
}
.nd-toggle[aria-expanded="true"] i { transform: rotate(90deg); }

.nd-sub {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.nd-sub > div { overflow: hidden; min-height: 0; }
.nd-item.open .nd-sub { grid-template-rows: 1fr; }

.nd-group { padding: 2px 0 10px; }
.nd-group-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px 6px 20px;
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--ink-500);
  text-decoration: none;
}
.nd-group-head span:last-child { color: var(--pink-500); }
.nd-cat {
  display: block;
  padding: 10px 12px 10px 20px;
  margin: 0 0 2px;
  border-radius: 10px;
  font-size: 14.5px;
  color: var(--ink-700);
  text-decoration: none;
  transition: background 0.16s ease, color 0.16s ease;
}
.nd-cat:active { background: var(--pink-100); color: var(--pink-700); }

.nav-drawer__foot {
  border-top: 1px solid var(--line);
  padding: 12px 16px calc(env(safe-area-inset-bottom, 0px) + 14px);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.nav-drawer__foot a {
  flex: 1 1 auto;
  text-align: center;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
  color: var(--ink-700);
  text-decoration: none;
  white-space: nowrap;
}
.nav-drawer__foot a:active { background: var(--pink-100); }

body.nav-locked,
body.cart-locked { overflow: hidden; }
/* 抽屜打開時把 PWA 安裝橫幅收起來，不然會壓在選單上 */
body.nav-locked .pwa-banner,
body.cart-locked .pwa-banner { opacity: 0; pointer-events: none; }

/* 舊的下推式選單一律停用，避免兩套同時作用 */
@media (max-width: 900px) {
  .site-header.nav-open .main-nav { display: none; }
  .site-header.nav-open .menu-toggle,
  .site-header.nav-open .header-right {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: auto;
  }
  .site-header.nav-open .menu-toggle { left: 0; }
  .site-header.nav-open .header-right { right: 0; }
  .site-header.nav-open .logo { margin: 0 auto; }
}
@media (min-width: 901px) {
  .nav-drawer,
  .nav-scrim { display: none; }
}

/* ── 去背版首頁主視覺與新色秀 ──────────────────────────────
   產品照去背成透明 PNG 後，白框相片卡就沒有存在的必要了 ——
   卡片本來是為了收住照片自帶的灰白底。這裡把框和底拿掉，
   讓瓶子直接浮在頁面底色上，陰影改用 drop-shadow 貼合瓶身輪廓。
   舊的卡片樣式完全保留，後台把「主視覺樣式」切回 card 就會回到原樣。 */
.hero-visual--cutout .hero-card {
  background: none;
  padding: 0;
  border-radius: 0;
  box-shadow: none;
}
.hero-visual--cutout .hero-card img {
  object-fit: contain;
  border-radius: 0;
  /* 兩層：近處淺影定位，遠處深影給重量 */
  filter:
    drop-shadow(0 4px 8px rgba(58, 39, 45, 0.14))
    drop-shadow(0 26px 34px rgba(160, 102, 127, 0.26));
}
.color-story-bottle--cutout .cs-img {
  object-fit: contain;
  border-radius: 0;
  box-shadow: none;
  filter:
    drop-shadow(0 6px 12px rgba(42, 34, 37, 0.12))
    drop-shadow(0 34px 46px rgba(42, 34, 37, 0.26));
}

/* 去背版的漂浮：卡片時代那組 7～9 度的傾斜是相片斜貼的味道，
   換成實體瓶子之後同樣的角度會變成「瓶子快倒了」。這裡改成幾乎直立，
   只留一點點擺動維持呼吸感。 */
@keyframes floatACutout {
  0%, 100% { transform: rotate(-1.5deg) translateY(0); }
  50%      { transform: rotate(-2.5deg) translateY(-16px); }
}
@keyframes floatBCutout {
  0%, 100% { transform: rotate(0.5deg) translateY(0); }
  50%      { transform: rotate(1.5deg) translateY(-20px); }
}
@keyframes floatCCutout {
  0%, 100% { transform: rotate(2deg) translateY(0); }
  50%      { transform: rotate(1deg) translateY(-14px); }
}
.hero-visual--cutout .hero-card--a { animation-name: heroCardIn, floatACutout; }
.hero-visual--cutout .hero-card--b { animation-name: heroCardIn, floatBCutout; }
.hero-visual--cutout .hero-card--c {
  animation-name: heroCardIn, floatCCutout;
  right: 5%;            /* 去背後瓶身貼著外緣，往內收一點才不會被視窗切到 */
}

/* 結帳摘要：小計／運費／贈品區塊（renderCheckout paint） */
.checkout-breakdown {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed rgba(0, 0, 0, 0.14);
  display: grid;
  gap: 6px;
}
.checkout-breakdown .cart-item-actions { justify-content: space-between; }
.checkout-gift span:last-child { color: #a3452e; font-weight: 600; text-align: right; }

/* 分類頁價格排序列（renderCategoryPage sortBarHtml） */
.sort-bar {
  display: flex;
  gap: 8px;
  margin: 0 0 16px;
  flex-wrap: wrap;
}
.sort-btn {
  border: 1px solid rgba(0, 0, 0, 0.16);
  background: #fff;
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 0.85rem;
  color: #6d5a5f;
  cursor: pointer;
  transition: transform 0.18s ease, opacity 0.18s ease;
}
.sort-btn:hover { transform: translateY(-1px); }
.sort-btn:focus-visible { outline: 2px solid #a3452e; outline-offset: 2px; }
.sort-btn.active {
  background: #3a272d;
  border-color: #3a272d;
  color: #fff;
}

/* 購物車抽屜的贈品提示（renderCart） */
.cart-gift-hint {
  display: grid;
  gap: 4px;
  margin: 10px 0 6px;
  padding: 10px 12px;
  background: rgba(163, 69, 46, 0.07);
  border-radius: 10px;
  font-size: 0.85rem;
  color: #a3452e;
  font-weight: 600;
}

/* 售完商品的到貨通知表單（renderProductPage data-restock） */
.restock-form { margin-top: 14px; padding: 14px 16px; background: rgba(163, 69, 46, 0.06); border-radius: 12px; }
.restock-hint { margin: 0 0 8px; font-size: 0.88rem; color: #6d5a5f; }
.restock-done { margin: 0; color: #2c6e49; font-weight: 600; }
.restock-row { display: flex; gap: 8px; }
.restock-row input {
  flex: 1;
  min-width: 0;
  padding: 9px 12px;
  border: 1px solid rgba(0, 0, 0, 0.16);
  border-radius: 10px;
  font-size: 0.9rem;
}
.restock-row input:focus-visible { outline: 2px solid #a3452e; outline-offset: 1px; }

/* 結帳 Email 打錯網域的修正提示 */
.email-typo-tip { margin: 6px 0 0; font-size: 0.85rem; color: #6d5a5f; }
.email-typo-fix {
  border: none; background: none; padding: 0;
  color: #a3452e; font-weight: 600; text-decoration: underline; cursor: pointer;
  font-size: inherit;
}

/* 商品主圖 lightbox（renderProductPage） */
.media-stage.is-zoomable { cursor: zoom-in; }
.lightbox {
  position: fixed; inset: 0; z-index: 1200;
  display: flex; align-items: center; justify-content: center;
  background: rgba(20, 12, 14, 0.92);
  opacity: 0; pointer-events: none;
  transition: opacity 0.22s ease;
}
.lightbox.open { opacity: 1; pointer-events: auto; }
.lightbox img {
  max-width: min(92vw, 1100px); max-height: 88vh;
  border-radius: 12px; box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
}
.lightbox-close {
  position: absolute; top: 18px; right: 20px;
  width: 42px; height: 42px; border: none; border-radius: 50%;
  background: rgba(255, 255, 255, 0.12); color: #fff; font-size: 24px; cursor: pointer;
}
.lightbox-close:hover, .lightbox-nav:hover { background: rgba(255, 255, 255, 0.24); }
.lightbox-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 46px; height: 46px; border: none; border-radius: 50%;
  background: rgba(255, 255, 255, 0.12); color: #fff; font-size: 26px; cursor: pointer;
}
.lightbox-prev { left: 16px; }
.lightbox-next { right: 16px; }
.lightbox-count {
  position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.85); font-size: 0.85rem; letter-spacing: 0.08em;
}
.lightbox-close:focus-visible, .lightbox-nav:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
@media (max-width: 640px) {
  .lightbox-nav { width: 38px; height: 38px; }
  .lightbox img { max-width: 96vw; border-radius: 8px; }
}

/* 結帳贈品擇一（checkout giftRow） */
.gift-options { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.gift-option {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 5px 12px; border: 1px solid rgba(163, 69, 46, 0.35);
  border-radius: 999px; font-size: 0.85rem; color: #a3452e;
  cursor: pointer; transition: transform 0.15s ease;
  background: #fff;
}
.gift-option:hover { transform: translateY(-1px); }
.gift-option.active { background: #a3452e; color: #fff; border-color: #a3452e; }
.gift-option input { accent-color: #fff; margin: 0; }
.gift-option.active input { accent-color: #a3452e; }

/* 商品頁購物保障徽章列（renderProductPage trust-row） */
.trust-row {
  display: flex; flex-wrap: wrap; gap: 8px 14px;
  margin: 14px 0 0; padding: 0; list-style: none;
  font-size: 0.82rem; color: #6d5a5f;
}
.trust-row li { display: inline-flex; align-items: center; gap: 4px; }

/* 搜尋結果中的頁面項目 */
.cmdk-thumb--page { display: grid; place-items: center; font-size: 18px; }

/* 結帳優惠碼 */
.coupon-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 10px 0; border-bottom: 1px dashed rgba(0, 0, 0, 0.1); }
.coupon-row input {
  flex: 1; min-width: 140px; padding: 9px 12px;
  border: 1px solid rgba(0, 0, 0, 0.16); border-radius: 10px; font-size: 0.9rem;
  text-transform: uppercase; letter-spacing: 0.04em;
}
.coupon-row input:focus-visible { outline: 2px solid #a3452e; outline-offset: 1px; }
.coupon-error { flex-basis: 100%; margin: 0; font-size: 0.85rem; color: #a3452e; }
.checkout-coupon span:first-child { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.checkout-coupon span:first-child small { color: #6d5a5f; }
.checkout-coupon span:last-child { color: #2f7a4f; font-weight: 600; }
.coupon-remove {
  border: none; background: none; padding: 0; margin-left: 4px;
  color: #6d5a5f; font-size: 0.8rem; text-decoration: underline; cursor: pointer;
}
.coupon-remove:hover, .coupon-remove:focus-visible { color: #a3452e; outline: none; }

/* 商品頁相關商品 */
.related-scroll { margin-top: 8px; }
.related-scroll .popular-card { scroll-snap-align: start; }

/* 再買一次 */
.member-order-actions { margin-top: 10px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.reorder-tip { margin: 0; font-size: 0.85rem; color: #6d5a5f; }
.reorder-tip a { color: #a3452e; font-weight: 600; }

/* 分類頁篩選（只作用在 JS 產生的那個，避免蓋掉門市頁的橫向搜尋列） */
.filter-bar[data-filter-bar] {
  display: flex; flex-direction: column; gap: 8px;
  margin: 0 0 16px; padding: 14px 16px;
  background: rgba(255, 255, 255, 0.6); border: 1px solid rgba(0, 0, 0, 0.06); border-radius: 14px;
}
.filter-group { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.filter-label { font-size: 0.8rem; color: #6d5a5f; min-width: 2.4em; }
.filter-chip { padding: 5px 12px; font-size: 0.82rem; }
.filter-status { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 6px; border-top: 1px dashed rgba(0, 0, 0, 0.1); font-size: 0.85rem; color: #6d5a5f; }
.filter-status strong { color: #a3452e; }
.filter-clear { border: none; background: none; padding: 0; color: #a3452e; text-decoration: underline; cursor: pointer; font-size: 0.85rem; }
.filter-clear:focus-visible { outline: 2px solid #a3452e; outline-offset: 2px; }
.filter-empty { padding: 24px 0; }
.product-tabs.is-muted .tab-btn { opacity: 0.45; }
.product-tabs.is-muted .tab-btn.active { opacity: 0.6; }

/* 聯絡頁詢價提示 */
.form-hint { margin: 10px 0 0; font-size: 0.85rem; color: #6d5a5f; line-height: 1.6; }
.form-hint strong { color: #a3452e; }

/* 結帳電子發票 */
.invoice-methods .form-field { margin-top: 10px; }

/* LINE 客服浮動鈕（左下，避開右下的活動 pill） */
.line-fab {
  position: fixed; left: 18px; bottom: 76px; z-index: 60;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 14px 10px 12px; border-radius: 999px;
  background: #06c755; color: #fff; text-decoration: none; font-size: 13px; font-weight: 600;
  box-shadow: 0 6px 18px rgba(6, 199, 85, 0.35), 0 2px 6px rgba(0, 0, 0, 0.12);
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.2s ease;
}
.line-fab:hover { transform: translateY(-2px); }
.line-fab:focus-visible { outline: 2px solid #3a272d; outline-offset: 2px; }
.line-fab:active { transform: scale(0.96); }
body.nav-locked .line-fab, body.cart-locked .line-fab { opacity: 0; pointer-events: none; }
@media (max-width: 720px) { .line-fab span { display: none; } .line-fab { padding: 11px; bottom: 84px; } }

/* 退換貨申請 */
.return-box { margin-top: 12px; }
.return-form { margin-top: 10px; padding: 14px 16px; background: rgba(163, 69, 46, 0.06); border-radius: 12px; text-align: left; }
.return-form .form-field { margin-top: 10px; }
.share-native { background: #3a272d; color: #fff; border-color: #3a272d; }

/* ================= 英文版字型 =================
   中文站用的是明體（Noto Serif TC）＋黑體，拿它們的拉丁字母排英文會鬆散不對味。
   英文模式改用同樣是高對比襯線的 Cormorant Garamond 當標題（跟明體同一種氣質），
   內文用幾何無襯線 Jost（型號如 ST-CBH-F60 排起來乾淨）。
   字型檔只在英文模式才載入（i18n-en.js 動態插入），中文訪客不會多下載。 */
html[lang="en"] {
  --font-display: "Cormorant Garamond", "Noto Serif TC", Georgia, serif;
  --font-body: "Jost", "Noto Sans TC", "Helvetica Neue", Arial, sans-serif;
}

/* Cormorant 的字腔比明體開、筆畫細，同樣級數看起來會小一號也偏淡，
   所以標題補一點字重與字級，行距收緊。 */
html[lang="en"] .hero-display {
  font-weight: 600;
  font-size: clamp(52px, 6.8vw, 94px);
  line-height: 1.02;
  letter-spacing: -0.012em;
}
html[lang="en"] .section-title,
html[lang="en"] .page-title,
html[lang="en"] .card__title,
html[lang="en"] h2,
html[lang="en"] h3,
html[lang="en"] h4 {
  font-weight: 600;
  letter-spacing: 0;
}
html[lang="en"] .section-title {
  font-size: clamp(30px, 4.2vw, 44px);
}

/* Jost 的小寫字偏窄，導覽與按鈕這種短字串加一點字距才不會擠在一起。 */
html[lang="en"] .main-nav a,
html[lang="en"] .btn,
html[lang="en"] .pill,
html[lang="en"] .tag-list span {
  letter-spacing: 0.02em;
}
html[lang="en"] body {
  letter-spacing: 0.005em;
}

/* Cormorant 預設是舊式數字（3、5、9 會沉到基線下），型號 SUS316 / TR55 會變成
   像下標的樣子，統計數字也會參差。英文模式一律改用等高數字。 */
html[lang="en"] {
  font-variant-numeric: lining-nums;
  font-feature-settings: "lnum" 1;
}
