:root {
    --primary-blue: #3b82f6;
    --bg-gray: #f8fafc;
    --card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --hover-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0; padding: 0; box-sizing: border-box;
}
body {
    background-color: #e9ecf1;
}
h1 {
    color: #143350;
    font-size: 2.35em;
}
h1 + p {
    font-size: 1.2em;
    color: #143350;
}
.wrapper {
    max-width: 1200px;
    margin: 0 auto;
}
.header {
    text-align: center;
    margin-bottom: 10px;
}
.header h1 {
    font-size: clamp(1.5rem, 5vw, 2rem); 
    color: #1e293b;
    margin-bottom: 12px;
}
.header p {
    color: #333;
    margin-bottom: 0;
}

/* 3. CSS Grid 網格佈局 */
.grid-container {
    display: grid;
    gap: 20px;
    /* 預設：手機版 1 欄 */
    grid-template-columns: repeat(1, 1fr);
}



/* 4. 卡片與互動效果 */
.card {
    background: #ffffff;
    border-radius: 20px;
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid #f1f5f9;
    box-shadow: var(--card-shadow);
}

/* 懸停：向上位移、陰影變深、邊框變藍 */
.card:hover {
    transform: translateY(-10px);
    box-shadow: var(--hover-shadow);
    border-color: var(--primary-blue);
}

.card-title {
    font-size: 15px;
    font-weight: 600;
    text-align: center;
    color: #475569;
    margin-bottom: 15px;
    transition: color 0.3s;
}
.card img {
    width: auto;
    height: 3em;
    max-width: 15em;
}
.card:hover .card-title {
    color: #000;
}

/* 圖標縮放動畫 */
.icon-box {
    font-size: 42px;
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.card:hover .icon-box {
    transform: scale(1.2) rotate(3deg);
}

.blue { color: #3b82f6; }
.dark { color: #334155; }
.win { color: #00a4ef; }
.dooray { font-size: 32px; font-weight: bold; font-style: italic; color: #2563eb; }
.container.logos {
    display: grid;
    max-width: 1100px;
    margin-bottom: 30px;
    width: 100%;
    gap: 20px;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.wrap {
    padding: 60px 0 0;
    background-color: #e9ecf1;
}

section {
    padding: 80px 0;
    margin: auto;
}

.navbar-nav {
    font-size: 19px;
}
.nav-link {
    color: #333 !important;
    font-weight: 500;
    transition: color 0.3s;
}
.dropdown-toggle::after {
    display: none!important;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.types {
    display: block;
    text-align: center;
}
.types > span {
    display: inline-block;
    text-align: center;
    margin: 0 auto 1em;
    background-color: #252d3a;
    color: #fff;
    padding: 3px 30px;
    border-radius: 20em;
    font-size: 1.1em;
}

.hero {
            background-image: url(../images/contect_main.png);
            background-size: cover;
            background-repeat: no-repeat;
            background-position: center;
            color: white;
            text-align: center;
            padding: 70px 20px 130px;
        }
.ccontainer { 
    margin: -100px auto 0px;  position: relative; }


.tabs {
            overflow: hidden;
        }

        /* 頁籤頭部 */
        .tab-header {
            display: flex;
            max-width: 702px;
            margin: auto;
        }

        .tab-btn {
            flex: 1;
            border: none;
            border-radius: 50em;
            background: #485262c7;
            color: #c9c9c9;
            cursor: pointer;
            font-size: 1.2em;
            line-height: 2;
            padding: 5px;
            margin: 0 10px;
            transition: 0.3s;
            outline: none;
        }

        /* 啟動狀態樣式 */
        .tab-btn.active {
            
           background: #12203f;
            opacity: 1;
            border: 0;
            color: #fff;
        }

        /* 內容區塊 */
        .tab-panel {
            display: none; /* 預設隱藏 */
            padding: 20px 0;
            animation: slideIn 0.3s ease-out;
        }

        .tab-panel.active {
            display: block; /* 激活時顯示 */
        }
        .container {
            max-width: 1320px;
            margin: 0 auto;
            padding: 0 20px;
        }
        html[lang="en"] .tab-btn {
            line-height: 1.2;
            padding: 5px;
        }
        html[lang="en"] h1 + p {
            max-width: 40vw;
            margin: auto;
            line-height: 1.35;
        }
        @keyframes slideIn {
            from { opacity: 0; transform: translateX(-10px); }
            to { opacity: 1; transform: translateX(0); }
        }
        @media screen and (max-width:1366px) {
            
        }
        @media screen and (max-width:1280px) {
            .tab-btn {
                font-size: 1em;
                margin: 0 ;
                padding: 1em 0;
            }
        }
        
        @media (max-width: 576px) {
            .hero {
                padding: 10% 10% 30%;
            }
            .tab-btn {
                padding: .5em 0;
                line-height: 1.35;
            }
            .card {
                padding: 10%;
            }
        }