[id*="custom-html"]{padding:0 !important; position:relative;}
[class*="text-editor"] h3{display: none;}
.line-break {display: block;}
.text-show{display:block !important;}
.text-dark{color: #404040 !important;}
.text-blue{color: #00b2ff;}
a.text-dark:before{background-color: #404040 !important;}
.text-normal{font-weight: normal !important;}
.small-font {font-size: 15px;}
[id*="hero"] .row .col-md-5{width: 100%;}
[class*="top-hero"] {padding: 0 !important;}
[class*="top-hero"] .row{height: 500px; align-items: center;}
[id*="hero"] h2, [id*="auto-frame"] h2{display: none;}
[id*="auto-frame"] ul, [id*="auto-frame"] ul li{list-style-type:disc !important; margin-left: 10px !important;}
.m-block{display: none;}
.text-cover {background:rgba(255, 255, 255, 0.7); padding: 1rem;}
.zyx-paragraph--two-col-image img {width: auto !important;}

#top-hero{position: relative;}
.banner-title{position: relative; z-index: 1;}
.banner-canvas{position: absolute; left:0; top:0; width: 100%; height:500px; overflow: hidden; z-index:0;}
.banner-canvas img{object-fit: cover; width: 100%; height: 500px;}
.desktop-banner{display: block;}
.mobile-banner{display: none;}
@media screen and (max-width: 640px) {
.desktop-banner{display: none;}
.mobile-banner{display: block;}
}

/* 容器預設不設高度，由 JS 動態賦予，避免出現空白 */
.second-nav-wrapper {
    width: 100%;
    background-color: #000;
}
nav.second-nav {background-color: #000; width: 100%; overflow: hidden; padding: 14px 0; position:relative; box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px; z-index: 1000;}
.navScrolled {position: fixed !important; top: 0; left: 0; width: 100%; z-index: 9999;}
nav.second-nav ul {width: max-content; margin:0 auto; text-align: center; list-style: none; padding: 0;}
nav.second-nav ul li {display: inline-block; padding: 0 5px;}
nav.second-nav ul li a {color: #fff; border-radius: 50px; padding: 5px 25px; display: inline-block; font-weight:normal; text-decoration: none; transition: background-color 0.3s;}
nav.second-nav ul li a:hover:before, .second-nav ul li a:before {text-decoration: none;    height: 0 !important;}
nav.second-nav ul li.active a, nav.second-nav ul li a:hover {background-color: #fff;  color:#000; text-decoration: none;}
nav.second-nav ul li a.border-adjusted, nav.second-nav ul li a.color-adjusted{color: #fff !important; background-color: transparent!important;}
nav.second-nav ul li.active a.color-adjusted, nav.second-nav ul li.active a.border-adjusted, nav.second-nav ul li a.color-adjusted:hover, nav.second-nav ul li a.border-adjusted:hover{color: #000 !important; background-color: #fff!important;}
@media screen and (max-width: 992px) {
nav.second-nav {overflow-x: scroll; scrollbar-color: rgb(255 255 255) #fff; -webkit-overflow-scrolling: touch; -ms-overflow-style: none; scrollbar-width: none;}
}
section[id] {
    scroll-margin-top: 0 !important;
}

/* 隱藏主要 Header */
body.is-second-nav-active .zyxel-header {
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all 0.3s ease;
}

/*Banner*/
.video-canvas {position:absolute; top: 0; left: 0; width: 100%; height:500px; overflow:hidden;}
.video-canvas video{z-index:0;}
.banner-title{position:relative;}

/*Benefits*/
#takeaways h2{margin-top: 8rem;}
.features-box {background:#354767; padding: 2rem; border-radius: 10px;}
.divide-line {width:1px; height: 100%; background: #fff; padding: 0;}
#overview h3, #takeaways h2{scroll-margin-top: 100px;}
.key-benefit-box{margin-top: 5rem;}
.key-benefit-div {padding:0 1rem;}
.key-benefit-img {background: #fff; border-radius: 50%; padding: 10px; width: 100px; height: 100px; margin: auto;}
.key-benefit-div h5 {min-height: 90px; margin-top: 1rem; text-shadow: 2px 3px 2px rgba(0,0,0,0.8);}

/*Use case*/
#use-cases h3{display:none; margin-bottom:0;}
.case-box{position: relative; width: 100%;}
.case-box .img {width: 100%; height: 100%;}
.case-box .img img {object-fit: cover; width: 100%;}
.case-box .title{background: rgba(0,0,0,0.75); text-align: center; padding:10px; width: 100%; min-height: 70px; display: flex; align-items: center; position: absolute; bottom: 0; left:0;}
.case-box .title h6, .case-box:hover .overlay h6{margin:0; color: #fff !important;}
.case-box .overlay {position: absolute; top: 0; bottom: 0; left: 0; right: 0; height: 100%; width: 100%; opacity: 0; transition: .5s ease; background-color: rgba(9, 41, 91, 0.85);  z-index: 10;}
.case-box:hover .overlay {opacity: 1; cursor: pointer;}
.case-box .text {color: #fff; position: absolute; top: 50%; left: 50%; -webkit-transform: translate(-50%, -50%); -ms-transform: translate(-50%, -50%); transform: translate(-50%, -50%); text-align: center; width: 100%; padding: 1rem;}
.case-box:hover .guide-wrapper, .case-box:hover .title {visibility: hidden;}
/* 引導層：滿版黑背景，5秒一輪 */
.guide-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 5;
    pointer-events: none;
    transition: opacity 0.3s ease;
    /* 背景動畫：0-60% (3秒) 顯示，60-100% (2秒) 消失 */
    animation: bg-fade-periodic 5s infinite;
}

/* Hover 時立即強制消失 */
.case-box:hover .guide-wrapper {
    opacity: 0 !important;
}

/* Material Icon 樣式：白色圖示 + 陰影 */
.finger.material-icons-round {
    font-size: 64px; /* 稍微放大增加視覺張力 */
    color: #ffffff;
    display: block;
    animation: finger-tap-periodic 5s ease-in-out infinite;
    filter: drop-shadow(0px 4px 10px rgba(0,0,0,0.4));
}

/* 提示文字樣式 */
.text-hint {
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 500;
    margin-top: 12px;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-shadow: 0px 2px 4px rgba(0,0,0,0.5);
    animation: text-fade-periodic 5s infinite;
}

/* --- 動畫設定：5s 週期 (0~60% 為顯示，60~100% 為隱藏) --- */

/* 背景半透明黑淡入淡出 */
@keyframes bg-fade-periodic {
    0%, 5% { background-color: rgba(9, 41, 91, 0); opacity: 0; }
    15%, 60% { background-color: rgba(9, 41, 91, 0.9); opacity: 1; }
    70%, 100% { background-color: rgba(9, 41, 91, 0); opacity: 0; }
}

/* 手指縮放動畫：在 3 秒內縮放兩次模擬點擊 */
@keyframes finger-tap-periodic {
    0%, 10% { transform: scale(1); opacity: 0; }
    15% { opacity: 1; }
    25% { transform: scale(0.85); } /* 第一次按壓 */
    35% { transform: scale(1); }
    45% { transform: scale(0.85); } /* 第二次按壓 */
    55% { transform: scale(1); opacity: 1; }
    65%, 100% { opacity: 0; }
}

/* 文字淡入淡出 */
@keyframes text-fade-periodic {
    0%, 15% { opacity: 0; }
    15%, 60% { opacity: 1; }
    70%, 100% { opacity: 0; }
}


/*FAQ*/
.accordion-container {width: 90%; margin: 0 auto;}
.accordion-item {overflow: hidden; padding: 0;}
.accordion-header {background-color: #fff; cursor: pointer; padding: 1rem; margin: 0 !important; width: 100%; border: none; text-align: left; outline: none; transition: background-color 0.3s ease; display: flex; justify-content: space-between; align-items: center; border-top: 1px solid #333;}
.accordion-header:focus{background-color: #efefef !important;}
.accordion-header:hover {background-color: #efefef;}
.accordion-content {display: grid; grid-template-rows: 0fr; /* 初始高度為 0 */ transition: grid-template-rows 0.4s cubic-bezier(0.4, 0, 0.2, 1); background-color: #fff;}
.accordion-content-inner {overflow: hidden; padding: 0 1rem; transition: padding 0.4s ease;}
.accordion-item.active .accordion-content {grid-template-rows: 1fr;}
.accordion-item.active .accordion-content-inner {padding: 1rem;}
.accordion-content p {margin-bottom: 0 !important; font-size: 16px; line-height: 1.6; color: #444;}
.arrow-icon {display: inline-block; transform: rotate(0deg); transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);}
.accordion-item.active .arrow-icon {transform: rotate(180deg);}
/*comparison table*/
.specs-container {display: flex; flex-direction: row; width: 100%; border-top: 1px solid #999;}
.product-group {display: flex; flex-direction: column;}
.spec-row {display: flex; border-bottom: 1px solid #eee;}
.spec-row.twolines-row{height: 75px;}
.spec-row.phy-row{height: 105px;}
.spec-label, .spec-value {padding: 10px; line-height: 1.3; width: 100%; display: flex; align-items: center;}
.spec-label {color:#002855;}
.spec-value {display: flex; align-items: center;}
.wf8-label {background-color: #002855; color: #fff;}
.wf8-value {background-color: #e5f7ff;}
.heading-label {background-color: #667e99; color: #fff;}
#myiframe {width: 100%; min-height: 600px; border: none; display: block; max-height: none !important;}

/*Contact us*/
#technology {padding-bottom:0 !important;}

@media screen and (min-width: 769px) {
.product-group:not(:first-child) .spec-label {display: none;}
.product-group:first-child .spec-label {font-weight: bold;}
}

@media (max-width: 991px) {
    #myiframe {overflow: hidden !important; height: auto;}
}

@media (max-width: 900px) {
    .video-canvas video {transform: translate(-50%, 0);}
}

@media (max-width: 768px) {
.specs-container {flex-direction: column; gap: 20px; border-top: none;}
.product-group {border: 1px solid #ccc; border-radius: 4px; width: 100% !important;}
.spec-row {flex-direction: row;}
.spec-row.twolines-row, .spec-row.phy-row {height: auto;}
.spec-label {border-right: 1px solid #eee; font-weight: 600;}
.spec-label, .spec-value {padding: 5px; font-size: 14px;}
}

@media (max-width: 640px) {
.case-box {margin-bottom: 1rem;}
.video-canvas video {transform: translate(-60%, 0);}
}

@media screen and (max-width: 500px) {
[class*="top-hero"] img {object-position: 80%;}
.accordion-container {width: 100%;}
.divide-line {width: 100%; height: 1px; margin: 1rem 0;}
.features-box {flex-direction: column; margin: 0 1rem; padding: 1rem;}
.key-benefit-div {padding-bottom: 1rem;}
.key-benefit-div h5 {min-height: auto;}
}