/* =========================================================
   蔡氏體育 B2C ｜共用樣式（日系乾淨風格）
   - 深綠品牌色 / 大面積留白 / 米白淡灰底 / 柔和陰影 / 圓角卡片 / 細線 icon
   - RWD：mobile <=767 / tablet 768-1023 / desktop >=1024 / wide >=1440
   ========================================================= */

/* ---------- Tokens ---------- */
:root {
  --green:       #33503f;
  --green-deep:  #26402f;
  --green-soft:  #f0f3ef;
  --green-line:  #5d7a68;

  --ink:         #232723;
  --ink-soft:    #5a605a;
  --ink-faint:   #8c918b;

  --bg:          #ffffff;
  --bg-cream:    #faf9f4;
  --bg-gray:     #f3f2ec;
  --bg-panel:    #f6f5ef;

  --line:        #e7e5dc;
  --line-soft:   #efeee7;

  --line-green:  #06c755; /* LINE 官方綠 */

  --shadow-sm:   0 2px 10px rgba(35,39,35,.04);
  --shadow:      0 8px 30px rgba(35,39,35,.06);
  --shadow-lg:   0 18px 50px rgba(35,39,35,.10);

  --r-sm: 10px;
  --r:    14px;
  --r-lg: 20px;
  --r-pill: 999px;

  --container: 1320px;
  --container-wide: 1440px;
  --container-text: 1040px;

  --pad-d: 40px;
  --pad-t: 28px;
  --pad-m: 20px;

  --serif: "Cormorant Garamond", "Noto Serif TC", Georgia, serif;
  --sans:  "Noto Sans TC", system-ui, -apple-system, "PingFang TC", "Microsoft JhengHei", sans-serif;

  --bottom-nav-h: 64px;
}

/* ---------- Reset ---------- */
*,*::before,*::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.75;
  font-weight: 400;
  letter-spacing: .01em;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1,h2,h3,h4 { margin: 0; font-weight: 700; line-height: 1.3; letter-spacing: .02em; }

/* ---------- Layout helpers ---------- */
.container       { width: min(100% - 80px, var(--container)); margin-inline: auto; }
.container-wide  { width: min(100% - 80px, var(--container-wide)); margin-inline: auto; }
.container-text  { width: min(100% - 80px, var(--container-text)); margin-inline: auto; }
@media (max-width: 768px){
  .container,.container-wide,.container-text { width: calc(100% - 40px); }
}

.eng { font-family: var(--serif); letter-spacing: .18em; text-transform: uppercase; font-weight: 500; }
.muted { color: var(--ink-soft); }
.section { padding: 84px 0; }
@media (max-width:767px){ .section { padding: 48px 0; } }

.center { text-align: center; }
.divider { width: 48px; height: 2px; background: var(--green); margin: 18px 0; border-radius: 2px; }
.divider.center { margin-inline: auto; }

/* ---------- Section heading ---------- */
.s-head { text-align: center; margin-bottom: 40px; }
.s-head h2 { font-size: clamp(22px, 2.4vw, 30px); }
.s-head p { color: var(--ink-soft); margin: 10px 0 0; font-size: 15px; }
.s-head .divider { margin: 16px auto 0; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; font-weight: 600;
  padding: 14px 26px; border-radius: var(--r-pill); transition: .25s ease; font-size: 15px;
  line-height: 1; white-space: nowrap; }
.btn svg { width: 16px; height: 16px; }
.btn-green { background: var(--green); color: #fff; }
.btn-green:hover { background: var(--green-deep); transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-ghost { border: 1px solid var(--line); color: var(--ink); background: #fff; }
.btn-ghost:hover { border-color: var(--green-line); color: var(--green); }
.btn-line { background: var(--line-green); color: #fff; }
.btn-line:hover { filter: brightness(.95); transform: translateY(-1px); }
.btn-block { width: 100%; justify-content: center; }
.btn-lg { padding: 17px 26px; font-size: 17px; }
.btn .badge-line { display: inline-grid; place-items: center; width: 22px; height: 22px;
  flex: 0 0 22px; line-height: 1; letter-spacing: 0;
  background: #fff; color: var(--line-green); border-radius: 6px; font-size: 9px; font-weight: 800; }
.btn-green .badge-line { background: rgba(255,255,255,.2); color:#fff; }

/* =========================================================
   Header（PC）
   ========================================================= */
.site-header { position: sticky; top: 0; z-index: 60; background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px); border-bottom: 1px solid var(--line-soft); }
.header-inner { display: flex; align-items: center; gap: 28px; height: 78px; }
.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand .mark { font-family: var(--serif); font-weight: 600; font-size: 30px; color: var(--green);
  letter-spacing: .04em; line-height: 1; }
.brand .mark.zh { font-family: "Noto Serif TC", serif; font-weight: 700; }
.brand .meta { line-height: 1.25; }
.brand .meta .name { font-size: 14px; font-weight: 600; color: var(--ink); letter-spacing: .04em; }
.brand .meta .since { font-family: var(--serif); font-size: 11px; letter-spacing: .22em; color: var(--ink-faint); }

.main-nav { display: flex; align-items: center; gap: 30px; margin-left: auto; }
.main-nav a { font-size: 15px; color: var(--ink-soft); font-weight: 500; position: relative; padding: 6px 0; transition: color .2s; }
.main-nav a:hover, .main-nav a.is-active { color: var(--green); }
.main-nav a.is-active::after { content:""; position:absolute; left:0; right:0; bottom:-2px; height:2px; background:var(--green); border-radius:2px; }

.header-tools { display: flex; align-items: center; gap: 16px; flex-shrink: 0; }
.icon-btn { display: grid; place-items: center; width: 40px; height: 40px; border-radius: var(--r-pill);
  color: var(--ink); transition: .2s; }
.icon-btn:hover { background: var(--bg-gray); color: var(--green); }
.icon-btn svg { width: 20px; height: 20px; }

/* hamburger / search 只在手機顯示 */
.mobile-tools { display: none; }

@media (max-width: 1023px){
  .header-inner { height: 64px; gap: 14px; }
  .main-nav, .header-tools .pc-only { display: none; }
  .brand .mark { font-size: 26px; }
  .mobile-tools { display: flex; align-items: center; gap: 6px; margin-left: auto; }
}

/* =========================================================
   Hero（共用基底）
   ========================================================= */
.hero { background: linear-gradient(180deg,#fbfbf8 0%, var(--bg-cream) 100%); }
.hero-grid { display: grid; grid-template-columns: 1fr 1.05fr; align-items: center; gap: 40px;
  min-height: 460px; padding: 56px 0; }
.hero-eyebrow { color: var(--ink-soft); font-size: 15px; letter-spacing: .12em; margin: 0 0 14px; }
.hero h1 { font-family: var(--serif); font-weight: 700; font-size: clamp(30px, 4.4vw, 52px); line-height: 1.28; color: var(--ink); }
.hero h1 .accent { color: var(--green); }
.hero-sub { color: var(--ink-soft); margin: 22px 0 28px; font-size: 16px; max-width: 30em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }

/* 商品/器材 placeholder 視覺面板 */
.media-stage { background: radial-gradient(120% 120% at 70% 30%, #ffffff 0%, #f2f1ea 100%);
  border-radius: var(--r-lg); border: 1px solid var(--line-soft); aspect-ratio: 16/11;
  display: grid; place-items: center; box-shadow: var(--shadow-sm); overflow: hidden; position: relative; }
.media-stage .gear { display: grid; grid-template-columns: repeat(3,1fr); gap: 26px; opacity: .5; padding: 40px; }
.media-stage .gear svg { width: 100%; height: auto; color: var(--ink-faint); }
.media-stage .ph-tag { position: absolute; bottom: 14px; right: 16px; font-size: 11px; letter-spacing:.1em;
  color: var(--ink-faint); background: rgba(255,255,255,.7); padding: 4px 10px; border-radius: var(--r-pill); }

@media (max-width: 1023px){
  .hero-grid { grid-template-columns: 1fr; gap: 26px; min-height: 0; padding: 36px 0 30px; }
  .hero-cta { flex-direction: column; align-items: flex-start; }
  .hero-cta .btn { width: 100%; justify-content: center; }
}

/* =========================================================
   情境推薦卡（首頁）
   ========================================================= */
.scene-cards { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.scene-card { position: relative; border-radius: var(--r); overflow: hidden; min-height: 150px;
  display: flex; align-items: flex-end; padding: 22px; color: #fff; box-shadow: var(--shadow-sm);
  background-size: cover; background-position: center; }
.scene-card::after { content:""; position:absolute; inset:0; background: linear-gradient(90deg, rgba(20,30,24,.78) 0%, rgba(20,30,24,.25) 70%); }
.scene-card.green::before, .scene-card.run::before, .scene-card.pickle::before { content:""; position:absolute; inset:0; }
.scene-card.run    { background: linear-gradient(120deg,#3a4a44,#9aa39c); }
.scene-card.green  { background: linear-gradient(120deg,#2f4a3a,#557060); }
.scene-card.pickle { background: linear-gradient(120deg,#8e948c,#c9cdc6); }
.scene-card .sc-body { position: relative; z-index: 2; }
.scene-card h3 { font-size: 20px; margin-bottom: 6px; }
.scene-card p { font-size: 13px; opacity: .9; margin: 0 0 14px; }
.scene-link { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600;
  border: 1px solid rgba(255,255,255,.6); padding: 7px 14px; border-radius: var(--r-pill); }
.scene-link:hover { background: rgba(255,255,255,.16); }
@media (max-width: 1023px){ .scene-cards { grid-template-columns: 1fr; } }

/* =========================================================
   依運動找商品（icon 卡）
   ========================================================= */
.sport-grid { display: grid; grid-template-columns: repeat(8,1fr); gap: 14px; }
.sport-card { background: var(--bg-cream); border: 1px solid var(--line-soft); border-radius: var(--r);
  padding: 22px 10px; text-align: center; transition: .22s; }
.sport-card:hover { background: #fff; border-color: var(--green-line); transform: translateY(-3px); box-shadow: var(--shadow); }
.sport-card svg { width: 34px; height: 34px; color: var(--green); margin: 0 auto 12px; }
.sport-card .zh { font-size: 14px; font-weight: 600; }
.sport-card .en { font-size: 10px; }
@media (max-width: 1023px){ .sport-grid { grid-template-columns: repeat(4,1fr); } }
@media (max-width: 600px){ .sport-grid { grid-template-columns: repeat(2,1fr); gap: 12px; } }

/* =========================================================
   服務信任條
   ========================================================= */
.trust-bar { background: var(--bg-cream); border: 1px solid var(--line-soft); border-radius: var(--r);
  display: grid; grid-template-columns: repeat(4,1fr); }
.trust-item { display: flex; gap: 14px; align-items: flex-start; padding: 26px 24px; }
.trust-item + .trust-item { border-left: 1px solid var(--line); }
.trust-item svg { width: 26px; height: 26px; color: var(--green); flex-shrink: 0; }
.trust-item .t { font-weight: 600; font-size: 15px; }
.trust-item .d { font-size: 13px; color: var(--ink-soft); }
@media (max-width: 1023px){
  .trust-bar { grid-template-columns: repeat(2,1fr); }
  .trust-item:nth-child(3) { border-left: 0; }
  .trust-item:nth-child(odd) { border-left: 0; }
  .trust-item { border-top: 1px solid var(--line); }
  .trust-item:nth-child(-n+2){ border-top: 0; }
}
@media (max-width: 480px){
  .trust-bar { grid-template-columns: 1fr; }
  .trust-item { border-left: 0 !important; border-top: 1px solid var(--line); }
  .trust-item:first-child { border-top: 0; }
}

/* =========================================================
   LINE 客服 CTA 區
   ========================================================= */
.line-cta { background: var(--green-soft); border: 1px solid #e1e8de; border-radius: var(--r-lg);
  display: flex; align-items: center; gap: 24px; padding: 28px 34px; flex-wrap: wrap; }
.line-cta .li-icon { width: 52px; height: 52px; border-radius: var(--r-pill); background: var(--line-green);
  display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 14px; flex-shrink: 0; }
.line-cta .li-text { flex: 1; min-width: 220px; }
.line-cta .li-text strong { display: block; font-size: 19px; color: var(--green-deep); }
.line-cta .li-text span { font-size: 14px; color: var(--ink-soft); }
.line-cta .li-id { font-family: var(--serif); letter-spacing: .08em; color: var(--green); font-size: 14px; }
@media (max-width: 767px){ .line-cta { padding: 22px; } .line-cta .btn { width: 100%; justify-content: center; } }

/* =========================================================
   Footer（PC）
   ========================================================= */
.site-footer { background: var(--bg-cream); border-top: 1px solid var(--line); padding: 60px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr 1.2fr; gap: 36px; }
.footer-brand .mark { font-family: "Noto Serif TC", serif; font-weight: 700; font-size: 30px; color: var(--green); }
.footer-brand .since { font-family: var(--serif); letter-spacing: .2em; font-size: 11px; color: var(--ink-faint); margin: 6px 0 14px; }
.footer-brand p { font-size: 13px; color: var(--ink-soft); max-width: 22em; }
.footer-col h4 { font-size: 14px; margin-bottom: 16px; color: var(--ink); }
.footer-col li { margin-bottom: 10px; }
.footer-col a { font-size: 13px; color: var(--ink-soft); }
.footer-col a:hover { color: var(--green); }
.social-row { display: flex; gap: 12px; }
.social-row a { width: 36px; height: 36px; border-radius: var(--r-pill); display: grid; place-items: center;
  border: 1px solid var(--line); color: var(--ink-soft); transition: .2s; }
.social-row a:hover { border-color: var(--green); color: var(--green); }
.social-row a.is-line { background: var(--line-green); border-color: var(--line-green); color: #fff; }
.social-row svg { width: 18px; height: 18px; }
.shop-loc .btn { margin-top: 14px; }
.footer-bottom { border-top: 1px solid var(--line); margin-top: 48px; padding: 20px 0; text-align: center;
  font-size: 12px; color: var(--ink-faint); }
@media (max-width: 1023px){ .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px){ .footer-grid { grid-template-columns: 1fr; gap: 28px; } }

/* footer 在手機長頁時，預留 sticky nav 空間 */
.has-bottom-nav .site-footer { margin-bottom: 0; }

/* =========================================================
   手機 sticky bottom nav
   ========================================================= */
.bottom-nav { display: none; }
@media (max-width: 1023px){
  .bottom-nav { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
    background: #fff; border-top: 1px solid var(--line); height: var(--bottom-nav-h);
    box-shadow: 0 -6px 24px rgba(35,39,35,.06); }
  .bottom-nav a { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 3px; font-size: 11px; color: var(--ink-soft); }
  .bottom-nav a svg { width: 20px; height: 20px; }
  .bottom-nav a.is-active { color: var(--green); }
  .bottom-nav .nav-line { transform: translateY(-16px); }
  .bottom-nav .nav-line .blob { width: 56px; height: 56px; border-radius: var(--r-pill); background: var(--green);
    color: #fff; display: grid; place-items: center; box-shadow: 0 8px 20px rgba(51,80,63,.4);
    border: 4px solid #fff; font-weight: 800; font-size: 11px; line-height: 1.1; text-align: center; }
  .bottom-nav .nav-line .blob span { font-family: var(--serif); letter-spacing: .04em; font-size: 12px; }
  .bottom-nav .nav-line .lbl { color: var(--green); font-weight: 600; }
  .has-bottom-nav { padding-bottom: var(--bottom-nav-h); }
}

/* =========================================================
   手機展開選單（off-canvas）
   ========================================================= */
.menu-overlay { position: fixed; inset: 0; background: rgba(35,39,35,.4); z-index: 90; opacity: 0;
  visibility: hidden; transition: .25s; }
.menu-overlay.open { opacity: 1; visibility: visible; }
.mobile-menu { position: fixed; top: 0; right: 0; height: 100%; width: min(92%, 420px); background: #fff;
  z-index: 100; transform: translateX(100%); transition: transform .3s cubic-bezier(.4,0,.2,1);
  display: flex; flex-direction: column; overflow-y: auto; box-shadow: -10px 0 40px rgba(0,0,0,.12); }
.mobile-menu.open { transform: translateX(0); }
.mm-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid var(--line-soft); }
.mm-head .brand .mark { font-size: 24px; }
.mm-search { margin: 16px 20px; }
.mm-list { padding: 0 8px; }
.mm-list > li > a, .mm-list > li > button { width: 100%; display: flex; align-items: center; gap: 14px;
  padding: 16px 12px; font-size: 16px; font-weight: 500; color: var(--ink); justify-content: flex-start; }
.mm-list > li > button .plus { margin-left: auto; font-size: 20px; color: var(--ink-faint); }
.mm-list > li > a svg, .mm-list > li > button svg.lead { width: 20px; height: 20px; color: var(--green-line); }
.mm-list > li { border-bottom: 1px solid var(--line-soft); }
.mm-line-card { margin: 18px 20px; background: var(--green-soft); border: 1px solid #d7e2d4;
  border-radius: var(--r); padding: 18px; }
.mm-line-card .top { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 12px; }
.mm-line-card .li-icon { width: 44px; height: 44px; border-radius: var(--r-pill); background: var(--line-green);
  display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 12px; flex-shrink: 0; }
.mm-line-card strong { display: block; font-size: 16px; color: var(--green-deep); }
.mm-line-card p { font-size: 13px; color: var(--ink-soft); margin: 2px 0 0; }
.mm-social { display: flex; gap: 14px; padding: 0 20px 30px; align-items: center; }
.mm-social a { width: 38px; height: 38px; border-radius: var(--r-pill); display: grid; place-items: center;
  border: 1px solid var(--line); color: var(--ink-soft); }
.mm-social a.is-line { background: var(--line-green); border-color: var(--line-green); color: #fff; order: -1; }
.mm-social svg { width: 18px; height: 18px; }

/* =========================================================
   Breadcrumb
   ========================================================= */
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-faint); flex-wrap: wrap; }
.breadcrumb a:hover { color: var(--green); }
.breadcrumb .sep { opacity: .5; }
.back-link { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink-soft); font-weight: 500; }
.back-link:hover { color: var(--green); }
.back-link svg { width: 16px; height: 16px; }

/* =========================================================
   分類卡（總覽 / 子分類）
   ========================================================= */
.cat-search { position: relative; margin: 0 0 30px; }
.cat-search input { width: 100%; border: 1px solid var(--line); border-radius: var(--r-pill);
  padding: 16px 20px 16px 52px; font-size: 15px; background: #fff; font-family: inherit; color: var(--ink); }
.cat-search input:focus { outline: none; border-color: var(--green-line); box-shadow: 0 0 0 4px rgba(51,80,63,.08); }
.cat-search svg { position: absolute; left: 20px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; color: var(--ink-faint); }

.cat-grid { display: grid; grid-template-columns: repeat(5,1fr); gap: 16px; }
.cat-card { display: flex; align-items: center; gap: 14px; background: #fff; border: 1px solid var(--line);
  border-radius: var(--r); padding: 14px 16px; transition: .22s; }
.cat-card:hover { border-color: var(--green-line); box-shadow: var(--shadow); transform: translateY(-2px); }
.cat-thumb { width: 56px; height: 56px; border-radius: var(--r-sm); background: var(--bg-panel);
  display: grid; place-items: center; flex-shrink: 0; }
.cat-thumb svg { width: 30px; height: 30px; color: var(--green-line); }
.cat-card .info { flex: 1; }
.cat-card .zh { font-size: 16px; font-weight: 600; }
.cat-card .en { font-size: 11px; }
.cat-card .arrow { color: var(--ink-faint); width: 18px; height: 18px; flex-shrink: 0; }
.cat-card:hover .arrow { color: var(--green); }
@media (max-width: 1023px){ .cat-grid { grid-template-columns: repeat(3,1fr); } }
@media (max-width: 767px){ .cat-grid { grid-template-columns: repeat(2,1fr); gap: 12px; } .cat-card{ padding:12px; } }
@media (max-width: 420px){ .cat-grid { grid-template-columns: 1fr; } }

/* 子分類大卡 */
.subcat-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 16px; }
.subcat-grid .full { grid-column: 1 / -1; }
@media (max-width: 600px){ .subcat-grid { grid-template-columns: 1fr; } }

/* =========================================================
   商品列表
   ========================================================= */
.list-layout { display: grid; grid-template-columns: 240px 1fr; gap: 32px; align-items: start; }
.filter-side { position: sticky; top: 100px; }
.filter-block { border-bottom: 1px solid var(--line-soft); padding: 18px 0; }
.filter-block:first-child { padding-top: 0; }
.filter-block h4 { font-size: 15px; margin-bottom: 12px; }
.filter-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.filter-head .clear { font-size: 12px; color: var(--ink-faint); }
.filter-opt { display: flex; align-items: center; gap: 10px; padding: 6px 0; font-size: 14px; color: var(--ink-soft); }
.filter-opt input { accent-color: var(--green); width: 15px; height: 15px; }
.filter-opt .count { color: var(--ink-faint); font-size: 12px; }
.price-row { display: flex; align-items: center; gap: 8px; }
.price-row input { width: 100%; border: 1px solid var(--line); border-radius: var(--r-sm); padding: 8px 10px; font-size: 13px; }
.range { width: 100%; accent-color: var(--green); margin-top: 12px; }

.list-toolbar { display: flex; align-items: center; gap: 16px; margin-bottom: 22px; }
.list-toolbar .cat-search { flex: 1; margin: 0; }
.list-toolbar .sort { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink-soft); }
.list-toolbar select { border: 1px solid var(--line); border-radius: var(--r-sm); padding: 9px 12px; font-family: inherit; font-size: 14px; color: var(--ink); background:#fff; }

.product-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; }
.product-card { border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: #fff; transition: .22s; display: flex; flex-direction: column; }
.product-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.pc-media { position: relative; background: var(--bg-panel); aspect-ratio: 1/1; display: grid; place-items: center; }
.pc-media svg { width: 46%; height: 46%; color: var(--ink-faint); opacity: .55; }
.pc-tag { position: absolute; top: 10px; left: 10px; background: var(--green); color: #fff; font-size: 11px;
  font-weight: 600; padding: 4px 10px; border-radius: var(--r-pill); letter-spacing: .06em; }
.pc-body { padding: 16px; display: flex; flex-direction: column; flex: 1; }
.pc-brand { font-family: var(--serif); letter-spacing: .12em; font-size: 12px; color: var(--ink-soft); text-transform: uppercase; font-weight: 600; }
.pc-name { font-size: 15px; font-weight: 600; margin: 4px 0 2px; }
.pc-model { font-size: 12px; color: var(--ink-faint); }
.pc-spec { font-size: 12px; color: var(--ink-soft); margin: 8px 0; }
.pc-price { font-size: 18px; font-weight: 700; color: var(--ink); margin-top: auto; }
.pc-actions { display: flex; gap: 8px; margin-top: 12px; }
.pc-actions .btn { flex: 1; padding: 9px 8px; font-size: 13px; }
.pc-actions .btn-ghost { gap: 6px; }
.pc-actions .btn-line { gap: 6px; }

.pager { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 32px; }
.pager a, .pager span { min-width: 38px; height: 38px; display: grid; place-items: center; border-radius: var(--r-sm);
  border: 1px solid var(--line); font-size: 14px; color: var(--ink-soft); padding: 0 8px; }
.pager .cur { background: var(--green); color: #fff; border-color: var(--green); }
.pager a:hover { border-color: var(--green-line); color: var(--green); }
.list-count { font-size: 13px; color: var(--ink-soft); margin-bottom: 14px; }

/* 列表中 LINE 推薦條 */
.line-strip { display: flex; align-items: center; gap: 20px; background: var(--bg-panel); border: 1px solid var(--line-soft);
  border-radius: var(--r); padding: 20px 26px; margin: 26px 0; flex-wrap: wrap; }
.line-strip .li-icon { width: 46px; height: 46px; border-radius: var(--r-pill); background: var(--line-green);
  display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 12px; flex-shrink: 0; }
.line-strip .txt { flex: 1; min-width: 200px; }
.line-strip strong { display: block; font-size: 17px; }
.line-strip span { font-size: 13px; color: var(--ink-soft); }

/* 手機篩選膠囊 */
.filter-pills { display: none; }
@media (max-width: 1023px){
  .list-layout { grid-template-columns: 1fr; }
  .filter-side { display: none; }
  .product-grid { grid-template-columns: 1fr; }
  .list-toolbar { display: none; }
  .filter-pills { display: flex; gap: 10px; overflow-x: auto; padding: 4px 0 8px; margin-bottom: 8px; -webkit-overflow-scrolling: touch; }
  .filter-pills::-webkit-scrollbar { display: none; }
  .filter-pills button { flex-shrink: 0; border: 1px solid var(--line); border-radius: var(--r-pill);
    padding: 9px 18px; font-size: 14px; color: var(--ink-soft); background: #fff; display: inline-flex; gap: 6px; align-items: center; }
  .filter-pills button svg { width: 14px; height: 14px; }
  /* 手機商品卡橫式 */
  .product-card { flex-direction: row; }
  .pc-media { width: 130px; flex-shrink: 0; aspect-ratio: auto; }
  .pc-body { flex: 1; }
}

/* =========================================================
   商品詳細頁
   ========================================================= */
.pd-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: start; }
.pd-gallery .main { background: var(--bg-panel); border-radius: var(--r-lg); aspect-ratio: 1/1; display: grid; place-items: center; position: relative; }
.pd-gallery .main svg.shoe { width: 60%; height: 60%; color: var(--ink-faint); opacity: .55; }
.pd-gallery .count { position: absolute; top: 16px; right: 16px; background: rgba(35,39,35,.6); color: #fff;
  font-size: 12px; padding: 4px 12px; border-radius: var(--r-pill); }
.pd-gallery .arrow-btn { position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px;
  border-radius: var(--r-pill); background: #fff; box-shadow: var(--shadow); display: grid; place-items: center; color: var(--ink); }
.pd-gallery .arrow-btn.l { left: 12px; } .pd-gallery .arrow-btn.r { right: 12px; }
.pd-gallery .arrow-btn svg { width: 18px; height: 18px; }
.pd-thumbs { display: flex; gap: 10px; margin-top: 14px; }
.pd-thumbs .th { width: 76px; height: 76px; border-radius: var(--r-sm); background: var(--bg-panel);
  border: 2px solid transparent; display: grid; place-items: center; cursor: pointer; }
.pd-thumbs .th.active { border-color: var(--green); }
.pd-thumbs .th svg { width: 60%; height: 60%; color: var(--ink-faint); opacity: .5; }

.pd-brand { display: flex; align-items: center; gap: 8px; color: #2557a7; font-weight: 700; letter-spacing: .04em; }
.pd-title { font-size: clamp(24px,3vw,34px); margin: 8px 0 4px; }
.pd-model { font-size: 13px; color: var(--ink-faint); }
.pd-price { font-size: 30px; font-weight: 700; color: var(--green); margin: 16px 0; }
.pd-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 20px; }
.pd-tags .tag { font-size: 13px; padding: 7px 14px; border-radius: var(--r-pill); border: 1px solid var(--line); color: var(--ink-soft); }
.pd-tags .tag.stock { background: var(--green-soft); border-color: #d4e0d0; color: var(--green-deep); }
.pd-tags .tag.try   { background: #fdf6ea; border-color: #f0e3c6; color: #9a7b2e; }

.pd-cta-note { font-size: 13px; color: var(--ink-faint); text-align: center; margin: 12px 0 0; }

.pd-points { display: grid; grid-template-columns: repeat(4,1fr); gap: 6px; background: var(--bg-cream);
  border: 1px solid var(--line-soft); border-radius: var(--r); padding: 18px 8px; margin: 22px 0; }
.pd-points .pt { text-align: center; padding: 6px; }
.pd-points .pt + .pt { border-left: 1px solid var(--line); }
.pd-points svg { width: 26px; height: 26px; color: var(--green); margin: 0 auto 8px; }
.pd-points .t { font-size: 14px; font-weight: 600; }
.pd-points .d { font-size: 11px; color: var(--ink-soft); }

.spec-table { width: 100%; border-collapse: collapse; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.spec-table th, .spec-table td { text-align: left; padding: 13px 16px; font-size: 14px; border-bottom: 1px solid var(--line-soft); }
.spec-table th { background: var(--bg-cream); color: var(--ink-soft); font-weight: 600; width: 110px; white-space: nowrap; }
.spec-table tr:last-child th, .spec-table tr:last-child td { border-bottom: 0; }
.spec-title { font-size: 18px; margin: 8px 0 14px; }

.store-card { display: flex; gap: 18px; align-items: center; background: var(--bg-cream); border: 1px solid var(--line-soft);
  border-radius: var(--r); padding: 18px; margin-top: 22px; flex-wrap: wrap; }
.store-card .pic { width: 120px; height: 90px; border-radius: var(--r-sm); background: linear-gradient(120deg,#2f4a3a,#5b7565); flex-shrink: 0; display:grid; place-items:center; color:#fff; font-family:"Noto Serif TC",serif; font-weight:700; }
.store-card .txt { flex: 1; min-width: 200px; }
.store-card strong { font-size: 16px; }
.store-card p { font-size: 13px; color: var(--ink-soft); margin: 4px 0 10px; }

.related { margin-top: 56px; }
.related-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 18px; }
.related-head h3 { font-size: 20px; }
.related-head a { font-size: 13px; color: var(--green); }
.related-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; }
@media (max-width: 1023px){
  .pd-layout { grid-template-columns: 1fr; gap: 24px; }
  .pd-points { grid-template-columns: repeat(2,1fr); }
  .pd-points .pt:nth-child(odd){ border-left: 0; }
  .pd-points .pt:nth-child(3),.pd-points .pt:nth-child(4){ border-top: 1px solid var(--line); }
  .related-grid { grid-template-columns: repeat(2,1fr); }
}

/* 詳細頁手機底部行動條 */
.pd-bottombar { display: none; }
@media (max-width: 1023px){
  .pd-bottombar { display: flex; gap: 12px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
    background: #fff; border-top: 1px solid var(--line); padding: 10px 16px; box-shadow: 0 -6px 24px rgba(35,39,35,.08); }
  .pd-bottombar .btn-back { flex: 0 0 auto; border: 1px solid var(--line); border-radius: var(--r-pill);
    padding: 12px 16px; font-size: 14px; color: var(--ink-soft); display: inline-flex; align-items: center; gap: 6px; }
  .pd-bottombar .btn-line { flex: 1; }
  .pd-has-bottombar { padding-bottom: 78px; }
}

/* =========================================================
   Landing Page（引導頁）
   ========================================================= */
/* ---------- 手機優先（對應手機設計圖：純白底＋直式器材圖＋綠色標題＋白卡入口） ---------- */
.landing { min-height: 100vh; background: var(--bg-cream); display: flex; flex-direction: column; position: relative; }
.landing-header { display: flex; align-items: center; justify-content: space-between; padding: 20px 0; position: relative; z-index: 3; }
.landing-main { flex: 1; display: flex; flex-direction: column; padding: 6px 0 30px; position: relative; z-index: 2; }
.landing-copy h1 { font-family: var(--serif); font-weight: 700; font-size: clamp(30px,8.4vw,40px); line-height: 1.3; color: var(--green-deep); }
.landing-copy .slash { font-family: var(--serif); font-size: 38px; line-height: 1; color: var(--ink-faint); margin: 6px 0 16px; }
.landing-copy .lead { color: var(--ink-soft); font-size: 15px; line-height: 1.85; max-width: 26em; margin: 0; }

/* 器材主視覺圖（手機：文件流；桌機：改用背景圖故隱藏） */
.landing-media { margin: 22px 0 26px; }
.landing-media img { display: block; width: 100%; height: auto; }

/* 入口（手機：白色卡片，橫向排列） */
.entry-row { display: flex; flex-direction: column; gap: 14px; }
.entry { border: 1px solid var(--line); border-radius: var(--r); background: #fff; }
.entry a { display: flex; align-items: center; gap: 16px; padding: 18px 20px; }
.entry .e-left { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; flex-shrink: 0; }
.entry .kind { font-family: var(--serif); letter-spacing: .16em; font-size: 13px; color: var(--ink-faint); }
.entry .ico { width: 30px; height: 30px; color: var(--green); }
.entry .e-body { flex: 1; }
.entry .e-body h3 { font-size: 19px; }
.entry .e-body p { font-size: 13px; color: var(--ink-soft); margin: 2px 0 0; }
.entry .go { width: 44px; height: 44px; border-radius: var(--r-pill); border: 1px solid var(--green-line); color: var(--green);
  display: grid; place-items: center; flex-shrink: 0; transition: .25s; }
.entry a:hover .go { background: var(--green); color: #fff; }

.scroll-hint { font-family: var(--serif); letter-spacing: .2em; font-size: 12px; color: var(--ink-faint); margin-top: 34px; display: none; flex-direction: column; gap: 8px; }
.scroll-hint .line { width: 1px; height: 34px; background: var(--ink-faint); }

.landing-foot { text-align: center; padding: 30px 0 26px; }
.landing-foot .since { font-family: var(--serif); letter-spacing: .2em; font-size: 15px; color: var(--ink-soft); }
.landing-foot p { font-size: 13px; color: var(--ink-faint); margin: 8px 0 0; }
.landing-foot .foot-line { display: block; width: 1px; height: 30px; background: var(--ink-faint); opacity: .5; margin: 22px auto 0; }

/* ---------- 桌機（對應 PC 設計圖：滿版橫式器材圖背景＋黑色標題＋兩欄入口＋左下 SCROLL） ---------- */
@media (min-width: 1024px){
  .landing {
    background-image:
      linear-gradient(95deg, rgba(250,249,244,.96) 0%, rgba(250,249,244,.82) 28%, rgba(250,249,244,.30) 50%, rgba(250,249,244,0) 66%),
      url(../img/hero-pc.png);
    background-size: cover, cover;
    background-position: center, center right;
    background-repeat: no-repeat, no-repeat;
  }
  .landing-header { padding: 28px 0; }
  .landing-main { padding: 4vh 0 5vh; }
  .landing-copy { margin-top: 3vh; max-width: 600px; }
  .landing-copy h1 { font-size: clamp(40px,4.4vw,58px); line-height: 1.26; color: var(--ink); }
  .landing-copy .slash { font-size: 40px; margin: 8px 0 20px; }
  .landing-copy .lead { font-size: 16px; }

  .landing-media { display: none; }

  .entry-row { flex-direction: row; gap: 0; border-top: 1px solid var(--line); max-width: 520px; margin-top: auto; }
  .entry { flex: 1; border: 0; border-radius: 0; background: transparent; }
  .entry + .entry { border-left: 1px solid var(--line); }
  .entry a { flex-direction: column; align-items: flex-start; gap: 0; padding: 26px 26px 26px 0; }
  .entry + .entry a { padding-left: 38px; }
  .entry .e-left { gap: 0; }
  .entry .ico { margin: 14px 0; }
  .entry .e-body h3 { font-size: 20px; }
  .entry .e-body p { margin: 4px 0 0; }
  .entry .go { margin-top: 20px; }

  .scroll-hint { display: flex; margin-top: 40px; }
  .landing-foot { display: none; }
}

/* ---------- 進場動畫 ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.rise { animation: rise .7s cubic-bezier(.2,.7,.3,1) both; }
.d1{animation-delay:.05s}.d2{animation-delay:.15s}.d3{animation-delay:.25s}.d4{animation-delay:.35s}

/* =========================================================
   前台修正 v1.0（2026-06-02）
   ========================================================= */

/* ---- Landing：PC 版 B2C / B2B 兩欄高度與箭頭對齊（規格 §5.2） ---- */
@media (min-width: 1024px){
  .entry { display: flex; }
  .entry a { flex: 1; min-height: 196px; justify-content: flex-start; }
  .entry .e-body { min-height: 62px; }   /* 預留兩行說明，使兩欄標題位置一致 */
  .entry .go { margin-top: auto; }
}

/* ---- B2C 首頁 Hero：滿版背景形象圖（規格 §6） ---- */
.b2c-hero{
  position: relative;
  min-height: clamp(540px, 70vh, 800px);
  display: flex;
  align-items: center;
  background-image:
    linear-gradient(95deg, rgba(250,249,244,.95) 0%, rgba(250,249,244,.82) 30%, rgba(250,249,244,.40) 56%, rgba(250,249,244,0) 78%),
    url(../img/hero-pc.png);
  background-size: cover, cover;
  background-position: center, center right;
  background-repeat: no-repeat, no-repeat;
}
.b2c-hero .hero-inner{
  width: min(100% - 80px, var(--container));
  margin-inline: auto;
  max-width: 640px;
  padding: 40px 0;
}
.b2c-hero .hero-eyebrow{ color: var(--green); font-weight: 600; letter-spacing: .04em; margin: 0 0 14px; }
.b2c-hero .hero-title{
  font-family: var(--serif); font-weight: 700;
  font-size: clamp(32px, 4.4vw, 54px); line-height: 1.26; color: var(--ink); margin: 0;
}
.b2c-hero .hero-title .accent{ color: var(--green); }
.b2c-hero .hero-sub{ color: var(--ink-soft); font-size: 16px; line-height: 1.9; margin: 20px 0 0; max-width: 30em; }
.b2c-hero .hero-cta{ display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }

@media (max-width: 1023px){
  .b2c-hero{
    min-height: 600px;
    background-image:
      linear-gradient(180deg, rgba(250,249,244,.86) 0%, rgba(250,249,244,.40) 42%, rgba(250,249,244,.78) 100%),
      url(../img/hero-mobile.png);
    background-position: center, center top;
  }
  .b2c-hero .hero-inner{ width: min(100% - 40px, 100%); max-width: 100%; }
  .b2c-hero .hero-sub{ font-size: 15px; }
}
