/* ==========================================================================
   GLOBAL DESIGN TOKENS  —  改一個 :root 變數，全站套用
   品牌：Addless 風格 · 極簡 · 大量留白 · 細線條
   ========================================================================== */



/* ==========================================================================
   「繫」「撐」兩字強制走繁中字型（避免 Zen Maru Gothic fallback 粗細不一）
   ========================================================================== */
:root {
  /* ---------- Brand Palette (粉色系，可一鍵替換) ---------- */
  --brand-accent:   #AC87C5;   /* 紫粉 主色 */
  --brand-soft:     #E5D9F2;   /* 淡紫白 輔色 */
  --brand-mist:     #E5D9F2;   /* 同 soft */
  --brand-bg-tint:  #F5EFFF;   /* 極淡紫 區塊底 */
  --brand-hover:    #756AB6;   /* 深紫 hover */
  --brand-light:    #F5EFFF;   /* 同 bg-tint */
  --brand-ink:   #3A3540;
  --brand-muted:   #6A6570;   /* 深灰，提升可讀性 */
  --brand-line:   #F0E5EB;
  --brand-blue:   #AC87C5;   /* 水彩淺藍輔色 */
  --brand-blue-light: #E8F0FA;
  --brand-bg:   #FFFFFF;
  --brand-bg-alt:   #FAF6F8;

  /* ---------- Type ---------- */
  --font-heading: "Dancing Script", "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
  --font-body: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
  --font-en: "Dancing Script", "Noto Sans TC", "PingFang TC", sans-serif;

  /* ---------- Motion ---------- */
  --ease-smooth: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-soft:   cubic-bezier(0.4, 0, 0.2, 1);
  --dur-fast:    0.25s;
  --dur-base:    0.45s;
  --dur-slow:    0.8s;

  /* ---------- Layout ---------- */
  --container-max: 1440px;
  --gutter:        clamp(20px, 4vw, 64px);
  --navbar-h: 80px;
}

/* Theme presets — 切換 data-theme 即可替換主色 */
[data-theme="rose"]   { --brand-accent:#756AB6; --brand-hover:#AC87C5; --brand-light:#E5D9F2; }
[data-theme="coral"]  { --brand-accent:#FF8FA3; --brand-hover:#E96B85; --brand-light:#E5D9F2; }
[data-theme="mauve"]  { --brand-accent:#D8A7B1; --brand-hover:#B98692; --brand-light:#F2E1E4; }
[data-theme="dusty"]  { --brand-accent:#E8B4BC; --brand-hover:#C98B95; --brand-light:#FAF0F1; }

/* Font presets */

/* ==========================================================================
   RESET & BASE
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.8;
  letter-spacing: 3px; /* 全站統一字距，子元素會繼承此設定 */
  color: var(--brand-ink);
  background: var(--brand-bg);
  font-feature-settings: "palt";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 500;
  letter-spacing: 0.02em;
  margin: 0;
  line-height: 1.3;
}
p { margin: 0; }
a { color: inherit; text-decoration: none; transition: color var(--dur-fast) var(--ease-soft); }
a:hover { color: var(--brand-hover); }
img { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }

/* ==========================================================================
   LAYOUT HELPERS
   ========================================================================== */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* ==========================================================================
   NAVBAR  (滾動 50px 後加入背景模糊)
   ========================================================================== */
.navbar {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--navbar-h);
  z-index: 50;
  display: flex;
  align-items: center;
  background: transparent;
  transition:
    background-color var(--dur-base) var(--ease-soft),
    backdrop-filter var(--dur-base) var(--ease-soft),
    border-color var(--dur-base) var(--ease-soft),
    box-shadow var(--dur-base) var(--ease-soft);
  border-bottom: 1px solid transparent;
}
.navbar.is-scrolled {
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom-color: var(--brand-line);
}
.navbar__inner {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.navbar__logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-en);
  font-size: 22px;
  letter-spacing: 0.01em;
  }
.navbar__logo svg { fill: var(--brand-accent); transition: fill var(--dur-fast) var(--ease-soft); }
.navbar__logo:hover svg { fill: var(--brand-hover); }

.navbar__menu {
  display: flex;
  gap: 36px;
  font-size: 18px;
  letter-spacing: 0.08em;
}
.navbar__menu a {
  position: relative;
  padding: 6px 0;
  color: var(--brand-ink);
}
.navbar__menu a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--brand-accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--dur-base) var(--ease-smooth);
}
.navbar__menu a:hover::after { transform: scaleX(1); transform-origin: left; }

.navbar__icons {
  display: flex;
  align-items: center;
  gap: 24px;
}
.navbar__icons button {
  width: 30px; height: 30px;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--brand-ink);
  transition: color var(--dur-fast) var(--ease-soft), transform var(--dur-fast) var(--ease-soft);
  position: relative;
}
.navbar__icons button svg { width: 24px; height: 24px; }
.navbar__icons button:hover { color: var(--brand-hover); transform: translateY(-1px); }
.navbar__icons .cart-badge {
  position: absolute;
  top: -7px; right: -9px;
  min-width: 21px; height: 21px; padding: 0 6px;
  border-radius: 999px;
  background: var(--brand-accent);
  color: #fff;
  font-size: 13px; line-height: 21px;
  font-weight: 700;
  text-align: center;
  font-family: var(--font-en);
  box-shadow: 0 0 0 2px #fff;
}

/* ---- Mobile hamburger toggle ---- */
.navbar__icons .navbar__toggle {
  display: none;
  width: 28px; height: 28px;
  align-items: center; justify-content: center;
  color: var(--brand-ink);
}
.navbar__toggle span {
  position: relative;
  display: block;
  width: 22px; height: 1.5px;
  background: currentColor;
  transition: transform var(--dur-base) var(--ease-soft), opacity var(--dur-fast);
}
.navbar__toggle span::before,
.navbar__toggle span::after {
  content: "";
  position: absolute; left: 0;
  width: 22px; height: 1.5px;
  background: currentColor;
  transition: transform var(--dur-base) var(--ease-soft), top var(--dur-base) var(--ease-soft);
}
.navbar__toggle span::before { top: -7px; }
.navbar__toggle span::after  { top:  7px; }
.navbar__toggle.is-open span                  { background: transparent; }
.navbar__toggle.is-open span::before          { top: 0; transform: rotate(45deg); }
.navbar__toggle.is-open span::after           { top: 0; transform: rotate(-45deg); }

/* ---- Mobile drawer ---- */
.navbar__drawer {
  position: fixed;
  top: var(--navbar-h);
  left: 0;
  right: 0;
  bottom: 0;
  height: calc(100vh - var(--navbar-h));
  width: 100%;
  background: rgba(255,255,255,0.98);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  padding: 24px 24px 56px;
  display: flex;                       /* 常駐渲染，display 無法做過渡，改以 visibility/transform 控制顯隱以套用滑動特效 */
  flex-direction: column;
  gap: 0;
  z-index: 49;
  border-top: 1px solid var(--brand-line);
  overflow-y: auto;
  overscroll-behavior: contain;        /* 抽屜內捲到頂／底時不把捲動傳遞給背景，避免滾動穿透 */
  box-sizing: border-box;
  /* 收合狀態：向右移出畫面並淡出，visibility 延遲至位移動畫結束才隱藏，避免動畫被瞬間切斷 */
  transform: translateX(100%);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: transform 0.34s cubic-bezier(0.22, 0.61, 0.36, 1),
              opacity 0.34s ease,
              visibility 0s linear 0.34s;
}
/* 展開狀態：滑回原位並淡入，visibility 立即生效讓內容可互動 */
.navbar__drawer.is-open {
  transform: translateX(0);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: transform 0.34s cubic-bezier(0.22, 0.61, 0.36, 1),
              opacity 0.34s ease,
              visibility 0s linear 0s;
}
/* 尊重使用者「減少動態效果」偏好，停用滑動過渡僅保留顯隱 */
@media (prefers-reduced-motion: reduce) {
  .navbar__drawer,
  .navbar__drawer.is-open { transition: none; }
}
.navbar__drawer a {
  display: block;
  font-size: 24px;
  font-weight: 400;
  letter-spacing: 0.06em;
  padding: 12px 0;
  border-bottom: 1px solid var(--brand-line);
  width: 100%;
}
.navbar__drawer a:hover { color: var(--brand-hover); }

@media (max-width: 768px) {
  .navbar__menu { display: none; }
  .navbar__icons .navbar__toggle { display: inline-flex; }
  .navbar__icons { gap: 14px; }
  .navbar__inner { gap: 12px; }
  .navbar__logo { font-size: 22px; gap: 8px; }
  .navbar__logo svg { width: 24px; height: 24px; }
  /* Hide search on mobile to save space; cart + account remain */
  .navbar__icons > button[aria-label="搜尋"] { display: none; }
}
/* Lock scroll when drawer open */
body.is-drawer-open { overflow: hidden; }

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  font-size: 18px;
  letter-spacing: 0.12em;
  border-radius: 999px;
  transition:
    background-color var(--dur-base) var(--ease-soft),
    color var(--dur-base) var(--ease-soft),
    transform var(--dur-base) var(--ease-soft),
    box-shadow var(--dur-base) var(--ease-soft),
    border-color var(--dur-base) var(--ease-soft);
  will-change: transform;
}
.btn-primary {
  background: var(--brand-accent);
  color: #fff;
  border: 1px solid var(--brand-accent);
  transition: all .25s var(--ease-soft);
}
.btn-primary:hover {
  background: var(--brand-hover);
  border-color: var(--brand-hover);
  color: #fff;
  transform: translateY(-2px);
}
.btn-ghost {
  background: transparent;
  border: 1px solid var(--brand-accent);
  color: var(--brand-accent);
  transition: all .25s var(--ease-soft);
}
.btn-ghost:hover {
  background: var(--brand-accent);
  border-color: var(--brand-accent);
  color: #fff;
  transform: translateY(-2px);
}
.btn-light {
  background: var(--brand-light);
  color: var(--brand-ink);
}
.btn-light:hover {
  background: var(--brand-accent);
  color: #fff;
  transform: translateY(-2px);
}

/* ==========================================================================
   SECTION HEADINGS
   ========================================================================== */
.section { padding: clamp(64px, 10vw, 140px) 0; }
.section-tight { padding: clamp(40px, 6vw, 80px) 0; }

.section-eyebrow {
  display: block;
  font-family: var(--font-en);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: 0.01em;
  /* 拿掉 — 手寫字小寫更優雅 */
  color: var(--brand-muted);
  margin-bottom: 8px;
}
.section-title {
  font-size: clamp(28px, 3.4vw, 44px);
  font-weight: 400;
  letter-spacing: 0.04em;
  position: relative;
  display: inline-block;
  padding-bottom: 18px;
}
.section-title::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 48px; height: 2px;
  background: var(--brand-accent);
}
.section-title.center { display: block; text-align: center; }
.section-title.center::after { left: 50%; transform: translateX(-50%); }
.section-lede {
  max-width: 56ch;
  color: var(--brand-muted);
  margin-top: 18px;
  font-size: 17px;
  line-height: 1.9;
}
.section-lede.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ==========================================================================
   HERO CAROUSEL
   ========================================================================== */
.hero {
  position: relative;
  height: 100vh;
  min-height: 560px;
  overflow: hidden;
  background: var(--brand-bg-alt);
}
.hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.2s var(--ease-smooth);
  background-size: cover;
  background-position: center;
}
.hero__slide.is-active { opacity: 1; }
.hero__slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.05) 0%, rgba(0,0,0,0) 40%, rgba(0,0,0,0.25) 100%);
}
.hero__content {
  position: absolute;
  left: var(--gutter);
  bottom: clamp(60px, 12vh, 140px);
  z-index: 2;
  color: #fff;
  max-width: 640px;
}
.hero__content .eyebrow {
  font-family: var(--font-en);
  letter-spacing: 0.01em;
  font-size: 15px;
  opacity: 0.9;
  margin-bottom: 18px;
}
.hero__content h1 {
  font-size: clamp(36px, 5.4vw, 76px);
  font-weight: 300;
  letter-spacing: 0.02em;
  line-height: 1.15;
  margin-bottom: 24px;
}
.hero__content p {
  font-size: 18px;
  line-height: 1.9;
  max-width: 460px;
  opacity: 0.92;
  margin-bottom: 32px;
}
.hero__dots {
  position: absolute;
  bottom: 48px; right: var(--gutter);
  display: flex; gap: 12px;
  z-index: 3;
}
.hero__dots button {
  width: 32px; height: 2px;
  background: rgba(255,255,255,0.4);
  transition: background var(--dur-base) var(--ease-soft), width var(--dur-base) var(--ease-soft);
}
.hero__dots button.is-active { background: #fff; width: 56px; }

.hero__counter {
  position: absolute;
  bottom: 48px; left: var(--gutter);
  z-index: 3;
  font-family: var(--font-en);
  font-size: 15px;
  letter-spacing: 0.01em;
  color: #fff;
  display: flex; align-items: center; gap: 14px;
}
.hero__counter .line { width: 40px; height: 1px; background: rgba(255,255,255,0.5); }

/* ---- Hero RWD ---- */
@media (max-width: 768px) {
  .hero {
    height: auto;
    min-height: 88vh;
  }
  .hero__content {
    bottom: 110px;     /* 讓位給底部的 counter / dots，避免重疊 */
    right: var(--gutter);
    max-width: none;
  }
  .hero__content h1 { margin-bottom: 18px; }
  .hero__content p { margin-bottom: 24px; max-width: none; font-size: 17px; }
  .hero__counter { bottom: 60px; font-size: 14px; }
  .hero__counter .line { width: 28px; }
  .hero__dots { bottom: 28px; }
  .hero__dots button { width: 22px; }
  .hero__dots button.is-active { width: 36px; }
}
@media (max-width: 480px) {
  .hero { min-height: 92vh; }
  .hero__content { bottom: 100px; }
  .hero__content .eyebrow { font-size: 13px; margin-bottom: 12px; }
  .hero__content .btn { padding: 12px 22px; font-size: 15px; }
}

/* ==========================================================================
   PRODUCT GRID & CARD
   ========================================================================== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(20px, 2.4vw, 40px) clamp(16px, 1.8vw, 28px);
}
@media (max-width: 1200px) { .product-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 960px)  { .product-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px)  { .product-grid { grid-template-columns: 1fr; } }

.product-card { display: block; }
.product-card__media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: var(--brand-bg-alt);
  margin-bottom: 16px;
}
.product-card__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease-smooth);
}
.product-card:hover .product-card__media img { transform: scale(1.05); }

.product-card__badge {
  position: absolute;
  top: 14px; left: 14px;
  background: var(--brand-light);
  color: var(--brand-ink);
  font-size: 13px;
  letter-spacing: 0.16em;
  padding: 5px 10px;
  z-index: 2;
  max-width: calc(100% - 28px); /* 左右各保留 14px 與卡片邊界對齊，避免標籤超出右側 */
  box-sizing: border-box;
  overflow: hidden; /* 標籤過長時裁切，配合 ellipsis 顯示省略號 */
  text-overflow: ellipsis;
  white-space: nowrap;
}
.product-card__quick {
  position: absolute;
  inset: auto 0 0 0;
  padding: 14px;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(6px);
  display: flex;
  justify-content: center;
  font-size: 15px;
  letter-spacing: 0.01em;
  font-family: var(--font-en);
  font-weight: 500;
  color: var(--brand-ink);
  transform: translateY(100%);
  transition: transform var(--dur-base) var(--ease-smooth);
}
.product-card:hover .product-card__quick { transform: translateY(0); color: var(--brand-hover); }

.product-card__cat {
  font-family: var(--font-en);
  font-size: 14px;
  letter-spacing: 0.01em;
  color: var(--brand-muted);
  }
.product-card__title {
  font-size: 20px;
  margin: 6px 0 4px;
  font-weight: 400;
}
.product-card__price {
  font-family: var(--font-en);
  font-size: 18px;
  letter-spacing: 0.06em;
}
.product-card__price del { color: var(--brand-muted); margin-right: 8px; }

/* ==========================================================================
   CTA / MEMBER BLOCK
   ========================================================================== */
.cta-block {
  background: var(--brand-light);
  padding: clamp(56px, 8vw, 120px) var(--gutter);
  text-align: center;
}
.cta-block h2 {
  font-size: clamp(28px, 3.6vw, 46px);
  font-weight: 300;
  letter-spacing: 0.04em;
  margin-bottom: 18px;
}
.cta-block p {
  max-width: 52ch;
  margin: 0 auto 32px;
  color: var(--brand-ink);
  opacity: 0.78;
  line-height: 1.9;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
  border-top: 1px solid var(--brand-line);
  padding: 80px 0 40px;
  font-size: 15px;
  color: var(--brand-muted);
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 64px;
}
.footer__col h4 {
  color: var(--brand-ink);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 18px;
}
.footer__col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer__col a:hover { color: var(--brand-hover); }
.footer__bottom {
  border-top: 1px solid var(--brand-line);
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-en);
  letter-spacing: 0.01em;
  font-size: 14px;
}
.footer__social { display: flex; gap: 18px; }
.footer__social a { width: 36px; height: 36px; border: 1px solid var(--brand-line); border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; transition: all var(--dur-base) var(--ease-soft); }
.footer__social a:hover { border-color: var(--brand-accent); color: var(--brand-accent); transform: translateY(-2px); }

@media (max-width: 768px) {
  .footer { padding: 56px 0 32px; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 36px 24px; margin-bottom: 40px; }
  .footer__bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
}
@media (max-width: 420px) {
  .footer__grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   SCROLL REVEAL
   ========================================================================== */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.9s var(--ease-smooth),
    transform 0.9s var(--ease-smooth);
}
[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}
[data-reveal][data-reveal-delay="1"] { transition-delay: 0.08s; }
[data-reveal][data-reveal-delay="2"] { transition-delay: 0.16s; }
[data-reveal][data-reveal-delay="3"] { transition-delay: 0.24s; }
[data-reveal][data-reveal-delay="4"] { transition-delay: 0.32s; }

/* ==========================================================================
   FORMS
   ========================================================================== */
.form-field {
  display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px;
}
.form-field label {
  font-size: 14px; letter-spacing: 0.01em; color: var(--brand-muted); font-family: var(--font-en);
}
.form-field input,
.form-field textarea,
.form-field select {
  border: none;
  border-bottom: 1px solid var(--brand-line);
  background: transparent;
  padding: 10px 0 10px 12px; /* 左側保留 12px 內距，避免文字緊貼邊緣 */
  font: inherit;
  color: var(--brand-ink);
  outline: none;
  transition: border-color var(--dur-fast) var(--ease-soft);
}
.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  border-bottom-color: var(--brand-accent);
}

/* ==========================================================================
   CART / TABLE
   ========================================================================== */
.cart-row {
  display: grid;
  grid-template-columns: 120px 1fr auto auto auto;
  gap: 24px;
  align-items: center;
  padding: 24px 0;
  border-bottom: 1px solid var(--brand-line);
}
.cart-row img { width: 120px; aspect-ratio: 3/4; object-fit: cover; }

@media (max-width: 640px) {
  .cart-row {
    grid-template-columns: 88px 1fr;
    grid-template-areas:
      "img title"
      "img price"
      "qty remove";
    gap: 12px 16px;
    align-items: start;
  }
  .cart-row img { width: 88px; grid-area: img; }
  .cart-row > *:nth-child(2) { grid-area: title; }
  .cart-row > *:nth-child(3) { grid-area: price; }
  .cart-row > *:nth-child(4) { grid-area: qty; }
  .cart-row > *:nth-child(5) { grid-area: remove; justify-self: end; }
}
.qty {
  display: inline-flex; align-items: center; gap: 14px;
  border: 1px solid var(--brand-line); padding: 6px 12px;
}
.qty button { width: 20px; height: 20px; }
.qty button:hover { color: var(--brand-hover); }

/* ==========================================================================
   BREADCRUMB & MISC
   ========================================================================== */
.breadcrumb {
  font-family: var(--font-en);
  font-size: 15px;
  letter-spacing: 0.01em;
  color: var(--brand-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  align-items: center;
}
.breadcrumb a:hover { color: var(--brand-hover); }
.breadcrumb .sep { width: 18px; height: 1px; background: var(--brand-line); }

.divider { width: 100%; height: 1px; background: var(--brand-line); }

.tag {
  display: inline-block;
  font-size: 13px;
  letter-spacing: 0.16em;
  padding: 4px 10px;
  background: var(--brand-light);
  color: var(--brand-ink);
}

/* ==========================================================================
   V2 (Minimal) — RWD overrides
   v2-cat / v2-hero__img RWD 已由 v2 內建 <style> 處理；此處只補 marquee
   ========================================================================== */
@media (max-width: 768px) {
  .v2-hero { padding-top: clamp(32px, 6vw, 56px); padding-bottom: clamp(40px, 5vw, 80px); }
}
@media (max-width: 480px) {
  .v2-marquee {
  font-family: var(--font-heading);
  font-size: clamp(56px, 9vw, 128px);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: 0.01em;
  color: var(--brand-ink);
}
}

/* ==========================================================================
   V3 (Asymmetric) — RWD overrides
   ========================================================================== */
@media (max-width: 1024px) {
  /* 平板：v3-feat 的 12 欄錯落改成 6 欄成對 */
  .v3-feat__a { grid-column: 1 / span 7 !important; }
  .v3-feat__b { grid-column: 8 / span 5 !important; align-self: start !important; }
  .v3-feat__c { grid-column: 1 / -1 !important; margin-top: 32px !important; }
}

@media (max-width: 768px) {
  .v3-hero {
    min-height: auto;
    padding-bottom: 0;
  }
  .v3-hero__inner {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .v3-hero__text {
    padding: 40px 24px 36px;
  }
  .v3-hero__text h1 {
    font-size: clamp(48px, 14vw, 80px);
    margin-bottom: 24px;
  }
  .v3-hero__image {
    aspect-ratio: 4 / 5;
    height: auto;
  }
  /* 浮動小圖在手機上縮小並避免被內容裁切 */
  .v3-hero__floating {
    width: 36vw;
    bottom: 20px;
    right: 20px;
    border-width: 4px;
  }
  /* 手機上文字區塊保留底部空間，避免被浮動小圖蓋住 */
  .v3-hero__text { padding-bottom: clamp(28px, 6vw, 48px); }
  .v3-hero__image { padding-bottom: 0; }
  /* Marquee 縮小 */
  .v3-marquee { padding: 14px 0; }
  .v3-marquee__track { font-size: 16px; gap: 36px; }
  .v3-marquee__track span { gap: 36px; }
  /* Featured 全部單欄 */
  .v3-feat { gap: 16px; }
  .v3-feat__a,
  .v3-feat__b,
  .v3-feat__c {
    grid-column: 1 / -1 !important;
    margin-top: 0 !important;
    aspect-ratio: 4 / 5 !important;
  }
  .v3-feat__b { aspect-ratio: 1 / 1 !important; }
  /* 分類大數字縮小 */
  .v3-num { font-size: clamp(64px, 18vw, 110px); }
}

@media (max-width: 480px) {
  .v3-hero__text { padding: 32px 20px 28px; }
  .v3-hero__text h1 { font-size: clamp(42px, 13vw, 64px); }
  .v3-hero__floating { width: 40vw; bottom: 14px; right: 14px; border-width: 3px; }
  /* Hero 兩個按鈕在小螢幕上各佔一行寬度比較好點 */
  .v3-hero__text .flex.gap-4 { flex-wrap: wrap; gap: 10px; }
  .v3-hero__text .flex.gap-4 .btn { flex: 1 1 auto; padding: 12px 18px; font-size: 15px; }
}

/* ==========================================================================
   PRODUCT LIST — Filter bar RWD
   ========================================================================== */
.filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px 24px;
  padding: 22px 0;
  border-top: 1px solid var(--brand-line);
  border-bottom: 1px solid var(--brand-line);
}
.filter-bar__cats {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 8px;
  font-family: var(--font-en);
  font-size: 14px;
  letter-spacing: 0.01em;
  }
.filter-bar__cats button {
  padding: 8px 14px;
  white-space: nowrap;
  transition: background var(--dur-fast) var(--ease-soft);
}
.filter-bar__cats button:hover { background: var(--brand-light); }
.filter-bar__cats button.is-active { background: var(--brand-light); }
.filter-bar__sort {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 16px;
  color: var(--brand-muted);
}
.filter-bar__sort label {
  font-family: var(--font-en);
  font-size: 13px;
  letter-spacing: 0.01em;
  }
.filter-bar__sort select {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--brand-line);
  padding: 6px 0;
  outline: none;
  font: inherit;
  color: inherit;
}

@media (max-width: 768px) {
  .filter-bar { gap: 12px; padding: 18px 0; }
  /* 手機讓分類條可水平捲動，避免換多行擠成一團 */
  .filter-bar__cats {
    flex-wrap: nowrap;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
    scrollbar-width: none;
  }
  .filter-bar__cats::-webkit-scrollbar { display: none; }
  .filter-bar__cats button { padding: 8px 12px; font-size: 13px; }
  .filter-bar__sort {
    width: 100%;
    justify-content: space-between;
  }
}

/* ==========================================================================
   PRODUCT DETAIL — Gallery / Info / Actions RWD
   ========================================================================== */
.pdp-grid {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: 48px;
  padding: 32px 0;
}
.pdp-gallery__main {
  grid-column: 1 / -1;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--brand-light);
}
.pdp-gallery__thumb {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--brand-light);
}
.pdp-gallery img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.pdp-info { position: sticky; top: calc(var(--navbar-h) + 24px); align-self: start; }

.pdp-actions {
  display: flex;
  gap: 12px;
  margin-bottom: 40px;
}
.pdp-actions .btn-primary { flex: 1; }
.pdp-actions__fav {
  width: 52px;
  flex-shrink: 0;
  padding: 0;
}

.pdp-sizes {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}
.pdp-sizes button {
  padding: 12px 0;
  border: 1px solid var(--brand-line);
  font-size: 16px;
  transition: border-color var(--dur-fast) var(--ease-soft);
}
.pdp-sizes button:hover { border-color: var(--brand-accent); }
.pdp-sizes button.is-active { border-color: var(--brand-ink); }

@media (max-width: 1024px) {
  .pdp-grid { grid-template-columns: 1fr; gap: 32px; padding: 24px 0; }
  .pdp-info { position: static; }
}
@media (max-width: 640px) {
  /* 手機 gallery 主圖全寬 + thumbs 改 2 欄保留瀏覽 */
  .pdp-gallery { gap: 8px; }
  .pdp-gallery__main { aspect-ratio: 3 / 4; }
}
@media (max-width: 380px) {
  /* 極窄螢幕：尺寸格 5 欄太擠，改成自動換行 */
  .pdp-sizes {
    grid-template-columns: repeat(4, 1fr);
  }
}

.pdp-breadcrumb { flex-wrap: wrap; row-gap: 6px; }

/* ==========================================================================
   CART — 強化 cart-row 在 769–1024 中型螢幕可讀性
   （手機雙欄重排已在前面 640px 規則中處理）
   ========================================================================== */
@media (max-width: 1024px) and (min-width: 641px) {
  .cart-row {
    grid-template-columns: 100px 1fr auto auto auto;
    gap: 16px;
  }
  .cart-row img { width: 100px; }
}

/* Cart 主版面 (items + summary)：md:col-span 12 欄到單欄已由 Tailwind 處理；
   但需要在切到單欄時讓 summary 有合理間距 */
@media (max-width: 768px) {
  body[data-screen-label="04 Cart"] aside.md\:col-span-4 { margin-top: 8px; }
}

/* ==========================================================================
   CHECKOUT — Steps / Form / Summary RWD
   ========================================================================== */
.checkout-steps {
  display: flex;
  gap: 24px;
  font-family: var(--font-en);
  font-size: 14px;
  letter-spacing: 0.01em;
  }
.checkout-steps span {
  padding-bottom: 8px;
  white-space: nowrap;
}
.checkout-steps .is-current {
  border-bottom: 2px solid var(--brand-accent);
}
.checkout-steps .is-pending {
  color: var(--brand-muted);
}

@media (max-width: 640px) {
  .checkout-steps {
    gap: 12px;
    font-size: 13px;
    letter-spacing: 0.12em;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 6px;
  }
  .checkout-steps::-webkit-scrollbar { display: none; }
}

.checkout-radio {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid var(--brand-line);
  padding: 14px 16px;
  margin-bottom: 10px;
  cursor: pointer;
  transition: border-color var(--dur-fast) var(--ease-soft);
}
.checkout-radio:hover { border-color: var(--brand-accent); }
.checkout-radio.is-active { border-color: var(--brand-accent); }
.checkout-radio__label {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
}
.checkout-radio__price {
  font-family: var(--font-en);
  flex-shrink: 0;
  white-space: nowrap;
}

@media (max-width: 480px) {
  .checkout-radio { padding: 12px 14px; font-size: 16px; }
}

/* Checkout 訂單明細圖文行：手機縮小圖、避免擠 */
.checkout-line {
  display: flex;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--brand-line);
  align-items: flex-start;
}
.checkout-line__img {
  width: 80px;
  height: 96px;
  object-fit: cover;
  flex-shrink: 0;
}
.checkout-line__body { flex: 1; min-width: 0; }
.checkout-line__price {
  font-family: var(--font-en);
  flex-shrink: 0;
  white-space: nowrap;
}

@media (max-width: 480px) {
  .checkout-line { gap: 12px; }
  .checkout-line__img { width: 64px; height: 80px; }
}

/* 表單姓名/城市等 2 欄在極窄螢幕改單欄 */
@media (max-width: 380px) {
  body[data-screen-label="05 Checkout"] form .grid.grid-cols-2 {
    grid-template-columns: 1fr !important;
  }
}

/* Checkout 手機：訂單摘要移到表單前面（dom 順序不變，靠 flex order） */
@media (max-width: 768px) {
  body[data-screen-label="05 Checkout"] .grid.md\:grid-cols-12 {
    display: flex;
    flex-direction: column;
    gap: 32px;
  }
  body[data-screen-label="05 Checkout"] form { order: 2; }
  body[data-screen-label="05 Checkout"] aside { order: 1; }
  /* 手機上摘要的 padding 縮減 */
  body[data-screen-label="05 Checkout"] aside > div { padding: 24px; }
}

/* ==========================================================================
   ABOUT — Hero 大圖比例 / Material 中型螢幕 2 欄
   ========================================================================== */
.about-hero-img {
  aspect-ratio: 16 / 7;
  overflow: hidden;
  background: var(--brand-light);
}
@media (max-width: 768px) {
  .about-hero-img { aspect-ratio: 4 / 5; }
}

/* Material 3 欄在中型螢幕改 2 欄，避免每張圖太窄 */
@media (max-width: 1024px) and (min-width: 769px) {
  body[data-screen-label="07 About"] .grid.md\:grid-cols-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ==========================================================================
   ACCOUNT — 兩欄 gap 在中型螢幕收斂
   ========================================================================== */
@media (max-width: 1024px) and (min-width: 769px) {
  body[data-screen-label="06 Account"] .grid.md\:grid-cols-2 {
    gap: 40px;
  }
}
/* 手機切單欄時，兩個區塊之間多一條分隔線增加視覺區隔 */
@media (max-width: 768px) {
  body[data-screen-label="06 Account"] .grid.md\:grid-cols-2 > div + div {
    padding-top: 32px;
    border-top: 1px solid var(--brand-line);
    margin-top: 8px;
  }
}

/* ==========================================================================
   CONTACT — 兩欄 gap、表單姓名/Email 窄螢幕單欄
   ========================================================================== */
@media (max-width: 1024px) and (min-width: 769px) {
  body[data-screen-label="08 Contact"] .grid.md\:grid-cols-12 {
    gap: 40px;
  }
}
@media (max-width: 380px) {
  body[data-screen-label="08 Contact"] form .grid.grid-cols-2 {
    grid-template-columns: 1fr !important;
    gap: 0;
  }
}
/* FAQ 標題與 + 號避免擠在一起 */
body[data-screen-label="08 Contact"] details summary { gap: 16px; }

/* ==========================================================================
   PRIVACY — 手機 sidebar 改橫排錨點
   ========================================================================== */
.privacy-toc {
  position: sticky;
  top: calc(var(--navbar-h) + 24px);
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 16px;
}
.privacy-toc a {
  color: var(--brand-ink);
  transition: color var(--dur-fast) var(--ease-soft);
}
.privacy-toc a:hover { color: var(--brand-hover); }

@media (max-width: 768px) {
  .privacy-toc {
    position: static;
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 8px;
    padding-bottom: 12px;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--brand-line);
  }
  .privacy-toc::-webkit-scrollbar { display: none; }
  .privacy-toc a {
    padding: 8px 14px;
    background: var(--brand-bg-alt);
    border-radius: 999px;
    white-space: nowrap;
    font-size: 15px;
  }
}

/* Privacy 內文標題在手機收斂 */
@media (max-width: 480px) {
  body[data-screen-label="09 Privacy"] .section-title { font-size: 28px !important; }
}

/* ==========================================================================
   COMPARE HOMES — 手機提示「建議桌機瀏覽」
   ========================================================================== */
.compare-mobile-hint {
  display: none;
  padding: 60px 24px;
  text-align: center;
  font-family: var(--font-body);
  background: #fff;
  border-bottom: 1px solid #E8E8E8;
}
.compare-mobile-hint h2 {
  font-size: 22px;
  font-weight: 500;
  margin: 0 0 12px;
  letter-spacing: 0.04em;
}
.compare-mobile-hint p {
  font-size: 16px;
  line-height: 1.8;
  color: #8A8A8A;
  margin: 0;
}
@media (max-width: 1024px) {
  .compare-mobile-hint { display: block; }
}


/* ==========================================================================
   UTILITIES — 從 inline style 抽出來的常用屬性
   ========================================================================== */

/* Colors */
.u-muted        { color: var(--brand-muted); }
.u-ink          { color: var(--brand-ink); }
.u-accent       { color: var(--brand-accent); }
.u-hover        { color: var(--brand-hover); }
.u-white        { color: #fff; }

/* Backgrounds */
.u-bg-light     { background: var(--brand-light); }
.u-bg-alt       { background: var(--brand-bg-alt); }
.u-bg-ink       { background: var(--brand-ink); color: #fff; }
.u-bg-white     { background: #fff; }

/* Borders */
.u-b-line       { border-color: var(--brand-line); }
.u-b-ink        { border-color: var(--brand-ink); }
.u-b-accent     { border-color: var(--brand-accent); }
.u-b-line-soft  { border-color: rgba(0,0,0,.2); }
.u-b-line-softer{ border-color: rgba(0,0,0,.1); }
.u-b-light      { border-color: rgba(255,255,255,.3); }

/* Font weights & style */
.u-fw-300       { font-weight: 300; }
.u-fw-400       { font-weight: 400; }
.u-fw-500       { font-weight: 500; }
.u-italic       { font-style: italic; }
.u-italic-accent{ font-style: italic; color: var(--brand-accent); }
.u-italic-ink   { font-style: italic; color: var(--brand-ink); }

/* Line heights */
.u-lh-tight     { line-height: 1.4; }
.u-lh-snug      { line-height: 1.7; }
.u-lh-normal    { line-height: 1.85; }
.u-lh-relaxed   { line-height: 1.95; }

/* Padding-top compositions for navbar-height-aware heroes */
.pt-nav-60      { padding-top: calc(var(--navbar-h) + 60px); }
.pt-nav-80      { padding-top: calc(var(--navbar-h) + 80px); }
.pt-nav-100     { padding-top: calc(var(--navbar-h) + 100px); }

/* Text alignment + max-width 常用組合 */
.u-center-narrow{ text-align: center; max-width: 54ch; margin-left: auto; margin-right: auto; }

/* Common composite */
.u-muted-relaxed { color: var(--brand-muted); line-height: 1.95; }
.u-muted-snug    { color: var(--brand-muted); line-height: 1.85; }

/* Hide responsive helpers */
@media(max-width:1024px){ .u-hide-md{ display:none !important; } }
@media(max-width:768px) { .u-hide-sm{ display:none !important; } }

/* Footer brand link spacing fix */
.footer__brand-link { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 18px; }

/* 額外字級加大微調 — 針對特定元素 */
/* 這些原本字級是 12-13px 太小，加大成 13-14px 提升中年友善度 */
.footer__heading, .footer__cat { font-size: 14px; }
.footer__copy, .footer__tagline { font-size: 16px; }
.footer__col a { font-size: 14.5px; color: var(--brand-muted); }


/* ==========================================================================
   PAGE-SPECIFIC STYLES — v2-minimal
   ========================================================================== */

/****************************************************************************/

/* ==========================================================================
   PAGE-SPECIFIC STYLES — v2-minimal
   從 inline style="..." 與 <style>...</style> 抽出，per-page 分區
   ========================================================================== */

/* === about (from <style> block) === */
.tl-row{display:grid;grid-template-columns:120px 1fr 1fr;gap:48px;padding:60px 0;border-top:1px solid var(--brand-line)}
@media(max-width:768px){.tl-row{grid-template-columns:1fr;gap:20px}}
.tl-year{font-family:var(--font-en);font-size:50px;font-weight:300;line-height:1;letter-spacing:-.02em;color:var(--brand-accent)}
.tl-img{aspect-ratio:4/5;overflow:hidden;background:var(--brand-light)}
.tl-img img{width:100%;height:100%;object-fit:cover}
/* === account (from <style> block) === */

.a2-grid{display:grid;grid-template-columns:1fr 1fr;min-height:100vh}
@media(max-width:1024px){.a2-grid{grid-template-columns:1fr}.a2-img{min-height:300px;max-height:50vh}}
.a2-img{position:relative;overflow:hidden;background:var(--brand-light)}
.a2-img img{width:100%;height:100%;object-fit:cover}
.a2-img .badge{position:absolute;top:32px;left:32px;background:rgba(255,255,255,.92);padding:14px 18px;font-family:var(--font-en);letter-spacing: 0.01em;font-size:13px;}
.tab{padding:14px 0;font-family:var(--font-en);font-size:15px;letter-spacing: 0.01em;cursor:pointer;border-bottom:2px solid transparent;color:var(--brand-muted);transition:all .25s;background:none;border-left:none;border-right:none;border-top:none}
.tab.is-on{color:var(--brand-ink);border-bottom-color:var(--brand-accent)}
.tab-panel{display:none}
.tab-panel.is-on{display:block}
/* === cart (from <style> block) === */

.c2-row{display:grid;grid-template-columns:80px 1fr 100px 110px 24px;gap:24px;align-items:center;padding:20px 0;border-bottom:1px solid var(--brand-line)}
.c2-row img{width:80px;aspect-ratio:3/4;object-fit:cover}
/* 手機：重排成 4 區，圖左、文右、操作（數量＋移除）下方左、價格下方右 */
@media(max-width:640px){
  .c2-row{
    grid-template-columns:72px 1fr;
    grid-template-areas:
      "img title"
      "img meta"
      "ops price";
    gap:6px 14px;
    padding:18px 0;
    align-items:start;
  }
  .c2-row > img{grid-area:img;width:72px}
  .c2-row > .title{grid-area:title}
  .c2-row > .meta{grid-area:meta}
  .c2-row > .qty{grid-area:ops;justify-self:start}
  .c2-row > .price{grid-area:price;justify-self:end;align-self:center}
  .c2-row > .remove{position:absolute;display:none}
}
/* === checkout (from <style> block) === */

.step{border:1px solid var(--brand-line); margin-bottom:16px; transition:border-color .3s}
.step.active{border-color:var(--brand-ink)}
.step__head{display:flex; align-items:center; gap:18px; padding:20px 24px; cursor:pointer; flex-wrap:wrap}
.step__num{width:32px; height:32px; border-radius:999px; background:var(--brand-light); color:var(--brand-ink); display:inline-flex; align-items:center; justify-content:center; font-family:var(--font-en); font-size:16px; flex-shrink:0}
.step.active .step__num{background:var(--brand-accent); color:#fff}
.step.done .step__num{background:var(--brand-ink); color:#fff}
.step__body{padding:0 24px 24px; display:none}
.step.active .step__body{display:block}
.step__summary{margin-left:auto; font-size:15px; color:var(--brand-muted); display:none; min-width:0; overflow:hidden; text-overflow:ellipsis}
.step.done .step__summary{display:block}
.step.done .step__edit{margin-left:8px;font-size:13px;letter-spacing: 0.01em;color:var(--brand-hover);text-decoration:underline;background:none;border:none;cursor:pointer;padding:0;font-family:var(--font-en);display:inline}
.step:not(.done) .step__edit{display:none}
@media(max-width:480px){
  .step__head{gap:12px;padding:16px 18px}
  .step__body{padding:0 18px 18px}
  .step__summary{flex-basis:100%;margin-left:44px}
}
/* === contact (from <style> block) === */
.c-card{background:#fff;border:1px solid var(--brand-line);padding:36px 32px;transition:all .3s var(--ease-smooth);display:block}
.c-card:hover{border-color:var(--brand-accent);transform:translateY(-2px);box-shadow:0 8px 24px -12px rgba(172, 135, 197, 0.25)}
.c-card .ic{width:44px;height:44px;border-radius:999px;background:var(--brand-light);display:inline-flex;align-items:center;justify-content:center;color:var(--brand-accent);margin-bottom:18px}
/* === index (from <style> block) === */

  /* v2 overrides — full-bleed quiet grid, no carousel */
  .v2-hero { padding-top: clamp(48px, 6vw, 88px); padding-bottom: clamp(40px, 5vw, 80px); }
  .v2-marquee { font-family: var(--font-en); font-size: clamp(72px, 14vw, 220px); line-height: 0.95; font-weight: 300; letter-spacing: -0.02em; }
  .v2-tile { aspect-ratio: 4/5; overflow: hidden; }
  .v2-tile img { width:100%; height:100%; object-fit:cover; transition: transform .9s var(--ease-smooth); }
  .v2-tile:hover img { transform: scale(1.05); }
  .v2-cat { display:flex; align-items:center; gap:14px; padding:14px 0; border-top:1px solid var(--brand-line); }
  .v2-cat:last-child { border-bottom:1px solid var(--brand-line); }
  .v2-cat .num { font-family: var(--font-en); font-size:13px; letter-spacing: 0.01em; color:var(--brand-muted); width:40px; flex-shrink:0; }
  .v2-cat__name { font-size: clamp(22px, 2.4vw, 32px); font-weight: 300; flex: 1; }
  .v2-cat__count { color: var(--brand-muted); font-family: var(--font-en); font-size:15px; white-space: nowrap; }
  .v2-hero__img { aspect-ratio: 21/9; }
  @media (max-width: 768px) {
    .v2-hero__img { aspect-ratio: 4/5; }
  }
  @media (max-width: 768px) {
    .v2-cat { flex-wrap: wrap; padding: 16px 0; gap: 8px 14px; }
    .v2-cat .num { width: auto; }
    .v2-cat__name { flex-basis: calc(100% - 60px); font-size: clamp(18px, 5.4vw, 24px); }
    .v2-cat__count { flex-basis: 100%; margin-left: 54px; font-size:14px; }
  }
/* === privacy (from <style> block) === */
.toc{position:sticky;top:calc(var(--navbar-h) + 30px);align-self:start}
.toc a{display:block;padding:8px 0;font-size:15px;color:var(--brand-muted);transition:all .25s;border-left:2px solid transparent;padding-left:14px;margin-left:-2px}
.toc a:hover{color:var(--brand-ink)}
.toc a.is-on{color:var(--brand-ink);border-left-color:var(--brand-accent)}
.section-block{padding:48px 0;border-bottom:1px solid var(--brand-line)}
.section-block:last-child{border-bottom:none}
.section-block h2{font-family:var(--font-en);font-size:clamp(28px,3vw,40px);font-weight:300;letter-spacing:-.01em;margin-bottom:8px;color:var(--brand-accent)}
.section-block h3{font-size:26px;font-weight:400;margin-bottom:18px}
.section-block p,.section-block li{line-height:1.95;color:var(--brand-muted)}
.section-block ul{list-style:disc;padding-left:20px;margin-top:8px}
/* === product-list (from <style> block) === */

.pl2-row{display:grid;grid-template-columns:repeat(2,1fr);gap:clamp(20px,3vw,48px) clamp(16px,2vw,32px)}
@media(max-width:640px){.pl2-row{grid-template-columns:1fr}}
.pl2-card .media{aspect-ratio:4/5;overflow:hidden;background:var(--brand-bg-alt);margin-bottom:14px}
.pl2-card .media img{width:100%;height:100%;object-fit:cover;transition:transform .9s var(--ease-smooth)}
.pl2-card:hover .media img{transform:scale(1.05)}

.pl2-side{position:sticky;top:calc(var(--navbar-h) + 30px);align-self:start}

/* 分組（挑水晶能量 / 挑水晶色系 / 商品排序）*/
.pl2-group{border-bottom:1px solid var(--brand-line)}
.pl2-group summary{
  display:flex;justify-content:space-between;align-items:center;
  padding:18px 4px;cursor:pointer;list-style:none;
  font-size:17px;font-weight:500;letter-spacing:.04em;color:var(--brand-ink);
}
.pl2-group summary::-webkit-details-marker{display:none}
.pl2-group__arrow{
  font-size:18px;color:var(--brand-muted);
  transition:transform .3s;transform:rotate(90deg);
}
.pl2-group[open] .pl2-group__arrow{transform:rotate(-90deg)}
.pl2-group > .pl2-filter{padding:0 4px 18px}

.pl2-filter button{
  display:block;width:100%;text-align:left;
  padding:9px 0;font-size:15px;color:var(--brand-muted);
  transition:color .25s,padding .25s;
  background:none;border:none;cursor:pointer;font-family:inherit;
}
.pl2-filter button:hover,.pl2-filter button.is-active{color:var(--brand-ink);padding-left:10px}
.pl2-filter button.is-active::before{content:"—— ";color:var(--brand-accent)}

/* 手機：分組間距微調 */
@media(max-width:768px){
  .pl2-side{position:static;margin-bottom:32px}
  .pl2-group summary{font-size:16px;padding:16px 4px}
}
/* === product (from <style> block) === */

.p2-buy{position:fixed;left:0;right:0;bottom:0;z-index:40;background:rgba(255,255,255,.92);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);border-top:1px solid var(--brand-line);transform:translateY(100%);transition:transform .5s var(--ease-smooth)}
.p2-buy.show{transform:translateY(0)}
.p2-buy .inner{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:14px var(--gutter);max-width:var(--container-max);margin:0 auto}
/* 手機：sticky 簡化 */
@media(max-width:640px){
  .p2-buy .inner{gap:12px;padding:10px 16px}
  .p2-buy .inner img{width:40px !important;height:48px !important}
  .p2-buy .inner .meta-text{font-size:15px}
  .p2-buy .inner .price-line{display:none}
  .p2-buy .inner .btn{padding:10px 16px;font-size:15px;flex-shrink:0}
}
/* 在 sticky bar 顯示時，給 main 與 footer 多空 footer 區域避免內容被擋 */
body.has-sticky-buy{padding-bottom:80px}

/* === about (from style="" attrs) === */
.s-about-1 { padding-bottom:80px; }
.s-about-2 { font-family:var(--font-heading); font-size:clamp(48px,7.5vw,108px); line-height:1.1; letter-spacing:.01em; margin:14px 0; font-weight: 400; }
.s-about-3 { max-width:54ch; margin:32px auto 0; font-size:20px; }
.s-about-4 { padding:120px 0; }
.s-about-5 { font-family:var(--font-en); font-size:clamp(28px,4vw,48px); margin-top:18px; }
/* === account (from style="" attrs) === */
.s-account-1 { padding:clamp(40px,6vw,80px) clamp(28px,5vw,80px); display:flex; flex-direction:column; justify-content:center; }
.s-account-2 { font-family:var(--font-en); font-size:clamp(40px,5.4vw,64px); line-height:1.05; letter-spacing:-.01em; margin:8px 0 32px; }
/* === cart (from style="" attrs) === */
.s-cart-1 { font-family:var(--font-en); font-size:clamp(40px,6vw,80px); letter-spacing:-.01em; }
.s-cart-2 { margin-bottom:4px; }
.s-cart-3 { font-size:16px; }
.s-cart-4 { font-size:34px; }
/* === checkout (from style="" attrs) === */
.s-checkout-1 { font-family:var(--font-en); font-size:clamp(40px,5.4vw,64px); letter-spacing:-.01em; margin-top:8px; }
.s-checkout-2 { display:block; font-size:14px; margin-top:2px; }
.s-checkout-3 { list-style:none; }
/* === contact (from style="" attrs) === */
.s-contact-1 { padding-bottom:60px; }
.s-contact-2 { font-family:var(--font-en); font-size:clamp(48px,8vw,120px); line-height:.95; letter-spacing:-.02em; margin:12px 0; }
.s-contact-3 { max-width:48ch; margin:24px auto 0; }
.s-contact-4 { line-height:1.8; }
.s-contact-5 { font-size:clamp(28px,3.4vw,40px); }
/* === index (from style="" attrs) === */
.s-index-1 { margin-bottom:24px; }
.s-index-2 { font-size:clamp(28px,3.6vw,44px); margin:12px 0 16px; letter-spacing:0.04em; }
.s-index-3 { margin-bottom:28px; }
/* === privacy (from style="" attrs) === */
.s-privacy-1 { padding-bottom:60px; }
.s-privacy-2 { font-family:var(--font-heading); font-size:clamp(40px,6vw,80px); line-height:1.1; letter-spacing:.01em; margin:14px 0; font-weight: 400; }
.s-privacy-3 { max-width:60ch; margin-top:20px; }
/* === product-list (from style="" attrs) === */
.s-product-list-1 { padding-bottom:60px; }
.s-product-list-2 { font-family:var(--font-en); font-size:clamp(56px,9vw,140px); line-height:.95; letter-spacing:-.02em; margin:8px 0; }
.s-product-list-3 { max-width:48ch; margin:24px auto 0; }
.s-product-list-4 { margin:6px 0; }
.s-product-list-5 { text-decoration:line-through; margin-left:8px; }
/* === product (from style="" attrs) === */
.s-product-1 { padding-top:var(--navbar-h); }
.s-product-2 { position:relative; height:88vh; min-height:500px; max-height:1000px; overflow:hidden; }
.s-product-3 { background:linear-gradient(180deg, rgba(0,0,0,0) 50%, rgba(0,0,0,.35) 100%); }
.s-product-4 { bottom:48px; left:var(--gutter); right:var(--gutter); max-width:560px; }
.s-product-5 { font-size:clamp(36px,5vw,72px); letter-spacing:.04em; margin:14px 0; }
.s-product-6 { font-size:clamp(20px,2.4vw,32px); letter-spacing:.02em; margin-top:18px; }
.s-product-7 { font-size:34px; margin-bottom:24px; }
.s-product-8 { margin-bottom:16px; }
.s-product-9 { background:#C9A57B; }
.s-product-10 { background:#EFE7D9; }
.s-product-11 { background:#1A1A1A; }
.s-product-12 { line-height:1.9; }
.s-product-13 { font-size:16px; }
/* footer brand link spacing fix */
.footer__brand-link { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 18px; }
/* footer tagline (取代 partials 內被移除的 inline) */
.footer__tagline {
  margin-top: 14px;
  max-width: 32ch;
  line-height: 1.95;
  color: var(--brand-muted);
  font-size: 16px;
}


/* ==========================================================================
   NAVBAR · 首頁 hero 白字模式 / 其他頁白底黑字
   ========================================================================== */
body[data-screen-label="01 Home"] .navbar:not(.is-scrolled) {
  color: #fff;
}
body[data-screen-label="01 Home"] .navbar:not(.is-scrolled) .navbar__menu a,
body[data-screen-label="01 Home"] .navbar:not(.is-scrolled) .navbar__icons button,
body[data-screen-label="01 Home"] .navbar:not(.is-scrolled) .navbar__logo span {
  color: #fff;
  text-shadow: 0 1px 8px rgba(0,0,0,.25);
}
body[data-screen-label="01 Home"] .navbar:not(.is-scrolled) .navbar__logo svg {
  fill: #fff;
}
body:not([data-screen-label="01 Home"]) .navbar {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom-color: var(--brand-line);
}

/* 手機抽屜內：永遠白底黑字、hover 粉色 */
.navbar__drawer,
.navbar__drawer a,
body[data-screen-label="01 Home"] .navbar:not(.is-scrolled) .navbar__drawer,
body[data-screen-label="01 Home"] .navbar:not(.is-scrolled) .navbar__drawer a {
  color: var(--brand-ink);
  text-shadow: none;
}
.navbar__drawer a:hover,
body[data-screen-label="01 Home"] .navbar:not(.is-scrolled) .navbar__drawer a:hover {
  color: var(--brand-hover);
}

/* Hero 內文加陰影增可讀性 */
.hero__content {
  text-shadow: 0 2px 12px rgba(0,0,0,.35);
}
.hero__slide::after {
  background: linear-gradient(180deg, rgba(0,0,0,0.45) 0%, rgba(0,0,0,0.15) 18%, rgba(0,0,0,0) 35%, rgba(0,0,0,0) 60%, rgba(0,0,0,0.35) 100%);
}

/* ==========================================================================
   SEARCH OVERLAY
   ========================================================================== */
.search-overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(255,255,255,0.98);
  backdrop-filter: saturate(160%) blur(20px);
  -webkit-backdrop-filter: saturate(160%) blur(20px);
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 18vh 24px 24px;
  opacity: 0;
  transition: opacity var(--dur-base) var(--ease-soft);
}
.search-overlay.is-open { display: flex; opacity: 1; }
.search-overlay__close {
  position: absolute;
  top: 28px; right: 28px;
  width: 44px; height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--brand-ink);
  border-radius: 999px;
  transition: background var(--dur-fast) var(--ease-soft);
}
.search-overlay__close:hover { background: var(--brand-light); color: var(--brand-hover); }
.search-overlay__form {
  width: 100%;
  max-width: 720px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.search-overlay__label {
  font-family: var(--font-en);
  font-size: 13px;
  letter-spacing: 0.01em;
  color: var(--brand-muted);
}
.search-overlay__input {
  width: 100%;
  padding: 14px 0;
  border: none;
  border-bottom: 1px solid var(--brand-line);
  font-size: clamp(22px, 3vw, 32px);
  font-family: var(--font-heading);
  font-weight: 300;
  color: var(--brand-ink);
  background: transparent;
  outline: none;
  transition: border-color var(--dur-fast) var(--ease-soft);
}
.search-overlay__input:focus { border-bottom-color: var(--brand-accent); }
.search-overlay__input::placeholder { color: var(--brand-muted); font-weight: 300; }
.search-overlay__hint {
  font-size: 14px;
  color: var(--brand-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 8px;
}
.search-overlay__hint a {
  color: var(--brand-ink);
  padding: 4px 10px;
  border: 1px solid var(--brand-line);
  border-radius: 999px;
  font-size: 13px;
  transition: border-color var(--dur-fast) var(--ease-soft), color var(--dur-fast) var(--ease-soft);
}
.search-overlay__hint a:hover { border-color: var(--brand-accent); color: var(--brand-hover); }
.search-overlay__actions {        /* 送出列：靠右對齊，與輸入框留出間距 */
  display: flex;
  justify-content: flex-end;
  margin-top: 4px;
}
.search-overlay__submit {         /* 搜尋送出鈕：沿用品牌主色膠囊按鈕風格，避免顯示瀏覽器預設樣式而跑版 */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 26px;
  border-radius: 999px;
  background: var(--brand-accent);
  border: 1px solid var(--brand-accent);
  color: #fff;
  font-size: 15px;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: all .25s var(--ease-soft);
}
.search-overlay__submit:hover {
  background: var(--brand-hover);
  border-color: var(--brand-hover);
  transform: translateY(-2px);
}

body.is-search-open { overflow: hidden; }
body.is-drawer-open { overflow: hidden; }

@media (max-width: 768px) {
  .search-overlay { padding: 14vh 18px 18px; }
  .search-overlay__close { top: 16px; right: 16px; }
}


/* ==========================================================================
   ACCOUNT DASHBOARD COMMON
   ========================================================================== */
.dash-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 24px;
  padding-bottom: 32px;
  margin-bottom: 40px;
  border-bottom: 1px solid var(--brand-line);
}
.dash-username { color: var(--brand-accent); font-style: italic; font-family: var(--font-en); }
.dash-tier { color: var(--brand-accent); font-weight: 500; }


/* ==========================================================================
   PAGINATION（分頁元件）
   ========================================================================== */
.pagination {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  margin-top: 80px;
  padding-top: 40px;
  border-top: 1px solid var(--brand-line);
}
.pagination .pg-meta {
  font-family: var(--font-en);
  font-size: 13px;
  letter-spacing: 0.01em;
  color: var(--brand-muted);
}
.pagination .pg-list {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: center;
}
.pagination .pg-num,
.pagination .pg-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 6px;
  font-family: var(--font-en);
  font-size: 15px;
  letter-spacing: 0.05em;
  color: var(--brand-ink);
  border: 1px solid var(--brand-line);
  background: #fff;
  transition: all 0.25s ease;
  border-radius: 4px;
  text-decoration: none;
}
.pagination .pg-num:hover,
.pagination .pg-arrow:hover {
  border-color: var(--brand-accent);
  color: var(--brand-accent);
}
.pagination .pg-num.is-current {
  background: var(--brand-accent);
  border-color: var(--brand-accent);
  color: #fff;
  font-weight: 600;
}
.pagination .pg-arrow.is-disabled {
  opacity: 0.35;
  pointer-events: none;
  cursor: not-allowed;
}
.pagination .pg-ellipsis {
  padding: 0 6px;
  color: var(--brand-muted);
  font-family: var(--font-en);
  user-select: none;
}

@media (max-width: 640px) {
  .pagination .pg-num,
  .pagination .pg-arrow {
    min-width: 36px;
    height: 36px;
    font-size: 14px;
  }
}


/* ==========================================================================
   繫晶 Xijing 客製化樣式
   ========================================================================== */

/* Navbar logo 圖片 */
.navbar__logo {
  display: flex !important;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--brand-ink);
}
.navbar__logo-img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  border-radius: 50%;
}
.brand-name {
  font-family: var(--font-en);
  font-size: 28px;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--brand-ink);
  white-space: nowrap;
}
.brand-name em {
  font-style: italic;
  color: var(--brand-accent);
  font-weight: 500;
}

/* RWD：手機 navbar logo 縮一點 */
@media (max-width: 768px) {
  .navbar__logo-img { width: 32px; height: 32px; }
  .brand-name { font-size: 24px; }
}
@media (max-width: 480px) {
  .navbar__logo-img { width: 28px; height: 28px; }
  .brand-name { font-size: 20px; }
}

/* 確保 navbar menu 在小螢幕能正常顯示，不要折行 */
.navbar__menu a {
  white-space: nowrap;
}

/* 修：about hero h1 字級在手機過大造成跑版 */
@media (max-width: 768px) {
  .s-about-2 {
    font-size: clamp(36px, 8vw, 56px) !important;
    line-height: 1.15 !important;
  }
}

/* 修：v2-marquee 在手機過大 */
@media (max-width: 768px) {
  .v2-marquee {
    font-size: clamp(40px, 10vw, 64px) !important;
    line-height: 1.05 !important;
  }
}

/* 麵包屑統一樣式（如果某些頁面 inline override 了，這個確保基礎一致）*/
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  font-size: 14px;
  color: var(--brand-muted);
  letter-spacing: 0.04em;
}
.breadcrumb a {
  color: var(--brand-muted);
  transition: color .25s;
}
.breadcrumb a:hover {
  color: var(--brand-accent);
}
.breadcrumb .sep {
  width: 20px;
  height: 1px;
  background: var(--brand-line);
  margin: 0 12px;
  display: inline-block;
}

/* 商品列表 filter / banner 區塊 — 確保是水晶相關 */
.product-list__intro h1 em,
.section-title em {
  font-family: var(--font-en);
  font-style: italic;
  color: var(--brand-accent);
}

/* Hero 區塊用淺粉作背景點綴（讓視覺溫柔）*/
.v2-hero {
  background: linear-gradient(180deg, rgba(117, 106, 182, 0.04) 0%, transparent 50%);
}


/* ==========================================================================
   繫晶 Xijing 強化 RWD：navbar 不折行
   ========================================================================== */
.navbar__menu a {
  white-space: nowrap;
}

/* 中等螢幕（1024-1100）navbar gap 縮小 */
@media (max-width: 1100px) {
  .navbar__menu { gap: 24px; font-size: 16px; }
}

/* 1024px 以下直接隱藏 menu 用 drawer，避免折行 */
@media (max-width: 1024px) {
  .navbar__menu { display: none !important; }
  .navbar__toggle { display: inline-flex !important; }
}

/* 平板/手機 navbar logo 縮小 */
@media (max-width: 768px) {
  .navbar__inner { padding-left: 0; padding-right: 0; }
  .navbar__logo-img { width: 32px; height: 32px; }
  .brand-name { font-size: 24px; }
}
@media (max-width: 480px) {
  .navbar__logo-img { width: 28px; height: 28px; }
  .brand-name { font-size: 20px; }
    /* 極小螢幕只顯示中文 */
}

/* 手機 hero 字級縮小避免溢出 */
@media (max-width: 640px) {
  .v2-marquee {
    font-size: clamp(36px, 12vw, 56px) !important;
    line-height: 1.05 !important;
  }
  .s-about-2 {
    font-size: clamp(32px, 9vw, 48px) !important;
    line-height: 1.15 !important;
  }
  .v2-hero__img { aspect-ratio: 4 / 5 !important; }
  
  /* 善的循環卡片內 padding */
  .container .py-16.px-8 { padding: 32px 20px !important; }
}

/* 整體防止水平溢出 */
html, body { overflow-x: hidden; }
.container { max-width: 100%; }

/* CTA 按鈕在手機改為全寬 */
@media (max-width: 480px) {
  .btn { padding: 14px 24px; font-size: 14px; }
  .flex.flex-wrap.gap-3.justify-center .btn { flex: 1 1 100%; min-width: 0; }
}


/* ==========================================================================
   Navbar Dropdown 子選單
   ========================================================================== */

/* Logo 圖片放大（已無中文） */
.navbar__logo-img {
  width: 56px !important;
  height: 56px !important;
  object-fit: contain;
  border-radius: 50%;
  background: #FFFFFF;
}

/* 子選單父項 */
.has-submenu {
  position: relative;
}

/* 下拉箭頭 */
.submenu-arrow {
  display: inline-block;
  font-size: 10px;
  margin-left: 4px;
  vertical-align: middle;
  transition: transform .25s var(--ease-soft);
  opacity: 0.6;
}
.has-submenu:hover .submenu-arrow {
  transform: rotate(180deg);
  opacity: 1;
}

/* 子選單 dropdown */
.submenu {
  position: absolute;
  top: calc(100% + 8px);
  left: -16px;
  min-width: 180px;
  background: #FFFFFF;
  border: 1px solid var(--brand-line);
  border-radius: 6px;
  padding: 8px 0;
  box-shadow: 0 12px 32px -8px rgba(58, 53, 64, 0.12);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity .25s var(--ease-soft), transform .25s var(--ease-soft), visibility .25s;
  z-index: 100;
  list-style: none;
  margin: 0;
}
.has-submenu:hover .submenu,
.has-submenu:focus-within .submenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.submenu li {
  list-style: none;
}
.submenu a {
  display: block;
  padding: 10px 20px;
  font-size: 15px;
  color: var(--brand-ink);
  white-space: nowrap;
  transition: background .2s, color .2s, padding .2s;
}
.submenu a::after {
  display: none !important;  /* 取消 menu 下劃線動畫 */
}
.submenu a:hover {
  background: var(--brand-light);
  color: var(--brand-accent);
  padding-left: 24px;
}

/* 連接區域：避免從 a 移到 submenu 中間消失 */
.has-submenu::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 12px;
  pointer-events: auto;
}

/* 手機版（≤1024px）已用 drawer，這裡不顯示 dropdown */
@media (max-width: 1024px) {
  .submenu { display: none; }
  .submenu-arrow { display: none; }
}

/* 手機 logo 大小 */
@media (max-width: 768px) {
  .navbar__logo-img { width: 44px !important; height: 44px !important; }
}
@media (max-width: 480px) {
  .navbar__logo-img { width: 38px !important; height: 38px !important; }
}


/* Drawer 子選單 */
.drawer-group {
  border-bottom: 1px solid var(--brand-line);
}
.drawer-group summary {
  list-style: none;
  cursor: pointer;
  padding: 14px 0;
  font-size: 24px;       /* 跟普通連結一致 */
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--brand-ink);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.drawer-group summary::-webkit-details-marker { display: none; }
.drawer-group .drawer-arrow {
  font-size: 16px;        /* 箭頭也放大 */
  transition: transform .3s;
  color: var(--brand-muted);
}
/* 箭頭僅在展開且非收合動畫進行中時翻轉，收合一開始（加上 is-closing）就同步轉回 */
.drawer-group[open]:not(.is-closing) .drawer-arrow {
  transform: rotate(180deg);
}
/* 子項目容器：overflow:hidden 讓 JS 量測高度做展開／收合動畫時不會溢出 */
.drawer-group__content {
  overflow: hidden;
}
.drawer-group a {
  padding: 10px 0 10px 20px !important;
  font-size: 18px !important;   /* 子選單比主選單小一階但仍大 */
  font-weight: 400 !important;
  color: var(--brand-muted) !important;
  border-bottom: none !important;
  display: block !important;
}
.drawer-group a:hover {
  color: var(--brand-accent) !important;
}

/* 普通 drawer a（沒在 drawer-group 內）字級也確認 */
.navbar__drawer > a {
  font-size: 24px !important;
  font-weight: 400 !important;
  padding: 14px 0 !important;
}


/* ==========================================================================
   繫晶按鈕修正：hover 行為一致
   ========================================================================== */
.btn-primary {
  background: var(--brand-accent);
  color: #fff;
  border: 1px solid var(--brand-accent);
  transition: all .25s var(--ease-soft);
}
.btn-primary:hover {
  background: var(--brand-hover);
  border-color: var(--brand-hover);
  color: #fff;
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  border: 1px solid var(--brand-accent);
  color: var(--brand-accent);
  transition: all .25s var(--ease-soft);
}
.btn-ghost:hover {
  background: var(--brand-accent);
  border-color: var(--brand-accent);
  color: #fff;
  transform: translateY(-2px);
}


/* ==========================================================================
   品牌漸層文字（用於 hero Xijing.）
   ========================================================================== */
.brand-gradient {
  font-style: italic;
  background: linear-gradient(120deg, #7B6FCC 0%, #AC87C5 30%, #CDC1FF 60%, #E5D9F2 85%, #F5EFFF 100%);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  /* 漸層動畫（緩慢游移） */
  background-size: 200% 200%;
  animation: brandGradientShift 12s ease-in-out infinite;
}
@keyframes brandGradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
/* 尊重 reduce-motion */
@media (prefers-reduced-motion: reduce) {
  .brand-gradient { animation: none; background-position: 0% 50%; }
}


/* ==========================================================================
   會員專區訂單卡（新版：顯示每件商品圖+名+數量+小計）
   ========================================================================== */
.xj-order {
  border: 1px solid var(--brand-line);
  border-radius: 6px;
  margin-bottom: 20px;
  background: #fff;
  overflow: hidden;
  transition: border-color .25s, box-shadow .25s;
}
.xj-order:hover {
  border-color: var(--brand-soft);
  box-shadow: 0 8px 24px -12px rgba(117, 106, 182, 0.18);
}
.xj-order__head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 16px 22px;
  background: var(--brand-bg-tint);
  border-bottom: 1px solid var(--brand-line);
}
.xj-order__meta {
  display: flex;
  align-items: center;
  gap: 12px;
}
.xj-order__id {
  font-family: var(--font-en);
  font-size: 13px;
  letter-spacing: 0.01em;
  color: var(--brand-muted);
  font-weight: 500;
}
.xj-order__date {
  font-size: 14px;
  color: var(--brand-muted);
}

/* 商品列表 */
.xj-order__items {
  list-style: none;
  padding: 0;
  margin: 0;
}
.xj-order__item {
  display: grid;
  grid-template-columns: 72px 1fr auto auto;
  gap: 16px;
  align-items: center;
  padding: 16px 22px;
  border-bottom: 1px solid var(--brand-line);
}
.xj-order__item:last-child {
  border-bottom: none;
}
.xj-order__thumb {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 4px;
  background: var(--brand-bg-tint);
}
.xj-order__info {
  min-width: 0;
}
.xj-order__name {
  font-size: 16px;
  font-weight: 500;
  color: var(--brand-ink);
  margin-bottom: 4px;
  line-height: 1.4;
}
.xj-order__attr {
  font-size: 13px;
  color: var(--brand-muted);
}
.xj-order__qty {
  font-size: 15px;
  color: var(--brand-muted);
  white-space: nowrap;
}
.xj-order__price {
  font-size: 16px;
  font-weight: 500;
  color: var(--brand-ink);
  white-space: nowrap;
}

/* footer */
.xj-order__foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 14px 22px;
  background: var(--brand-bg-tint);
}
.xj-order__count {
  font-size: 14px;
  color: var(--brand-muted);
}
.xj-order__total {
  font-size: 16px;
  font-weight: 600;
  color: var(--brand-ink);
  flex: 1;
  text-align: center;
}
.xj-order__actions {
  display: flex;
  gap: 16px;
}
.xj-order__link {
  font-size: 13px;
  color: var(--brand-accent);
  letter-spacing: 0.04em;
  transition: color .2s;
}
.xj-order__link:hover {
  color: var(--brand-hover);
}

/* RWD */
@media (max-width: 640px) {
  .xj-order__head,
  .xj-order__item,
  .xj-order__foot {
    padding: 14px 16px;
  }
  .xj-order__item {
    grid-template-columns: 60px 1fr auto;
    grid-template-areas:
      "thumb info price"
      "thumb info qty";
    gap: 12px;
    row-gap: 2px;
  }
  .xj-order__thumb { grid-area: thumb; width: 60px; height: 60px; }
  .xj-order__info { grid-area: info; }
  .xj-order__qty { grid-area: qty; justify-self: end; font-size: 14px; }
  .xj-order__price { grid-area: price; justify-self: end; font-size: 15px; }
  .xj-order__name { font-size: 15px; }
  .xj-order__attr { font-size: 12px; }
  .xj-order__total { text-align: right; flex: 1 1 100%; order: 3; }
  .xj-order__count { font-size: 13px; }
}

/* status badges (沿用) */
.xj-order__head .status {
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
}
.status.shipped {
  background: #E8F0FA;
  color: #4A6FA5;
}
.status.delivered {
  background: #E8F5E9;
  color: #2E7D32;
}
.status.processing {
  background: var(--brand-bg-tint);
  color: var(--brand-accent);
}


/* ==========================================================================
   數量選擇器（商品頁）
   ========================================================================== */
.qty-selector {
  display: flex;
  align-items: center;
  gap: 16px;
}
.qty-selector__label {
  font-size: 15px;
  font-weight: 500;
  color: var(--brand-ink);
  min-width: 40px;
}
.qty-selector__control {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--brand-line);
  border-radius: 4px;
  overflow: hidden;
}
.qty-selector__btn {
  width: 40px;
  height: 44px;
  background: transparent;
  border: none;
  color: var(--brand-ink);
  font-size: 18px;
  cursor: pointer;
  transition: background .2s, color .2s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.qty-selector__btn:hover {
  background: var(--brand-bg-tint);
  color: var(--brand-accent);
}
.qty-selector__btn:active {
  background: var(--brand-mist);
}
.qty-selector__input {
  width: 56px;
  height: 44px;
  text-align: center;
  border: none;
  border-left: 1px solid var(--brand-line);
  border-right: 1px solid var(--brand-line);
  font-size: 16px;
  font-family: var(--font-en);
  font-weight: 500;
  color: var(--brand-ink);
  background: transparent;
  /* 隱藏 Chrome / Safari 上下箭頭 */
  -moz-appearance: textfield;
}
.qty-selector__input::-webkit-outer-spin-button,
.qty-selector__input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.qty-selector__input:focus {
  outline: none;
  background: var(--brand-bg-tint);
}


/* ==========================================================================
   手寫字體樣式 override
   因為英文走 Dancing Script 連筆字，原本的 uppercase 跟 letter-spacing
   會破壞連筆效果，這裡統一 reset
   ========================================================================== */
.font-en,
.font-en.uppercase,
.font-en .uppercase,
[class*="tracking-"].font-en {
  text-transform: none !important;
  letter-spacing: 0.01em !important;
  font-size: 1.1em;  /* 手寫字級稍微放大才好看 */
}
/* 但純英文 logo 例外，仍可大字距 */
.navbar .navbar__brand .font-en {
  font-size: 1.5em !important;
}


/* ==========================================================================
   全站 Hover & Interaction 系統強化
   ========================================================================== */

/* ----- 通用 button hover ----- */
button:not([disabled]),
.btn,
a.btn,
[role="button"] {
  cursor: pointer;
  transition: all .25s var(--ease-soft, cubic-bezier(.22,.61,.36,1));
  -webkit-tap-highlight-color: transparent;
}

/* btn-primary 已定義，這裡補互動回饋 */
.btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px -2px rgba(172, 135, 197, 0.5);
}
.btn-ghost:active {
  transform: translateY(0);
}

/* ----- 連結 hover ----- */
a {
  transition: color .2s, opacity .2s, transform .2s;
}
/* 內文連結（不含 navbar / button）淡入下劃線 */
.prose a:not(.btn),
.content a:not(.btn) {
  position: relative;
  color: var(--brand-accent);
  text-decoration: none;
}
.prose a:not(.btn)::after,
.content a:not(.btn)::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 1px;
  background: var(--brand-accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .3s var(--ease-soft, ease);
}
.prose a:not(.btn):hover::after,
.content a:not(.btn):hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* ----- product-card hover（商品卡片）----- */
.product-card {
  display: block;
  transition: transform .3s var(--ease-soft, ease);
}
.product-card .product-card__media,
.product-card .media {
  overflow: hidden;
  position: relative;
}
.product-card .product-card__media img,
.product-card .media img {
  transition: transform .6s var(--ease-soft, cubic-bezier(.22,.61,.36,1));
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.product-card:hover .product-card__media img,
.product-card:hover .media img {
  transform: scale(1.05);
}
.product-card:hover .product-card__title {
  color: var(--brand-accent);
}
.product-card .product-card__title {
  transition: color .25s;
}

/* ----- 圖片整體淡入 hover ----- */
.v2-tile {
  overflow: hidden;
  position: relative;
}
.v2-tile img {
  transition: transform .8s var(--ease-soft, ease);
}
a:hover .v2-tile img,
.product-card:hover .v2-tile img {
  transform: scale(1.04);
}

/* ----- navbar 連結 hover（補底線動畫）----- */
.navbar__menu a {
  position: relative;
  transition: color .25s;
}
.navbar__menu a::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -4px;
  width: 0;
  height: 1px;
  background: var(--brand-accent);
  transition: width .3s var(--ease-soft, ease), left .3s var(--ease-soft, ease);
}
.navbar__menu a:hover::after,
.navbar__menu a.is-active::after {
  width: 100%;
  left: 0;
}
.navbar__menu a:hover {
  color: var(--brand-accent);
}

/* ----- 圖示按鈕 hover（search / user / cart）----- */
.navbar__icons a,
.navbar__icons button {
  transition: color .25s, transform .25s;
}
.navbar__icons a:hover,
.navbar__icons button:hover {
  color: var(--brand-accent);
  transform: translateY(-1px);
}

/* ----- 麵包屑 hover ----- */
.breadcrumb a {
  transition: color .2s;
}
.breadcrumb a:hover {
  color: var(--brand-accent);
}

/* ----- 卡片 / 區塊整體 hover ----- */
.xj-order:hover {
  border-color: var(--brand-soft);
  box-shadow: 0 8px 24px -12px rgba(172, 135, 197, 0.2);
}

/* ----- 表單欄位 hover/focus ----- */
.form-field input,
.form-field textarea,
.form-field select,
input[type="text"],
input[type="email"],
input[type="password"],
input[type="search"],
input[type="tel"],
input[type="number"],
textarea,
select {
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.form-field input:hover:not(:focus),
.form-field textarea:hover:not(:focus),
input:hover:not(:focus),
textarea:hover:not(:focus) {
  border-color: var(--brand-soft);
}
.form-field input:focus,
.form-field textarea:focus,
input:focus,
textarea:focus {
  outline: none;
  border-color: var(--brand-accent);
  box-shadow: 0 0 0 3px rgba(172, 135, 197, 0.15);
  background: #fff;
}

/* ----- tab 切換 hover ----- */
.tab {
  cursor: pointer;
  transition: color .2s, border-color .2s;
}
.tab:hover:not(.is-on) {
  color: var(--brand-accent);
}

/* ----- 數量選擇器 hover 強化 ----- */
.qty-selector__btn {
  transition: background .2s, color .2s, transform .15s;
}
.qty-selector__btn:active {
  transform: scale(0.95);
}

/* ----- FAQ accordion hover ----- */
.faq-item summary,
.faq-q,
details summary {
  cursor: pointer;
  transition: color .2s;
  list-style: none;
}
details summary::-webkit-details-marker { display: none; }
.faq-item summary:hover,
.faq-q:hover {
  color: var(--brand-accent);
}

/* ----- 商品分類側邊 hover ----- */
.pl2-cat a,
[data-cat-link] {
  transition: color .2s, padding-left .25s;
}
.pl2-cat a:hover,
[data-cat-link]:hover {
  color: var(--brand-accent);
  padding-left: 4px;
}

/* ----- footer 連結 hover ----- */
footer a {
  transition: color .2s;
}
footer a:hover {
  color: var(--brand-accent);
}

/* ----- 觸控裝置移除 hover transform（避免黏住）----- */
@media (hover: none) {
  .product-card:hover .product-card__media img,
  .product-card:hover .media img,
  .v2-tile img {
    transform: none;
  }
  .btn-primary:hover,
  .btn-ghost:hover {
    transform: none;
  }
}

/* ==========================================================================
   首頁 Scroll Reveal 動畫
   data-reveal 元素隨滾動淡入向上
   ========================================================================== */
[data-reveal] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .9s var(--ease-soft, cubic-bezier(.22,.61,.36,1)),
              transform .9s var(--ease-soft, cubic-bezier(.22,.61,.36,1));
  will-change: opacity, transform;
}
[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}
/* delay 變體 */
[data-reveal][data-reveal-delay="1"] { transition-delay: .12s; }
[data-reveal][data-reveal-delay="2"] { transition-delay: .24s; }
[data-reveal][data-reveal-delay="3"] { transition-delay: .36s; }
[data-reveal][data-reveal-delay="4"] { transition-delay: .48s; }

/* reduce-motion: 直接顯示 */
@media (prefers-reduced-motion: reduce) {
  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ==========================================================================
   首頁 hero 圖視差捲動效果（subtle）
   ========================================================================== */
.v2-hero__img {
  aspect-ratio: 21 / 9;
  width: 100%;
  overflow: hidden;
  will-change: transform;
}
.v2-hero__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}


/* ==========================================================================
   商品內頁 PDP (Product Detail Page) — 兩欄佈局
   左圖右資訊（sticky）+ Zoom lightbox
   ========================================================================== */

.pdp-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr);
  gap: clamp(40px, 5vw, 80px);
  align-items: flex-start;
}

/* ----- 左欄：圖片區 ----- */
.pdp-gallery {
  position: relative;
  display: block;
}
.pdp-main {
  position: relative;
  aspect-ratio: 5 / 4;
  overflow: hidden;
  background: #FAFAFA;
  border-radius: 4px;
  cursor: zoom-in;
}
.pdp-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s var(--ease-soft, ease);
}
.pdp-main:hover img {
  transform: scale(1.03);
}
.pdp-zoom-hint {
  position: absolute;
  bottom: 16px;
  right: 16px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(4px);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-ink);
  transition: background .2s, transform .2s;
}
.pdp-zoom-hint:hover {
  background: #fff;
  transform: scale(1.05);
}

/* 縮圖列 */
.pdp-thumbs {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin-top: 12px;
}
.pdp-thumb {
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 4px;
  border: 2px solid transparent;
  background: #FAFAFA;
  cursor: pointer;
  padding: 0;
  transition: border-color .2s, transform .2s;
}
.pdp-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.pdp-thumb:hover {
  border-color: var(--brand-soft);
}
.pdp-thumb.is-active {
  border-color: var(--brand-accent);
}

/* ----- 右欄：資訊區（sticky） ----- */
.pdp-info {
  position: sticky;
  top: calc(var(--navbar-h) + 24px);
  align-self: flex-start;
}
.pdp-info__inner {
  background: #fff;
}
.pdp-title {
  font-size: clamp(24px, 2.4vw, 32px);
  font-weight: 400;
  line-height: 1.3;
  color: var(--brand-ink);
  margin-top: 8px;
  margin-bottom: 16px;
}
.pdp-price {
  font-family: var(--font-en);
  font-size: clamp(22px, 2vw, 28px);
  font-weight: 500;
  color: var(--brand-accent);
  margin-bottom: 24px;
}
.pdp-desc {
  font-size: 15px;
  line-height: 1.8;
  color: var(--brand-muted);
  margin-bottom: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--brand-line);
}

/* ----- 表單 ----- */
.pdp-field {
  margin-bottom: 24px;
}
.pdp-field__label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  font-weight: 500;
  color: var(--brand-ink);
  margin-bottom: 12px;
}
.pdp-field__hint {
  font-size: 12px;
  color: var(--brand-accent);
  text-decoration: none;
  transition: color .2s;
}
.pdp-field__hint:hover {
  color: var(--brand-hover);
}

/* 尺寸選擇按鈕 */
.pdp-size-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.pdp-size {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 12px 4px;
  border: 1px solid var(--brand-line);
  border-radius: 4px;
  background: #fff;
  cursor: pointer;
  transition: all .2s var(--ease-soft, ease);
  min-height: 60px;
}
.pdp-size:hover:not(.is-active) {
  border-color: var(--brand-soft);
  background: var(--brand-bg-tint);
}
.pdp-size.is-active {
  border-color: var(--brand-accent);
  background: var(--brand-bg-tint);
  border-width: 2px;
}
.pdp-size__label {
  font-family: var(--font-en);
  font-size: 16px;
  font-weight: 600;
  color: var(--brand-ink);
}
.pdp-size__cm {
  font-size: 11px;
  color: var(--brand-muted);
  margin-top: 2px;
}

/* 加入購物車按鈕區 */
.pdp-actions {
  display: flex;
  gap: 8px;
  margin-top: 24px;
}
.pdp-btn-primary {
  flex: 1;
  padding: 14px 20px;
  font-size: 15px;
}
.pdp-btn-fav {
  width: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

/* 快速資訊 */
.pdp-features {
  list-style: none;
  padding: 24px 0 0 0;
  margin: 24px 0 0 0;
  border-top: 1px solid var(--brand-line);
}
.pdp-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  font-size: 13px;
  color: var(--brand-muted);
}
.pdp-features li svg {
  flex-shrink: 0;
  color: var(--brand-accent);
}

/* ----- 商品詳情區（下方長文） ----- */
.pdp-detail {
  margin-top: 80px;
  padding-top: 60px;
  border-top: 1px solid var(--brand-line);
}
.pdp-detail__title {
  font-size: clamp(22px, 2vw, 28px);
  font-weight: 400;
  color: var(--brand-ink);
  margin: 8px 0 20px;
}
.pdp-detail__text {
  font-size: 15px;
  line-height: 1.9;
  color: var(--brand-muted);
  margin-bottom: 16px;
}
.pdp-detail__img {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 4px;
  background: #FAFAFA;
  cursor: zoom-in;
  position: relative;
}
.pdp-detail__img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform .5s var(--ease-soft, ease);
}
.pdp-detail__img:hover img {
  transform: scale(1.04);
}

/* ==========================================================================
   RWD: 平板 / 手機改為單欄
   ========================================================================== */
@media (max-width: 1024px) {
  .pdp-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .pdp-info {
    position: static;  /* 取消 sticky */
  }
  .pdp-detail {
    margin-top: 40px;
    padding-top: 40px;
  }
}

@media (max-width: 640px) {
  .pdp-thumbs {
    grid-template-columns: repeat(5, 1fr);
    gap: 6px;
  }
  .pdp-size {
    padding: 10px 2px;
    min-height: 56px;
  }
  .pdp-size__label { font-size: 14px; }
  .pdp-size__cm { font-size: 10px; }
  .pdp-title { font-size: 22px; }
  .pdp-price { font-size: 22px; }
  .pdp-zoom-hint {
    width: 38px;
    height: 38px;
    bottom: 12px;
    right: 12px;
  }
}

/* ==========================================================================
   手機底部固定購物列
   ========================================================================== */
.pdp-mobile-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #fff;
  border-top: 1px solid var(--brand-line);
  box-shadow: 0 -4px 16px -4px rgba(0, 0, 0, 0.08);
  padding: 12px 16px;
  z-index: 90;
  transform: translateY(100%);
  transition: transform .3s var(--ease-soft, ease);
  display: none;
}
.pdp-mobile-bar.is-visible {
  transform: translateY(0);
}
.pdp-mobile-bar__inner {
  display: flex;
  align-items: center;
  gap: 12px;
}
.pdp-mobile-bar__info {
  flex: 1;
  min-width: 0;
}
.pdp-mobile-bar__price {
  font-family: var(--font-en);
  font-size: 18px;
  font-weight: 600;
  color: var(--brand-accent);
  line-height: 1.2;
}
.pdp-mobile-bar__size {
  font-size: 12px;
  color: var(--brand-muted);
  margin-top: 2px;
}
.pdp-mobile-bar__btn {
  padding: 12px 24px;
  white-space: nowrap;
}

/* 只有手機顯示 */
@media (max-width: 1024px) {
  .pdp-mobile-bar {
    display: block;
  }
  /* 預留 body 底部空間避免被擋 */
  body.has-pdp-bar {
    padding-bottom: 80px;
  }
}

/* ==========================================================================
   Zoom Lightbox
   ========================================================================== */
.pdp-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s var(--ease-soft, ease);
  z-index: 9999;
  padding: 40px 20px;
}
.pdp-lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}
.pdp-lightbox__img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 4px;
  cursor: zoom-out;
  animation: lightboxIn .4s var(--ease-soft, ease);
}
@keyframes lightboxIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}
.pdp-lightbox__close {
  position: fixed;
  top: 20px;
  right: 20px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  border: none;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s, transform .2s;
  z-index: 10000;
}
.pdp-lightbox__close:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: rotate(90deg);
}

@media (prefers-reduced-motion: reduce) {
  .pdp-lightbox__img { animation: none; }
}


/* ==========================================================================
   手機版完整 RWD 強化（< 640px 全面修正）
   ========================================================================== */

@media (max-width: 640px) {
  /* 防 body 橫向 overflow */
  html, body {
    overflow-x: hidden;
    max-width: 100vw;
  }
  
  /* container 兩側 padding 縮小，留呼吸感 */
  .container {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }
  
  /* 巨大標題（hero / about）自動縮小 */
  .v2-marquee {
    font-size: clamp(48px, 16vw, 96px) !important;
    line-height: 1.05 !important;
  }
  .s-about-2 {
    font-size: clamp(40px, 12vw, 72px) !important;
    line-height: 1.1 !important;
  }
  .section-title {
    font-size: clamp(24px, 6vw, 32px) !important;
  }
  
  /* 麵包屑字級縮小 + 間距 */
  .breadcrumb {
    font-size: 13px;
    flex-wrap: wrap;
    padding: 4px 0 2px;
    margin-bottom: 20px;
  }
  .breadcrumb .sep { width: 14px; }
  /* 商品列表 header 手機收斂 */
  .s-product-list-1 { padding-bottom: 36px; }
  .s-product-list-2 { font-size: clamp(48px, 16vw, 72px) !important; }
  .s-product-list-3 { font-size: 14px; margin-top: 16px; }
  
  /* navbar 高度與 logo */
  :root {
    --navbar-h: 64px;
  }
  .navbar {
    padding: 8px 16px !important;
  }
  .navbar__brand img {
    width: 38px !important;
    height: 38px !important;
  }
  .navbar__brand .font-en {
    font-size: 18px !important;
  }
  
  /* 桌機選單藏起來、漢堡顯示 */
  .navbar__menu {
    display: none !important;
  }
  .navbar__icons .navbar__toggle { display: inline-flex !important; }
  
  /* product-card 縮圖區與字級 */
  .product-card__title {
    font-size: 14px !important;
    line-height: 1.4;
  }
  .product-card__price {
    font-size: 13px !important;
  }
  .product-card__cat {
    font-size: 10px !important;
  }
  
  /* footer 縮排 */
  footer {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }
  footer .grid {
    gap: 32px !important;
  }
  
  /* btn 按鈕 touch-friendly size */
  .btn {
    min-height: 44px;
    padding: 12px 20px;
    font-size: 14px;
  }
  
  /* hero v2-hero 內網格在手機強制單欄 */
  .v2-hero .grid {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }
  
  /* section padding 縮小 */
  .section,
  section.container {
    padding-top: 40px;
    padding-bottom: 40px;
  }
  
  /* FAQ 標題字級 */
  .faq-q {
    font-size: 14px !important;
  }
  
  /* table responsive */
  table {
    font-size: 13px;
  }
  
  /* form input 加大 touch area */
  input, textarea, select, button {
    min-height: 44px;
    font-size: 16px !important;  /* 防 iOS Safari 自動 zoom */
  }
  
  /* 訂單卡縮減 padding */
  .xj-order__head,
  .xj-order__item,
  .xj-order__foot {
    padding: 12px 14px !important;
  }
  .xj-order__thumb {
    width: 54px !important;
    height: 54px !important;
  }
  
  /* PDP 縮圖列：手機顯示 4 欄而非 5 */
  .pdp-thumbs {
    grid-template-columns: repeat(5, 1fr) !important;
    gap: 4px !important;
  }
  
  /* PDP 尺寸卡 - 改 2 欄 */
  .pdp-size-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 6px !important;
  }
  
  /* PDP padding 縮小 */
  .pdp-info__inner {
    padding-top: 16px;
  }
  
  /* breadcrumb 在 pt-nav-80 處距離縮小 */
  .pt-nav-80 {
    padding-top: calc(var(--navbar-h) + 12px) !important;
  }
  
  /* 聯絡頁 c-card 縮 padding */
  .c-card {
    padding: 24px 20px !important;
  }
  
  /* 隱藏太大裝飾 SVG */
  .desktop-only {
    display: none !important;
  }
  
  /* 商品列表 sidebar 在手機收起或變橫向捲軸 */
  .pl2-side {
    display: none !important;  /* 或改成 sticky bar */
  }
  
  /* 數量選擇器手機加大 */
  .qty-selector__btn {
    width: 44px !important;
    height: 44px !important;
  }
  .qty-selector__input {
    width: 60px !important;
    height: 44px !important;
  }
}

/* ==========================================================================
   超小手機（< 380px）再縮一點
   ========================================================================== */
@media (max-width: 380px) {
  .container {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }
  .v2-marquee { font-size: 44px !important; }
  .s-about-2 { font-size: 36px !important; }
}

/* ==========================================================================
   滑動 scroll 體驗：手機禁用 hover transform（避免黏住）
   ========================================================================== */
@media (hover: none) and (pointer: coarse) {
  .product-card:hover .product-card__media img,
  .product-card:hover .media img,
  .v2-tile img,
  .pdp-main:hover img {
    transform: none !important;
  }
  .btn:hover,
  .c-card:hover {
    transform: none !important;
  }
}

/* ==========================================================================
   客製獨立頁 custom.html
   ========================================================================== */
.cu-hero {
  text-align: center;
  padding: clamp(48px, 7vw, 96px) 0 clamp(32px, 4vw, 56px);
}
.cu-hero__price {
  display: inline-block;
  margin-top: 18px;
  padding: 8px 22px;
  border: 1px solid var(--brand-accent);
  border-radius: 999px;
  font-family: var(--font-en);
  font-size: 15px;
  letter-spacing: .04em;
  color: var(--brand-hover);
}
.cu-lede {
  max-width: 46ch;
  margin: 24px auto 0;
  line-height: 1.95;
  color: var(--brand-muted);
}

/* 祝福主題卡 */
.cu-wish-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 14px;
  margin-top: 28px;
}
.cu-wish {
  border: 1px solid var(--brand-line);
  border-radius: 12px;
  padding: 22px 18px;
  text-align: center;
  background: #fff;
  transition: border-color .25s, transform .25s, box-shadow .25s;
}
.cu-wish:hover {
  border-color: var(--brand-accent);
  transform: translateY(-3px);
  box-shadow: 0 10px 28px -14px rgba(172,135,197,.3);
}
.cu-wish__icon { display: inline-flex; color: var(--brand-accent); transition: transform .25s; }
.cu-wish__icon svg { width: 30px; height: 30px; }
.cu-wish:hover .cu-wish__icon { transform: scale(1.1); }
.cu-wish__name { margin-top: 10px; font-size: 15px; font-weight: 500; color: var(--brand-ink); }

/* 區段標題（含左右細線） */
.cu-divider {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: clamp(40px, 6vw, 72px) 0 28px;
}
.cu-divider::before,
.cu-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--brand-line);
}
.cu-divider span {
  font-size: clamp(18px, 2.4vw, 24px);
  font-weight: 500;
  color: var(--brand-ink);
  letter-spacing: .04em;
  white-space: nowrap;
}

/* 流程 — 線條感時間軸 */
.cu-timeline {
  list-style: none;
  margin: 0; padding: 0;
  max-width: 620px;
  margin-inline: auto;
}
.cu-tl {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding-bottom: 32px;
}
/* 連接線 */
.cu-tl::before {
  content: "";
  position: absolute;
  left: 24px; top: 48px; bottom: -4px;
  width: 1px;
  background: var(--brand-line);
}
.cu-tl:last-child { padding-bottom: 0; }
.cu-tl:last-child::before { display: none; }
.cu-tl__icon {
  flex-shrink: 0;
  width: 48px; height: 48px;
  border: 1px solid var(--brand-accent);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--brand-accent);
  background: #fff;
  transition: background .3s, color .3s, transform .3s;
}
.cu-tl__icon svg { width: 22px; height: 22px; }
.cu-tl:hover .cu-tl__icon {
  background: var(--brand-accent);
  color: #fff;
  transform: scale(1.06);
}
.cu-tl__body { padding-top: 4px; }
.cu-tl__no {
  display: block;
  font-family: var(--font-en);
  font-size: 13px;
  letter-spacing: .1em;
  color: var(--brand-accent);
  margin-bottom: 2px;
}
.cu-tl__body p {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--brand-ink);
}

/* 方案卡 */
.cu-plan-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}
.cu-plan {
  border: 1px solid var(--brand-line);
  border-radius: 16px;
  padding: 30px 26px;
  background: #fff;
  transition: border-color .25s, transform .25s, box-shadow .25s, background .3s;
}
.cu-plan:hover {
  border-color: var(--brand-accent);
  transform: translateY(-4px);
  box-shadow: 0 14px 36px -16px rgba(172,135,197,.32);
  background: linear-gradient(180deg, var(--brand-light) 0%, #fff 60%);
}
.cu-plan__name { font-size: 18px; font-weight: 600; color: var(--brand-ink); }
.cu-plan__price {
  margin-top: 8px;
  font-family: var(--font-en);
  font-size: 23px;
  font-weight: 600;
  color: var(--brand-accent);
  white-space: nowrap;
}
.cu-plan__desc { margin-top: 14px; font-size: 14px; line-height: 1.75; color: var(--brand-muted); }

/* 主題系列卡 */
.cu-theme-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}
.cu-theme {
  position: relative;
  border-radius: 16px;
  padding: 28px 24px;
  background: var(--brand-light);
  overflow: hidden;
  transition: transform .25s, box-shadow .25s;
}
.cu-theme:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 36px -16px rgba(172,135,197,.3);
}
/* 大型編號當視覺錨點 */
.cu-theme__no {
  display: block;
  font-family: var(--font-en);
  font-size: 40px;
  font-weight: 600;
  line-height: 1;
  color: var(--brand-accent);
  opacity: .85;
  margin-bottom: 14px;
}
.cu-theme__name { font-size: 17px; font-weight: 600; color: var(--brand-ink); }
.cu-theme__desc { margin-top: 8px; font-size: 13.5px; line-height: 1.7; color: var(--brand-muted); }
/* 關鍵字膠囊標籤 */
.cu-theme__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 16px;
}
.cu-theme__tags span {
  font-size: 12px;
  color: var(--brand-hover);
  background: #fff;
  border: 1px solid var(--brand-line);
  border-radius: 999px;
  padding: 4px 12px;
  letter-spacing: .03em;
  transition: border-color .25s, color .25s;
}
.cu-theme:hover .cu-theme__tags span {
  border-color: var(--brand-accent);
}
.cu-theme__note {
  margin-top: 20px;
  font-size: 12.5px;
  color: var(--brand-muted);
  text-align: center;
  line-height: 1.7;
}

/* 須知清單 */
.cu-notes {
  background: var(--brand-light);
  border-radius: 16px;
  padding: clamp(24px, 4vw, 40px);
}
.cu-notes ul {
  list-style: none;
  padding: 0; margin: 0;
  display: grid;
  gap: 12px;
}
.cu-notes li {
  position: relative;
  padding-left: 22px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--brand-muted);
}
.cu-notes li::before {
  content: "·";
  position: absolute;
  left: 6px; top: -1px;
  color: var(--brand-accent);
  font-weight: 700;
  font-size: 18px;
}

/* 結尾語 */
.cu-outro {
  text-align: center;
  padding: clamp(40px, 6vw, 72px) 0;
}
.cu-outro__line {
  font-size: clamp(18px, 2.6vw, 26px);
  font-weight: 300;
  color: var(--brand-ink);
  line-height: 1.7;
}
.cu-outro__brand {
  margin-top: 14px;
  font-family: var(--font-en);
  font-size: 20px;
  color: var(--brand-accent);
}

/* 手機微調 */
@media (max-width: 640px) {
  .cu-wish-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .cu-plan-grid, .cu-theme-grid { grid-template-columns: 1fr; }
  .cu-divider { gap: 12px; }
}

/* ==========================================================================
   商品內頁 — 固定手圍尺寸卡（15cm）
   ========================================================================== */
.pdp-size-fixed {
  border: 1px solid var(--brand-line);
  border-radius: 12px;
  padding: 18px 20px;
  background: var(--brand-light);
}
.pdp-size-fixed__main {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding-bottom: 14px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--brand-line);
}
.pdp-size-fixed__cm {
  font-family: var(--font-en);
  font-size: 32px;
  font-weight: 600;
  color: var(--brand-accent);
  line-height: 1;
}
.pdp-size-fixed__cm .u { font-size: 16px; font-weight: 500; margin-left: 2px; }
.pdp-size-fixed__tag {
  font-size: 13px;
  color: var(--brand-muted);
  letter-spacing: .04em;
}
.pdp-size-fixed__notes {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  gap: 7px;
}
.pdp-size-fixed__notes li {
  position: relative;
  padding-left: 18px;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--brand-muted);
}
.pdp-size-fixed__notes li::before {
  content: "·";
  position: absolute;
  left: 5px; top: -1px;
  color: var(--brand-accent);
  font-weight: 700;
  font-size: 18px;
}

/* custom 頁各區段間距 */
body[data-screen-label="08 Custom — Xijing"] main > section {
  margin-bottom: clamp(48px, 7vw, 88px);
}
body[data-screen-label="08 Custom — Xijing"] main > section:last-child {
  margin-bottom: 0;
}

/* 客製頁所有 icon SVG 防跑版 */
.cu-wish__icon svg,
.cu-tl__icon svg {
  display: block;
  flex-shrink: 0;
}
.cu-wish__icon {
  align-items: center;
  justify-content: center;
}

/* ==========================================================================
   水晶選物下拉 — 分組（依水晶能量 / 依水晶色系）
   ========================================================================== */
.submenu--wide {
  min-width: 320px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 4px;
  padding: 12px 8px;
}
/* 全部商品 + 兩個分組標題各自橫跨整列 */
.submenu--wide .submenu__all,
.submenu--wide .submenu__group-label {
  grid-column: 1 / -1;
}
.submenu__all {
  font-weight: 500;
  border-bottom: 1px solid var(--brand-line);
  margin-bottom: 4px;
  padding-bottom: 10px !important;
}
.submenu__group-label {
  font-family: var(--font-en);
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--brand-accent);
  padding: 12px 20px 6px;
  list-style: none;
}
.submenu--wide a {
  padding: 8px 20px;
  font-size: 14px;
}

/* drawer 分組小標 */
.drawer-sublabel {
  font-family: var(--font-en);
  font-size: 13px;
  letter-spacing: .06em;
  color: var(--brand-accent);
  padding: 14px 0 4px;
  margin-top: 4px;
}

/* 手機：寬下拉不適用，drawer 用單欄即可（已由 drawer 既有樣式處理）*/
@media (max-width: 768px) {
  .submenu--wide { display: block; min-width: 0; }
}

/* ==========================================================================
   商品內頁 — 結構化規格區（水晶 / 材質規格 / 注意事項）
   ========================================================================== */
.pdp-spec-title {
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 500;
  line-height: 1.5;
  color: var(--brand-ink);
  letter-spacing: .01em;
}
.pdp-spec {
  padding: 24px 0;
  border-top: 1px solid var(--brand-line);
}
.pdp-spec:first-of-type { border-top: none; }
.pdp-spec__head {
  font-size: 17px;
  font-weight: 600;
  color: var(--brand-ink);
  margin-bottom: 14px;
  padding-left: 12px;
  position: relative;
}
.pdp-spec__head::before {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  width: 3px; height: 16px;
  background: var(--brand-accent);
  border-radius: 2px;
}
.pdp-spec__text {
  font-size: 15px;
  line-height: 1.9;
  color: var(--brand-muted);
}
.pdp-spec__list {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  gap: 10px;
}
.pdp-spec__list li {
  position: relative;
  padding-left: 20px;
  font-size: 15px;
  line-height: 1.85;
  color: var(--brand-muted);
}
.pdp-spec__list li::before {
  content: "◦";
  position: absolute;
  left: 4px; top: 0;
  color: var(--brand-accent);
  font-weight: 700;
}
.pdp-spec--cta {
  background: var(--brand-light);
  border-radius: 14px;
  border-top: none;
  padding: 28px;
  text-align: center;
  margin-top: 16px;
}
.pdp-spec--cta .pdp-spec__text { color: var(--brand-ink); }

@media (max-width: 640px) {
  .pdp-spec__head { font-size: 16px; }
  .pdp-spec__text, .pdp-spec__list li { font-size: 14px; }
}

/* ==========================================================================
   首頁 Hero 滿版輪播 Banner
   ========================================================================== */
.hero-carousel {
  position: relative;
  width: 100%;
  height: clamp(560px, 82vh, 900px);
  overflow: hidden;
  background: var(--brand-light);
}
.hero-carousel__track {
  position: relative;
  width: 100%;
  height: 100%;
}
.hero-carousel__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s var(--ease-smooth, ease);
  pointer-events: none;
}
.hero-carousel__slide.is-active {
  opacity: 1;
  pointer-events: auto;
}
.hero-carousel__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* 圖上柔和漸層讓文字清楚 */
.hero-carousel__slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(58,53,64,.06) 0%, rgba(58,53,64,.02) 45%, rgba(58,53,64,.34) 100%);
}
.hero-carousel__caption {
  position: absolute;
  left: 0; right: 0; bottom: clamp(40px, 7vw, 88px);
  z-index: 2;
  text-align: center;
  padding: 0 24px;
  color: #fff;
}
.hero-carousel__eyebrow {
  display: block;
  font-family: var(--font-en);
  font-size: clamp(14px, 1.8vw, 19px);
  letter-spacing: .12em;
  opacity: .92;
  margin-bottom: 10px;
  text-shadow: 0 1px 12px rgba(0,0,0,.25);
}
.hero-carousel__line {
  font-size: clamp(22px, 3.4vw, 38px);
  font-weight: 300;
  letter-spacing: .04em;
  line-height: 1.4;
  text-shadow: 0 2px 18px rgba(0,0,0,.3);
}
/* 左右箭頭 */
.hero-carousel__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: rgba(255,255,255,.78);
  color: var(--brand-ink);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  border: none;
  transition: background .25s, transform .25s;
  backdrop-filter: blur(4px);
}
.hero-carousel__arrow:hover { background: #fff; transform: translateY(-50%) scale(1.08); }
.hero-carousel__arrow--prev { left: clamp(12px, 3vw, 36px); }
.hero-carousel__arrow--next { right: clamp(12px, 3vw, 36px); }
/* 指示點 */
.hero-carousel__dots {
  position: absolute;
  left: 0; right: 0; bottom: 18px;
  z-index: 3;
  display: flex;
  justify-content: center;
  gap: 10px;
}
.hero-carousel__dots button {
  width: 9px; height: 9px;
  min-height: 0; /* 抵銷手機版 button{min-height:44px} 觸控規則，避免指示點被撐成高直條 */
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,.5);
  cursor: pointer;
  padding: 0;
  transition: background .25s, width .25s;
}
.hero-carousel__dots button.is-active {
  background: #fff;
  width: 26px;
  border-radius: 5px;
}

/* 手機調整 */
@media (max-width: 640px) {
  .hero-carousel { height: clamp(360px, 56vh, 480px); }
  .hero-carousel__arrow { width: 38px; height: 38px; }
  .hero-carousel__line { font-size: clamp(20px, 6vw, 26px); }
}
@media (hover: none) {
  /* 觸控裝置：箭頭縮小、靠滑動或點點 */
  .hero-carousel__arrow { opacity: .85; }
}

/* ==========================================================================
   會員中心 — 個人資料管理區
   ========================================================================== */
.acc-block {
  background: var(--brand-light);
  border-radius: 14px;
  padding: clamp(20px, 3vw, 30px);
  margin-bottom: 18px;
}
.acc-block__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.acc-block__title {
  font-size: 17px;
  font-weight: 600;
  color: var(--brand-ink);
  letter-spacing: .04em;
}
.acc-block__edit {
  font-size: 13px;
  color: var(--brand-accent);
  background: none;
  border: none;
  cursor: pointer;
  transition: color .25s;
  font-family: inherit;
}
.acc-block__edit:hover { color: var(--brand-hover); }

/* 資料清單 */
.acc-info {
  display: grid;
  gap: 14px;
  margin: 0;
}
.acc-info > div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--brand-line);
}
.acc-info > div:last-child { border-bottom: none; padding-bottom: 0; }
.acc-info dt {
  font-size: 14px;
  color: var(--brand-muted);
  flex-shrink: 0;
}
.acc-info dd {
  font-size: 15px;
  color: var(--brand-ink);
  margin: 0;
  text-align: right;
}

/* 地址卡 */
.acc-addr {
  display: grid;
  gap: 14px;
}
.acc-addr__card {
  position: relative;
  background: #fff;
  border: 1px solid var(--brand-line);
  border-radius: 12px;
  padding: 18px 20px;
}
.acc-addr__card--default { border-color: var(--brand-accent); }
.acc-addr__tag {
  display: inline-block;
  font-size: 11px;
  letter-spacing: .06em;
  color: #fff;
  background: var(--brand-accent);
  border-radius: 999px;
  padding: 2px 10px;
  margin-bottom: 8px;
}
.acc-addr__name {
  font-size: 15px;
  font-weight: 500;
  color: var(--brand-ink);
  margin-bottom: 4px;
}
.acc-addr__line {
  font-size: 14px;
  color: var(--brand-muted);
  line-height: 1.7;
}
.acc-addr__actions {
  display: flex;
  gap: 16px;
  margin-top: 14px;
}
.acc-addr__actions button {
  font-size: 13px;
  color: var(--brand-muted);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: color .25s;
  font-family: inherit;
}
.acc-addr__actions button:hover { color: var(--brand-accent); }

.acc-points-note {
  font-size: 13px;
  color: var(--brand-muted);
  line-height: 1.7;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--brand-line);
}

@media (max-width: 640px) {
  .acc-info > div { flex-direction: column; gap: 4px; align-items: flex-start; }
  .acc-info dd { text-align: left; }
}

/* ==========================================================================
   會員 · 編輯個人資料頁
   ========================================================================== */
.pf-form { display: grid; gap: 18px; }
.pf-subhead {
  font-size: 15px;
  font-weight: 600;
  color: var(--brand-ink);
  margin-bottom: 4px;
  padding-top: 8px;
  border-top: 1px solid var(--brand-line);
}
.pf-check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--brand-muted);
  cursor: pointer;
}
.pf-check input { width: 16px; height: 16px; accent-color: var(--brand-accent); }
.xj-addr-link {
  font-size: 13px;
  color: var(--brand-muted);
  transition: color .2s;
}
.xj-addr-link:hover { color: var(--brand-accent); }
