/* 2026-11-01 永豐順官網(yfsfood.com 首頁)。版面照老闆的 Claude Design 稿,大部分樣式寫在 index.html 行內;
   這裡只放 hover、手機/桌機切換、FAQ、聯絡列這些行內寫不了或重複多的。獨立樣式,不吃 /common、/shop。 */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: #FDF8F2; }
img { max-width: 100%; }
a { color: #C0392B; }
a:hover { color: #9e2b20; }
.yfs-sec { scroll-margin-top: 84px; }
.yfs-link:hover { color: #C0392B !important; }
.yfs-btn { transition: transform .18s, box-shadow .18s; }
.yfs-btn:hover { transform: translateY(-2px); }
.yfs-card { transition: transform .2s; }
.yfs-card:hover { transform: translateY(-4px); }

/* 設計稿 900px 以下換手機版頂欄 */
.only-desktop { display: flex; }
.only-mobile { display: none; }
#mobileMenu { display: none; }
@media (max-width: 899px) {
  .only-desktop { display: none; }
  .only-mobile { display: flex; }
  #mobileMenu:not([hidden]) { display: flex; }
}

/* 動畫演示:沒輪到的泡泡藏起來(site.js 控制) */
[data-demo].is-off { display: none !important; }

/* 常備部位:窄手機字縮一點,「去骨雞腿」才不會擠出格子 */
@media (max-width: 420px) {
  .cuts { gap: 8px !important; }
  .cuts > div { padding: 14px 10px !important; min-height: 84px !important; }
  .cut-name { font-size: 16px !important; letter-spacing: 0 !important; }
}

/* FAQ:用原生 details,沒 JS 也能開合 */
.faq { background: #FDF8F2; border-radius: 18px; border: 1px solid #f0e4da; overflow: hidden; }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 22px; font-weight: 700; font-size: 16.5px; color: #1f1a17;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; flex-shrink: 0; line-height: 1;
  font-family: 'Baloo 2', sans-serif; font-weight: 700; font-size: 26px; color: #C0392B;
}
.faq[open] summary::after { content: "−"; }
.faq-a { padding: 0 22px 22px; font-size: 15px; line-height: 1.85; color: #6f6259; }

/* 聯絡區每一列 */
.c-row { display: flex; align-items: center; gap: 13px; color: #fff; text-decoration: none; }
.c-row:hover { color: #fff; }
.c-ico {
  flex-shrink: 0; width: 40px; height: 40px; border-radius: 12px; background: rgba(255,255,255,.16);
  display: flex; align-items: center; justify-content: center;
}
.c-pill {
  margin-left: auto; flex-shrink: 0; background: #fff; color: #C0392B;
  font-size: 13px; font-weight: 700; padding: 7px 13px; border-radius: 999px;
}
.a-no {
  flex-shrink: 0; width: 32px; height: 32px; border-radius: 50%; background: #FCEEEC; color: #C0392B;
  font-family: 'Baloo 2', sans-serif; font-weight: 800; font-size: 15px;
  display: flex; align-items: center; justify-content: center;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .yfs-btn, .yfs-card { transition: none; }
}

/* 下載 App 鈕(聯絡區紅底上) */
.store-btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: #1f1a17; color: #fff; text-decoration: none;
  padding: 10px 16px; border-radius: 12px; font-weight: 800; font-size: 15px; line-height: 1.15;
  transition: transform .18s;
}
.store-btn:hover { color: #fff; transform: translateY(-2px); }
.store-btn small { display: block; font-size: 11px; font-weight: 500; color: #cdbfb2; }

/* 「已經是客戶？直接下單」兩顆鈕 */
.cust-btn {
  flex: 1 1 140px; display: flex; align-items: center; justify-content: center;
  padding: 12px 0; border-radius: 12px; border: 1.5px solid #C0392B;
  color: #C0392B; background: #fff; font-weight: 800; font-size: 15px; text-decoration: none;
  transition: background .15s, color .15s;
}
.cust-btn:hover { background: #C0392B; color: #fff; }
