@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+TC&display=swap');

body {
    font-family: 'Noto Sans TC', 'Noto Sans', Arial, sans-serif;
    background: #f8f8f8;
    height: 100%;
    margin: 0;
    padding: 0;
    color: #333;
}

.container {
    max-width: 1140px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 15px;
    padding-right: 15px;
}

.nav-container {
    max-width: 1920px;
}

h1 {
    font-size: 28px;
    border-left: 5px solid #00B0F0;
    padding-left: 15px;
    color: #00B0F0;
}

.news-list {
    list-style: none;
    padding: 0;
    margin-top: 30px;
}

.news-list li {
    padding: 15px 0;
    border-bottom: 1px dotted #ccc;
}

.news-list .date {
    display: inline-block;
    width: 80px;
    color: #999;
    font-weight: bold;
}

.news-list .title {
    text-decoration: none;
    color: #333;
}

.news-list .title:hover {
    color: #00B0F0;
}

.date {
    color: #999;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.back-link {
    display: inline-block;
    margin-bottom: 20px;
    text-decoration: none;
    color: #555;
}

.back-link:hover {
    text-decoration: underline;
}

.content {
    line-height: 1.8;
    margin-top: 20px;
    font-size: 1rem;
}

.content embed,
.content iframe {
    display: block;
    width: 100%;
    height: 600px;
    border: none;
    margin-top: 20px;
}

.nav-link {
    color: #222 !important;
}

.navbar.fixed-top {
    z-index: 1000;
    background-color: #FFF !important;
}

nav.navbar {
    border-bottom: 3px solid #00B0F0;
}

.dropdown-menu {
    /* background-color: #0a1a2f; */
    border: 1px solid #929292;
}

.dropdown-item {
    color: #222;
}

.dropdown-item:hover {
    background-color: #00B0F0;
}


.swiper {
    width: 100%;
    height: 500px;
}

.swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 50%;
    /* 往下移一些，10% 越大往下越多 */
    image-rendering: -webkit-optimize-contrast;
    /* Chrome */
    image-rendering: crisp-edges;
}

.img_cont {
    width: 150px;
    height: 128px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    overflow: hidden;
}

.img_cont img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.category a.btn {
    margin-top: 5px;
}

footer {
    background: #00B0F0;
    color: #FFF;
    padding: 30px 0;
}

footer a {
    color: #FFF;
    text-decoration: none;
    margin-right: 15px;
}


.activity-box {
    width: 100%;
    height: 200px;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    transition: transform 0.3s ease;
}

.activity-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
    transition: transform 0.3s ease;
    /* opacity: 0.3; */
}

.activity-box:hover img {
    transform: scale(1.5);
}

.activity-btn {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.9);
    color: white;
    border: 1px solid #929292;
    padding: 8px 20px;
    border-radius: 999px;
    text-decoration: none;
    width: 110px;
    text-align: center;
}

@media (max-width: 992px) {

    .category a.btn {
        margin-bottom: 1rem;
        display: inline-block;
    }
}

#gotop {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #0a1a2f;
    color: white;
    padding: 12px 15px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    display: none;
}

.news-container {
    width: 90%;
    min-height: 600px;
    margin: 50px auto;
    background: #fff;
    padding: 30px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.news-item:hover {
    background-color: #e7ecf5;
    transition: background-color 0.2s ease;
}

.news-link:hover {
    color: #0a1a2f;
    transition: color 0.2s ease;
}

.filter-buttons {
    margin-top: 40px;
}

.filter-buttons .btn {
    padding: 10px 24px;
    font-size: 16px;
    margin-left: 10px;
}

table thead th.head-bg {
    background-color: #0a1a2f;
    color: white;
    text-align: center;
}

/*! 淺藍按鈕 */
.btn-custom {
    background-color: #00B0F0;
    border-color: #00B0F0;
    color: #fff;
    transition: 0.3s;
}

.btn-custom:hover {
    background-color: #58cbf5;
    border-color: #58cbf5;
    color: #fff;
}

.btn-outline-custom {
    color: #00B0F0;
    /* 文字顏色 */
    border: 1px solid #00B0F0;
    /* 邊框顏色 */
    background-color: transparent;
    transition: 0.3s ease;
}

.btn-outline-custom:hover {
    background-color: #00B0F0;
    /* hover 背景色 */
    color: white;
    /* hover 字色 */
}

/*! 淺紅按鈕 */
.btn-custom-red {
    background-color: #fa4f88;
    border-color: #fa4f88;
    color: #fff;
    transition: 0.3s;
}

/*! footer 改寬一點 */
.footer-container {
    max-width: 2000px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 15px;
    padding-right: 15px;
}

/*! footer 飄起問題 */
html,
body {
    height: 100%;
}

.wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.wrapper .container {
    flex-grow: 1;
}

/*! 比較按鈕 */
.compare-label {
    background-color: rgba(255, 255, 255, 0.6);
    /* 初始為 80% 白背景 */
    border: 1px solid #00B0F0;
    transition: background-color 0.3s ease;
}

.btn-check:checked+.compare-label {
    background-color: #00B0F0;
    /* 選取時改為主色 */
    color: white;
}

/*! footer 聯絡我們輸入框 */
.dark-input {
    background-color: #333;
    color: #ddd;
    border: 1px solid #555;
    border-radius: 5px;
    padding: 12px;
}

.dark-input::placeholder {
    color: #888;
}

.dark-input:focus {
    background-color: #222;
    color: #fff;
    border-color: #777;
    box-shadow: none;
}

.contact-form h5 {
    color: #fff;
    margin-bottom: 20px;
}

/*! radio樣式 */
.form-check-input:checked {
    background-color: #00B0F0;
    border-color: #00B0F0;
}

/*! news小標籤 */
.news-type-label {
    font-size: 16px;
    padding: 2px 5px;
    border: 1px solid;
    margin: 0 5px;
    display: inline-block;
    border-radius: 3px;
}

/* 顏色設定 */
.blue {
    color: #1890ff;
    border-color: #1890ff;
}

.red {
    color: #ff4d4f;
    border-color: #ff4d4f;
}

.gray {
    color: #888888;
    border-color: #888888;
}

/*@ 定製動畫 */
.bounce-btn {
    animation: bounce 1s infinite ease-in-out;
    transition: transform 0.2s;
}

.bounce-btn:hover {
    animation-play-state: paused;
    /* 滑鼠懸停時暫停動畫 */
    transform: scale(1.05);
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    33% {
        transform: translateY(-4px);
    }

    66% {
        transform: translateY(-2px);
    }
}

/*! 動畫 */
.animation {
    margin-top: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.animation-container {
    position: relative;
    width: 950px;
    height: 350px;
    overflow: hidden;
}

/* 共同設定 */
.main-img,
.sub-img,
.tag-button {
    position: absolute;
    transition: all 0.5s ease;
}

.main-img,
.sub-img {
    top: 50%;
    transform: translateY(-50%);
    object-fit: cover;
}

.tag-button {
    top: 10px;
    /* 讓按鈕固定在最上方 */
    font-size: 1.2rem;
    padding: 8px 16px;
    margin-left: 30px;
    border-radius: 20px;
    color: white;
    border: none;
    opacity: 0;
    z-index: 10;
    /* 保證按鈕在圖片之上 */
    transform: translateY(0);
}

/* 個別按鈕顏色 */
.btn-panelpc {
    background-color: #003366;
}

.btn-sbc {
    background-color: #3366cc;
}

.btn-som {
    background-color: #66a3ff;
}

.btn-os {
    background-color: #99c2ff;
}

.btn-app {
    background-color: #cce0ff;
    color: #333;
}

.tag-button:hover {
    transform: scale(1.05);
}

input[type="radio"]:disabled {
    opacity: 0.4 !important;
    /* 讓按鈕本體更淡 */
    pointer-events: none;
}

input[type="radio"]:disabled+label {
    opacity: 0.3 !important;
    /* 讓 label 跟著變淡 */
}


/*! 手機版 RWD */
@media (max-width: 768px) {

    /* Banner 文字區塊位置與樣式 */
    .swiper-slide {
        position: relative;
    }

    .swiper-slide .banner-text,
    .swiper-slide .banner-pos2,
    .swiper-slide .banner-pos3 {
        position: absolute;
        left: 50%;
        top: 55%;
        transform: translate(-50%, -50%);
        width: 85%;
        background: rgba(0, 0, 0, 0.45);
        padding: 10px 16px;
        text-align: center;
        border-radius: 12px;
        z-index: 10;
        color: #fff;
    }

    .swiper-slide .banner-text-L {
        font-size: 16px;
        line-height: 1.3;
    }

    .swiper-slide .banner-text-s {
        font-size: 10px;
        margin-top: 6px;
    }

    .swiper-slide .banner-text .btn {
        margin-top: 8px;
        font-size: 13px;
        padding: 5px 14px;
    }

    /* 商品分類 */
    #products .category {
        margin-bottom: 30px;
    }

    #products .category h6 {
        font-size: 18px;
    }

    #products .img_cont {
        width: 100px;
        height: 90px;
    }

    #products .img_cont img {
        width: auto;
        height: 100%;
    }

    /*! News 區塊 */
    .news-list li {
        display: block;
        padding: 8px 0;
        font-size: 14px;
        color: #333;
    }

    .news-list li .date,
    .news-list li .news-type-label,
    .news-list li .title {
        display: inline;
        vertical-align: middle;
    }

    .news-list li .date {
        margin-right: 6px;
        color: #999;
        font-size: 13px;
    }

    .news-list li .news-type-label {
        margin-right: 6px;
        font-size: 11px;
        padding: 2px 6px;
        border-radius: 3px;
    }

    .news-list li .title {
        font-size: 14px;
        white-space: nowrap;
        text-overflow: ellipsis;
        overflow: hidden;
        max-width: 100%;
    }

    /*! 認證圖片排版 */
    .cert-strip {
        flex-wrap: wrap;
        gap: 20px;
        justify-content: center;
    }

    .cert-strip img {
        max-height: 60px;
        width: auto;
    }

    /*! PARTNER */
    .partner-logo,
    .partner-logo-big {
        height: auto;
        margin: 12px auto;
        display: block;
    }

    .partner-logo {
        max-height: 45px;
    }

    .partner-logo-big {
        max-height: 80px;
    }

    /*! 手機螢幕排版調整 */
    @media (max-width: 768px) {
        .partner-row-3 .col-6 {
            flex: 0 0 33.3333%;
            max-width: 33.3333%;
        }

        .partner-row-4 .col-6 {
            flex: 0 0 50%;
            max-width: 50%;
        }

        /*! footer */
        .footer-content {
            flex-direction: column;
            text-align: center;
        }

        .footer-content .col-6 {
            width: 100%;
            max-width: 100%;
        }

        .footer-content iframe {
            width: 100% !important;
            height: 180px;
            margin-bottom: 20px;
        }

        .footer-social .social-icon {
            width: 38px;
            height: 38px;
            font-size: 16px;
        }

        .footer-social .ptc-img {
            width: 34px;
            height: 34px;
        }

        /*! 下載 */
        .news-container {
            overflow-x: auto;
        }

        .news-container table {
            min-width: 640px;
            /* ⬅️ 最小寬度避免斷行 */
            width: 100%;
            white-space: nowrap;
            /* ⬅️ 不自動換行 */
            font-size: 14px;
            word-break: break-word;
        }

        .news-container table td,
        .news-container table th {
            padding: 8px;
            vertical-align: middle;
            font-size: 14px;
        }

        .news-container .table thead {
            font-size: 13px;
        }

        .news-container td div {
            font-size: 11px;
            font-family: monospace;
            color: #888;
        }

        .news-container h1 {
            font-size: 20px;
            margin-top: 10px;
        }

        .news-container .back-link {
            display: inline-block;
            margin-bottom: 10px;
            font-size: 14px;
        }

        .news-container .btn-custom.btn-sm,
        .news-container .btn-secondary.btn-sm {
            padding: 4px 10px;
            font-size: 13px;
        }

        .news-container .btn-outline-primary {
            padding: 5px 10px;
            font-size: 13px;
            white-space: nowrap;
        }

    }

    .content embed,
    .content iframe {
        display: block;
        /* 轉成區塊元素 */
        width: 100%;
        /* 滿版寬度 */
        height: auto;
        /* 高度自動，依比例縮放 */
        min-height: 500px;
        /* 下限高度，可依實際需求微調 */
        max-width: 100%;
        /* 不超出容器 */
        border: none;
        /* 取消多餘邊框 */
    }
}