body { font-family: "Microsoft JhengHei", sans-serif; background-color: #f4f4f4; padding: 20px; }
.container { max-width: 1200px; margin: 0 auto; background: white; padding: 20px; border-radius: 8px; box-shadow: 0 2px 10px rgba(0,0,0,0.1); }
h1 { text-align: center; color: #333; }

/* 篩選區塊樣式 */
.filters { display: flex; gap: 15px; margin-bottom: 20px; flex-wrap: wrap; background: #eef; padding: 15px; border-radius: 5px; }
.filter-item { display: flex; flex-direction: column; }
label { font-size: 14px; font-weight: bold; margin-bottom: 5px; }
select { padding: 8px; border: 1px solid #ccc; border-radius: 4px; min-width: 150px; }

/* 表格樣式 */
table { width: 100%; border-collapse: collapse; margin-top: 10px; }
th, td { padding: 12px; text-align: left; border-bottom: 1px solid #ddd; }
th { background-color: #2c3e50; color: white; cursor: pointer; user-select: none; white-space: nowrap; }
th:hover { background-color: #34495e; }
tr:hover { background-color: #f1f1f1; }

/* 排序箭頭指示 */
.sort-icon { font-size: 0.8em; margin-left: 5px; }

/* 搜尋輸入框 */
.search-input { padding: 8px; border: 1px solid #ccc; border-radius: 4px; min-width: 200px; font-size: 14px; }
.search-input:focus { outline: none; border-color: #2c3e50; box-shadow: 0 0 3px rgba(44, 62, 80, 0.3); }

/* 工具列 */
.toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; flex-wrap: wrap; gap: 10px; }
.result-count { font-size: 14px; color: #555; }
.toolbar-actions { display: flex; gap: 8px; }

/* 按鈕通用 */
.btn { padding: 8px 16px; border: none; border-radius: 4px; cursor: pointer; font-size: 14px; transition: background-color 0.2s, transform 0.1s; }
.btn:active { transform: scale(0.97); }

/* 重置按鈕 */
.btn-reset { background-color: #95a5a6; color: white; }
.btn-reset:hover { background-color: #7f8c8d; }

/* 匯出按鈕 */
.btn-export { background-color: #27ae60; color: white; }
.btn-export:hover { background-color: #219a52; }
.btn-export:disabled { background-color: #bdc3c7; cursor: not-allowed; }

/* 響應式調整 */
@media (max-width: 768px) {
    .filters { flex-direction: column; }
    .toolbar { flex-direction: column; align-items: flex-start; }
    .search-input { min-width: 100%; }
    table { display: block; overflow-x: auto; }
}
