/* 藝誠官網新版頁尾（footer/EZTRUST-002，2026-11-28 負責人：新版內頁試做的頁尾定案後套到全站）。
   樣式原本寫在 eztrust/css/inner2-site.css（只有新版內頁載入），搬到這裡給每一頁用；新版內頁的區塊 section/EZTRUST-091 也引用這個檔。
   外層一樣是 .ezi（和新版內頁同一套 class），不依賴 inner2.css */
.ezi-site-footer, .ezi-site-footer * { box-sizing: border-box; }
.ezi-site-footer { display: block; margin: 0; color: #fff; font-family: Arial, "Noto Sans TC", "Microsoft JhengHei", sans-serif; font-weight: 400; line-height: 1.5; }
.ezi-site-footer ul { margin: 0; padding: 0; list-style: none; }
.ezi-site-footer h2, .ezi-site-footer p { margin: 0; }

/* 新版頁尾（2026-11-28 負責人第二版，照提案的 quote-partner-banner＋footer）：插畫長條上掛五個品牌彩球（位置照提案的 2048×447 座標），
   右下聯絡標題與「免費諮詢」；下面藍色公司資訊與認證、版權。長條裡的字跟著長條寬度縮放（cqw） ── */
.ezi .ezi-page-footer { background: #333; color: #fff; }
.ezi .ezi-quote-partner-banner { position: relative; overflow: hidden; container-type: inline-size; background: #12296a; color: #fff; }
.ezi .ezi-quote-partner-art { display: block; width: 100%; height: auto; }
/* 2026-11-28 負責人：照提案第三版，底圖除了筆電以外蓋一層淡淡的漸層（遮罩把筆電挖掉）、彩球橫向壓窄一點、名稱與小圖示微調 */
.ezi .ezi-quote-partner-background { position: relative; isolation: isolate; }
.ezi .ezi-quote-partner-background::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, #c0e4fb, #99c5fb 54%, #c5a9ed); opacity: .22; mix-blend-mode: screen; -webkit-mask: url(/eztrust/images/inner2/redesign/quote-partner-background-mask.svg) center / 100% 100% no-repeat; mask: url(/eztrust/images/inner2/redesign/quote-partner-background-mask.svg) center / 100% 100% no-repeat; pointer-events: none; }
.ezi .ezi-quote-partner-link { position: absolute; left: calc(var(--left) * 100% / 2048); top: calc(var(--top) * 100% / 447); width: calc(var(--width) * 100% / 2048); color: inherit; text-decoration: none; }
.ezi .ezi-quote-partner-link:nth-child(1) { --left: 623; --top: 110; --width: 212; --pivot: 50%; --orb-x-scale: .92; }
.ezi .ezi-quote-partner-link:nth-child(2) { --left: 862; --top: 78; --width: 210; --pivot: 50%; --orb-x-scale: .93; }
.ezi .ezi-quote-partner-link:nth-child(3) { --left: 1118; --top: 93; --width: 208; --pivot: 50%; --orb-x-scale: .92; }
.ezi .ezi-quote-partner-link:nth-child(4) { --left: 1367; --top: 48; --width: 213; --pivot: 50%; --orb-x-scale: .93; }
.ezi .ezi-quote-partner-link:nth-child(5) { --left: 1611; --top: 16; --width: 229; --pivot: 49%; --orb-x-scale: .92; }
.ezi .ezi-quote-partner-orb { position: relative; display: block; transform-origin: var(--pivot) 1%; }
.ezi .ezi-quote-partner-orb img { display: block; width: 100%; height: auto; transform: scaleX(var(--orb-x-scale, 1)); transform-origin: var(--pivot) center; }
.ezi .ezi-quote-partner-number { position: absolute; left: 18%; top: 37%; font-size: 3.48cqw; font-weight: 800; line-height: 1; text-shadow: 0 1px 4px #16093d50; }
.ezi .ezi-quote-partner-name { position: absolute; left: 60%; top: 40%; translate: -36% 0; color: #ffeb34; text-align: center; white-space: nowrap; font-size: 1.22cqw; line-height: 1.14; text-shadow: 0 1px 3px #16093d73; }
.ezi .ezi-quote-partner-name strong { display: inline-block; scale: .91; font-weight: 800; }
.ezi .ezi-quote-partner-link:nth-child(2) .ezi-quote-partner-name strong { translate: -7% 0; }
.ezi .ezi-quote-partner-link:is(:nth-child(3), :nth-child(4)) .ezi-quote-partner-name strong { translate: -2% 0; transform-origin: left center; }
.ezi .ezi-quote-partner-name small { display: block; margin-top: .24em; color: #fff; font-size: .68em; letter-spacing: .02em; }
.ezi .ezi-quote-partner-link:not(:first-child) .ezi-quote-partner-name { top: 46%; }
/* 官網第 2 顆的名稱是兩行（雲端／ERP，負責人：文字用原本的），照舊放高一點，才不會壓到小圖示 */
.ezi .ezi-quote-partner-link:nth-child(2) .ezi-quote-partner-name { top: 40%; }
.ezi .ezi-quote-partner-link:is(:first-child, :last-child) .ezi-quote-partner-name { left: 56%; }
.ezi .ezi-quote-partner-icon { position: absolute; left: 50%; top: 71%; translate: -50%; width: 29%; height: auto; color: #fff; pointer-events: none; }
.ezi .ezi-quote-partner-link:first-child .ezi-quote-partner-icon { top: 72.5%; width: 24%; }
.ezi .ezi-quote-partner-link:nth-child(2) .ezi-quote-partner-icon { top: 71.5%; width: 25%; }
.ezi .ezi-quote-partner-link:nth-child(4) .ezi-quote-partner-icon { width: 25%; rotate: -12deg; }
.ezi .ezi-quote-partner-link:nth-child(5) .ezi-quote-partner-icon { top: 72%; }
.ezi .ezi-quote-partners { position: absolute; left: 0; top: 0; width: 100%; aspect-ratio: 2048 / 447; }
.ezi .ezi-quote-partner-banner :is(a):focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
    .ezi .ezi-quote-partner-link:hover .ezi-quote-partner-orb { animation: ezi-quote-bell-swing 760ms ease-in-out; }
}
@keyframes ezi-quote-bell-swing { 0%, 100% { transform: rotate(0); } 22% { transform: rotate(-8deg); } 44% { transform: rotate(7deg); } 63% { transform: rotate(-4deg); } 82% { transform: rotate(2deg); } }
.ezi .ezi-footer-filters { position: absolute; width: 0; height: 0; pointer-events: none; }
.ezi .ezi-footer-info { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1fr) minmax(0, 1.42fr); align-items: start; gap: clamp(16px, 2.25vw, 42px); padding: clamp(24px, 2.4vw, 46px) 3.95%; background: #009fe7; color: #fff; line-height: 1.5; }
.ezi .ezi-footer-info a { color: #fff; text-decoration: none; }
.ezi .ezi-footer-info a:hover { text-decoration: underline; text-underline-offset: .2em; }
.ezi .ezi-footer-brand img { display: block; width: clamp(92px, 6.6vw, 125px); height: auto; margin-bottom: 6px; filter: brightness(0) invert(1); }
.ezi .ezi-footer-brand b { display: block; font-size: clamp(17px, 1.2vw, 22px); }
.ezi .ezi-footer-hours b { display: block; font-size: 1.18em; }
.ezi .ezi-footer-info p { margin: .4em 0 0; font-size: 15px; overflow-wrap: anywhere; }
.ezi .ezi-footer-links { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.ezi .ezi-footer-links a { font-weight: 700; }
.ezi .ezi-footer-certs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(10px, 1vw, 20px); margin: 0; padding: 0 0 0 clamp(14px, 2vw, 38px); list-style: none; border-left: 1px solid #ffffff66; }
.ezi .ezi-footer-certs a { display: flex; align-items: center; gap: clamp(8px, .7vw, 14px); min-width: 0; }
.ezi .ezi-footer-certs img { flex: none; width: clamp(34px, 3.15vw, 52px); height: auto; border-radius: 12% / 10%; }
.ezi .ezi-footer-certs img.is-iso { filter: url(#ezi-footer-cert-iso); }
.ezi .ezi-footer-certs img.is-white { background: #fff; }
.ezi .ezi-footer-certs b { display: block; font-weight: 700; }
.ezi .ezi-footer-certs small { display: block; margin-top: .15em; font-size: .92em; line-height: 1.35; }
.ezi .ezi-footer-bottom { padding: 14px 3.95% 16px; background: #333; color: #fff; font-size: 14px; text-align: center; line-height: 1.5; }
.ezi .ezi-footer-bottom p { margin: 0; }
@media (max-width: 900px) {
    .ezi .ezi-footer-info { grid-template-columns: repeat(2, minmax(0, 1fr)); padding-inline: 5%; }
    .ezi .ezi-footer-certs { grid-column: 1 / -1; padding: 16px 0 0; border-left: 0; border-top: 1px solid #ffffff66; }
}
@media (max-width: 540px) {
    .ezi .ezi-footer-info { grid-template-columns: 1fr; }
}


/* 頁尾：插畫長條平常收起來，按「相關網站」才從頁尾往上滑出來 */
.ezi .ezi-quote-drawer { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .55s ease; }
/* 長條貼著下緣，展開時從頁尾往上長出來；頁尾外框不給底色，展開途中才不會露出一塊深色 */
.ezi .ezi-page-footer:has(> .ezi-quote-drawer) { background: none; }
.ezi .ezi-quote-drawer-inner { display: flex; flex-direction: column; justify-content: flex-end; min-height: 0; overflow: hidden; visibility: hidden; transition: visibility 0s .55s; }
.ezi .is-open > .ezi-quote-drawer .ezi-quote-drawer-inner { visibility: visible; transition: none; }
.ezi .ezi-quote-drawer .ezi-quote-partner-banner { flex: none; opacity: 0; transition: opacity .45s ease; }
.ezi .is-open > .ezi-quote-drawer { grid-template-rows: 1fr; }
.ezi .is-open > .ezi-quote-drawer .ezi-quote-partner-banner { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .ezi .ezi-quote-drawer, .ezi .ezi-quote-drawer .ezi-quote-partner-banner { transition: none; } }
.ezi .ezi-footer-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.ezi .ezi-footer-related { display: inline-flex; align-items: center; justify-content: center; gap: .45em; min-height: 40px; padding: 0 18px; border-radius: 999px; font-size: 15px; font-weight: 700; line-height: 1; white-space: nowrap; cursor: pointer; }
/* 2026-11-28 負責人選深藍（配色選項 3）：和藍色頁尾底色對比明顯 */
.ezi .ezi-footer-related { border: 1px solid #0b2f6b; background: #0b2f6b; box-shadow: 0 2px 6px #00000026; color: #fff; }
.ezi .ezi-footer-related:hover { background: #0a275a; }
.ezi .ezi-footer-related svg { width: 12px; height: 8px; transition: rotate .3s; }
.ezi .is-open .ezi-footer-related svg { rotate: 180deg; }
.ezi .ezi-footer-related:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
/* 「網頁設計 藝誠科技」移到最下面的版權列 */
.ezi .ezi-footer-bottom .ezi-footer-credit { margin-left: 1.2em; }
.ezi .ezi-footer-bottom .ezi-footer-credit a { color: inherit; }

/* 右下角的回到最上方、電話、LINE（照舊頁尾 EZTRUST-001，行為在 EZTRUST-001.js） */
.ezt-ft__float { position: fixed; right: 20px; bottom: 70px; z-index: 999; display: flex; flex-direction: column; gap: 5px; }
.ezt-ft__float a { display: block; width: 50px; height: 50px; border-radius: 12px; overflow: hidden; transition: opacity 0.3s; }
.ezt-ft__float a:hover { opacity: 0.8; }
.ezt-ft__call { padding: 6px; background: #0086c8; }
.ezt-ft__line { background: #00c75c; }
/* 詢價（2026-11-30 負責人：頁尾的「免費諮詢」拿掉，改放這裡）：圖示加小字，橘色和其他按鈕分得開 */
.ezt-ft__float a.ezt-ft__inquiry { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; background: linear-gradient(145deg, #ff9a3c, #f0631b); box-shadow: 0 6px 16px rgba(240,99,27,.3); color: #fff; text-decoration: none; }
.ezt-ft__inquiry span { font-size: 11px; font-weight: 800; letter-spacing: .08em; line-height: 1; }
/* 手機上文章底部固定的詢價列（news-detail/EZTRUST-001 的 .ezs-stickycta）出現時已經有詢價，浮動的「詢價」先收起來 */
body.has-ezs-stickycta .ezt-ft__float a.ezt-ft__inquiry { display: none; }
.ezt-ft__float img { display: block; width: 100%; height: 100%; }
/* 回到最上方（2026-11-27）：往下捲超過一個畫面才出現 */
.ezt-ft__top { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; width: 50px; height: 50px; padding: 0; border: 0; border-radius: 12px; background: linear-gradient(145deg, #7957f2 0%, #b34fe0 50%, #ff3f8e 100%); color: #fff; cursor: pointer; box-shadow: 0 6px 16px rgba(121,87,242,.35); opacity: 0; transform: translateY(8px); pointer-events: none; transition: opacity .25s, transform .25s, box-shadow .25s; }
.ezt-ft__top span { font-size: 9.5px; font-weight: 800; letter-spacing: .12em; line-height: 1; }
.ezt-ft__top svg { transition: transform .25s; }
.ezt-ft__top[hidden] { display: none; }
.ezt-ft__top.is-shown { opacity: 1; transform: none; pointer-events: auto; }
.ezt-ft__top:hover { box-shadow: 0 10px 22px rgba(255,63,142,.4), 0 0 0 3px rgba(255,255,255,.6); }
.ezt-ft__top:hover svg { transform: translateY(-3px); }
.ezt-ft__top:focus-visible { outline: 3px solid #22c3e6; outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .ezt-ft__top, .ezt-ft__top svg { transition: none; } .ezt-ft__top:hover svg { transform: none; } }
@media (max-width: 575.98px) {
    .ezt-ft__float { right: 8px; bottom: 16px; }
    .ezt-ft__float a, .ezt-ft__top { width: 44px; height: 44px; }
}
