/* ============================================================
   茉朵莉亞 Jasmine Beauty — 共用樣式 common.css
   設計 token / reset / 排版 / 按鈕 / 頁首 / 頁尾 / 浮動 CTA
   品牌色取自舊站實際色碼
   ============================================================ */

:root {
  /* 品牌色 */
  --pink: #ed90a9;      /* 主色 品牌粉 */
  --pink-soft: #f6c2d0; /* 淺粉 */
  --rose: #c37b8d;      /* 輔色 深玫瑰 */
  --rose-deep: #a85f72;
  --cream: #f9f4ef;     /* 底色 米白 */
  --cream-2: #fdf9f6;
  --ink: #323232;       /* 主文字 */
  --ink-2: #626262;     /* 次文字 */
  --ink-3: #9a9a9a;
  --white: #ffffff;
  --line: #06c755;      /* LINE 品牌綠 */
  --line-dark: #05a648;

  /* 版面 */
  --maxw: 1180px;
  --gap: clamp(1rem, 2.5vw, 2rem);
  --radius: 18px;
  --radius-sm: 12px;
  --radius-lg: 28px;

  /* 陰影 */
  --shadow-sm: 0 4px 14px rgba(50, 50, 50, .06);
  --shadow: 0 10px 30px rgba(195, 123, 141, .13);
  --shadow-lg: 0 22px 48px rgba(168, 95, 114, .18);

  /* 字型 */
  --serif: "Noto Serif TC", "Songti TC", "Times New Roman", serif;
  --sans: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", "Heiti TC", sans-serif;
}

/* ---------- reset ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--white);
  line-height: 1.75;
  letter-spacing: .01em;
  font-size: 16px;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* ---------- 排版工具 ---------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(1.1rem, 4vw, 2rem); }
.section { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.eyebrow {
  display: inline-block; font-size: .82rem; letter-spacing: .32em;
  color: var(--rose); font-weight: 600; text-transform: uppercase; margin-bottom: .9rem;
}
.h-title {
  font-family: var(--serif); font-weight: 700;
  font-size: clamp(1.7rem, 4vw, 2.6rem); line-height: 1.3; color: var(--ink);
}
.h-title .en { display: block; font-size: .5em; letter-spacing: .3em; color: var(--pink); font-weight: 400; margin-top: .5rem; }
.lead { color: var(--ink-2); font-size: clamp(1rem, 1.4vw, 1.08rem); max-width: 42ch; }
.center { text-align: center; }
.center .lead { margin-inline: auto; }

/* ---------- 按鈕 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .85em 1.9em; border-radius: 999px; font-weight: 600; font-size: 1rem;
  transition: transform .18s ease, box-shadow .18s ease, background .2s ease; white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-line { background: var(--line); color: #fff; box-shadow: 0 8px 20px rgba(6,199,85,.28); }
.btn-line:hover { background: var(--line-dark); transform: translateY(-2px); box-shadow: 0 12px 26px rgba(6,199,85,.34); }
.btn-primary { background: var(--pink); color: #fff; box-shadow: 0 8px 20px rgba(237,144,169,.34); }
.btn-primary:hover { background: var(--rose); transform: translateY(-2px); }
.btn-ghost { background: rgba(255,255,255,.14); color: #fff; border: 1.5px solid rgba(255,255,255,.7); backdrop-filter: blur(2px); }
.btn-ghost:hover { background: rgba(255,255,255,.9); color: var(--rose-deep); }
.btn-outline { border: 1.5px solid var(--pink); color: var(--rose-deep); }
.btn-outline:hover { background: var(--pink); color: #fff; }
.btn-sm { padding: .62em 1.3em; font-size: .92rem; }
.btn-lg { padding: 1em 2.4em; font-size: 1.08rem; }

/* ---------- 頁首 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.86); backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(195,123,141,.12);
  transition: box-shadow .25s ease;
}
.site-header.scrolled { box-shadow: 0 6px 22px rgba(50,50,50,.07); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 74px; }
.brand { display: flex; align-items: center; gap: .65rem; }
.brand img { height: 42px; width: auto; }
.brand .brand-name { font-family: var(--serif); font-weight: 700; font-size: 1.15rem; letter-spacing: .06em; color: var(--ink); }
.brand .brand-name small { display: block; font-size: .58rem; letter-spacing: .34em; color: var(--rose); font-family: var(--sans); font-weight: 500; }
.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-links a { font-size: .98rem; color: var(--ink); font-weight: 500; position: relative; transition: color .2s; }
.nav-links a::after { content: ""; position: absolute; left: 0; bottom: -6px; width: 0; height: 2px; background: var(--pink); transition: width .25s ease; border-radius: 2px; }
.nav-links a:hover { color: var(--rose); }
.nav-links a:hover::after { width: 100%; }
.nav-cta { display: flex; align-items: center; gap: .7rem; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: .3s; }

/* ---------- 頁尾 ---------- */
.site-footer { background: var(--ink); color: #d9d3ce; padding-block: clamp(3rem, 6vw, 4.5rem) 0; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1.3fr; gap: 2.5rem; }
.site-footer .f-brand-name { font-family: var(--serif); font-size: 1.35rem; color: #fff; letter-spacing: .08em; margin-bottom: .3rem; }
.site-footer .f-slogan { font-size: .86rem; letter-spacing: .18em; color: var(--pink-soft); margin-bottom: 1.2rem; }
.site-footer p { font-size: .94rem; line-height: 2; color: #cfc8c3; }
.site-footer h4 { color: #fff; font-size: 1rem; letter-spacing: .1em; margin-bottom: 1rem; font-weight: 600; }
.f-info li { display: flex; gap: .6rem; font-size: .94rem; line-height: 1.9; color: #cfc8c3; }
.f-info li b { color: #fff; font-weight: 500; min-width: 3.6em; }
.f-info a:hover { color: var(--pink-soft); }
.f-social { display: flex; gap: .8rem; margin-top: 1.1rem; }
.f-social a { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.09); transition: .2s; }
.f-social a:hover { background: var(--pink); transform: translateY(-3px); }
.f-social svg { width: 20px; height: 20px; fill: #fff; }
.f-map { border-radius: var(--radius-sm); overflow: hidden; border: 3px solid rgba(255,255,255,.1); }
.f-map iframe { width: 100%; height: 200px; border: 0; display: block; filter: grayscale(.15); }
.footer-bottom { text-align: center; padding: 1.6rem 0; margin-top: 2.8rem; border-top: 1px solid rgba(255,255,255,.09); font-size: .82rem; color: #9a938e; }

/* ---------- 浮動 CTA（手機底部固定 + 桌機浮動 LINE） ---------- */
.float-line {
  position: fixed; right: 22px; bottom: 26px; z-index: 90;
  width: 60px; height: 60px; border-radius: 50%; background: var(--line);
  display: grid; place-items: center; box-shadow: 0 10px 26px rgba(6,199,85,.4);
  animation: floatPulse 2.6s ease-in-out infinite;
}
.float-line svg { width: 34px; height: 34px; fill: #fff; }
@keyframes floatPulse { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

.mobile-bar { display: none; }

/* ---------- 今日營業狀態徽章 ---------- */
.open-badge { font-size: .8rem; font-weight: 600; padding: .12em .6em; border-radius: 6px; margin-left: .4rem; white-space: nowrap; }
.open-badge.is-open { background: rgba(6,199,85,.14); color: var(--line-dark); }
.open-badge.is-closed { background: rgba(150,150,150,.16); color: var(--ink-3); }

/* ---------- 常見問題 FAQ（原生 details 手風琴） ---------- */
.faq { max-width: 760px; margin-inline: auto; }
.faq details { background: #fff; border: 1px solid rgba(195,123,141,.16); border-radius: var(--radius-sm); margin-bottom: .8rem; overflow: hidden; transition: box-shadow .2s ease; }
.faq details[open] { box-shadow: var(--shadow); }
.faq summary { cursor: pointer; padding: 1.1rem 1.4rem; font-weight: 600; color: var(--ink); list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem; font-size: 1.02rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--pink); font-size: 1.5rem; line-height: 1; transition: transform .2s ease; flex-shrink: 0; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .faq-a { padding: 0 1.4rem 1.2rem; color: var(--ink-2); font-size: .95rem; line-height: 1.95; }

/* ---------- 進場淡入（僅在 JS 啟用時隱藏，確保無 JS / SEO 也看得到內容） ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.js [data-reveal].in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
  .float-line { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- RWD ---------- */
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .f-map-cell { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .nav-links, .nav-cta .btn { display: none; }
  .nav-toggle { display: flex; }
  .nav.open .nav-links {
    display: flex; position: absolute; top: 74px; left: 0; right: 0; flex-direction: column;
    background: #fff; padding: 1.2rem 1.5rem 1.8rem; gap: 1.1rem; box-shadow: var(--shadow);
    border-bottom: 1px solid rgba(195,123,141,.12);
  }
  .nav.open .nav-links a { font-size: 1.05rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .float-line { bottom: 78px; width: 54px; height: 54px; }
  .float-line svg { width: 30px; height: 30px; }

  /* 手機底部固定雙 CTA */
  .mobile-bar {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 95;
    background: #fff; box-shadow: 0 -6px 20px rgba(50,50,50,.12); padding: .55rem .7rem;
    gap: .55rem; border-top: 1px solid rgba(195,123,141,.14);
  }
  .mobile-bar a { flex: 1; border-radius: 12px; padding: .8em 0; font-weight: 600; font-size: 1rem; }
  body { padding-bottom: 64px; }
}
