/* ============================================================================
   Happy Valley 首頁樣式（2026-09-30，tpl/index.php 載入）
   顏色：一律用 css/palette.css 的色票（--lake-*、--forest-*、--ink-* …），括號裡是備用色
   按鈕規則：綠＝行動（試算、預約、聯絡）；藍框＝看更多（車款介紹、更多關於我們）
   斷點：1024 以下平板、860 以下直排、640 以下手機
   區塊：0 共用 → 1 大圖 → 2 快速試算 → 3 車款 → 4 預訂指南 → 5 關於我們 → 6 收尾
   第 3 段的車款卡（.hvh-car）車款列表頁 tpl/car_list.php 也共用，改這裡兩頁一起變
   ============================================================================ */

/* 0 共用 */
.hvh {
  --h-ink: var(--ink-900, #202938);
  --h-ink2: var(--ink-700, #495362);
  --h-ink3: var(--ink-600, #5F6A79);
  --h-blue: var(--lake-600, #3561C8);
  --h-blue7: var(--lake-700, #264BA3);
  --h-blue2: var(--lake-200, #CCDDFF);
  --h-blue-soft: var(--lake-100, #E4EDFF);
  --h-green: var(--forest-600, #0D7C56);
  --h-green7: var(--forest-700, #006243);
  --h-line: var(--line, #D8DFE8);
  --h-mist: var(--mist-50, #F5F8FC);
  color: var(--h-ink);
}
.hvh * { box-sizing: border-box; }
.hvh-wrap { max-width: 1240px; margin: 0 auto; padding: 0 40px; position: relative; }
.hvh-sec { position: relative; padding: 110px 0; }
.hvh h1, .hvh h2, .hvh h3 { margin: 0; font-weight: 700; letter-spacing: .02em; }
.hvh p { margin: 0; }
.hvh .pg-head { margin-bottom: 56px; }
.hvh-eyebrow { font-size: 14px; letter-spacing: .16em; text-transform: uppercase; font-weight: 600; color: rgba(255, 255, 255, .88); margin-bottom: 14px !important; }
.hvh-eyebrow-blue { color: var(--h-blue); }
.hvh-center { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 52px; }
.hvh-center-text { text-align: center; }
.hvh-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 28px; border-radius: 8px; font-size: 16px; font-weight: 700; letter-spacing: .04em; text-decoration: none !important; cursor: pointer; font-family: inherit; transition: background .2s, color .2s, border-color .2s; }
.hvh-btn-go { background: var(--h-green); color: #fff !important; border: 2px solid var(--h-green); }
.hvh-btn-go:hover { background: var(--h-green7); border-color: var(--h-green7); }
.hvh-btn-line { background: #fff; color: var(--h-blue7) !important; border: 2px solid var(--h-blue2); }
.hvh-btn-line:hover { border-color: var(--h-blue); color: var(--h-blue) !important; }
.hvh-btn-ghost { background: transparent; color: #fff !important; border: 2px solid rgba(255, 255, 255, .8); }
.hvh-btn-ghost:hover { background: rgba(255, 255, 255, .12); }

/* 1 大圖：圖是後台幻燈片（桌機 1920×770、手機 750×750）；左側漸層壓暗讓白字清楚 */
.hvh-hero { position: relative; min-height: 640px; display: flex; align-items: center; overflow: hidden; background: #dfe6ee; }
.hvh-hero-slides, .hvh-hero-slide, .hvh-hero-slide img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hvh-hero-slide { opacity: 0; transition: opacity 1s; }
.hvh-hero-slide.is-on { opacity: 1; }
.hvh-hero-slide img { object-fit: cover; object-position: 0% 62%; }
.hvh-hero:after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(18, 28, 46, .74) 0%, rgba(18, 28, 46, .52) 30%, rgba(18, 28, 46, .1) 50%, rgba(18, 28, 46, 0) 70%); }
.hvh-hero-in { position: relative; z-index: 2; width: 100%; padding-top: 40px; padding-bottom: 110px; }
.hvh-hero-text { max-width: 500px; color: #fff; }
.hvh-hero-text h1 { font-size: 46px; line-height: 1.3; color: #fff; margin-bottom: 22px; }
.hvh-hero-text p:not(.hvh-eyebrow) { font-size: 17px; line-height: 1.85; color: rgba(255, 255, 255, .93); }

/* 2 快速試算：疊在大圖下緣；結果區按「試算」後才出現 */
.hvh-book-wrap { z-index: 5; margin-top: -78px; }
.hvh-book { position: relative; background: #fff; border-radius: 14px; padding: 22px 28px 26px; box-shadow: 0 22px 50px rgba(12, 22, 40, .18); }
.hvh-book-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.hvh-book h2 { font-size: 20px; color: var(--h-ink); }
.hvh-book-row { display: grid; grid-template-columns: 1fr 1fr 1.25fr 1.25fr; gap: 16px; align-items: end; }
.hvh-book-row2 { display: grid; grid-template-columns: 1fr 260px auto; gap: 16px 24px; align-items: end; margin-top: 16px; }
.hvh-book label { display: block; margin: 0; }
.hvh-book label > span, .hvh-lbl { display: block; font-size: 14px; color: var(--h-ink3); margin-bottom: 6px; font-weight: 600; }
.hvh-book input[type=date], .hvh-book input[type=text], .hvh-book select { width: 100%; height: 50px; border: 1px solid var(--h-line); border-radius: 8px; padding: 0 14px; font-size: 16px; color: var(--h-ink); background: #fff; font-family: inherit; }
.hvh-textlink { display: inline-flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 600; color: var(--h-blue) !important; text-decoration: none !important; white-space: nowrap; }
.hvh-textlink i { font-size: 12px; }
.hvh-ins { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; }
.hvh-ins .hvh-lbl { flex-basis: 100%; margin-bottom: 0; }
.hvh-seg { display: inline-flex; border: 1px solid var(--h-line); border-radius: 8px; overflow: hidden; height: 50px; }
.hvh-seg label { margin: 0 !important; display: flex !important; position: relative; height: 100%; }
.hvh-seg input { position: absolute !important; left: 0; top: 0; opacity: 0; width: 1px !important; height: 1px !important; margin: 0 !important; padding: 0 !important; border: 0 !important; }
.hvh-seg label span { display: flex !important; align-items: center; height: 100%; padding: 0 24px; margin: 0 !important; font-size: 16px !important; color: var(--h-ink2) !important; cursor: pointer; background: #fff; }
.hvh-seg input:checked + span { background: var(--h-blue7); color: #fff !important; }
.hvh-seg input:disabled + span { opacity: .45; cursor: not-allowed; }
.hvh-seg label + label span { border-left: 1px solid var(--h-line); }
.hvh-ins-note { font-size: 14.5px; color: var(--h-ink3); }
.hvh-ins-note b { color: var(--h-ink); }
.hvh-ins-note a { color: var(--h-blue) !important; font-weight: 600; margin-left: 6px; }
.hvh-book-row2 > .hvh-btn { min-height: 50px; padding: 0 40px; }
.hvh-calc-msg { margin-top: 14px !important; color: var(--danger-600, #B63B35); font-size: 15px; font-weight: 600; }
.hvh-result { margin-top: 20px; padding: 20px 22px; border-radius: 12px; background: var(--h-mist); border: 1px solid var(--h-line); }
.hvh-res-grid { display: grid; grid-template-columns: repeat(4, auto) 1.4fr; gap: 10px 28px; align-items: end; }
.hvh-res-grid p { display: flex; flex-direction: column; gap: 2px; }
.hvh-res-grid span { font-size: 14px; color: var(--h-ink3); }
.hvh-res-grid span em { font-style: normal; }
.hvh-res-grid b { font-size: 19px; color: var(--h-ink); font-weight: 700; }
.hvh-res-grid i { font-style: normal; }
.hvh-res-total { padding-left: 24px; border-left: 1px solid var(--h-line); align-items: flex-end; text-align: right; }
.hvh-res-total b { font-size: 30px !important; color: var(--h-blue7) !important; font-weight: 800 !important; }
.hvh-res-total em { font-style: normal; font-size: 14px; color: var(--h-ink3); }
.hvh-res-foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--h-line); }
.hvh-res-foot p { font-size: 14px; color: var(--h-ink3); }

/* 3 車款與租金：資料＝後台「車款」（勾首頁顯示）；起價＝四季價格取最低 */
.hvh-cars { padding-top: 100px; }
.hvh-car-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.hvh-car { background: #fff; border: 1px solid var(--h-line); border-radius: 16px; overflow: hidden; box-shadow: 0 10px 30px rgba(20, 35, 60, .06); display: flex; flex-direction: column; }
.hvh-car-img { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--h-mist); }
.hvh-car-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.hvh-car:hover .hvh-car-img img { transform: scale(1.03); }
.hvh-car-body { padding: 26px 28px 28px; display: flex; flex-direction: column; flex: 1; }
.hvh-car h3 { font-size: 22px; line-height: 1.4; color: var(--h-ink); margin-bottom: 20px; }
.hvh-car h3 small { display: block; font-size: 15px; font-weight: 500; color: var(--h-ink3); margin-top: 2px; }
.hvh-car-foot { margin-top: auto; padding-top: 20px; border-top: 1px solid var(--h-line); display: flex; flex-direction: column; align-items: stretch; gap: 14px; }
.hvh-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 6px; }
.hvh-price b { font-size: 30px; color: var(--h-blue7); font-weight: 800; letter-spacing: .01em; }
.hvh-price-unit { font-size: 14px; color: var(--h-ink3); }
.hvh-price em { flex-basis: 100%; font-style: normal; font-size: 13.5px; color: var(--ink-500, #7D8796); }
.hvh-car-btns { display: flex; gap: 10px; }
.hvh-car-btns .hvh-btn { padding: 0 20px; min-height: 46px; font-size: 15px; flex: 1; }

/* 4 租車預訂指南：流程圖，圖示暫用 Font Awesome（請設計另找後替換 .hvh-step-ic 裡的 <i>） */
.hvh-flow { background: var(--h-mist); }
.hvh-flow .pg-head { margin-bottom: 46px; }
.hvh-flow-sub { text-align: center; font-size: 17px; line-height: 1.8; color: var(--h-ink2); margin: -30px auto 50px !important; max-width: 680px; }
.hvh-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; position: relative; }
.hvh-steps:before { content: ""; position: absolute; top: 46px; left: 16.7%; right: 16.7%; border-top: 2px dashed var(--h-blue2); }
.hvh-steps li { position: relative; text-align: center; padding: 0 8px; }
.hvh-steps li:not(:last-child):after { content: "\f054"; font-family: "Font Awesome 6 Free"; font-weight: 900; position: absolute; top: 36px; right: -28px; font-size: 14px; color: var(--h-blue); background: var(--h-mist); width: 18px; height: 20px; line-height: 20px; }
.hvh-step-ic { position: relative; z-index: 1; width: 92px; height: 92px; margin: 0 auto 18px; border-radius: 50%; background: #fff; border: 2px solid var(--h-blue2); display: flex; align-items: center; justify-content: center; font-size: 34px; color: var(--h-blue); box-shadow: 0 8px 20px rgba(38, 75, 163, .08); }
.hvh-step-no { font-size: 13px; font-weight: 700; letter-spacing: .14em; color: var(--h-blue); margin-bottom: 6px !important; }
.hvh-steps h3 { font-size: 19px; color: var(--h-ink); margin-bottom: 10px; }
.hvh-steps li p:last-child { font-size: 15px; line-height: 1.75; color: var(--h-ink3); max-width: 330px; margin: 0 auto; }

/* 5 關於我們：照片 images/home-about.jpg；三個重點＝後台「Icon」（圖 110×95，建議透明底單色圖示） */
.hvh-about-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 64px; align-items: center; }
.hvh-about-img { border-radius: 16px; overflow: hidden; aspect-ratio: 4 / 3; }
.hvh-about-img img { width: 100%; height: 100%; object-fit: cover; }
.hvh-about-text h2 { font-size: 34px; color: var(--h-ink); margin-bottom: 16px; }
.hvh-about-text h2:after { content: ""; display: block; width: 36px; height: 3px; background: var(--gold-500, #B79348); margin-top: 14px; }
.hvh-lead { font-size: 17px; line-height: 1.75; color: var(--h-blue7); font-weight: 600; margin-bottom: 14px !important; }
.hvh-about-text p:not(.hvh-eyebrow):not(.hvh-lead) { font-size: 16px; line-height: 1.9; color: var(--h-ink2); margin-bottom: 14px; }
.hvh-points { list-style: none; margin: 22px 0 30px; padding: 0; display: grid; gap: 14px; }
.hvh-points li { display: flex; gap: 14px; align-items: flex-start; }
.hvh-pt-ic { flex: 0 0 44px; height: 44px; border-radius: 50%; background: var(--h-blue-soft); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.hvh-pt-ic img { width: 24px; height: 24px; object-fit: contain; }
.hvh-points b { display: block; font-size: 16.5px; color: var(--h-ink); margin-bottom: 2px; }
.hvh-points li span:not(.hvh-pt-ic) { font-size: 15px; line-height: 1.7; color: var(--h-ink3); }
.hvh-about-text > .hvh-btn { margin-top: 10px; }

/* 6 收尾：背景 images/home-cta.jpg，上面蓋一層深藍讓白字清楚 */
.hvh-cta { position: relative; padding: 110px 0; background: linear-gradient(rgba(22, 34, 56, .62), rgba(22, 34, 56, .62)), url(../images/home-cta.jpg?v=20260930) center 40% / cover; color: #fff; }
.hvh-cta h2 { font-size: 34px; color: #fff; margin-bottom: 16px; }
.hvh-cta p { font-size: 17px; line-height: 1.85; max-width: 640px; margin: 0 auto !important; color: rgba(255, 255, 255, .92); }
.hvh-cta .hvh-center { margin-top: 34px; }

/* 平板 */
@media (max-width: 1024px) {
  .hvh-wrap { padding: 0 28px; }
  .hvh-sec { padding: 84px 0; }
  .hvh-hero { min-height: 560px; }
  .hvh-hero-text h1 { font-size: 38px; }
  .hvh-book-row { grid-template-columns: 1fr 1fr; }
  .hvh-book-row2 { grid-template-columns: 1fr 1fr; }
  .hvh-book-row2 > .hvh-btn { grid-column: 1 / -1; }
  .hvh-res-grid { grid-template-columns: repeat(4, 1fr); }
  .hvh-res-total { grid-column: 1 / -1; border-left: 0; padding-left: 0; border-top: 1px solid var(--h-line); padding-top: 12px; flex-direction: row !important; align-items: baseline !important; justify-content: space-between; flex-wrap: wrap; }
  .hvh-car-grid { gap: 20px; }
  .hvh-car-foot { flex-direction: column; align-items: stretch; }
  .hvh-car-btns .hvh-btn { flex: 1; }
  .hvh-about-grid { gap: 36px; }
}
@media (max-width: 860px) {
  .hvh-steps { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .hvh-steps:before, .hvh-steps li:after { display: none; }
  .hvh-about-grid { grid-template-columns: 1fr; }
}
/* 手機：大圖的字放上方樹林區、車露出來，試算卡疊在下方路面；流程改直式時間軸 */
@media (max-width: 640px) {
  .hvh-wrap { padding: 0 20px; }
  .hvh-sec { padding: 64px 0; }
  .hvh .pg-head { margin-bottom: 36px; }
  .hvh-hero { min-height: 560px; align-items: flex-start; }
  .hvh-hero-slide img { object-position: center 100%; }
  .hvh-hero:after { background: linear-gradient(180deg, rgba(18, 28, 46, .78) 0%, rgba(18, 28, 46, .55) 36%, rgba(18, 28, 46, 0) 58%); }
  .hvh-hero-in { padding-top: 30px; padding-bottom: 0; }
  .hvh-hero-text h1 { font-size: 29px; margin-bottom: 12px; }
  .hvh-hero-text p:not(.hvh-eyebrow) { font-size: 15px; line-height: 1.7; }
  .hvh-eyebrow { font-size: 12px; margin-bottom: 8px !important; }
  .hvh-book-wrap { margin-top: -64px; }
  .hvh-book { padding: 20px 18px; }
  .hvh-book-head { flex-wrap: wrap; }
  .hvh-book-row { grid-template-columns: 1fr 1fr; gap: 12px; }
  .hvh-book-row label:nth-child(n+3) { grid-column: 1 / -1; }
  .hvh-book-row2 { grid-template-columns: 1fr; gap: 14px; }
  .hvh-seg { width: 100%; }
  .hvh-seg label { flex: 1; }
  .hvh-seg label span { justify-content: center; width: 100%; }
  .hvh-res-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .hvh-res-foot { flex-direction: column; align-items: stretch; }
  .hvh-res-foot .hvh-btn { width: 100%; }
  .hvh-cars { padding-top: 64px; }
  .hvh-car-grid { grid-template-columns: 1fr; }
  .hvh-car-body { padding: 22px 20px; }
  .hvh-price b { font-size: 27px; }
  .hvh-flow-sub { font-size: 15.5px; margin: -12px auto 34px !important; }
  .hvh-steps { display: block; }
  .hvh-steps li { display: grid; grid-template-columns: 64px 1fr; column-gap: 16px; text-align: left; padding: 0 0 28px; }
  .hvh-steps li:not(:last-child):before { content: ""; position: absolute; left: 31px; top: 64px; bottom: 4px; border-left: 2px dashed var(--h-blue2); }
  .hvh-step-ic { grid-row: 1 / 4; width: 64px; height: 64px; font-size: 24px; margin: 0; }
  .hvh-step-no { margin-top: 4px; }
  .hvh-steps h3 { font-size: 18px; margin-bottom: 6px; }
  .hvh-steps li p:last-child { max-width: none; margin: 0; }
  .hvh-center { margin-top: 30px; }
  .hvh-center .hvh-btn { flex: 1 1 100%; }
  .hvh-about-text h2 { font-size: 28px; }
  .hvh-cta { padding: 72px 0; }
  .hvh-cta h2 { font-size: 27px; }
  .hvh-cta p { font-size: 15.5px; }
}
