/* 藝誠官網首頁輪播的「AI 智慧型網站」主視覺（banner/EZTRUST-002，2026-11-30 負責人：版型和藍色主視覺一樣，文字、右邊兩個方案、黃色按鈕照舊官網首頁）。
   照舊官網 www.eztrust.com.tw 的 /css/homepage_ai_banner.css：拿掉機器人打字、眨眼、對話泡泡、螢幕掃光（舊官網的圖是另一張），
   和圖上方透明處的位移；新的圖是 5000+ 案例圖加 EZ小幫手（hero-ai-robot.webp）。只有輪播裡有這則廣告時才載入 */
.ht-hero-test-banner .ht-hero-art img {
    max-width: 100%;
    height: auto;
}

.ht-hero-test-banner .ht-robot-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    text-decoration: none;
}

.ht-hero-test-banner .ht-robot-link:focus-visible {
    outline: 2px solid #ffeb68;
    outline-offset: 4px;
    border-radius: 16px;
}

.ht-hero-test-banner .ht-robot-cta {
    position: relative;
    isolation: isolate;
    margin-top: clamp(-52px, -2.7vw, -12px);
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr) 36px;
    align-items: center;
    gap: clamp(8px, 1vw, 16px);
    width: min(100%, 460px);
    min-height: 88px;
    padding: 24px clamp(10px, 1vw, 18px);
    border: 2px solid #fff2a8;
    border-bottom-color: #eab439;
    border-radius: 999px;
    background: linear-gradient(180deg, #fff6be 0%, #ffeb68 47%, #ffc744 100%);
    color: #073b73;
    box-shadow: inset 0 2px 0 #fff9dc, 0 6px 0 #db941c, 0 10px 0 #9d5b12, 0 15px 22px #002c6570;
    font-size: clamp(17px, 1.25vw, 24px);
    font-weight: 800;
    line-height: 1.25;
    text-align: center;
}

.ht-hero-test-banner .ht-robot-cta::before,
.ht-hero-test-banner .ht-hero-option > span::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 0;
    border-radius: inherit;
    opacity: 0;
    pointer-events: none;
}

.ht-hero-test-banner .ht-robot-cta::before {
    background: linear-gradient(180deg, #ff8b68, #ff6b4d);
}

.ht-hero-test-banner .ht-robot-cta-icon {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border: 1px solid #e55c40;
    border-radius: 12px;
    background: linear-gradient(180deg, #ff9d7b, #ff704f);
    color: #fff;
    box-shadow: inset 0 1px 0 #ffd4bf, 0 2px 0 #b7452e;
}

.ht-hero-test-banner .ht-robot-cta-label {
    white-space: nowrap;
}

.ht-hero-test-banner .ht-robot-link:hover .ht-robot-cta,
.ht-hero-test-banner .ht-robot-link:focus-visible .ht-robot-cta {
    border-color: #ffc2a6;
    color: #fff;
    box-shadow: inset 0 2px 0 #ffffff66, 0 6px 0 #d94b32, 0 10px 0 #96301f, 0 0 24px #ff805b80;
}

.ht-hero-test-banner .ht-robot-link:hover .ht-robot-cta-icon,
.ht-hero-test-banner .ht-robot-link:focus-visible .ht-robot-cta-icon {
    border-color: #ffc2a6;
    background: #fff0e7;
    color: #8b301f;
    box-shadow: inset 0 1px 0 #ffffff80, 0 2px 0 #b23e2b;
}

.ht-hero-test-banner .ht-hero-copy > .ht-hero-kicker {
    margin-bottom: 8px !important;
    font-size: clamp(13px, 1.2vw, 20px);
    font-weight: 400;
    line-height: inherit;
    letter-spacing: .06em;
    text-shadow: none;
}

.ht-hero-test-banner .ht-hero-copy > .ht-hero-slogan {
    margin-bottom: 0;
    font-size: clamp(32px, 3.7vw, 74px);
    line-height: 1.19;
    letter-spacing: -.055em;
    font-weight: 900;
    text-shadow: 0 0 1px rgb(0 0 0 / .5), 0 0 30px rgb(197 242 255 / .8);
}

.ht-hero-test-banner .ht-hero-slogan span {
    color: #ffeb68;
}

.ht-hero-test-banner .ht-hero-slogan .ht-hero-slogan-ai {
    display: inline-block;
    padding: 0 5px 6px 10px;
    border: 2px solid #06abd6;
    outline: 2px solid #fff;
    border-radius: 15px;
    background-color: #fff;
    box-shadow: 0 0 1px rgb(0 0 0 / .5), 0 0 30px rgb(197 242 255 / .8);
    color: #11afd9;
    text-align: center;
    text-shadow: none;
    line-height: .9;
    letter-spacing: 2px;
    transform: translateY(.055em) scaleY(1.16);
    transform-origin: center 82%;
}

.ht-hero-test-banner .ht-hero-copy > h2 {
    margin: 12px 0 0;
    font-size: clamp(18px, 1.5vw, 30px);
    font-weight: 750;
    line-height: 1.35;
    letter-spacing: normal;
    white-space: normal;
}

.homepage-test2 .ht-hero-test-banner .ht-hero-features {
    margin: clamp(20px, 2.2vw, 42px) 0 0;
    gap: clamp(10px, 1.05vw, 20px);
    line-height: 1.5;
    letter-spacing: normal;
}

.ht-hero-test-banner .ht-hero-features li {
    gap: 12px;
}

.ht-hero-test-banner .ht-hero-features strong {
    display: block;
    font-size: clamp(16px, 1vw, 21px);
}

.ht-hero-test-banner .ht-hero-features p {
    margin: 0;
    font-size: clamp(16px, .92vw, 19px);
    line-height: 1.5;
}

@media (max-width: 1050px) {
    .ht-hero-test-banner .ht-hero-copy > .ht-hero-slogan {
        font-size: clamp(30px, 4.7vw, 50px);
    }
}

@media (max-width: 600px) {
    .ht-hero-test-banner .ht-hero-copy > .ht-hero-kicker {
        font-size: 12px;
    }
    .ht-hero-test-banner .ht-hero-copy > .ht-hero-slogan {
        font-size: clamp(28px, 8.1vw, 46px);
    }
    .ht-hero-test-banner .ht-hero-slogan .ht-hero-slogan-ai {
        padding: 0 .08em .08em .16em;
        border-width: 1px;
        outline-width: 1px;
        border-radius: .24em;
    }
    .ht-hero-test-banner .ht-hero-copy > h2 {
        font-size: 1.1rem;
    }
    .homepage-test2 .ht-hero-test-banner .ht-hero-features {
        margin-top: 18px;
    }
}

.ht-hero-test-banner .ht-hero-features i {
    color: #f1edff;
    border-color: rgba(209, 194, 255, 0.45);
    background: rgba(209, 194, 255, 0.14);
    font-size: 22px;
    line-height: 1;
}

.ht-hero-test-banner .ht-hero-features svg {
    width: 22px;
    height: 22px;
}

.homepage-test2 .ht-hero-test-banner .ht-hero-option h2,
.homepage-test2 .ht-hero-test-banner .ht-hero-option p {
    white-space: normal;
}

.homepage-test2 .ht-hero-test-banner .ht-hero-option h2 {
    font-size: clamp(18px, 10cqi, 36px);
}

.ht-hero-test-banner .ht-hero-option-price {
    color: #ffeb68;
    font-style: normal;
    white-space: nowrap;
}

.homepage-test2 .ht-hero-test-banner .ht-hero-option p {
    font-size: 15px;
    line-height: 1.5;
}

.ht-hero-test-banner .ht-hero-option {
    --ht-option-accent: #abedff;
}

.ht-hero-test-banner .ht-hero-option.ht-teal {
    --ht-option-accent: #a3fff1;
}

.ht-hero-test-banner .ht-hero-option:is(:hover, :focus-visible) {
    border-color: var(--ht-option-accent);
    box-shadow: 0 0 20px #81e8ff55, inset 0 0 24px #81e8ff33;
}

.ht-hero-test-banner .ht-hero-option:is(:hover, :focus-visible) > span {
    border-color: var(--ht-option-accent);
    color: #073b60;
}

.ht-hero-test-banner .ht-hero-option > span {
    position: relative;
    isolation: isolate;
}

.ht-hero-test-banner .ht-hero-option > span::before {
    background: var(--ht-option-accent);
}

.ht-hero-test-banner .ht-robot-link:is(:hover, :focus-visible) .ht-robot-cta::before,
.ht-hero-test-banner .ht-hero-option:is(:hover, :focus-visible) > span::before {
    opacity: 1;
}

@media (prefers-reduced-motion: no-preference) {
    .ht-hero-test-banner .ht-robot-cta,
    .ht-hero-test-banner .ht-robot-cta-icon,
    .ht-hero-test-banner .ht-hero-option,
    .ht-hero-test-banner .ht-hero-option > span {
        transition: color .25s ease, border-color .25s ease, box-shadow .25s ease;
    }
    .ht-hero-test-banner .ht-robot-cta::before,
    .ht-hero-test-banner .ht-hero-option > span::before {
        transition: opacity .25s ease;
    }
}

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
    .ht-hero-test-banner .ht-hero-option {
        transition: color .25s ease, border-color .25s ease, box-shadow .25s ease, transform .25s ease;
    }
    .ht-hero-test-banner .ht-hero-option:hover {
        transform: translateY(-4px);
    }
}

.ht-hero-test-banner .ht-hero-option:focus-visible {
    outline: 2px solid var(--ht-option-accent);
    outline-offset: 3px;
}

@media (min-width: 1100px) {
    .homepage-test2 .ht-hero-test-banner {
        padding-inline: max(var(--ht-content-gutter), (100% - 1456px) / 2);
        grid-template-columns: minmax(0, 1fr) minmax(0, 22%);
    }
    .homepage-test2 .ht-hero-test-banner .ht-hero-features {
        margin-top: clamp(20px, 1.6vw, 30px);
        gap: clamp(10px, .85vw, 16px);
    }
}

@media (min-width: 1251px) {
    .homepage-test2 .ht-hero-test-banner {
        min-height: 740px;
        padding-bottom: 36px;
    }
    .ht-hero-test-banner .ht-hero-options {
        gap: 16px;
    }
    .ht-hero-test-banner .ht-hero-option {
        padding-block: 16px;
    }
    .homepage-test2 .ht-hero-test-banner .ht-hero-option img {
        max-height: 132px;
        margin-bottom: 8px;
    }
}

@media (min-width: 1500px) {
    .ht-hero-test-banner .ht-hero-main {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        padding-right: 40px;
    }
}

@media (min-width: 1100px) and (max-width: 1499px) {
    .homepage-test2 .ht-hero-test-banner {
        min-height: 650px;
        padding-bottom: 28px;
        grid-template-columns: minmax(0, 1fr) minmax(0, 24%);
    }
    .ht-hero-test-banner .ht-hero-option {
        padding-block: 12px;
    }
    .homepage-test2 .ht-hero-test-banner .ht-hero-option img {
        max-height: 108px;
        margin-bottom: 6px;
    }
}

@media (max-width: 1499px) {
    .ht-hero-test-banner .ht-robot-cta {
        min-height: 64px;
        padding-block: 12px;
    }
    .ht-hero-test-banner .ht-hero-option > span {
        font-size: 16px;
    }
}

@media (max-width: 1099px) {
    .homepage-test2 .ht-hero-test-banner {
        grid-template-columns: minmax(0, 1fr);
        min-height: 0;
        padding-bottom: 32px;
    }
    .ht-hero-test-banner .ht-hero-main {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        padding-right: 0;
    }
    .ht-hero-test-banner .ht-hero-options {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
        margin-top: 16px;
        padding-left: 0;
        border-left: 0;
    }
    .homepage-test2 .ht-hero-test-banner .ht-hero-option img {
        max-height: 108px;
    }
}

@media (max-width: 600px) {
    .ht-hero-test-banner .ht-hero-main,
    .ht-hero-test-banner .ht-hero-options {
        grid-template-columns: minmax(0, 1fr);
    }
    .ht-hero-test-banner .ht-hero-copy {
        padding-bottom: 12px;
    }
    .ht-hero-test-banner .ht-hero-art {
        /* Offset the transparent top of the square artwork. */
        margin-top: clamp(-44px, -9vw, -26px);
    }
    .ht-hero-test-banner .ht-hero-options {
        margin-top: 32px;
    }
    .ht-hero-test-banner .ht-hero-copy > h2 {
        font-size: 18px;
    }
}

@media (max-width: 375px) {
    .ht-hero-test-banner .ht-robot-cta {
        grid-template-columns: 28px minmax(0, 1fr) 28px;
        gap: 6px;
        padding-inline: 8px;
        font-size: 15px;
    }
    .ht-hero-test-banner .ht-robot-cta-icon {
        width: 28px;
        height: 28px;
        border-radius: 9px;
    }
}

.ht-hero-test-banner {
    --ht-card-entry-distance: 24px;
    --ht-banner-fade-duration: 1s;
    --ht-banner-fade-easing: cubic-bezier(.22, 1, .36, 1);
    --ht-banner-last-fade-delay: .25s;
    --ht-banner-effects-delay: calc(var(--ht-banner-fade-duration) + var(--ht-banner-last-fade-delay));
}

@media (max-width: 600px) {
    .ht-hero-test-banner {
        --ht-card-entry-distance: 8px;
    }
}

@media (prefers-reduced-motion: no-preference) {
    .ht-hero-test-banner .ht-hero-copy {
        animation: ht-banner-fade-in var(--ht-banner-fade-duration) var(--ht-banner-fade-easing) backwards;
    }
    .ht-hero-test-banner .ht-hero-art {
        animation: ht-banner-fade-in var(--ht-banner-fade-duration) .12s var(--ht-banner-fade-easing) backwards;
    }
    .ht-hero-test-banner .ht-hero-slogan-ai {
        animation: ht-banner-ai-press .55s var(--ht-banner-effects-delay) ease-out;
    }
    .ht-hero-test-banner .ht-hero-option {
        --ht-card-fade-delay: .18s;
        --ht-card-entry-delay: .35s;
        animation: ht-banner-fade-in var(--ht-banner-fade-duration) var(--ht-card-fade-delay) var(--ht-banner-fade-easing) backwards,
            ht-banner-card-slide .45s calc(var(--ht-banner-effects-delay) + var(--ht-card-entry-delay)) ease-out;
    }
    .ht-hero-test-banner .ht-hero-option + .ht-hero-option {
        --ht-card-fade-delay: var(--ht-banner-last-fade-delay);
        --ht-card-entry-delay: .47s;
    }
    .ht-hero-test-banner .ht-hero-option > span {
        animation: ht-banner-card-glint .4s calc(var(--ht-banner-effects-delay) + var(--ht-card-entry-delay) + .42s) ease-out;
    }
}

@keyframes ht-banner-fade-in {
    from { opacity: 0; translate: 0 20px; }
    to { opacity: 1; translate: 0 0; }
}

@keyframes ht-banner-ai-press {
    0%, 100% { scale: 1; }
    35% { scale: .94; }
    64% {
        scale: 1.04;
        box-shadow: 0 0 0 4px #a5f4ff80, 0 0 34px #c5f2ff;
    }
}

@keyframes ht-banner-card-slide {
    0%, 100% { translate: 0 0; }
    28% { translate: var(--ht-card-entry-distance) 0; }
}

@keyframes ht-banner-card-glint {
    0%, 100% { filter: brightness(1); }
    45% { filter: brightness(1.32); }
}

/* 新官網的調整：圖和藍色主視覺一樣高，按鈕壓在圖的下緣 */
.ht-hero-test-banner .ht-robot-link img { width: auto; max-height: min(560px, 60vh); }
.ht-hero-test-banner .ht-robot-cta { margin-top: clamp(-30px, -1.6vw, -10px); }
@media (max-width: 1099px) { .ht-hero-test-banner .ht-robot-link img { max-height: 420px; } }
/* 手機：舊官網的圖上方有透明處所以往上拉，新圖沒有，不往上拉（否則壓到第三個重點）；下面留控制列的位置 */
@media (max-width: 600px) { .ht-hero-test-banner .ht-hero-art { margin-top: 8px; } }
@media (max-width: 767px) { .homepage-test2 .ht-hero-test-banner { padding-bottom: 76px; } }
/* 2026-11-30 負責人：中間的圖往左、往上移一點（電腦） */
@media (min-width: 1100px) { .ht-hero-test-banner .ht-robot-link { translate: clamp(-70px, -3.6vw, -30px) clamp(-40px, -2vw, -16px); } }
