/* 三品牌官網共用版型 v0.1（2026-11-18 管家）。品牌只換 :root 變數，版型一套。 */
:root {
  --brand: #1f4e79; --brand-dark: #163a5a; --brand-soft: #dee8f2; --accent: #c8a45a;
  --ink: #1d2733; --muted: #5b6673; --line: #e3e7ec; --bg: #ffffff; --bg-alt: #f6f8fa;
  --radius: 14px; --wrap: 1180px;
  --font: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
}
body.brand-S { --brand: #0e8080; --brand-dark: #0a5f5f; --brand-soft: #dcf0f0; --accent: #f2a541; }
body.brand-W { --brand: #c4681c; --brand-dark: #934d13; --brand-soft: #faeada; --accent: #2b7a9b; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.75; font-size: 16px; }
img { max-width: 100%; display: block; }
a { color: inherit; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }

/* 樣板提示條 */
.proto { background: #2b2b2b; color: #f5f5f5; font-size: 13px; text-align: center; padding: 6px 12px; }
.proto a { color: #ffd479; }

/* 頁首 */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.96); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 24px; height: 72px; }
.logo img { height: 44px; width: auto; }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a { text-decoration: none; padding: 8px 12px; border-radius: 8px; color: var(--ink); font-size: 15px; }
.nav a:hover { background: var(--brand-soft); }
.nav a.on { color: var(--brand); font-weight: 700; }
.btn { display: inline-block; text-decoration: none; background: var(--brand); color: #fff; padding: 10px 20px; border-radius: 999px; font-weight: 700; font-size: 15px; border: 0; white-space: nowrap; }
.btn:hover { background: var(--brand-dark); }
.btn.ghost { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,.85); }
.btn.ghost:hover { background: rgba(255,255,255,.15); }
.btn.light { background: #fff; color: var(--brand); }
.menu { display: none; margin-left: auto; }
.menu summary { list-style: none; cursor: pointer; font-size: 15px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 8px; }
.menu summary::-webkit-details-marker { display: none; }
.menu[open] .menu-panel { display: flex; }
.menu-panel { display: none; position: absolute; left: 0; right: 0; top: 72px; background: #fff; flex-direction: column; padding: 8px 20px 16px; border-bottom: 1px solid var(--line); box-shadow: 0 8px 20px rgba(0,0,0,.06); }
.menu-panel a { padding: 12px 4px; border-bottom: 1px solid var(--line); text-decoration: none; }

/* 首頁主視覺 */
.hero { position: relative; color: #fff; }
.hero-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.hero-track::-webkit-scrollbar { display: none; }
.hero-slide { position: relative; flex: 0 0 100%; scroll-snap-align: start; }
.hero-slide img { width: 100%; height: clamp(420px, 42vw, 640px); object-fit: cover; }
.hero-copy { position: absolute; inset: 0; display: flex; align-items: center; background: linear-gradient(90deg, rgba(0,0,0,.55), rgba(0,0,0,.05) 70%); }
.hero-copy .wrap { width: 100%; }
.hero h1 { font-size: clamp(30px, 4.4vw, 54px); line-height: 1.25; margin: 0 0 14px; max-width: 14em; }
.hero p { font-size: clamp(16px, 1.6vw, 19px); margin: 0 0 26px; max-width: 30em; opacity: .95; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-dots { position: absolute; bottom: 18px; left: 0; right: 0; display: flex; justify-content: center; gap: 8px; }
.hero-dots a { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.55); }
.hero-dots a:first-child { background: #fff; }

/* 區塊 */
section { padding: 72px 0; }
section.alt { background: var(--bg-alt); }
.sec-head { text-align: center; margin-bottom: 40px; padding: 0 16px; }
.sec-head .eyebrow { color: var(--brand); font-weight: 700; letter-spacing: .12em; font-size: 13px; }
.sec-head h2 { font-size: clamp(24px, 3vw, 34px); margin: 6px 0 8px; line-height: 1.35; }
.sec-head p { color: var(--muted); margin: 0 auto; max-width: 36em; }

.grid { display: grid; gap: 24px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }

.feature { text-align: center; padding: 28px 18px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.feature img { width: 72px; height: 72px; margin: 0 auto 14px; border-radius: 50%; object-fit: cover; }
.feature h3 { margin: 0 0 6px; font-size: 19px; }
.feature p { margin: 0; color: var(--muted); font-size: 15px; }

.card { background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); display: flex; flex-direction: column; }
.card img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.card .body { padding: 18px 20px 22px; }
.card h3 { margin: 0 0 6px; font-size: 19px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }
.card .meta { color: var(--brand); font-size: 13px; font-weight: 700; margin-bottom: 4px; }
.card.wide img { aspect-ratio: 1200 / 630; }
.card.square img { aspect-ratio: 1 / 1; }

.cta-band { position: relative; color: #fff; padding: 0; }
.cta-band img { width: 100%; height: 320px; object-fit: cover; }
.cta-band .copy { position: absolute; inset: 0; display: flex; align-items: center; background: linear-gradient(90deg, var(--brand-dark) 0%, rgba(0,0,0,.05) 75%); }
.cta-band h2 { margin: 0 0 8px; font-size: clamp(24px, 3vw, 34px); }
.cta-band p { margin: 0 0 20px; max-width: 26em; }

/* 內頁頁首 */
.page-hero { position: relative; color: #fff; }
.page-hero img { width: 100%; height: clamp(220px, 26vw, 360px); object-fit: cover; }
.page-hero .copy { position: absolute; inset: 0; display: flex; align-items: flex-end; padding-bottom: 36px; background: linear-gradient(0deg, rgba(0,0,0,.55), rgba(0,0,0,0) 70%); }
.page-hero h1 { margin: 0; font-size: clamp(28px, 3.6vw, 42px); }
.page-hero p { margin: 4px 0 0; opacity: .9; }
.crumb { font-size: 13px; opacity: .85; margin-bottom: 4px; }

.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.split.rev > :first-child { order: 2; }
.split img { border-radius: var(--radius); }
.split h2 { font-size: clamp(22px, 2.6vw, 30px); margin: 0 0 12px; line-height: 1.4; }
.split p { color: var(--muted); }

.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.gallery img { border-radius: 10px; aspect-ratio: 3 / 2; object-fit: cover; }

/* 價目表 */
.price { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.price th, .price td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line); }
.price th { background: var(--brand); color: #fff; font-weight: 700; }
.price td.num { text-align: right; white-space: nowrap; font-weight: 700; color: var(--brand-dark); }
.price tr:last-child td { border-bottom: 0; }
.note { color: var(--muted); font-size: 14px; margin-top: 12px; }
.tag-sample { display: inline-block; background: #fff3cd; color: #7a5b00; font-size: 12px; padding: 2px 8px; border-radius: 6px; margin-left: 8px; vertical-align: middle; font-weight: 400; }

/* 步驟 */
.steps { counter-reset: s; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.step { text-align: center; }
.step img { width: 140px; height: 140px; margin: 0 auto 14px; border-radius: 50%; object-fit: cover; border: 4px solid var(--brand-soft); }
.step h3 { margin: 0 0 4px; font-size: 18px; }
.step h3::before { counter-increment: s; content: counter(s); display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--brand); color: #fff; font-size: 14px; margin-right: 8px; vertical-align: 2px; }
.step p { margin: 0; color: var(--muted); font-size: 15px; }

/* App 截圖 */
.phones { display: flex; gap: 22px; justify-content: center; flex-wrap: wrap; }
.phone { width: 200px; border-radius: 30px; padding: 8px; background: #1d2733; box-shadow: 0 16px 34px rgba(0,0,0,.18); }
.phone img { border-radius: 23px; aspect-ratio: 1290 / 2796; object-fit: cover; }
.store-badges { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.badge { display: inline-block; text-decoration: none; background: #111; color: #fff; padding: 10px 18px; border-radius: 10px; font-size: 14px; }

/* 門市 */
.stores { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.store dl { margin: 10px 0 14px; display: grid; grid-template-columns: 4.5em 1fr; gap: 2px 8px; font-size: 15px; }
.store dt { color: var(--muted); }
.store dd { margin: 0; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-bottom: 28px; }
.filters span { padding: 6px 16px; border-radius: 999px; border: 1px solid var(--line); font-size: 14px; background: #fff; }
.filters span.on { background: var(--brand); color: #fff; border-color: var(--brand); }
.map-ph { height: 340px; border-radius: var(--radius); background: repeating-linear-gradient(45deg, var(--brand-soft), var(--brand-soft) 14px, #fff 14px, #fff 28px); display: grid; place-items: center; color: var(--brand-dark); font-weight: 700; margin-bottom: 32px; text-align: center; padding: 20px; }

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 12px; padding: 0 20px; }
.faq summary { cursor: pointer; padding: 18px 0; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "＋"; color: var(--brand); }
.faq details[open] summary::after { content: "－"; }
.faq details p { margin: 0 0 18px; color: var(--muted); }

/* 聯絡 */
.contact { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: start; }
.info-list { list-style: none; padding: 0; margin: 0; }
.info-list li { display: grid; grid-template-columns: 6em 1fr; padding: 14px 0; border-bottom: 1px solid var(--line); }
.info-list b { color: var(--muted); font-weight: 400; }
.qr { text-align: center; background: var(--brand-soft); border-radius: var(--radius); padding: 28px; }
.qr img { width: 200px; margin: 0 auto 10px; border-radius: 8px; }

/* 頁尾 */
.site-footer { background: #1d2733; color: #c9d1da; padding: 56px 0 24px; font-size: 14px; }
.site-footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 140px; gap: 32px; }
.site-footer h4 { color: #fff; margin: 0 0 12px; font-size: 15px; }
.site-footer a { text-decoration: none; display: block; padding: 3px 0; color: #c9d1da; }
.site-footer a:hover { color: #fff; }
.site-footer .logo-f img { height: 40px; width: auto; background: #fff; border-radius: 6px; padding: 4px; margin-bottom: 12px; }
.site-footer .qr-f img { width: 120px; border-radius: 6px; }
.site-footer .copy { border-top: 1px solid #34404d; margin-top: 36px; padding-top: 18px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; color: #8d99a6; }
.site-footer .copy a { display: inline; color: #8d99a6; margin-left: 14px; }

/* 手機 */
@media (max-width: 900px) {
  .nav, .header-cta { display: none; }
  .menu { display: block; }
  .g3, .g4, .stores { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .split, .contact { grid-template-columns: 1fr; gap: 24px; }
  .split.rev > :first-child { order: 0; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .site-footer .cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  section { padding: 52px 0; }
  .wrap { padding: 0 16px; }
  .g2, .g3, .stores { grid-template-columns: 1fr; }
  .g4 { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .feature { padding: 20px 12px; }
  .hero-slide img { height: auto; aspect-ratio: 1080 / 1350; }
  .hero-copy { align-items: flex-start; padding-top: 28px; background: linear-gradient(180deg, rgba(0,0,0,.6), rgba(0,0,0,0) 60%); }
  .cta-band img { height: 380px; }
  .cta-band .copy { align-items: flex-start; padding-top: 32px; background: linear-gradient(180deg, var(--brand-dark), rgba(0,0,0,0) 85%); }
  .phone { width: 42%; }
  .site-footer .cols { grid-template-columns: 1fr; }
  .price th, .price td { padding: 12px; }
}

/* v0.1 修正：內頁標題靠左、App 截圖一排四支、地圖限寬 */
.page-hero .copy .wrap, .cta-band .copy .wrap { width: 100%; }
.split .phones { flex-wrap: nowrap; gap: 12px; }
.split .phone { width: 25%; padding: 5px; border-radius: 20px; }
.split .phone img { border-radius: 16px; }
.area-map { max-width: 900px; margin: 0 auto; border-radius: 14px; }
