:root {
    --primary-color: #0f172a;
    --text-main: #334155;
    --text-light: #64748b;
    --bg-body: #f8fafc;
    --bg-card: #ffffff;
    --border-color: #e2e8f0;
    
    --da-color: #2563eb;
    --da-bg-light: #eff6ff;
    --da-border: #bfdbfe;
    
    --ua-color: #0d9488;
    --ua-bg-light: #f0fdfa;
    --ua-border: #99f6e4;
}

/* =========================================
   新增/修改區塊：解決 Footer 無法置底的問題
========================================= */
html {
    height: 100%;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color:#f8fafc;
    color:#334155;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    margin: 0; /* 確保沒有預設外距 */
    /* 以下三行為 Flexbox 完美置底關鍵 */
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* 讓 main 區塊自動延伸填滿剩餘高度，把 footer 擠到最下面 */
main {
    flex: 1 0 auto;
}

/* 確保 header 和 footer 本身的高度不會被壓縮 */
header, footer {
    flex-shrink: 0;
}
/* ========================================= */


.banner {
    background-image: url("/img/banner-28.jpg");
    background-color: rgb(0 0 0 / 37%);
    background-blend-mode: multiply;
    background-repeat: no-repeat;
    background-position: 50% 50% !important;
    background-size: cover;
    height: 20vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    text-align: center;
}

.banner h4 {
    color: #fff;
}

a {
    list-style: unset;
}

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 1.5rem;
}

.w3-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Plans Section */
.section-heading-center {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 2rem;
    text-align: center;
}

.plan-card-new {
    background-color: var(--plan-new-bg);
    border-color: #bfdbfe;
}

.plan-label {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.label-existing { color: var(--text-light); }
.label-new { color: var(--plan-new); }

.plan-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.plan-desc {
    color: var(--text-light);
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
}

.check-list {
    list-style: none;
}

.check-list li {
    display: flex;
    align-items: center;
    font-size: 0.875rem;
    color: #334155;
    margin-bottom: 0.75rem;
}

.check-list svg {
    width: 1.25rem;
    height: 1.25rem;
    margin-right: 0.75rem;
    flex-shrink: 0;
}

.icon-check-existing { color: var(--plan-existing); }
.icon-check-new { color: var(--plan-new); }


/* Grid Layouts */
.grid-2-cols {
    display: grid;
    /* 將容器分為兩欄，每欄各佔 1 分額（也就是 1:1，各 50%） */
    grid-template-columns: repeat(2, 1fr); 
    /* 設定兩個框框之間的間距，您可以根據需求調整這個數值 */
    gap: 2rem; 
    /* 確保容器寬度填滿 */
    width: 100%;
    margin-bottom: 4rem;
}

/* Cards General */
.card {
    background-color: #fff;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.025);
    border: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    position: relative;
}

/* Product Cards Specific */
.product-card-da {
    border-color: #f1f5f9;
}

.product-card-ua {
    border-color: var(--ua-border);
    box-shadow: 0 0 0 1px rgba(20, 184, 166, 0.2), 0 10px 15px -3px rgba(0, 0, 0, 0.05);
}

/* Badges */
.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1rem;
    width: fit-content;
}

.badge-da {
    background-color: var(--da-bg-light);
    color: var(--da-color);
    border: 1px solid var(--da-border);
}

.badge-ua {
    background-color: var(--ua-bg-light);
    color: var(--ua-color);
    border: 1px solid var(--ua-border);
}

.badge-corner {
    position: absolute;
    top: 0;
    right: 0;
    background-color: var(--ua-color);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 0.75rem;
    border-bottom-left-radius: 0.5rem;
}

.badge-floating {
    position: absolute;
    top: -0.75rem;
    right: 1.5rem;
    background-color: var(--plan-new);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

/* Typography within cards */
.card-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.card-subtitle {
    font-size: 0.875rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
    font-style: italic;
}

.section-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
}

.section-title svg {
    width: 1.25rem;
    height: 1.25rem;
    margin-right: 0.5rem;
}

.icon-da { color: var(--da-color); }
.icon-ua { color: var(--ua-color); }

.paragraph-text {
    color: var(--text-light);
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
}

/* Table Section */
.table-container {
    background-color: var(--bg-card);
    border-radius: 0.75rem;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-color);
    overflow: hidden;
    overflow-x: auto;
    margin-bottom: 4rem;
}

.table-container a {
    text-decoration:none;
}

.comparison-table {
    width: 100%;
    text-align: left;
    border-collapse: collapse;
}

.comparison-table th {
    padding: 1rem 1.5rem !important;
    font-weight: 600;
    color: #475569;
    background-color: #f8fafc;
    border-bottom: 1px solid var(--border-color);
}

.comparison-table td {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #f1f5f9;
}

.comparison-table tr:last-child td {
    border-bottom: none;
}

.comparison-table tr:hover td {
    background-color: #f1f5f9;
}

.td-dim { color: #64748b; }
.td-bold-ua { color: #0f766e; font-weight: 500; }
.td-bold-da { color: #1e293b; font-weight: 500; }
.td-header { 
    font-weight: 500; 
    color: var(--primary-color); 
    background-color: #f8fafc; 
}

/* Lists */
.feature-list {
    list-style: none;
    padding: 0;
}

.feature-list li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
    font-size: 0.875rem;
}

.Feature-box {
    display: flex; 
    width: 100%; 
}

.Feature-content {
    display: flex; 
    flex-direction: column; 
    width: 100%; 
    align-content: center;
}

.Feature-title{
    font-weight: 600;
    color: #000;
    display: flex;
    text-align: left;
    align-items: center;
    display: block;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
}

.feature-desc {
    color: var(--text-light);
}


.bullet-icon {
    background-color: #f1f5f9;
    border-radius: 9999px;
    padding: 0.25rem;
    margin-right: 0.75rem;
    margin-top: 0.125rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bullet-dot-da { width: 0.5rem; height: 0.5rem; background-color: #2563eb; border-radius: 50%; }
.bullet-dot-ua { width: 0.5rem; height: 0.5rem; background-color: #2563eb; border-radius: 50%; }

/* button */
.button-seemore {
    background-color: #ffc107;
    border-radius: 100px;
    cursor: pointer;
    display: inline-block;
    font-family: CerebriSans-Regular,-apple-system,system-ui,Roboto,sans-serif;
    padding: 7px 20px;
    text-align: center;
    text-decoration: none;
    transition: all 250ms;
    border: 0;
    font-size: 10px;
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;
}

.button-seemore:hover {
    transition: all 0.2s ease-in-out;
}

.button-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 2rem;

}

/* 桌機版選單 (預設顯示) */
.flex-menu.desktop-menu {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-bottom: 30px;
}

/* OPC 按鈕基本樣式 */
.button-OPC {
    min-width: 140px;
    margin-right: 0%;
    margin-bottom: 0.5%;
    padding: 8px 16px;
    font-size: 14px;
    background-color: #f8f9fa;
    border: 1px solid #ced4da;
    border-radius: 4px;
    color: #495057;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

.button-OPC:hover {
    background-color: #e2e6ea;
}

/* OPC 按鈕被選中時的樣式 */
.button-OPC.active {
    background-color: #007bff;
    color: #fff;
    border-color: #007bff;
    font-weight: bold;
}

.table-responsive thead {
    background: #274770;
}

.table-responsive tr {
    background: #fff;
}

/* 手機版下拉選單 (預設隱藏) */
.mobile-menu {
    display: none;
    margin-bottom: 30px;
    text-align: center;
}

.opc-dropdown {
    width: 100%;
    max-width: 400px;
    padding: 10px;
    font-size: 16px;
    border-radius: 4px;
}

@media (max-width:768px) {

    .Feature-box {
        display: flex; 
        flex-direction: column;
        width: 100%;
    }
    
    .mobile-menu {
        display: block; /* 顯示下拉選單 */
    }

    /* 在手機螢幕時隱藏桌機按鈕，顯示下拉選單 */
    .flex-menu.desktop-menu {
        display: none;
    }

    .grid-2-cols {
        grid-template-columns: 1fr; /* 手機版變成單欄 */
    }

    .banner {
        height: 10vh;
    }
}