@charset "UTF-8";
/* ====================================================================
   CADCH_00040A — 原皇交通・民富興實業
   品牌樣式層（在 bootstrap.min.css 之後載入，只負責「視覺」）
   結構（grid / navbar / offcanvas / dropdown / card / btn / carousel）
   一律由 Bootstrap 5 原生 class 負責，本檔不重造輪子。
   ==================================================================== */

:root{
  --paper:#F4F5F7; --paper-2:#EAEDF2;
  --ink:#12171F; --ink-soft:#47505F;
  --steel-900:#0F1A17; --steel-800:#16241F; --steel-700:#22332C;
  --accent:#1D4ED8; --accent-600:#1943BA; --accent-100:#E4EAFA;
  --brass:#C2A24E; --brass-soft:#DAC589;
  --line:#E2E6EC;
  --nav-h:86px; --util-h:40px;
  --sans:"Noto Sans TC",system-ui,-apple-system,"Segoe UI",sans-serif;
  --serif:"Noto Serif TC",serif;
  --cond:"Barlow Semi Condensed",var(--sans);

  /* 讓 Bootstrap 元件直接吃品牌色，不必逐一覆寫 */
  --bs-primary:#1D4ED8;
  --bs-primary-rgb:29,78,216;
  --bs-body-font-family:var(--sans);
  --bs-body-color:#12171F;
  --bs-body-bg:#F4F5F7;
  --bs-border-color:#E2E6EC;
  --bs-link-color:#1D4ED8;
  --bs-link-hover-color:#1943BA;
}

html{scroll-behavior:smooth;}
body.yh{
  font-family:var(--sans);
  color:var(--ink);
  background:var(--paper);
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}
body.yh.is-inner{padding-top:calc(var(--nav-h) + var(--util-h));}

/* --------------------------------------------------------------------
   滿版工具：外框滿版，留白由區塊自行決定
   .yh-shell  區段左右留白（沿用設計稿節奏）
   .yh-narrow 限寬閱讀（新聞內文、表單）
   -------------------------------------------------------------------- */
.yh-shell{padding-left:clamp(20px,7vw,120px);padding-right:clamp(20px,7vw,120px);width:100%;}
.yh-narrow{max-width:860px;margin-inline:auto;}
.yh-section{padding-top:clamp(58px,7vw,104px);padding-bottom:clamp(70px,9vw,120px);}
.yh-section-dark{background:var(--steel-900);color:#fff;}
.yh-section-paper{background:var(--paper);}
.yh-section-white{background:#fff;border-top:1px solid var(--line);}

/* 區段標題組（kicker + h2 + lead），四個 nc_vision 版型共用 */
.yh-kick{
  display:inline-flex;align-items:center;gap:13px;
  font-family:var(--cond);font-weight:700;font-size:14px;letter-spacing:.24em;
  color:var(--accent);margin-bottom:18px;text-transform:uppercase;
}
.yh-kick::before{content:"";width:36px;height:2px;background:currentColor;}
.yh-section-dark .yh-kick{color:var(--brass-soft);}
.yh-h2{
  font-family:var(--serif);font-weight:900;
  font-size:clamp(28px,3.6vw,46px);line-height:1.22;letter-spacing:.01em;
  margin:0 0 16px;text-wrap:balance;
}
.yh-h2 em{font-style:normal;color:var(--accent);}
.yh-section-dark .yh-h2{color:#fff;}
.yh-section-dark .yh-h2 em{color:var(--brass-soft);}
.yh-lead{
  font-size:clamp(15px,1.5vw,17.5px);line-height:1.85;color:var(--ink-soft);
  max-width:560px;margin:0;text-wrap:pretty;
}
.yh-section-dark .yh-lead{color:rgba(255,255,255,.72);}

/* 一般區塊（有標題者）標題樣式 */
.yh-block-title{font-family:var(--serif);font-weight:900;font-size:clamp(22px,2.4vw,32px);margin:0 0 24px;}
.yh-sideblock{border-color:var(--line);border-radius:14px;}
.yh-sideblock-title{background:#fff;border-bottom:1px solid var(--line);font-weight:700;}

/* ====================================================================
   導覽（Bootstrap navbar + offcanvas，視覺覆寫）
   首頁 .is-home：透明疊在 Hero 上，捲動後 .scrolled 變白
   內頁 .is-inner：一律白底
   ==================================================================== */
.yh-navwrap{position:fixed;top:0;left:0;right:0;z-index:1030;}

.yh-util{
  height:var(--util-h);padding:0 clamp(18px,4vw,64px);
  font-size:12.5px;letter-spacing:.05em;color:rgba(255,255,255,.72);
  border-bottom:1px solid rgba(255,255,255,.13);
  transition:color .35s ease,background .35s ease,border-color .35s ease;
}
.yh-util a{color:inherit;text-decoration:none;opacity:.92;}
.yh-util a:hover{opacity:1;color:#fff;}
.yh-util-sep{flex:0 0 auto;width:1px;height:13px;background:currentColor;opacity:.3;}
/* 工具列電話／LINE 樣式：有填 icon 的 utilmenu 項目（見 nc_menu tmpl_5）*/
.yh-util .util-phone{display:inline-flex;align-items:center;gap:6px;font-family:var(--cond);font-weight:600;letter-spacing:.03em;color:#fff;opacity:1;}
.yh-util .util-phone i{color:var(--brass-soft);font-size:13px;}
.yh-util .util-phone:hover{color:#fff;}

.yh-nav{height:var(--nav-h);transition:background .35s ease,box-shadow .35s ease,height .35s ease;}
.yh-nav .yh-shell{height:100%;align-items:center;}

/* 內頁 / 捲動後：實心白 */
body.is-inner .yh-util,
.yh-navwrap.scrolled .yh-util{color:var(--ink-soft);background:#fff;border-bottom-color:var(--line);}
body.is-inner .yh-util a:hover,
.yh-navwrap.scrolled .yh-util a:hover{color:var(--accent);}
body.is-inner .yh-util .util-phone,
.yh-navwrap.scrolled .yh-util .util-phone{color:var(--ink);}
body.is-inner .yh-util .util-phone i,
.yh-navwrap.scrolled .yh-util .util-phone i{color:var(--accent);}
body.is-inner .yh-nav,
.yh-navwrap.scrolled .yh-nav{background:#fff;box-shadow:0 10px 34px -20px rgba(20,26,36,.5);}
.yh-navwrap.scrolled .yh-nav{height:72px;}

/* 品牌 */
.yh-brand{text-decoration:none;flex:0 0 auto;}
.yh-emblem{
  width:48px;height:48px;border-radius:50%;flex:0 0 auto;position:relative;
  background:radial-gradient(120% 120% at 32% 26%,var(--accent),var(--accent-600) 62%,#7d0f18);
  display:flex;align-items:center;justify-content:center;
  box-shadow:0 8px 20px -8px rgba(29,78,216,.75);
}
.yh-emblem::after{content:"";position:absolute;inset:3px;border-radius:50%;border:1.5px solid var(--brass-soft);opacity:.9;}
.yh-emblem span{font-family:var(--serif);font-weight:900;color:#fff;font-size:19px;line-height:1;letter-spacing:1px;position:relative;z-index:1;text-shadow:0 1px 2px rgba(0,0,0,.35);}
.yh-brand-txt{display:flex;flex-direction:column;line-height:1.08;}
.yh-brand-name{font-weight:900;font-size:20px;letter-spacing:.03em;color:#fff;white-space:nowrap;transition:color .35s ease;}
.yh-brand-en{font-family:var(--cond);font-weight:600;font-size:11px;letter-spacing:.22em;color:rgba(255,255,255,.6);margin-top:4px;white-space:nowrap;transition:color .35s ease;}
body.is-inner .yh-brand-name,
.yh-navwrap.scrolled .yh-brand-name{color:var(--ink);}
body.is-inner .yh-brand-en,
.yh-navwrap.scrolled .yh-brand-en{color:var(--brass);}

/* 選單項目（nc_menu 輸出 .navbar-nav > .nav-item > .nav-link） */
.yh-menu{margin-left:46px;gap:2px;}
.yh-menu .nav-link{
  font-weight:500;font-size:15.5px;letter-spacing:.03em;
  color:rgba(255,255,255,.92);padding:11px 15px;border-radius:9px;
  transition:color .22s ease,background .22s ease;
}
.yh-menu .nav-link:hover,.yh-menu .nav-link:focus{color:#fff;background:rgba(255,255,255,.14);}
.yh-menu .nav-link.active{color:#fff;}
body.is-inner .yh-menu .nav-link,
.yh-navwrap.scrolled .yh-menu .nav-link{color:var(--ink);}
body.is-inner .yh-menu .nav-link:hover,
.yh-navwrap.scrolled .yh-menu .nav-link:hover{color:var(--accent);background:var(--accent-100);}

/* 桌機下拉箭頭：自訂 caret 取代 Bootstrap 預設三角，hover / 開啟時 45°→225°（對齊設計稿） */
.yh-menu .dropdown-toggle{display:inline-flex;align-items:center;gap:7px;}
.yh-menu .dropdown-toggle::after{display:none;}
.yh-menu .dropdown-toggle .caret{
  flex:0 0 auto;width:6px;height:6px;
  border-right:1.6px solid currentColor;border-bottom:1.6px solid currentColor;
  transform:rotate(45deg) translateY(-2px);transition:transform .25s ease;opacity:.65;
}
.yh-mi:hover .dropdown-toggle .caret,
.yh-menu .dropdown-toggle.show .caret,
.yh-menu .dropdown-toggle[aria-expanded="true"] .caret{transform:rotate(225deg) translateY(2px);}

/* 下拉 / Mega（Bootstrap dropdown-menu 的視覺覆寫） */
.yh-drop{
  border:1px solid var(--line);border-radius:16px;padding:14px;
  box-shadow:0 34px 66px -30px rgba(20,26,36,.55);
  margin-top:12px;
}
.yh-mega{min-width:min(620px,92vw);}
.yh-drop .dp-label{
  font-family:var(--cond);font-size:11.5px;font-weight:700;letter-spacing:.18em;
  color:var(--accent);padding:6px 12px 8px;text-transform:uppercase;
}
.yh-drop .dp-item{
  display:flex;align-items:flex-start;gap:12px;padding:10px 13px;border-radius:11px;
  text-decoration:none;color:var(--ink);transition:background .18s ease;
}
.yh-drop .dp-item:hover{background:var(--paper);}
.yh-drop .dp-ic{
  flex:0 0 auto;width:34px;height:34px;border-radius:9px;
  background:var(--paper-2);color:var(--steel-700);
  display:flex;align-items:center;justify-content:center;
  font-family:var(--cond);font-weight:700;font-size:13px;
  transition:background .18s ease,color .18s ease;
}
.yh-drop .dp-item:hover .dp-ic{background:var(--accent-100);color:var(--accent);}
.yh-drop .dp-item .t{font-weight:700;font-size:14.5px;}
.yh-drop .dp-item .d{font-size:12px;color:var(--ink-soft);margin-top:2px;}
.yh-drop .dp-col + .dp-col{border-left:1px solid var(--line);}

/* 電話 CTA：一鍵撥號 phone-pop（自訂下拉，JS 切 .open）+ LINE 藥丸 */
.yh-phone-pop{position:relative;}
.yh-phone-btn{
  display:inline-flex;align-items:center;gap:8px;white-space:nowrap;cursor:pointer;
  font-weight:700;font-size:14.5px;letter-spacing:.02em;color:#fff;background:var(--accent);
  border:none;border-radius:999px;padding:10px 18px;
  box-shadow:0 10px 22px -12px rgba(29,78,216,.9);
  transition:transform .2s,filter .2s;
}
.yh-phone-btn:hover{color:#fff;transform:translateY(-1px);filter:brightness(1.08);}
.yh-phone-btn i:first-child{font-size:15px;}
.yh-phone-btn .caret{width:6px;height:6px;border-right:1.6px solid currentColor;border-bottom:1.6px solid currentColor;transform:rotate(45deg) translateY(-2px);transition:transform .25s ease;opacity:.8;}
.yh-phone-pop.open .yh-phone-btn .caret{transform:rotate(225deg) translateY(2px);}
.yh-phone-menu{
  position:absolute;top:calc(100% + 12px);right:0;width:min(300px,92vw);
  background:#fff;border:1px solid var(--line);border-radius:16px;padding:14px;
  box-shadow:0 34px 66px -30px rgba(20,26,36,.55);
  opacity:0;visibility:hidden;transform:translateY(8px);transition:all .22s ease;z-index:60;
}
.yh-phone-pop.open .yh-phone-menu{opacity:1;visibility:visible;transform:translateY(0);}
.yh-phone-menu .pm-h{font-weight:900;font-size:15px;padding:2px 6px 12px;color:var(--ink);}
.yh-phone-menu .pm-row{
  display:flex;align-items:center;gap:13px;padding:12px;border-radius:12px;
  text-decoration:none;color:var(--ink);border:1px solid var(--line);margin-bottom:9px;
  transition:border-color .2s,background .2s,transform .2s;
}
.yh-phone-menu .pm-row:last-child{margin-bottom:0;}
.yh-phone-menu .pm-row:hover{border-color:var(--accent);background:var(--paper);transform:translateY(-1px);}
.yh-phone-menu .pm-ic{
  flex:0 0 auto;width:40px;height:40px;border-radius:10px;
  background:var(--accent-100);color:var(--accent);
  display:flex;align-items:center;justify-content:center;font-size:19px;
}
.yh-phone-menu .pm-k{font-family:var(--cond);font-size:12px;font-weight:600;letter-spacing:.06em;color:var(--ink-soft);display:block;}
.yh-phone-menu .pm-num{font-family:var(--cond);font-weight:700;font-size:20px;letter-spacing:.02em;color:var(--ink);line-height:1.1;margin-top:1px;display:block;}
.yh-phone-menu .pm-nm{font-size:12px;color:var(--ink-soft);margin-top:2px;display:block;}
/* 綠色 LINE 藥丸 */
.yh-line{
  display:inline-flex;align-items:center;gap:7px;white-space:nowrap;text-decoration:none;
  font-weight:700;font-size:14.5px;color:#fff;background:#06C755;border-radius:999px;padding:10px 18px;
  box-shadow:0 10px 22px -12px rgba(6,199,85,.8);transition:transform .2s,filter .2s;
}
.yh-line:hover{color:#fff;transform:translateY(-1px);filter:brightness(1.06);}
.yh-line b{font-family:var(--cond);font-weight:700;letter-spacing:.02em;}

/* 漢堡鈕 */
.yh-burger{box-shadow:none !important;}
.yh-burger .navbar-toggler-icon{
  background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255,255,255,0.9%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}
body.is-inner .yh-burger .navbar-toggler-icon,
.yh-navwrap.scrolled .yh-burger .navbar-toggler-icon{
  background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2818,23,31,0.9%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ====================================================================
   Hero（Bootstrap carousel 的視覺覆寫）— nc_vision tmpl_1
   ==================================================================== */
.yh-hero{position:relative;height:100svh;min-height:600px;overflow:hidden;background:var(--steel-900);}
.yh-hero .carousel,.yh-hero .carousel-inner,.yh-hero .carousel-item{height:100%;}
.yh-hero-img{position:absolute;inset:0;background-size:cover;background-position:center 60%;}
.yh-hero-scrim{position:absolute;inset:0;background:
  linear-gradient(88deg,rgba(12,17,27,.86) 0%,rgba(12,17,27,.62) 40%,rgba(12,17,27,.12) 74%),
  linear-gradient(0deg,rgba(12,17,27,.72) 0%,transparent 42%);}
.yh-hero-content{
  position:absolute;inset:0;display:flex;flex-direction:column;justify-content:center;
  padding:var(--nav-h) clamp(20px,7vw,120px) 0;max-width:940px;
}
.yh-hero .yh-kick{color:var(--brass-soft);margin-bottom:22px;}
.yh-hero h1{
  font-weight:900;color:#fff;font-size:clamp(34px,5.6vw,74px);line-height:1.14;
  margin:0 0 20px;letter-spacing:.01em;text-wrap:balance;text-shadow:0 4px 30px rgba(0,0,0,.4);
}
.yh-hero .yh-hero-lead{
  font-size:clamp(15px,1.6vw,20px);line-height:1.85;color:rgba(255,255,255,.86);
  max-width:540px;margin:0 0 34px;text-wrap:pretty;
}
.yh-hero .carousel-indicators{
  left:clamp(20px,7vw,120px);right:auto;bottom:46px;margin:0;gap:12px;
}
.yh-hero .carousel-indicators [data-bs-target]{
  width:48px;height:3px;border-radius:3px;border:none;
  background:rgba(255,255,255,.3);opacity:1;margin:0;
}
.yh-hero .carousel-indicators .active{background:var(--accent);}
.yh-hero .carousel-control-prev,.yh-hero .carousel-control-next{
  top:auto;bottom:42px;width:54px;height:54px;left:auto;opacity:1;
  border:1px solid rgba(255,255,255,.4);border-radius:50%;
  background:rgba(255,255,255,.06);backdrop-filter:blur(4px);
  transition:background .25s,color .25s;
}
.yh-hero .carousel-control-prev{right:calc(clamp(20px,7vw,120px) + 66px);}
.yh-hero .carousel-control-next{right:clamp(20px,7vw,120px);}
.yh-hero .carousel-control-prev:hover,.yh-hero .carousel-control-next:hover{background:#fff;}
.yh-hero .carousel-control-prev:hover .carousel-control-prev-icon,
.yh-hero .carousel-control-next:hover .carousel-control-next-icon{filter:invert(1);}
/* Hero 底緣波浪：貼在最底、疊在圖層上，填色跟隨下一區底色 */
.yh-wave{position:absolute;bottom:-1px;left:0;width:100%;z-index:18;line-height:0;pointer-events:none;}
.yh-wave svg{width:100%;height:auto;display:block;}
.yh-wave svg path{fill:var(--paper);}

@media (prefers-reduced-motion:no-preference){
  .carousel-item.active .yh-kick{animation:yhRise .7s .12s both;}
  .carousel-item.active h1{animation:yhRise .7s .26s both;}
  .carousel-item.active .yh-hero-lead{animation:yhRise .7s .4s both;}
  .carousel-item.active .yh-hero-cta{animation:yhRise .7s .54s both;}
}
@keyframes yhRise{from{opacity:0;transform:translateY(26px);}to{opacity:1;transform:none;}}

/* ====================================================================
   按鈕（Bootstrap .btn 的品牌變體）
   ==================================================================== */
.btn-yh{
  display:inline-flex;align-items:center;gap:10px;white-space:nowrap;
  font-weight:700;font-size:16px;border-radius:999px;padding:15px 32px;border:none;
  transition:transform .2s,box-shadow .2s,filter .2s;
}
.btn-yh:hover{transform:translateY(-2px);}
.btn-yh-primary{background:var(--accent);color:#fff;box-shadow:0 16px 32px -14px rgba(29,78,216,.85);}
.btn-yh-primary:hover{color:#fff;box-shadow:0 22px 42px -16px rgba(29,78,216,.95);}
.btn-yh-ghost{background:rgba(255,255,255,.1);color:#fff;border:1px solid rgba(255,255,255,.5);backdrop-filter:blur(4px);}
.btn-yh-ghost:hover{background:rgba(255,255,255,.2);border-color:#fff;color:#fff;}
.btn-yh-line{background:#06C755;color:#fff;box-shadow:0 16px 32px -14px rgba(6,199,85,.8);}
.btn-yh-line:hover{color:#fff;filter:brightness(1.06);}
.btn-yh-outline{background:transparent;color:var(--ink);border:1.5px solid var(--ink);}
.btn-yh-outline:hover{background:var(--ink);color:#fff;}
.yh-section-dark .btn-yh-outline{color:#fff;border-color:#fff;}
.yh-section-dark .btn-yh-outline:hover{background:#fff;color:var(--steel-900);}

/* ====================================================================
   卡片（Bootstrap .card 的品牌變體）
   服務卡 / 車輛卡 / 新聞卡共用
   ==================================================================== */
.yh-card{
  background:#fff;border:1px solid var(--line);border-radius:18px;overflow:hidden;
  transition:transform .3s ease,box-shadow .3s ease,border-color .3s ease;
  height:100%;
}
.yh-card:hover{transform:translateY(-6px);box-shadow:0 30px 60px -32px rgba(20,26,36,.42);border-color:#EEF1F5;}
.yh-section-dark .yh-card{background:var(--steel-800);border-color:rgba(255,255,255,.08);color:#fff;}
.yh-section-dark .yh-card:hover{border-color:rgba(194,162,78,.5);box-shadow:0 40px 74px -34px rgba(0,0,0,.72);}

.yh-card-en{font-family:var(--cond);font-weight:600;font-size:11.5px;letter-spacing:.14em;color:var(--brass);text-transform:uppercase;}
.yh-card-img{height:210px;background-size:cover;background-position:center;position:relative;}
.yh-card-img::after{content:"";position:absolute;inset:0;background:linear-gradient(0deg,rgba(20,26,36,.6),transparent 52%);}
.yh-badge{
  font-family:var(--cond);font-weight:700;font-size:13px;letter-spacing:.06em;
  background:#fff;color:var(--steel-900);border-radius:7px;padding:5px 11px;
}
.yh-badge-dark{background:var(--steel-900);color:#fff;}
.yh-badge-accent{background:var(--accent);color:#fff;}

/* 規格條（車輛卡的 噸數 / 年份 / 里程） */
.yh-specs{display:flex;border-top:1px solid var(--line);border-bottom:1px solid var(--line);margin:16px 0 18px;}
.yh-section-dark .yh-specs{border-color:rgba(255,255,255,.1);}
.yh-spec{flex:1;padding:13px 0;text-align:center;}
.yh-spec + .yh-spec{border-left:1px solid var(--line);}
.yh-section-dark .yh-spec + .yh-spec{border-color:rgba(255,255,255,.1);}
.yh-spec .v{font-family:var(--cond);font-weight:700;font-size:18px;line-height:1;}
.yh-spec .k{font-size:11px;color:var(--ink-soft);margin-top:5px;}
.yh-section-dark .yh-spec .k{color:rgba(255,255,255,.55);}
.yh-price{font-family:var(--cond);font-weight:700;font-size:19px;color:var(--accent);}
.yh-section-dark .yh-price{color:var(--brass-soft);}

/* 數據條（核心服務下方 4 格） */
.yh-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:1px;background:var(--line);border:1px solid var(--line);border-radius:16px;overflow:hidden;}
.yh-stat{background:#fff;padding:22px 24px;}
.yh-stat .n{font-family:var(--cond);font-weight:700;font-size:clamp(26px,3vw,34px);color:var(--ink);line-height:1;}
.yh-stat .n em{font-style:normal;color:var(--accent);}
.yh-stat .l{font-size:13px;color:var(--ink-soft);font-weight:500;}
@media (max-width:1100px){.yh-stats{grid-template-columns:repeat(2,1fr);}}
@media (max-width:560px){.yh-stats{grid-template-columns:1fr;}}

/* ====================================================================
   內頁：模組內容
   滿版政策 = 內容區預設滿版；限寬由模組模板自套 .yh-narrow
   ==================================================================== */
.yh-page{padding:clamp(30px,4vw,56px) clamp(20px,7vw,120px) clamp(50px,7vw,90px);}
.yh-module-content{min-height:40vh;}

/* ====================================================================
   頁尾
   ==================================================================== */
.yh-foot{background:var(--steel-900);color:rgba(255,255,255,.72);}
.yh-foot .yh-brand-name{color:#fff;}
.yh-foot .yh-brand-en{color:var(--brass-soft);}
.yh-ft-desc{font-size:14.5px;line-height:1.8;color:rgba(255,255,255,.66);max-width:380px;}
.yh-ft-logos img{height:52px;width:auto;background:#fff;padding:4px;}
.yh-ft-col .ft-h,.yh-ft-contact .ft-h{
  font-family:var(--cond);font-weight:700;font-size:12px;letter-spacing:.18em;
  color:var(--brass-soft);text-transform:uppercase;margin-bottom:16px;
}
.yh-ft-col a{display:block;color:rgba(255,255,255,.72);text-decoration:none;padding:7px 0;font-size:14.5px;transition:color .2s,padding-left .2s;}
.yh-ft-col a:hover{color:#fff;padding-left:5px;}
.yh-ft-contact .pm-row{display:flex;gap:12px;align-items:center;margin-bottom:14px;color:rgba(255,255,255,.72);text-decoration:none;}
.yh-ft-contact .pm-row:hover{color:#fff;}
.yh-ft-contact .pm-ic{
  flex:0 0 auto;width:38px;height:38px;border-radius:10px;
  background:rgba(255,255,255,.08);color:var(--brass-soft);
  display:flex;align-items:center;justify-content:center;font-size:17px;
}
.yh-ft-contact .pm-k{font-size:12px;color:rgba(255,255,255,.5);display:block;}
.yh-ft-contact .pm-num{font-family:var(--cond);font-weight:700;font-size:18px;color:#fff;}
.yh-ft-bottom{border-top:1px solid rgba(255,255,255,.1);font-size:13px;color:rgba(255,255,255,.5);}
.yh-ft-bottom a{color:var(--brass-soft);text-decoration:none;}

/* 頁尾區塊區（footer_left/center/right/all）疊在真正的 footer 之上 */
.yh-footer-blocks{background:var(--paper-2);}

/* ====================================================================
   導覽電話 CTA 的桌機/手機出示切換（contactmenu 一顆區塊、兩個 wrapper）
   .yh-ct-desk（yh-actions 內）＝桌機：phone-pop + LINE 藥丸
   .yh-ct-mob （最外層）      ＝手機：底部固定列 .yh-bottom
   ==================================================================== */
.yh-ct-desk{display:flex;align-items:center;gap:10px;}
.yh-ct-desk .yh-bottom,
.yh-ct-desk .mn-foot{display:none;}               /* 桌機組只保留 phone-pop + LINE 藥丸 */
.yh-ct-mob{display:none;}                          /* 手機組容器桌機隱藏 */
.yh-ct-mob .yh-phone-pop,
.yh-ct-mob .yh-line,
.yh-ct-mob .mn-foot{display:none;}                 /* 手機底部組只保留 .yh-bottom */
.yh-ct-mfoot .yh-phone-pop,
.yh-ct-mfoot .yh-line,
.yh-ct-mfoot .yh-bottom{display:none;}             /* yh-mnav 底部組只保留 .mn-foot */

/* 手機底部固定列 .yh-bottom（只吃 Level-0；放最外層才能 position:fixed 貼底） */
.yh-bottom{
  position:fixed;left:0;right:0;bottom:0;z-index:1035;display:none;
  background:var(--steel-900);border-top:1px solid rgba(255,255,255,.12);
  padding-bottom:env(safe-area-inset-bottom);box-shadow:0 -6px 24px rgba(0,0,0,.32);
}
.yh-bottom a{flex:1;display:flex;align-items:center;justify-content:center;gap:8px;color:#fff;font-weight:700;font-size:16px;padding:15px 8px;text-decoration:none;}
.yh-bottom a.call{background:var(--accent);}
.yh-bottom a.line{background:#06C755;}
.yh-bottom a i{font-size:18px;}
.yh-bottom b{font-family:var(--cond);font-weight:700;}

@media (max-width:1199.98px){
  .yh-ct-desk{display:none;}                        /* <xl 桌機 CTA 收起（改用底部列 / yh-mnav） */
  .yh-ct-mob{display:block;}
  .yh-ct-mob .yh-bottom{display:flex;}
  body{padding-bottom:calc(54px + env(safe-area-inset-bottom));}  /* 底部列不遮內容 */
}

/* ====================================================================
   手機全螢幕選單 yh-mnav（xl 以下，漢堡開啟）
   選單連結來自 headermenu（.yh-hm-mob 只出示 .yh-mnav-links）
   底部 CTA 來自 contactmenu（.yh-ct-mfoot 只出示 .mn-foot）
   ==================================================================== */
/* headermenu 兩份出示切換：桌機組出 ul.yh-menu、手機組出 .yh-mnav-links */
.yh-hm-desk .yh-mnav-links{display:none;}
.yh-hm-mob{width:100%;}
.yh-hm-mob .yh-menu{display:none;}
.yh-mnav-links{display:none;}                        /* 預設不顯示，進到 yh-mnav 才出 */
.yh-hm-mob .yh-mnav-links{display:block;}

.yh-mnav{
  position:fixed;inset:0;z-index:1055;background:var(--steel-900);color:#fff;
  transform:translateX(100%);transition:transform .4s cubic-bezier(.4,0,.2,1);
  display:flex;flex-direction:column;overflow-y:auto;
  padding:22px 22px calc(22px + env(safe-area-inset-bottom));
}
.yh-mnav.open{transform:translateX(0);}
body.yh-mnav-open{overflow:hidden;}                  /* 選單開啟時鎖背景捲動 */
.yh-mnav .mn-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:14px;}
.yh-mnav .yh-brand-name{font-size:16px;color:#fff;}
.yh-mnav .mn-close{width:44px;height:44px;border:1px solid rgba(255,255,255,.22);border-radius:11px;background:transparent;color:#fff;cursor:pointer;font-size:24px;line-height:1;}
.mn-sec{border-bottom:1px solid rgba(255,255,255,.1);}
.mn-tog{width:100%;display:flex;align-items:center;justify-content:space-between;background:none;border:none;padding:17px 6px;font-weight:700;font-size:17.5px;color:#fff;cursor:pointer;}
.mn-tog .mc{flex:0 0 auto;width:8px;height:8px;border-right:2px solid rgba(255,255,255,.6);border-bottom:2px solid rgba(255,255,255,.6);transform:rotate(45deg);transition:transform .3s;}
.mn-sec.open .mn-tog .mc{transform:rotate(-135deg);}
.mn-sub{max-height:0;overflow:hidden;transition:max-height .35s ease;}
.mn-sec.open .mn-sub{max-height:600px;}
.mn-sub a{display:flex;align-items:center;gap:10px;padding:11px 6px 11px 18px;text-decoration:none;color:rgba(255,255,255,.78);font-size:15px;font-weight:500;}
.mn-sub a::before{content:"";flex:0 0 auto;width:6px;height:6px;border-radius:50%;background:var(--accent);}
.mn-link{display:block;padding:17px 6px;font-weight:700;font-size:17.5px;color:#fff;text-decoration:none;border-bottom:1px solid rgba(255,255,255,.1);}

/* yh-mnav 底部 CTA（來自 contactmenu 的 .mn-foot） */
.mn-foot{display:none;flex-direction:column;gap:10px;margin-top:22px;}
.yh-ct-mfoot .mn-foot{display:flex;}
.mn-foot a{display:flex;align-items:center;justify-content:center;gap:9px;border-radius:12px;padding:14px;font-weight:700;font-size:15.5px;line-height:1.3;text-align:center;text-decoration:none;color:#fff;}
.mn-foot .k{font-family:var(--cond);font-size:12px;font-weight:600;opacity:.85;}
.mn-foot .mnf-call{background:var(--accent);}
.mn-foot .mnf-call ~ .mnf-call{background:rgba(255,255,255,.1);border:1px solid rgba(255,255,255,.22);}
.mn-foot .mnf-line{background:#06C755;}
.mn-foot .mnf-line b{font-family:var(--cond);}

@media (min-width:1200px){
  .yh-mnav{display:none;}                             /* 桌機不需要全螢幕選單 */
}

/* ====================================================================
   XOOPS 後台/系統元件在 BS5 下的最小修補
   ==================================================================== */
.yh-module-content table{width:100%;}
.yh-module-content img{max-width:100%;height:auto;}
.xoops-blocks,.outer{max-width:100%;}

/* ====================================================================
   首頁區段細部樣式（對應 nc_vision tmpl_2 / 3 / 4）
   ==================================================================== */
.yh-head-lft{max-width:660px;}
.yh-lead-wide{max-width:none;}

/* --- 核心服務卡 (tmpl_2) --- */
.yh-svc-card{position:relative;}
.yh-svc-card::before{
  content:"";position:absolute;top:0;left:0;right:0;height:3px;
  background:linear-gradient(90deg,var(--accent),var(--brass));
  transform:scaleX(0);transform-origin:left;transition:transform .4s ease;
}
.yh-svc-card:hover::before{transform:scaleX(1);}
.yh-svc-ic{
  width:56px;height:56px;border-radius:14px;
  background:var(--paper-2);color:var(--steel-800);
  display:flex;align-items:center;justify-content:center;font-size:26px;
  transition:background .3s,color .3s;
}
.yh-svc-card:hover .yh-svc-ic{background:var(--accent);color:#fff;}
.yh-svc-no{font-family:var(--cond);font-weight:700;font-size:15px;color:#C9CED7;letter-spacing:.05em;}
.yh-svc-h3{font-weight:900;font-size:20px;margin:0 0 4px;color:var(--ink);}
.yh-svc-desc{font-size:14px;line-height:1.78;color:var(--ink-soft);margin-bottom:18px;}
.yh-tag{
  font-size:12px;font-weight:500;color:var(--steel-700);
  background:var(--paper);border:1px solid var(--line);border-radius:999px;padding:5px 11px;
}
.yh-svc-more{
  display:inline-flex;align-items:center;gap:8px;
  font-weight:700;font-size:13.5px;color:var(--ink);text-decoration:none;
  transition:color .2s;
}
.yh-svc-card:hover .yh-svc-more{color:var(--accent);}
.yh-svc-card:hover .yh-svc-more i{transform:translateX(3px);}
.yh-svc-more i{transition:transform .2s;}

/* --- 核心服務數據帶 svc-strip (tmpl_5，獨立區塊，緊貼核心服務下方) --- */
/* 上方是核心服務區的下方 padding(clamp(70,9vw,120))；用負 margin 收窄與其間距至約 30px */
.yh-strip-sec{padding-top:0;margin-top:calc(30px - clamp(70px,9vw,120px));}
.svc-strip{display:grid;grid-template-columns:repeat(4,1fr);gap:1px;background:var(--line);border:1px solid var(--line);border-radius:16px;overflow:hidden;}
.svc-stat{background:#fff;padding:22px 24px;display:flex;flex-direction:column;gap:4px;}
.svc-stat .n{font-family:var(--cond);font-weight:700;font-size:clamp(26px,3vw,34px);color:var(--ink);line-height:1;letter-spacing:.01em;}
.svc-stat .n em{font-style:normal;color:var(--accent);}
.svc-stat .l{font-size:13px;color:var(--ink-soft);font-weight:500;}
/* 有超連結的格：整格可點，hover 給回饋 */
a.svc-stat{text-decoration:none;color:inherit;transition:background .2s;}
a.svc-stat:hover{background:var(--paper);}
a.svc-stat:hover .l{color:var(--accent);}
@media (max-width:1100px){.svc-strip{grid-template-columns:repeat(2,1fr);}}
@media (max-width:560px){.svc-strip{grid-template-columns:1fr;}}

/* --- 關於我們 (tmpl_3) --- */
.yh-about-photo{
  border-radius:20px;height:clamp(340px,42vw,510px);
  background-size:cover;background-position:center 45%;
  box-shadow:0 44px 84px -44px rgba(20,26,36,.55);
}
.yh-about-badge{
  position:absolute;left:clamp(-8px,-1.4vw,-22px);bottom:28px;
  background:#fff;border-radius:16px;padding:18px 24px;
  box-shadow:0 26px 54px -26px rgba(20,26,36,.5);
  display:flex;align-items:center;gap:14px;line-height:1.3;
}
.yh-about-badge span:nth-child(1){font-family:var(--cond);font-weight:700;font-size:44px;line-height:.9;color:var(--accent);}
.yh-about-badge span:nth-child(2){font-weight:900;font-size:15px;color:var(--ink);}
.yh-about-badge span:nth-child(3){font-family:var(--cond);font-weight:600;font-size:12px;letter-spacing:.14em;color:var(--brass);}
.yh-about-ic{
  flex:0 0 auto;width:42px;height:42px;border-radius:11px;
  background:var(--accent-100);color:var(--accent);
  display:flex;align-items:center;justify-content:center;font-size:19px;
}
.yh-about-pt{font-weight:700;font-size:15.5px;color:var(--ink);}
.yh-about-pd{font-size:13px;line-height:1.7;color:var(--ink-soft);margin-top:2px;}

/* --- 高價收購 CTA (tmpl_4) --- */
.yh-buy{background:var(--steel-900);color:#fff;}
.yh-buy-bg{position:absolute;inset:0;background-size:cover;background-position:center 42%;}
.yh-buy-scrim{
  position:absolute;inset:0;
  background:linear-gradient(90deg,rgba(11,15,23,.95) 0%,rgba(11,15,23,.78) 42%,rgba(29,78,216,.34) 100%),
             linear-gradient(0deg,rgba(11,15,23,.6),transparent 55%);
}
.yh-buy .yh-kick{color:var(--brass-soft);}
.yh-buy .yh-h2{color:#fff;}
.yh-buy .yh-h2 em{color:var(--brass-soft);}
.yh-buy .yh-lead{color:rgba(255,255,255,.85);}
.yh-buy-inner{max-width:720px;}
.yh-step{
  background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.16);
  border-radius:12px;padding:12px 18px 12px 12px;backdrop-filter:blur(4px);
}
.yh-step-no{
  flex:0 0 auto;width:28px;height:28px;border-radius:50%;
  background:var(--accent);color:#fff;
  font-family:var(--cond);font-weight:700;font-size:14px;
  display:flex;align-items:center;justify-content:center;
}
.yh-step-tx{font-weight:600;font-size:14.5px;color:#fff;white-space:nowrap;}

/* ====================================================================
   車輛區段（wr_block_new）
   首頁若「新車」「中古車」兩個 wr 區段相鄰，第二個自動翻成淺色，
   形成深/淺交錯，後台不必額外設定。
   ==================================================================== */
.yh-veh{position:relative;}
.yh-veh::before{
  content:"";position:absolute;top:-160px;right:-120px;width:520px;height:520px;
  border-radius:50%;background:radial-gradient(circle,rgba(29,78,216,.16),transparent 68%);
  pointer-events:none;
}
.yh-veh-badge{position:absolute;top:14px;left:14px;z-index:2;}
.yh-veh-h3{font-weight:900;font-size:20px;margin:0 0 4px;}
.yh-veh-desc{font-size:13.5px;line-height:1.7;color:rgba(255,255,255,.6);margin-bottom:4px;}
.yh-veh-charge{font-family:var(--cond);font-size:13px;color:rgba(255,255,255,.45);text-decoration:line-through;}
.yh-veh-inq{
  flex:0 0 auto;display:inline-flex;align-items:center;gap:7px;
  font-weight:700;font-size:13.5px;color:#fff;background:var(--accent);
  border-radius:999px;padding:9px 16px;transition:filter .2s;
}
.yh-veh-card:hover .yh-veh-inq{filter:brightness(1.1);}
.yh-veh-card:hover .yh-veh-inq i{transform:translateX(2px);}
.yh-veh-inq i{transition:transform .2s;}

/* 相鄰的第二個車輛區段 → 淺色 */
.yh-veh + .yh-veh{background:var(--paper);color:var(--ink);}
.yh-veh + .yh-veh::before{background:radial-gradient(circle,rgba(29,78,216,.07),transparent 68%);}
.yh-veh + .yh-veh .yh-h2{color:var(--ink);}
.yh-veh + .yh-veh .yh-h2 em{color:var(--accent);}
.yh-veh + .yh-veh .yh-kick{color:var(--accent);}
.yh-veh + .yh-veh .yh-card{background:#fff;border-color:var(--line);color:var(--ink);}
.yh-veh + .yh-veh .yh-card:hover{box-shadow:0 30px 60px -32px rgba(20,26,36,.42);border-color:#EEF1F5;}
.yh-veh + .yh-veh .yh-veh-desc{color:var(--ink-soft);}
.yh-veh + .yh-veh .yh-veh-charge{color:var(--ink-soft);}
.yh-veh + .yh-veh .yh-specs{border-color:var(--line);}
.yh-veh + .yh-veh .yh-spec + .yh-spec{border-color:var(--line);}
.yh-veh + .yh-veh .yh-spec .k{color:var(--ink-soft);}
.yh-veh + .yh-veh .yh-price{color:var(--accent);}
.yh-veh + .yh-veh .yh-badge{background:var(--steel-900);color:#fff;}
.yh-veh + .yh-veh .btn-yh-outline{color:var(--ink);border-color:var(--ink);}
.yh-veh + .yh-veh .btn-yh-outline:hover{background:var(--ink);color:#fff;}

/* ====================================================================
   最新消息（news_block_top）
   ==================================================================== */
.yh-news-featimg{
  height:clamp(220px,28vw,320px);background-size:cover;background-position:center;
}
.yh-news-featimg::after{content:"";position:absolute;inset:0;background:linear-gradient(0deg,rgba(12,17,27,.28),transparent 55%);}
.yh-news-cat{position:absolute;top:16px;left:16px;z-index:2;}
.yh-news-meta{font-family:var(--cond);font-weight:600;font-size:13px;color:var(--ink-soft);}
.yh-news-dot{width:3px;height:3px;border-radius:50%;background:currentColor;display:inline-block;}
.yh-news-feat-h3{font-weight:900;font-size:clamp(20px,2vw,24px);line-height:1.4;color:var(--ink);margin-bottom:12px;text-wrap:balance;transition:color .2s;}
.yh-news-feat:hover .yh-news-feat-h3{color:var(--accent);}
.yh-news-teaser{font-size:14.5px;line-height:1.8;color:var(--ink-soft);margin-bottom:18px;text-wrap:pretty;}
.yh-news-read{display:inline-flex;align-items:center;gap:8px;font-weight:700;font-size:13.5px;color:var(--ink);}
.yh-news-feat:hover .yh-news-read{color:var(--accent);}
.yh-news-feat:hover .yh-news-read i{transform:translateX(3px);}
.yh-news-read i{transition:transform .2s;}

.yh-news-item{padding:19px 6px;border-bottom:1px solid var(--line);color:inherit;transition:transform .2s;}
.yh-news-item:first-child{padding-top:0;}
.yh-news-item:hover{transform:translateX(4px);}
.yh-news-date{
  flex:0 0 auto;width:96px;padding-right:16px;border-right:1px solid var(--line);
  font-family:var(--cond);font-weight:600;font-size:13px;color:var(--ink-soft);
}
.yh-news-cat-sm{font-size:11px;padding:3px 8px;display:inline-block;margin-bottom:7px;}
.yh-news-h4{display:block;font-weight:700;font-size:15.5px;line-height:1.55;color:var(--ink);transition:color .2s;text-wrap:pretty;}
.yh-news-item:hover .yh-news-h4{color:var(--accent);}

/* ====================================================================
   桌機下拉：純 CSS hover + opacity 淡入 + 透明橋接區（對齊設計稿）
   —— 取代 Bootstrap 的 display 瞬間切換，並解決「滑離第一層下拉就消失」
   ==================================================================== */
@media (min-width:1200px){
  /* 常駐 block，改用 opacity/visibility 控制，才能淡入且保留橋接命中區。
     無 Popper 需自行定位（原本 top:100%/left:0 由 [data-bs-popper] 提供） */
  .yh-menu .dropdown-menu.yh-drop{
    display:block;top:100%;left:0;
    opacity:0;visibility:hidden;pointer-events:none;
    transform:translateY(8px);
    transition:opacity .22s ease,transform .22s ease;
  }
  .yh-mi:hover > .dropdown-menu.yh-drop{
    opacity:1;visibility:visible;pointer-events:auto;transform:translateY(0);
  }
  /* 透明橋接區：填滿 trigger 與下拉之間的 12px 空隙，滑鼠移入不中斷 hover（原設計 ::after） */
  .yh-menu .yh-drop::after{content:"";position:absolute;left:0;right:0;top:-16px;height:18px;}
  /* 上緣小箭頭（原設計 ::before 的形狀，靠左對齊 trigger） */
  .yh-menu .yh-drop::before{
    content:"";position:absolute;top:-7px;left:22px;width:14px;height:14px;
    background:#fff;border-left:1px solid var(--line);border-top:1px solid var(--line);
    transform:rotate(45deg);
  }
}

/* ====================================================================
   XOOPS 內建 system 區塊（12 個）在側欄中的樣式微調
   ==================================================================== */
.yh-sysblock .list-group-item{background:transparent;border-color:var(--line);padding-left:0;padding-right:0;}
.yh-sysblock .list-group-item.active{background:var(--accent);border-color:var(--accent);color:#fff;padding-left:12px;}
.yh-sysblock a{text-decoration:none;}
.yh-rank{
  flex:0 0 auto;min-width:26px;height:26px;border-radius:8px;
  background:var(--paper-2);color:var(--steel-700);
  display:inline-flex;align-items:center;justify-content:center;
  font-family:var(--cond);font-weight:700;font-size:13px;
}
.yh-theme-select select{
  display:block;width:100%;padding:.375rem 2.25rem .375rem .75rem;
  border:1px solid var(--line);border-radius:.375rem;background-color:#fff;
}
