.w100 {
    width: 100%;
}
.show400{display:none!important;}
.hide400{display:block;}
.pager-btn {
display: inline-flex;
justify-content: center;
align-items: center;
box-sizing: border-box;
text-decoration: none;
}

@media (max-width: 720px) {
	.show400{display:block!important;}
	.hide400{display:none!important;}
}
/* ===== 群飛表格 - 桌面版 ===== */
.cert-detail-table.cert-detail-table-swarm {
    width: 100%;
    min-width: 680px;
    table-layout: fixed;
    border-collapse: separate;
    border-spacing: 0;
}

.cert-detail-table.cert-detail-table-swarm .col-index {
    width: 8%;    /* ✅ 稍微縮小，讓其他欄位有更多空間 */
    min-width: 60px;  /* ✅ 確保項次不會被擠壓 */
}

.cert-detail-table.cert-detail-table-swarm .col-value {
    width: 22.5%;
}

.cert-detail-table.cert-detail-table-swarm th,
.cert-detail-table.cert-detail-table-swarm td {
    padding: 12px 16px !important;
    text-align: center !important;    /* ✅ 強制置中 */
    vertical-align: middle !important;
    border: 1px solid rgba(0, 94, 152, 0.15) !important;  /* ✅ 加上完整格線 */
}

.cert-detail-table.cert-detail-table-swarm thead th {
    background: #f6fbfe;
    color: #0a4f7a;
    font-weight: 950;
    white-space: nowrap;
    text-align: center !important;   /* ✅ 標題也置中 */
}

/* ===== 群飛表格 - 手機版 (≤720px) ===== */
@media (max-width: 720px) {
    .cert-detail-table.cert-detail-table-swarm {
        min-width: 0 !important;
        width: 100% !important;
        table-layout: auto !important;
        border-collapse: collapse !important;
    }

    /* 隱藏 colgroup（手機版不需要） */
    .cert-detail-table.cert-detail-table-swarm colgroup {
        display: none !important;
    }

    /* 隱藏表格標題列（改用 data-label 顯示） */
    .cert-detail-table.cert-detail-table-swarm thead {
        display: none !important;
    }

    /* 每筆資料變成獨立卡片 */
    .cert-detail-table.cert-detail-table-swarm tbody,
    .cert-detail-table.cert-detail-table-swarm tbody tr {
        display: block !important;
        width: 100% !important;
    }

    .cert-detail-table.cert-detail-table-swarm tbody tr {
        background: #fff !important;
        border: 1px solid rgba(0, 94, 152, 0.14) !important;
        border-radius: 12px !important;
        margin-bottom: 12px !important;
        padding: 4px 0 !important;
        overflow: hidden !important;
    }

    .cert-detail-table.cert-detail-table-swarm tbody tr:last-child {
        margin-bottom: 0 !important;
    }

    /* 每個欄位變成一行，前面顯示標籤 */
    .cert-detail-table.cert-detail-table-swarm tbody td {
    display: flex !important;
    align-items: center !important;       /* ✅ 垂直置中 */
    justify-content: center !important;   /* ✅ 水平置中 */
    gap: 8px !important;
    width: 100% !important;
    padding: 8px 14px !important;
    border-bottom: 1px solid rgba(0, 94, 152, 0.08) !important;
    background: transparent !important;
    font-size: 0.95rem !important;
    line-height: 1.5 !important;
    box-sizing: border-box !important;
    }

    .cert-detail-table.cert-detail-table-swarm tbody td:last-child {
        border-bottom: 0 !important;
    }

    /* 顯示欄位標籤 */
    .cert-detail-table.cert-detail-table-swarm tbody td::before {
        content: attr(data-label);
        display: inline-block !important;
        flex: 0 0 70px !important;
        color: #0a4f7a !important;
        font-weight: 950 !important;
        font-size: 0.85rem !important;
        letter-spacing: 0.02em !important;
    }

    /* 值本身的樣式 */
    .cert-detail-table.cert-detail-table-swarm tbody td > * {
        flex: 1 !important;
        min-width: 0 !important;
        word-break: break-word !important;
    }

    /* 如果 td 內是純文字（沒有其他標籤） */
    .cert-detail-table.cert-detail-table-swarm tbody td:not(:has(*)) {
        display: flex !important;
    }
}
/* ✅ 讓「項次」的標籤寬度縮小，內容靠左對齊 */
.cert-detail-table.cert-detail-table-swarm tbody td[data-label="項次"] {
    justify-content: flex-start !important;   /* 項次靠左 */
}

.cert-detail-table.cert-detail-table-swarm tbody td[data-label="項次"]::before {
    flex: 0 0 40px !important;   /* 標籤只佔 40px */
}

/* ✅ 其他欄位維持置中 */
.cert-detail-table.cert-detail-table-swarm tbody td:not([data-label="項次"]) {
    justify-content: center !important;
}
.cert-detail-table.cert-detail-table-swarm tbody td::before {
    content: attr(data-label);
    display: inline-block !important;
    flex: 0 0 70px !important;
    color: #0a4f7a !important;
    font-weight: 950 !important;
    font-size: 0.85rem !important;
    letter-spacing: 0.02em !important;
    text-align: center !important;   /* ✅ 標籤文字置中 */
}