/* ===== 广西高考征集志愿查询系统 - 样式 v2 ===== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #2563eb;
    --primary-light: #dbeafe;
    --primary-dark: #1d4ed8;
    --accent: #f59e0b;
    --danger: #ef4444;
    --success: #10b981;
    --bg: #f0f4f8;
    --card-bg: #ffffff;
    --text: #1e293b;
    --text-light: #64748b;
    --border: #e2e8f0;
    --shadow: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.04);
    --shadow-lg: 0 4px 20px rgba(0,0,0,0.12);
    --radius: 10px;
    --radius-sm: 6px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
                 "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    font-size: 15px;
}

#app {
    max-width: 2000px;
    margin: 0 auto;
    padding: 0 20px 40px;
}

/* ===== 顶部标题 ===== */
.header {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #fff;
    padding: 28px 20px 20px;
    border-radius: 0 0 20px 20px;
    box-shadow: var(--shadow-lg);
}

.header-inner { max-width: 1960px; margin: 0 auto; }
.header h1 { font-size: 24px; font-weight: 700; margin-bottom: 6px; }
.subtitle { font-size: 14px; opacity: 0.9; margin-bottom: 12px; }

.stats-bar { display: flex; gap: 16px; flex-wrap: wrap; font-size: 13px; }
.stat-item {
    background: rgba(255,255,255,0.18);
    padding: 4px 12px;
    border-radius: 20px;
    backdrop-filter: blur(4px);
}

/* ===== 顶部工具栏 ===== */
.top-toolbar {
    max-width: 2000px; margin: 0 auto;
    padding: 12px 24px 0; display: flex;
    justify-content: space-between; align-items: center;
}
.toolbar-left { display: flex; align-items: center; gap: 10px; }
.toolbar-label { font-size: 14px; font-weight: 600; color: var(--text); }
.student-select {
    padding: 8px 14px; border: 2px solid var(--border);
    border-radius: var(--radius); font-size: 14px;
    background: var(--card-bg); cursor: pointer; min-width: 160px;
    transition: border-color 0.2s;
}
.student-select:focus { outline: none; border-color: var(--primary); }
.btn-new-student {
    padding: 8px 18px; background: var(--primary); color: #fff;
    border: none; border-radius: var(--radius); font-size: 14px;
    font-weight: 600; cursor: pointer; transition: background 0.2s;
    white-space: nowrap;
}
.btn-new-student:hover { background: var(--primary-dark); }
.btn-edit-student, .btn-delete-student {
    padding: 6px 10px; border: 1px solid var(--border);
    border-radius: var(--radius); font-size: 14px; cursor: pointer;
    background: #fff; transition: all 0.2s; line-height: 1;
}
.btn-edit-student:hover { border-color: var(--primary); color: var(--primary); background: #f0f7ff; }
.btn-delete-student:hover { border-color: #dc2626; color: #dc2626; background: #fef2f2; }
.student-info { font-size: 13px; color: var(--primary); font-weight: 600; }
.student-info .rank-divider { color: #cbd5e1; margin: 0 6px; font-weight: 400; }
.student-info .rank-positive { color: #16a34a; font-weight: 700; }
.student-info .rank-negative { color: #dc2626; font-weight: 700; }

/* ===== 结果区展开按钮 ===== */
.results-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.results-header-right { display: flex; align-items: center; gap: 8px; }
.btn-expand-toggle {
    padding: 6px 14px; font-size: 13px; font-weight: 600;
    color: #475569; background: #f1f5f9;
    border: 1px solid #cbd5e1; border-radius: var(--radius-sm);
    cursor: pointer; transition: all 0.15s; white-space: nowrap;
}
.btn-expand-toggle:hover { background: #e2e8f0; border-color: #94a3b8; }

/* ===== 模态对话框 ===== */
.modal-overlay {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.4); z-index: 9999;
    display: flex; align-items: center; justify-content: center;
    backdrop-filter: blur(2px);
}
.modal-box {
    background: var(--card-bg); border-radius: 16px;
    padding: 28px 32px; width: 420px; max-width: 90vw;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
    animation: modalIn 0.2s ease-out;
}
@keyframes modalIn { from { transform: scale(0.95); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.modal-title { font-size: 18px; font-weight: 700; margin-bottom: 20px; color: var(--text); }
.modal-body { display: flex; flex-direction: column; gap: 14px; }
.modal-field { display: flex; flex-direction: column; gap: 6px; flex: 1; }
.modal-field label { font-size: 13px; font-weight: 600; color: var(--text); }
.modal-field .req { color: #dc2626; }
.modal-field input, .modal-field select {
    padding: 10px 14px; border: 2px solid var(--border);
    border-radius: var(--radius); font-size: 14px; background: var(--card-bg);
    transition: border-color 0.2s;
}
.modal-field input:focus, .modal-field select:focus {
    outline: none; border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light);
}
.modal-field-row { display: flex; gap: 14px; }
.modal-footer { display: flex; gap: 10px; justify-content: flex-end; margin-top: 22px; }

/* 单选按钮组 */
.radio-group { display: flex; gap: 12px; }
.radio-item {
    display: flex; align-items: center; gap: 6px;
    padding: 10px 20px; border: 2px solid var(--border);
    border-radius: var(--radius); cursor: pointer;
    font-size: 14px; font-weight: 600; transition: all 0.2s;
    flex: 1; justify-content: center;
}
.radio-item input[type="radio"] {
    width: 16px; height: 16px; accent-color: var(--primary); cursor: pointer;
}
.radio-item:has(input:checked) {
    border-color: var(--primary); background: var(--primary-light); color: var(--primary-dark);
}
.radio-item:hover { border-color: var(--primary); }
.btn-modal-cancel {
    padding: 10px 22px; font-size: 14px; font-weight: 600;
    color: var(--text-light); background: #f1f5f9;
    border: 1px solid var(--border); border-radius: var(--radius);
    cursor: pointer;
}
.btn-modal-cancel:hover { background: #e2e8f0; }
.btn-modal-save {
    padding: 10px 22px; font-size: 14px; font-weight: 600;
    color: #fff; background: var(--primary);
    border: none; border-radius: var(--radius); cursor: pointer;
}
.btn-modal-save:hover { background: var(--primary-dark); }

/* ===== 搜索区 ===== */
.search-section { padding: 20px 0; margin-top: -8px; }

.search-box { display: flex; gap: 10px; margin-bottom: 16px; align-items: stretch; }
.search-field {
    flex: 1; display: flex; align-items: center;
    border: 2px solid var(--border); border-radius: var(--radius);
    background: var(--card-bg); transition: border-color 0.2s;
    overflow: hidden;
}
.search-field:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light);
}
.search-label {
    padding: 0 12px; font-size: 14px; font-weight: 600;
    color: var(--text-light); white-space: nowrap;
    border-right: 1px solid var(--border); height: 100%;
    display: flex; align-items: center;
}
.search-field .search-input {
    flex: 1; padding: 12px 16px;
    border: none; font-size: 15px; background: transparent;
    outline: none; box-shadow: none;
}
.search-field .search-input:focus { box-shadow: none; }

.btn-search {
    padding: 12px 24px; background: var(--primary); color: #fff;
    border: none; border-radius: var(--radius);
    font-size: 15px; font-weight: 600; cursor: pointer;
    white-space: nowrap; transition: background 0.2s;
}
.btn-search:hover { background: var(--primary-dark); }

/* ===== 筛选区 ===== */
.filters {
    background: var(--card-bg); border-radius: var(--radius);
    padding: 16px; box-shadow: var(--shadow);
}

.filter-row {
    display: flex; gap: 12px; flex-wrap: wrap;
    margin-bottom: 12px; align-items: flex-end;
}

.filter-item { flex: 1; min-width: 130px; }
.filter-item label {
    display: block; font-size: 12px; color: var(--text-light);
    margin-bottom: 4px; font-weight: 600;
}
.filter-item select,
.filter-item input {
    width: 100%; padding: 8px 10px;
    border: 1px solid var(--border); border-radius: var(--radius-sm);
    font-size: 14px; background: #fff; transition: border-color 0.2s;
}
.filter-item select:focus,
.filter-item input:focus {
    outline: none; border-color: var(--primary);
}
.filter-item select.filter-locked {
    background: #f0fdf4;
    border-color: #86efac;
    color: #166534;
    cursor: not-allowed;
    font-weight: 600;
}
.lock-hint {
    font-size: 12px;
    vertical-align: middle;
}

.score-range .range-inputs {
    display: flex; align-items: center; gap: 6px;
}
.score-range .range-inputs input { flex: 1; min-width: 70px; width: 70px; }
.score-range .range-inputs span { color: var(--text-light); font-size: 14px; flex: 0 0 auto; }
.score-range .range-inputs .diff-type-select {
    flex: 0 0 85px; width: 85px;
    font-size: 12px; padding: 4px 6px;
    border: 1px solid var(--border); border-radius: 4px;
    background: var(--bg); color: var(--text);
}

/* ===== Checkbox 组 ===== */
.checkbox-row {
    align-items: center;
    padding: 4px 0;
    margin-bottom: 6px;
}

.region-filter-row {
    align-items: flex-start;
    padding: 4px 0;
    margin-bottom: 6px;
}

.checkbox-label {
    font-size: 12px; font-weight: 600; color: var(--text-light);
    min-width: 70px; flex-shrink: 0;
}

.checkbox-group {
    display: flex; gap: 6px; flex-wrap: wrap;
}

.checkbox-item {
    display: flex; align-items: center; gap: 4px;
    padding: 5px 12px; background: #f8fafc;
    border: 1px solid var(--border); border-radius: 20px;
    cursor: pointer; user-select: none; font-size: 13px;
    transition: all 0.2s;
}

.checkbox-item:hover {
    background: var(--primary-light); border-color: var(--primary);
}

.checkbox-item input[type="checkbox"] {
    width: 15px; height: 15px; accent-color: var(--primary);
    cursor: pointer; margin: 0;
}

.checkbox-item:has(input:checked) {
    background: var(--primary-light); border-color: var(--primary);
    color: var(--primary-dark); font-weight: 600;
}

/* ===== 七区省份分组 ===== */
.region-groups {
    display: flex; gap: 8px; flex-wrap: wrap;
    flex: 1;
}

.region-section {
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: #fff;
    overflow: hidden;
    min-width: 160px;
}

.region-header {
    display: flex; align-items: center; gap: 6px;
    padding: 6px 10px; cursor: pointer;
    background: #f8fafc; user-select: none;
    transition: background 0.15s;
}

.region-header:hover { background: #eef2ff; }

.region-arrow {
    font-size: 9px; color: var(--text-light);
    transition: transform 0.2s; flex-shrink: 0;
}

.region-arrow.collapsed { transform: rotate(0deg); }
.region-arrow:not(.collapsed) { transform: rotate(90deg); }

.region-check-label {
    display: flex; align-items: center; gap: 4px;
    cursor: pointer; font-size: 13px; font-weight: 600;
    color: var(--text);
}

.region-check-label input[type="checkbox"] {
    width: 15px; height: 15px; accent-color: var(--primary);
    cursor: pointer; margin: 0;
}

.region-name {
    white-space: nowrap;
}

.region-count {
    font-size: 11px; color: var(--text-light);
    font-weight: 400; margin-left: 2px;
}

.region-body {
    display: flex; gap: 4px; flex-wrap: wrap;
    padding: 8px 10px; border-top: 1px solid var(--border);
}

/* ===== 多选下拉 ===== */
.multi-select-wrapper {
    position: relative;
}

.multi-badge {
    display: none;
    background: var(--primary); color: #fff;
    font-size: 11px; padding: 0px 6px; border-radius: 10px;
    margin-left: 4px; vertical-align: 1px;
}

.multi-select-btn {
    width: 100%; padding: 8px 10px;
    border: 1px solid var(--border); border-radius: var(--radius-sm);
    background: #fff; font-size: 14px; color: var(--text);
    cursor: pointer; text-align: left;
    display: flex; justify-content: space-between; align-items: center;
    transition: border-color 0.2s;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.multi-select-btn:hover { border-color: var(--primary); }

.ms-arrow {
    font-size: 10px; color: var(--text-light);
    transition: transform 0.2s; flex-shrink: 0; margin-left: 8px;
}

.multi-select-wrapper:has(.multi-select-panel.open) .ms-arrow {
    transform: rotate(180deg);
}

.multi-select-panel {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0; z-index: 100;
    background: #fff; border: 1px solid var(--border);
    border-radius: var(--radius-sm); box-shadow: var(--shadow-lg);
    max-height: 260px; overflow-y: auto; padding: 6px 0;
    margin-top: 2px;
}

.multi-select-panel.open { display: block; }

.multi-select-actions {
    display: flex; gap: 8px; padding: 6px 10px;
    border-bottom: 1px solid var(--border); margin-bottom: 4px;
    position: sticky; top: 0; background: #fff; z-index: 1;
}

.multi-select-actions button {
    padding: 3px 10px; border: none; border-radius: 12px;
    font-size: 12px; cursor: pointer; background: #f1f5f9;
    color: var(--text); transition: all 0.2s;
}

.multi-select-actions button:hover {
    background: var(--primary-light); color: var(--primary);
}

.multi-select-option {
    display: flex; align-items: center; gap: 8px;
    padding: 6px 12px; cursor: pointer; font-size: 14px;
    transition: background 0.15s;
}

.multi-select-option:hover { background: #f8fafc; }

.multi-select-option input[type="checkbox"] {
    width: 15px; height: 15px; accent-color: var(--primary);
    flex-shrink: 0; cursor: pointer;
}

/* ===== 按钮区 ===== */
.filter-actions {
    display: flex; gap: 10px; flex-wrap: wrap; margin-top: 4px;
}

.btn-primary,
.btn-secondary,
.btn-export {
    padding: 9px 20px; border: none; border-radius: var(--radius-sm);
    font-size: 14px; font-weight: 600; cursor: pointer;
    transition: all 0.2s;
}

.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-secondary { background: #f1f5f9; color: var(--text); }
.btn-secondary:hover { background: #e2e8f0; }
.btn-export { background: var(--accent); color: #fff; margin-left: auto; display: flex; align-items: center; gap: 4px; }
.btn-export:hover { background: #d97706; }
.fav-badge {
    background: #dc2626; color: #fff; font-size: 11px;
    min-width: 18px; height: 18px; border-radius: 9px;
    display: inline-flex; align-items: center; justify-content: center;
    padding: 0 5px; font-weight: 700;
}

/* ===== 结果区 ===== */
.results-section { padding: 0; }

.results-header {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 12px; font-size: 14px; color: var(--text-light);
}
.page-info { font-size: 13px; }

.table-wrapper {
    background: var(--card-bg); border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.table-scroll-wrapper {
    background: var(--card-bg); border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow-x: auto;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
    position: relative;
}

/* 横向滚动条美化 */
.table-scroll-wrapper::-webkit-scrollbar { height: 10px; }
.table-scroll-wrapper::-webkit-scrollbar-track { background: #f1f5f9; border-radius: 5px; }
.table-scroll-wrapper::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 5px; }
.table-scroll-wrapper::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

.results-table { width: 100%; border-collapse: collapse; font-size: 13px; }

.results-table thead { background: #f8fafc; }

.results-table thead tr:first-child th {
    padding: 8px 8px;
    text-align: center;
    font-weight: 600;
    color: var(--text);
    background: #f1f5f9;
    border-bottom: 2px solid var(--border);
    white-space: nowrap;
    position: sticky;
    top: 0;
    z-index: 3;
    font-size: 13px;
    cursor: grab;
    user-select: none;
}

.results-table thead tr:first-child th:active {
    cursor: grabbing;
}

.results-table thead tr:first-child th.col-drag-over {
    background: #dbeafe;
    box-shadow: inset 2px 0 0 var(--primary), inset -2px 0 0 var(--primary);
}

.results-table thead tr:nth-child(2) th {
    padding: 6px 6px;
    text-align: center;
    font-weight: 500;
    font-size: 12px;
    color: var(--text-light);
    background: #f8fafc;
    border-bottom: 2px solid var(--border);
    white-space: nowrap;
    position: sticky;
    top: 38px;
    z-index: 2;
}

.results-table td {
    padding: 10px 8px;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
    text-align: center;
}
.results-table tbody tr:hover { background: #f8fafc; }
.results-table tbody tr:last-child td { border-bottom: none; }

.cell-year { font-weight: 600; color: var(--primary); text-align: center; }
.cell-school { font-weight: 600; color: var(--text); }
.cell-vacancy { font-weight: 700; color: var(--danger); text-align: center; }
.cell-score { font-weight: 700; color: #dc2626; text-align: center; font-size: 13px; }
.cell-rank { color: var(--text-light); text-align: center; font-size: 12px; }
.cell-diff { text-align: center; font-size: 12px; font-weight: 600; }
.cell-diff:not(:empty):not([data-empty]) { color: var(--success); }
.cell-diff2 { text-align: center; font-size: 12px; font-weight: 600; }
.cell-diff2:not(:empty):not([data-empty]) { color: #2563eb; }
.cell-mgroup { font-size: 12px; color: #64748b; text-align: center; min-width: 80px; }
.cell-code { font-size: 12px; color: #64748b; text-align: center; }
.cell-tuition { font-size: 12px; white-space: nowrap; }
.cell-note { font-size: 12px; color: #64748b; }
.cell-elective { font-size: 12px; color: #64748b; }
.cell-remark { font-size: 12px; color: #64748b; max-width: 150px; overflow: hidden; }
.cell-subj { text-align: center; }

/* 志愿备选按钮 */
.cell-action { text-align: center; white-space: nowrap; }
.btn-fav-add {
    padding: 4px 14px; border: 1px solid var(--primary);
    background: #fff; color: var(--primary);
    border-radius: 14px; font-size: 12px; font-weight: 600;
    cursor: pointer; transition: all 0.15s;
}
.btn-fav-add:hover { background: var(--primary); color: #fff; }
.btn-fav-added {
    padding: 4px 14px; border: 1px solid var(--success);
    background: #ecfdf5; color: #059669;
    border-radius: 14px; font-size: 12px; font-weight: 600;
    cursor: pointer; transition: all 0.15s;
}
.btn-fav-added:hover { background: #d1fae5; }

.cell-subject {
    display: inline-block; padding: 2px 8px; border-radius: 12px;
    font-size: 12px; font-weight: 600;
}
.cell-subject.physics { background: #dbeafe; color: #1d4ed8; }
.cell-subject.history { background: #fce7f3; color: #be185d; }
.cell-subject.other { background: #f1f5f9; color: var(--text-light); }

.empty-state { text-align: center; padding: 48px 20px; color: var(--text-light); }
.empty-icon { font-size: 40px; margin-bottom: 12px; }

.loading-state { text-align: center; padding: 40px; color: var(--text-light); }
.loading-state .spinner {
    display: inline-block; width: 32px; height: 32px;
    border: 3px solid var(--border); border-top-color: var(--primary);
    border-radius: 50%; animation: spin 0.8s linear infinite; margin-bottom: 12px;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ===== 分页 ===== */
.pagination {
    display: flex; justify-content: center; gap: 6px;
    margin-top: 20px; flex-wrap: wrap;
}
.pagination button {
    padding: 8px 14px; border: 1px solid var(--border);
    background: #fff; border-radius: var(--radius-sm);
    cursor: pointer; font-size: 14px; transition: all 0.2s;
}
.pagination button:hover:not(:disabled) { border-color: var(--primary); color: var(--primary); }
.pagination button.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.pagination button:disabled { opacity: 0.4; cursor: not-allowed; }

/* ===== 使用说明 ===== */
.help-section { padding: 20px 0; }
.help-section details {
    background: var(--card-bg); border-radius: var(--radius);
    padding: 16px; box-shadow: var(--shadow);
}
.help-section summary { font-weight: 600; cursor: pointer; font-size: 15px; }
.help-content { margin-top: 12px; font-size: 14px; color: var(--text-light); }
.help-content p { margin-bottom: 8px; }
.help-content .tip {
    background: #fef3c7; padding: 10px 14px;
    border-radius: var(--radius-sm); color: #92400e; margin-top: 8px;
}

/* ===== 页脚 ===== */
.footer { text-align: center; padding: 20px; font-size: 13px; color: var(--text-light); }

/* ===== 征集数据展开按钮 ===== */
.btn-collect-expand {
    display: block; margin-top: 4px;
    padding: 2px 8px; font-size: 11px; font-weight: 600;
    color: #2563eb; background: #eff6ff;
    border: 1px solid #bfdbfe; border-radius: 10px;
    cursor: pointer; white-space: nowrap;
    transition: all 0.15s; line-height: 1.5;
    margin-left: auto; margin-right: auto;
}
.btn-collect-expand:hover { background: #dbeafe; border-color: #93c5fd; }
.btn-collect-expand.expanded { background: #dbeafe; border-color: #60a5fa; }
.btn-collect-expand .expand-arrow {
    font-size: 9px; display: inline-block;
    transition: transform 0.2s; margin-right: 2px;
}
/* 历年参考按钮（2026年招生计划） */
.btn-collect-expand.btn-history-ref {
    color: #0891b2; background: #ecfeff;
    border-color: #a5f3fc;
}
.btn-collect-expand.btn-history-ref:hover { background: #cffafe; border-color: #67e8f9; }
.btn-collect-expand.btn-history-ref.expanded { background: #cffafe; border-color: #06b6d4; }
/* 历年参考详情框 */
.history-detail-box {
    border-left: 3px solid #06b6d4 !important;
}
/* 历年参考：多年份左右布局 */
.history-years-flex {
    display: flex;
    align-items: stretch;
}
.history-years-flex .history-year-block {
    flex: 1;
    min-width: 0;
}
.history-years-flex .history-year-block .collect-detail-table {
    table-layout: fixed;
    width: 100%;
}
.history-years-flex .history-year-block .collect-detail-table th,
.history-years-flex .history-year-block .collect-detail-table td {
    word-break: break-word;
}
/* 窄屏自动折回上下排列 */
@media (max-width: 900px) {
    .history-years-flex {
        flex-direction: column;
    }
    .history-years-flex .history-year-block {
        border-left: none !important;
        border-top: 1px solid #e0f2fe;
    }
    .history-years-flex .history-year-block:first-child {
        border-top: none;
    }
}

/* ===== 征集数据明细行 ===== */
.collect-detail-row > td { padding: 0 !important; border-top: none !important; }
.collect-detail-box {
    padding: 8px 16px; background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}
.collect-detail-table {
    border-collapse: collapse; font-size: 13px;
    margin: 0;
}
.collect-detail-table th {
    padding: 4px 12px; text-align: center;
    font-weight: 600; color: #475569;
    border-bottom: 1px solid #e2e8f0;
    white-space: nowrap;
}
.collect-detail-table td {
    padding: 4px 12px; white-space: nowrap; text-align: center;
}
.collect-detail-table .cd-round {
    font-weight: 600; color: #2563eb;
}
/* 首次投档行特殊样式 */
.collect-detail-table .cd-first-row {
    background: #eef2ff;
}
.collect-detail-table .cd-first-row .cd-round.cd-first {
    color: #4f46e5;
}
.collect-detail-table .cd-score {
    font-weight: 700; font-size: 14px;
}
.collect-detail-table .cd-rank { color: #64748b; }

/* ===== 响应式 ===== */
@media (max-width: 768px) {
    .header { padding: 20px 16px 16px; border-radius: 0 0 16px 16px; }
    .header h1 { font-size: 20px; }
    .search-section { padding: 16px; }
    .search-box { flex-direction: column; }
    .search-field { width: 100%; }
    .btn-search { width: 100%; }
    .filter-row { flex-direction: column; }
    .filter-item { min-width: 100%; flex: auto !important; }
    .checkbox-row { flex-direction: row; flex-wrap: wrap; }
    .filter-actions { flex-direction: column; }
    .btn-primary, .btn-secondary, .btn-export { width: 100%; margin-left: 0; }
    .multi-select-panel { max-height: 200px; }
    .results-section { padding: 0; }
    .results-table { font-size: 12px; }
    .results-table th, .results-table td { padding: 8px 6px; }
    .pagination button { padding: 6px 10px; font-size: 13px; }
}
