html, body { /*撐滿*/
    margin: 0;
    padding: 0;
    width: 100%;
}

*, *:before, *:after {
    box-sizing: inherit;
}

header {
    position: fixed;  
    top: 0;
    left: 0;     
    width: 100%;      
    z-index: 1000;
    background-color: #ffffff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    box-sizing: border-box; 
}

main {
    background-color: #f5f9fd;
    padding-top: 80px; 
    padding-bottom: 20px;
}

body {
    font-family: Arial, "LiHei Pro", "黑體-繁", "微軟正黑體", sans-serif;
    font-weight: 600;
    color: #2d3e57;
    line-height: 1.1;
    letter-spacing: 0.2em;
}


.top_header{
    display:flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    position: relative; /* 為了讓手機版選單可以絕對定位 */
}

.hamburger_bar {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.hamburger_bar .bar{
    width: 25px;
    height: 3px;
    background-color: rgb(165, 164, 164);
    transition: all 0.3s ease-in-out;
}

.top_header .Cyberhood_pic{
    height: 60px;
    width: auto;

}

.top_button{
    font-size: 18px;
    cursor: pointer;
    border: none;
    background-color: white;
    font-family: inherit; /* 繼承母體的字 */
}

.dropdown{
    position: relative;
    display: inline-block;
}

.dropdown .arrow{
    display: inline-block;
    transition: transform 0.4s ease;
}

.dropdown_content{
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #ffffff;
    min-width: 200px;
    box-shadow: 0px 8px 16px rgba(0,0,0,0.15);
    border-radius: 6px;
    z-index: 1001;
    overflow: hidden;
    text-align: left;
}

.dropdown_content a {
    color: #2d3e57;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    font-size: 16px;
    font-weight: 500;
    transition: background 0.2s, color 0.2s;
}

.dropdown_content a:hover {
    background-color: #f1f5f9;
    color: #123092;
}

.dropdown:hover .dropdown_content,
.dropdown.active .dropdown_content {
    display: block;
}

.dropdown:hover .arrow,
.dropdown.active .arrow {
    transform: rotate(180deg); /* 讓 ▼ 變成 ▲ */
}

.breadcrumb {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 20px 30px 10px;
    font-size: 14px;
    color: #7b8798;
    margin: 30px 0px;
}

.breadcrumb a {
    color: #5c6d84;
    text-decoration: none;
}

.breadcrumb a:hover {
    color: #123092;
}

.bigger_text{
    text-align: center;
    font-size: 30px;
    font-weight: 600;
    color: #46556b;
}

.title_section{
    padding: 20px 80px 50px;
}

.title_section p{
    text-align: center;
    font-size: 20px;
    font-weight: 500;
}

.top_pic{
    text-align: center;
    padding-bottom: 30px;
}

.top_title{
    display: flex;
    flex-direction: column;
    align-items: center;
    box-sizing: border-box;
    padding: 0px 50px 10px 50px;
}


.top_title .title{
    margin: 0;
    font-size: 44px;
    line-height: 1.3;
    font-weight: 700;
    color: #123092;
    letter-spacing: 0.05em;
}

.top_title .small_word{
    margin: 20px 0 30px;
    font-size: 18px;
    line-height: 1.6;
    color: #64748b;
    font-weight: 400;
}

.cloud_computing{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 30px;
    box-sizing: border-box;
    padding: 0 50px 10px;
    background-color: #f5f9fd;
}


.pic{
    border-radius: 20px;
    width: 90%;          
    max-width: 900px;   
    height: auto;
    display: block;     
    margin: 0 auto;
}

.cloud_computing p{
    text-align: center;
    font-size: 18px;
    font-weight: 500;
}

.cloud_computing .text_box{
    line-height: 1.8;
}

.recognize{
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
}

.recognize p{
    font-size: 16px;
    font-weight: 530;
}

.recognize_section{
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 60px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding-bottom: 30px;
}

.feature_section{
    display: flex;
    width: 90%;
    max-width: 1200px; 
    margin: 20px auto; 
    border: 2px solid #123092;
    border-radius: 8px;
    padding: 20px 30px;
    box-sizing: border-box; 
}

.feature_box{
    display: grid;
    grid-template-columns: repeat(3, 1fr); 
    gap: 15px 30px; 
    width: 100%;
}

.feature_box p{
    font-size: 18px;
    font-weight: 500;
}

.feature_section p{
    font-weight: 400;
}

.recognize_section2, 
.recognize_section3 {
    border: 2px solid #f58bd2;
    border-radius: 8px;
    padding: 20px 30px;
    flex: 1;
    text-align: center;
    font-weight: 540;
    background-color: #FCF3F9;
}

.icon_pic{
    width: 25px;
    height: auto;
    vertical-align: middle; 
    margin-right: 8px;
    margin-top: -4px;
}

.icon_list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-start;
    padding-left: 0;
    margin: 0;
    
}
.icon_list li {
    list-style: none;
    padding: 0;
    margin: 0;
    background-color: #FCF3F9;
    border: 2px solid #ffc2eb ;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 14px;
    margin-bottom: 0;
    color: #123092;
}

.support{
    display: flex;
    flex-direction: column;
    border: 2px solid #f58bd2;
    border-radius: 8px;
    margin: 30px auto;
    padding: 15px 30px;
    width: 100%;
    max-width: 1200px;
    box-sizing: border-box;
    background-color: #FCF3F9;
}

.support .bigger_text{
    font-size: 24px;
    font-weight: 600;
}

.bottom{
    width: 100%;
    text-align: center;
    box-sizing: border-box;
    padding: 55px 40px 20px 40px;
    background-color: #fafafa;
    font-weight: 500;
    font-size: 14px;
}

.feature_section, 
.recognize_section2, 
.recognize_section3,
.support {
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
}

.text_box {
    max-width: 1200px;
    margin: 0 auto;
    line-height: 1.8;
}

.title_section p, .product p {
    max-width: 1200px;
    margin: 0 auto;
    line-height: 1.8;
}

.dashed_line{
    border: none;
    border-top: 2px dashed #7b8798;
    margin: 15px 0;
    width: 100%;
}

.inner_btn.active {
    background-color: #123092;
    color: #ffffff;
}

.icon_list li {
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.1s ease;
}
.icon_list li:hover {
    background-color: #ff7ad3;
    color: #ffffff;
}
.icon_list li:active {
    transform: scale(0.95);
}

.modal_section {
    position: fixed;
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%;
    background-color: rgba(45, 62, 87, 0.6); 
    display: flex; 
    justify-content: center; 
    align-items: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
.modal_section.active{
    opacity: 1;
    visibility: visible;
}

.modal_box {
    background-color: #ffffff; 
    width: 90%; 
    max-width: 700px;
    border-radius: 12px; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    transform: translateY(-20px); 
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex; 
    flex-direction: column; 
    max-height: 85vh; 
}
.modal_overlay.active .modal_box { 
    transform: translateY(0); 
}

.modal_header {
    display: flex; 
    justify-content: space-between; 
    align-items: center;
    padding: 18px 25px; 
    background-color: #9cb1ce; 
    color: #ffffff; 
    border-radius: 12px 12px 0 0;
}
.modal_title { 
    font-size: 22px; 
    font-weight: 600; 
    letter-spacing: 0.1em; 
    margin: 0; 
}

.close_btn, .close_btn_bottom { 
    cursor: pointer; 
    background: none; 
    border: none; 
    font-family: inherit; 
}

.close_btn { 
    font-size: 28px; 
    color: #ffffff; 
    line-height: 1; 
    padding: 0; 
}

.close_btn_bottom { 
    font-size: 15px; 
    color: #7b8798; 
    font-weight: 600; 
    padding: 0; 
}

.modal_body { 
    padding: 25px 35px; 
    overflow-y: auto; 
    font-weight: 500; 
    color: #46556b; 
}
.modal_subtitle { 
    color: #123092; 
    font-size: 18px; 
    font-weight: 600; 
    margin: 0 0 15px 0; 
}

.modal_list { 
    padding-left: 20px; 
    line-height: 1.8;
    margin: 0; 
}

.modal_body p {
    font-size: 18px;      
    color: #123092;     
    font-weight: 700;    
    margin-bottom: 12px;
}

.modal_list li { 
    margin-bottom: 12px; 
    font-size: 16px; 
    background-color: transparent; 
    padding: 0; 
    border-radius: 0; 
    color: #46556b; 
    cursor: default;
}
.modal_list li:hover { 
    background-color: transparent; 
    color: #46556b; 
}

.modal_footer {
    padding: 15px 25px; 
    border-top: 1px solid #e2e8f0; 
    display: flex;
    justify-content: center; 
    align-items: center; 
    background-color: #f8fafc; 
    border-radius: 0 0 12px 12px;
}
.action_btn {
    background-color: #ffffff; 
    color: #123092; 
    border: 1px solid #123092;
    padding: 8px 16px; 
    border-radius: 6px; 
    cursor: pointer; 
    font-weight: 600; 
    font-size: 15px; 
    transition: all 0.2s ease;
    text-align: center;
}
.action_btn:hover { 
    background-color: #123092; 
    color: #ffffff; 
}

.cyberhood-container {
    width: 100%;
    max-width: 900px;
    margin: 50px auto;
    font-family: "Microsoft JhengHei", "PingFang TC", sans-serif;
    color: #333;
}

.cyberhood-box {
    border: 2px solid #333;
    border-radius: 25px;   
    padding: 30px 40px;
    position: relative;
    background-color: transparent;
    padding-top: 50px;
}

.box-title {
    position: absolute;
    top: -18px;           
    left: 40px;
    background-color: #f5f9fd;
    padding: 0 15px;
    font-size: 24px;
    font-weight: bold;
    color: #111;
    letter-spacing: 1px;
}

.box-content {
    display: flex;
    flex-direction: column;
    align-items: center;    
    gap: 30px;             
    margin-top: 20px;
}

.box-left {
    width: 100%;        
    display: flex;
    align-items: center;
    justify-content: center; 
}

.book-image {
    width: 250px;        
    max-width: 100%;
    height: auto;
    display: block;
}

.box-right {
    width: 100%;            
    line-height: 1.8;
    font-size: 16px;
}

.box-right p {
    margin: 0 0 20px 0;
    text-align: justify;
}

.first-line {
    color: #8b0000; 
    font-weight: bold;
    font-size: 24px;
    margin-bottom: 5px;
    display: block;
}

.box-footer {
    display: flex;
    justify-content: flex-end;
    margin-top: 15px;
}

.btn-detail {
    display: inline-block;
    border: 2px solid #dadada;
    padding: 8px 16px;
    color: #333;
    text-decoration: none;
    font-weight: bold;
    font-size: 15px;
    background-color: #f7f7f7;
    border-radius: 10px;
    transition: background-color 0.2s ease-in-out;
}

.btn-detail:hover {
    background-color: #e4e4e4; 
}

.fade_up{
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;

}

.fade_up.show{
    opacity: 1;
    transform: translateY(0);
}

.privacy_link {
    color: #2d3e57;
    text-decoration: none;
    transition: color 0.2s ease;
}

.privacy_link:hover {
    color: #123092;
    text-decoration: underline;
}

.modal_section.active .modal_box { 
    transform: translateY(0); 
}

   @media screen and (max-width: 850px) {

    .pic, 
    .cyberhood .pic {
        width: 100%;
        max-width: 100%;
        height: auto;
    }

    .pic {
        border-radius: 20px;
        width: 90%;        
        max-width: 900px;
        height: auto;
        display: block;     
        margin: 0 auto;
    }

    .recognize_section, .product_section {
        flex-direction: column;
        gap: 20px;
    }

    .title_section, 
    .cloud_computing, 
    .product,
    .top_title,
    .recognize {
        padding-left: 30px;
        padding-right: 30px;
    }

    .top_title .title {
        font-size: 32px; 
    }
    
    .bigger_text {
        font-size: 24px;
    }

    .feature_box {
        grid-template-columns: 1fr;
    }

    .modal_body { 
        padding: 20px; 
    }
}

   @media (max-width: 992px) {
    .hamburger_bar {
        display: flex; 
    }
    
    .bar {
        border-radius: 15px;
    }

    .hamburger_bar:hover {
        background-color: #ffffff; 
    }
    
    .hamburger_bar:hover .bar {
        background-color: #555555;
    }

    .nav_menu {
        display: flex; 
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #ffffff;
        box-shadow: 0 4px 10px rgba(0,0,0,0.1);
        padding: 15px 0;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-20px);
        transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), 
                    opacity 0.30s ease, 
                    visibility 0.35s;
    }

    .nav_menu.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .dropdown {
        width: 100%;
    }
    
    .top_button {
        width: 100%;
        text-align: left;
        padding: 15px 40px;
        border-bottom: 1px solid #f1f5f9;
    }

    .dropdown_content {
        position: static; 
        box-shadow: none;
        background-color: #f8fafc;
    }
    
    .dropdown_content a {
        padding-left: 60px;
    }

    .cyberhood-container {
        padding: 0 20px !important; 
        box-sizing: border-box !important;
        width: 100% !important;
    }
}