﻿@import url(//fonts.googleapis.com/earlyaccess/notosanstc.css);

@font-face {
    font-family: 'LXGW-Bold';
    src: url('../font/LXGW/LXGWWenKaiTC-Bold.ttf') format('ttf');
}

@font-face {
    font-family: 'LXGW-Light';
    src: url('../font/LXGW/LXGWWenKaiTC-Light.ttf') format('ttf');
}

@font-face {
    font-family: 'LXGW';
    src: url('../font/LXGW/LXGWWenKaiTC-Regular.ttf') format('ttf');
}

html {
    font-size: 100%;
}

#main-slider {
    margin-top: 0em;
}

    #main-slider img {
        height: 800px;
    }

/* 手機板配置 */
@media (max-width: 768px) {
    
    html {
        font-size: 80%!important;
    }

    #main-slider{
        margin-top: 7em!important;
    }

    #main-slider img {
        height: 400px !important;
    }

    #serivce_point .project_item {
        height: 322px !important;
        
    }
        #serivce_point .project_item h6 {
            font-size: 0.3em !important;
        }
        #serivce_point .project_item h4 {
            font-size: 0.5em !important;
        }

        #conpany-intorduct {
            font-size: 1em !important;
        }
}

#serivce_point .project_item{
    height: 462px;
}

.project_item {
    height: 282px;
    text-align: center;
    vertical-align: middle;
    margin: 0.5em;
    background-size: cover !important;
}

#conpany-intorduct {
    font-size: 1.7em;
}

#privacy_panel {
    font-family: "LXGW";
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
    position: relative;
    min-height: 100%;
}

body {
    overflow-y: scroll;
}

#main-menu {
    z-index: 9999;
    display: inline-block;
    position: fixed;
    background-color: #666666;
    left: 0;
    right: 0;
    top: 5em;
    bottom: 5em;
    min-height: 500px;
    opacity: 0.95;
    overflow-y: auto;
    font-family: LXGW;
    text-shadow: 1px 1px 3px #232323;
}

    #main-menu-btn-close {
        z-index: 10000;
        position: absolute;
        display: inline-block;
        right: 2rem;
        top: 2rem;
        font-size: 2rem;
        font-weight: bolder;
        cursor: pointer;
        color: white;
    }

#main-menu-content {
    position: absolute;
    left: 3%;
    right: 3%;
    top: 3rem;
}

    #main-menu-content h3 {
        margin-bottom: 15px;
        color: #ffa726;
        font-size: 1.2em;
    }

    #main-menu-content p {
        color: #ffffff;
        padding: 0.5em;
        font-size: 1.1em;
        border-radius: 0.5em;
    }

    #main-menu-content ul {
        padding-left: 0;
        list-style: none;
    }

        #main-menu-content ul li {
            transition: all 0.3s ease;
            list-style: none;
            padding: 0.5rem 1rem;
            border-radius: 0.5rem;
            margin-bottom: 0.5rem;
            /*background-color: #2e2e2e;*/
            color: #fff;
            cursor: pointer;
        }

            #main-menu-content ul li:hover {
                background: linear-gradient(90deg, #f57c00 0%, #ff9800 100%);
                color: #fff;
                transform: translateX(5px);
                box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
            }

        #main-menu-content ul li::before {
            content: "› ";
            color: #ffa726;
            margin-right: 4px;
        }

    #main-menu-content .row div:not(:first-child) p:hover {
        -webkit-transition: all .3s ease-in;
        -moz-transition: all .3s ease-in;
        -o-transition: all .3s ease-in;
        -ms-transition: all .3s ease-in;
        background-color: darkorange;
    }

#main-footer a, #main-footer a:active, #main-footer a:visited, #main-footer a:hover {
    color: white !important;
    text-decoration: none;
}

    #main-menu-content a, #main-menu-content a:active, #main-menu-content a:visited, #main-menu-content a:hover {
        color: white !important;
        text-decoration: none;
    }

#main-menu-btn-open {
    z-index: 10000;
    color: white;
    display: inline-block;
    position: fixed;
    right: 0;
    top: 9rem;
    font-size: 18px;
    padding: 5px 10px;
    border: 1px solid white;
    border-top-left-radius: 1em;
    border-bottom-left-radius: 1em;
    background-color: orangered;
    cursor: pointer;
    opacity: 0.45;
}

    #main-menu-btn-open:hover {
        -webkit-transition: all .3s ease-in;
        -moz-transition: all .3s ease-in;
        -o-transition: all .3s ease-in;
        -ms-transition: all .3s ease-in;
        opacity: 1;
    }

#main-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    line-height: 3em;
    height: 3em;
    color: white;
    background-color: #555555;
    --bs-text-opacity: 1;
    font-size: 0.8rem;
    padding: 0 0.5em 0 2em;
}

    #main-footer div {
        display: inline-block;
        width: 49%;
    }

#main-content {
    position: absolute;
    width: 100%;
}

#main-slider {
    width:100%;
}

#dycco-news-panel {
    margin-top: 83px;
    padding: 2em;
    width: 100%;
}


.dycco-block-panel {
    padding: 2em;
    width: 100%;
}

#dycco-more {
    position: relative;
    background: url("../img/Background/image01.jpeg");
    background-repeat: round;
    color: white;
    font-family: LXGW;
}

    #dycco-more hr {
        color: #ff7227;
        height: 1px;
        box-shadow: 1px 1px 1px #a3a3a3;
        opacity: 0.9;
    }

#dycco-more-info {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 1.5em;
    font-size: 1.5em
}



    .project_item > div {
        position: relative;
        height: 100%;
        background-color: #c36330;
        font-size: 48px;
        font-weight: bold;
        color: transparent;
        opacity: 0;
        cursor: pointer;
    }

        .project_item > div:hover {
            opacity: 1;
            color: white;
            -webkit-transition: all .6s ease-in;
            -moz-transition: all .6s ease-in;
            -o-transition: all .6s ease-in;
            -ms-transition: all .6s ease-in;
        }

#project-1 {
    background: url("../img/Performance/p01.png");
}

#project-2 {
    background: url("../img/Performance/p02.png");
}

#project-3 {
    height: 572px;
    background: url("../img/Performance/p03.png");
}

#project-4 {
    background: url("../img/Performance/p04.png");
}

#project-5 {
    background: url("../img/Performance/p05.png");
}

#main-nav {
    background-color: rgba(255, 255, 255, 0.85);
    height: 82px;
}

#serivce_point .project_item div {
    padding: 45% 0;
}


    #serivce_point .project_item div h6[data-target]:hover {
    
        text-decoration: underline #3D3D3D;
    }


#flag-home a, #flag-home a:visited, #flag-home a:active, #flag-home a:hover {
    color: #555555 !important;
}

#flag-home img {
    max-width: 40px;
    border: 1px solid #dedede;
}


.opacity-0 {
    opacity: 0;
}

.opacity-1 {
    opacity: 1;
}

.full-link {
    display: inline-block; /* 轉成區塊元素 */
    width: 90%; /* 佔滿父容器寬度 */
}

@media (min-width: 768px) {
    #main-wmap {
        height: calc(100vh - 82px - 34px); /* 全高扣掉 nav 與 footer */
    }
}

#main-wmap {
    position: relative;
    top: 82px;
    width: 100%;
    overflow: hidden;
}

    #main-wmap img {
        width: 100%;
        height: 100%;
        object-fit: cover; /* 讓圖片自適應填滿 */
    }

/* 標記點 */
.marker {
    position: absolute;
    transform: translate(-50%, -50%);
    padding: 6px 12px;
    background: rgba(255, 100, 0, 0.85); /* 橘色科技風 */
    color: #fff;
    font-size: 14px;
    font-weight: bold;
    border-radius: 20px;
    box-shadow: 0 0 12px rgba(255, 120, 0, 0.8);
    cursor: pointer;
    animation: pulse 1.8s infinite;
    cursor: pointer;
}

/* 呼吸光暈效果 */
@keyframes pulse {
    0% {
        transform: translate(-50%, -50%) scale(1);
        box-shadow: 0 0 10px rgba(255, 120, 0, 0.7);
    }

    50% {
        transform: translate(-50%, -50%) scale(1.2);
        box-shadow: 0 0 20px rgba(255, 150, 50, 1);
    }

    100% {
        transform: translate(-50%, -50%) scale(1);
        box-shadow: 0 0 10px rgba(255, 120, 0, 0.7);
    }
}

.news-section {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
}

.section-title {
    font-size: 22px;
    font-weight: bold;
    color: #d85a1a;
    margin-bottom: 20px;
    border-left: 6px solid #d85a1a;
    padding-left: 10px;
}

.news-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}


.news-card {
    background: #fff;
    border: 1px solid #eee;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    border-radius: 10px;
    padding: 15px 10px;
    transition: all 0.3s ease;
    cursor: pointer;
    border-left: 6px solid #d85a1a; /* 公司橘 */
}

    .news-card:nth-child(even) {
        background: #fff6f0;
    }

    .news-card:hover {
        background: linear-gradient(135deg, #ff8c42, #d85a1a);
        color: #fff;
        transform: translateY(-4px);
        box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    }

.news-date {
    font-size: 14px;
    font-weight: 500;
    opacity: 0.85;
}

.news-title {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
}

.news-more {
    font-size: 20px;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s;
}

.news-card:hover .news-more {
    transform: translateX(6px);
}

.btn-viewmore {
    display: inline-block;
    padding: 10px 20px;
    background: linear-gradient(135deg, #ff8c42, #d85a1a);
    color: #fff;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    border:none;
}

    .btn-viewmore:hover {
        background: linear-gradient(135deg, #d85a1a, #ff8c42);
        transform: translateY(-2px);
        box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    }


#es_panel .modal-header {
    background: linear-gradient(135deg, #ff7b00, #ff5100) !important;
}

.text-orange {
    color: #ff5100;
}

.station-card {
    transition: transform 0.2s ease, box-shadow 0.3s ease;
}

    .station-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 20px rgba(255, 81, 0, 0.4);
    }

    .station-card .st-addr{
        cursor: pointer;
    }


.hero {
    color: #ffffff;
    padding: 120px 20px;
    text-align: center;
    text-shadow: 3px 3px 3px #000000;
}
