/* ============================================================
   Wandfor 寶佳美 一頁式網站
   全部資源本地化・無外部字體・RWD 手機優先
   ============================================================ */

:root {
  --gold: #b58d3d;          /* 品牌金（型錄按鈕原色） */
  --gold-bright: #daa520;   /* 亮金（型錄標題原色） */
  --purple: #59007f;        /* 品牌深紫（原站主色） */
  --ink: #1c1c1c;
  --gray: #696969;
  --paper: #ffffff;
  --paper-soft: #faf7f0;
  --serif: "Noto Serif TC", "Songti TC", PMingLiU, "MingLiU", serif;
  --sans: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", "Heiti TC", sans-serif;
  --maxw: 960px;
  --header-h: 60px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-align: center;
}

img { max-width: 100%; height: auto; display: block; margin-inline: auto; }

a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-bright); }

:focus-visible { outline: 3px solid var(--purple); outline-offset: 2px; }

.gold { color: var(--gold-bright); }

/* ---------- 導覽列 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid #ecdfc4;
}
.header-inner {
  max-width: var(--maxw); margin-inline: auto;
  min-height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 16px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-logo { height: 34px; width: auto; margin: 0; }
.brand-zh { font-size: .95rem; color: var(--gold); letter-spacing: .35em; }

.site-nav { display: flex; gap: 4px; align-items: center; }
.site-nav a {
  padding: 8px 14px; font-size: .95rem; color: var(--ink);
  border-radius: 4px; font-weight: 500;
}
.site-nav a:hover { color: var(--gold); background: var(--paper-soft); }
.site-nav .nav-cta {
  color: #fff; background: var(--gold);
  border-radius: 999px; padding: 8px 18px;
}
.site-nav .nav-cta:hover { background: var(--purple); color: #fff; }

.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: 0; padding: 10px; cursor: pointer;
}
.nav-toggle span {
  width: 24px; height: 2px; background: var(--ink);
  transition: transform .25s, opacity .25s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { max-width: var(--maxw); margin-inline: auto; padding: 48px 16px 24px; }
.hero-logo { width: min(320px, 70vw); margin-bottom: 14px; }
.hero-eyebrow {
  font-size: .8rem; letter-spacing: .45em; color: var(--gray);
  text-transform: uppercase; margin-top: 6px;
}
.hero h1 {
  font-family: var(--serif); font-size: clamp(1.7rem, 5.5vw, 2.7rem);
  font-weight: 700; letter-spacing: .08em;
}
.hero-sub { color: var(--purple); font-size: clamp(1rem, 3vw, 1.2rem); margin-top: 8px; letter-spacing: .1em; }
.hero-actions {
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: center;
  margin: 26px 0 34px;
}
.hero-figure { border-radius: 8px; overflow: hidden; box-shadow: 0 12px 40px rgba(89,0,127,.08); }
.skin-types { margin-top: 28px; }

/* ---------- 按鈕 ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 28px; font-size: 1rem; font-weight: 700;
  border-radius: 6px; border: 2px solid transparent;
  transition: background-color .3s, color .3s, box-shadow .3s;
  font-family: var(--sans);
}
.btn svg { width: 20px; height: 20px; fill: currentColor; flex: none; }

.btn-solid { background: var(--gold); color: #fff; }
.btn-solid:hover { background: var(--purple); color: #fff; box-shadow: 0 4px 12px rgba(0,0,0,.15); }

.btn-outline { border-color: var(--gold); color: var(--gold); }
.btn-outline:hover { background: var(--gold); color: #fff; box-shadow: 0 4px 8px rgba(0,0,0,.1); }

.btn-line { background: #06c755; color: #fff; }
.btn-line:hover { background: #05a648; color: #fff; }

.wechat-copy {
  margin-top: 6px; padding: 8px 16px;
  font-family: var(--sans); font-size: .92rem; color: var(--ink);
  background: #fff; border: 1.5px dashed var(--gold);
  border-radius: 6px; cursor: pointer;
  display: inline-flex; align-items: center; gap: 8px;
  transition: border-color .25s, background-color .25s;
}
.wechat-copy:hover { border-style: solid; background: var(--paper-soft); }
.wechat-copy strong { letter-spacing: .04em; }
.copy-tag {
  font-size: .75rem; color: #fff; background: #07c160;
  border-radius: 4px; padding: 2px 8px;
}
.wechat-copy.copied .copy-tag { background: var(--purple); }

/* ---------- 分隔線 ---------- */
.divider { width: min(100%, var(--maxw)); padding: 0 16px; margin: 36px auto; }
.divider-v { max-width: 560px; margin: 8px auto 0; }

/* ---------- 產品系列 ---------- */
.series { max-width: var(--maxw); margin-inline: auto; padding: 0 16px; }
.series-letter {
  font-family: var(--serif); font-style: italic;
  font-size: clamp(3.5rem, 9vw, 4.5rem);
  color: var(--gold-bright); line-height: 1;
}
.series-title {
  font-size: clamp(1.1rem, 3.4vw, 1.4rem);
  font-weight: 700; letter-spacing: .12em; margin: 6px 0 26px;
}
.series-figure { margin-bottom: 12px; }

.product { padding: 28px 0 8px; }
.product-no {
  font-family: var(--serif); font-style: italic;
  font-size: clamp(3rem, 8vw, 4rem);
  color: var(--gold-bright); line-height: 1; margin-bottom: 14px;
}
.product-no span { font-size: .8rem; font-style: normal; vertical-align: middle; margin-left: 4px; }

.product-img {
  display: block; max-width: 640px; margin-inline: auto;
  border-radius: 8px; overflow: hidden;
  box-shadow: 0 8px 28px rgba(0,0,0,.08);
  transition: transform .3s, box-shadow .3s;
}
.product-img:hover { transform: translateY(-4px); box-shadow: 0 16px 36px rgba(0,0,0,.14); }

.product-name {
  font-family: var(--serif); color: var(--gold-bright);
  font-size: clamp(1.2rem, 3.6vw, 1.5rem);
  letter-spacing: .1em; margin-top: 22px; font-weight: 700;
}
.product-price { font-size: .95rem; color: var(--ink); margin: 4px 0 2px; }
.product-price .spec { color: var(--gray); margin-right: 10px; font-size: .85rem; }
.product-price .price { font-weight: 700; letter-spacing: .03em; }
.product .btn-outline { margin-top: 16px; }

/* ---------- MIT 品質 ---------- */
.mit { max-width: var(--maxw); margin-inline: auto; padding: 0 16px; }
.mit h2 {
  font-family: var(--serif); font-size: clamp(1.5rem, 4.5vw, 2rem);
  letter-spacing: .15em; margin: 30px 0 14px;
}
.mit-lead { font-size: .95rem; max-width: 640px; margin: 0 auto 26px; }
.mit-list {
  list-style: none; max-width: 620px; margin: 22px auto 0;
  font-size: .88rem; color: var(--gray); text-align: left;
}
.mit-list li { padding-left: 1.4em; position: relative; margin-bottom: 8px; }
.mit-list li::before { content: "●"; color: var(--gold-bright); position: absolute; left: 0; font-size: .7em; top: .45em; }

/* ---------- 經銷代理 ---------- */
.dealer { max-width: var(--maxw); margin-inline: auto; padding: 0 16px; }
.dealer h2, .contact h2 {
  font-family: var(--serif); font-size: clamp(1.5rem, 4.5vw, 1.9rem);
  letter-spacing: .2em; margin-bottom: 24px; font-weight: 700;
}
.dealer-card {
  max-width: 560px; margin-inline: auto;
  background: var(--paper-soft); border: 1px solid #ecdfc4;
  border-radius: 12px; padding: 30px 24px;
}
.dealer-headline {
  font-size: 1.15rem; font-weight: 700;
  background: #ccccff; color: var(--ink);
  border-radius: 8px; padding: 12px; margin-bottom: 20px;
}
.dealer-headline strong { font-size: 2rem; color: var(--purple); padding: 0 4px; }
.dealer-terms { list-style: none; font-size: .95rem; }
.dealer-terms li {
  display: flex; justify-content: space-between; gap: 16px;
  padding: 10px 6px; border-bottom: 1px dashed #ddcfa8;
}
.dealer-terms li:last-child { border-bottom: 0; }
.dealer-terms span { color: var(--gray); flex: none; }

/* ---------- 官方聯繫 ---------- */
.contact { max-width: var(--maxw); margin: 48px auto 0; padding: 0 16px 8px; }
.contact-grid {
  display: flex; flex-wrap: wrap; gap: 24px; justify-content: center;
}
.contact-card {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  background: var(--paper-soft); border: 1px solid #ecdfc4;
  border-radius: 12px; padding: 24px 32px; min-width: 220px;
  transition: transform .3s, box-shadow .3s;
}
.contact-card:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(0,0,0,.1); }
.contact-card img { width: 140px; height: 140px; object-fit: contain; border-radius: 8px; background: #fff; }
.contact-label { color: var(--gold-bright); font-weight: 700; font-size: 1.05rem; letter-spacing: .1em; }
.contact-hint { font-size: .82rem; color: var(--gray); }
.contact-tel { margin-top: 26px; font-size: .95rem; }
.contact-tel a { font-weight: 700; }

/* ---------- Footer ---------- */
.site-footer {
  margin-top: 56px; padding: 30px 16px 96px;
  background: var(--purple); color: #e8d9f2;
  font-size: .85rem; line-height: 2;
}

/* ---------- 浮動快捷鈕 ---------- */
.float-btns {
  position: fixed; right: 16px; bottom: 20px; z-index: 90;
  display: flex; flex-direction: column; gap: 12px;
}
.float-btn {
  width: 52px; height: 52px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: 0; cursor: pointer;
  box-shadow: 0 6px 18px rgba(0,0,0,.22);
  transition: transform .25s, opacity .25s;
}
.float-btn:hover { transform: scale(1.08); }
.float-btn svg { width: 28px; height: 28px; fill: #fff; }
.fb-line { background: #06c755; }
.fb-top { background: var(--gold); }
.fb-top[hidden] { display: none; }

/* ---------- 進場動畫 ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .product-img, .contact-card, .float-btn { transition: none; }
}

/* ============================================================
   RWD — 手機
   ============================================================ */
@media (max-width: 768px) {
  .nav-toggle { display: flex; }

  .site-nav {
    position: absolute; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid #ecdfc4;
    box-shadow: 0 12px 24px rgba(0,0,0,.08);
    max-height: 0; overflow: hidden; transition: max-height .3s ease;
  }
  .site-nav.open { max-height: 320px; }
  .site-nav a { padding: 14px 20px; border-top: 1px solid #f3ecd9; }
  .site-nav .nav-cta { border-radius: 0; margin: 0; }

  .hero { padding-top: 32px; }
  .hero-actions .btn { flex: 1 1 100%; justify-content: center; }

  .divider { margin: 26px auto; }
  .product { padding-top: 22px; }
  .dealer-terms li { flex-direction: column; gap: 2px; text-align: center; }
  .contact-card { flex: 1 1 100%; }
  .site-footer { padding-bottom: 110px; }
  .float-btn { width: 48px; height: 48px; }
}

@media (min-width: 1200px) {
  .hero { padding-top: 64px; }
}
