@charset "UTF-8";
/* 村民档案助手 v3.1 - 样式表 */

/* ===== 全局重置 & 变量 ===== */
:root {
    --color-primary: #2563EB;
    --color-primary-dark: #1D4ED8;
    --color-primary-light: #EFF6FF;
    --color-bg: #F0F2F5;
    --color-card: #FFFFFF;
    --color-text: #333333;
    --color-text-secondary: #6B7280;
    --color-text-muted: #9CA3AF;
    --color-border: #E5E7EB;
    --color-danger: #DC2626;
    --color-success: #059669;
    --color-warning: #F59E0B;
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 12px rgba(37,99,235,0.15);
    --nav-height: 64px;
    --header-height: 52px;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", sans-serif;
    background: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    -webkit-tap-highlight-color: transparent;
    -webkit-font-smoothing: antialiased;
}

#app {
    max-width: 500px;
    margin: 0 auto;
    background: var(--color-card);
    min-height: 100vh;
    position: relative;
    padding-bottom: calc(var(--nav-height) + env(safe-area-inset-bottom, 0px));
}

/* ===== 顶部栏 ===== */
.header {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    color: #fff;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
    height: var(--header-height);
}
.header h1 {
    font-size: 17px;
    font-weight: 600;
    flex: 1;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.back-header-btn {
    background: none;
    border: none;
    color: #fff;
    font-size: 16px;
    padding: 4px 8px;
    cursor: pointer;
    margin-right: 8px;
    flex-shrink: 0;
    border-radius: var(--radius-sm);
    transition: background 0.2s;
}
.back-header-btn:active { background: rgba(255,255,255,0.2); }
.header-right-btn {
    background: rgba(255,255,255,0.2);
    border: 1px solid rgba(255,255,255,0.4);
    color: #fff;
    font-size: 13px;
    padding: 4px 12px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    flex-shrink: 0;
    white-space: nowrap;
    transition: background 0.2s;
}
.header-right-btn:active { background: rgba(255,255,255,0.35); }

/* ===== 内容区 ===== */
.content { padding: 12px; }
.page { display: none; animation: fadeIn 0.2s ease; }
.page.active { display: block; }

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===== 搜索页 ===== */
.search-box {
    display: flex;
    gap: 8px;
    margin-bottom: 4px;
}
.search-box input {
    flex: 1;
    padding: 11px 14px;
    border: 1.5px solid #ddd;
    border-radius: var(--radius-md);
    font-size: 15px;
    outline: none;
    background: #F9FAFB;
    transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}
.search-box input:focus {
    border-color: var(--color-primary);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}
.search-box button {
    padding: 11px 20px;
    background: var(--color-primary);
    color: #fff;
    border: none;
    border-radius: var(--radius-md);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s, transform 0.1s;
}
.search-box button:active {
    background: var(--color-primary-dark);
    transform: scale(0.97);
}

/* ===== 高级筛选 ===== */
.filter-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 4px 6px;
    cursor: pointer;
    user-select: none;
    font-size: 13px;
    color: var(--color-text-secondary);
}
.filter-toggle span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.filter-panel {
    background: #F9FAFB;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 14px;
    margin-bottom: 12px;
    animation: slideDown 0.2s ease;
}
@keyframes slideDown {
    from { opacity: 0; max-height: 0; padding-top: 0; padding-bottom: 0; }
    to { opacity: 1; max-height: 500px; padding-top: 14px; padding-bottom: 14px; }
}
.filter-row {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
}
.filter-row:last-child { margin-bottom: 0; }
.filter-field { flex: 1; min-width: 0; }
.filter-field label {
    display: block;
    font-size: 11px;
    color: var(--color-text-muted);
    margin-bottom: 3px;
    font-weight: 500;
}
.filter-field input,
.filter-field select {
    width: 100%;
    padding: 7px 10px;
    border: 1px solid #D1D5DB;
    border-radius: var(--radius-sm);
    font-size: 13px;
    outline: none;
    background: #fff;
    transition: border-color 0.2s;
}
.filter-field input:focus,
.filter-field select:focus { border-color: var(--color-primary); }
.filter-actions {
    display: flex;
    gap: 8px;
    margin-top: 6px;
    justify-content: flex-end;
}

.btn-sm {
    padding: 6px 14px;
    font-size: 12px;
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    white-space: nowrap;
}
.btn-ghost {
    background: transparent;
    color: var(--color-text-secondary);
    border: 1px solid #D1D5DB;
    padding: 8px 14px;
    border-radius: var(--radius-md);
    font-size: 13px;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s;
}
.btn-ghost:active { background: #F3F4F6; }

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--color-text-muted);
    font-size: 14px;
    line-height: 1.8;
}
.empty-icon { font-size: 40px; margin-bottom: 8px; }

.result-count {
    font-size: 12px;
    color: var(--color-text-muted);
    margin-bottom: 8px;
    padding-left: 4px;
}

/* ===== 列表项（可点击卡片） ===== */
.list-item {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 14px 16px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: var(--shadow-sm);
}
.list-item:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--color-primary);
    transform: translateY(-1px);
}
.list-item:active {
    box-shadow: 0 2px 8px rgba(37,99,235,0.25);
    transform: translateY(0);
}
.item-main {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 4px;
    flex-wrap: wrap;
}
.item-name {
    font-size: 16px;
    font-weight: 600;
    color: #111827;
}
.item-tag {
    font-size: 11px;
    background: var(--color-primary-light);
    color: var(--color-primary);
    padding: 2px 8px;
    border-radius: 10px;
    white-space: nowrap;
}
.item-badges { display: inline-flex; gap: 4px; margin-left: 2px; }
.badge {
    font-size: 10px;
    padding: 1px 6px;
    border-radius: 8px;
    font-weight: 600;
    white-space: nowrap;
}
.badge-red { background: #FEF2F2; color: var(--color-danger); }
.badge-orange { background: #FFF7ED; color: #C2410C; }
.badge-green { background: #F0FDF4; color: var(--color-success); }
.badge-blue { background: #EFF6FF; color: #1D4ED8; }
.badge-gray { background: #F9FAFB; color: #6B7280; }
.item-sub {
    display: flex;
    gap: 12px;
    font-size: 13px;
    color: var(--color-text-secondary);
    flex-wrap: wrap;
}
.item-idcard {
    font-family: "SF Mono", "Consolas", "Menlo", monospace;
    font-size: 12px;
    letter-spacing: 0.5px;
}

/* ===== 详情页 ===== */
.detail-card {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 20px;
    border: 1px solid var(--color-border);
    margin-bottom: 12px;
}
.detail-name {
    font-size: 22px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid #F3F4F6;
}
.detail-section-title {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #F3F4F6;
    display: flex;
    align-items: center;
    gap: 6px;
}
.detail-section-icon { font-size: 16px; }
.detail-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.detail-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 0;
}
.detail-label {
    font-size: 13px;
    color: var(--color-text-muted);
    min-width: 72px;
    flex-shrink: 0;
}
.detail-value {
    font-size: 15px;
    color: #111827;
    flex: 1;
    word-break: break-all;
}
.idcard-value {
    font-family: "SF Mono", "Consolas", "Menlo", monospace;
    font-size: 14px;
    letter-spacing: 0.5px;
}
.detail-remarks {
    font-size: 14px;
    color: #4B5563;
    line-height: 1.7;
    white-space: pre-wrap;
}
.tag-yes { color: var(--color-danger) !important; font-weight: 600; }
.copy-btn {
    background: var(--color-primary-light);
    color: var(--color-primary);
    border: none;
    padding: 4px 12px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.2s;
}
.copy-btn:active { background: #DBEAFE; }
.copy-btn.copied {
    background: #D1FAE5;
    color: var(--color-success);
}
.copy-btn.copy-failed {
    background: #FEE2E2;
    color: var(--color-danger);
}
.detail-actions { margin-top: 8px; }
.detail-actions .btn-secondary { margin-bottom: 8px; }

/* ===== 同户成员页 ===== */
.household-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    background: var(--color-primary-light);
    border-radius: var(--radius-lg);
    margin-bottom: 12px;
}
.hh-number { font-size: 15px; font-weight: 600; color: #1E40AF; }
.hh-count { font-size: 13px; color: var(--color-text-secondary); }

/* ===== 表单 ===== */
.form-section { display: flex; flex-direction: column; gap: 14px; }
.form-row { display: flex; gap: 10px; }
.form-field { flex: 1; min-width: 0; }
.form-field label {
    display: block;
    font-size: 12px;
    color: var(--color-text-secondary);
    margin-bottom: 4px;
    font-weight: 500;
}
.form-field .required { color: var(--color-danger); font-weight: 700; }
.form-field input,
.form-field select,
.form-field textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1.5px solid #D1D5DB;
    border-radius: var(--radius-md);
    font-size: 14px;
    outline: none;
    background: #F9FAFB;
    transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
    font-family: inherit;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    border-color: var(--color-primary);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}
.form-field textarea { resize: vertical; min-height: 60px; }
.edit-actions { margin-top: 8px; }

/* ===== 统计汇总页 ===== */
.stats-summary { margin-bottom: 20px; }
.stats-title {
    font-size: 15px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 12px;
    padding-left: 4px;
}
.stats-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
    gap: 8px;
}
.stats-card {
    border-radius: var(--radius-lg);
    padding: 16px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}
.stats-card:hover { transform: translateY(-2px); box-shadow: 0 4px 8px rgba(0,0,0,0.1); }
.stats-card:active { transform: scale(0.96); }
.stats-card-num { font-size: 24px; font-weight: 700; }
.stats-card-label { font-size: 11px; margin-top: 4px; opacity: 0.85; }

.stats-card-blue   { background: #EFF6FF; color: #1D4ED8; }
.stats-card-green  { background: #F0FDF4; color: #059669; }
.stats-card-orange { background: #FFF7ED; color: #C2410C; }
.stats-card-purple { background: #F5F3FF; color: #6D28D9; }
.stats-card-red    { background: #FEF2F2; color: #DC2626; }
.stats-card-pink   { background: #FDF2F8; color: #BE185D; }
.stats-card-teal   { background: #F0FDFA; color: #0D9488; }
.stats-card-brown  { background: #FEF3C7; color: #92400E; }
.stats-card-black  { background: #F3F4F6; color: #1F2937; }
.stats-card-gray   { background: #F9FAFB; color: #6B7280; }

.stats-groups { margin-top: 6px; }
.stats-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
}
.stats-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}
.stats-table th {
    background: #F9FAFB;
    color: var(--color-text-secondary);
    font-weight: 600;
    padding: 10px 12px;
    text-align: left;
    font-size: 12px;
    white-space: nowrap;
    position: sticky;
    top: 0;
}
.stats-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #F3F4F6;
    color: #374151;
}
.stats-table tr:last-child td { border-bottom: none; }
.stats-table tr:active { background: #F9FAFB; }
.stats-table .clickable {
    cursor: pointer;
    color: var(--color-primary);
    font-weight: 600;
}
.stats-table .clickable:hover { text-decoration: underline; }

/* ===== 管理页 ===== */
.manage-section {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 20px;
    margin-bottom: 16px;
}
.manage-title {
    font-size: 15px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.manage-title-icon { font-size: 18px; }
.manage-info {
    font-size: 13px;
    color: var(--color-text-muted);
    margin-bottom: 12px;
}
.manage-section-danger {
    border-color: #FECACA;
}
.manage-section-danger .manage-title { color: var(--color-danger); }

/* ===== 上传区域 ===== */
.upload-hint-top {
    font-size: 13px;
    color: var(--color-text-muted);
    margin-bottom: 20px;
    text-align: center;
}
.upload-btn-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 140px;
    height: 140px;
    margin: 0 auto;
    border: 2px dashed var(--color-primary);
    border-radius: 16px;
    cursor: pointer;
    background: var(--color-primary-light);
    transition: all 0.2s;
}
.upload-btn-area:active {
    background: #DBEAFE;
    transform: scale(0.97);
}
.upload-icon { font-size: 36px; margin-bottom: 8px; }
.upload-text { font-size: 14px; font-weight: 600; color: var(--color-primary); }
.upload-hint { font-size: 11px; color: #93C5FD; margin-top: 4px; }

.result-card {
    text-align: center;
    padding: 30px 20px;
    background: #F0FDF4;
    border-radius: var(--radius-lg);
    margin-top: 12px;
}
.result-icon { font-size: 40px; margin-bottom: 12px; }

/* ===== Excel 工具条 ===== */
.excel-tool-desc {
    font-size: 12px;
    color: var(--color-text-muted);
    margin-bottom: 16px;
    line-height: 1.6;
}
.excel-upload-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px 0;
    border: 2px dashed var(--color-warning);
    border-radius: 16px;
    cursor: pointer;
    background: #FFFBEB;
    transition: all 0.2s;
}
.excel-upload-area:active {
    background: #FEF3C7;
    transform: scale(0.97);
}
.excel-upload-icon { font-size: 40px; margin-bottom: 8px; }
.excel-upload-text { font-size: 15px; font-weight: 600; color: #D97706; }
.excel-upload-hint { font-size: 11px; color: #FBBF24; margin-top: 4px; }

.excel-preview-area { margin-top: 12px; }
.excel-preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    background: #FFFBEB;
    border-radius: var(--radius-lg);
    margin-bottom: 12px;
}
.excel-file-name {
    font-size: 14px;
    font-weight: 600;
    color: #92400E;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.excel-row-count {
    font-size: 12px;
    color: #D97706;
    margin-left: 8px;
    white-space: nowrap;
}

.excel-sheet-tabs {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding-bottom: 8px;
    margin-bottom: 12px;
    -webkit-overflow-scrolling: touch;
}
.sheet-tab {
    padding: 6px 14px;
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
    background: #fff;
    font-size: 13px;
    color: var(--color-text-secondary);
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    transition: all 0.2s;
}
.sheet-tab.active {
    background: var(--color-warning);
    color: #fff;
    border-color: var(--color-warning);
}
.sheet-tab:active { opacity: 0.8; }

.excel-field-mapping {
    background: #F9FAFB;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 14px;
    margin-bottom: 12px;
}
.mapping-title {
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 10px;
}
.mapping-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-height: 300px;
    overflow-y: auto;
}
.mapping-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    background: #fff;
    border-radius: var(--radius-md);
    border: 1px solid #F3F4F6;
}
.mapping-col-name {
    font-size: 13px;
    color: #374151;
    min-width: 70px;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.mapping-arrow { color: #D1D5DB; font-size: 14px; flex-shrink: 0; }
.mapping-select {
    flex: 1;
    padding: 6px 8px;
    border: 1px solid #D1D5DB;
    border-radius: var(--radius-sm);
    font-size: 13px;
    outline: none;
    background: #fff;
    min-width: 0;
}
.mapping-select:focus { border-color: var(--color-warning); }

.excel-preview-table-wrap {
    overflow-x: auto;
    margin-bottom: 12px;
    -webkit-overflow-scrolling: touch;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
}
.excel-preview-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}
.excel-preview-table th {
    background: #F3F4F6;
    color: var(--color-text-secondary);
    font-weight: 600;
    padding: 8px 10px;
    text-align: left;
    position: sticky;
    top: 0;
    white-space: nowrap;
    font-size: 11px;
}
.excel-preview-table td {
    padding: 7px 10px;
    border-bottom: 1px solid #F3F4F6;
    color: #374151;
    white-space: nowrap;
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
}
.cell-ignored { color: #D1D5DB; text-decoration: line-through; }
.preview-mapping-badge {
    display: inline-block;
    font-size: 9px;
    padding: 1px 5px;
    border-radius: 6px;
    background: #DBEAFE;
    color: #1D4ED8;
    margin-left: 4px;
    vertical-align: middle;
    font-weight: 600;
}
.preview-mapping-skip { background: #F3F4F6; color: #D1D5DB; }
.preview-more {
    text-align: center;
    color: var(--color-text-muted);
    font-size: 12px;
    padding: 10px;
}

.excel-action-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.excel-action-btns .btn-primary { flex: 1; min-width: 120px; }
.excel-action-btns .btn-secondary { flex: 1; min-width: 120px; }
.excel-action-btns .btn-ghost { flex-shrink: 0; }

/* ===== 按钮通用 ===== */
.btn-primary {
    display: block;
    width: 100%;
    padding: 12px;
    background: var(--color-primary);
    color: #fff;
    border: none;
    border-radius: var(--radius-md);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 8px;
    transition: background 0.2s, transform 0.1s;
}
.btn-primary:active {
    background: var(--color-primary-dark);
    transform: scale(0.98);
}

.btn-secondary {
    display: block;
    width: 100%;
    padding: 12px;
    background: #F3F4F6;
    color: var(--color-text-secondary);
    border: none;
    border-radius: var(--radius-md);
    font-size: 15px;
    cursor: pointer;
    transition: background 0.2s;
}
.btn-secondary:active { background: var(--color-border); }

.btn-block { width: 100%; }

.btn-export-excel {
    background: var(--color-success) !important;
    margin-top: 8px !important;
}
.btn-export-excel:active { background: #047857 !important; }

.btn-danger {
    background: var(--color-danger);
    color: #fff;
    border: none;
    padding: 12px;
    border-radius: var(--radius-md);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    transition: background 0.2s;
}
.btn-danger:active { background: #B91C1C; }

.btn-danger-outline {
    background: #FEF2F2 !important;
    color: var(--color-danger) !important;
    border: 1px solid #FECACA !important;
}
.btn-danger-outline:active { background: #FEE2E2 !important; }

/* ===== 底部导航 ===== */
.tab-bar {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    max-width: 500px;
    width: 100%;
    background: #fff;
    border-top: 1px solid var(--color-border);
    display: flex;
    justify-content: space-around;
    padding: 6px 0;
    padding-bottom: calc(6px + env(safe-area-inset-bottom, 0px));
    z-index: 100;
    backdrop-filter: blur(10px);
}
.tab-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    padding: 4px 12px;
    border-radius: var(--radius-md);
    color: var(--color-text-muted);
    transition: color 0.2s, background 0.2s;
    user-select: none;
    position: relative;
}
.tab-item.active { color: var(--color-primary); }
.tab-item:active { background: #F3F4F6; }
.tab-icon { font-size: 22px; margin-bottom: 1px; transition: transform 0.2s; }
.tab-item.active .tab-icon { transform: scale(1.1); }
.tab-text { font-size: 11px; }
.tab-badge {
    position: absolute;
    top: 0;
    right: 4px;
    background: var(--color-danger);
    color: #fff;
    font-size: 10px;
    min-width: 16px;
    height: 16px;
    line-height: 16px;
    text-align: center;
    border-radius: 8px;
    padding: 0 4px;
}

/* ===== 分页 ===== */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 12px 0;
}
.pagination button {
    padding: 8px 16px;
    border: 1px solid #D1D5DB;
    background: #fff;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 13px;
    color: #374151;
    transition: all 0.2s;
}
.pagination button:hover:not(:disabled) {
    background: #F9FAFB;
    border-color: var(--color-text-muted);
}
.pagination button:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}
.pagination .page-info {
    font-size: 13px;
    color: var(--color-text-secondary);
    min-width: 60px;
    text-align: center;
}

/* ===== Toast 提示 ===== */
.toast {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0,0,0,0.75);
    color: #fff;
    padding: 10px 24px;
    border-radius: 20px;
    font-size: 14px;
    z-index: 9999;
    pointer-events: none;
    animation: toastIn 0.3s ease;
}
@keyframes toastIn {
    from { opacity: 0; transform: translate(-50%, -50%) scale(0.8); }
    to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

/* ===== 响应式 ===== */
@media (max-width: 500px) {
    #app { max-width: 100%; }
}

/* ===== 选择控件 ===== */
.form-field select {
    appearance: auto;
    -webkit-appearance: auto;
}
