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_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;
}

.cyberhood .pic {
    height: 350px;
    width: auto;
}

.top_title{
    display: flex;
    flex-direction: column;
    align-items: center;
    box-sizing: border-box;
    padding: 0px 50px 20px 50px;
}

.top_header .Cyberhood_pic{
    height: 60px;
    width: auto;
}

.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;
}

.self_introduction{
    padding: 70px 60px 50px;;
    background-color: #ffffff;
    justify-items: center;
    align-items: center;
}

.self_introduction h2{
    font-size: 28px;
}

.self_box_left .impac_pic{
    width: 150px;
    height: auto;
    margin: 0 auto;
}

.self_box_left{
    display: flex;
    flex-direction: column;
}

.self_box_left p{
    font-weight: 400;
    font-size: 16px;
    text-align: center;
    margin: 7px 0;
    white-space: nowrap;
}

.self_box_right p{
    font-weight: 400;
    font-size: 18px;
    line-height: 1.9;
}

.self_box{
    display: flex;
    gap: 50px;
    max-width: 1200px;
    border: 1px solid #f2f8ff;
    border-radius: 20px;
    background-color: #e7edf5;
    padding: 70px;
}


.pic{
    border-radius: 20px;
    width: 100%;
    max-width: 1024px;
    height: auto;
    box-sizing: border-box;
}

.bottom{
    width: 100%;
    text-align: center;
    box-sizing: border-box;
    padding: 55px 40px 20px 40px;
    background-color: #fafafa;
    font-weight: 500;
    font-size: 14px;
}

.apply{
    padding: 20px 80px 80px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
    background-color: #ffffff;
    
}

.apply .bigger_text{
    text-align: center;
    font-size: 30px;
    font-weight: 600;
    color: #46556b;
}

.apply p{
    text-align: center;
    font-size: 17px;
    font-weight: 500;
}

.apply_section{
    display: flex;
    gap: 23px;
    max-width: 1200px;
    margin: 30px auto 0;
    justify-content: center;
    align-items: center;
}

.apply_product{
    border: 2px solid #fcc419;
    background-color: #fff9db;
    border-radius: 8px;
    padding: 20px;
    text-align: center;

}

.apply_product:hover{
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(18, 48, 146, 0.15);
    cursor: pointer;
}

.apply_btn {
    display: inline-block;
    padding: 12px 32px;
    background-color: #e2c550; 
    color: #ffffff;
    text-decoration: none;
    border-radius: 50px; 
    font-size: 16px;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.apply_btn:hover {
    background-color: #e0b91b; 
    transform: scale(1.05); 
}

.text_box {
    max-width: 1200px;
    margin: 0 auto;
    line-height: 1.8;
}

.benefits_grid{
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 40px;
    font-weight: 400;
}

.card_header{
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.benefit_icon{
    width: 80px;
    height: auto;
}

.benefit_number{
    font-size: 55px;
    font-weight: 800;
    color: #e3c9b2;
    line-height: 0.8;
}

.benefits{
    background-color: #ffffff;
    padding: 20px 70px 70px;
}

.benefits .bigger_text{
    font-size: 32px;
    text-align: center;
}

.benefit_card{
    background-color: #f6f4ee;;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 30px 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05); 
    display: flex;
    flex-direction: column;
}

.apply_card {
    background-color: #f5f0dc;
    border: 2px solid #f5dc7a;
    border-radius: 12px;
    padding: 30px 20px;
    box-shadow: 0 8px 20px rgba(18, 48, 146, 0.15);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.apply_card:hover{
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(18, 48, 146, 0.25);;
}

.apply_icon {
    width: 80px;
    margin-bottom: 15px;
}

.top_benefit{
    display: flex;
    gap: 50px;
    margin-bottom: 20px;
}

.top_boxes{
    border: 2px solid blue;
    border-radius: 8px;
    padding:5px 20px;
    flex: 1;
    box-shadow: 0 10px 25px rgba(18, 48, 146, 0.08);
}

.bottom_benefit{
    display: flex;
    gap: 50px;
}

.bottom_boxes{
    border: 2px solid blue;
    border-radius: 8px;
    padding:5px 20px;
    flex: 1;
    box-shadow: 0 10px 25px rgba(18, 48, 146, 0.08);
}

.distributed_section{
    margin: 0 auto;
    padding: 20px 60px 60px;
    justify-items: center;
    align-items: center;
    background-color: #fffbfe;
    
}

.distributed_section .title{
    font-size: 32px;
    text-align: center;
    font-weight: 600;
}

.distributed_section p{
    max-width: 1200px;
    font-size: 18px;
    text-align: center;
    font-weight: 400;
}

.distributed_area{
    display: flex;
    gap: 60px;
}

.distributed_box{
    display: flex;
    align-items: center;
    gap: 20px;
    border: 2px solid #123092;
    background-color: #fffbfe;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
}

.distributed_box .bigger_text {
    font-size: 20px;   
    font-weight: 500;
}

.distributed_box img {
    width: 48px;            
    height: auto;
    flex-shrink: 0;   
}

.unicode_box{
    display: flex;
    align-items: center;
    gap: 20px;
    max-width: 1200px;
    border: 2px solid #123092;
    border-radius: 8px;
    background-color: #fffbfe;
    padding:5px 20px;
    flex: 1;
    box-shadow: 0 10px 25px rgba(18, 48, 146, 0.08);
}

.unicode_box .bigger_text {
    font-size: 20px;   
    font-weight: 500;
}

.unicode_box img {
    width: 48px;            
    height: auto;
    flex-shrink: 0;   
}

.unicode_box p{
    text-align: left;
}

.section_box{
    width: 100%;
    box-sizing: border-box;
    padding: 80px 100px;
    background-color: #fffdf7;
}

.section_box .inner_wrap {
    max-width: 1200px;
    margin: 0 auto; 
    padding: 0 20px;  
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    width: 100%;
}

.section .section_pic{
    width: 100%;
    max-width: 1024px;
    height: auto;
    border-radius: 8px;
    padding: 0;
}

.section_pic{
   width: 100%;
   max-width: 550px;
   height: auto;
   border-radius: 8px;
   padding: 0;

}

.section_box .text_box{
    max-width: 650px;
    width: 100%;
}

.section_box.reverse .inner_wrap{
    flex-direction: row-reverse;
}

.section_box .bigger_text{
    font-size: 30px;
    font-weight: 600;
}

.section .bigger_text{
    font-size: 30px;
    font-weight: 600;
    text-align: center;
}

.section_box p{
    font-size: 17px;
    font-weight: 500;
}

.section p{
    font-size: 17px;
    font-weight: 500;
}

.section{
    display: flex;
    flex-direction: column;
    align-items: center; 
    justify-content: center;
    gap: 30px;
    padding: 10px 80px 40px;
}

.section .inner_wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column; 
    align-items: center;
    gap: 30px;
}

.article_section{
    color: #123092;
    font-weight: bold; 
    font-size: 19px; 
    margin: 15px auto 0 auto; 
    text-align: left; 
    padding: 20px; 
    background-color: #fcf3f9; 
    border-radius: 8px;
    max-width: 1200px;
}

.company_profile{
    color: #123092;
    font-weight: bold; 
    font-size: 19px; 
    margin: 35px auto; 
    text-align: left; 
    padding: 20px 20px 50px 20px; 
    background-color: #fcf3f9; 
    border-radius: 8px;
    max-width: 1060px;
    align-items: center;
    width: calc(100% - 40px);
    box-sizing: border-box;
}

.company_section {
    display: flex;
    flex-direction: row;
    gap: 30px;
    width: 100%;
    max-width: 1150px;
    margin: 35px auto; 
    padding: 0 50px; 
    box-sizing: border-box;
    justify-content: center; /* 讓內容在主軸置中 */
    align-items: stretch;   /* 讓兩個 box 高度自動對齊（若內容不同高時好用） */
    gap: 30px;
}

.company{
    flex: 1;
    color: #123092;
    font-weight: bold; 
    font-size: 19px; 
    margin: 0;
    text-align: left; 
    padding: 20px; 
    background-color: #fcf3f9; 
    border-radius: 8px;
}

.company p{
    font-size: 16px;
}

.company_profile h2 {
    margin-bottom: 30px;
}

.company_profile span{
    display: inline-block;
    margin: 5px 10px 15px 0;
    border-radius: 20px;
    border: none;
    background-color: #ffffff;
    padding: 15px;
    font-size: 18px;
}

.patent_section {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.patent {
    background-color: #e8f2fc;
    border-radius: 15px;
    border: 2px solid #c8e6ff;
    padding: 20px;
}

.patent .bigger_text {
    font-size: 20px;
    font-weight: 600;
    text-align: left;
}

.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); 
}

a.top_button.single_link,
a.top_button.single_link:visited {
    font-size: 18px;
    cursor: pointer;
    border: none;
    background-color: transparent; 
    font-family: inherit;
    text-decoration: none !important;
    color: #080808; 
    letter-spacing: 0.1em; 
    font-weight: 500;     
    display: inline-block;
    padding: 0px 6px; 
}


@media (max-width: 992px) {
    .hamburger_bar {
        display: flex; 
    }

    a.top_button.single_link {
        display: block;
        width: 100%;
        text-align: left;
        padding: 15px 40px;
        border-bottom: 1px solid #f1f5f9 !important;
    }
    
    .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;
    }

    .benefits_grid {
        grid-template-columns: repeat(2, 1fr); 
        font-weight: 400;
    }
    .benefits {
        padding: 40px; 
    }
    .company_section {
        flex-direction: column; /* 改成上下排列，文字就不會擠在一起 */
        padding: 0 20px; /* 手機版的左右留白空隙 */
        margin: 20px auto;
    }
}

@media screen and (max-width: 850px) {

    .pic {
        width: 100%;
        max-width: 100%;
        height: auto;
    }

    .top_title, 
    .benefits {
        padding-left: 20px;
        padding-right: 20px;
    }
    
    .top_title {
        padding-bottom: 40px;
    }

    .top_title .title {
        font-size: 32px; 
    }
    
    .bigger_text {
        font-size: 24px;
    }

    .startups {
        padding-left: 40px; 
        padding-right: 40px;
    }

    .startups p {
        text-align: center;
        font-weight: 400;
    }

    .benefits_grid {
        grid-template-columns: 1fr; 
        font-weight: 400;
    }
    
    .benefits {
        padding: 30px 20px; 
    }
    
    .benefit_card, 
    .apply_card {
        padding: 25px 20px;
    }

    .self_box {
        flex-direction: column; 
        padding: 30px 20px; 
        gap: 30px;          
        box-sizing: border-box; 
        width: 100%;       
    }

    .self_introduction h2 {
        font-size: 22px; 
        word-break: break-word; 
        line-height: 1.4;
        margin-top: 0;
    }

    .self_box_right p {
        font-size: 16px; 
    }

    .self_introduction {
        padding: 10px 20px 40px; 
        box-sizing: border-box;
    }

    .section_box {
        padding: 50px 20px; 
    }

    .section_box .inner_wrap {
        flex-direction: column;
        gap: 30px;
        box-sizing: border-box; 
        align-items: center;  
    }

    .section_box.reverse .inner_wrap {
        flex-direction: column; 
        box-sizing: border-box;
    }

    .section {
        padding: 10px 30px 30px; 
    }
    
    .section .inner_wrap {
        gap: 30px;
    }

    .section_pic {
        width: 100%;
        max-width: 550px; 
        height: auto;
        margin: 0 auto;   
        display: block;
        box-sizing: border-box;
    }

    .impac_pic {
        max-width: 100%;
        height: auto;
        margin: 0 auto; 
        display: block;
    }

    .article_section, .company_profile {
        margin-left: 20px;
        margin-right: 20px;
        padding: 20px;
        line-height: 1.4;
    }
}