/* 藝誠官網上方選單（新版，2026-11-28）：視覺照負責人的提案（白底、深色字、下拉箭頭、圓角下拉、藍色膠囊按鈕）；class 和舊版 EZTRUST-001 相同 */
.ezt-hd { position: sticky; top: 0; z-index: 1000; background: #fff; font-family: Arial, "Noto Sans TC", "Microsoft JhengHei", sans-serif; box-shadow: 0 1px 0 #e3ebf4, 0 6px 18px #1734510a; }
.ezt-hd a { text-decoration: none; }
.ezt-hd ul { margin: 0; padding: 0; list-style: none; }
.ezt-hd__bar { display: flex; align-items: center; gap: 12px; height: 84px; max-width: 1920px; margin: 0 auto; padding: 0 clamp(16px, 3.2vw, 56px); }
.ezt-hd__logo { flex: none; }
.ezt-hd__logo img { display: block; width: 132px; height: auto; }
.ezt-hd__nav { display: flex; flex: 1; align-items: center; justify-content: flex-end; min-width: 0; }
.ezt-hd__main, .ezt-hd__util { display: flex; align-items: center; gap: 2px; }
.ezt-hd__util { margin-left: 2px; }
.ezt-hd__item { position: relative; }
.ezt-hd__top { display: flex; align-items: center; gap: .5em; min-height: 42px; padding: 0 .8em; border-radius: 8px; color: #08172f !important; white-space: nowrap; transition: background .15s, color .15s; }
.ezt-hd__top b { font-size: 15px; font-weight: 700; letter-spacing: .02em; }
.ezt-hd__top small { display: none; }
.ezt-hd__top[aria-haspopup="true"]::after { content: ""; width: .42em; height: .42em; margin-top: -.24em; border: solid currentColor; border-width: 0 1.5px 1.5px 0; opacity: .6; transform: rotate(45deg); }
/* 2026-11-28 負責人：點了之後選單不會收回、會有兩個藍底 → 只有滑鼠移過（或用鍵盤移到）的那一項有藍底；目前所在的單元只把字變藍 */
.ezt-hd__item:hover > .ezt-hd__top, .ezt-hd__item:has(:focus-visible) > .ezt-hd__top { background: #e9f2f9; color: #075e91 !important; }
.ezt-hd__item.is-active > .ezt-hd__top { color: #075e91 !important; }
.ezt-hd__item--util .ezt-hd__top b { font-size: 15px; }
/* 下拉：滑過或用鍵盤移到時往下滑開（點過不會一直開著）；上面留一段透明的空間，滑鼠移過去不會斷掉 */
.ezt-hd__drop { position: absolute; top: 100%; left: 0; visibility: hidden; min-width: max(100%, 11em); padding: 14px 6px 6px; background: transparent; opacity: 0; clip-path: inset(0 -30px 100% -30px); transition: clip-path .28s ease, opacity .2s ease, visibility 0s .28s; }
.ezt-hd__drop::before { content: ""; position: absolute; inset: 8px 0 0; z-index: -1; border: 1px solid #e0eaf3; border-radius: 10px; background: #fff; box-shadow: 0 10px 24px #1734511f; }
.ezt-hd__item:hover > .ezt-hd__drop, .ezt-hd__item:has(:focus-visible) > .ezt-hd__drop { visibility: visible; opacity: 1; clip-path: inset(0 -30px -40px -30px); transition: clip-path .32s ease, opacity .2s ease; }
@media (prefers-reduced-motion: reduce) { .ezt-hd__drop { transition: none !important; } }
.ezt-hd__item:nth-last-child(-n + 2) > .ezt-hd__drop { left: auto; right: 0; }
.ezt-hd__link { display: block; padding: 9px 14px; border-radius: 6px; color: #2c3d55 !important; font-size: 14px; line-height: 1.4; white-space: nowrap; }
.ezt-hd__link:hover, .ezt-hd__link.is-current { background: #e9f2f9; color: #075e91 !important; }
.ezt-hd__group { display: block; padding: 10px 14px 4px; color: #6b7c93; font-size: 12px; font-weight: 700; letter-spacing: .08em; }
.ezt-hd__group ~ .ezt-hd__group { margin-top: 6px; border-top: 1px solid #edf2f8; padding-top: 12px; }
/* 作品專區（白底藍框）、免費詢價（藍色） */
.ezt-hd__cta { display: flex; flex: none; gap: 8px; margin-left: 10px; }
.ezt-hd__btn { display: inline-flex; gap: .4em; align-items: center; min-height: 40px; padding: 0 1.1em; border: 1px solid #1d78d6; border-radius: 999px; font-size: 15px; font-weight: 700; white-space: nowrap; transition: filter .2s, background .2s; }
.ezt-hd__btn i { font-size: 17px; line-height: 1; }
.ezt-hd__btn--portfolio { background: #fff; color: #0b5bd3 !important; }
.ezt-hd__btn--portfolio:hover { background: #eaf3ff; }
.ezt-hd__btn--inquiry { border-color: transparent; background: linear-gradient(90deg, #1877e6, #0b5bd3); color: #fff !important; box-shadow: 0 6px 14px #0b5bd333; }
.ezt-hd__btn--inquiry:hover { filter: brightness(1.08); }
.ezt-hd__toggle { display: none; }
/* 首頁左上角的「快速了解藝誠」 */
.ezt-hd__quick { position: absolute; top: 96px; left: 15px; z-index: 20; display: flex; gap: 10px; align-items: center; height: 40px; padding-right: 14px; border-radius: 4px; background: #272727; color: #fff !important; text-decoration: none; }
.ezt-hd__quick img { width: 40px; height: 40px; }
.ezt-hd__quick b { font-size: 16px; font-weight: 400; }
.ezt-hd__quick span { font-size: 12px; opacity: .85; }

/* 小筆電：字與間距縮一點，一列放得下 */
@media (max-width: 1440px) {
    .ezt-hd__top { padding: 0 .55em; }
    .ezt-hd__top b, .ezt-hd__item--util .ezt-hd__top b { font-size: 14px; }
    .ezt-hd__btn { padding: 0 .9em; font-size: 14px; }
}

/* 平板、手機：收成選單按鈕 */
@media (max-width: 1199.98px) {
    .ezt-hd__bar { height: 68px; }
    .ezt-hd__logo img { width: 104px; }
    .ezt-hd__nav { position: fixed; top: 68px; right: 0; bottom: 0; left: 0; display: none; flex-direction: column; justify-content: flex-start; align-items: stretch; overflow-y: auto; padding: 8px 0 40px; background: #fff; }
    .ezt-hd.is-open .ezt-hd__nav { display: flex; }
    .ezt-hd__main, .ezt-hd__util { display: block; width: 100%; margin: 0; }
    .ezt-hd__top { justify-content: space-between; min-height: 0; padding: 14px 20px; border-bottom: 1px solid #eef2f7; border-radius: 0; }
    .ezt-hd__top b, .ezt-hd__item--util .ezt-hd__top b { font-size: 16px; }
    .ezt-hd__drop, .ezt-hd__item:hover > .ezt-hd__drop, .ezt-hd__item:has(:focus-visible) > .ezt-hd__drop { position: static; display: none; visibility: visible; opacity: 1; clip-path: none; transition: none; min-width: 0; padding: 4px 12px 8px; background: #f6f9fd; }
    .ezt-hd__drop::before { display: none; }
    .ezt-hd__item.is-open > .ezt-hd__drop { display: block; }
    .ezt-hd__link { padding: 10px 20px; }
    .ezt-hd__cta { margin-left: auto; }
    .ezt-hd__toggle { display: flex; flex: none; flex-direction: column; gap: 5px; align-items: center; justify-content: center; width: 44px; height: 44px; border: 0; background: none; }
    .ezt-hd__toggle span { display: block; width: 24px; height: 2px; background: #08172f; transition: transform .2s, opacity .2s; }
    .ezt-hd.is-open .ezt-hd__toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .ezt-hd.is-open .ezt-hd__toggle span:nth-child(2) { opacity: 0; }
    .ezt-hd.is-open .ezt-hd__toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
    .ezt-hd__quick { top: 78px; left: 10px; }
}

/* 手機：上方 56px；兩個按鈕縮成圖示＋短字 */
@media (max-width: 767.98px) {
    .ezt-hd__bar { height: 56px; gap: 6px; padding: 0 10px 0 14px; }
    .ezt-hd__logo img { width: 84px; }
    .ezt-hd__nav { top: 56px; }
    .ezt-hd__cta { gap: 6px; }
    .ezt-hd__btn { min-height: 34px; padding: 0 .75em; font-size: 13px; }
    .ezt-hd__btn--portfolio i { display: none; }
    .ezt-hd__quick { position: static; flex-wrap: wrap; gap: 0 8px; width: 100%; height: auto; padding: 4px 10px 4px 0; border-radius: 0; }
    .ezt-hd__quick img { width: 32px; height: 32px; margin-left: 4px; }
    .ezt-hd__quick b { font-size: 14px; }
    .ezt-hd__quick span { display: block; flex-basis: calc(100% - 50px); margin-left: 42px; margin-top: -6px; font-size: 11px; }
}
@media (max-width: 380px) {
    .ezt-hd__btn--portfolio { display: none; }
}

/* 單元的文章版型（ezart--corporate）主色照官網首頁的藍：舊版選單的 CSS 有這一段（全站都會載入），換成新版選單照樣要有 */
body .ezart.ezart--corporate {
    --ezart-ink: #0c2349;
    --ezart-accent: #005ce0;
    --ezart-accent-dark: #0047b0;
    --ezart-gold: #005ce0;
}
