/* ===================================================
   selection.css — 自助查詢縣市 / 科別選擇介面
   使用頁面：manul_select.html
=================================================== */

.selection_container {
    width: 100%;
    max-width: 920px;
    padding: 16px 0;
    margin: 0 auto;
}

/* 按鈕群組容器 */
.selection_buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    padding: 20px;
    background: #f5f9ff;
    border: 1px solid #dce7f7;
    border-radius: var(--radius-md);
    box-shadow: 0 1px 6px rgba(10, 116, 218, 0.05);
}

/* 縣市 / 主科別按鈕 */
.selection_btn {
    padding: 10px 18px;
    border: 1.5px solid #b8d4f0;
    background: #ffffff;
    color: var(--text-primary);
    border-radius: var(--radius-sm);
    font-size: 0.93rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    min-width: 88px;
    text-align: center;
    letter-spacing: 0.3px;
    box-shadow: 0 1px 4px rgba(10, 116, 218, 0.06);
}

/* 細項科別按鈕 */
.selection_btn.sub_dept {
    background: #f0faf8;
    color: var(--text-secondary);
    border-color: #b2e0d8;
    font-size: 0.88rem;
    min-width: 108px;
}

.selection_btn:hover {
    background: #0a74da;
    color: #ffffff;
    border-color: #0a74da;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(10, 116, 218, 0.25);
}

.selection_btn.sub_dept:hover {
    background: var(--color-secondary);
    border-color: var(--color-secondary);
    color: #ffffff;
}

/* 返回按鈕（單顆） */
.back_btn {
    margin-top: 20px;
    padding: 10px 20px;
    background: #fff7ed;
    color: #b45309;
    border: 1.5px solid #fcd34d;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-weight: bold;
    transition: var(--transition);
}

.back_btn:hover {
    background: #fef3c7;
    border-color: var(--color-warning);
    color: #92400e;
}

/* 三合一返回按鈕組容器 */
.back_btn_group {
    display: flex;
    width: 100%;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 8px;
    overflow: hidden;
}

/* 三合一返回按鈕組 */
.back_btn_3 {
    flex: 1;
    padding: 12px 0;
    background: #fff7ed;
    color: #b45309;
    border: 1.5px solid #fcd34d;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-weight: bold;
    transition: var(--transition);
}

.back_btn_3:hover {
    background: #fef3c7;
    border-color: var(--color-warning);
    color: #92400e;
}

/* 行政區按鈕淡藍底色 */
.selection_btn.district_btn {
    background-color: #e7f3ff;
}

/* RWD */
@media (max-width: 600px) {
    .selection_btn { padding: 9px 11px; font-size: 0.88rem; min-width: 72px; }
    .selection_buttons { gap: 8px; padding: 12px; }

    .back_btn_group { flex-direction: column !important; border-radius: var(--radius-sm) !important; }
    .back_btn_3 { width: 100%; padding: 11px 0; font-size: 0.86rem; border-radius: 0; }
    .back_btn_group .back_btn_3:first-child { border-radius: 8px 8px 0 0; }
    .back_btn_group .back_btn_3:last-child  { border-radius: 0 0 8px 8px; }
}
