/************************* 主視覺輪播 *************************/
#carouselExampleIndicators {
    padding-top: 60px;
 }
.carousel-item {
    height: 100%;
    transition: transform 1.5s ease, opacity .15s ease-out;
}
.carousel-indicators [data-bs-target] {
    /* background-color: #51a4c1; */
    background-color: var(--bg-white);
    width: 13px;
    height: 13px;
    border-radius:50%;    
}


.mainbanner {
    width: 100%;
    display: block;
}
.mainbanner_m {
    width: 100%;
    display: none;
}
.carousel-indicators {
    margin-bottom: 0rem;
}
.carousel-control-next, .carousel-control-prev {
    margin-top: 60px;
    width: 10%;
}

@media screen and (max-width: 992px){
    /* .mainbanner {
        margin-top: 60px; 
    }   */
    .carousel-control-next, .carousel-control-prev {
        margin-top: 60px;
    } 
    
}
@media screen and (max-width:768px){
    .mainbanner {
        display: none;
    }
    .mainbanner_m {
        display: block;
    }
}

/*******info_nav*******/
.info_nav {
    padding: 15px 0;
    background-color: #34bcbc;
    margin-bottom: 20px;
}
.info_nav_inner {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
}
.info_nav ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;   
    letter-spacing: 1px;
}
.info_nav_link {    
    padding: 0px 25px;
    
    /* clip-path: polygon(10% 0%, 100% 0%, 90% 100%, 0% 100%); */
}
.info_nav_link a {
    color: #ffffff;
    font-size: 1.2rem;
}
.info_nav ul li + li {
    border-left: 1px solid #f5f0f0;
}
.info_nav ul li:last-child{
    border-right: 1px solid #f5f0f0;
}
.info_nav_extra {
    display: flex;
}
.info_nav_extra .info_nav_link {    
    display: block;
    height: 36px;
    line-height: 34px;
    margin: 0 0 0 20px;
    text-align: center;
    font-size: 1.2rem;
    font-weight: 400;
    color: #ffffff;
    border: solid 2px;
    border-radius: 18px;
    background-color: #ffffff16;
    transition: transform .2s ease;
}
.info_nav_extra .info_nav_link:hover {
    /* transform: translateY(-5px); */
    transform: translateY(-3px) scale(1.03);
}
@media screen and (max-width:992px){
     .info_nav_inner {
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
    .info_nav_extra .info_nav_link {        
        margin: 10px 0 0 20px;        
    }
}
@media screen and (max-width:768px){
    .info_nav ul {
        justify-content: center;
    }
    .info_nav_link {
        padding: 0px 12px;
        line-height: 1.3;
    }
}
.service_group {
    padding: 15px 0;
}
.service_box {
    display: flex;
    justify-content: center;
    align-items: center;
}
.service_item{
    width: 15%;
    display: flex;    
    justify-content: center;
    margin-bottom: 10px;
}
.service_item a {
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.service_item a img {
   width: 80pX;
   margin: auto;
   transition: transform .2s ease;
}
.service_item a img:hover{
 transform: scale(1.1);
}

.service_text {
    color: var(--text-dark);
    text-align: center;
    line-height: 1.5;
}
@media screen and (max-width:992px){
    .service_box {
       flex-wrap: wrap;
       align-items: flex-start;
    }
    .service_item{
        width: 30%;
    }
}

/************************* 主要內容開始 *************************/
.mainArea{   
    padding-top: 20px;
    padding-bottom: 20px;
}
.mainArea h2{
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.1;
    /* color: #323232; */
    color: var(--text-dark);
    border-left: 6px solid #32bbbb;
    padding-left: 12px;
    margin-bottom: 16px;
    /* border-bottom: 2px solid #7dd4d4; */
}




@media screen and (max-width:768px){
    .mainArea{
        padding-top: 10px;
        padding-bottom: 10px;
    }
   
    .mainArea .title h2{
        font-size: 36px;
        margin-right: 0px;
    }
}
/******/
.mainArea .topstrip {
    background-color: var(--bg-gray-1);
    border: 1px solid var(--border-gray);
    margin-bottom: 30px;
    display: flex;
    justify-content: center;
    padding: 5px 0;
    overflow: hidden;
}
.mainArea .topstrip a {
    color: var(--text-main);
    font-weight: 600;
    margin-left: 15px;
    margin-right: 15px;
}
.mainArea .topstrip span {
    margin-left: 10px;
}
.mainArea .topstrip span.up {
    color: var(--color-stock-up);
}
.mainArea .topstrip span.down {
    color: var(--color-stock-down);
}
@media screen and (max-width:768px){
    .mainArea .topstrip {
         justify-content: start;
         margin-bottom: 12px;
    }
    .mainArea .topstrip a {
        font-size: 0.8rem;
        white-space: nowrap;
    }

}
/******/
/* .news_container {
    margin: 6px;
    font-size: 1rem;
}
.news_container table .table_date{
    color: var(--text-dark);
    font-size: 0.9rem;
} */
.info_container {
   /* background-color: #00b4c2; */
   /* margin: 6px; */
   box-sizing: border-box;
}
.info_container iframe {
    width: 100%;
    aspect-ratio: 320/130;  
    overflow: hidden;
}
@media (max-width: 992px) {
    .info_container iframe {
    aspect-ratio: 320/160;  
    }

}
@media (max-width: 768px) {
    .info_container iframe {
    aspect-ratio: 320/180;  
    }

}
/**************************************************/
.weighted_container {
   /* background-color: #136684; */
   /* margin: 6px; */
  
} 
/*
.weighted_container iframe {
    width: 100%;
    aspect-ratio:624/300;  
} */


/* 響應式iframe等比例縮放 */
  .iframe-wrapper {
        position: relative;
        width: 100%;
        height: 0;
        padding-bottom: 48.387%; /* 300/620 = 0.48387 = 48.387% */
        overflow: hidden;
        /* border-radius: 12px; */
        /* box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); */
        /* background: #fff; */
    }

    .responsive-iframe {
        position: absolute;
        top: 0px;
        left: 0;
        width: 620px !important;
        height: 300px !important;
        border: none;
        /* border-radius: 12px;
        transform-origin: top left; */
        /* 縮放比例將由JavaScript動態設定 */
    }

    /* 小裝置優化 */
    @media (max-width: 768px) {
        .iframe-wrapper {
            padding-bottom: 50%; /* 稍微調整比例以適應小螢幕 */
            /* border-radius: 8px; */
        }
        
        .responsive-iframe {
            /* border-radius: 8px; */
        }
    }

    @media (max-width: 576px) {
        .iframe-wrapper {
            padding-bottom: 52%; /* 手機版進一步調整 */
            margin: -8px; /* 減少卡片內邊距以獲得更多空間 */
            /* border-radius: 6px; */
        }
        
        .responsive-iframe {
            /* border-radius: 6px; */
        }
    }

    @media (max-width: 400px) {
        .iframe-wrapper {
            padding-bottom: 55%; /* 超小螢幕優化 */
        }
    }

    /* 為不支援aspect-ratio的舊瀏覽器提供備用方案 */
    @supports not (aspect-ratio: 620 / 300) {
        .iframe-wrapper {
            height: calc(100vw * 300 / 620);
            max-height: 300px;
            padding-bottom: 0;
        }
    }

/* 響應式斷點指示器 */
    /* .breakpoint-indicator {
        position: fixed;
        top: 10px;
        right: 10px;
        background: rgba(0, 0, 0, 0.8);
        color: white;
        padding: 8px 12px;
        border-radius: 4px;
        font-size: 12px;
        font-family: 'Courier New', monospace;
        z-index: 1000;
    }
    
    @media (max-width: 576px) {
        .breakpoint-indicator {
            top: 5px;
            right: 5px;
            font-size: 10px;
            padding: 6px 8px;
        }
    } */




/**************************************************/
.card {
    border: 1px solid rgba(0, 0, 0, .125);
    border-radius: 6px;
    /* box-shadow: 0 3px 3px 0px rgba(0, 0, 0, 0.2); */
    margin: 12px 0;
    padding: 20px 20px 10px;
    height: 95%;
}
.live_container {
   /* background-color: #38acd6; */
   /* margin: 6px; */
}
.live_container iframe {
    width: 100%;
    aspect-ratio:620/300;  
    overflow:hidden 
}



/*----投資新手專區--------*/
.newbie_grid_container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

/* 單個卡片項目樣式 */
.newbie_grid_item {
    display: flex; 
    align-items: center; 
    background-color: #f8f9fa; 
    border: 1px solid #e9ecef; 
    border-radius: 10px; 
    padding: 15px;
    text-decoration: none; 
    transition: all 0.3s ease; 
}
.newbie_grid_item:hover {
    background-color: #e6f7f7; 
    border-color: #bde6e7; 
    box-shadow: 0 2px 8px rgba(0,0,0,0.05); 
}
.item_icon {
    flex-shrink: 0; 
    width: 50px;
    height: 50px;
    margin-right: 15px; 
}

.item_content {
    flex-grow: 1; /* 佔滿剩餘空間 */
}
.item_title {
    font-size: 20px;
    font-weight: bold;
    color: #333; 
    margin: 0 0 5px 0; 
    line-height: 1.4;
}

.item_desc {
    font-size: 16px;
    color: #666; 
    margin: 0;
    line-height: 1.4;
}
@media (max-width: 992px) {
    .newbie_grid_container {
        grid-template-columns: 1fr;
    }
}
/*----//投資新手專區--------*/
/*---- 相關連結--------*/
.related_links_section {   
    background-image: url('../images/related_links_bg.jpg'); 
    background-size: cover; 
    /*background-position: center;  圖片居中顯示 */
    background-repeat: no-repeat;     
    padding: 80px 0; 
    margin-top: 30px; 
    width: 100%;
    box-shadow: inset 0 0 0 1000px rgba(0, 10, 30, 0.3);
}

/* 區塊標題樣式 */
.related_links_title {
    color: #ffffff; 
    font-size: 2rem; 
    margin-bottom: 50px;
    text-align: center;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-shadow: 0 2px 5px rgba(0,0,0,0.2); 
}
.related_link_box {
    display: flex;
    align-items: center;
    justify-content: center;    
    background-color: rgba(255, 255, 255, 0.12);     
    /* 加入背景模糊濾鏡 (毛玻璃效果) */
    backdrop-filter: blur(12px); 
    -webkit-backdrop-filter: blur(12px); /* 支援 Safari */
    border: 2px solid rgba(255, 255, 255, 0.3);    
    color: #ffffff; 
    text-decoration: none;
    padding: 25px 5px;
    border-radius: 16px;  
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);     
    transition: all 0.3s ease;
    height: 100%;
    font-weight: 500;
}
.link_text {
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}
/* 外連小圖示樣式 */
.ext_icon {
    width: 20px;
    height: 20px;
    opacity: 0.8; 
    transition: all 0.3s ease;
}
.related_link_box:hover {
    background-color: #ffffff; 
    color: var(--color-primary);           
    border-color: #ffffff;
    transform: translateY(-5px); 
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15); 
}

.related_link_box:hover .ext_icon {
    opacity: 1;
    /* 圖示顏色會自動跟隨文字變成深 */
}

@media (max-width: 767px) {
    .related_links_section {
        padding: 40px 0;
    }
    .related_links_title {
        color: #ffffff; 
        font-size: 1.8rem; 
        margin-bottom: 20px;
    }
    .related_link_box {
         margin-bottom: 20px;
         padding: 20px 5px;
    }
}

/*---- //相關連結--------*/






/*-----公告-----*/
#home_announcement h5.modal-title {
    font-size: 27px;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: 5px;
    color: #009999;
    padding: 0;
    text-align: center;
    width: 100%;
}
#home_announcement .modal-body {
    font-size: 18px;
	letter-spacing: 1px;
    line-height: 1.6;
    font-weight: 600;
    color: #444647;
}
#home_announcement .btn-secondary {
    color: #fff;
    background-color: #6c757d;
    border-color: #6c757d;
}
#home_announcement .modal-body .text{
	color: #009999;
}
#home_announcement .btn-close {
    width: 50px;
    height: 33px;
    padding-top: 0 !important;
    background: none;
}
#home_announcement .btn-close:focus {
    outline: 0;
    box-shadow: 0 0 0 .25rem rgba(13, 110, 253, .0);
	opacity: 1;
}
/*-----公告-----*/