:root {
  --bg: #f5f5f7;
  --card: #fff;
  --text: #1d1d1f;
  --gray: #6e6e73;
  --line: #d2d2d7;
  --accent: #e08a00;
  --accent-dark: #b86e00;
  --radius: 18px;
  --shadow: 2px 4px 12px rgba(0, 0, 0, .08);
  --shadow-hover: 2px 4px 16px rgba(0, 0, 0, .16);
  --max: 1200px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro TC", "PingFang TC", "Noto Sans TC", "Microsoft JhengHei", sans-serif;
  background: var(--bg); color: var(--text); line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 22px; }

/* ===== 導覽列 ===== */
.nav {
  position: sticky; top: 0; z-index: 50; height: 48px;
  background: rgba(251, 251, 253, .8);
  backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, .06);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 100%; }
.brand { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; }
.brand img { width: 26px; height: 26px; }
.nav ul { display: flex; gap: 32px; list-style: none; font-size: 13px; }
.nav ul a { color: #333; opacity: .85; transition: opacity .2s; }
.nav ul a:hover, .nav ul a.active { opacity: 1; color: var(--accent-dark); }
.menu-btn { display: none; background: none; border: 0; font-size: 22px; cursor: pointer; color: var(--text); }

/* ===== 商店式標題 ===== */
.store-head { padding: 64px 0 40px; display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.store-head h1 { font-size: clamp(30px, 4.6vw, 56px); font-weight: 700; line-height: 1.12; letter-spacing: -.01em; max-width: 860px; }
.store-head h1 span { color: var(--gray); }
.store-head .side { font-size: 14px; color: var(--gray); }
.store-head .side a { color: var(--accent-dark); display: block; margin-top: 4px; }

/* ===== 分類圓圈 ===== */
.cats { display: flex; gap: 28px; overflow-x: auto; padding: 8px 0 32px; scrollbar-width: none; }
.cats::-webkit-scrollbar { display: none; }
.cat { flex: 0 0 auto; text-align: center; font-size: 14px; font-weight: 600; cursor: pointer; background: none; border: 0; color: var(--text); font-family: inherit; }
.cat img { width: 110px; height: 78px; object-fit: cover; border-radius: 12px; margin-bottom: 8px; transition: transform .3s; }
.cat:hover img { transform: scale(1.05); }
.cat small { display: block; font-weight: 400; color: var(--gray); font-size: 12px; }

/* ===== 區塊標題 ===== */
.sec-title { font-size: clamp(22px, 3vw, 28px); font-weight: 700; margin: 48px 0 20px; }
.sec-title span { color: var(--gray); }

/* ===== 橫向卡片列 ===== */
.shelf { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 22px; padding: 10px 22px 40px; margin: 0 -22px; scrollbar-width: none; }
.shelf::-webkit-scrollbar { display: none; }
.card {
  flex: 0 0 auto; scroll-snap-align: start; background: var(--card); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden; transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s;
  cursor: pointer; display: flex; flex-direction: column;
}
.card:hover { transform: scale(1.02); box-shadow: var(--shadow-hover); }
.card-hero { width: min(400px, 82vw); height: 500px; position: relative; color: #fff; }
.card-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.card-hero .txt { position: relative; padding: 28px; background: linear-gradient(rgba(0,0,0,.45), transparent); }
.card-hero.light { color: var(--text); }
.card-hero.light .txt { background: linear-gradient(rgba(255,255,255,.85), transparent); }
.eyebrow { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; opacity: .85; }
.card-hero h3 { font-size: 26px; line-height: 1.15; margin: 6px 0; }
.card-hero p { font-size: 15px; }

.card-p { width: min(300px, 70vw); }
.card-p .pic { aspect-ratio: 1; overflow: hidden; background: #fafafa; }
.card-p .pic img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.card-p:hover .pic img { transform: scale(1.04); }
.card-p .info { padding: 18px 20px 22px; }
.tag { font-size: 12px; color: var(--accent-dark); font-weight: 600; min-height: 18px; }
.card-p h3 { font-size: 19px; margin: 2px 0 4px; }
.card-p p { font-size: 14px; color: var(--gray); }

/* ===== 特色小卡 ===== */
.card-f { width: min(300px, 75vw); padding: 28px; cursor: default; }
.card-f .ico { font-size: 36px; margin-bottom: 14px; }
.card-f h3 { font-size: 21px; margin-bottom: 6px; }
.card-f p { font-size: 15px; color: var(--gray); }

/* ===== 全幅主視覺 ===== */
.tile { position: relative; min-height: 580px; display: flex; flex-direction: column; align-items: center; text-align: center; padding-top: 56px; overflow: hidden; margin-bottom: 12px; }
.tile > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; }
.tile h2 { font-size: clamp(36px, 6vw, 56px); font-weight: 700; line-height: 1.07; }
.tile p { font-size: clamp(19px, 2.4vw, 26px); margin-top: 8px; }
.tile .btns { margin-top: 18px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn { display: inline-block; padding: 10px 22px; border-radius: 980px; font-size: 16px; background: var(--accent); color: #fff; transition: background .2s; border: 1px solid var(--accent); }
.btn:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.btn.ghost { background: transparent; color: var(--accent-dark); }
.btn.ghost:hover { background: var(--accent); color: #fff; }

/* ===== 公司介紹 ===== */
.about { background: #fff; padding: 88px 0; margin-top: 40px; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.about h2 { font-size: clamp(32px, 4.5vw, 48px); line-height: 1.1; margin-bottom: 20px; }
.about h2 span { color: var(--accent); }
.about p { font-size: 17px; color: #424245; margin-bottom: 14px; }
.about img { border-radius: var(--radius); box-shadow: var(--shadow); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 28px; }
.stats b { display: block; font-size: 36px; color: var(--accent); line-height: 1.1; }
.stats span { font-size: 13px; color: var(--gray); }

/* ===== 聯絡 ===== */
.contact { padding: 88px 0; text-align: center; }
.contact h2 { font-size: clamp(30px, 4vw, 44px); margin-bottom: 10px; }
.contact p { color: var(--gray); font-size: 17px; }
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 36px; text-align: left; }
.contact-grid .card-f { width: auto; }

/* ===== 產品頁 ===== */
.filter { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 28px; }
.filter button {
  padding: 8px 18px; border-radius: 980px; border: 1px solid var(--line); background: #fff;
  font-size: 14px; cursor: pointer; font-family: inherit; color: var(--text); transition: all .2s;
}
.filter button.on, .filter button:hover { background: var(--text); color: #fff; border-color: var(--text); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px; padding-bottom: 80px; }
.grid .card-p { width: auto; }

/* ===== 彈窗 ===== */
.modal { position: fixed; inset: 0; z-index: 100; background: rgba(0,0,0,.45); display: none; align-items: center; justify-content: center; padding: 20px; backdrop-filter: blur(6px); }
.modal.open { display: flex; animation: fade .25s; }
.modal-box { background: #fff; border-radius: 24px; max-width: 880px; width: 100%; display: grid; grid-template-columns: 1fr 1fr; overflow: hidden; position: relative; max-height: 90vh; }
.modal-box img { width: 100%; height: 100%; object-fit: cover; }
.modal-box .info { padding: 44px 36px; overflow-y: auto; }
.modal-box h2 { font-size: 32px; line-height: 1.15; margin: 6px 0 14px; }
.modal-box p { color: #424245; font-size: 17px; margin-bottom: 24px; }
.close { position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(0,0,0,.06); font-size: 20px; cursor: pointer; z-index: 2; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* ===== 頁尾 ===== */
footer { background: var(--bg); border-top: 1px solid var(--line); padding: 28px 0 40px; font-size: 12px; color: var(--gray); }
footer .row { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
footer a:hover { text-decoration: underline; }

/* ===== 進場動畫 ===== */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .8s, transform .8s; }
.reveal.in { opacity: 1; transform: none; }

/* ===== RWD ===== */
@media (max-width: 834px) {
  .menu-btn { display: block; }
  .nav ul {
    position: absolute; top: 48px; left: 0; right: 0; flex-direction: column; gap: 0;
    background: rgba(251,251,253,.97); padding: 8px 22px 20px; font-size: 18px;
    display: none; border-bottom: 1px solid var(--line);
  }
  .nav ul.open { display: flex; }
  .nav ul li { padding: 12px 0; border-bottom: 1px solid #eee; }
  .about-grid, .modal-box { grid-template-columns: 1fr; }
  .modal-box img { max-height: 42vh; }
  .modal-box .info { padding: 28px 24px; }
  .contact-grid { grid-template-columns: 1fr; }
  .tile { min-height: 480px; }
}
@media (max-width: 480px) {
  .wrap { padding: 0 16px; }
  .shelf { padding: 10px 16px 32px; margin: 0 -16px; scroll-padding: 0 16px; }
  .store-head { padding: 40px 0 24px; }
  .card-hero { height: 420px; }
  .cat img { width: 88px; height: 64px; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .grid .card-p .info { padding: 12px 12px 16px; }
  .grid .card-p h3 { font-size: 16px; }
  .grid .card-p p { display: none; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } .reveal { opacity: 1; transform: none; } }
