/* 樂賣官網首頁（階段 399 改版，A 版：滿版大圖＋三大段交錯）
   只給 official/index.html 用；其他頁仍吃 shared.css。
   改這支一律 bump index.html 的 home.css?v= */

:root {
  --coral: #FF8A80;          /* 品牌珊瑚：只當底色（配深字）或深底上的強調 */
  --coral-cta: #C4473D;      /* 按鈕／小標：白字對比約 4.8:1（原 #FF8A80＋白字只有 2.3:1） */
  --coral-cta-hover: #A9382F;
  --ink: #2D1F1B;
  --ink-2: #4A3A35;
  --ink-soft: #6E5A53;       /* 白底約 6.5:1 */
  --bg: #FFFFFF;
  --bg-soft: #FFF8F4;
  --bg-warm: #FCEFE8;
  --line: #F0DFD5;
  --on-dark: #E9DCD6;
  --glass: rgba(255, 252, 250, 0.78);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Noto Sans TC', -apple-system, BlinkMacSystemFont, 'PingFang TC', 'Microsoft JhengHei', sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
section[id] { scroll-margin-top: 84px; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--coral-cta); outline-offset: 3px; }

.h-wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 40px; }

.h-eyebrow { margin: 0; font-size: 14px; font-weight: 700; letter-spacing: 0.14em; color: var(--coral-cta); }
.h-link { font-weight: 700; color: var(--coral-cta); text-decoration: none; }
.h-link:hover { text-decoration: underline; }

/* ===== 按鈕 ===== */
.h-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 54px; padding: 0 30px; border-radius: 999px;
  font-size: 17px; font-weight: 700; text-decoration: none; white-space: nowrap;
  border: 2px solid transparent; transition: background .15s, color .15s, border-color .15s;
}
.h-btn svg { width: 18px; height: 18px; flex: none; }
.h-btn-primary { background: var(--coral-cta); color: #fff; }
.h-btn-primary:hover { background: var(--coral-cta-hover); }
.h-btn-ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.h-btn-ghost:hover { background: var(--ink); color: #fff; }
.h-btn-sm { min-height: 46px; padding: 0 22px; font-size: 15px; }

/* ===== ① 導覽列 ===== */
.h-nav { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--line); }
.h-nav-inner { display: flex; align-items: center; gap: 36px; min-height: 84px; }
.h-nav-brand { display: flex; }
.h-nav-brand img { height: 40px; width: auto; }
.h-nav-links { display: flex; gap: 36px; margin-left: auto; font-size: 16px; font-weight: 500; }
.h-nav-links a { text-decoration: none; }
.h-nav-links a:hover { color: var(--coral-cta); }
.h-nav-actions { display: flex; gap: 12px; }
.h-menu-btn {
  display: none; width: 44px; height: 44px; padding: 0; border: 1.5px solid var(--line); border-radius: 12px;
  background: #fff; cursor: pointer; flex-direction: column; justify-content: center; align-items: center; gap: 4px;
}
.h-menu-btn span { display: block; width: 18px; height: 2px; border-radius: 2px; background: var(--ink); transition: transform .2s, opacity .2s; }
.h-nav.is-open .h-menu-btn span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.h-nav.is-open .h-menu-btn span:nth-child(2) { opacity: 0; }
.h-nav.is-open .h-menu-btn span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.h-menu-panel { display: none; }

/* ===== ② Hero ===== */
.h-hero { position: relative; min-height: 760px; display: flex; align-items: flex-end; overflow: hidden; background: var(--bg-warm); }
.h-hero-media, .h-hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; }
.h-hero-media img { object-fit: cover; object-position: 70% center; }
.h-hero .h-wrap { position: relative; padding-top: 120px; padding-bottom: 88px; }
.h-card {
  background: var(--glass);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-radius: 24px; box-shadow: 0 24px 60px rgba(45, 31, 27, 0.12);
  display: flex; flex-direction: column;
}
.h-hero-card { max-width: 560px; padding: 48px 48px 40px; gap: 18px; }
.h-hero-title { margin: 0; font-size: 80px; line-height: 1.02; font-weight: 900; letter-spacing: -0.01em; }
.h-hero-sub { margin: 0; font-size: 20px; line-height: 1.65; color: var(--ink-2); }
.h-hero-sub b { color: var(--ink); }
.h-hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 6px; }
.h-trust { margin: 4px 0 0; font-size: 14px; color: var(--ink-soft); }
.h-trust b { color: var(--ink); }
.h-stars { color: var(--coral-cta); letter-spacing: 1px; }
.h-nowrap { white-space: nowrap; }

/* 流程條 */
.h-flow { background: var(--ink); color: #fff; }
.h-flow .h-wrap { display: flex; align-items: center; gap: 28px; min-height: 108px; flex-wrap: wrap; }
.h-flow-note { font-size: 15px; color: var(--on-dark); margin-right: auto; }
.h-flow-step { font-size: 26px; font-weight: 900; }
.h-flow svg { width: 28px; height: 14px; flex: none; }

/* ===== ④ 功能 ===== */
.h-feat-head { padding: 128px 0 48px; }
.h-feat-head .h-wrap { display: flex; flex-direction: column; gap: 14px; }
.h-h2 { margin: 0; font-size: 56px; line-height: 1.18; font-weight: 900; letter-spacing: -0.01em; }
.h-row { padding: 48px 0; }
.h-row:last-of-type { padding-bottom: 128px; }
.h-row .h-wrap { display: flex; gap: 72px; align-items: center; }
.h-row-reverse .h-wrap { flex-direction: row-reverse; }
.h-row-media { flex: 3 1 0; min-width: 0; }
.h-row-media img { width: 100%; height: auto; aspect-ratio: 5 / 4; object-fit: cover; border-radius: 28px; }
.h-row-text { flex: 2 1 0; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.h-h3 { margin: 0; font-size: 40px; line-height: 1.22; font-weight: 900; }
.h-feat-list { list-style: none; margin: 6px 0 0; padding: 0; border-top: 1px solid var(--line); }
.h-feat-list li { display: flex; align-items: center; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--line); font-size: 20px; font-weight: 700; }
.h-feat-list svg { width: 22px; height: 22px; flex: none; color: var(--coral-cta); }

/* Web 後台橫幅 */
.h-banner { position: relative; min-height: 600px; display: flex; align-items: center; overflow: hidden; background: var(--bg-warm); }
.h-banner > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 75% center; }
.h-banner .h-wrap { position: relative; }
.h-banner-card { max-width: 460px; padding: 44px; gap: 16px; }
.h-banner-card p.h-desc { margin: 0; font-size: 17px; line-height: 1.75; color: var(--ink-soft); }

/* ===== ⑤ 方案（沿用原本的 .pricing-features 清單標記） ===== */
.h-pricing { padding: 128px 0; background: var(--bg-soft); }
.h-center-head { text-align: center; display: flex; flex-direction: column; gap: 14px; margin-bottom: 56px; }
.h-center-head .h-note { margin: 0; color: var(--ink-soft); font-size: 16px; }
.h-br-m { display: none; }
.h-plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; align-items: stretch; }
.h-plan {
  position: relative; background: #fff; border: 1px solid var(--line); border-radius: 24px;
  padding: 40px 36px; display: flex; flex-direction: column; gap: 12px;
}
.h-plan-featured { border: 2px solid var(--coral-cta); box-shadow: 0 24px 60px rgba(196, 71, 61, 0.14); }
.h-plan-badge {
  position: absolute; top: -16px; left: 36px; background: var(--coral); color: var(--ink);
  font-size: 13px; font-weight: 700; padding: 6px 14px; border-radius: 999px;
}
.h-plan-name { margin: 0; font-size: 22px; font-weight: 700; }
.h-plan-tag { margin: 0; color: var(--ink-soft); }
.h-plan-price { font-size: 48px; font-weight: 900; line-height: 1.1; }
.h-plan-price small { font-size: 16px; font-weight: 500; color: var(--ink-soft); }
.h-plan-annual { font-size: 14px; color: var(--ink-soft); }
.h-plan .pricing-features { list-style: none; margin: 8px 0 12px; padding: 16px 0 0; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.h-plan .pricing-features li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; line-height: 1.6; }
.h-plan .pf-icon { flex: none; width: 18px; height: 18px; margin-top: 3px; color: var(--coral-cta); }
.h-plan .pf-icon svg { width: 18px; height: 18px; display: block; }
.h-plan .pf-no { color: #9C8880; }
.h-plan .pf-no .pf-icon { color: #B7A39B; }
.h-plan .pf-group { font-size: 13px; font-weight: 700; letter-spacing: 0.08em; color: var(--coral-cta); margin-top: 4px; }
.h-plan .pf-group.muted { color: var(--ink-soft); }
.h-plan .h-btn { margin-top: auto; }
.h-swipe-hint { display: none; }
.h-plans-more { text-align: center; margin: 36px 0 0; }

/* ===== ⑥ 常見問題（沿用原本的 .faq-item 標記） ===== */
.h-faq { padding: 128px 0; }
.h-faq .h-wrap { display: flex; gap: 72px; }
.h-faq-head { flex: 1 1 0; display: flex; flex-direction: column; gap: 16px; align-self: flex-start; }
.h-faq-head .h-h2 { font-size: 48px; line-height: 1.2; }
.h-faq .faq-list { flex: 2 1 0; min-width: 0; border-top: 2px solid var(--ink); }
.h-faq .faq-item { border-bottom: 1px solid var(--line); }
.h-faq .faq-q {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 26px 0; font-size: 19px; font-weight: 700;
}
.h-faq .faq-q::-webkit-details-marker { display: none; }
.h-faq .faq-q-icon { flex: none; width: 24px; height: 24px; color: var(--coral-cta); transition: transform .2s; }
.h-faq .faq-q-icon svg { width: 24px; height: 24px; display: block; }
.h-faq .faq-item[open] .faq-q-icon { transform: rotate(180deg); }
.h-faq .faq-a { padding: 0 0 26px; }
.h-faq .faq-a p { margin: 0; color: var(--ink-soft); line-height: 1.8; font-size: 16px; }

/* ===== ⑦ 結尾 CTA ===== */
.h-cta { position: relative; min-height: 620px; display: flex; align-items: center; justify-content: center; overflow: hidden; text-align: center; background: var(--bg-warm); }
.h-cta > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.h-cta-inner { position: relative; display: flex; flex-direction: column; align-items: center; gap: 18px; padding: 48px 32px; max-width: 640px; }
.h-cta-title { margin: 0; font-size: 64px; font-weight: 900; line-height: 1.15; letter-spacing: -0.01em; }
.h-cta .h-btn { min-height: 60px; padding: 0 36px; margin-top: 8px; }
.h-cta .h-btn svg { width: 20px; height: 20px; }
.h-cta .h-trust { color: var(--ink-2); }

/* ===== ⑧ 頁尾 ===== */
.site-footer { background: var(--ink); color: #fff; padding: 80px 0 36px; }
.h-foot-top { display: flex; gap: 56px; }
.h-foot-brand { flex: 1 1 260px; display: flex; flex-direction: column; gap: 14px; }
.h-foot-brand img { height: 36px; width: auto; align-self: flex-start; }
.h-foot-brand span { color: var(--on-dark); }
.h-foot-brand a { color: var(--coral); font-weight: 700; text-decoration: none; }
.h-foot-cols { flex: 3 1 600px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; font-size: 15px; }
.h-foot-col summary { list-style: none; font-weight: 700; color: #fff; pointer-events: none; }
.h-foot-col summary::-webkit-details-marker { display: none; }
.h-foot-col summary .h-plus { display: none; }
.h-foot-col ul { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.h-foot-col a { color: var(--on-dark); text-decoration: none; }
.h-foot-col a:hover { color: var(--coral); }
.h-foot-bottom { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--ink-2); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--on-dark); font-size: 14px; }
.h-foot-bottom p { margin: 0; }
.h-heart { color: var(--coral); }

/* ===== 平板：導覽列收成選單 ===== */
@media (max-width: 960px) {
  .h-wrap { padding: 0 24px; }
  .h-nav-inner { min-height: 68px; gap: 12px; }
  .h-nav-brand img { height: 32px; }
  .h-nav-links, .h-nav-actions .h-btn-ghost { display: none; }
  .h-nav-actions { margin-left: auto; }
  .h-menu-btn { display: flex; }
  .h-nav.is-open .h-menu-panel { display: block; }
  .h-menu-panel { background: var(--bg-soft); border-top: 1px solid var(--line); padding: 4px 24px 16px; }
  .h-menu-panel a { display: block; padding: 14px 0; font-size: 17px; font-weight: 700; text-decoration: none; border-bottom: 1px solid var(--line); }
  .h-menu-panel a:last-child { border-bottom: 0; }
  .h-hero-title { font-size: 64px; }
  .h-h2 { font-size: 44px; }
  .h-row .h-wrap { gap: 40px; }
  .h-h3 { font-size: 32px; }
  .h-plans { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; }
  .h-faq .h-wrap { flex-direction: column; gap: 32px; }
  .h-foot-top { flex-direction: column; gap: 32px; }
  .h-foot-brand { flex: none; }
  .h-foot-cols { flex: none; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ===== 手機 ===== */
@media (max-width: 760px) {
  .h-wrap { padding: 0 20px; }
  .h-btn-sm { min-height: 42px; padding: 0 18px; }
  .h-nav-brand img { height: 30px; }

  .h-hero { display: block; min-height: 0; background: var(--bg-soft); padding-bottom: 8px; }
  .h-hero-media { position: relative; display: block; height: min(118vw, 520px); }
  .h-hero-media img { object-position: center 20%; }
  .h-hero .h-wrap { padding: 0 16px; margin-top: -88px; }
  .h-hero-card { max-width: none; padding: 26px 22px 24px; gap: 12px; border-radius: 22px; background: rgba(255, 255, 255, 0.9); box-shadow: 0 18px 44px rgba(45, 31, 27, 0.12); }
  .h-hero-title { font-size: 50px; line-height: 1.04; }
  .h-hero-sub { font-size: 16px; }
  .h-hero-cta { flex-direction: column; }
  .h-hero-cta .h-btn { width: 100%; }
  .h-hero-cta .h-btn-ghost { display: none; }
  .h-trust { font-size: 13px; text-align: center; }

  .h-flow { margin-top: 32px; }
  .h-flow .h-wrap { min-height: 0; padding-top: 20px; padding-bottom: 20px; justify-content: space-between; gap: 6px; flex-wrap: nowrap; }
  .h-flow-note { display: none; }
  .h-flow-step { font-size: 18px; }
  .h-flow svg { width: 18px; height: 10px; }

  .h-feat-head { padding: 64px 0 12px; }
  .h-h2 { font-size: 32px; line-height: 1.25; }
  .h-row { padding: 28px 0; }
  .h-row:last-of-type { padding-bottom: 56px; }
  .h-row .h-wrap, .h-row-reverse .h-wrap { flex-direction: column; align-items: stretch; gap: 18px; }
  .h-row-media img { border-radius: 22px; }
  .h-row-text { gap: 14px; }
  .h-h3 { font-size: 26px; line-height: 1.3; }
  .h-feat-list li { font-size: 17px; padding: 14px 0; gap: 12px; }
  .h-feat-list svg { width: 20px; height: 20px; }

  .h-banner { display: block; min-height: 0; background: var(--bg-soft); padding-bottom: 40px; }
  .h-banner > img { position: relative; height: 240px; object-position: 78% center; }
  .h-banner .h-wrap { padding-top: 28px; }
  .h-banner-card { background: none; -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: none; padding: 0; border-radius: 0; gap: 12px; }
  .h-banner-card p.h-desc { font-size: 15px; }

  .h-pricing { padding: 64px 0 56px; }
  .h-center-head { text-align: left; gap: 8px; margin-bottom: 0; }
  .h-br-m { display: inline; }
  .h-center-head .h-note { font-size: 13px; }
  .h-plans {
    display: flex; max-width: none; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory;
    margin: 0 -20px; padding: 30px 20px 8px; scrollbar-width: none;
  }
  .h-plans::-webkit-scrollbar { display: none; }
  .h-plan { flex: none; width: min(300px, 80vw); scroll-snap-align: center; padding: 30px 24px; border-radius: 22px; }
  .h-plan-featured { order: -1; }
  .h-plan:first-child { order: 1; }   /* 手機順序：專業 → 企業 → 免費 */
  .h-plan-badge { top: -14px; left: 24px; font-size: 12px; }
  .h-plan-price { font-size: 40px; }
  .h-plan .pricing-features li { font-size: 14px; }
  .h-swipe-hint { display: block; text-align: center; margin: 12px 0 0; font-size: 13px; color: var(--ink-soft); }
  .h-plans-more { margin-top: 18px; }

  .h-faq { padding: 56px 0; background: var(--bg-soft); }
  .h-faq-head { gap: 8px; }
  .h-faq-head .h-h2 { font-size: 30px; }
  .h-faq .faq-q { font-size: 16px; padding: 18px 0; }
  .h-faq .faq-a { padding-bottom: 18px; }
  .h-faq .faq-a p { font-size: 15px; }

  .h-cta { min-height: 460px; }
  .h-cta-inner { padding: 0 28px; width: 100%; gap: 14px; }
  .h-cta .h-eyebrow { background: rgba(255, 252, 250, 0.9); padding: 4px 12px; border-radius: 999px; }
  .h-cta-title { font-size: 34px; line-height: 1.25; }
  .h-cta .h-btn { width: 100%; min-height: 54px; }

  .site-footer { padding: 36px 0 28px; }
  .h-foot-top { gap: 20px; }
  .h-foot-cols { display: block; }
  .h-foot-col { border-top: 1px solid var(--ink-2); padding: 14px 0; }
  .h-foot-col:last-child { border-bottom: 1px solid var(--ink-2); }
  .h-foot-col summary { pointer-events: auto; cursor: pointer; display: flex; justify-content: space-between; }
  .h-foot-col summary .h-plus { display: inline; transition: transform .2s; }
  .h-foot-col[open] summary .h-plus { transform: rotate(45deg); }
  .h-foot-col ul { gap: 0; margin-top: 4px; }
  .h-foot-col a { display: block; padding: 8px 0; }
  .h-foot-bottom { margin-top: 22px; padding-top: 0; border-top: 0; font-size: 13px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
