/* ===== 經銷商個人頁 =====
 *
 * 刻意跟公司官網長得不一樣：官網是米白＋金＋明體的「品牌感」，
 * 這一頁是深墨綠＋黑體的「報價單感」——客人一眼就知道這是業務個人的頁，
 * 不是公司型錄。沒有圖片，所以版面靠字級、留白和一條條價目線撐起來。
 */

:root{
  --ink:#10211c;          /* 深墨綠，當主色 */
  --ink-2:#1c3a31;
  --paper:#f4f6f4;
  --card:#fff;
  --line:#dde4e0;
  --muted:#6b7b75;
  --accent:#c4762a;       /* 磚橘，只用在價格與按鈕 */
  --accent-soft:#fdf3e9;
  --line-green:#06c755;
  --radius:14px;
}

*{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth;scroll-padding-top:1rem}
body{
  font-family:"Noto Sans TC",system-ui,-apple-system,"Microsoft JhengHei",sans-serif;
  background:var(--paper);color:var(--ink);line-height:1.7;
  -webkit-text-size-adjust:100%;padding-bottom:76px;   /* 讓底部常駐列不壓到內容 */
}
.wrap{width:min(860px,92vw);margin-inline:auto}
a{color:inherit}
img{max-width:100%;height:auto;display:block}

/* ---------- 開場 ---------- */
.hero{background:#f6ebdd;color:#3d2c22;padding:2.6rem 0 2.2rem;border-bottom:1px solid #eadbc6;
  /* 奶茶米色＋右上角淡杏色光暈：溫和、像家裡的燈光；深咖啡字。
   * （試過深墨綠太沉、古銅金太搶眼。淺底也讓橘色電話鈕、綠色 LINE 鈕更突出） */
  background-image:
    radial-gradient(circle at 88% -10%,rgba(240,170,120,.35),transparent 50%),
    radial-gradient(circle at 0% 110%,rgba(220,190,150,.35),transparent 45%),
    linear-gradient(135deg,#fbf3e9 0%,#f6ebdd 55%,#f0e0cc 100%)}
.hero-kicker{font-size:.82rem;letter-spacing:.22em;color:#9a6b48;text-transform:uppercase}
.hero-name{font-size:clamp(2rem,7vw,2.9rem);font-weight:900;letter-spacing:.04em;margin:.2rem 0 .3rem}
.hero-tag{font-size:1.02rem;color:#5c4636;max-width:30em}

.hero-cta{display:flex;gap:.8rem;flex-wrap:wrap;margin:1.6rem 0 1.4rem}
.cta{display:flex;align-items:center;gap:.7rem;border:none;cursor:pointer;
  padding:.8rem 1.2rem;border-radius:var(--radius);font:inherit;text-decoration:none;
  min-width:210px;transition:transform .15s,box-shadow .15s}
.cta:hover{transform:translateY(-2px);box-shadow:0 10px 24px rgba(0,0,0,.25)}
.cta-ico{font-size:1.5rem;line-height:1}
.cta b{display:block;font-size:1.1rem;letter-spacing:.02em}
.cta small{display:block;font-size:.76rem;opacity:.8;font-weight:400}
.cta-call{background:var(--accent);color:#fff}
.cta-line{background:var(--line-green);color:#fff}

.hero-meta{display:flex;flex-wrap:wrap;gap:.4rem 2.2rem;font-size:.88rem;color:#5c4636}
.hero-meta dt{font-size:.74rem;letter-spacing:.1em;color:#9a7b62}
.hero-meta dd{color:#3d2c22}

/* ---------- 自我介紹 ---------- */
.intro{background:var(--card);border-bottom:1px solid var(--line)}
.intro-grid{display:grid;gap:1.4rem;padding:1.8rem 0;grid-template-columns:1.4fr 1fr}
.intro-text{color:#2d433c}
.points{list-style:none;display:grid;gap:.5rem;align-content:start}
.points li{position:relative;padding-left:1.5em;font-size:.93rem;color:#2d433c}
.points li::before{content:"✓";position:absolute;left:0;color:var(--accent);font-weight:900}

/* ---------- 價目表 ---------- */
main{padding:2rem 0 2.4rem}

.cat{margin-bottom:2rem;scroll-margin-top:1rem}
.cat-name{font-size:1.1rem;font-weight:700;letter-spacing:.06em;
  padding-bottom:.5rem;border-bottom:2px solid var(--ink);display:flex;
  align-items:baseline;justify-content:space-between}
.cat-name span{font-size:.76rem;font-weight:400;color:var(--muted)}
.cat-note{font-size:.84rem;color:var(--muted);margin:.5rem 0 .2rem}

.rows{list-style:none}
.row{display:flex;align-items:baseline;gap:.5rem;padding:.6rem .2rem;
  border-bottom:1px dashed var(--line)}
.row-name{font-size:.98rem}
/* 價目表的那排點點：沒有圖片時，這條虛線幫眼睛把品名和價格接起來 */
.row-dots{flex:1 1 auto;border-bottom:1px dotted #c3cec9;transform:translateY(-.25em)}
.row-price{font-weight:700;color:var(--accent);white-space:nowrap;font-variant-numeric:tabular-nums}

.empty{background:var(--accent-soft);border:1px solid #f0dcc4;border-radius:var(--radius);
  padding:1rem 1.2rem;margin-bottom:1.4rem;font-size:.95rem}
.disclaimer{margin-top:1.4rem;font-size:.82rem;color:var(--muted);
  border-top:1px solid var(--line);padding-top:1rem}

/* ---------- 聯絡 ---------- */
.contact{background:var(--ink-2);color:#eaf2ee;padding:2.4rem 0}
.contact-grid{display:grid;gap:1.8rem;grid-template-columns:1.3fr auto;align-items:center}
.contact h2{font-size:1.35rem;font-weight:900;line-height:1.5}
.contact-sub{color:#aecabe;font-size:.93rem;margin:.5rem 0 1rem}
.big-call{display:inline-block;font-size:clamp(1.7rem,6vw,2.3rem);font-weight:900;
  letter-spacing:.06em;color:#fff;text-decoration:none;border-bottom:3px solid var(--accent)}
.contact-hours{font-size:.86rem;color:#9fc0b4;margin-top:.6rem}
.qr-box{background:#fff;padding:.9rem;border-radius:var(--radius);text-align:center}
.qr-box figcaption{font-size:.76rem;color:var(--muted);margin-top:.5rem;max-width:200px}

.foot{background:var(--ink);color:#7d9a8f;font-size:.8rem;padding:1.1rem 0}

/* ---------- 手機底部常駐 ---------- */
.dock{position:fixed;left:0;right:0;bottom:0;z-index:50;display:flex;
  background:var(--card);border-top:1px solid var(--line);
  box-shadow:0 -4px 16px rgba(0,0,0,.08)}
.dock-btn{flex:1;border:none;cursor:pointer;font:inherit;font-weight:700;
  padding:.95rem .5rem;text-align:center;text-decoration:none;font-size:1rem}
.dock-call{background:var(--accent);color:#fff}
.dock-line{background:var(--line-green);color:#fff}

/* ---------- LINE QR 彈窗 ---------- */
.qr-modal{position:fixed;inset:0;z-index:80;background:rgba(10,25,20,.65);
  display:grid;place-items:center;padding:1.2rem}
.qr-modal[hidden]{display:none}
.qr-card{position:relative;background:#fff;border-radius:18px;padding:2.2rem 1.6rem 1.4rem;
  text-align:center;max-width:340px;width:100%}
.qr-card img{margin:0 auto;width:min(260px,70vw);height:auto}
.qr-card p{font-size:.86rem;color:var(--muted);margin-top:.9rem}
.qr-x{position:absolute;top:.4rem;right:.6rem;width:38px;height:38px;border:none;
  background:var(--paper);border-radius:50%;font-size:1.6rem;line-height:1;cursor:pointer;color:var(--muted)}
.qr-x:hover{background:var(--accent);color:#fff}

/* ---------- 窄螢幕 ---------- */
@media(max-width:700px){
  .intro-grid,.contact-grid{grid-template-columns:1fr}
  .qr-box{justify-self:start}
  .cta{min-width:0;flex:1 1 100%}
  .hero{padding:2rem 0 1.8rem}
}
/* 電腦不需要底部常駐列，那是給單手拿手機的人用的 */
@media(min-width:701px){ .dock{display:none} body{padding-bottom:0} }

/* QR 彈窗裡的「在這台裝置開啟 LINE」 */
.qr-open{display:block;margin-top:.9rem;background:var(--line-green);color:#fff;
  text-decoration:none;font-weight:700;padding:.65rem 1rem;border-radius:10px}
.qr-open:hover{filter:brightness(1.06)}


/* ---------- 開場右側：合作公司 ---------- */
.hero-grid{display:grid;grid-template-columns:1fr auto;gap:2rem;align-items:center}
.hero-brand{border:1px solid #e6d2b8;border-radius:var(--radius);
  background:rgba(255,255,255,.6);padding:1.4rem 1.6rem;max-width:300px}
.brand-label{font-size:.74rem;letter-spacing:.22em;color:#9a6b48}
.brand-name{font-size:1.45rem;font-weight:900;letter-spacing:.08em;color:#3d2c22;margin:.25rem 0 .5rem;
  padding-bottom:.5rem;border-bottom:2px solid var(--accent)}
.brand-desc{font-size:.85rem;color:#5c4636;line-height:1.6}
.brand-link{display:inline-block;margin-top:.8rem;font-size:.88rem;font-weight:700;
  color:#b0601f;text-decoration:none}
.brand-link:hover{text-decoration:underline}
@media(max-width:700px){
  .hero-grid{grid-template-columns:1fr;gap:1.4rem}
  .hero-brand{max-width:none}
}

/* ---------- 回到最上方 ---------- */
.to-top{position:fixed;right:1rem;bottom:1.2rem;z-index:60;width:48px;height:48px;
  border:none;border-radius:50%;cursor:pointer;background:var(--ink);color:#fff;
  font-size:1.4rem;line-height:1;box-shadow:0 6px 18px rgba(0,0,0,.25);
  transition:opacity .2s,transform .2s}
.to-top:hover{background:var(--accent)}
.to-top[hidden]{display:block;opacity:0;pointer-events:none;transform:translateY(10px)}
/* 手機有底部常駐列，按鈕往上墊高，免得蓋住打電話 */
@media(max-width:700px){ .to-top{bottom:calc(76px + .8rem)} }

/* ---------- h1 裡的頭銜與名字 ---------- */
.hero-h .hero-kicker,.hero-h .hero-name{display:block}
.hero-h .hero-kicker{font-weight:400;margin:0}

/* ---------- 常見問題 ---------- */
.faq{background:var(--card);border-top:1px solid var(--line);padding:2.2rem 0}
.faq h2{font-size:1.35rem;font-weight:900;letter-spacing:.04em;margin-bottom:1rem}
.faq details{border-bottom:1px dashed var(--line);padding:.8rem 0}
.faq summary{cursor:pointer;font-weight:700;list-style:none;position:relative;padding-right:1.6rem}
.faq summary::-webkit-details-marker{display:none}
.faq summary::after{content:"+";position:absolute;right:.2rem;top:0;color:var(--accent);font-weight:900}
.faq details[open] summary::after{content:"−"}
.faq details p{margin-top:.5rem;color:#2d433c;font-size:.95rem}

/* 頁尾：名字、電話、地區 */
.foot .wrap{display:flex;flex-wrap:wrap;gap:.3rem 1.2rem}
.foot a{color:#9fc0b4}

/* ---------- 分類頁 ---------- */
.crumb{font-size:.85rem;color:var(--muted);margin-bottom:.8rem}
.crumb a{color:var(--accent);text-decoration:none}
.crumb a:hover{text-decoration:underline}
.crumb span{margin:0 .45rem}
/* 總表上的分類標題連到分類頁 */
.cat-name a{text-decoration:none}
.cat-name a:hover{color:var(--accent)}
.cat-name a::after{content:" ›";color:var(--accent);font-weight:400}
.others{margin-top:2rem}
.others h3{font-size:1rem;font-weight:700;margin-bottom:.7rem}

/* ---------- 價目表開頭：標題、搜尋、分類目錄 ----------
 * 原本是一排膠囊按鈕，分類名稱長短不一，排起來亂、也看不出每類賣什麼。
 * 改成卡片目錄：名稱＋款數＋前三個品名，客人掃一眼就知道要點哪一類。 */
.list-head{display:grid;gap:.9rem;margin-bottom:1.2rem}
.list-title{display:flex;align-items:baseline;gap:.8rem;flex-wrap:wrap}
.list-title h2{font-size:1.6rem;font-weight:900;letter-spacing:.04em;line-height:1.2}
.count{font-size:.82rem;color:var(--muted)}

.search-box{position:relative;display:block}
.search-box::before{content:"";position:absolute;left:1.05rem;top:50%;width:18px;height:18px;
  transform:translateY(-50%);pointer-events:none;opacity:.55;
  background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2310211c' stroke-width='2.4' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") center/contain no-repeat}
.search{width:100%;padding:.85rem 1rem .85rem 2.9rem;border:1.5px solid var(--line);
  border-radius:12px;font:inherit;font-size:1rem;background:var(--card);color:var(--ink);
  transition:border-color .15s,box-shadow .15s}
.search:focus{outline:none;border-color:var(--ink);box-shadow:0 0 0 3px rgba(16,33,28,.08)}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}

.toc{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:.6rem;margin-bottom:2rem}
.toc[hidden]{display:none}
.toc-card{display:flex;flex-direction:column;gap:.1rem;min-width:0;text-decoration:none;
  background:var(--card);border:1px solid var(--line);border-left:3px solid var(--accent);
  border-radius:10px;padding:.7rem .85rem;transition:transform .15s,box-shadow .15s,background .15s}
.toc-card b{font-size:.98rem;font-weight:700;line-height:1.35}
.toc-card em{font-style:normal;font-size:.78rem;font-weight:700;color:var(--accent)}
.toc-card small{font-size:.74rem;color:var(--muted);line-height:1.45;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
/* 滑過去用金色：跟開場的古銅金呼應，亮、也讓人知道這是可以點的 */
.toc-card:hover{background:#a8801f;border-color:#a8801f;border-left-color:#6e5212;
  transform:translateY(-2px);box-shadow:0 8px 18px rgba(168,128,31,.4)}
.toc-card:hover b{color:#fff}
.toc-card:hover small{color:#fff1cc}
.toc-card:hover em{color:#fff}
.toc-all{border-left-color:var(--ink)}

@media(max-width:700px){
  .toc{grid-template-columns:1fr 1fr;gap:.5rem}
  .toc-card{padding:.6rem .7rem}
}

/* ---------- 文章頁 ---------- */
.art{max-width:680px}
.art-title{font-size:clamp(1.5rem,5vw,2rem);font-weight:900;line-height:1.35;letter-spacing:.02em;margin:.3rem 0 .4rem}
.art-meta{font-size:.82rem;color:var(--muted);margin-bottom:1.2rem}
.art-lead{font-size:1.05rem;color:#2d433c;border-left:3px solid #a8801f;padding:.2rem 0 .2rem 1rem;margin-bottom:1.6rem}
.art-body{font-size:1.02rem;line-height:1.9;color:#22352f}
.art-body h2{font-size:1.25rem;font-weight:900;margin:2rem 0 .6rem;padding-bottom:.3rem;border-bottom:2px solid var(--line)}
.art-body p{margin:0 0 1rem}
.art-body ul{margin:0 0 1rem 1.3rem}
.art-body li{margin:.2rem 0}
.art-body a{color:var(--accent);font-weight:700;text-underline-offset:3px}
.art-cta{margin:2.2rem 0 1rem;background:#fbf6ea;border:1px solid #ecdcb5;border-radius:var(--radius);padding:1.3rem 1.4rem}
.art-cta > b{font-size:1.1rem}
.art-cta p{color:#5a5040;font-size:.92rem;margin:.3rem 0 1rem}
.art-cta-btns{display:flex;gap:.7rem;flex-wrap:wrap}

/* ---------- 購買指南列表 ----------
 * 原本是卡片（標題＋摘要＋按鈕），八篇就佔掉一整個畫面。
 * 改成純標題清單：桌機兩欄、手機一欄，一眼掃完。 */
.guides{background:#fbf6ea;border-top:1px solid #ecdcb5;padding:1.6rem 0 1.4rem}
.guides h2{font-size:1.15rem;font-weight:900;letter-spacing:.04em;margin-bottom:.5rem}
.guide-list{list-style:none;display:grid;grid-template-columns:1fr 1fr;column-gap:2rem}
.guide-list li{border-bottom:1px dashed #e3d3a8}
.guide-list a{display:flex;align-items:center;gap:.6rem;padding:.6rem .1rem;
  text-decoration:none;font-size:.93rem;line-height:1.5;color:var(--ink)}
.guide-list a::before{content:"";flex:none;width:6px;height:6px;border-radius:50%;background:#a8801f}
.guide-list a::after{content:"›";margin-left:auto;padding-left:.5rem;color:#a8801f;font-weight:700}
.guide-list a:hover{color:#8a6510}
@media(max-width:700px){ .guide-list{grid-template-columns:1fr} }

/* 左上角頭銜＋名字＝回首頁的連結：看起來跟原本一樣，滑過去才變色 */
.hero-home{display:inline-block;color:inherit;text-decoration:none}
.hero-home:hover .hero-name,.hero-home:hover .hero-kicker{color:#b0601f}
.hero-home:focus-visible{outline:2px solid #b0601f;outline-offset:4px;border-radius:6px}

/* 分類頁的一句話答案 */
.answer{background:#fbf3e9;border:1px solid #eadbc6;border-left:3px solid var(--accent);
  border-radius:10px;padding:.7rem .9rem;font-size:.93rem;line-height:1.7;color:#3d2c22}
