/* ══════════════════════════════════════════
   HYA v2 — 新永安有線電視改版樣式
   所有類別使用 hv2- 前綴，避免與 main.css 衝突
   ══════════════════════════════════════════ */

/* ── 字型 & 基礎覆蓋 ── */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+TC:wght@300;400;500;700&family=DM+Sans:wght@300;400;500;700&display=swap');

body.homepage-v2,
body.homepage-v2 *,
body.innerpage-v2,
body.innerpage-v2 * {
  box-sizing: border-box;
}
body.homepage-v2 {
  font-family: 'Noto Sans TC', 'DM Sans', sans-serif;
  background: #F8FAFC;
  color: #1E293B;
  -webkit-font-smoothing: antialiased;
}
body.innerpage-v2 {
  font-family: 'Noto Sans TC', 'DM Sans', sans-serif;
  background: #F8FAFC;
  color: #1E293B;
  -webkit-font-smoothing: antialiased;
}

/* ── CSS 變數 ── */
:root {
  --hv2-navy:   #1E293B;
  --hv2-blue-d: #004a8f;
  --hv2-blue:   #005BAC;
  --hv2-blue-m: #00AEEF;
  --hv2-blue-l: #b3e5fc;
  --hv2-blue-xl:#e1f5fe;
  --hv2-teal:   #0F6E56;
  --hv2-teal-l: #E1F5EE;
  --hv2-amber:  #FF8A00;
  --hv2-amber-l:#fff3e0;
  --hv2-red:    #A32D2D;
  --hv2-red-l:  #FCEBEB;
  --hv2-gray-9: #1E293B;
  --hv2-gray-7: #3d4b63;
  --hv2-gray-5: #6b7a94;
  --hv2-gray-3: #c5cdd9;
  --hv2-gray-1: #f0f3f7;
  --hv2-white:  #fff;
  --hv2-r-s: 6px;
  --hv2-r-m: 10px;
  --hv2-r-l: 16px;
  --hv2-r-xl: 24px;
  --hv2-sh-s: 0 1px 4px rgba(0,91,172,.07);
  --hv2-sh-m: 0 4px 20px rgba(0,91,172,.10);
  --hv2-sh-l: 0 12px 40px rgba(0,91,172,.14);
}

/* ── 共用 Wrap ── */
.hv2-wrap {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 28px;
}

/* ════════════════════════════════════
   TOPBAR（首頁專用）
════════════════════════════════════ */
.hv2-topbar {
  background: var(--hv2-navy);
  padding: 7px 0;
  font-size: 12px;
  color: rgba(255,255,255,.65);
}
.hv2-topbar .hv2-wrap {
  display: flex;
  justify-content: space-between;
  flex-wrap: nowrap;
  overflow: hidden;
  gap: 16px;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.hv2-topbar a { color: rgba(255,255,255,.65); text-decoration: none; transition: color .15s; }
.hv2-topbar a:hover { color: #fff; }
.hv2-topbar > .hv2-wrap > span:first-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.hv2-topbar-right { display: flex; gap: 20px; flex-shrink: 0; white-space: nowrap; }

/* ════════════════════════════════════
   NAVBAR（全站）
════════════════════════════════════ */
.hv2-navbar {
  background: var(--hv2-white);
  border-bottom: 1px solid #e2e8f0;
  position: sticky;
  top: 0;
  z-index: 500;
  box-shadow: var(--hv2-sh-s);
}
.hv2-navbar .hv2-wrap {
  display: flex;
  align-items: center;
  height: 66px;
  gap: 0;
}

/* Logo */
.hv2-logo {
  display: flex;
  align-items: center;
  margin-right: auto;
  flex-shrink: 0;
  text-decoration: none;
}
.hv2-logo img { height: 38px; width: auto; object-fit: contain; }
.hv2-logo-fallback { display: none; align-items: center; gap: 10px; }
.hv2-logo-box {
  width: 38px; height: 38px;
  background: var(--hv2-blue);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
}
.hv2-logo-box svg { width: 22px; height: 22px; stroke: #fff; fill: none; stroke-width: 2; }
.hv2-logo-name { font-size: 16px; font-weight: 700; color: var(--hv2-navy); }
.hv2-logo-sub  { font-size: 11px; color: var(--hv2-gray-5); margin-top: 1px; }

/* Nav links */
.hv2-nav-links { display: flex; align-items: center; gap: 2px; }
.hv2-nav-item {
  position: relative;
  font-size: 14px; font-weight: 500;
  color: var(--hv2-gray-7);
  padding: 8px 14px;
  border-radius: var(--hv2-r-s);
  cursor: pointer;
  transition: all .15s;
  white-space: nowrap;
  user-select: none;
  text-decoration: none;
  display: block;
}
.hv2-nav-item:hover { background: var(--hv2-gray-1); color: var(--hv2-blue); }
.hv2-nav-item.hv2-active { color: var(--hv2-blue); }
.hv2-nav-item.hv2-has-sub::after {
  content: '';
  display: inline-block;
  width: 5px; height: 5px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  margin-left: 5px;
  vertical-align: middle;
  opacity: .7;
}
.hv2-dropdown {
  display: none;
  position: absolute;
  top: 100%;           /* 緊貼 nav item，消除空隙 */
  left: 0;
  background: var(--hv2-white);
  border: 1px solid #e2e8f0;
  border-radius: var(--hv2-r-m);
  box-shadow: var(--hv2-sh-m);
  min-width: 170px;
  padding: 10px 6px 6px; /* 上方 padding 補回視覺間距 */
  z-index: 600;
}
/* 透明橋接區：填補 nav item 底部與 dropdown 頂端的空隙，讓滑鼠可順利移入 */
.hv2-dropdown::before {
  content: '';
  position: absolute;
  top: -10px;
  left: 0;
  right: 0;
  height: 10px;
  background: transparent;
}
.hv2-nav-item:hover .hv2-dropdown { display: block; animation: hv2DropIn .15s ease; }
@keyframes hv2DropIn {
  from { opacity:0; transform:translateY(-6px); }
  to   { opacity:1; transform:translateY(0); }
}
.hv2-dropdown a {
  display: block;
  padding: 8px 13px;
  font-size: 13px;
  color: var(--hv2-gray-7);
  border-radius: var(--hv2-r-s);
  transition: all .12s;
  text-decoration: none;
}
.hv2-dropdown a:hover { background: var(--hv2-blue-xl); color: var(--hv2-blue); }

/* Nav actions */
.hv2-nav-actions { display: flex; gap: 8px; margin-left: 18px; flex-shrink: 0; }
.hv2-btn-line {
  font-size: 13px; font-weight: 500;
  padding: 8px 15px;
  border-radius: var(--hv2-r-m);
  border: 1.5px solid #00b900;
  color: #00b900;
  background: transparent;
  cursor: pointer;
  transition: all .15s;
  font-family: inherit;
}
.hv2-btn-line:hover { background: #00b90010; }
.hv2-btn-pay {
  font-size: 13px; font-weight: 600;
  padding: 8px 18px;
  border-radius: var(--hv2-r-m);
  background: var(--hv2-blue);
  color: var(--hv2-white);
  border: none;
  cursor: pointer;
  transition: background .15s;
  font-family: inherit;
}
.hv2-btn-pay:hover { background: var(--hv2-blue-d); }

/* Mobile toggle */
.hv2-mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  background: none;
  border: none;
  cursor: pointer;
  margin-left: 8px;
}
.hv2-mobile-toggle span {
  display: block;
  width: 22px; height: 2px;
  background: var(--hv2-gray-7);
  border-radius: 2px;
  transition: all .2s;
}

/* ════════════════════════════════════
   QUICKBAR（首頁專用）
════════════════════════════════════ */
.hv2-quickbar {
  background: var(--hv2-blue-xl);
  border-bottom: 1px solid var(--hv2-blue-l);
  padding: 9px 0;
}
.hv2-quickbar .hv2-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.hv2-qb-label {
  font-size: 12px; font-weight: 600;
  color: var(--hv2-blue-d);
  white-space: nowrap;
  margin-right: 4px;
  display: flex; align-items: center; gap: 5px;
}
.hv2-qb-label svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2.5; }
.hv2-qb-btn {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 500;
  padding: 6px 14px;
  border-radius: 20px;
  background: var(--hv2-white);
  border: 1px solid var(--hv2-blue-l);
  color: var(--hv2-blue-d);
  cursor: pointer;
  transition: all .15s;
  white-space: nowrap;
  font-family: inherit;
}
.hv2-qb-btn svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 2; flex-shrink: 0; }
.hv2-qb-btn:hover, .hv2-qb-hl { background: var(--hv2-blue); color: var(--hv2-white); border-color: var(--hv2-blue); }
.hv2-qb-hl:hover { background: var(--hv2-blue-d); }
.hv2-qb-line { background: #06c755; color: #fff; border-color: #06c755; }
.hv2-qb-line:hover { background: #05b04b; border-color: #05b04b; color: #fff; }

/* ════════════════════════════════════
   PROMO BAR（首頁專用）
════════════════════════════════════ */
.hv2-promo-bar {
  background: var(--hv2-amber-l);
  border-bottom: 1px solid #FF8A00;
  padding: 9px 0;
}
.hv2-promo-bar .hv2-wrap { display: flex; align-items: center; gap: 12px; }
.hv2-promo-tag {
  background: var(--hv2-amber);
  color: #fff;
  font-size: 11px; font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  white-space: nowrap;
}
.hv2-promo-text { font-size: 13px; color: #6b4a08; font-weight: 500; flex: 1; }
.hv2-promo-link {
  font-size: 12px; color: var(--hv2-amber); font-weight: 700;
  white-space: nowrap; cursor: pointer; text-decoration: none;
}
.hv2-promo-link:hover { text-decoration: underline; }

/* ════════════════════════════════════
   HERO（首頁專用）— 全幅背景圖版
════════════════════════════════════ */
.hv2-hero {
  position: relative;
  overflow: hidden;
  background: var(--hv2-navy);
  /* 與 navbar 同寬，不撐滿視窗 */
  max-width: 1320px;
  margin: 0 auto;
}

/* 全幅背景輪播：第一張圖撐高度，其餘絕對定位疊加 */
.hv2-hero-bg {
  position: relative; z-index: 0;
}
.hv2-hbg-slide {
  display: none;           /* 預設隱藏 */
  position: relative;
  cursor: pointer;
}
.hv2-hbg-slide.hv2-active {
  display: block;          /* active 撐高 hero */
}
/* 非 active 的 slide：絕對定位疊上，等待淡入 */
.hv2-hbg-slide.hv2-pending {
  display: block;
  position: absolute; inset: 0;
  opacity: 0;
  transition: opacity .9s ease;
}
.hv2-hbg-slide.hv2-pending.hv2-fade-in { opacity: 1; }

.hv2-hbg-slide img {
  width: 100%;
  height: auto;            /* 自然高度，上下完全不裁切 */
  display: block;
  background: var(--hv2-navy);
  aspect-ratio: 1920 / 896; /* 圖未載入前預留高度，防頁面跳動 */
}
.hv2-hbg-slide.hv2-no-img {
  min-height: 320px;
  background: linear-gradient(135deg, var(--hv2-navy), var(--hv2-blue-d));
}
/* B方案遮罩：疊在 hero-bg 上 */
.hv2-hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(
    98deg,
    #1E293B 0%,
    #1E293B 22%,
    rgba(0,91,172,.72) 36%,
    rgba(0,91,172,.18) 52%,
    transparent 64%
  );
  pointer-events: none;
}

/* 文字內容：絕對疊在圖片上，與 navbar 同寬對齊 */
.hv2-hero .hv2-wrap {
  position: absolute !important;
  top: 0; bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 1320px;   /* 與全域 .hv2-wrap 一致，文字左緣對齊 logo */
  padding: 0 28px;     /* 與全域 .hv2-wrap 一致 */
  z-index: 2;
  display: flex;
  align-items: center;
  margin: 0;
  pointer-events: none;  /* 讓點擊穿透到下層輪播圖 */
}
.hv2-hero .hv2-wrap button,
.hv2-hero .hv2-wrap a {
  pointer-events: auto;  /* 但按鈕和連結仍可點擊 */
}
.hv2-hero-content {
  max-width: 400px;
  padding: 32px 0;
}

/* 左右切換箭頭 */
.hv2-hero-arrow {
  position: absolute; top: 50%; z-index: 10;
  transform: translateY(-50%);
  width: 40px; height: 40px;
  background: rgba(0,91,172,.45);
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 50%;
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background .2s;
  flex-shrink: 0;
}
.hv2-hero-arrow svg { width: 18px; height: 18px; }
.hv2-hero-arrow:hover { background: rgba(0,91,172,.75); }
.hv2-hero-prev { left: 16px; }
.hv2-hero-next { right: 16px; }

/* Eyebrow */
.hv2-hero-eyebrow {
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.28);
  color: rgba(255,255,255,.9);
  font-size: 12px; font-weight: 600;
  padding: 5px 13px;
  border-radius: 20px;
  margin-bottom: 20px;
}
.hv2-hero-eyebrow::before {
  content: '';
  width: 7px; height: 7px;
  background: #38bdf8;
  border-radius: 50%;
  animation: hv2Blink 2.5s ease-in-out infinite;
}
@keyframes hv2Blink { 0%,100%{opacity:1}50%{opacity:.2} }

/* H1 */
.hv2-hero h1 {
  font-size: 54px; font-weight: 700;
  color: #fff;
  line-height: 1.15;
  letter-spacing: -.025em;
  margin-bottom: 16px;
}
.hv2-hero h1 em { font-style: normal; color: #7dd3fc; }

/* Desc & CTA */
.hv2-hero-desc { font-size: 15px; color: rgba(255,255,255,.78); line-height: 1.75; margin-bottom: 32px; }
.hv2-hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hv2-cta-main {
  font-size: 15px; font-weight: 700;
  padding: 14px 30px;
  border-radius: var(--hv2-r-m);
  background: var(--hv2-blue-m);
  color: #fff;
  border: none; cursor: pointer;
  transition: all .2s;
  box-shadow: 0 4px 20px rgba(55,138,221,.45);
  font-family: inherit;
}
.hv2-cta-main:hover { background: #00AEEF; transform: translateY(-2px); box-shadow: 0 6px 24px rgba(55,138,221,.55); }
.hv2-cta-sub {
  font-size: 15px; font-weight: 500;
  padding: 14px 26px;
  border-radius: var(--hv2-r-m);
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255,255,255,.45);
  cursor: pointer;
  transition: all .2s;
  font-family: inherit;
}
.hv2-cta-sub:hover { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.8); }

/* ══ Stats Bar（hero 下方數字列）══ */
.hv2-statsbar {
  background: var(--hv2-navy);
  max-width: 1320px;
  margin: 0 auto;
  border-top: 1px solid rgba(255,255,255,.08);
}
.hv2-statsbar .hv2-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  padding-bottom: 18px;
}
.hv2-sb-item {
  flex: 1;
  text-align: center;
}
.hv2-sb-num {
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  line-height: 1;
}
.hv2-sb-lbl {
  font-size: 12px;
  color: rgba(255,255,255,.55);
  margin-top: 4px;
}
.hv2-sb-div {
  width: 1px;
  height: 32px;
  background: rgba(255,255,255,.15);
  flex-shrink: 0;
}

/* 輪播圓點（右下角） */
.hv2-hero-dots {
  position: absolute; bottom: 28px; right: 40px;
  display: flex; gap: 7px; z-index: 10;
}
.hv2-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,.45);
  cursor: pointer;
  transition: all .25s;
}
.hv2-dot.hv2-active { background: #fff; width: 22px; border-radius: 4px; }

/* Hero badge cards */
.hv2-badge-cards {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 10px; margin-top: 14px;
}
.hv2-hbc {
  background: var(--hv2-white);
  border: 1px solid #e2e8f0;
  border-radius: var(--hv2-r-m);
  padding: 14px 16px;
  display: flex; align-items: center; gap: 12px;
  box-shadow: var(--hv2-sh-s);
}
.hv2-hbc-icon {
  width: 40px; height: 40px;
  border-radius: var(--hv2-r-s);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.hv2-hbc-icon svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.8; }
.hv2-hbc-icon.hv2-blue { background: var(--hv2-blue-xl); color: var(--hv2-blue); }
.hv2-hbc-icon.hv2-green { background: var(--hv2-teal-l); color: var(--hv2-teal); }
.hv2-hbc-val { font-size: 18px; font-weight: 700; color: var(--hv2-navy); line-height: 1; }
.hv2-hbc-lbl { font-size: 11px; color: var(--hv2-gray-5); margin-top: 2px; }

/* ════════════════════════════════════
   NEWS + PLANS（首頁）
════════════════════════════════════ */
/* ── 本月精選（獨立全寬區塊） ── */
.hv2-featured-section { padding: 36px 0 0; }
.hv2-fp-card {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0;
  border-radius: var(--hv2-r-l); overflow: hidden;
  box-shadow: var(--hv2-sh-m); text-decoration: none; color: inherit;
  transition: transform .22s, box-shadow .22s;
}
.hv2-fp-card:hover { transform: translateY(-3px); box-shadow: var(--hv2-sh-l); }
.hv2-fp-card .hv2-fp-img-wrap { position: relative; background: var(--hv2-navy); overflow: hidden; }
.hv2-fp-card .hv2-fp-img-wrap img { width: 100%; height: auto; display: block; }
.hv2-fp-card .hv2-fp-badge { position: absolute; top: 14px; left: 14px; }
.hv2-fp-card .hv2-fp-body { background: #fff; display: flex; flex-direction: column; justify-content: space-between; padding: 32px 36px; }
.hv2-fp-card .hv2-fp-title { font-size: 20px; font-weight: 700; color: var(--hv2-gray-9); margin-bottom: 10px; }
.hv2-fp-card .hv2-fp-desc { font-size: 13px; color: var(--hv2-gray-5); line-height: 1.7; }
.hv2-fp-card .hv2-fp-cta { display: inline-block; margin-top: 24px; background: var(--hv2-blue); color: #fff; font-size: 13px; font-weight: 600; padding: 10px 22px; border-radius: var(--hv2-r-m); }

/* ── 最新公告（獨立全寬區塊） ── */
.hv2-news-section { padding: 36px 0 0; }
.hv2-news-section .hv2-section-hd { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; }
.hv2-news-section .hv2-news-list { background: #fff; border-radius: var(--hv2-r-l); box-shadow: var(--hv2-sh-s); overflow: hidden; }

/* ── 舊合併區塊（保留向下相容） ── */
.hv2-news-plans { padding: 36px 0 0; }
.hv2-news-plans .hv2-wrap { display: grid; grid-template-columns: 1.45fr 1fr; gap: 24px; }

/* Panel */
.hv2-panel {
  background: var(--hv2-white);
  border: 1px solid #e2e8f0;
  border-radius: var(--hv2-r-l);
  overflow: hidden;
  box-shadow: var(--hv2-sh-s);
}
.hv2-panel-head {
  padding: 11px 16px;
  border-bottom: 1px solid var(--hv2-gray-1);
  background: var(--hv2-gray-1);
  display: flex; align-items: center; justify-content: space-between;
}
.hv2-panel-title {
  font-size: 14px; font-weight: 700;
  color: var(--hv2-navy);
  display: flex; align-items: center; gap: 7px;
}
.hv2-panel-title svg { width: 16px; height: 16px; stroke: var(--hv2-blue-m); fill: none; stroke-width: 2; }
.hv2-panel-more { font-size: 12px; color: var(--hv2-blue); font-weight: 600; text-decoration: none; }
.hv2-panel-more:hover { text-decoration: underline; }

/* News tabs */
.hv2-news-tabs {
  display: flex;
  border-bottom: 1px solid var(--hv2-gray-1);
  padding: 0 16px;
  background: var(--hv2-white);
}
.hv2-ntab {
  font-size: 13px; font-weight: 500;
  padding: 10px 11px;
  color: var(--hv2-gray-5);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all .15s;
  white-space: nowrap;
}
.hv2-ntab.hv2-on { color: var(--hv2-blue); border-bottom-color: var(--hv2-blue); }

/* News items */
.hv2-news-list { padding: 0; }
.hv2-nitem {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 16px;
  border-bottom: 1px solid #f3f6fb;
  cursor: pointer;
  transition: background .1s;
  text-decoration: none;
}
.hv2-nitem:last-child { border-bottom: none; }
.hv2-nitem:hover { background: var(--hv2-blue-xl); }
.hv2-nbadge {
  flex-shrink: 0;
  font-size: 10px; font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  margin-top: 3px;
  white-space: nowrap;
}
.hv2-nb-notice { background: var(--hv2-blue-xl); color: var(--hv2-blue); }
.hv2-nb-promo  { background: var(--hv2-amber-l); color: var(--hv2-amber); }
.hv2-nb-sys    { background: var(--hv2-red-l);   color: var(--hv2-red); }
.hv2-nb-info   { background: var(--hv2-teal-l);  color: var(--hv2-teal); }
.hv2-ntitle {
  font-size: 13px; color: var(--hv2-gray-9); line-height: 1.5;
  margin-bottom: 3px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 340px;
}
.hv2-ndate { font-size: 11px; color: var(--hv2-gray-5); }
.hv2-narrow { color: var(--hv2-gray-3); font-size: 18px; flex-shrink: 0; line-height: 1; margin-top: 2px; }

/* 精選方案（方案 B 右欄） */
.hv2-featured-plan {
  display: flex;
  flex-direction: column;
  border-radius: var(--hv2-r-l);
  overflow: hidden;
  box-shadow: var(--hv2-sh-m);
  background: #fff;
  text-decoration: none;
  color: inherit;
  transition: transform .25s, box-shadow .25s;
}
.hv2-featured-plan:hover {
  transform: translateY(-4px);
  box-shadow: var(--hv2-sh-l);
}
.hv2-fp-img-wrap {
  position: relative;
  width: 100%;
  flex-shrink: 0;
}
.hv2-fp-fallback {
  position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(135deg, #1E293B 0%, #005BAC 100%);
}
.hv2-fp-img-wrap img {
  display: block;
  width: 100%; height: auto;
  position: relative; z-index: 1;
}
.hv2-fp-badge {
  position: absolute; top: 14px; left: 14px;
  z-index: 2;
  background: #FF8A00;
  color: #fff;
  font-size: 12px; font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  letter-spacing: .5px;
}
.hv2-fp-body {
  flex: 1;                        /* 撐滿圖片以下的剩餘高度 */
  padding: 20px 22px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* title/desc 上方、CTA 貼底 */
}
.hv2-fp-top {}
.hv2-fp-title {
  font-size: 17px; font-weight: 700;
  color: var(--hv2-navy); line-height: 1.4;
  margin-bottom: 8px;
}
.hv2-fp-desc {
  font-size: 13px; color: var(--hv2-gray-5);
  line-height: 1.6;
}
.hv2-fp-cta {
  display: inline-block;
  margin-top: 18px;
  background: var(--hv2-blue);
  color: #fff;
  font-size: 13px; font-weight: 600;
  padding: 10px 22px;
  border-radius: 8px;
  letter-spacing: .3px;
  transition: background .2s;
  align-self: flex-start;
}
.hv2-featured-plan:hover .hv2-fp-cta {
  background: var(--hv2-blue-d);
}

/* Plans (legacy list, kept for non-B layouts) */
.hv2-pcard {
  margin: 14px 16px 0;
  border: 1.5px solid #e2e8f0;
  border-radius: var(--hv2-r-m);
  padding: 15px;
  cursor: pointer;
  transition: all .2s;
  position: relative;
  text-decoration: none;
  display: block;
}
.hv2-pcard:hover { border-color: var(--hv2-blue-m); box-shadow: 0 4px 14px rgba(24,95,165,.12); transform: translateY(-2px); }
.hv2-pcard.hv2-feat { border: 2px solid var(--hv2-blue); background: linear-gradient(135deg,#eaf3fd,#f7fbff); }
.hv2-p-popular {
  position: absolute; top: -11px; right: 14px;
  background: var(--hv2-blue); color: #fff;
  font-size: 10px; font-weight: 700;
  padding: 3px 10px; border-radius: 20px;
}
.hv2-p-name  { font-size: 14px; font-weight: 700; color: var(--hv2-gray-9); margin-bottom: 7px; }
.hv2-p-price { display: flex; align-items: baseline; gap: 4px; margin-bottom: 7px; }
.hv2-p-num   { font-size: 28px; font-weight: 700; color: var(--hv2-blue-d); line-height: 1; }
.hv2-p-unit  { font-size: 13px; color: var(--hv2-gray-5); }
.hv2-p-desc  { font-size: 12px; color: var(--hv2-gray-5); line-height: 1.5; }
.hv2-p-tags  { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 9px; }
.hv2-p-tag   { font-size: 11px; padding: 2px 8px; border-radius: 4px; background: var(--hv2-blue-xl); color: var(--hv2-blue-d); font-weight: 500; }
.hv2-plan-cta {
  display: block; margin: 12px 16px 16px;
  padding: 10px;
  border-radius: var(--hv2-r-m);
  background: var(--hv2-blue); color: #fff;
  font-size: 13px; font-weight: 600;
  text-align: center; cursor: pointer;
  transition: background .15s;
  text-decoration: none;
}
.hv2-plan-cta:hover { background: var(--hv2-blue-d); }

/* ════════════════════════════════════
   MARKETING BANNERS（首頁）
════════════════════════════════════ */
.hv2-banners-section { padding: 36px 0; }
.hv2-section-hd {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 22px;
}
.hv2-section-hd h2 { font-size: 22px; font-weight: 700; color: var(--hv2-navy); letter-spacing: -.015em; }
.hv2-section-hd a  { font-size: 13px; color: var(--hv2-blue); font-weight: 600; text-decoration: none; }
.hv2-section-hd a:hover { text-decoration: underline; }
.hv2-banners-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 18px; }
.hv2-banner-card {
  border-radius: var(--hv2-r-l);
  overflow: hidden;
  position: relative;
  /* 不鎖 aspect-ratio：讓卡片高度由圖片決定 */
  min-height: 160px;       /* 圖片載入失敗時的底線 */
  background: #eaf3fd;     /* 圖片載入失敗時的背景色 */
  cursor: pointer;
  box-shadow: var(--hv2-sh-s);
  transition: all .25s;
  display: block;
  text-decoration: none;
}
.hv2-banner-card:hover { transform: translateY(-4px); box-shadow: var(--hv2-sh-l); }
.hv2-banner-card img {
  display: block;
  width: 100%;
  height: auto;          /* 圖片完整顯示，高度由圖片自然比例決定 */
  position: relative;    /* 正常文件流，定義卡片高度 */
  z-index: 1;
  transition: transform .35s;
}
.hv2-banner-card:hover img { transform: scale(1.04); }
.hv2-banner-fallback {
  position: absolute; inset: 0;
  z-index: 0 !important;
}
.hv2-banner-fallback.c1 { background: linear-gradient(145deg,#005BAC,#00AEEF); }
.hv2-banner-fallback.c2 { background: linear-gradient(145deg,#0F6E56,#1D9E75); }
.hv2-banner-fallback.c3 { background: linear-gradient(145deg,#7a3b0e,#FF8A00); }
.hv2-banner-fallback.c4 { background: linear-gradient(145deg,#1E293B,#004a8f); }
.hv2-banner-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top,rgba(0,91,172,.75) 0%,transparent 50%);
  display: flex; flex-direction: column;
  justify-content: flex-end;
  padding: 14px 16px;
  z-index: 2 !important;
  pointer-events: none;
}
.hv2-banner-tag {
  font-size: 10px; font-weight: 700;
  background: var(--hv2-amber); color: #fff;
  padding: 3px 8px; border-radius: 4px;
  display: inline-block; margin-bottom: 6px; width: fit-content;
}
.hv2-banner-title { font-size: 14px; font-weight: 700; color: #fff; line-height: 1.4; margin-bottom: 4px; }
.hv2-banner-more  { font-size: 12px; color: rgba(255,255,255,.8); }
.hv2-banner-more::after { content: ' →'; }

/* ════════════════════════════════════
   SERVICES（首頁）
════════════════════════════════════ */
.hv2-services-bg {
  background: var(--hv2-white);
  border-top: 1px solid #edf2f8;
  border-bottom: 1px solid #edf2f8;
}
.hv2-services-bg .hv2-wrap {
  display: grid; grid-template-columns: repeat(6,1fr); gap: 0;
  padding-top: 0; padding-bottom: 0;
}
.hv2-svc {
  display: flex; flex-direction: column; align-items: center; gap: 9px;
  padding: 26px 12px;
  cursor: pointer; transition: all .2s;
  border-right: 1px solid #edf2f8;
  text-align: center;
  text-decoration: none;
}
.hv2-svc:last-child { border-right: none; }
.hv2-svc:hover { background: var(--hv2-blue-xl); }
.hv2-svc-icon {
  width: 50px; height: 50px;
  background: var(--hv2-blue-xl);
  border-radius: var(--hv2-r-m);
  display: flex; align-items: center; justify-content: center;
  transition: background .2s;
}
.hv2-svc:hover .hv2-svc-icon { background: var(--hv2-blue); }
.hv2-svc-icon svg { width: 24px; height: 24px; stroke: var(--hv2-blue); fill: none; stroke-width: 1.8; transition: stroke .2s; }
.hv2-svc:hover .hv2-svc-icon svg { stroke: #fff; }
.hv2-svc-name { font-size: 13px; font-weight: 600; color: var(--hv2-gray-7); }
.hv2-svc-desc { font-size: 11px; color: var(--hv2-gray-5); line-height: 1.4; }

/* ════════════════════════════════════
   PRODUCTS（首頁）
════════════════════════════════════ */
.hv2-products-section { padding: 40px 0; }
.hv2-products-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
.hv2-prod-card {
  background: var(--hv2-white);
  border: 1px solid #e2e8f0;
  border-radius: var(--hv2-r-xl);
  overflow: hidden;
  box-shadow: var(--hv2-sh-s);
  transition: all .25s;
}
.hv2-prod-card:hover { box-shadow: var(--hv2-sh-m); transform: translateY(-4px); }
.hv2-prod-head { padding: 28px 24px 22px; position: relative; }
.hv2-prod-head.hv2-tv  { background: linear-gradient(135deg,var(--hv2-navy) 0%,#005BAC 100%); }
.hv2-prod-head.hv2-net { background: linear-gradient(135deg,#073d2e 0%,var(--hv2-teal) 100%); }
.hv2-prod-head.hv2-ott { background: linear-gradient(135deg,#5c2800,#FF8A00 100%); }
.hv2-prod-head-icon {
  width: 54px; height: 54px;
  background: rgba(255,255,255,.15);
  border-radius: var(--hv2-r-m);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
}
.hv2-prod-head-icon svg { width: 28px; height: 28px; stroke: #fff; fill: none; stroke-width: 1.8; }
.hv2-prod-name { font-size: 22px; font-weight: 700; color: #fff; margin-bottom: 5px; }
.hv2-prod-tag  { font-size: 12px; color: rgba(255,255,255,.72); }
.hv2-prod-body { padding: 20px 24px 24px; }
.hv2-prod-feat {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid #f3f6fb;
  font-size: 13px; color: var(--hv2-gray-7);
}
.hv2-prod-feat:last-of-type { border-bottom: none; margin-bottom: 4px; }
.hv2-feat-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--hv2-blue-m); flex-shrink: 0; }
.hv2-prod-link {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 13px; font-weight: 700; color: var(--hv2-blue);
  cursor: pointer; margin-top: 14px;
  text-decoration: none;
}
.hv2-prod-link::after { content: ' →'; }

/* ════════════════════════════════════
   FAQ（首頁）
════════════════════════════════════ */
.hv2-faq-section { padding: 0 0 40px; }
.hv2-faq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.hv2-faq-item {
  background: var(--hv2-white);
  border: 1px solid #e2e8f0;
  border-radius: var(--hv2-r-m);
  padding: 16px 20px;
  transition: all .15s;
}
.hv2-faq-item:hover { border-color: var(--hv2-blue-l); box-shadow: var(--hv2-sh-s); }
.hv2-faq-q {
  font-size: 14px; font-weight: 600; color: var(--hv2-gray-9);
  margin-bottom: 7px;
  display: flex; align-items: flex-start; gap: 8px;
}
.hv2-faq-q::before {
  content: 'Q';
  font-size: 11px; font-weight: 700;
  color: var(--hv2-blue);
  background: var(--hv2-blue-xl);
  padding: 2px 7px; border-radius: 4px;
  flex-shrink: 0; margin-top: 1px;
}
.hv2-faq-a { font-size: 13px; color: var(--hv2-gray-5); line-height: 1.65; }

/* ════════════════════════════════════
   COVERAGE（首頁）
════════════════════════════════════ */
.hv2-coverage {
  background: linear-gradient(120deg,var(--hv2-navy) 0%,var(--hv2-blue-d) 100%);
  padding: 52px 0;
}
.hv2-coverage .hv2-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.hv2-cov-title { font-size: 32px; font-weight: 700; color: #fff; line-height: 1.2; margin-bottom: 14px; }
.hv2-cov-desc  { font-size: 14px; color: rgba(255,255,255,.7); line-height: 1.75; margin-bottom: 24px; }
.hv2-cov-areas { display: flex; flex-wrap: wrap; gap: 8px; }
.hv2-area-pill {
  background: rgba(255,255,255,.12);
  color: rgba(255,255,255,.9);
  font-size: 13px; font-weight: 500;
  padding: 6px 15px; border-radius: 20px;
  border: 1px solid rgba(255,255,255,.2);
}
.hv2-cov-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.hv2-cov-stat {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--hv2-r-m);
  padding: 22px; text-align: center;
}
.hv2-cov-num  { font-size: 36px; font-weight: 700; color: #fff; line-height: 1; }
.hv2-cov-unit { font-size: 16px; color: rgba(255,255,255,.6); }
.hv2-cov-lbl  { font-size: 12px; color: rgba(255,255,255,.55); margin-top: 6px; }

/* ════════════════════════════════════
   CONTACT BAR（首頁）
════════════════════════════════════ */
.hv2-contact-bar {
  background: var(--hv2-gray-1);
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
  padding: 20px 0;
}
.hv2-contact-bar .hv2-wrap { display: flex; align-items: center; gap: 32px; flex-wrap: wrap; }
.hv2-contact-logo img { height: 40px; width: auto; }
.hv2-contact-logo .hv2-fallback-name { font-size: 16px; font-weight: 700; color: var(--hv2-navy); }
.hv2-contact-divider { width: 1px; height: 36px; background: var(--hv2-gray-3); flex-shrink: 0; }
.hv2-contact-info { flex: 1; display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.hv2-cinfo-item { display: flex; align-items: flex-start; gap: 8px; }
.hv2-cinfo-icon {
  width: 32px; height: 32px;
  background: var(--hv2-white);
  border-radius: var(--hv2-r-s);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; box-shadow: var(--hv2-sh-s);
}
.hv2-cinfo-icon svg { width: 16px; height: 16px; stroke: var(--hv2-blue); fill: none; stroke-width: 2; }
.hv2-cinfo-lbl { font-size: 11px; color: var(--hv2-gray-5); margin-bottom: 2px; }
.hv2-cinfo-val { font-size: 13px; font-weight: 600; color: var(--hv2-gray-9); line-height: 1.35; }

/* ════════════════════════════════════
   FOOTER（全站）
════════════════════════════════════ */
.hv2-footer {
  background: #1E293B;
  color: rgba(255,255,255,.7);
  padding: 44px 0 32px;
}
.hv2-footer .hv2-wrap { display: grid; grid-template-columns: 2.2fr 1fr 1fr 1fr; gap: 44px; }
.hv2-footer-logo img { height: 36px; width: auto; filter: brightness(0) invert(1) opacity(.8); }
.hv2-footer-desc { font-size: 13px; color: rgba(255,255,255,.45); line-height: 1.75; margin-top: 12px; max-width: 260px; }
.hv2-footer-contacts { margin-top: 16px; display: flex; flex-direction: column; gap: 8px; }
.hv2-fci { font-size: 13px; color: rgba(255,255,255,.55); display: flex; align-items: center; gap: 8px; }
.hv2-fci svg { width: 13px; height: 13px; stroke: rgba(255,255,255,.4); fill: none; stroke-width: 2; flex-shrink: 0; }
.hv2-socials { display: flex; gap: 9px; margin-top: 18px; }
.hv2-s-btn {
  width: 34px; height: 34px;
  background: rgba(255,255,255,.1);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: background .15s;
  text-decoration: none;
}
.hv2-s-btn:hover { background: rgba(255,255,255,.2); }
.hv2-s-btn svg { width: 16px; height: 16px; stroke: rgba(255,255,255,.75); fill: none; stroke-width: 2; }
.hv2-footer-col-title {
  font-size: 11px; font-weight: 700;
  color: rgba(255,255,255,.4);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 14px;
}
.hv2-footer-col a {
  display: block; font-size: 13px;
  color: rgba(255,255,255,.5);
  margin-bottom: 9px;
  transition: color .12s; text-decoration: none;
}
.hv2-footer-col a:hover { color: rgba(255,255,255,.9); }
.hv2-footer-bottom {
  background: #1E293B;
  padding: 14px 0;
  font-size: 12px;
  color: rgba(255,255,255,.3);
}
.hv2-footer-bottom .hv2-wrap { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.hv2-footer-bottom a { color: rgba(255,255,255,.35); text-decoration: none; }
.hv2-footer-bottom a:hover { color: rgba(255,255,255,.7); }
.hv2-footer-bottom-links { display: flex; gap: 20px; }

/* Footer new structure */
.hv2-footer .hv2-wrap { display: grid; grid-template-columns: 2.2fr 3fr; gap: 44px; }
.hv2-footer-brand img { height: 36px; width: auto; filter: brightness(0) invert(1) opacity(.8); }
.hv2-footer-slogan { font-size: 13px; color: rgba(255,255,255,.45); line-height: 1.75; margin-top: 12px; max-width: 280px; }
.hv2-footer-contact { margin-top: 14px; display: flex; flex-direction: column; gap: 8px; }
.hv2-footer-contact div { font-size: 13px; color: rgba(255,255,255,.55); display: flex; align-items: center; gap: 8px; }
.hv2-footer-contact svg { width: 13px; height: 13px; stroke: rgba(255,255,255,.4); fill: none; stroke-width: 2; flex-shrink: 0; }
.hv2-footer-contact a { color: rgba(255,255,255,.55); text-decoration: none; }
.hv2-footer-contact a:hover { color: #fff; }
.hv2-footer-social { display: flex; gap: 9px; margin-top: 18px; }
.hv2-footer-social a {
  width: 34px; height: 34px;
  background: rgba(255,255,255,.1);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: background .15s; text-decoration: none;
}
.hv2-footer-social a:hover { background: rgba(255,255,255,.2); }
.hv2-footer-social svg { width: 16px; height: 16px; stroke: rgba(255,255,255,.75); fill: none; stroke-width: 2; }
.hv2-footer-links { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; }
.hv2-footer-col .hv2-fcol-title {
  font-size: 11px; font-weight: 700;
  color: rgba(255,255,255,.4);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 14px;
}

/* 隱藏舊版元素（首頁 + 內頁共用） */
body.homepage-v2 #headTop,
body.homepage-v2 #header.in_index,
body.homepage-v2 .in_index#headTop,
body.homepage-v2 #indexBanners,
body.homepage-v2 #headAside,
body.homepage-v2 #backTop,
body.innerpage-v2 #headTop,
body.innerpage-v2 #header,
body.innerpage-v2 #headAside,
body.innerpage-v2 #sidebar { display: none !important; }

body.homepage-v2 #wrapper,
body.homepage-v2 .snap_page,
body.innerpage-v2 #wrapper,
body.innerpage-v2 .snap_page {
  background: #F8FAFC !important;
  overflow: visible !important;
}
body.homepage-v2 #main { padding: 0 !important; }

/* 內頁：main 保留 padding，移除左側 aside 空間 */
body.innerpage-v2 #main { padding-left: 0 !important; }
body.innerpage-v2 .page_aside { display: none !important; }
body.innerpage-v2 .contain { width: 100% !important; max-width: 900px; margin: 0 auto; }

/* ══ 內頁 page banner → 漸層細標題列 ══ */
body.innerpage-v2 .page_banner { display: none !important; }
body.innerpage-v2 .banner_img { display: none !important; }

/* ══ 內頁 Page Header (title + breadcrumbs combined) ══ */
body.innerpage-v2 .hv2-page-header {
  max-width: 1320px;
  margin: 0 auto;
  background: #F8FAFC;
  border-bottom: 1px solid #e2e8f0;
}
body.innerpage-v2 .hv2-page-header-inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 14px 28px;
  gap: 16px;
}
body.innerpage-v2 .hv2-page-header-bc {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 2px;
  font-size: 13px;
  color: var(--hv2-gray-7);
  padding-bottom: 2px;
}
body.innerpage-v2 .hv2-page-header-bc a {
  color: var(--hv2-blue);
  text-decoration: none;
}
body.innerpage-v2 .hv2-page-header-bc a:hover { text-decoration: underline; }
body.innerpage-v2 .hv2-page-header-bc span { margin: 0 2px; }
body.innerpage-v2 .hv2-bc-current { color: var(--hv2-gray-7); }
body.innerpage-v2 .hv2-page-header-title {
  text-align: right;
  flex-shrink: 0;
}
body.innerpage-v2 .hv2-page-header-title .en {
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--hv2-blue);
  opacity: 0.75;
  margin-bottom: 3px;
}
body.innerpage-v2 .hv2-page-header-title .cn {
  font-size: 22px;
  font-weight: 700;
  margin: 0;
  letter-spacing: 2px;
  color: var(--hv2-navy);
}

/* ══ 內頁 Breadcrumbs（已整合進 hv2-page-header，保留以防舊頁面）══ */
.hv2-breadcrumbs {
  background: #fff;
  border-bottom: 1px solid #e8ecf2;
  padding: 10px 0;
  font-size: 13px;
  color: #6b7a94;
}
.hv2-breadcrumbs .hv2-wrap { display: flex; align-items: center; gap: 6px; }
.hv2-breadcrumbs a { color: #6b7a94; text-decoration: none; }
.hv2-breadcrumbs a:hover { color: var(--hv2-blue); }
.hv2-breadcrumbs span { color: #bcc4d0; }
.hv2-bc-current { color: var(--hv2-blue); font-weight: 500; }

/* ══ 優惠方案 Featured ══ */
.hv2-disc-featured { background: #F8FAFC; padding: 48px 0 32px; }
.hv2-disc-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,91,172,.12);
  text-decoration: none;
  background: #fff;
  transition: transform .25s, box-shadow .25s;
}
.hv2-disc-hero:hover { transform: translateY(-4px); box-shadow: 0 16px 48px rgba(0,91,172,.18); }
.hv2-disc-hero-img {
  position: relative;
  min-height: 300px;
  overflow: hidden;
  background: var(--hv2-navy);
}
.hv2-disc-hero-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s;
}
.hv2-disc-hero:hover .hv2-disc-hero-img img { transform: scale(1.04); }
.hv2-disc-badge {
  position: absolute; top: 16px; left: 16px;
  background: var(--hv2-gold, #FF8A00);
  color: #fff;
  font-size: 12px; font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
}
.hv2-disc-hero-body {
  padding: 36px 40px;
  display: flex; flex-direction: column; justify-content: center;
  gap: 16px;
}
.hv2-disc-date { font-size: 13px; color: #888; margin-bottom: 8px; }
.hv2-disc-hero-title { font-size: 24px; font-weight: 700; color: var(--hv2-navy); margin: 0 0 12px; line-height: 1.35; }
.hv2-disc-hero-desc { font-size: 14px; color: #555; line-height: 1.7; margin-bottom: 20px; flex: 1; }
.hv2-disc-hero-cta { display: inline-flex; align-items: center; gap: 6px; background: var(--hv2-blue); color: #fff; padding: 10px 24px; border-radius: 8px; font-size: 14px; font-weight: 600; align-self: flex-start; transition: background .15s; }
.hv2-disc-hero:hover .hv2-disc-hero-cta { background: var(--hv2-blue-d); }

/* ── Discount section / grid ── */
.hv2-disc-section { background: #fff; padding: 36px 0 60px; }
.hv2-disc-section-hd { margin-bottom: 24px; }
.hv2-disc-section-hd h2 { font-size: 20px; font-weight: 700; color: var(--hv2-navy); padding-bottom: 10px; border-bottom: 2px solid #e5e7ef; }
.hv2-disc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
/* 孤立最後一張：置中 */
.hv2-disc-grid > .hv2-disc-card:last-child:nth-child(3n+1) { grid-column: 2 / 3; }

.hv2-disc-card {
  display: flex; flex-direction: column;
  border-radius: 12px; overflow: hidden;
  border: 1px solid #e5e7ef;
  text-decoration: none; color: inherit;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,91,172,.07);
  transition: transform .22s, box-shadow .22s;
}
.hv2-disc-card:hover { transform: translateY(-4px); box-shadow: 0 10px 32px rgba(0,91,172,.13); }
.hv2-disc-card-img { position: relative; height: 180px; overflow: hidden; background: #eee; }
.hv2-disc-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s; }
.hv2-disc-card:hover .hv2-disc-card-img img { transform: scale(1.05); }
.hv2-disc-card-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,91,172,.25), transparent); }
.hv2-disc-card-body { padding: 18px 20px; display: flex; flex-direction: column; flex: 1; gap: 6px; }
.hv2-disc-card-date { font-size: 12px; color: #888; }
.hv2-disc-card-title { font-size: 15px; font-weight: 700; color: var(--hv2-navy); line-height: 1.4; }
.hv2-disc-card-desc { font-size: 13px; color: #666; line-height: 1.6; flex: 1; }
.hv2-disc-card-more { font-size: 13px; color: var(--hv2-blue); font-weight: 600; margin-top: 6px; }

/* Animate-in */
.hv2-au { opacity: 0; transform: translateY(18px); animation: hv2AuIn .45s ease forwards; }
@keyframes hv2AuIn { to { opacity: 1; transform: none; } }

/* ══ LINE 懸浮按鈕 ══ */
.hv2-line-fab {
  position: fixed;
  bottom: 88px;
  right: max(20px, calc((100vw - 1200px) / 2));
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  background: #06c755;
  color: #fff;
  border-radius: 50px;
  padding: 10px 14px;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(6,199,85,.45);
  transition: transform .2s, box-shadow .2s;
  line-height: 1.2;
}
.hv2-line-fab:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(6,199,85,.55);
  color: #fff;
}
.hv2-line-fab span {
  font-size: 11px;
  font-weight: 700;
  text-align: center;
  letter-spacing: .5px;
}

/* ═══════════════════════════════════════════
   hv2 Inner Page Layout (Level 3)
═══════════════════════════════════════════ */
.hv2-inner-page { padding: 40px 0 64px; }
.hv2-inner-layout { display: flex; gap: 36px; align-items: flex-start; }
.hv2-inner-sidebar { width: 210px; flex-shrink: 0; }
.hv2-inner-sidebar-title { background: var(--hv2-navy); color: #fff; padding: 13px 18px; font-weight: 700; font-size: 14px; border-radius: 6px 6px 0 0; letter-spacing: .02em; }
.hv2-inner-sidebar-nav { border: 1px solid #dce3f0; border-top: none; border-radius: 0 0 6px 6px; overflow: hidden; }
.hv2-inner-sidebar-nav a { display: block; padding: 11px 18px; color: #444; font-size: 14px; border-bottom: 1px solid #eee; transition: background .15s, color .15s; text-decoration: none; }
.hv2-inner-sidebar-nav a:last-child { border-bottom: none; }
.hv2-inner-sidebar-nav a:hover { background: #f0f4fa; color: var(--hv2-blue); }
.hv2-inner-sidebar-nav a.hv2-on { color: var(--hv2-blue); font-weight: 700; background: #eef3fb; border-left: 3px solid var(--hv2-blue); padding-left: 15px; }
.hv2-inner-main { flex: 1; min-width: 0; }
.hv2-inner-page-title { font-size: 20px; font-weight: 700; color: var(--hv2-navy); margin-bottom: 22px; padding-bottom: 12px; border-bottom: 2px solid #e5e7ef; }

/* Inner tab bar */
.hv2-inner-tabs { display: flex; border-bottom: 2px solid #e5e7ef; margin-bottom: 26px; }
.hv2-inner-tab { padding: 10px 22px; font-size: 14px; font-weight: 600; color: #666; text-decoration: none; border-bottom: 3px solid transparent; margin-bottom: -2px; transition: color .15s; white-space: nowrap; }
.hv2-inner-tab:hover { color: var(--hv2-blue); }
.hv2-inner-tab.hv2-on { color: var(--hv2-blue); border-bottom-color: var(--hv2-blue); }

/* Generic content */
.hv2-inner-content h3 { font-size: 18px; font-weight: 700; color: var(--hv2-navy); margin: 0 0 10px; }
.hv2-inner-content .hv2-section { margin-bottom: 36px; }
.hv2-inner-content .hv2-section-img { width: 100%; max-width: 340px; float: right; margin-left: 24px; margin-bottom: 16px; border-radius: 8px; }
.hv2-inner-content p { line-height: 1.85; color: #555; margin-bottom: 12px; }
.hv2-inner-content hr { border: none; border-top: 1px solid #e5e7ef; margin: 28px 0; }

/* FAQ */
.hv2-faq-group { margin-bottom: 32px; }
.hv2-faq-group-title { display: flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 700; color: var(--hv2-navy); margin-bottom: 14px; padding-bottom: 8px; border-bottom: 1px solid #e5e7ef; }
.hv2-faq-group-title img { width: 28px; height: 28px; object-fit: contain; }
.hv2-faq-item { border: 1px solid #e5e7ef; border-radius: 6px; margin-bottom: 8px; overflow: hidden; }
.hv2-faq-q { width: 100%; padding: 13px 18px; font-size: 14px; font-weight: 600; color: #333; background: #f9fafc; border: none; cursor: pointer; text-align: left; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.hv2-faq-q::after { content: '＋'; font-size: 18px; color: var(--hv2-blue); flex-shrink: 0; }
.hv2-faq-item.hv2-open .hv2-faq-q::after { content: '－'; }
.hv2-faq-a { display: none; padding: 13px 18px; font-size: 14px; color: #555; line-height: 1.85; background: #fff; border-top: 1px solid #e5e7ef; }
.hv2-faq-item.hv2-open .hv2-faq-a { display: block; }

/* Download */
.hv2-dl-group { margin-bottom: 32px; }
.hv2-dl-group-head { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.hv2-dl-group-head img { width: 28px; height: 28px; object-fit: contain; }
.hv2-dl-group-title { font-size: 16px; font-weight: 700; color: var(--hv2-navy); }
.hv2-dl-group-sub { font-size: 13px; color: #888; margin-bottom: 12px; margin-left: 38px; }
.hv2-dl-list { border: 1px solid #e5e7ef; border-radius: 8px; overflow: hidden; }
.hv2-dl-item { display: flex; justify-content: space-between; align-items: center; padding: 13px 20px; border-bottom: 1px solid #eee; text-decoration: none; color: #333; font-size: 14px; transition: background .15s; }
.hv2-dl-item:last-child { border-bottom: none; }
.hv2-dl-item:hover { background: #f0f4fa; }
.hv2-dl-item h4 { margin: 0; font-size: 14px; font-weight: 500; }
.hv2-dl-meta { display: flex; align-items: center; gap: 12px; color: #888; font-size: 12px; flex-shrink: 0; }
.hv2-dl-icon { font-size: 15px; color: var(--hv2-blue); }

/* Channel table */
.hv2-ch-group { margin-bottom: 32px; }
.hv2-ch-group-title { font-size: 16px; font-weight: 700; color: var(--hv2-navy); margin-bottom: 14px; }
.hv2-ch-table-wrap { border: 1px solid #e5e7ef; border-radius: 8px; overflow: hidden; overflow-x: auto; }
.hv2-ch-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.hv2-ch-table th { background: var(--hv2-navy); color: #fff; padding: 10px 16px; font-weight: 600; text-align: left; }
.hv2-ch-table td { padding: 9px 16px; border-bottom: 1px solid #eee; }
.hv2-ch-table tr:last-child td { border-bottom: none; }
.hv2-ch-table tr:nth-child(even) td { background: #f5f8ff; }
.hv2-ch-table a { color: #444; text-decoration: none; }
.hv2-ch-table a:hover { color: var(--hv2-blue); }

/* ── 優惠方案 Detail（promo 風格） ── */
.hv2-promo-detail { padding: 0 0 60px; }

.hv2-pd-head { margin-bottom: 20px; }
.hv2-pd-meta { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.hv2-pd-title { font-size: 22px; font-weight: 700; color: var(--hv2-navy); margin-bottom: 16px; line-height: 1.4; }

/* 主視覺圖 */
.hv2-pd-img-wrap { margin-bottom: 24px; }
.hv2-pd-img-wrap img {
  width: 100%; height: auto; display: block;
  border-radius: 10px;
  box-shadow: 0 4px 24px rgba(0,91,172,.12);
}
.hv2-pd-img-wrap a { display: block; }
.hv2-pd-img-wrap a:hover img { opacity: .93; transition: opacity .2s; }

/* 貼心提醒 accordion */
.hv2-pd-notice {
  border: 1px solid #e2e8f0;
  border-radius: var(--hv2-r-m);
  overflow: hidden;
  margin-bottom: 24px;
}
.hv2-pd-notice-toggle {
  width: 100%; display: flex; align-items: center; gap: 8px;
  padding: 14px 18px; background: #F8FAFC;
  border: none; cursor: pointer; font-size: 14px; font-weight: 600;
  color: var(--hv2-navy); text-align: left;
  transition: background .15s;
}
.hv2-pd-notice-toggle:hover { background: #edf2f8; }
.hv2-pd-notice-toggle svg:first-child { width: 18px; height: 18px; flex-shrink: 0; stroke: var(--hv2-blue); }
.hv2-pd-chevron { width: 16px; height: 16px; margin-left: auto; flex-shrink: 0; transition: transform .25s; }
.hv2-pd-notice-body {
  padding: 16px 18px;
  font-size: 13.5px; line-height: 1.9; color: #555;
  border-top: 1px solid #e2e8f0; background: #fff;
}
.hv2-pd-notice-body p { margin-bottom: 10px; }
.hv2-pd-notice-body p:last-child { margin-bottom: 0; }

/* Detail page */
.hv2-detail-meta { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.hv2-detail-tag { background: var(--hv2-blue); color: #fff; font-size: 12px; font-weight: 600; padding: 3px 12px; border-radius: 20px; }
.hv2-detail-date { color: #888; font-size: 13px; }
.hv2-detail-title { font-size: 22px; font-weight: 700; color: var(--hv2-navy); margin-bottom: 18px; line-height: 1.4; }
.hv2-detail-share { display: flex; gap: 8px; margin-bottom: 28px; }
.hv2-detail-share a { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border: 1px solid #ddd; border-radius: 50%; color: #555; text-decoration: none; font-size: 16px; transition: all .15s; }
.hv2-detail-share a:hover { background: var(--hv2-blue); border-color: var(--hv2-blue); color: #fff; }
.hv2-detail-img { max-width: 100%; border-radius: 8px; margin-bottom: 24px; display: block; }
.hv2-detail-body { font-size: 14px; line-height: 1.9; color: #444; }
.hv2-detail-body p { margin-bottom: 14px; }
.hv2-detail-img-link img { max-width: 100%; border-radius: 8px; }
.hv2-detail-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 40px; padding-top: 20px; border-top: 1px solid #e5e7ef; flex-wrap: wrap; gap: 12px; }
.hv2-detail-back { display: inline-flex; align-items: center; gap: 6px; padding: 8px 20px; background: #f4f6fa; color: #555; border-radius: 6px; text-decoration: none; font-size: 14px; transition: background .15s; }
.hv2-detail-back:hover { background: #e5e9f0; }
.hv2-detail-nav-links { display: flex; gap: 20px; }
.hv2-detail-nav-links a { font-size: 14px; color: var(--hv2-blue); text-decoration: none; display: flex; align-items: center; gap: 4px; }
.hv2-detail-nav-links a:hover { text-decoration: underline; }

/* Contact form */
.hv2-contact-intro { display: flex; align-items: center; gap: 14px; background: #f0f4fa; border-radius: 10px; padding: 18px 22px; margin-bottom: 28px; font-size: 14px; color: #555; }
.hv2-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 18px; }
.hv2-form-grid.full { grid-template-columns: 1fr; }
.hv2-form-group label { display: block; font-size: 13px; font-weight: 600; color: #444; margin-bottom: 6px; }
.hv2-form-group input, .hv2-form-group select, .hv2-form-group textarea { width: 100%; padding: 10px 13px; border: 1px solid #dce1ec; border-radius: 6px; font-size: 14px; color: #333; outline: none; transition: border-color .15s; box-sizing: border-box; font-family: inherit; }
.hv2-form-group input:focus, .hv2-form-group select:focus, .hv2-form-group textarea:focus { border-color: var(--hv2-blue); box-shadow: 0 0 0 2px rgba(28,112,202,.10); }
.hv2-form-group textarea { min-height: 120px; resize: vertical; }
.hv2-form-radio-wrap { display: flex; gap: 18px; align-items: center; padding: 10px 13px; border: 1px solid #dce1ec; border-radius: 6px; }
.hv2-form-radio-wrap label { display: flex; align-items: center; gap: 6px; font-weight: 400; margin-bottom: 0; cursor: pointer; font-size: 14px; }
.hv2-form-notice { font-size: 13px; color: #666; line-height: 1.75; margin-bottom: 18px; padding: 13px 17px; background: #f9fafc; border-radius: 6px; border-left: 3px solid var(--hv2-blue); }
.hv2-form-notice a { color: var(--hv2-blue); }
.hv2-form-footer { display: flex; align-items: center; gap: 20px; margin-top: 22px; flex-wrap: wrap; }
.hv2-form-checkbox { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #555; cursor: pointer; }
.hv2-form-checkbox input[type=checkbox] { width: 18px; height: 18px; cursor: pointer; flex-shrink: 0; }
.hv2-form-submit-btn { background: var(--hv2-blue); color: #fff; border: none; padding: 11px 36px; border-radius: 8px; font-size: 15px; font-weight: 700; cursor: pointer; transition: background .15s; }
.hv2-form-submit-btn:hover { background: var(--hv2-blue-d); }

/* About sections */
.hv2-about-section { display: flex; gap: 28px; margin-bottom: 36px; align-items: flex-start; }
.hv2-about-img { width: 240px; flex-shrink: 0; border-radius: 8px; }
.hv2-about-body h3 { font-size: 18px; font-weight: 700; color: var(--hv2-navy); margin-bottom: 6px; }
.hv2-about-body .hv2-about-sub { font-size: 13px; color: #888; margin-bottom: 12px; }
.hv2-about-body p { font-size: 14px; line-height: 1.85; color: #555; }

/* Milestone */
.hv2-milestone-block { border: 1px solid #e2e8f0; border-radius: 12px; margin-bottom: 12px; overflow: hidden; }
.hv2-milestone-head { display: flex; align-items: center; gap: 16px; padding: 18px 24px; cursor: pointer; background: #F8FAFC; user-select: none; transition: background .15s; }
.hv2-milestone-head:hover { background: #eef3fb; }
.hv2-milestone-year { font-size: 28px; font-weight: 800; color: var(--hv2-navy); letter-spacing: 1px; }
.hv2-milestone-toggle { margin-left: auto; color: var(--hv2-blue); font-size: 18px; line-height: 1; transition: transform .25s; }
.hv2-milestone-block.hv2-open .hv2-milestone-toggle { transform: rotate(180deg); }
.hv2-milestone-body { display: none; padding: 8px 28px 24px 28px; background: #fff; border-top: 1px solid #e2e8f0; }
.hv2-milestone-block.hv2-open .hv2-milestone-body { display: block; }

/* Timeline */
.hv2-milestone-row { display: flex; gap: 0; margin-top: 20px; }
.hv2-milestone-left { display: flex; flex-direction: column; align-items: center; width: 60px; flex-shrink: 0; }
.hv2-milestone-badge {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--hv2-blue);
  color: #fff;
  font-size: 15px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.hv2-milestone-line { flex: 1; width: 2px; background: #e2e8f0; margin-top: 6px; min-height: 20px; }
.hv2-milestone-content { flex: 1; min-width: 0; padding-bottom: 8px; }
.hv2-milestone-ul { list-style: none; padding: 10px 0 0 0; margin: 0; }
.hv2-milestone-ul li { font-size: 14px; color: #333; padding: 5px 0 5px 16px; position: relative; line-height: 1.7; }
.hv2-milestone-ul li::before { content: '▸'; position: absolute; left: 0; color: var(--hv2-blue); font-size: 11px; top: 7px; }
.hv2-milestone-pics { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 14px; }
.hv2-milestone-pics img { width: 100%; height: auto; border-radius: 8px; box-shadow: 0 2px 8px rgba(0,0,0,.1); display: block; }
.hv2-milestone-more { display: inline-flex; align-items: center; gap: 6px; margin-top: 20px; padding: 10px 28px; background: #f0f4fa; color: var(--hv2-navy); border-radius: 8px; font-size: 14px; font-weight: 600; cursor: pointer; border: none; transition: background .15s; }
.hv2-milestone-more:hover { background: #dce6f5; }

/* Search */
.hv2-search-header { font-size: 15px; color: #666; margin-bottom: 24px; }
.hv2-search-item { padding: 20px 0; border-bottom: 1px solid #e5e7ef; }
.hv2-search-item:first-child { padding-top: 0; }
.hv2-search-item a { text-decoration: none; display: block; }
.hv2-search-item h3 { font-size: 16px; font-weight: 600; color: var(--hv2-navy); margin-bottom: 6px; transition: color .15s; }
.hv2-search-item a:hover h3 { color: var(--hv2-blue); }
.hv2-search-item p { font-size: 13px; color: #666; line-height: 1.7; margin: 0; }
.hv2-search-nav { display: flex; gap: 10px; margin-top: 28px; }
.hv2-search-nav a { display: inline-flex; align-items: center; padding: 8px 16px; border: 1px solid #e5e7ef; border-radius: 6px; font-size: 14px; color: var(--hv2-blue); text-decoration: none; transition: all .15s; }
.hv2-search-nav a:hover { background: var(--hv2-blue); border-color: var(--hv2-blue); color: #fff; }

/* Sitemap */
.hv2-sitemap-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 28px 40px; }
.hv2-sitemap-main { font-size: 15px; font-weight: 700; color: var(--hv2-navy); margin-bottom: 10px; padding-bottom: 6px; border-bottom: 2px solid var(--hv2-blue); }
.hv2-sitemap-main a { color: inherit; text-decoration: none; }
.hv2-sitemap-main a:hover { color: var(--hv2-blue); }
.hv2-sitemap-sub { list-style: none; padding: 0; margin: 0; }
.hv2-sitemap-sub li { margin-bottom: 4px; }
.hv2-sitemap-sub li a { font-size: 13px; color: #555; text-decoration: none; padding: 3px 0; display: inline-block; transition: color .15s; }
.hv2-sitemap-sub li a::before { content: '›'; margin-right: 5px; color: var(--hv2-blue); }
.hv2-sitemap-sub li a:hover { color: var(--hv2-blue); }

/* Online pay */
.hv2-pay-card { border: 1px solid #e5e7ef; border-radius: 10px; padding: 26px; display: flex; gap: 26px; align-items: center; }
.hv2-pay-card img { width: 200px; border-radius: 8px; flex-shrink: 0; }
.hv2-pay-card-body h3 { font-size: 17px; font-weight: 700; color: var(--hv2-navy); margin-bottom: 14px; }
.hv2-pay-link { display: inline-flex; align-items: center; gap: 6px; background: var(--hv2-blue); color: #fff; padding: 10px 24px; border-radius: 6px; text-decoration: none; font-size: 14px; font-weight: 600; transition: background .15s; }
.hv2-pay-link:hover { background: var(--hv2-blue-d); }

/* Public channel */
.hv2-pubch-section { margin-bottom: 28px; }
.hv2-pubch-section h3 { font-size: 16px; font-weight: 700; color: var(--hv2-navy); margin-bottom: 10px; }

/* Product list */
.hv2-product-item { margin-bottom: 32px; }
.hv2-product-item h3 { font-size: 18px; font-weight: 700; color: var(--hv2-navy); margin-bottom: 10px; }
.hv2-product-item p { font-size: 14px; line-height: 1.85; color: #555; }
.hv2-product-item img { max-width: 100%; border-radius: 6px; margin-top: 12px; }
.hv2-product-divider { border: none; border-top: 1px solid #e5e7ef; margin: 0 0 32px; }

/* Channel image section */
.hv2-ch-img-section img { max-width: 100%; border-radius: 8px; margin-bottom: 14px; }

/* ═══════════════════════════════════════════
   hv2 News List Page (Level 3)
═══════════════════════════════════════════ */
.hv2-news-page { padding: 36px 0 64px; }
.hv2-news-tabs-bar { display: flex; flex-wrap: wrap; gap: 0; border-bottom: 2px solid #e5e7ef; margin-bottom: 28px; }
.hv2-ntab-pg { padding: 10px 22px; font-size: 14px; font-weight: 600; color: #666; text-decoration: none; border-bottom: 3px solid transparent; margin-bottom: -2px; transition: color .15s; white-space: nowrap; }
.hv2-ntab-pg:hover { color: var(--hv2-blue); }
.hv2-ntab-pg.hv2-on { color: var(--hv2-blue); border-bottom-color: var(--hv2-blue); }
.hv2-news-list-pg { display: flex; flex-direction: column; }
.hv2-news-row { display: flex; align-items: center; gap: 20px; padding: 20px 0; border-bottom: 1px solid #e5e7ef; text-decoration: none; color: inherit; transition: background .15s; }
.hv2-news-row:first-child { padding-top: 0; }
.hv2-news-row:hover { background: #F8FAFC; margin: 0 -12px; padding-left: 12px; padding-right: 12px; }
.hv2-news-row-img { width: 120px; height: 80px; flex-shrink: 0; border-radius: 6px; overflow: hidden; background: #eee; }
.hv2-news-row-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hv2-news-row-body { flex: 1; min-width: 0; }
.hv2-news-row-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.hv2-news-tag { background: var(--hv2-blue); color: #fff; font-size: 11px; font-weight: 600; padding: 2px 10px; border-radius: 20px; white-space: nowrap; }
.hv2-news-date { color: #999; font-size: 12px; }
.hv2-news-row-title { font-size: 15px; font-weight: 600; color: var(--hv2-navy); margin-bottom: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hv2-news-row-excerpt { font-size: 13px; color: #777; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hv2-news-row-arrow { color: #bbb; font-size: 18px; flex-shrink: 0; }
.hv2-news-row:hover .hv2-news-row-title { color: var(--hv2-blue); }
.hv2-news-row:hover .hv2-news-row-arrow { color: var(--hv2-blue); }
.hv2-news-empty { padding: 48px 0; text-align: center; color: #999; font-size: 15px; }

/* Pagination */
.hv2-pagination { display: flex; align-items: center; gap: 6px; margin-top: 32px; flex-wrap: wrap; }
.hv2-pg-btn { display: inline-flex; align-items: center; justify-content: center; min-width: 36px; height: 36px; padding: 0 10px; border: 1px solid #e0e5ef; border-radius: 6px; font-size: 14px; color: #444; text-decoration: none; transition: all .15s; }
.hv2-pg-btn:hover { background: var(--hv2-blue); border-color: var(--hv2-blue); color: #fff; }
.hv2-pg-btn.hv2-pg-active { background: var(--hv2-blue); border-color: var(--hv2-blue); color: #fff; font-weight: 700; }
.hv2-pg-btn.hv2-pg-disabled { color: #ccc; border-color: #eee; pointer-events: none; }
.hv2-pg-ellipsis { padding: 0 4px; color: #999; font-size: 14px; }

/* ════════════════════════════════════
   防止橫向 overflow（全站）
════════════════════════════════════ */
html {
  max-width: 100%;
}
body {
  overflow-x: hidden;
  max-width: 100%;
}

/* Responsive */
@media(max-width: 960px) {
  /* ── 首頁各區塊 ── */
  .hv2-news-plans .hv2-wrap { grid-template-columns: 1fr; }
  .hv2-services-bg .hv2-wrap { grid-template-columns: repeat(3, 1fr); }
  .hv2-svc { border-right: none; border-bottom: 1px solid #edf2f8; }
  .hv2-svc:nth-child(3), .hv2-svc:nth-child(6) { border-right: none; }
  .hv2-products-grid { grid-template-columns: 1fr 1fr; }
  .hv2-faq-grid { grid-template-columns: 1fr; }
  .hv2-banners-grid { grid-template-columns: 1fr; }
  .hv2-coverage .hv2-wrap { grid-template-columns: 1fr; gap: 32px; }
  .hv2-contact-info { grid-template-columns: 1fr 1fr; }
  .hv2-statsbar .hv2-wrap { flex-wrap: wrap; gap: 12px 24px; }
  .hv2-sb-div { display: none; }
  /* ── 內頁 ── */
  body.innerpage-v2 .hv2-page-header-inner { padding: 12px 20px; }
  body.innerpage-v2 .hv2-page-header-title .cn { font-size: 18px; }
  .hv2-inner-layout { flex-direction: column; }
  .hv2-inner-sidebar { width: 100%; }
  .hv2-inner-sidebar-nav { display: flex; flex-wrap: wrap; border: 1px solid #dce3f0; border-radius: 6px; }
  .hv2-inner-sidebar-nav a { border-bottom: 1px solid #eee; flex: 1 0 calc(50% - 1px); }
  .hv2-form-grid { grid-template-columns: 1fr; }
  .hv2-pay-card { flex-direction: column; }
  .hv2-about-section { flex-direction: column; }
  .hv2-about-img { width: 100%; }
  .hv2-sitemap-grid { grid-template-columns: repeat(2, 1fr); }
  .hv2-disc-hero { grid-template-columns: 1fr; }
  .hv2-disc-hero-img { min-height: 200px; }
}

/* ════════════════════════════════════
   行動版 Navbar（≤ 768px）
════════════════════════════════════ */
@media(max-width: 768px) {
  /* 隱藏 topbar 省空間 */
  .hv2-topbar { display: none; }

  /* 漢堡鈕顯示 */
  .hv2-mobile-toggle { display: flex; }

  /* 桌面版 nav 連結 & 動作按鈕 → 收起 */
  .hv2-nav-links { display: none; }
  .hv2-nav-actions { display: none; }

  /* 打開選單時展開成垂直 drawer */
  .hv2-nav-links.hv2-open {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--hv2-white);
    border-top: 1px solid #e2e8f0;
    box-shadow: var(--hv2-sh-m);
    z-index: 600;
    padding: 8px 0 16px;
    gap: 0;
  }

  /* nav item 全寬點選 */
  .hv2-nav-links.hv2-open .hv2-nav-item {
    padding: 12px 20px;
    border-radius: 0;
    white-space: normal;
  }
  .hv2-nav-links.hv2-open .hv2-nav-item::after {
    float: right;
    margin-left: 0;
    transform: rotate(45deg) translateY(-2px);
    transition: transform .2s;
  }
  .hv2-nav-links.hv2-open .hv2-nav-item.hv2-sub-open::after {
    transform: rotate(-135deg) translateY(-2px);
  }

  /* dropdown → 靜態展開（不再絕對定位） */
  .hv2-nav-links.hv2-open .hv2-dropdown {
    display: none;
    position: static;
    box-shadow: none;
    border: none;
    border-radius: 0;
    padding: 4px 0 4px 16px;
    background: var(--hv2-gray-1);
  }
  .hv2-nav-links.hv2-open .hv2-has-sub.hv2-sub-open .hv2-dropdown {
    display: block;
  }
  .hv2-nav-links.hv2-open .hv2-dropdown a {
    padding: 10px 16px;
    border-radius: 0;
    font-size: 13px;
  }

  /* quickbar 改為多欄格 */
  .hv2-quickbar .hv2-wrap { flex-wrap: wrap; }
  .hv2-qb-label { width: 100%; margin-bottom: 4px; }
  .hv2-qb-btn { flex: 1 0 calc(33% - 8px); justify-content: center; }
}

@media(max-width: 640px) {
  /* -- homepage -- */
  .hv2-services-bg .hv2-wrap { grid-template-columns: repeat(3, 1fr); }
  .hv2-products-grid { grid-template-columns: 1fr; }
  .hv2-contact-info { grid-template-columns: 1fr; }
  .hv2-contact-divider { display: none; }
  .hv2-cov-title { font-size: 26px; }
  .hv2-cov-stats { grid-template-columns: 1fr 1fr; }
  .hv2-promo-bar .hv2-wrap { flex-direction: column; align-items: flex-start; gap: 8px; }
  /* -- innerpage -- */
  body.innerpage-v2 .hv2-page-header-inner { flex-direction: column; align-items: flex-start; gap: 6px; padding: 10px 16px; }
  body.innerpage-v2 .hv2-page-header-title { text-align: left; }
  body.innerpage-v2 .hv2-page-header-title .cn { font-size: 16px; }
  .hv2-disc-grid { grid-template-columns: 1fr; }
  .hv2-fp-card { grid-template-columns: 1fr; }
  .hv2-news-row { flex-wrap: wrap; }
  .hv2-news-row-img { width: 100%; height: 160px; }
  .hv2-ntab-pg { padding: 8px 14px; font-size: 13px; }
  .hv2-qb-btn { flex: 1 0 calc(50% - 8px); }
}

/* Hero mobile */
@media(max-width: 640px) {
  .hv2-hero .hv2-wrap { display: none !important; }
  .hv2-hero-overlay { display: none !important; }
  .hv2-hero-bg .hv2-hbg-slide img { height: 220px; object-fit: cover; object-position: center top; width: 100%; }
  .hv2-hero-dots { right: 16px; bottom: 12px; }
}

/* ── sticky navbar fix: main.css #wrapper overflow:hidden blocks sticky ── */
body.homepage-v2 #wrapper,
body.innerpage-v2 #wrapper {
  overflow: visible;
}
