/* =========================================================
   OTL 首頁 v2 樣式（Enfold 8.3）
   - 只作用於 class 含 .otl2 的 Color Section，不影響舊內容
   - 全站部分（字體、Header 按鈕、Footer）在檔案最後
   - 由 mu-plugin otl-home-v2.php 載入，優先序在 Enfold 之後
   ========================================================= */

:root{
  --otl2-red:#C8161E;          /* r12：比 logo 紅（#E60012）深一級，大面積不刺眼；logo 本身不變 */
  --otl2-red-dark:#A01219;
  --otl2-red-soft:#F2A7A7;     /* 深藍底上的小字、勾號 */
  --otl2-wine:#8A1C24;         /* 數據條等大面積色塊 */
  --otl2-navy:#0F2A3D;
  --otl2-navy-deep:#0B1F2E;
  --otl2-ink:#1A1F24;
  --otl2-muted:#5B6670;        /* 白底與 #F5F3EF 底對比皆 > 4.5:1 */
  --otl2-line:#E4E7EB;
  --otl2-alt:#F5F3EF;
  --otl2-on-dark:#C9D3DC;
  --otl2-radius:6px;
  --otl2-font:"IBM Plex Sans","PingFang SC","Hiragino Sans GB","Microsoft YaHei","Noto Sans SC",sans-serif;
  --otl2-pad:96px;
}
@media (max-width:767px){ :root{ --otl2-pad:64px; } }

/* ---------- 區塊基礎 ---------- */
.avia-section.otl2{ border:0 !important; font-family:var(--otl2-font); scroll-margin-top:90px; }
.avia-section.otl2 .container .content{ padding-top:var(--otl2-pad); padding-bottom:var(--otl2-pad); }
.avia-section.otl2-stats .container .content,
.avia-section.otl2-trust .container .content,
.avia-section.otl2-partner .container .content{ padding-top:48px; padding-bottom:48px; }

.otl2, .otl2 p, .otl2 li{ font-size:16px; line-height:1.75; color:var(--otl2-muted); }
.otl2 h1, .otl2 h2, .otl2 h3{
  font-family:var(--otl2-font) !important; color:var(--otl2-ink) !important;
  text-transform:none !important; letter-spacing:0 !important; margin:0;
}
.otl2 .avia_textblock ul, .otl2 .avia_textblock ol{ list-style:none; margin:0; padding:0; }
.otl2 .avia_textblock li{ margin:0; }

.otl2-eyebrow{
  font-size:13px !important; font-weight:700; letter-spacing:.14em; text-transform:uppercase;
  color:var(--otl2-red) !important; margin:0 0 14px !important;
}
.otl2-h1{ font-size:clamp(34px,4.6vw,58px) !important; line-height:1.15 !important; font-weight:700 !important; max-width:13em; margin-bottom:20px !important; }
.otl2-h2{ font-size:clamp(26px,3vw,40px) !important; line-height:1.25 !important; font-weight:700 !important; max-width:26em; text-wrap:balance; }
.otl2-sechead--split > div{ flex:1 1 560px; min-width:0; }
.otl2-h3{ font-size:24px !important; line-height:1.3 !important; font-weight:700 !important; }
.otl2 h3{ font-size:20px; line-height:1.4; font-weight:700; }
.otl2-lead{ font-size:18px !important; line-height:1.7 !important; max-width:36em; margin:0 0 32px !important; }

.otl2-sechead{ margin-bottom:48px; }
.otl2-sechead--split{ display:flex; align-items:flex-end; justify-content:space-between; gap:24px; flex-wrap:wrap; }
.otl2-textlink{ color:var(--otl2-red) !important; font-weight:600; text-decoration:none !important; white-space:nowrap; }
.otl2-textlink:hover{ text-decoration:underline !important; }

/* 深色區（行業、詢盤） */
.otl2-dark, .otl2-dark p, .otl2-dark li{ color:var(--otl2-on-dark); }
.otl2-dark h2, .otl2-dark h3, .otl2-dark .otl2-h2{ color:#fff !important; }
.otl2-dark .otl2-eyebrow{ color:var(--otl2-red-soft) !important; } /* 紅色在深藍底對比不足，改淺紅 */

/* ---------- 01 Hero ---------- */
.otl2-hero .av-section-color-overlay{
  opacity:1 !important;
  background:linear-gradient(90deg,rgba(15,42,61,.94) 0%,rgba(15,42,61,.82) 45%,rgba(15,42,61,.35) 100%) !important;
}
.otl2-hero .otl2-h1{ color:#fff !important; }
.otl2-hero .otl2-lead{ color:#DCE3EA !important; }
.otl2-hero .otl2-eyebrow{ color:var(--otl2-red-soft) !important; }
.otl2-btns .avia-button{
  border-radius:4px !important; font-weight:600 !important; font-size:16px !important;
  padding:15px 28px !important; border:2px solid transparent !important; transition:background .2s, border-color .2s;
}
.otl2-btns .avia-button:hover{ background:var(--otl2-red-dark) !important; }
.otl2-btns .avia-button:nth-of-type(2){ background:transparent !important; border-color:rgba(255,255,255,.75) !important; color:#fff !important; }
.otl2-btns .avia-button:nth-of-type(2):hover{ background:#fff !important; color:var(--otl2-navy) !important; }
.otl2-hero-trust{ display:flex; flex-wrap:wrap; gap:8px 24px; margin-top:28px !important; }
.otl2-hero-trust li{ color:#DCE3EA !important; font-size:14px !important; }
.otl2-hero-trust li::before{ content:"✓"; color:var(--otl2-red-soft); font-weight:700; margin-right:8px; }
@media (max-width:767px){
  .otl2-hero .av-section-color-overlay{ background:rgba(15,42,61,.86) !important; }
  .otl2-btns .avia-button{ display:block !important; width:100% !important; margin:0 0 12px !important; text-align:center; }
}

/* ---------- 02 數據條 ---------- */
.otl2-statlist{ display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:24px; }
.otl2-statlist li{ color:#fff !important; border-left:1px solid rgba(255,255,255,.35); padding-left:20px !important; }
.otl2-statlist li:first-child{ border-left:0; padding-left:0 !important; }
.otl2-statlist b{ font-size:clamp(32px,3.6vw,48px); line-height:1.1; font-weight:700; color:#fff; }
.otl2-statlist .otl2-unit{ font-size:18px; font-weight:600; color:#fff; margin-left:4px; }
.otl2-statlist .otl2-statlabel{ display:block; margin-top:6px; font-size:15px; color:rgba(255,255,255,.92); }
@media (max-width:767px){
  .otl2-statlist{ grid-template-columns:repeat(2,minmax(0,1fr)); }
  .otl2-statlist li:nth-child(3){ border-left:0; padding-left:0 !important; }
}

/* ---------- 03 認證與客戶 ---------- */
.otl2-trustrow{ display:flex; align-items:center; gap:16px 32px; flex-wrap:wrap; padding:14px 0; }
.otl2-trustrow + .otl2-trustrow{ border-top:1px solid var(--otl2-line); }
.otl2-trustlabel{ flex:0 0 150px; font-size:13px !important; font-weight:700; letter-spacing:.1em; color:var(--otl2-ink) !important; margin:0 !important; }
.otl2-chips, .otl2-logos{ display:flex; flex-wrap:wrap; gap:10px 28px; flex:1; }
.otl2-chips li{ font-weight:600; color:var(--otl2-ink) !important; border:1px solid var(--otl2-line); border-radius:4px; padding:4px 12px !important; font-size:14px !important; }
.otl2-logos li{ font-size:17px !important; font-weight:700; color:#8A939C !important; }
/* 換成真實 logo 後：<li><img src="..." alt="..."></li> 會自動灰階 */
.otl2-logos img{ max-height:40px; width:auto; filter:grayscale(1); opacity:.6; transition:.3s; }
.otl2-logos img:hover{ filter:none; opacity:1; }
@media (max-width:767px){ .otl2-trustlabel{ flex-basis:100%; } }

/* ---------- 抵銷舊 otl-enfold-home-css.php 的白卡樣式 ----------
   舊檔用 #main .av_one_third 加了白底、灰框、圓角（ID 選擇器權重高）。
   v2 區塊內的欄位先全部歸零，再由下面的卡片規則（同樣以 #main 開頭）重新設定。 */
#main .avia-section.otl2 .flex_column{ background:transparent; border:0; border-radius:0; box-shadow:none; }
/* 舊檔另有：#main .avia-section{padding:64px 0}、圖片固定 230px 高和下方 14px 間距（!important） */
#main .avia-section.otl2{ padding:0; }
#main .avia-section.otl2 .flex_column .avia-image-container,
#main .avia-section.otl2 .flex_column .avia-image-container-inner{ margin:0 !important; }
#main .avia-section.otl2 .flex_column .avia-image-container img{ height:auto !important; border-radius:0; }

/* ---------- 共用卡片（產品、案例） ---------- */
#main .avia-section.otl2 .flex_column.otl2-card{
  position:relative; background:#fff; border:1px solid var(--otl2-line); border-radius:var(--otl2-radius);
  overflow:hidden; padding:0 !important; transition:transform .25s ease, box-shadow .25s ease;
}
#main .avia-section.otl2 .otl2-card:hover{ transform:translateY(-4px); box-shadow:0 14px 30px rgba(15,42,61,.12); }
.otl2-card .avia-image-container,
.otl2-tile .avia-image-container{ margin:0 !important; display:block !important; width:100%; }
.otl2-card .avia-image-container-inner,
.otl2-card .avia-image-overlay-wrap,
.otl2-tile .avia-image-container-inner,
.otl2-tile .avia-image-overlay-wrap{ display:block !important; width:100%; border-radius:0 !important; }
.otl2-card img.avia_image, .otl2-case-sm-img{ display:block; width:100% !important; height:auto; aspect-ratio:4/3; object-fit:cover; border-radius:0 !important; }
.otl2-card .avia_textblock, .otl2-card-body{ position:static !important; padding:24px 24px 28px; }
/* r8：Enfold 的文字區外框 section.av_textblock_section 若有定位，整張卡可點的覆蓋層會縮成只有文字區 */
.otl2-card .av_textblock_section, .otl2-tile .av_textblock_section{ position:static !important; }
.otl2-card h3{ margin-bottom:8px; }
.otl2-card p{ margin:0 0 14px; font-size:15px; }
.otl2-tags{ display:flex; flex-wrap:wrap; gap:6px; margin:0 0 18px !important; }
.otl2-tags li{ font-size:13px !important; line-height:1.4 !important; background:var(--otl2-alt); color:var(--otl2-ink) !important; border-radius:3px; padding:4px 10px !important; }
.otl2-more{ color:var(--otl2-red) !important; font-weight:600; font-size:15px; text-decoration:none !important; }
/* 整張卡可點：連結的 ::after 覆蓋整張卡 */
.otl2-card .otl2-more::after{ content:""; position:absolute; inset:0; z-index:3; }
.otl2-card:hover .otl2-more{ text-decoration:underline !important; }

/* ---------- 04 行業磚牆（圖上疊字） ---------- */
#main .avia-section.otl2 .flex_column.otl2-tile{ position:relative; overflow:hidden; border-radius:var(--otl2-radius); padding:0 !important; background:var(--otl2-navy-deep); }
.otl2-tile img.avia_image{ display:block; width:100% !important; aspect-ratio:5/4; object-fit:cover; transition:transform .5s ease; }
.otl2-tile:hover img.avia_image{ transform:scale(1.05); }
.otl2 .otl2-tile .avia_textblock.otl2-tile-txt{
  position:absolute !important; left:0; right:0; bottom:0; padding:80px 24px 24px;
  background:linear-gradient(180deg,rgba(11,31,46,0) 0%,rgba(11,31,46,.88) 55%,rgba(11,31,46,.96) 100%);
}
.otl2-tile-txt h3{ color:#fff !important; font-size:22px !important; margin-bottom:6px; }
.otl2-tile-txt p{ color:#DCE3EA !important; font-size:15px !important; line-height:1.6 !important; margin:0 0 10px; }
/* r8：連結不可用 transform（會把 ::after 的定位範圍縮回連結本身），只用淡入 */
.otl2-tile-txt .otl2-more{ color:#fff !important; opacity:0; transition:opacity .25s; }
.otl2-tile:hover .otl2-more, .otl2-tile:focus-within .otl2-more{ opacity:1; }
/* 文字區是浮在圖片底部的絕對定位區塊，::after 以它為基準；向上延伸 1000px，
   超出的部分被磚塊的 overflow:hidden 裁掉，剛好蓋滿整塊磚，整塊都可點 */
.otl2-tile .otl2-more::after{ content:""; position:absolute; top:-1000px; right:0; bottom:0; left:0; z-index:3; }
.otl2-no{ display:block; font-size:13px; font-weight:700; letter-spacing:.1em; color:var(--otl2-red-soft); margin-bottom:6px; }
@media (hover:none){ .otl2-tile-txt .otl2-more{ opacity:1; } }

/* ---------- 06 案例 ---------- */
.otl2-case-lg img.avia_image{ aspect-ratio:16/9; }
.otl2-case-lg h3{ font-size:26px !important; }
.otl2-meta{ font-size:13px !important; font-weight:700; letter-spacing:.06em; color:var(--otl2-red) !important; margin:0 0 8px !important; }
.otl2-metrics{ display:flex; gap:32px; margin:18px 0 20px !important; padding-top:16px !important; border-top:1px solid var(--otl2-line); }
.otl2-metrics b{ display:block; font-size:24px; font-weight:700; color:var(--otl2-ink); line-height:1.2; }
.otl2-metrics span{ font-size:13px; color:var(--otl2-muted); }
#main .avia-section.otl2 .flex_column.otl2-case-stack{ padding:0 !important; background:transparent; border:0; }
.otl2-case-stack .avia_textblock{ display:flex; flex-direction:column; gap:24px; height:100%; }
.otl2-case-sm{ position:relative; background:#fff; border:1px solid var(--otl2-line); border-radius:var(--otl2-radius); overflow:hidden; transition:transform .25s, box-shadow .25s; }
.otl2-case-sm:hover{ transform:translateY(-4px); box-shadow:0 14px 30px rgba(15,42,61,.12); }
.otl2-case-sm-img{ aspect-ratio:16/9 !important; }
.otl2-case-sm .otl2-card-body{ padding:18px 20px 20px; }
.otl2-case-sm h3{ font-size:18px !important; margin-bottom:8px; }

/* ---------- 07 服務流程（橫向時間軸） ---------- */
.otl2-timeline{ display:grid; grid-template-columns:repeat(6,minmax(0,1fr)); gap:24px; position:relative; counter-reset:none; }
.otl2-timeline::before{ content:""; position:absolute; top:22px; left:22px; right:22px; height:2px; background:var(--otl2-line); }
.otl2-timeline li{ position:relative; }
.otl2-timeline .otl2-no{
  width:46px; height:46px; border-radius:50%; background:#fff; border:2px solid var(--otl2-red);
  color:var(--otl2-red); display:flex; align-items:center; justify-content:center; font-size:15px; margin-bottom:18px; position:relative; z-index:1;
}
.otl2-timeline h3{ margin-bottom:6px; }
.otl2-timeline p{ font-size:15px !important; line-height:1.65 !important; margin:0; }
@media (max-width:1023px){
  .otl2-timeline{ grid-template-columns:1fr; gap:28px; }
  .otl2-timeline::before{ top:0; bottom:0; left:22px; right:auto; width:2px; height:auto; }
  .otl2-timeline li{ padding-left:68px !important; }
  .otl2-timeline .otl2-no{ position:absolute; left:0; top:0; }
}

/* ---------- 08 為何選擇 OTL ---------- */
.otl2-why-list{ display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:24px; }
.otl2-why-list li{ background:#fff; border-top:3px solid var(--otl2-red); border-radius:0 0 var(--otl2-radius) var(--otl2-radius); padding:28px 24px !important; }
.otl2-why-list h3{ margin-bottom:8px; }
.otl2-why-list p{ font-size:15px !important; margin:0; }
.otl2-awards{ display:flex; align-items:center; flex-wrap:wrap; gap:12px 28px; margin-top:40px; padding-top:28px; border-top:1px solid #DDD8CF; }
.otl2-awards ul{ display:flex; flex-wrap:wrap; gap:8px 24px; flex:1; }
.otl2-awards li{ font-size:14px !important; color:var(--otl2-ink) !important; }
.otl2-awards li::before{ content:"★"; color:var(--otl2-red); margin-right:6px; }
@media (max-width:1023px){ .otl2-why-list{ grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media (max-width:600px){ .otl2-why-list{ grid-template-columns:1fr; } }

/* ---------- 09 詢盤表單 ---------- */
.otl2-promise{ margin-top:8px !important; }
.otl2-promise li{ padding:16px 0 16px 36px !important; border-top:1px solid rgba(255,255,255,.12); position:relative; }
.otl2-promise li::before{ content:"✓"; position:absolute; left:0; top:15px; color:var(--otl2-red-soft); font-weight:700; font-size:18px; }
.otl2-promise b{ display:block; color:#fff; font-size:17px; }
.otl2-promise span{ font-size:15px; color:var(--otl2-on-dark); }
.otl2-promise a{ color:#fff !important; text-decoration:underline !important; }

.otl2-form{ background:#fff; border-radius:var(--otl2-radius); padding:32px !important; }
.otl2-form .wpcf7-form{ display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px 18px; }
.otl2-form .wpcf7-form > p, .otl2-form .otl2-f{ margin:0 !important; }
.otl2-form .otl2-f--full, .otl2-form .wpcf7-response-output, .otl2-form .wpcf7-form > div:not(.otl2-f){ grid-column:1 / -1; }
.otl2-form label{ display:block; font-size:14px; font-weight:600; color:var(--otl2-ink) !important; margin-bottom:6px; }
.otl2-form label .otl2-req{ color:var(--otl2-red); }
.otl2-form input[type=text], .otl2-form input[type=email], .otl2-form input[type=tel],
.otl2-form select, .otl2-form textarea{
  width:100% !important; background:#fff !important; color:var(--otl2-ink) !important; font-family:inherit !important; font-size:16px !important;
  border:1px solid #B9C0C7 !important; border-radius:4px !important; padding:12px 14px !important; margin:0 !important; box-shadow:none !important;
}
.otl2-form input:focus, .otl2-form select:focus, .otl2-form textarea:focus{ border-color:var(--otl2-navy) !important; outline:2px solid rgba(15,42,61,.15); }
.otl2-form textarea{ min-height:120px; height:120px; }
.otl2-form input[type=file]{ font-size:14px; color:var(--otl2-muted); }
.otl2-form .otl2-hint{ display:block; font-size:13px; color:var(--otl2-muted); margin-top:4px; }
.otl2-form .wpcf7-acceptance .wpcf7-list-item{ margin:0; }
.otl2-form .wpcf7-acceptance label{ font-weight:400; font-size:14px; color:var(--otl2-muted) !important; display:flex; gap:8px; align-items:flex-start; }
.otl2-form .wpcf7-submit{
  background:var(--otl2-red) !important; color:#fff !important; border:0 !important; border-radius:4px !important;
  font-size:16px !important; font-weight:600 !important; padding:15px 36px !important; cursor:pointer;
}
.otl2-form .wpcf7-submit:hover{ background:var(--otl2-red-dark) !important; }
.otl2-form .wpcf7-not-valid-tip{ font-size:13px; color:#B3261E; }
@media (max-width:767px){
  .otl2-form{ padding:22px !important; }
  .otl2-form .wpcf7-form{ grid-template-columns:1fr; }
  .otl2-form .wpcf7-submit{ width:100%; }
}

/* ---------- 10 經銷招募窄條 ---------- */
.otl2-partnerband{ display:flex; align-items:center; justify-content:space-between; gap:20px 40px; flex-wrap:wrap;
  border:1px solid var(--otl2-line); border-radius:var(--otl2-radius); padding:28px 32px; }
.otl2-partnerband p{ margin:6px 0 0 !important; }
.otl2-btn-outline{ border:2px solid var(--otl2-ink); color:var(--otl2-ink) !important; border-radius:4px; padding:12px 24px;
  font-weight:600; text-decoration:none !important; white-space:nowrap; transition:.2s; }
.otl2-btn-outline:hover{ background:var(--otl2-ink); color:#fff !important; }

/* ---------- 欄位在平板／手機 ---------- */
@media (max-width:989px){
  .otl2 .flex_column.otl2-card, .otl2 .flex_column.otl2-tile{ margin-bottom:24px !important; }
}

/* =========================================================
   全站部分
   ========================================================= */

/* 字體：沿用 Enfold 已載入的 IBM Plex Sans，中文用系統字（大陸訪客不需連 Google） */
body, #header, #footer, #socket, .main_color, .alternate_color{ font-family:var(--otl2-font); }
body h1, body h2, body h3, body h4{ font-family:var(--otl2-font); }

/* 首頁不顯示頁面標題列（原本在 otl-enfold-home-css.php） */
.home .title_container{ display:none; }

/* Header「获取报价」按鈕（選單項目 Menu Style = Button Style (Colored)） */
#header .av-menu-button-colored > a .avia-menu-text{
  background:var(--otl2-red) !important; border-color:var(--otl2-red) !important; color:#fff !important;
  border-radius:4px !important; font-weight:600 !important; white-space:nowrap;
}
#header .av-menu-button-colored > a:hover .avia-menu-text{ background:var(--otl2-red-dark) !important; border-color:var(--otl2-red-dark) !important; }

/* Header 語言按鈕（otl-lang-switch.php 輸出 li.otl-lang-switch > a > span.avia-menu-text）
   和「获取报价」同樣把樣式放在內層 span：<a> 由 Enfold 撐成 Header 高度，span 才會垂直置中。
   比报价按鈕低調：灰色細框、深色字，不和主要按鈕搶注意力。 */
#top .av-main-nav > .otl-lang-switch > a{ padding-left:14px !important; padding-right:0 !important; border:0 !important; background:transparent !important; }
#top .otl-lang-switch .avia-menu-text{
  display:inline-block; padding:7px 12px; border:1px solid #C9D0D6; border-radius:4px;
  font-size:13px; font-weight:600; line-height:1.4; color:var(--otl2-ink); white-space:nowrap;
}
#top .otl-lang-switch > a:hover .avia-menu-text,
#top .otl-lang-switch > a:focus-visible .avia-menu-text{ border-color:var(--otl2-navy); color:var(--otl2-navy); }
/* 手機漢堡選單：和上面的选单項目對齊，按鈕不要撐滿整行 */
#av-burger-menu-ul .otl-lang-switch > a{ padding-top:16px !important; padding-bottom:16px !important; }
#av-burger-menu-ul .otl-lang-switch .avia-menu-text{ font-size:15px; }

/* Footer：拿掉白色方框，深藍底配淺色字 */
#footer{ background:var(--otl2-navy) !important; border:0 !important; }
#footer .widget{ background:transparent !important; border:0 !important; box-shadow:none !important; padding:0 !important; border-radius:0 !important; }
#footer .widgettitle, #footer h3{ color:#fff !important; font-size:15px !important; letter-spacing:.06em; text-transform:none !important; }
#footer, #footer p, #footer li, #footer .textwidget{ color:var(--otl2-on-dark) !important; font-size:15px; }
#footer a{ color:#fff !important; text-decoration:none !important; }
#footer a:hover{ color:var(--otl2-red-soft) !important; }
#footer li{ border-color:rgba(255,255,255,.1) !important; }
#socket{ background:var(--otl2-navy-deep) !important; border-top:1px solid rgba(255,255,255,.08) !important; }
#socket, #socket .copyright, #socket a{ color:#9FB0BF !important; }

/* =========================================================
   r4：依第 4 步真實截圖修正
   ========================================================= */
@media (max-width:767px){
  /* 手機 Header：logo 太寬，和搜尋圖示重疊 */
  .responsive #top #header .logo img{ max-width:200px !important; width:auto !important; height:auto !important; }
  /* 行業榮譽：標題、清單、「查看资质荣誉」改為上下排列 */
  .otl2-awards{ align-items:flex-start; }
  .otl2-awards > *{ flex-basis:100%; }
  .otl2-awards ul{ flex-direction:column; }
  /* 區塊標題和卡片之間的空白太大 */
  .otl2-sechead{ margin-bottom:32px; }
}

/* r7：手機 Footer 欄與欄之間原本 80px（widget 上下 margin 30 + 欄位 margin 20 + 下一個 widget 30），縮為 36px */
@media (max-width:767px){
  #footer .widget{ margin-top:0 !important; margin-bottom:0 !important; }
  #footer .flex_column{ margin-bottom:36px !important; }
  #footer .flex_column:last-child{ margin-bottom:0 !important; }
}

/* =========================================================
   r9：案例／產品詳情頁（otl_case 單篇，配合 otl-case-single.php）
   ========================================================= */
/* 標題下方空白的日期／作者／分類那一行 */
.single-otl_case .post-meta-infos{ display:none !important; }
/* 正文 */
.single-otl_case .entry-content p,
.single-otl_case .entry-content li{ font-size:16px; line-height:1.8; color:var(--otl2-ink); }
.single-otl_case .entry-content h2,
.single-otl_case .entry-content h3{ margin:32px 0 12px; }
.single-otl_case .entry-content img{ display:block; max-width:100%; height:auto; margin:24px 0; border-radius:var(--otl2-radius); }
/* 文末詢盤區塊 */
.otl2-case-cta{ margin:48px 0 8px; padding:32px; background:var(--otl2-navy); border-radius:var(--otl2-radius); }
.otl2-case-cta p{ color:var(--otl2-on-dark) !important; margin:0 0 8px; }
.otl2-case-cta .otl2-case-cta-title{ color:#fff !important; font-size:22px !important; font-weight:700; margin:0 0 8px; }
.otl2-case-cta-btn{ display:inline-block; margin-top:12px; padding:12px 24px; background:var(--otl2-red); color:#fff !important; font-weight:600; border-radius:4px; text-decoration:none !important; }
.otl2-case-cta-btn:hover, .otl2-case-cta-btn:focus-visible{ background:var(--otl2-red-dark); }
@media (max-width:767px){
  .otl2-case-cta{ padding:24px; }
  .otl2-case-cta-btn{ display:block; text-align:center; }
}

/* =========================================================
   r11：內頁元件（pages/*.txt）
   ========================================================= */
/* 內頁頁首：深藍底，比首頁 Hero 矮、標題小一級 */
.otl2-pagehero .otl2-h1{ color:#fff !important; font-size:clamp(30px,3.6vw,46px) !important; max-width:18em; text-wrap:balance; }
.otl2-pagehero .otl2-lead{ color:#DCE3EA !important; margin-bottom:24px !important; }
.otl2-pagehero .otl2-btns{ margin-top:8px; }
/* 只有 2、3 項的清單改成 2、3 欄 */
.otl2-why-list--2{ grid-template-columns:repeat(2,minmax(0,1fr)); }
.otl2-why-list--3{ grid-template-columns:repeat(3,minmax(0,1fr)); }
@media (max-width:1023px){ .otl2-why-list--3{ grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media (max-width:600px){ .otl2-why-list--2, .otl2-why-list--3{ grid-template-columns:1fr; } }
/* 白底區塊裡的清單：加細框，和白底分開 */
.avia-section.otl2:not(.otl2-alt):not(.otl2-dark) .otl2-why-list li{ border:1px solid var(--otl2-line); border-top:3px solid var(--otl2-red); }
.otl2-why-list a{ color:var(--otl2-red) !important; font-weight:600; }
/* 備註、待確認 */
.otl2-note{ font-size:14px !important; color:var(--otl2-muted) !important; margin-top:20px !important; }
/* 微信 QR */
.otl2-wechat{ display:flex; align-items:center; gap:20px; margin-top:32px; }
.otl2-wechat img{ width:120px; height:120px; border:1px solid var(--otl2-line); border-radius:var(--otl2-radius); }
.otl2-wechat p{ margin:0 !important; }
/* 規格表（東聯工業中心） */
.otl2-facts{ display:grid; grid-template-columns:repeat(auto-fill,minmax(260px,1fr)); column-gap:32px; border-top:1px solid var(--otl2-line); margin:0 !important; }
.otl2-facts > div{ padding:20px 24px 20px 0; border-bottom:1px solid var(--otl2-line); }
.otl2-facts dt{ font-size:13px; font-weight:700; letter-spacing:.06em; color:var(--otl2-muted); margin-bottom:6px; }
.otl2-facts dd{ margin:0; font-size:18px; font-weight:600; color:var(--otl2-ink); }
/* 荣誉清單（資質頁，單欄條列） */
.otl2-awardlist{ columns:2; column-gap:48px; }
.otl2-awardlist li{ break-inside:avoid; padding:12px 0 12px 28px !important; border-bottom:1px solid #DDD8CF; position:relative; font-size:16px !important; }
.otl2-awardlist li::before{ content:"★"; position:absolute; left:0; color:var(--otl2-red); }
@media (max-width:767px){ .otl2-awardlist{ columns:1; } }
/* 圖片牆 */
.otl2-gallery{ display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; }
.otl2-gallery li{ margin:0 !important; padding:0 !important; }
.otl2-gallery img{ display:block; width:100%; height:auto; aspect-ratio:4/3; object-fit:cover; border-radius:var(--otl2-radius); }
.otl2-certs .otl2-gallery{ grid-template-columns:repeat(4,minmax(0,1fr)); }
.otl2-certs .otl2-gallery img, .otl2-magazine .otl2-gallery img{ object-fit:contain; background:var(--otl2-alt); padding:12px; }
.otl2-magazine .otl2-gallery img{ aspect-ratio:3/4; }
@media (max-width:1023px){ .otl2-gallery, .otl2-certs .otl2-gallery{ grid-template-columns:repeat(2,minmax(0,1fr)); } }
/* 案例／產品卡片牆（[otl_case_grid]） */
.otl2-grid{ display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:24px; margin:0 !important; }
.otl2-gcard{ margin:0 !important; padding:0 !important; list-style:none; }
.otl2-gcard a{ display:flex; flex-direction:column; height:100%; background:#fff; border:1px solid var(--otl2-line); border-radius:var(--otl2-radius); overflow:hidden; text-decoration:none !important; transition:transform .25s ease, box-shadow .25s ease; }
.otl2-gcard a:hover, .otl2-gcard a:focus-visible{ transform:translateY(-4px); box-shadow:0 14px 30px rgba(15,42,61,.12); }
.otl2-gcard-img{ display:block; width:100%; height:auto; aspect-ratio:4/3; object-fit:cover; }
.otl2-gcard-noimg{ background:var(--otl2-alt); }
.otl2-gcard-body{ display:block; padding:18px 20px 22px; }
.otl2-gcard-body .otl2-meta{ display:block; }
.otl2-gcard-title{ display:block; font-size:17px; font-weight:700; line-height:1.45; color:var(--otl2-ink); }
@media (max-width:1023px){ .otl2-grid{ grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media (max-width:600px){ .otl2-grid{ grid-template-columns:1fr; } }


/* =========================================================
   r12：紅色降一級、內頁頁首背景圖、聯繫頁圖示卡片
   ========================================================= */
/* 數據條：logo 紅改深酒紅漸層（短代碼裡的 custom_bg 仍是 #E60012，這裡覆蓋，不用重寫首頁） */
#main .avia-section.otl2-stats{ background:linear-gradient(120deg,#741820 0%,var(--otl2-wine) 55%,#9C2129 100%) !important; }
/* 短代碼按鈕的 custom_bg 是行內樣式，這裡統一改成新紅 */
.otl2-btns .avia-button:first-of-type{ background-color:var(--otl2-red) !important; }
.otl2-btns .avia-button:first-of-type:hover{ background-color:var(--otl2-red-dark) !important; }

/* 內頁頁首：背景照片 + 由左到右漸淡的深藍遮罩，文字在左側深色區 */
#main .avia-section.otl2-pagehero{ background-size:cover !important; background-position:center !important; }
.otl2-pagehero .av-section-color-overlay{
  opacity:1 !important;
  background:linear-gradient(90deg,rgba(11,31,46,.95) 0%,rgba(11,31,46,.86) 45%,rgba(11,31,46,.45) 100%) !important;
}
#main .avia-section.otl2-pagehero .container .content{ padding-top:128px; padding-bottom:112px; }
.otl2-pagehero .avia_textblock{ max-width:720px; }
/* 背景影片（之後客戶提供影片時用）：影片在遮罩下面 */
.otl2-pagehero .av-section-video-bg{ z-index:0; }
@media (max-width:767px){
  .otl2-pagehero .av-section-color-overlay{ background:rgba(11,31,46,.86) !important; }
  #main .avia-section.otl2-pagehero .container .content{ padding-top:72px; padding-bottom:64px; }
}

/* ---------- 圖示（CSS 遮罩，內容裡不用放 SVG） ---------- */
.otl2-ic{ position:relative; }
.otl2-ic::before{
  content:""; display:block; width:52px; height:52px; border-radius:50%;
  background:rgba(200,22,30,.08); margin-bottom:20px;
}
.otl2-ic::after{
  content:""; position:absolute; left:14px; top:14px; width:24px; height:24px; background:var(--otl2-red);
  -webkit-mask-repeat:no-repeat; mask-repeat:no-repeat; -webkit-mask-size:contain; mask-size:contain;
}
.otl2-dark .otl2-ic::before{ background:rgba(255,255,255,.08); }
.otl2-dark .otl2-ic::after{ background:var(--otl2-red-soft); }
.otl2-ic--phone::after{ -webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.9v3a2 2 0 0 1-2.2 2 19.8 19.8 0 0 1-8.6-3.1 19.5 19.5 0 0 1-6-6A19.8 19.8 0 0 1 2.1 4.2 2 2 0 0 1 4.1 2h3a2 2 0 0 1 2 1.7c.1.9.4 1.8.7 2.7a2 2 0 0 1-.5 2.1L8 9.8a16 16 0 0 0 6 6l1.3-1.3a2 2 0 0 1 2.1-.4c.9.3 1.8.6 2.7.7a2 2 0 0 1 1.7 2z'/%3E%3C/svg%3E"); mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.9v3a2 2 0 0 1-2.2 2 19.8 19.8 0 0 1-8.6-3.1 19.5 19.5 0 0 1-6-6A19.8 19.8 0 0 1 2.1 4.2 2 2 0 0 1 4.1 2h3a2 2 0 0 1 2 1.7c.1.9.4 1.8.7 2.7a2 2 0 0 1-.5 2.1L8 9.8a16 16 0 0 0 6 6l1.3-1.3a2 2 0 0 1 2.1-.4c.9.3 1.8.6 2.7.7a2 2 0 0 1 1.7 2z'/%3E%3C/svg%3E"); }
.otl2-ic--mail::after{ -webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='4' width='20' height='16' rx='2'/%3E%3Cpath d='m22 7-10 6L2 7'/%3E%3C/svg%3E"); mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='4' width='20' height='16' rx='2'/%3E%3Cpath d='m22 7-10 6L2 7'/%3E%3C/svg%3E"); }
.otl2-ic--whatsapp::after{ -webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7.9 20A9 9 0 1 0 4 16.1L2 22z'/%3E%3Cpath d='M9 10a.5.5 0 0 0 1 0V9a.5.5 0 0 0-1 0v1a5 5 0 0 0 5 5h1a.5.5 0 0 0 0-1h-1a.5.5 0 0 0 0 1'/%3E%3C/svg%3E"); mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7.9 20A9 9 0 1 0 4 16.1L2 22z'/%3E%3Cpath d='M9 10a.5.5 0 0 0 1 0V9a.5.5 0 0 0-1 0v1a5 5 0 0 0 5 5h1a.5.5 0 0 0 0-1h-1a.5.5 0 0 0 0 1'/%3E%3C/svg%3E"); }
.otl2-ic--qr::after{ -webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='7' height='7' rx='1'/%3E%3Crect x='14' y='3' width='7' height='7' rx='1'/%3E%3Crect x='3' y='14' width='7' height='7' rx='1'/%3E%3Cpath d='M14 14h3v3h-3zM21 14v.01M14 21h.01M17 21h4v-4'/%3E%3C/svg%3E"); mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='7' height='7' rx='1'/%3E%3Crect x='14' y='3' width='7' height='7' rx='1'/%3E%3Crect x='3' y='14' width='7' height='7' rx='1'/%3E%3Cpath d='M14 14h3v3h-3zM21 14v.01M14 21h.01M17 21h4v-4'/%3E%3C/svg%3E"); }
.otl2-ic--pin::after{ -webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 10c0 6-8 12-8 12S4 16 4 10a8 8 0 0 1 16 0z'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E"); mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 10c0 6-8 12-8 12S4 16 4 10a8 8 0 0 1 16 0z'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E"); }
.otl2-ic--file::after{ -webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z'/%3E%3Cpath d='M14 2v6h6M16 13H8M16 17H8M10 9H8'/%3E%3C/svg%3E"); mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z'/%3E%3Cpath d='M14 2v6h6M16 13H8M16 17H8M10 9H8'/%3E%3C/svg%3E"); }
.otl2-ic--users::after{ -webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='9' cy='7' r='4'/%3E%3Cpath d='M22 21v-2a4 4 0 0 0-3-3.9M16 3.1a4 4 0 0 1 0 7.8'/%3E%3C/svg%3E"); mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='9' cy='7' r='4'/%3E%3Cpath d='M22 21v-2a4 4 0 0 0-3-3.9M16 3.1a4 4 0 0 1 0 7.8'/%3E%3C/svg%3E"); }
.otl2-ic--factory::after{ -webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 20V9l6 4V9l6 4V4h8v16z'/%3E%3Cpath d='M2 20h20M17 8h2M17 12h2M17 16h2'/%3E%3C/svg%3E"); mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 20V9l6 4V9l6 4V4h8v16z'/%3E%3Cpath d='M2 20h20M17 8h2M17 12h2M17 16h2'/%3E%3C/svg%3E"); }
.otl2-ic--clock::after{ -webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M12 6v6l4 2'/%3E%3C/svg%3E"); mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M12 6v6l4 2'/%3E%3C/svg%3E"); }

/* ---------- 聯繫方式卡片（4 張） ---------- */
.otl2-cbox{ display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:20px; }
.otl2-cbox > li{
  background:#fff; border:1px solid var(--otl2-line); border-radius:var(--otl2-radius);
  padding:28px 24px !important; margin:0 !important; transition:border-color .2s, box-shadow .2s, transform .2s;
}
.otl2-cbox > li.otl2-ic::after{ left:38px; top:42px; }
.otl2-cbox h3{ font-size:14px !important; font-weight:700; letter-spacing:.08em; color:var(--otl2-muted) !important; margin:0 0 6px !important; }
.otl2-cbox .otl2-cval{ display:block; font-size:17px; font-weight:700; color:var(--otl2-ink) !important; line-height:1.4; text-decoration:none !important; overflow-wrap:anywhere; }
.otl2-cbox .otl2-cval::after{ content:""; position:absolute; inset:0; }   /* 整張卡可點 */
.otl2-cbox p{ font-size:14px !important; margin:10px 0 0 !important; }
.otl2-cbox > li:has(.otl2-cval:hover), .otl2-cbox > li:has(.otl2-cval:focus-visible){
  border-color:var(--otl2-red); box-shadow:0 12px 28px rgba(15,42,61,.10); transform:translateY(-3px);
}
.otl2-cbox .otl2-qr{ display:block; width:112px; height:112px; margin-top:8px; border:1px solid var(--otl2-line); border-radius:4px; }
@media (max-width:1023px){ .otl2-cbox{ grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media (max-width:600px){ .otl2-cbox{ grid-template-columns:1fr; } }

/* ---------- 按需求聯繫（3 項） ---------- */
.otl2-needs{ display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:24px; }
.otl2-needs > li{ background:#fff; border-radius:var(--otl2-radius); padding:32px 28px !important; margin:0 !important; }
.otl2-needs > li.otl2-ic::after{ left:42px; top:46px; }
.otl2-needs h3{ font-size:20px !important; margin:0 0 10px !important; }
.otl2-needs p{ margin:0 0 16px !important; }
@media (max-width:900px){ .otl2-needs{ grid-template-columns:1fr; } }

/* ---------- 地點（3 項，左側圖示） ---------- */
.otl2-places{ display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:32px; border-top:1px solid var(--otl2-line); padding-top:32px !important; }
.otl2-places > li{ margin:0 !important; padding:0 0 0 68px !important; min-height:52px; }
.otl2-places > li.otl2-ic::before{ position:absolute; left:0; top:0; margin:0; }
.otl2-places h3{ font-size:18px !important; margin:2px 0 8px !important; }
.otl2-places p{ font-size:15px !important; margin:0 !important; }
@media (max-width:900px){ .otl2-places{ grid-template-columns:1fr; gap:24px; } }
/* 手機：聯繫卡片改成左圖示、右文字，降低高度 */
@media (max-width:600px){
  .otl2-cbox > li{ padding:20px 20px 20px 88px !important; }
  .otl2-cbox > li.otl2-ic::before{ position:absolute; left:20px; top:20px; margin:0; }
  .otl2-cbox > li.otl2-ic::after{ left:34px; top:34px; }
  .otl2-cbox p{ margin-top:6px !important; }
  .otl2-needs > li{ padding:24px 20px 24px 88px !important; }
  .otl2-needs > li.otl2-ic::before{ position:absolute; left:20px; top:24px; margin:0; }
  .otl2-needs > li.otl2-ic::after{ left:34px; top:38px; }
}

/* ---------- r13 ---------- */
/* 頁首照片多半有「OTL SYSTEMS」浮水印，又有幾張解析度不足：遮罩加輕微模糊、中段加深，讓浮水印和顆粒不搶標題 */
.otl2-hero .av-section-color-overlay,
.otl2-pagehero .av-section-color-overlay{
  -webkit-backdrop-filter:blur(3px); backdrop-filter:blur(3px);
}
.otl2-hero .av-section-color-overlay{
  background:linear-gradient(90deg,rgba(15,42,61,.95) 0%,rgba(15,42,61,.90) 50%,rgba(15,42,61,.50) 100%) !important;
}
.otl2-pagehero .av-section-color-overlay{
  background:linear-gradient(90deg,rgba(11,31,46,.95) 0%,rgba(11,31,46,.90) 50%,rgba(11,31,46,.55) 100%) !important;
}
@media (max-width:767px){
  .otl2-hero .av-section-color-overlay{ background:rgba(15,42,61,.88) !important; }
  .otl2-pagehero .av-section-color-overlay{ background:rgba(11,31,46,.88) !important; }
}
/* 手機聯繫卡：郵箱不要在字中間斷行 */
@media (max-width:600px){
  .otl2-cbox .otl2-cval{ font-size:14px; }
}
