html {
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Inter', 'Noto Sans TC', sans-serif;
    background-color: #fcfcfc;
    color: #1e293b;
    line-height: 1.7;
}

:lang(zh-TW) body {
    line-height: 1.8;
}

h1, h2, h3, h4 {
    text-wrap: balance;
}

.home-headline {
    white-space: nowrap;
    text-wrap: nowrap;
    line-height: 1.25;
    font-size: clamp(1rem, 4.8vw, 3.75rem);
}

:lang(zh-TW) .home-headline {
    letter-spacing: 0.01em;
}

:lang(en) .home-headline {
    white-space: normal;
    text-wrap: wrap;
    letter-spacing: -0.02em;
    font-size: clamp(1.35rem, 4.2vw, 3.25rem);
}

p, li {
    text-wrap: pretty;
}

:lang(zh-TW) h1,
:lang(zh-TW) h2,
:lang(zh-TW) h3 {
    letter-spacing: 0.04em;
    line-height: 1.35;
}

:lang(en) h1,
:lang(en) h2,
:lang(en) h3 {
    letter-spacing: -0.02em;
    line-height: 1.22;
}

:lang(zh-TW) p,
:lang(zh-TW) li,
:lang(zh-TW) td {
    line-height: 1.85;
    letter-spacing: 0.015em;
}

:lang(en) p,
:lang(en) li,
:lang(en) td {
    line-height: 1.7;
}

:lang(zh-TW) .tracking-tight {
    letter-spacing: 0.03em;
}

.brand-lockup {
    display: flex;
    align-items: center;
    min-width: 0;
    width: 100%;
    gap: 0.5rem;
    font-size: 1.35rem;
}

.brand-lockup__mark {
    flex-shrink: 0;
    display: block;
    height: 1em;
    width: auto;
    max-width: none;
    object-fit: contain;
}

.brand-lockup__text {
    display: block;
    min-width: 0;
    flex: 1 1 auto;
    line-height: 1;
}

.brand-lockup__zh {
    display: block;
    font-weight: 800;
    font-style: italic;
    font-size: 1em;
    letter-spacing: 0.04em;
    white-space: nowrap;
    line-height: 1;
}

@media (min-width: 640px) {
    .brand-lockup {
        gap: 0.625rem;
        font-size: 1.6rem;
    }
}

@media (min-width: 768px) {
    .brand-lockup {
        width: auto;
        font-size: 1.75rem;
    }
}

.glass-panel {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(230, 57, 70, 0.12);
    position: relative;
}

.glass-nav {
    background: #ffffff;
    border-bottom: 1px solid rgba(230, 57, 70, 0.12);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 1);
    transform: translateZ(0);
    backface-visibility: hidden;
}

.nav-dropdown__menu {
    position: absolute;
    top: calc(100% - 0.25rem);
    left: 50%;
    transform: translateX(-50%) translateY(0.35rem);
    min-width: 12.75rem;
    padding: 0.4rem;
    background: #ffffff;
    border: 1px solid rgba(230, 57, 70, 0.12);
    border-radius: 0.9rem;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s ease;
    z-index: 60;
}

.nav-dropdown__menu::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: -0.85rem;
    height: 0.85rem;
}

.nav-dropdown:hover .nav-dropdown__menu,
.nav-dropdown:focus-within .nav-dropdown__menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0.15rem);
}

.nav-dropdown__link {
    display: block;
    padding: 0.55rem 0.75rem;
    border-radius: 0.6rem;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: #475569;
    white-space: nowrap;
}

.nav-dropdown__link:hover,
.nav-dropdown__link.is-active {
    color: #d62828;
    background: #fff5f5;
}

.hero-banner {
    position: relative;
    width: 100%;
    margin-top: 4.75rem;
    aspect-ratio: 1080 / 1350;
    min-height: 280px;
    max-height: calc(100svh - 4.75rem);
    overflow: hidden;
    background: #fff5f7;
}

.hero-banner-video {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    object-fit: contain !important;
    object-position: center center !important;
    z-index: 1;
    background: #fff5f7;
}

.hero-banner-video--desktop {
    display: none !important;
}

.hero-banner-video--mobile {
    display: block !important;
}

@media (min-width: 768px) {
    .hero-banner {
        margin-top: 5rem;
        aspect-ratio: 1920 / 800;
        min-height: 220px;
        max-height: 85svh;
    }

    .hero-banner-video--desktop {
        display: block !important;
    }

    .hero-banner-video--mobile {
        display: none !important;
    }
}

.text-gradient-red {
    background: linear-gradient(120deg, #e63946 0%, #d62828 38%, #fb7185 62%, #ba181b 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradient-shift 7s ease-in-out infinite;
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #fff5f5;
}

::-webkit-scrollbar-thumb {
    background: #e63946;
    border-radius: 4px;
}

.hp-field {
    position: absolute;
    left: -9999px;
    opacity: 0;
    height: 0;
    width: 0;
    overflow: hidden;
}

.ai-atmosphere {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.ai-grid {
    position: absolute;
    inset: -10%;
    background-image:
        linear-gradient(rgba(230, 57, 70, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(230, 57, 70, 0.045) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.55), transparent 78%);
    animation: grid-drift 28s linear infinite;
}

.ai-scan {
    position: absolute;
    left: 0;
    right: 0;
    height: 140px;
    background: linear-gradient(
        to bottom,
        transparent,
        rgba(230, 57, 70, 0.045),
        rgba(251, 113, 133, 0.08),
        rgba(230, 57, 70, 0.04),
        transparent
    );
    animation: scan-sweep 9s ease-in-out infinite;
}

.ai-orb {
    position: absolute;
    border-radius: 999px;
    filter: blur(70px);
    opacity: 0.45;
}

.ai-orb-a {
    width: 420px;
    height: 420px;
    top: 8%;
    right: -8%;
    background: radial-gradient(circle, rgba(230, 57, 70, 0.28), transparent 68%);
    animation: orb-float 16s ease-in-out infinite;
}

.ai-orb-b {
    width: 340px;
    height: 340px;
    bottom: 6%;
    left: -6%;
    background: radial-gradient(circle, rgba(186, 24, 27, 0.18), transparent 70%);
    animation: orb-float 21s ease-in-out infinite reverse;
}

.hero-orb {
    animation: orb-float 18s ease-in-out infinite;
}

header,
main,
footer {
    position: relative;
    z-index: 1;
}

.reveal {
    opacity: 0;
    transform: translate3d(0, 40px, 0) scale(0.98);
    filter: blur(10px);
    transition:
        opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1) var(--reveal-delay, 0ms),
        transform 0.9s cubic-bezier(0.16, 1, 0.3, 1) var(--reveal-delay, 0ms),
        filter 0.9s cubic-bezier(0.16, 1, 0.3, 1) var(--reveal-delay, 0ms);
    will-change: opacity, transform, filter;
}

.reveal.is-in {
    opacity: 1;
    transform: none;
    filter: none;
}

.reveal-left {
    transform: translate3d(-36px, 18px, 0) scale(0.98);
}

.reveal-right {
    transform: translate3d(36px, 18px, 0) scale(0.98);
}

.reveal-scale {
    transform: translate3d(0, 16px, 0) scale(0.94);
}

.reveal.is-in {
    will-change: auto;
}

.reveal-line {
    position: relative;
}

.reveal-line::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -10px;
    height: 1px;
    width: 0;
    background: linear-gradient(90deg, #e63946, rgba(251, 113, 133, 0.1));
    box-shadow: 0 0 12px rgba(230, 57, 70, 0.45);
    transition: width 1s cubic-bezier(0.16, 1, 0.3, 1) calc(var(--reveal-delay, 0ms) + 180ms);
}

.reveal-line.is-in::after {
    width: min(180px, 40%);
}

.pulse-core {
    box-shadow: 0 0 0 0 rgba(230, 57, 70, 0.35);
    animation: pulse-ring 2.8s ease-out infinite;
}

.stat-count {
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum";
    letter-spacing: 0.01em;
    white-space: nowrap;
}

.stat-count.is-done {
    animation: stat-pop 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes gradient-shift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

@keyframes grid-drift {
    to { transform: translate3d(56px, 56px, 0); }
}

@keyframes scan-sweep {
    0% { top: -20%; opacity: 0; }
    12% { opacity: 1; }
    88% { opacity: 1; }
    100% { top: 110%; opacity: 0; }
}

@keyframes orb-float {
    0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
    50% { transform: translate3d(-24px, 18px, 0) scale(1.08); }
}

@keyframes pulse-ring {
    0% { box-shadow: 0 0 0 0 rgba(230, 57, 70, 0.35); }
    70% { box-shadow: 0 0 0 14px rgba(230, 57, 70, 0); }
    100% { box-shadow: 0 0 0 0 rgba(230, 57, 70, 0); }
}

@keyframes stat-pop {
    0% { transform: scale(1); }
    40% { transform: scale(1.06); }
    100% { transform: scale(1); }
}

.image-zoom-trigger {
    cursor: zoom-in;
    overflow: hidden;
    transition: box-shadow 0.3s ease, transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.image-zoom-trigger img {
    transform-origin: center center;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.image-zoom-trigger:hover,
.image-zoom-trigger:focus-visible {
    box-shadow: 0 12px 28px -12px rgba(15, 23, 42, 0.22);
}

.image-zoom-trigger:hover img,
.image-zoom-trigger:focus-visible img {
    transform: scale(1.08);
}

.image-zoom-trigger:active img {
    transform: scale(1.12);
}

body.image-zoom-open {
    overflow: hidden;
}

.image-zoom-overlay {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
}

.image-zoom-overlay[hidden] {
    display: none;
}

.image-zoom-overlay__backdrop {
    position: absolute;
    inset: 0;
    border: 0;
    padding: 0;
    cursor: zoom-out;
    background: rgba(15, 23, 42, 0.58);
    opacity: 0;
    transition: opacity 0.22s ease;
}

.image-zoom-overlay.is-open .image-zoom-overlay__backdrop {
    opacity: 1;
}

.image-zoom-overlay__panel {
    position: relative;
    z-index: 1;
    max-width: min(92vw, 72rem);
    max-height: 88vh;
    transform: scale(0.96);
    opacity: 0;
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.22s ease;
}

.image-zoom-overlay.is-open .image-zoom-overlay__panel {
    transform: scale(1);
    opacity: 1;
}

.image-zoom-overlay__img {
    display: block;
    width: auto;
    height: auto;
    max-width: min(92vw, 72rem);
    max-height: 88vh;
    object-fit: contain;
    border-radius: 1rem;
    background: #f4f8fc;
    box-shadow: 0 24px 60px -20px rgba(15, 23, 42, 0.45);
    cursor: zoom-out;
}

.image-zoom-overlay__close {
    position: absolute;
    top: -0.65rem;
    right: -0.65rem;
    z-index: 2;
    width: 2.25rem;
    height: 2.25rem;
    border: 0;
    border-radius: 999px;
    background: #fff;
    color: #0f172a;
    box-shadow: 0 8px 20px -8px rgba(15, 23, 42, 0.45);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.image-zoom-overlay__close:hover,
.image-zoom-overlay__close:focus-visible {
    background: #e63946;
    color: #fff;
    outline: none;
}

.home-service-icon {
    display: block;
    filter: drop-shadow(0 10px 16px rgba(15, 23, 42, 0.12));
}

.footer-brand,
.about-brand {
    display: flex;
    align-items: center;
}

.footer-brand .brand-lockup,
.about-brand .brand-lockup {
    width: auto;
}

.scene-icon {
    animation: scene-bob 2.8s ease-in-out infinite;
    transform-origin: 50% 60%;
}

.scene-icon--b {
    animation-delay: 0.35s;
}

.scene-icon--c {
    animation-delay: 0.7s;
}

.scene-icon--d {
    animation-delay: 1.05s;
}

@keyframes scene-bob {
    0%, 100% { transform: translateY(0) rotate(-6deg) scale(1); }
    50% { transform: translateY(-7px) rotate(6deg) scale(1.06); }
}

@media (prefers-reduced-motion: reduce) {
    .ai-grid,
    .ai-scan,
    .ai-orb,
    .hero-orb,
    .text-gradient-red,
    .pulse-core,
    .scene-icon {
        animation: none !important;
    }

    .reveal,
    .reveal-left,
    .reveal-right,
    .reveal-scale {
        opacity: 1 !important;
        transform: none !important;
        filter: none !important;
        transition: none !important;
    }

    .reveal-line::after {
        width: 120px;
        transition: none !important;
    }

    .stat-count.is-done {
        animation: none !important;
    }

    .image-zoom-trigger,
    .image-zoom-trigger img,
    .image-zoom-overlay__backdrop,
    .image-zoom-overlay__panel {
        transition: none !important;
    }

    .image-zoom-trigger:hover img,
    .image-zoom-trigger:focus-visible img,
    .image-zoom-trigger:active img {
        transform: none !important;
    }
}

/* Centered headings: keep the reveal underline centered under the text */
.text-center > .reveal-line::after,
.reveal-line.text-center::after {
    left: 50%;
    transform: translateX(-50%);
}

/* Inner pages (theme-tech): blue tech accents instead of red */
.theme-tech .reveal-line::after {
    background: linear-gradient(90deg, #2563eb, rgba(56, 189, 248, 0.1));
    box-shadow: 0 0 12px rgba(37, 99, 235, 0.45);
}
.theme-tech .glass-panel {
    border-color: rgba(37, 99, 235, 0.14);
}

/* ===== 首頁核心服務：動態向量圖示 ===== */
.svc-icon {
    display: block;
    width: 5rem;
    height: 5rem;
    overflow: visible;
    filter: drop-shadow(0 12px 18px var(--svc-shadow, rgba(15, 23, 42, 0.18)));
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), filter 0.5s ease;
}
.group:hover .svc-icon {
    transform: translateY(-4px) scale(1.04);
    filter: drop-shadow(0 18px 26px var(--svc-shadow, rgba(15, 23, 42, 0.25)));
}
.svc-icon .svc-float { animation: svc-float 5s ease-in-out infinite; transform-box: view-box; transform-origin: 50% 50%; }
.svc-icon .svc-pulse { animation: svc-pulse 2.6s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.svc-icon .svc-sweep { animation: svc-sweep 5.5s ease-in-out infinite; }
.svc-icon .svc-wave { animation: svc-wave 2.4s ease-out infinite; }
.svc-icon .svc-wave--2 { animation-delay: 0.6s; }
.svc-icon .svc-flow { stroke-dasharray: 3 16; animation: svc-flow 1.4s linear infinite; }
.svc-icon .svc-core { animation: svc-core 2.6s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.svc-icon .svc-ring { animation: svc-ring 2.8s ease-out infinite; transform-box: fill-box; transform-origin: center; }
.svc-icon .svc-shine { animation: svc-shine 3.2s ease-in-out infinite; }
.svc-icon .svc-note { animation: svc-note 3.2s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.svc-icon .svc-note--2 { animation-delay: 1.6s; }

@keyframes svc-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-2.5px); } }
@keyframes svc-pulse { 0%, 100% { opacity: 0.45; transform: scale(0.92); } 50% { opacity: 0.9; transform: scale(1.06); } }
@keyframes svc-sweep { 0%, 55% { transform: translateX(0); } 85%, 100% { transform: translateX(150px); } }
@keyframes svc-wave { 0% { opacity: 0; } 30% { opacity: 1; } 100% { opacity: 0; } }
@keyframes svc-flow { to { stroke-dashoffset: -19; } }
@keyframes svc-core { 0%, 100% { filter: brightness(1); } 50% { filter: brightness(1.35); } }
@keyframes svc-ring { 0% { opacity: 0.7; transform: scale(0.82); } 100% { opacity: 0; transform: scale(1.18); } }
@keyframes svc-shine { 0%, 35% { transform: translateX(-30px); } 75%, 100% { transform: translateX(70px); } }
@keyframes svc-note { 0% { opacity: 0; transform: translateY(5px); } 30%, 60% { opacity: 1; } 100% { opacity: 0; transform: translateY(-7px); } }

@media (prefers-reduced-motion: reduce) {
    .svc-icon *, .svc-icon { animation: none !important; transition: none !important; }
}

/* ===== 電信頁服務重點：額外動畫 ===== */
.svc-icon--sm { width: 4.75rem; height: 4.75rem; }
.svc-icon .svc-spin { animation: svc-spin 9s linear infinite; transform-box: fill-box; transform-origin: center; }
.svc-icon .svc-spin-rev { animation: svc-spin 4.5s linear infinite reverse; transform-box: fill-box; transform-origin: center; }
.svc-icon .svc-blink { animation: svc-blink 2s ease-in-out infinite; }
.svc-icon .svc-draw { stroke-dasharray: 22; animation: svc-draw 3s ease-in-out infinite; }
.svc-icon .svc-bob { animation: svc-bob 2.6s ease-in-out infinite; }
.svc-icon .svc-arc { stroke-dasharray: 10 6; animation: svc-flow-arc 6s linear infinite; }
.svc-icon .svc-beat { animation: svc-beat 1.6s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.svc-icon .svc-sway { animation: svc-sway 4s ease-in-out infinite; transform-box: view-box; transform-origin: 30px 72px; }
.svc-icon .svc-twinkle { animation: svc-twinkle 2.4s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.svc-icon .svc-twinkle--2 { animation-delay: 1.2s; }
.svc-icon .svc-swing { animation: svc-swing 2.8s ease-in-out infinite; transform-box: view-box; transform-origin: 48px 21px; }

@keyframes svc-spin { to { transform: rotate(360deg); } }
@keyframes svc-blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.55; } }
@keyframes svc-draw { 0% { stroke-dashoffset: 22; } 35%, 80% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: -22; } }
@keyframes svc-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(3px); } }
@keyframes svc-flow-arc { to { stroke-dashoffset: -64; } }
@keyframes svc-beat { 0%, 60%, 100% { transform: scale(1); } 15% { transform: scale(1.22); } 30% { transform: scale(0.95); } 45% { transform: scale(1.12); } }
@keyframes svc-sway { 0%, 100% { transform: rotate(-5deg) translateY(0); } 50% { transform: rotate(5deg) translateY(-2px); } }
@keyframes svc-twinkle { 0%, 100% { opacity: 0.2; transform: scale(0.6); } 50% { opacity: 1; transform: scale(1.1); } }
@keyframes svc-swing { 0%, 50%, 100% { transform: rotate(0); } 8% { transform: rotate(12deg); } 18% { transform: rotate(-10deg); } 28% { transform: rotate(6deg); } 38% { transform: rotate(-3deg); } }

/* ===== AI 頁核心價值：額外動畫 ===== */
.svc-icon .svc-radar { animation: svc-spin 2.4s linear infinite; transform-box: view-box; transform-origin: 43px 43px; }
.svc-icon .svc-needle { animation: svc-needle 1.8s cubic-bezier(0.6, 0, 0.2, 1) infinite; transform-box: view-box; transform-origin: 49px 52px; }
.svc-icon .svc-arc-fill { animation: svc-needle 1.8s cubic-bezier(0.6, 0, 0.2, 1) infinite; transform-box: view-box; transform-origin: 49px 52px; }
.svc-icon .svc-globe { animation: svc-globe 4s ease-in-out infinite; transform-box: view-box; transform-origin: 48px 48px; }

@keyframes svc-needle { 0% { transform: rotate(-40deg); } 35% { transform: rotate(125deg); } 55% { transform: rotate(110deg); } 100% { transform: rotate(320deg); } }
@keyframes svc-globe { 0%, 100% { transform: scaleX(1); } 50% { transform: scaleX(-1); } }

/* ===== DDoS 頁：防護圖示 ===== */
.ddos-icon { width: 7.5rem; height: 6rem; }
.svc-icon .dd-stream { stroke-dasharray: 10 22; animation: dd-stream 1.2s linear infinite; }
.svc-icon .dd-stream--2 { animation-delay: -0.4s; }
.svc-icon .dd-stream--3 { animation-delay: -0.8s; }
.svc-icon .dd-orbit { animation: svc-spin 12s linear infinite; transform-box: fill-box; transform-origin: center; }
.svc-icon .dd-spark { opacity: 0; animation: dd-spark 1.2s ease-out infinite; transform-box: fill-box; transform-origin: right center; }
.svc-icon .dd-spark--2 { animation-delay: 0.4s; }
.svc-icon .dd-spark--3 { animation-delay: 0.8s; }

@keyframes dd-stream { to { stroke-dashoffset: -32; } }
@keyframes dd-spark { 0%, 55% { opacity: 0; transform: scale(0.4); } 70% { opacity: 1; transform: scale(1); } 100% { opacity: 0; transform: scale(1.5) translateX(-3px); } }

/* ===== DDoS 頁防護重點：漏斗封包動畫 ===== */
.svc-icon .dp-drop { opacity: 0; animation: dp-drop 2.1s ease-in infinite; }
.svc-icon .dp-drop--2 { animation-delay: 0.7s; }
.svc-icon .dp-drop--3 { animation-delay: 1.4s; }
.svc-icon .dp-out { opacity: 0; animation: dp-out 2.1s ease-in infinite; animation-delay: 0.35s; }

@keyframes dp-drop { 0% { opacity: 0; transform: translateY(-4px); } 20% { opacity: 1; } 60% { opacity: 1; transform: translateY(12px); } 75%, 100% { opacity: 0; transform: translateY(16px); } }
@keyframes dp-out { 0%, 40% { opacity: 0; transform: translateY(-6px); } 60% { opacity: 1; } 100% { opacity: 0; transform: translateY(4px); } }

/* ===== SMB 頁防護重點：掃描、長條、圓餅動畫 ===== */
.svc-icon .sm-scan { animation: sm-scan 2.6s ease-in-out infinite; }
.svc-icon .sm-bar { animation: sm-bar 2.4s ease-in-out infinite; transform-box: fill-box; transform-origin: bottom; }
.svc-icon .sm-bar--2 { animation-delay: 0.3s; }
.svc-icon .sm-bar--3 { animation-delay: 0.6s; }
.svc-icon .sm-donut { animation: sm-donut 3.2s ease-in-out infinite; }

@keyframes sm-scan { 0%, 100% { transform: translateY(-26px); } 50% { transform: translateY(8px); } }
@keyframes sm-bar { 0%, 100% { transform: scaleY(0.45); } 50% { transform: scaleY(1); } }
@keyframes sm-donut { 0%, 100% { stroke-dasharray: 20 56.5; } 50% { stroke-dasharray: 44 56.5; } }

/* ===== 娛樂頁圖示：推桿與掃描動畫 ===== */
.svc-icon .ent-knob { animation: ent-knob 2.4s ease-in-out infinite; }
.svc-icon .ent-knob--2 { animation-delay: -0.8s; }
.svc-icon .ent-knob--3 { animation-delay: -1.6s; }
.svc-icon .ent-scan { animation: ent-scan 2.2s ease-in-out infinite; }

@keyframes ent-knob { 0%, 100% { transform: translateY(-9px); } 50% { transform: translateY(9px); } }
@keyframes ent-scan { 0%, 100% { transform: translateY(0); opacity: 0.9; } 50% { transform: translateY(34px); opacity: 0.5; } }

.ent-float { animation: ent-float 5s ease-in-out infinite; }
@keyframes ent-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@media (prefers-reduced-motion: reduce) { .ent-float { animation: none; } }

/* ===== 電信頁：網路端防護圖示 ===== */
.svc-icon .ng-dome { animation: ng-dome 6s linear infinite; }
.svc-icon .ng-threat { animation: ng-threat 2.6s ease-in infinite; transform-box: fill-box; transform-origin: center; }
.svc-icon .ng-threat--2 { animation-delay: 1.3s; }

@keyframes ng-dome { to { stroke-dashoffset: -54; } }
@keyframes ng-threat { 0% { opacity: 0; transform: translate(-6px, -6px) scale(0.6); } 25% { opacity: 1; transform: translate(0, 0) scale(1); } 55% { opacity: 1; transform: translate(3px, 3px) scale(1); } 70% { opacity: 0; transform: translate(3px, 3px) scale(1.5); } 100% { opacity: 0; } }

/* ===== WAF 頁防護重點：機器人眼睛、修補貼片、清單打勾 ===== */
.svc-icon .wf-eyes { animation: wf-eyes 3.2s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.svc-icon .wf-patch { animation: wf-patch 2.8s ease-in-out infinite; }
.svc-icon .wf-tick { stroke-dasharray: 12; animation: wf-tick 3.6s ease-in-out infinite; }
.svc-icon .wf-tick--2 { animation-delay: 0.4s; }
.svc-icon .wf-tick--3 { animation-delay: 0.8s; }

@keyframes wf-eyes { 0%, 44%, 52%, 100% { transform: scaleY(1); } 48% { transform: scaleY(0.15); } }
@keyframes wf-patch { 0%, 100% { transform: translateX(0); opacity: 0; } 20% { opacity: 0.45; } 70% { transform: translateX(26px); opacity: 0.45; } 85% { opacity: 0; } }
@keyframes wf-tick { 0%, 10% { stroke-dashoffset: 12; } 35%, 85% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 12; } }

/* 計費長條跳動 */
.svc-icon .svc-bar { animation: svc-bar 1.8s ease-in-out infinite; transform-box: fill-box; transform-origin: 50% 100%; }
.svc-icon .svc-bar--2 { animation-delay: -0.6s; }
.svc-icon .svc-bar--3 { animation-delay: -1.2s; }
@keyframes svc-bar { 0%, 100% { transform: scaleY(0.55); } 50% { transform: scaleY(1.1); } }
@media (prefers-reduced-motion: reduce) { .svc-icon .svc-bar { animation: none; } }
