:root {
  --primary: #19929e;
  --primary-rgb: 25 146 158;
  --secondary: #71bed1;
  --cream: #fff9eb;
  --ink: #1c2a2e;
  --muted: #5c6b70;
  --white: #fff;
  --radius: 28px;
  --header-h: 72px;
  --ease: cubic-bezier(0.23, 1, 0.32, 1);
  --font: "Noto Sans TC", "Nunito", system-ui, sans-serif;
  --display: "Noto Serif TC", "Noto Sans TC", serif;
}

*,
*::before,
*::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.7;
}
/* 花浪潮線：淺海底紋＋側邊泡沫。不使用現站的裝飾圖。 */
body[data-page]:not([data-page="admin"]) {
  background-color: var(--cream);
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='720' height='180' viewBox='0 0 720 180'%3E%3Cpath d='M0 70c70 22 130 22 200 0s130-22 200 0 130 22 200 0 70-16 120 0' fill='none' stroke='%2319929e' stroke-opacity='.13' stroke-width='1.4'/%3E%3Cpath d='M0 112c90 16 150-12 240 0s150 16 240 0 150-14 240 0' fill='none' stroke='%2371bed1' stroke-opacity='.22' stroke-width='1'/%3E%3C/svg%3E"),
    radial-gradient(ellipse 42% 28% at 100% -10%, rgb(113 190 209 / .28), transparent 70%),
    radial-gradient(ellipse 36% 32% at -10% 86%, rgb(25 146 158 / .1), transparent 68%);
  background-size: 100% 180px, auto, auto;
  background-repeat: repeat-y, no-repeat, no-repeat;
  background-attachment: fixed, fixed, fixed;
}
body[data-page]:not([data-page="admin"])::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(circle at 3% 16%, rgb(255 255 255 / .95) 0 5px, transparent 6px),
    radial-gradient(circle at 5% 22%, rgb(113 190 209 / .4) 0 12px, transparent 13px),
    radial-gradient(circle at 97% 34%, rgb(255 255 255 / .9) 0 6px, transparent 7px),
    radial-gradient(circle at 95% 42%, rgb(25 146 158 / .28) 0 15px, transparent 17px),
    radial-gradient(circle at 4% 70%, rgb(113 190 209 / .32) 0 8px, transparent 9px),
    radial-gradient(circle at 98% 76%, rgb(255 255 255 / .85) 0 4px, transparent 5px);
  -webkit-mask-image: linear-gradient(90deg, #000 0 5%, transparent 12% 88%, #000 95%);
  mask-image: linear-gradient(90deg, #000 0 5%, transparent 12% 88%, #000 95%);
  animation: tide-rise 18s var(--ease) infinite alternate;
}
@keyframes tide-rise {
  from { transform: translateY(0); }
  to { transform: translateY(-28px); }
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button, input, textarea, select { font: inherit; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  min-height: var(--header-h);
  padding: 8px 20px;
  background: rgb(255 249 235 / .92);
  color: var(--primary);
  backdrop-filter: blur(10px);
  transition: background-color 200ms var(--ease), color 200ms var(--ease), box-shadow 200ms var(--ease);
}
.site-header.is-solid {
  background: var(--primary);
  color: var(--white);
  box-shadow: 0 8px 24px rgb(25 146 158 / .25);
}
.site-header.is-solid .btn-buy {
  border-color: var(--white);
  color: var(--white);
}
body:not([data-page="home"]) .site-header {
  background: var(--primary);
  color: var(--white);
  box-shadow: 0 8px 24px rgb(25 146 158 / .25);
}
body:not([data-page="home"]) .site-header .btn-buy {
  border-color: var(--white);
  color: var(--white);
}
body:not([data-page="home"]) .header-actions .soc { background: rgb(255 255 255 / .16); }
body:not([data-page="home"]) .header-actions .soc img { filter: none; }
.brand { justify-self: center; }
.brand-logo {
  display: block;
  width: min(220px, 46vw);
  height: calc(min(220px, 46vw) * 0.275);
  background: currentColor;
  -webkit-mask: url("/images/logo.svg") center / contain no-repeat;
  mask: url("/images/logo.svg") center / contain no-repeat;
}
.menu-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  letter-spacing: .08em;
  font-size: 13px;
  font-weight: 600;
}
.menu-icon {
  width: 18px;
  display: grid;
  gap: 4px;
}
.menu-icon span {
  display: block;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.header-actions .soc {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgb(25 146 158 / .12);
}
.site-header.is-solid .header-actions .soc { background: rgb(255 255 255 / .16); }
.header-actions .soc img { width: 18px; height: 18px; }
.site-header.is-top .header-actions .soc img { filter: invert(42%) sepia(40%) saturate(700%) hue-rotate(139deg); }
.head-cart {
  position: relative;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  color: inherit;
  background: rgb(25 146 158 / .12);
  text-decoration: none;
}
.site-header.is-solid .head-cart,
body:not([data-page="home"]) .head-cart { background: rgb(255 255 255 / .16); }
.head-cart .icon-bag { width: 18px; height: 18px; }
.btn-buy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 18px;
  border: 1.5px solid var(--primary);
  border-radius: 999px;
  text-decoration: none;
  font-size: 13px;
  letter-spacing: .08em;
  font-weight: 700;
  color: var(--primary);
  transition: transform 160ms var(--ease), background-color 160ms var(--ease);
}
.btn-buy:hover { background: rgb(25 146 158 / .08); }
.btn-buy:active { transform: scale(0.97); }
.btn-head-line {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 40px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: #06c755;
  color: #fff;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .04em;
  white-space: nowrap;
  flex-shrink: 0;
  transition: transform 160ms var(--ease), filter 160ms var(--ease);
}
.btn-head-line:hover { filter: brightness(1.06); }
.btn-head-line:active { transform: scale(0.97); }
.btn-head-line .btn-line-ico {
  width: 18px;
  height: 18px;
  font-size: .5rem;
}
.btn-fill {
  background: var(--primary);
  color: var(--white);
  border: 0;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 28px;
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: .06em;
  transition: transform 160ms var(--ease), opacity 160ms var(--ease);
}
.btn-fill:hover { opacity: .92; }
.btn-fill:active { transform: scale(0.97); }

.menu-dialog {
  width: min(22rem, 86vw);
  height: 100%;
  max-height: 100%;
  max-width: none;
  margin: 0;
  inset: 0 auto 0 0;
  border: 0;
  padding: 28px 24px;
  background: var(--primary);
  color: var(--white);
  translate: 0;
  transition: translate 320ms cubic-bezier(0.32, 0.72, 0, 1), overlay 320ms allow-discrete, display 320ms allow-discrete;
}
.menu-dialog:not(:open) { translate: -12% 0; }
@starting-style {
  .menu-dialog:open { translate: -12% 0; }
}
.menu-dialog::backdrop {
  background: rgb(0 0 0 / .45);
  overflow: hidden;
  overscroll-behavior: contain;
}
.menu-dialog:modal { overscroll-behavior: contain; }
.menu-dialog nav { display: grid; gap: 4px; margin-top: 28px; }
.menu-dialog nav a {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 12px 0;
  border-bottom: 1px solid rgb(255 255 255 / .18);
  text-decoration: none;
  font-size: 1.05rem;
}
.menu-dialog nav a small { opacity: .7; font-family: Nunito, sans-serif; letter-spacing: .06em; }
.menu-line-join { margin: 28px 0 0; }
.menu-dialog .menu-line-join a.btn-line {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  width: 100%;
  box-sizing: border-box;
  min-height: 48px;
  padding: 0 20px;
  border: 0;
  font-size: 15px;
  color: #fff;
}
.menu-close {
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font-size: 14px;
}

.hero {
  position: relative;
  min-height: calc(100svh - var(--header-h));
  overflow: hidden;
  background: #d9ece8;
}
.hero img {
  width: 100%;
  height: calc(100svh - var(--header-h));
  object-fit: cover;
}
.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  z-index: 4;
  height: 96px;
  pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 96' preserveAspectRatio='none'%3E%3Cpath fill='%2371bed1' fill-opacity='.45' d='M0 46c180 26 320-20 500-4s340 36 500 6 280-30 440-8v56H0Z'/%3E%3Cpath fill='%23fff9eb' d='M0 64c170 28 330-6 500 8s330 22 500-2 280-26 440-6v32H0Z'/%3E%3C/svg%3E") center bottom / 100% 100% no-repeat;
}
.swell {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 42px;
  z-index: 3;
  height: 118px;
  overflow: hidden;
  pointer-events: none;
}
.swell-shore {
  bottom: auto;
  top: -18px;
  z-index: 1;
  height: 72px;
}
.swell-track {
  position: absolute;
  top: 0;
  left: 0;
  width: 200%;
  height: 100%;
  animation: tide-slide 16s linear infinite;
}
.swell-track.mid { animation-duration: 11s; animation-direction: reverse; }
.swell-track svg {
  display: block;
  width: 100%;
  height: 100%;
  animation: tide-bob 4.4s ease-in-out infinite alternate;
}
.swell-track.mid svg { animation-duration: 3.3s; animation-direction: alternate-reverse; }
@keyframes tide-slide { to { transform: translateX(-50%); } }
@keyframes tide-bob {
  from { transform: translateY(10px); }
  to { transform: translateY(-16px); }
}
.turtle-swim,
.turtle-shore {
  position: absolute;
  z-index: 5;
  width: 118px;
  pointer-events: none;
}
.turtle-swim { left: 6%; bottom: 86px; }
.turtle-back { left: auto; right: 12%; bottom: 88px; width: 86px; }
.turtle-flip { transform: scaleX(-1); }
.turtle-shore { top: -34px; right: 8%; width: 92px; z-index: 2; }
.turtle-alt { right: auto; left: 9%; top: -18px; width: 68px; }
.turtle-swim svg,
.turtle-shore svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
  filter: drop-shadow(0 8px 8px rgb(14 70 74 / .28));
  animation: turtle-bob 3s ease-in-out infinite;
}
.turtle-shore svg { animation-duration: 3.6s; }
.turtle-back svg { animation-name: turtle-bob-low; animation-duration: 3.6s; }
.flipper { transform-box: fill-box; transform-origin: center; }
.flipper.front { animation: paddle 1.35s ease-in-out infinite; }
.flipper.rear { animation: paddle 1.35s ease-in-out infinite reverse; }
@keyframes turtle-bob {
  0%, 100% { transform: translateY(0) rotate(-6deg); }
  50% { transform: translateY(-14px) rotate(7deg); }
}
@keyframes turtle-bob-low {
  0%, 100% { transform: translateY(6px) rotate(-4deg); }
  50% { transform: translateY(-2px) rotate(4deg); }
}
@keyframes paddle {
  from { transform: rotate(-16deg); }
  to { transform: rotate(20deg); }
}
@keyframes turtle-cross {
  0% { transform: translateX(-30vw); }
  78% { transform: translateX(108vw); }
  100% { transform: translateX(108vw); }
}
@keyframes turtle-cross-back {
  0% { transform: translateX(108vw); }
  78% { transform: translateX(-36vw); }
  100% { transform: translateX(-36vw); }
}
@media (prefers-reduced-motion: no-preference) {
  .turtle-swim { left: 0; animation: turtle-cross 34s linear infinite; }
  .turtle-back { animation-name: turtle-cross-back; animation-duration: 46s; animation-delay: -16s; }
}
.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 118px;
  z-index: 6;
  transform: translateX(-50%);
  display: grid;
  justify-items: center;
  gap: 8px;
  color: var(--white);
  text-decoration: none;
  letter-spacing: .2em;
  font-size: 11px;
  text-shadow: 0 1px 8px rgb(0 0 0 / .35);
}
.scroll-cue i {
  width: 56px;
  height: 56px;
  border: 1px solid rgb(255 255 255 / .8);
  border-radius: 50%;
  display: grid;
  place-items: center;
}
.scroll-cue i::after {
  content: "";
  width: 8px;
  height: 8px;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(45deg) translate(-2px, -2px);
}

.wrap { width: min(1120px, calc(100% - 40px)); margin-inline: auto; }
.section { padding: 72px 0; }
.kicker {
  font-family: var(--display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  color: var(--primary);
  margin: 0 0 8px;
  letter-spacing: .04em;
}
.kicker em {
  font-style: normal;
  font-family: Nunito, sans-serif;
  font-weight: 400;
  opacity: .55;
  margin-left: .4rem;
  font-size: .55em;
}
main .kicker::after {
  content: "";
  display: block;
  width: 84px;
  height: 12px;
  margin-top: 8px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 84 12'%3E%3Cpath d='M2 8c8 5 16 5 24 0s16-6 24 0 16 6 24 0' fill='none' stroke='%2319929e' stroke-width='1.7' stroke-linecap='round'/%3E%3C/svg%3E") left center / contain no-repeat;
}
.lede { color: var(--muted); max-width: 36em; }
.policy { max-width: 46rem; }
.policy h2 {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 1.75rem 0 .45rem;
  letter-spacing: .02em;
}
.policy p { margin: .55rem 0; }
.policy ul { margin: .35rem 0 1rem; padding-left: 1.3rem; }
.policy li { margin: .35rem 0; }
.policy a { color: var(--primary); text-underline-offset: .15em; }

.about-photo {
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: 28px;
  box-shadow: 0 24px 60px rgb(25 146 158 / .16);
}
.about-photo img { width: 100%; height: min(560px, 70vw); object-fit: cover; }
.quote {
  font-family: var(--display);
  color: var(--primary);
  font-size: 1.15rem;
  margin: 0 0 16px;
}

.news-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 48px;
  align-items: center;
}
.news-photo {
  border-radius: var(--radius);
  overflow: hidden;
}
.news-photo img { width: 100%; height: 420px; object-fit: cover; }
.news-list { display: grid; }
.news-list a {
  display: grid;
  grid-template-columns: 4.5rem 1fr auto;
  gap: 16px;
  align-items: start;
  padding: 18px 0;
  border-bottom: 1px solid rgb(25 146 158 / .25);
  text-decoration: none;
}
.news-list time { color: var(--primary); font-family: Nunito, sans-serif; padding-top: 2px; }
.news-list span { white-space: normal; }
.news-list b { color: var(--primary); font-size: 1.2rem; line-height: 1.4; }

.ig-reel { max-width: 420px; margin: 8px 0 20px; }
.ig-reel iframe {
  display: block;
  width: 100%;
  aspect-ratio: 9 / 16;
  min-height: 480px;
  border: 0;
  border-radius: 16px;
  background: var(--cream, #fff9eb);
}
.ig-reel p { margin: 8px 0 0; }
.news-video { max-width: min(420px, 100%); margin: 8px 0 20px; }
.news-video video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 9 / 16;
  border: 0;
  border-radius: 16px;
  background: #1c1a17;
}

.series-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
}
.series-nav { display: flex; gap: 8px; margin-bottom: 10px; }
.series-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid var(--primary);
  background: var(--cream);
  color: var(--primary);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: transform 160ms var(--ease), background-color 160ms var(--ease);
}
.series-btn:hover { background: rgb(25 146 158 / .08); }
.series-btn:active:not(:disabled) { transform: scale(0.97); }
.series-btn:disabled { opacity: .35; cursor: default; }
.series-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.series {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(100%, 920px);
  gap: 20px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--primary) transparent;
  padding-bottom: 12px;
  cursor: grab;
}
.series.is-dragging {
  cursor: grabbing;
  user-select: none;
}
.series::-webkit-scrollbar { height: 8px; }
.series::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 99px; }
.series-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 340px;
  border-radius: var(--radius);
  overflow: hidden;
  background: #e7f4f2;
}
.series-card .copy { padding: 36px 32px; display: grid; align-content: center; gap: 12px; }
.series-card img { width: 100%; height: 100%; object-fit: cover; }

.product-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(280px, 78vw);
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}
.product-card {
  scroll-snap-align: start;
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  background: #111;
  text-decoration: none;
  color: #fff;
}
.product-card img { width: 100%; height: 220px; object-fit: cover; opacity: .92; }
.product-card span {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 14px 16px;
  background: linear-gradient(transparent, rgb(0 0 0 / .55));
  font-weight: 600;
}
@media (hover: hover) and (pointer: fine) {
  .product-card img { transition: transform 400ms var(--ease); }
  .product-card:hover img { transform: scale(1.04); }
}

.cta-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.cta-card {
  position: relative;
  min-height: 220px;
  border-radius: var(--radius);
  overflow: hidden;
  color: #fff;
  text-decoration: none;
}
.cta-card img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.cta-card div {
  position: relative;
  z-index: 1;
  height: 100%;
  display: grid;
  align-content: end;
  padding: 28px;
  background: linear-gradient(transparent 20%, rgb(0 0 0 / .45));
}

.site-footer {
  position: relative;
  background: var(--primary);
  color: var(--cream);
  padding: 78px 0 calc(200px + env(safe-area-inset-bottom, 0px));
  margin-top: 88px;
}
.site-footer > .wrap { position: relative; z-index: 2; }
.site-footer::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  z-index: 1;
  height: 100px;
  transform: translateY(-36px);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 100' preserveAspectRatio='none'%3E%3Cpath fill='%23fff9eb' d='M0 0h1440v36c-120 0-240 60-360 60s-240-60-360-60-240 60-360 60S120 36 0 36Z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
  pointer-events: none;
}
.site-footer a { color: inherit; text-decoration: none; }
.foot-grid {
  display: grid;
  grid-template-columns: 1.1fr 1.4fr;
  gap: 32px;
}
.foot-logo { width: 200px; color: var(--cream); }
.foot-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 24px; font-size: .95rem; }
.foot-meta a { overflow-wrap: anywhere; }
.foot-nav { display: flex; flex-wrap: wrap; gap: 12px 18px; margin-top: 18px; opacity: .9; }
.copy { margin-top: 28px; font-size: .8rem; opacity: .75; }
.site-footer .copy { line-height: 1.7; opacity: 1; color: rgb(255 249 235 / .75); }
.site-footer .copy a { text-decoration: underline; text-underline-offset: .15em; white-space: nowrap; }
.site-footer .copy-patent { color: #ffe7a3; white-space: nowrap; }

/* 左下直排：LINE、電話、購物車。回頂留在右下。 */
.dock-tools {
  position: fixed;
  left: max(18px, env(safe-area-inset-left, 0px));
  bottom: max(18px, env(safe-area-inset-bottom, 0px));
  z-index: 30;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}
.line-float {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.42rem;
  width: max-content;
  max-width: calc(100vw - 36px);
  padding: 0.32rem 0.72rem 0.32rem 0.32rem;
  border-radius: 999px;
  background: linear-gradient(145deg, #07e05f 0%, #06c755 45%, #05a847 100%);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.8rem;
  line-height: 1.2;
  border: 1.5px solid rgba(255, 255, 255, .35);
  box-shadow:
    0 6px 18px rgba(6, 199, 85, .38),
    0 2px 6px rgba(14, 27, 44, .12),
    inset 0 1px 0 rgba(255, 255, 255, .25);
  transition: scale 160ms ease-out, filter 160ms ease-out;
}
.line-float strong { font-weight: 700; white-space: nowrap; }
.line-float::before {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: inherit;
  background: radial-gradient(circle at 50% 50%, rgba(6, 199, 85, .4), transparent 70%);
  z-index: -1;
  pointer-events: none;
}
@media (prefers-reduced-motion: no-preference) {
  .line-float { animation: line-breathe 2.8s ease-in-out infinite; }
  .line-float::before { animation: line-float-halo 2.8s ease-in-out infinite; }
}
@media (hover: hover) and (pointer: fine) {
  .line-float:hover {
    animation: none;
    scale: 1.04;
    filter: brightness(1.06);
  }
}
.line-float:active { animation: none; scale: 0.97; }
.line-float:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}
.dock-btn,
.phone-dock {
  background: var(--primary);
  color: #fff;
  text-decoration: none;
  box-shadow: 0 8px 20px rgb(25 146 158 / .35);
}
.dock-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.phone-dock {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 6px 14px 6px 8px;
  border-radius: 999px;
}
.phone-dock .icon-phone {
  width: 32px;
  height: 32px;
  padding: 6px;
  border-radius: 50%;
  background: rgb(255 255 255 / .18);
  box-sizing: border-box;
}
.phone-dock-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  text-align: left;
}
.phone-dock-text strong { font-size: .78rem; font-weight: 700; white-space: nowrap; }
.phone-dock-text small { font-size: .72rem; font-weight: 600; white-space: nowrap; }
.dock-btn:active,
.phone-dock:active { transform: scale(0.97); }
.dock-btn:focus-visible,
.phone-dock:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}
.dock-top {
  position: fixed;
  right: max(18px, env(safe-area-inset-right, 0px));
  bottom: max(18px, env(safe-area-inset-bottom, 0px));
  z-index: 30;
}
.line-float-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .22);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  box-shadow: 0 0 10px rgba(255, 255, 255, .35);
}
.line-float-icon svg { display: block; }
@keyframes line-breathe {
  0%, 100% { scale: 1; }
  50% { scale: 1.045; }
}
@keyframes line-float-halo {
  0%, 100% { opacity: .4; scale: .96; }
  50% { opacity: .9; scale: 1.08; }
}
.cart-count {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  border-radius: 99px;
  background: #c45c4a;
  color: #fff;
  font-size: 11px;
  display: grid;
  place-items: center;
  padding: 0 4px;
}
.cart-count[hidden] { display: none; }
.cart-wrap { position: relative; }

.page-hero {
  position: relative;
  padding: 28px 0 8px;
}
.page-hero::before {
  content: "";
  position: absolute;
  z-index: 0;
  left: -6vw;
  top: 0;
  width: min(520px, 70vw);
  height: 160px;
  background: radial-gradient(ellipse at 30% 40%, rgb(113 190 209 / .28), transparent 70%);
  pointer-events: none;
}
.page-hero > * { position: relative; z-index: 1; }
.crumbs { color: var(--muted); font-size: .9rem; }
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.shop-card {
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  text-decoration: none;
  box-shadow: 0 10px 30px rgb(25 146 158 / .08);
}
.shop-card img { width: 100%; height: 200px; object-fit: cover; }
.shop-card p { margin: 0; padding: 14px 16px 18px; }
.shop-card strong { display: block; }
.price { color: var(--primary); font-weight: 700; }

.detail {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 40px;
  align-items: start;
}
.detail img { width: 100%; border-radius: 22px; }
.qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgb(25 146 158 / .35);
  border-radius: 999px;
  overflow: hidden;
}
.qty button {
  width: 40px;
  height: 40px;
  border: 0;
  background: transparent;
  cursor: pointer;
  color: var(--primary);
}
.qty input {
  width: 48px;
  border: 0;
  text-align: center;
  background: transparent;
}

.form {
  display: grid;
  gap: 14px;
  max-width: 640px;
}
.form label { display: grid; gap: 6px; font-size: .92rem; }
.form input, .form textarea, .form select {
  width: 100%;
  border: 1px solid rgb(25 146 158 / .28);
  background: #fff;
  border-radius: 12px;
  padding: 12px 14px;
}
.cart-sum { display: grid; gap: 6px; margin: 14px 0; }
.cart-sum p { margin: 0; }
.cart-scroll { overflow-x: auto; max-inline-size: 100%; }
.cart-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 16px; overflow: hidden; }
.cart-table caption { caption-side: top; text-align: start; font-weight: 700; color: var(--primary); padding: 14px 14px 4px; }
.cart-table th, .cart-table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid #f0ebe0; }
.cart-table tbody th { font-weight: 400; }
.cart-table .num { text-align: end; font-variant-numeric: tabular-nums; white-space: nowrap; }
.cart-table tfoot th { font-weight: 600; text-align: start; border-bottom-color: #efe8d8; }
.cart-table tfoot td { border-bottom-color: #efe8d8; }
.cart-table tfoot tr:first-child th,
.cart-table tfoot tr:first-child td { border-top: 1px solid #e4dcc8; }
.cart-table tfoot .due-row th,
.cart-table tfoot .due-row td {
  background: rgb(25 146 158 / .1);
  color: var(--primary);
  font-weight: 700;
  font-size: 1.05rem;
  border-bottom: 0;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.faq details {
  background: #fff;
  border-radius: 14px;
  padding: 14px 18px;
  margin-bottom: 10px;
}
.faq summary { cursor: pointer; font-weight: 600; color: var(--primary); }

.reveal {
  opacity: 0;
  transform: translateY(14px);
}
.reveal.is-in {
  opacity: 1;
  transform: none;
  transition: opacity 700ms var(--ease), transform 700ms var(--ease);
}

.admin {
  min-height: 100svh;
  display: grid;
  grid-template-columns: 220px 1fr;
}
.admin aside {
  background: var(--primary);
  color: #fff;
  padding: 24px 18px;
}
.admin aside a { display: block; color: inherit; text-decoration: none; padding: 8px 0; }
.admin aside a[aria-current="page"] { font-weight: 700; opacity: 1; }
.admin aside a { opacity: .85; }
.admin main { padding: 28px; background: #f4f7f7; }
.admin table { width: 100%; background: #fff; border-collapse: collapse; }
.admin th, .admin td { padding: 10px 12px; border-bottom: 1px solid #eee; text-align: left; font-size: .92rem; }
.login-box {
  max-width: 360px;
  margin: 12vh auto;
  background: #fff;
  padding: 28px;
  border-radius: 18px;
  box-shadow: 0 16px 40px rgb(25 146 158 / .12);
}

.series-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 24px;
}
.series-tabs a {
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid rgb(25 146 158 / .3);
  text-decoration: none;
  font-size: .92rem;
}
.series-tabs a[aria-current="page"] {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.thumbs { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.thumbs button {
  padding: 0;
  border: 2px solid transparent;
  background: none;
  cursor: pointer;
  border-radius: 12px;
  overflow: hidden;
}
.thumbs button:focus-visible,
.thumbs button.is-on { border-color: var(--primary); }
.thumbs img { width: 72px; height: 72px; object-fit: cover; }
.spec { display: grid; gap: 8px; margin: 18px 0; }
.spec div { display: grid; grid-template-columns: 5rem 1fr; gap: 8px; }
.spec dt { color: var(--muted); margin: 0; }
.spec dd { margin: 0; overflow-wrap: anywhere; }
.map-embed { margin-top: 28px; max-width: 640px; }
.map-embed iframe { width: 100%; height: 300px; border: 0; border-radius: 16px; }
.map-embed p { margin-top: 16px; }
.buy-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 20px; }
.toast {
  position: fixed;
  bottom: 88px;
  left: 50%;
  translate: -50% 12px;
  background: var(--ink);
  color: #fff;
  padding: 10px 18px;
  border-radius: 999px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms var(--ease), translate 180ms var(--ease);
  z-index: 50;
}
.toast.is-on { opacity: 1; translate: -50% 0; }
.page-404 {
  min-height: 60svh;
  display: grid;
  place-content: center;
  text-align: center;
  gap: 12px;
}
.admin-note {
  background: #fff3d6;
  border-radius: 12px;
  padding: 12px 16px;
  margin-bottom: 18px;
}
.admin-login { min-height: 100svh; background: var(--cream); }
.cart-table button {
  border: 0;
  background: transparent;
  color: var(--primary);
  cursor: pointer;
  text-decoration: underline;
}
.icon-bag, .icon-line, .icon-top, .icon-phone {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal.is-in { opacity: 1; transform: none; transition: none; }
  .product-card img { transition: none; }
  .menu-dialog, .toast { transition: none; }
  body[data-page]:not([data-page="admin"])::after,
  .swell-track,
  .swell-track svg,
  .turtle-swim,
  .turtle-swim svg,
  .turtle-shore svg,
  .flipper { animation: none; }
}

@media (max-width: 720px) {
  .btn-head-line {
    width: 32px;
    min-width: 32px;
    height: 32px;
    min-height: 32px;
    padding: 0;
    border-radius: 50%;
    gap: 0;
  }
  .btn-head-line-txt { display: none; }
  .btn-head-line .btn-line-ico {
    width: 16px;
    height: 16px;
  }
}
@media (max-width: 520px) {
  .site-header { padding-inline: 12px; gap: 8px; }
  .menu-btn { white-space: nowrap; flex-shrink: 0; }
  .brand-logo { width: min(136px, 34vw); height: calc(min(136px, 34vw) * 0.275); }
  .header-actions { gap: 8px; }
  .btn-buy { white-space: nowrap; flex-shrink: 0; padding-inline: 12px; }
}
@media (max-width: 400px) {
  .brand-logo { width: min(120px, 30vw); height: calc(min(120px, 30vw) * 0.275); }
}
@media (max-width: 360px) {
  .site-header { padding-inline: 8px; gap: 6px; }
  .menu-btn { gap: 0; font-size: 0; }
  .brand-logo { width: 92px; height: calc(92px * 0.275); }
  .header-actions { gap: 6px; }
  .btn-buy { padding-inline: 10px; letter-spacing: 0; font-size: 12px; }
  .site-footer .copy a,
  .site-footer .copy-patent { white-space: normal; }
}
@media (max-width: 900px) {
  html { scroll-padding-bottom: 210px; }
  body[data-page]:not([data-page="admin"]) { padding-bottom: 200px; }
  #main-photo { max-height: 190px; object-fit: cover; }
  .header-actions .soc { display: none; }
  .news-grid, .series-card, .detail, .cta-pair, .foot-grid, .grid-3, .admin {
    grid-template-columns: 1fr;
  }
  .hero img { height: 70svh; }
  .hero { min-height: 70svh; }
  .hero::after { height: 64px; }
  .swell { height: 78px; bottom: 22px; }
  .turtle-swim,
  .turtle-shore { width: 78px; }
  .turtle-swim { bottom: 58px; }
  .turtle-back { width: 58px; bottom: 60px; }
  .scroll-cue { bottom: 78px; }
  body[data-page]:not([data-page="admin"]) { background-attachment: scroll; }
  body[data-page]:not([data-page="admin"])::after { display: none; }
  .news-photo img { height: 260px; }
  .section { padding: 48px 0; }
  .admin { display: block; }
}

/* 2026-11-20 新商品規格、購物車數量欄、後台顯示／隱藏 */
.cart-qty { width: 4.5rem; }
.gift-row th, .gift-row td { color: var(--primary); font-weight: 600; }
.spec-later { color: var(--muted); font-size: .92rem; }
.admin-brand { font-weight: 700; margin: 0 0 16px; }
.admin aside a.admin-front { margin-top: 24px; }
.admin-scroll { overflow-x: auto; }
.admin-products td small.admin-pending { display: block; color: #9a6a00; font-size: .8rem; margin-top: 2px; }
.admin-products tr.is-hidden td:not(:last-child) { opacity: .55; }
.vis-badge { display: inline-block; padding: 2px 10px; border-radius: 999px; background: #e3f4f5; color: var(--primary); font-size: .82rem; white-space: nowrap; }
.vis-badge.is-off { background: #f1ece2; color: #7a6f5c; }
.vis-toggle { border: 1px solid var(--primary); background: #fff; color: var(--primary); border-radius: 999px; padding: 6px 16px; cursor: pointer; white-space: nowrap; font: inherit; }
.vis-toggle:hover { background: rgb(25 146 158 / .08); }
.vis-toggle:disabled { opacity: .5; cursor: wait; }
.admin-error { color: #b3261e; margin: 0; }

/* 2026-11-20 訂購頁：左下浮動按鈕（LINE、電話、購物車）在桌面不壓到購物車與說明文字。
   按鈕維持左下，只把訂購頁內容往右讓出按鈕寬度。--dock-clear = 按鈕右緣 + 一點空隙。 */
@media (min-width: 901px) {
  body[data-page="order"] main > .wrap {
    --dock-clear: 196px;
    padding-left: max(0px, calc(var(--dock-clear) - max(20px, (100vw - 1120px) / 2)));
  }
}

/* 2026-11-20 原本寫在 HTML 的 style="" 搬到這裡（CSP 不允許行內樣式）。 */
#menu-title.kicker { font-size: 1.4rem; color: #fff; margin: 12px 0 0; }
.u-mt-16 { margin-top: 16px !important; }
.u-mt-20 { margin-top: 20px !important; }
.u-mt-24 { margin-top: 24px !important; }
.u-mt-28 { margin-top: 28px !important; }
.u-mt-32 { margin-top: 32px !important; }

.btn-line {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 24px;
  border: 0;
  border-radius: 999px;
  background: #06c755;
  color: #fff;
  font-weight: 700;
  letter-spacing: .04em;
  text-decoration: none;
  cursor: pointer;
  transition: transform 160ms var(--ease), filter 160ms var(--ease);
}
.btn-line:hover { filter: brightness(1.06); }
.btn-line:active { transform: scale(0.97); }
.btn-line-ico {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: #fff;
  color: #06c755;
  font-size: .62rem;
  font-weight: 800;
}
.member-hint {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: .92rem;
}
.member-err { color: #b3261e; }
.member-msg { color: var(--primary); font-weight: 600; }
.member-h {
  font-size: 1.05rem;
  margin: 28px 0 12px;
}
.member-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
.btn-text {
  border: 0;
  background: transparent;
  color: var(--muted);
  text-decoration: underline;
  cursor: pointer;
  padding: 8px 0;
  font: inherit;
}
.member-scroll { overflow-x: auto; }
.member-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
}
.member-table th,
.member-table td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid #eee;
  font-size: .92rem;
}
.member-table th {
  color: var(--muted);
  font-weight: 600;
  background: rgb(255 249 235 / .8);
}

@media (max-width: 720px) {
  .member-table th:nth-child(3),
  .member-table td:nth-child(3),
  .member-table th:nth-child(6),
  .member-table td:nth-child(6) { display: none; }
}