/* --- 1. 上限表格排版優化 --- */
.limit-table th { text-align: center; }
.limit-table td { vertical-align: middle; text-align: center; }

/* 讓職業列表在格子內整齊排列 */
.class-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 5px;
}
.class-tag {
    display: inline-block;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.9rem;
    color: #ddd;
    white-space: nowrap;
}
.text-highlight {
    font-size: 1.3rem;
    font-weight: bold;
    color: #fff;
    font-family: monospace;
    letter-spacing: 1px;
}
.text-red { color: #ff5252; margin-right: 5px; }
.text-blue { color: #40c4ff; margin-right: 5px; }

/* --- 2. 併排顯示容器 (Flexbox) --- */
.dual-tables-wrapper {
    display: flex;
    flex-direction: column; /* 手機版預設：上下排列 */
    gap: 20px;
}
.table-half {
    width: 100%;
}
.no-margin-top {
    margin-top: 0 !important; /* 移除 section 上方多餘的間距，讓併排對齊 */
}

/* 電腦版 (寬度大於 1024px) */
@media (min-width: 1024px) {
    .dual-tables-wrapper {
        flex-direction: row; /* 改為左右排列 */
        align-items: flex-start; /* 頂部對齊 */
    }
    .table-half {
        flex: 1; /* 平均分配寬度 */
        width: 50%; /* 強制各佔一半 */
    }
}

/* --- 其他通用樣式 --- */
.alert-box {
    display: flex;
    align-items: center;
    background: rgba(76, 175, 80, 0.1);
    border-left: 5px solid #4caf50;
    padding: 20px;
    border-radius: 4px;
    margin: 20px 0;
}
.alert-icon { font-size: 2rem; color: #4caf50; margin-right: 20px; }
.alert-content h4 { margin: 0 0 5px 0; color: #81c784; font-size: 1.1rem; }
.alert-content p { margin: 0; color: #fff; font-size: 1rem; }
.divider { border: 0; border-top: 1px solid rgba(255,255,255,0.1); margin: 30px 0; }

.class-tabs-container {
    margin-bottom: 20px;
    background: rgba(0,0,0,0.3);
    padding: 15px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.1);
}
.class-label { color: #fbb750; font-weight: bold; margin-bottom: 10px; }
.class-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.tab-btn {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.2);
    color: #ccc;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.95rem;
}
.tab-btn:hover { background: rgba(255,255,255,0.15); color: #fff; }
.tab-btn.active {
    background: linear-gradient(to bottom, #fbb750, #d4af37);
    color: #000;
    border-color: #fbb750;
    font-weight: bold;
    box-shadow: 0 0 10px rgba(251, 183, 80, 0.4);
}

.data-cell { display: none; }
.data-cell.active {
    display: table-cell;
    color: #fff;
    font-weight: bold;
    font-family: monospace;
    font-size: 1.05rem;
    text-align: center;
}
.fixed-col {
    background: rgba(0,0,0,0.2);
    color: #aaa;
    font-weight: normal;
    text-align: center;
}