/* 高雄官網前台：版面比照總公司官網（白底、淺藍主色、大圖） */
:root {
  --brand: #5b93c7; --brand-dark: #3f77ab; --sub: #6b9fcf; --text: #3a3f44; --muted: #7d858c;
  --line: #e6e9ec; --bg-soft: #f6f8fa; --line-green: #06c755; --price: #2b2f33;
  --max: 1200px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: "Noto Sans TC", "Microsoft JhengHei", system-ui, sans-serif; color: var(--text); background: #fff; letter-spacing: .03em; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* ---------- Header */
.site-header { position: sticky; top: 0; z-index: 50; background: #fff; box-shadow: 0 1px 0 var(--line); }
.top-links { display: flex; justify-content: flex-end; gap: 22px; font-size: 13px; padding: 8px 0 0; color: #555; }
.top-links a:hover { color: var(--brand); }
.main-bar { display: flex; align-items: center; gap: 24px; padding: 6px 0 10px; }
.logo img { height: 48px; width: auto; }
.logo .dealer { font-size: 12px; color: var(--muted); margin-top: 2px; }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav > .item { position: relative; }
.nav > .item > a { display: block; padding: 10px 14px; font-size: 15px; border-bottom: 2px solid transparent; }
.nav > .item > a.active { border-bottom-color: var(--text); }
.nav > .item:hover > a { color: var(--brand); }
.nav .has-sub > a::after { content: "⌄"; font-size: 11px; margin-left: 3px; position: relative; top: -2px; }
.nav .sub { position: absolute; top: 100%; left: 0; min-width: 180px; background: #fff; box-shadow: 0 6px 18px rgba(0,0,0,.1); padding: 6px 0; display: none; }
.nav .item:hover .sub, .nav .item:focus-within .sub { display: block; }
.nav .sub a { display: block; padding: 8px 18px; font-size: 14px; white-space: nowrap; }
.nav .sub a:hover { background: var(--bg-soft); color: var(--brand); }
.menu-btn { display: none; margin-left: auto; background: none; border: 0; font-size: 26px; cursor: pointer; }

/* ---------- 子分類列（商品頁、Q&A） */
.subnav { background: var(--sub); }
.subnav .wrap { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; padding: 10px 20px; }
.subnav a { color: #fff; font-size: 13px; padding: 5px 14px; border: 1px solid transparent; border-radius: 3px; }
.subnav a.on, .subnav a:hover { border-color: #fff; }

/* ---------- 首頁 */
.banner { position: relative; overflow: hidden; background: var(--bg-soft); }
.banner .slides { display: flex; transition: transform .6s ease; }
.banner .slide { min-width: 100%; display: block; }
.banner picture { display: block; }
.banner .slide img { width: 100%; height: auto; }
.banner .arrow { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,.55); border: 0; width: 40px; height: 40px; border-radius: 50%; font-size: 20px; cursor: pointer; color: #333; }
.banner .prev { left: 14px; } .banner .next { right: 14px; }
.dots { position: absolute; bottom: 12px; left: 0; right: 0; display: flex; justify-content: center; gap: 8px; }
.dots button { width: 9px; height: 9px; border-radius: 50%; border: 0; background: rgba(255,255,255,.6); cursor: pointer; padding: 0; }
.dots button.on { background: #fff; }

.titles { display: grid; grid-template-columns: 1fr 1fr; text-align: center; padding: 26px 0 18px; }
.eyebrow { font-size: 12px; color: var(--muted); letter-spacing: .15em; }
.h2 { font-size: 22px; font-weight: 400; margin: 6px 0 0; letter-spacing: .12em; }
.duo { display: grid; grid-template-columns: 1fr 1fr; }
.video { position: relative; aspect-ratio: 16 / 9; background: #000; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.mini-slider { position: relative; overflow: hidden; aspect-ratio: 16 / 9; }
.mini-slider .slides { display: flex; height: 100%; transition: transform .6s ease; }
.mini-slider .slide { min-width: 100%; height: 100%; }
.mini-slider img { width: 100%; height: 100%; object-fit: cover; }

.steps { display: grid; grid-template-columns: 1.5fr 1fr; align-items: stretch; }
.steps .left { padding: 40px 30px; text-align: center; }
.steps .left h3 { font-weight: 400; font-size: 20px; letter-spacing: .15em; margin: 0 0 28px; }
.step-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step .num { width: 92px; height: 92px; margin: 0 auto 14px; border: 1.5px solid #333; border-radius: 50%; display: grid; place-items: center; font-size: 34px; }
.step p { margin: 0; font-size: 14px; line-height: 1.8; color: #555; }
.step a { color: var(--brand-dark); }
.steps .right img { width: 100%; height: 100%; object-fit: cover; }

.series-head { text-align: center; padding: 34px 0 20px; }
.series a { position: relative; display: block; overflow: hidden; }
.series img { width: 100%; transition: transform .8s ease; }
.series a:hover img { transform: scale(1.03); }
.series .cap { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; color: #fff; text-shadow: 0 2px 10px rgba(0,0,0,.35); }
.series .cap strong { font-size: clamp(22px, 3.4vw, 40px); letter-spacing: .15em; }
.series .cap span { margin-top: 14px; border: 1px solid #fff; border-radius: 999px; padding: 4px 18px; font-size: 14px; background: rgba(255,255,255,.12); }

.contact-bar { display: grid; grid-template-columns: repeat(4, 1fr); align-items: center; text-align: center; padding: 24px 0; font-size: 14px; letter-spacing: .15em; border-bottom: 1px solid var(--line); }
.contact-bar a, .contact-bar span { padding: 10px; }
.contact-bar > *:nth-child(2) { border-right: 1px solid #999; }

/* ---------- 共用內容區 */
.page-hero { background: linear-gradient(120deg, #dbe9f5, #f3f8fc); padding: 46px 0; text-align: center; }
.page-hero h1 { margin: 0; font-weight: 400; letter-spacing: .2em; font-size: 26px; }
.page-hero p { margin: 8px 0 0; color: var(--muted); }
.section { padding: 40px 0; }
.stack img { width: 100%; }
.stack > * + * { margin-top: 0; }

/* 商品 */
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 34px 26px; }
.card .pic { position: relative; aspect-ratio: 1 / 1; background: var(--bg-soft); overflow: hidden; }
.card .pic img { width: 100%; height: 100%; object-fit: contain; transition: transform .5s; }
.card:hover .pic img { transform: scale(1.04); }
.card h3 { font-size: 14px; font-weight: 400; line-height: 1.6; margin: 12px 0 6px; min-height: 2.6em; }
.card .orig { color: #aaa; font-size: 12px; text-decoration: line-through; }
.card .price { font-size: 16px; font-weight: 700; color: var(--price); }
.card .ask { margin-top: 10px; display: flex; gap: 6px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 8px 14px; border-radius: 4px; font-size: 13px; cursor: pointer; border: 1px solid transparent; }
.btn.line { background: var(--line-green); color: #fff; }
.btn.line:hover { filter: brightness(.95); }
.btn.outline { border-color: var(--line); background: #fff; }
.btn.outline:hover { border-color: var(--brand); color: var(--brand); }
.card .ask .btn { flex: 1; }

/* 案例 */
.album { margin-bottom: 46px; }
.album h2 { text-align: center; font-weight: 400; letter-spacing: .15em; font-size: 20px; margin: 0 0 18px; }
.album .mini-slider { aspect-ratio: 16 / 9; max-width: 900px; margin: 0 auto; background: var(--bg-soft); }
.album .mini-slider img { object-fit: contain; }
.album .arrow { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,.75); border: 0; width: 36px; height: 36px; border-radius: 50%; cursor: pointer; }
.album .prev { left: 10px; } .album .next { right: 10px; }

/* Q&A */
.qa-list { max-width: 880px; margin: 0 auto; }
.qa-list details { border-bottom: 1px solid var(--line); padding: 16px 4px; }
.qa-list summary { cursor: pointer; font-size: 16px; list-style: none; display: flex; gap: 10px; }
.qa-list summary::before { content: "Q."; color: var(--brand); font-weight: 700; }
.qa-list summary::-webkit-details-marker { display: none; }
.qa-list details p { margin: 12px 0 0 28px; line-height: 1.9; color: #555; }

/* 門市 */
.store { display: grid; grid-template-columns: 1fr 1.4fr; gap: 30px; align-items: start; }
.store .info { background: var(--bg-soft); padding: 26px; line-height: 2; }
.store .info h2 { margin: 0 0 10px; font-size: 19px; }
.store .map { aspect-ratio: 4 / 3; background: var(--bg-soft); display: grid; place-items: center; color: var(--muted); }
.store .map iframe { width: 100%; height: 100%; border: 0; }

/* ---------- Footer */
.site-footer .band { background: linear-gradient(115deg, #a9cce8 0%, #d7e9f6 55%, #bcd8ee 100%); color: #fff; padding: 46px 0; }
.site-footer .band .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; justify-content: space-between; }
.site-footer .slogan { font-size: clamp(22px, 3vw, 34px); letter-spacing: .25em; text-shadow: 0 1px 6px rgba(0,0,0,.12); }
.site-footer .dealer-info { line-height: 2; font-size: 14px; letter-spacing: .1em; text-shadow: 0 1px 4px rgba(0,0,0,.15); }
.site-footer .bottom { text-align: center; font-size: 12px; color: var(--muted); padding: 22px 0 90px; }
.site-footer .bottom a { margin: 0 12px; }
.site-footer .note { margin-top: 10px; font-size: 11px; color: #a0a7ad; }

/* ---------- 手機 */
@media (max-width: 900px) {
  .menu-btn { display: block; }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; flex-direction: column; box-shadow: 0 8px 18px rgba(0,0,0,.1); padding: 6px 0 12px; }
  .nav.open { display: flex; }
  .nav .sub { position: static; display: block; box-shadow: none; padding: 0 0 0 16px; }
  .nav > .item > a.active { border-bottom-color: transparent; color: var(--brand); }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 24px 14px; }
  .titles, .duo, .steps, .store { grid-template-columns: 1fr; }
  .titles > div + div { margin-top: 18px; }
  .contact-bar { grid-template-columns: 1fr 1fr; gap: 6px; font-size: 13px; letter-spacing: .05em; }
  .contact-bar > *:nth-child(2) { border-right: 0; }
  .top-links { gap: 14px; }
  .step .num { width: 70px; height: 70px; font-size: 26px; }
}
