/* 首頁改版 2026 — 只在新版首頁載入，所有樣式以 .home-v2 / .hv2- 為前綴，不影響其他頁面 */
body:has(.home-v2) {
  background: #000;
}
/* 全站的 .loadingHeight 會在前 2 秒鎖住高度並隱藏捲軸（舊首頁用黑色遮罩蓋住）；新版首頁沒有遮罩，取消以免捲軸延遲出現造成畫面跳動 */
body.loadingHeight:has(.home-v2) {
  -webkit-animation: none;
          animation: none;
}

.home-v2,
.hv2-footer {
  --hv2-gold: #c9a26b;
  --hv2-gold-light: #e2c189;
  --hv2-yellow: #f5c242;
  --hv2-panel: #1b1b1c;
  --hv2-text: #d6d6d6;
  --hv2-muted: #a8a8a8;
  --hv2-gutter: 24px;
  font-family: "Noto Sans TC", "Microsoft JhengHei", JhengHei, sans-serif;
  color: var(--hv2-text);
  background: #000;
  letter-spacing: .04em;
}
.home-v2 *,
.hv2-footer * {
  box-sizing: border-box;
}
.home-v2 h1,
.home-v2 h2,
.home-v2 p,
.home-v2 ul,
.hv2-footer ul,
.hv2-footer p {
  margin: 0;
  padding: 0;
}
.home-v2 img,
.hv2-footer img {
  display: block;
  max-width: 100%;
  height: auto;
}

/* 共用容器：主 Banner 與下方區塊同寬對齊 */
.hv2-container {
  width: 100%;
  max-width: calc(1400px + var(--hv2-gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--hv2-gutter);
}

/* ===== Hero（滿版） ===== */
.hv2-hero {
  position: relative;
}
/* 滿版：同前一版首頁，電腦版 hero_d.jpg（1920x1080）寬度鋪滿視窗等比例顯示；手機版 hero_mobile.jpg（810x1440）文字疊圖 */
.hv2-hero-media {
  position: relative;
  overflow: hidden;
}
.home-v2 .hv2-hero-media img {
  width: 100%;
}
.hv2-hero-media::after {
  content: "";
  position: absolute;
  z-index: 2;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,.35) 0%, rgba(0,0,0,0) 30%, rgba(0,0,0,0) 62%, #000 100%);
  pointer-events: none;
}
.hv2-header {
  position: absolute;
  z-index: 4;
  top: 0;
  left: 0;
  right: 0;
  /* 尺寸位置同其他頁面 header：高 90px、左右 17px、Logo 40px 置中；按鈕沿用全站 .first-level-cta.get-in-touch */
  display: flex;
  align-items: center;
  justify-content: flex-end;
  height: 90px;
  padding: 25px 17px;
}
.hv2-logo {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.home-v2 .hv2-logo img {
  height: 40px;
  width: auto;
}
.hv2-btn-outline::after {
  content: "";
  width: 8px;
  height: 8px;
  border-top: 1.5px solid currentColor;
  border-right: 1.5px solid currentColor;
  transform: rotate(45deg);
}
.hv2-hero-text {
  position: absolute;
  z-index: 3;
  top: max(110px, 15%);
  left: 7%;
  width: 58%;
}
.hv2-hero-text h1 {
  display: flex;
  flex-direction: column;
  font-weight: 700;
  line-height: 1.25;
  text-shadow: 0 2px 12px rgba(0,0,0,.35);
}
.hv2-hero-en {
  color: #fff;
  font-size: clamp(32px, 3.4vw, 50px);
  letter-spacing: .02em;
}
.hv2-hero-zh {
  color: #fff;
  font-size: clamp(30px, 3.1vw, 46px);
  letter-spacing: .12em;
}
.hv2-hero-text p {
  max-width: 760px;
  margin-top: 22px;
  color: #fff;
  font-size: clamp(14px, 1.15vw, 17px);
  line-height: 1.75;
  text-shadow: 0 1px 6px rgba(0,0,0,.5);
}
.hv2-hero-bottom {
  position: absolute;
  z-index: 3;
  left: 7%;
  bottom: 6%;
}
.hv2-hero-tagline {
  color: #fff;
  font-size: clamp(16px, 1.4vw, 21px);
  font-weight: 600;
  margin-bottom: 22px !important;
}
.hv2-hero-tagline::before,
.hv2-hero-tagline::after {
  content: "";
  display: inline-block;
  width: 3px;
  height: .95em;
  margin: 0 12px -2px 0;
  background: #fff;
}
.hv2-hero-tagline::after {
  margin: 0 0 -2px 12px;
}
.hv2-hero-btns {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}
.hv2-btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  width: 240px;
  padding: 11px 22px 11px 70px;
  border: 1px solid #fff;
  border-radius: 3px;
  color: #fff !important;
  font-size: 15px;
  text-decoration: none;
  transition: background .2s, color .2s;
}
.hv2-btn-outline:hover {
  background: #fff;
  color: #000 !important;
}

/* ===== 圖文面板 ===== */
.hv2-panels {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px 36px;
  padding-top: 48px;
  padding-bottom: 64px;
}
.hv2-panel {
  background: var(--hv2-panel);
  border-radius: 8px;
  padding: 32px;
}
.hv2-panel-img {
  display: flex;
  align-items: center;
}
.hv2-panel-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 4px;
}
.hv2-panel-text {
  padding: 40px 48px;
}
.hv2-panel-center {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hv2-icon {
  width: auto !important;
  height: 34px !important;
  margin: 0 auto 16px;
}
.home-v2 h2 {
  color: #fff;
  font-size: clamp(20px, 1.6vw, 25px);
  font-weight: 600;
  text-align: center;
  letter-spacing: .12em;
  line-height: 1.5;
  margin-bottom: 28px;
}
.hv2-panel-text p,
.hv2-feature p {
  font-size: 15px;
  line-height: 1.85;
  text-align: justify;
}
.hv2-panel-text p + p {
  margin-top: 20px;
}
.home-v2 em {
  font-style: normal;
  color: var(--hv2-gold-light);
  font-weight: 600;
}

/* ===== 鑑價 / 金融 ===== */
.hv2-features {
  border-top: 1px solid #2c2c2c;
  background: linear-gradient(to bottom, #0b0b0b, #000 60%);
  padding: 64px 0 90px;
}
.hv2-features-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 48px 72px;
  padding-left: calc(var(--hv2-gutter) + 32px);
  padding-right: calc(var(--hv2-gutter) + 32px);
}
.hv2-feature-img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  margin-bottom: 36px;
}

/* ===== 榮譽 ===== */
.hv2-honors {
  position: relative;
  max-width: 1120px;
  margin: 110px auto 0;
  padding: 0 0 40px;
  border-bottom: 1px solid;
  border-image: linear-gradient(to right, rgba(201,162,107,.15), var(--hv2-gold), rgba(201,162,107,.15)) 1;
}
.hv2-honors ul {
  list-style: none;
  position: relative;
  z-index: 1;
  padding-left: 40px;
}
.hv2-honors li {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: clamp(15px, 1.25vw, 19px);
  color: #e6e6e6;
  line-height: 1.6;
}
.hv2-honors li + li {
  margin-top: 30px;
}
.hv2-honors li img {
  flex: none;
  width: 34px;
  height: auto;
}
.hv2-honors b,
.hv2-honors strong {
  font-weight: 600;
  color: #fff;
}
/* 金色「1」上緣對齊榮譽區塊頂端，不超出區塊 */
.hv2-honors .hv2-honors-num {
  position: absolute;
  right: 4%;
  top: 0;
  height: 100%;
  width: auto;
  max-width: none;
}

/* ===== Footer ===== */
.hv2-footer {
  background: #000;
  padding: 44px 0 28px;
  text-align: center;
}
.hv2-qrcodes {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  max-width: 920px;
  margin: 0 auto !important;
}
.hv2-qrcodes li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.hv2-qrcodes a {
  display: block;
}
.hv2-qrcodes img {
  width: 120px;
  border: 6px solid #fff;
}
.hv2-qrcodes span {
  font-size: 13px;
  line-height: 1.5;
  color: var(--hv2-muted);
}
.hv2-address {
  margin: 40px 0 0;
  font-style: normal;
  font-size: 16px;
  line-height: 2;
  color: #e6e6e6;
}
.hv2-address a {
  color: inherit;
  text-decoration: none;
}
.hv2-copyright {
  margin-top: 32px !important;
  font-size: 13px;
  color: var(--hv2-muted);
}

/* ===== 平板 ===== */
@media (max-width: 1100px) {
  .hv2-hero-text {
    top: max(110px, 17%);
    width: 75%;
  }
  .hv2-panel-text {
    padding: 32px;
  }
  .hv2-features-grid {
    gap: 48px 40px;
    padding-left: var(--hv2-gutter);
    padding-right: var(--hv2-gutter);
  }
}

/* ===== 手機 ===== */
@media (max-width: 767px) {
  .home-v2,
  .hv2-footer {
    --hv2-gutter: 16px;
  }
  /* Hero 同前一版手機首頁：直式圖（9:16）寬度貼齊螢幕當背景，文字從車輛下方開始疊在圖上。
     圖片固定原比例不隨區塊放大（車輛固定在圖片上方約 22%~36%），內容較長時區塊往下長，圖片底部本身為黑色可無縫銜接 */
  /* 高度依內容（排到按鈕為止），圖片下方多出的暗部裁掉，並以漸層融入黑色避免切邊 */
  .hv2-hero {
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }
  .hv2-hero::after {
    content: "";
    position: absolute;
    z-index: 2;
    left: 0;
    right: 0;
    bottom: 0;
    height: 120px;
    background: linear-gradient(to bottom, rgba(0,0,0,0), #000);
    pointer-events: none;
  }
  .hv2-hero-media {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
  }
  .home-v2 .hv2-hero-media img {
    height: auto;
  }
  .hv2-hero-media::after {
    background: linear-gradient(to bottom, rgba(0,0,0,.3) 0%, rgba(0,0,0,0) 14%);
  }
  /* 同其他頁面手機版 header：Logo 靠左、按鈕靠右 */
  .hv2-header {
    justify-content: space-between;
  }
  .hv2-logo {
    position: static;
    transform: none;
  }
  .hv2-hero-text {
    position: relative;
    width: auto;
    top: auto;
    left: auto;
    padding: calc(100vw * 16 / 9 * .38) var(--hv2-gutter) 0;
  }
  .hv2-hero-en {
    font-size: clamp(26px, 8.2vw, 32px);
  }
  .hv2-hero-zh {
    font-size: clamp(25px, 7.6vw, 30px);
  }
  .hv2-hero-text p {
    margin-top: 16px;
    font-size: 14px;
  }
  .hv2-hero-bottom {
    /* 緊接在說明文字下方，不推到畫面底部 */
    position: relative;
    left: auto;
    bottom: auto;
    z-index: 3;
    padding: 32px var(--hv2-gutter) 24px;
  }
  .hv2-hero-tagline {
    font-size: 16px;
    line-height: 1.6;
  }
  .hv2-hero-btns {
    align-items: stretch;
  }
  .hv2-btn-outline {
    width: 100%;
    padding-left: 22px;
  }

  .hv2-panels {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
    padding-top: 24px;
    padding-bottom: 40px;
  }
  /* 第二組：圖片排在文字前面 */
  .hv2-panels > .hv2-panel:nth-child(4) {
    order: 3;
    margin-top: 16px;
  }
  .hv2-panels > .hv2-panel:nth-child(3) {
    order: 4;
  }
  .hv2-panel {
    padding: 16px;
  }
  .hv2-panel-text {
    padding: 28px 20px;
  }
  .hv2-panel-text p,
  .hv2-feature p {
    font-size: 14px;
    text-align: left;
  }
  .home-v2 h2 {
    margin-bottom: 20px;
  }

  .hv2-features {
    padding: 40px 0 56px;
  }
  .hv2-features-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 48px;
  }
  .hv2-feature-img {
    margin-bottom: 24px;
  }

  .hv2-honors {
    margin-top: 64px;
    padding-bottom: 28px;
  }
  .hv2-honors ul {
    padding-left: 0;
  }
  .hv2-honors li {
    gap: 14px;
    font-size: 14px;
    align-items: flex-start;
  }
  .hv2-honors li + li {
    margin-top: 20px;
  }
  .hv2-honors li img {
    width: 28px;
  }
  .hv2-honors .hv2-honors-num {
    right: 0;
    opacity: .45;
  }

  .hv2-qrcodes {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px 12px;
  }
  .hv2-qrcodes img {
    width: 110px;
  }
  .hv2-address {
    font-size: 14px;
  }
}
