/* =========================
   XUYUAN 全站共用骨架 CSS
   桌機預設 / 手機覆蓋
   ========================= */

:root{
  --bg:#fffaf7;
  --bg-soft:#fff3f5;
  --bg-warm:#fff7f1;

  --card:#ffffff;
  --card-soft:rgba(255,255,255,.88);
  --card-strong:rgba(255,255,255,.94);

  --text:#5a4744;
  --text-soft:#8b7470;
  --text-muted:#b39a95;

  --line:rgba(120,90,86,.10);
  --line-strong:rgba(183,146,105,.16);

  --gold:#dcc4a2;
  --gold-deep:#b79269;

  --hero-grad:linear-gradient(135deg, rgba(255,255,255,.96), rgba(255,244,245,.92));
  --btn-grad:linear-gradient(135deg, #f8e6d2, #e9c7cc);
  --marquee-grad:linear-gradient(135deg, #f4dfd5 0%, #efd9dd 100%);
  --rose-grad:linear-gradient(135deg, rgba(255,243,246,.96), rgba(255,251,252,.94));
  --gold-grad:linear-gradient(135deg, rgba(255,248,240,.96), rgba(255,253,249,.94));
  --soft-grad:linear-gradient(135deg, rgba(255,255,255,.95), rgba(255,248,244,.93));

  --shadow:0 18px 40px rgba(177,136,130,.10);
  --shadow-soft:0 10px 24px rgba(177,136,130,.07);

  --radius-xl:28px;
  --radius-lg:22px;
  --radius-md:16px;

  --max:1180px;

  --navbar-h-desktop:76px;
  --navbar-h-mobile:58px;
  --marquee-h-desktop:42px;
  --marquee-h-mobile:32px;

  --serif:'Playfair Display','Noto Sans TC',serif;
  --sans:'Noto Sans TC',sans-serif;
}

*{
  box-sizing:border-box;
  -webkit-tap-highlight-color:transparent;
}

html{
  scroll-behavior:smooth;
}

html, body{
  -webkit-touch-callout:none;
}

body{
  margin:0;
  font-family:var(--sans);
  color:var(--text);
  background:
    radial-gradient(circle at 12% 0%, rgba(239,207,211,.68), transparent 24%),
    radial-gradient(circle at 88% 6%, rgba(255,235,220,.76), transparent 26%),
    linear-gradient(180deg, #fffaf7 0%, #fffdfb 42%, #fff5f6 100%);
}

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

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

img,
.product-card img,
.product-image,
.gallery img,
.banner img{
  -webkit-user-drag:none;
  user-select:none;
  -webkit-touch-callout:none;
}

.container{
  width:min(calc(100% - 48px), var(--max));
  margin:0 auto;
}

/* ===== navbar ===== */
.navbar{
  position:sticky;
  top:0;
  z-index:100;
  backdrop-filter:blur(14px);
  -webkit-backdrop-filter:blur(14px);
  background:rgba(255,250,247,.84);
  border-bottom:1px solid rgba(141,119,116,.08);
  box-shadow:0 8px 18px rgba(0,0,0,.04);
}

.nav-inner{
  height:var(--navbar-h-desktop);
  display:grid;
  grid-template-columns:72px 1fr 132px;
  align-items:center;
}

.nav-left,
.nav-right{
  display:flex;
}

.nav-left{
  justify-content:flex-start;
}

.nav-right{
  justify-content:flex-end;
  gap:10px;
}

.nav-btn{
  width:46px;
  height:46px;
  border-radius:999px;
  border:1px solid rgba(141,119,116,.14);
  background:rgba(255,255,255,.86);
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:18px;
  color:#53423f;
  box-shadow:0 8px 18px rgba(0,0,0,.04);
  position:relative;
  overflow:visible;
  cursor:pointer;
}

.cart-badge{
  position:absolute;
  top:-4px;
  right:-4px;
  min-width:18px;
  height:18px;
  padding:0 5px;
  border-radius:999px;
  background:#e56a82;
  color:#fff;
  font-size:10px;
  font-weight:700;
  line-height:18px;
  text-align:center;
  border:2px solid rgba(255,255,255,.96);
  box-shadow:0 6px 14px rgba(229,106,130,.28);
}

/* ===== LOGO ===== */
.refined-brand-wrap{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  text-align:center;
  padding:6px 0;
}

.refined-brand-title{
  font-family:'Playfair Display', serif;
  font-size:34px;
  font-weight:600;
  letter-spacing:.24em;
  color:#5a4744;
  line-height:1;
  margin:0;
  text-transform:uppercase;
  background:linear-gradient(135deg, #5a4744 0%, #8b7470 100%);
  -webkit-background-clip:text;
  -webkit-text-fill-color:transparent;
  position:relative;
  padding-bottom:2px;
}

.refined-brand-title::after{
  content:"";
  display:block;
  width:28px;
  height:1px;
  background:rgba(183,146,105,.4);
  margin:8px auto 5px;
  border-radius:999px;
}

.refined-brand-sub{
  font-family:'Noto Sans TC', sans-serif;
  font-size:10px;
  font-weight:500;
  letter-spacing:.38em;
  color:#b79269;
  text-transform:uppercase;
  line-height:1.2;
  opacity:.9;
  margin-left:.38em;
}

/* ===== 左側總選單 ===== */
.site-menu-mask{
  position:fixed;
  inset:0;
  background:rgba(68,52,49,.28);
  backdrop-filter:blur(5px);
  -webkit-backdrop-filter:blur(5px);
  opacity:0;
  pointer-events:none;
  transition:opacity .28s ease;
  z-index:1998;
}

.site-menu-mask.show{
  opacity:1;
  pointer-events:auto;
}

.site-menu-panel{
  position:fixed;
  top:0;
  left:0;
  width:min(88vw, 360px);
  height:100vh;
  background:linear-gradient(180deg, rgba(255,252,249,.98) 0%, rgba(255,246,243,.97) 100%);
  border-right:1px solid rgba(216,195,165,.22);
  box-shadow:0 20px 42px rgba(120,86,82,.18);
  transform:translateX(-102%);
  transition:transform .28s ease;
  z-index:1999;
  display:flex;
  flex-direction:column;
  padding:18px 14px 18px;
}

.site-menu-panel.show{
  transform:translateX(0);
}

.site-menu-top{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  padding:4px 2px 16px;
  margin-bottom:14px;
  border-bottom:1px solid rgba(120,90,86,.08);
}

.site-menu-close{
  width:34px;
  height:34px;
  border-radius:999px;
  border:1px solid rgba(141,119,116,.16);
  background:rgba(255,255,255,.90);
  color:#53423f;
  cursor:pointer;
  font-size:16px;
  flex:0 0 auto;
}

.site-menu-list{
  display:flex;
  flex-direction:column;
  gap:10px;
  flex:1;
  min-height:0;
  overflow:auto;
  padding-right:4px;
  padding-bottom:8px;
  scrollbar-width:thin;
  scrollbar-color:rgba(182,143,103,.42) transparent;
}

.site-menu-list::-webkit-scrollbar{
  width:4px;
}

.site-menu-list::-webkit-scrollbar-track{
  background:transparent;
}

.site-menu-list::-webkit-scrollbar-thumb{
  background:rgba(182,143,103,.42);
  border-radius:999px;
}

.site-menu-link{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:14px 14px;
  border-radius:18px;
  color:#53423f;
  border:1px solid rgba(120,90,86,.08);
  box-shadow:0 10px 24px rgba(177,136,130,.07);
  transition:all .2s ease;
}

.site-menu-link:hover{
  transform:translateX(2px);
  background:#fff;
}

.site-menu-title-row{
  display:flex;
  align-items:center;
  gap:8px;
  margin-bottom:4px;
  flex-wrap:wrap;
}

.site-menu-title-row strong{
  display:block;
  font-size:15px;
  font-weight:700;
  letter-spacing:.02em;
  color:#5b4744;
  line-height:1.25;
}

.site-menu-title-row span{
  font-size:10px;
  font-weight:600;
  letter-spacing:.06em;
  text-transform:uppercase;
  color:#b08b73;
  line-height:1.2;
}

.site-menu-link small{
  display:block;
  margin-top:2px;
  font-size:11px;
  color:#8f7a76;
  line-height:1.5;
}

.site-menu-arrow{
  width:28px;
  height:28px;
  border-radius:999px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:14px;
  color:rgba(90,71,68,.48);
  background:rgba(255,255,255,.72);
  border:1px solid rgba(120,90,86,.06);
  flex:0 0 auto;
}

.menu-home{
  background:linear-gradient(135deg, #fcf7f1, #fffdfb);
  border-color:rgba(198,164,123,.18);
}
.menu-home .site-menu-arrow{
  background:#f7ecde;
  color:#9a7a54;
}

.menu-shop{
  background:linear-gradient(135deg, #fff1de, #fffaf3);
  border-color:rgba(208,160,84,.26);
}
.menu-shop .site-menu-arrow{
  background:#f8ddb0;
  color:#9f6b1f;
}

.menu-service{
  background:linear-gradient(135deg, #ffeef4, #fffafd);
  border-color:rgba(206,128,160,.24);
}
.menu-service .site-menu-arrow{
  background:#f6d4e3;
  color:#a65e7d;
}

.menu-info{
  background:linear-gradient(135deg, #f4efec, #fffdfb);
  border-color:rgba(138,116,109,.18);
}
.menu-info .site-menu-arrow{
  background:#e7d8cf;
  color:#7d6962;
}

.site-menu-scroll-hint{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  margin-top:8px;
  padding:8px 10px 4px;
  font-size:11px;
  letter-spacing:.06em;
  color:#a08b87;
  background:linear-gradient(180deg, rgba(255,252,249,0), rgba(255,246,243,.82));
  border-radius:14px;
}

.site-menu-scroll-hint::before{
  content:"⌄";
  font-size:14px;
  line-height:1;
}

.site-menu-member{
  margin-top:14px;
  padding-top:14px;
  border-top:1px solid rgba(120,90,86,.08);
}

.site-menu-member a{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:15px 15px;
  border-radius:20px;
  background:linear-gradient(135deg, #fff1f5, #fff8fb);
  border:1px solid rgba(183,138,164,.16);
  box-shadow:0 14px 28px rgba(183,138,164,.08);
}

.site-menu-member strong{
  display:block;
  font-size:14px;
  letter-spacing:.03em;
  color:#5b4744;
}

.site-menu-member small{
  display:block;
  margin-top:4px;
  font-size:11px;
  color:#8d707b;
  line-height:1.5;
}

.site-menu-member .site-menu-arrow{
  background:rgba(255,255,255,.78);
  color:#9a6f86;
}

/* ===== 跑馬燈 ===== */
.lux-marquee{
  position:sticky;
  top:var(--navbar-h-desktop);
  z-index:95;
  height:var(--marquee-h-desktop);
  overflow:hidden;
  background:rgba(255,255,255,.68);
  backdrop-filter:blur(12px);
  -webkit-backdrop-filter:blur(12px);
  border-bottom:1px solid rgba(183,146,105,.12);
  display:flex;
  align-items:center;
  box-shadow:0 4px 15px rgba(0,0,0,.02);
}

.lux-marquee::before{
  content:"";
  position:absolute;
  left:0;
  top:0;
  bottom:0;
  width:42px;
  background:linear-gradient(to right, rgba(255,255,255,.68), transparent);
  z-index:2;
}

.lux-marquee::after{
  content:"";
  position:absolute;
  right:0;
  top:0;
  bottom:0;
  width:42px;
  background:linear-gradient(to left, rgba(255,255,255,.68), transparent);
  z-index:2;
}

.lux-marquee-track{
  display:flex;
  align-items:center;
  gap:52px;
  width:max-content;
  min-width:max-content;
  padding-left:26px;
  animation:marqueeMove 20s linear infinite;
}

.lux-marquee-track span{
  font-size:11px;
  font-weight:700;
  color:#9a7a54;
  white-space:nowrap;
  letter-spacing:.10em;
  display:flex;
  align-items:center;
  gap:12px;
}

.lux-marquee-track span::after{
  content:"✦";
  font-size:8px;
  opacity:.45;
}

@keyframes marqueeMove{
  from{transform:translateX(0)}
  to{transform:translateX(-50%)}
}

/* ===== main 共用安全間距 ===== */
main{
  display:block;
  min-height:40vh;
}

/* 妳每頁自己的內容建議都包在 .page-shell 裡 */
.page-shell{
  padding:28px 0 20px;
}

.page-section{
  padding:14px 0 6px;
}

.page-card{
  border-radius:28px;
  border:1px solid rgba(220,196,162,.22);
  background:linear-gradient(135deg, rgba(255,255,255,.96), rgba(255,244,245,.92));
  box-shadow:var(--shadow);
  padding:34px 34px;
}

/* ===== footer ===== */
.site-footer{
  padding:38px 0 100px;
  background:transparent;
}

.site-footer-simple{
  padding:30px 12px 0;
  border-top:1px solid rgba(120,90,86,.08);
  text-align:center;
}

.site-footer-links-inline{
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  gap:10px;
  margin-bottom:16px;
  font-size:13px;
  line-height:1.9;
  color:#7e706c;
}

.site-footer-links-inline a{
  color:#7e706c;
}

.site-footer-links-inline span{
  color:#c2b0ab;
}

.site-footer-socials{
  display:flex;
  justify-content:center;
  align-items:center;
  gap:14px;
  margin-bottom:14px;
}

.site-footer-social{
  width:42px;
  height:42px;
  border-radius:999px;
  display:flex;
  align-items:center;
  justify-content:center;
  border:1px solid rgba(120,90,86,.08);
  background:rgba(255,255,255,.86);
  box-shadow:0 8px 18px rgba(177,136,130,.05);
}

.site-footer-social svg{
  width:20px;
  height:20px;
  stroke:#4f4544;
}

.site-footer-meta{
  font-size:12px;
  line-height:1.8;
  color:#9a8a86;
  margin-bottom:8px;
}

.site-footer-copy-group{
  padding-top:8px;
}

.site-footer-copy-group .footer-copy{
  font-size:11px;
  line-height:1.8;
  color:#8b7a76;
}

/* ===== 右下 LINE 浮動按鈕 ===== */
.floating-line-btn{
  position:fixed;
  right:22px;
  bottom:24px;
  width:58px;
  height:58px;
  border-radius:999px;
  background:#06C755;
  border:3px solid rgba(255,255,255,.94);
  box-shadow:0 14px 28px rgba(6,199,85,.22);
  display:flex;
  align-items:center;
  justify-content:center;
  z-index:2100;
  animation:lineFloat 3.2s ease-in-out infinite;
}

.floating-line-btn::before,
.floating-line-btn::after{
  content:"";
  position:absolute;
  inset:0;
  border-radius:inherit;
  border:1px solid rgba(6,199,85,.30);
  animation:linePulse 2.8s ease-out infinite;
}

.floating-line-btn::after{
  animation-delay:1.4s;
}

.floating-line-btn img{
  width:23px;
  height:23px;
  position:relative;
  z-index:2;
}

@keyframes linePulse{
  0%{transform:scale(1);opacity:.50}
  70%{transform:scale(1.34);opacity:0}
  100%{transform:scale(1.34);opacity:0}
}

@keyframes lineFloat{
  0%,100%{transform:translateY(0)}
  50%{transform:translateY(-4px)}
}

/* ===== 回到最上方 ===== */
.back-to-top{
  position: fixed;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%) translateY(8px);
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 999px;
  background: rgba(205, 196, 196, 0.82);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(0,0,0,0.10);
  cursor: pointer;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .22s ease, transform .22s ease, visibility .22s ease;
  -webkit-tap-highlight-color: transparent;
}

.back-to-top svg{
  width: 18px;
  height: 18px;
  display: block;
}

.back-to-top.show{
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.back-to-top:active{
  transform: translateX(-50%) scale(0.96);
}

/* ===== 手機專用 ===== */
@media (max-width:767px){
  .container{
    width:min(calc(100% - 22px), var(--max));
  }

  .nav-inner{
    height:var(--navbar-h-mobile);
    grid-template-columns:52px 1fr 96px;
  }

  .nav-btn{
    width:40px;
    height:40px;
    font-size:16px;
  }

  .nav-right{
    gap:8px;
  }

  .refined-brand-wrap{
    padding:4px 0;
  }

  .refined-brand-title{
    font-size:18px;
    letter-spacing:.18em;
  }

  .refined-brand-title::after{
    width:16px;
    margin:4px auto 3px;
  }

  .refined-brand-sub{
    font-size:7.5px;
    letter-spacing:.28em;
    margin-left:.28em;
  }

  .site-menu-panel{
    width:min(88vw, 340px);
    padding:16px 12px 16px;
  }

  .site-menu-top{
    padding-bottom:14px;
    margin-bottom:12px;
  }

  .site-menu-close{
    width:32px;
    height:32px;
    font-size:15px;
  }

  .site-menu-link{
    padding:13px 12px;
    border-radius:16px;
  }

  .site-menu-title-row strong,
  .site-menu-member strong{
    font-size:13px;
  }

  .site-menu-title-row span{
    font-size:10px;
  }

  .site-menu-link small,
  .site-menu-member small{
    font-size:10px;
  }

  .site-menu-arrow{
    width:26px;
    height:26px;
    font-size:13px;
  }

  .site-menu-panel .refined-brand-title{
    font-size:20px;
  }

  .site-menu-panel .refined-brand-title::after{
    width:18px;
  }

  .lux-marquee{
    top:var(--navbar-h-mobile);
    height:var(--marquee-h-mobile);
  }

  .lux-marquee-track{
    gap:42px;
    padding-left:18px;
  }

  .lux-marquee-track span{
    font-size:9px;
    letter-spacing:.10em;
  }

  .page-shell{
    padding:14px 0 10px;
  }

  .page-section{
    padding:10px 0 2px;
  }

  .page-card{
    padding:18px 16px;
    border-radius:24px;
  }

  .site-footer{
    padding:28px 0 84px;
  }

  .site-footer-simple{
    padding:22px 12px 0;
  }

  .site-footer-links-inline{
    font-size:11px;
    gap:6px;
  }

  .site-footer-meta{
    font-size:10.5px;
  }

  .site-footer-copy-group .footer-copy{
    font-size:10px;
  }

  .floating-line-btn{
    right:10px;
    bottom:18px;
    width:52px;
    height:52px;
  }

   .back-to-top{
    bottom: 12px;
    width: 46px;
    height: 46px;
  }

  .back-to-top svg{
    width: 17px;
    height: 17px;
  }
}
