.page-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; flex-wrap: wrap; gap: 10px; }
.page-header h2 { font-size: 20px; font-weight: 600; color: #1e2a3a; }
.page-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.page-actions input[type="text"] { padding: 8px 12px; border: 1px solid #ddd; border-radius: 6px; font-size: 14px; width: 150px; }
.page-actions input[type="date"] { padding: 8px 12px; border: 1px solid #ddd; border-radius: 6px; font-size: 14px; width: 150px; background: white; color: #333; cursor: pointer; }
.page-actions input[type="date"]::-webkit-calendar-picker-indicator { cursor: pointer; opacity: 0.6; }
.page-actions input[type="date"]:hover::-webkit-calendar-picker-indicator { opacity: 1; }
.page-actions input[type="datetime-local"] { padding: 8px 12px; border: 1px solid #ddd; border-radius: 6px; font-size: 14px; background: white; color: #333; cursor: pointer; }
.page-actions select { padding: 8px 12px; border: 1px solid #ddd; border-radius: 6px; font-size: 14px; background: white; min-width: 120px; }
.btn-add { padding: 9px 18px; background: #667eea; color: white; border: none; border-radius: 6px; cursor: pointer; font-size: 14px; white-space: nowrap; }
.btn-add:hover { background: #5a6fd6; }

.table-container { background: white; border-radius: 10px; box-shadow: 0 2px 10px rgba(0,0,0,0.08); overflow: hidden; overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.data-table th { background: #f8f9fa; padding: 14px 12px; text-align: left; font-weight: 600; color: #555; font-size: 13px; border-bottom: 2px solid #e9ecef; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.data-table td { padding: 12px; border-bottom: 1px solid #f0f0f0; font-size: 14px; color: #333; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.data-table td.wrap { white-space: normal; word-break: break-all; }
.data-table tr:hover { background: #f8f9ff; }
.data-table tr:last-child td { border-bottom: none; }
.data-table .loading, .data-table .empty { text-align: center; padding: 50px 20px; color: #999; white-space: normal; }

.action-btn { padding: 5px 10px; border: none; border-radius: 4px; cursor: pointer; font-size: 12px; margin-right: 4px; white-space: nowrap; }
.action-btn:last-child { margin-right: 0; }
.btn-edit { background: #e3f2fd; color: #1976d2; }
.btn-edit:hover { background: #bbdefb; }
.btn-delete { background: #ffebee; color: #c62828; }
.btn-delete:hover { background: #ffcdd2; }
.btn-view { background: #e8f5e9; color: #2e7d32; }
.btn-view:hover { background: #c8e6c9; }
.btn-ban { background: #fff3e0; color: #e65100; }
.btn-ban:hover { background: #ffe0b2; }
.btn-detail { background: #f3e5f5; color: #7b1fa2; }
.btn-detail:hover { background: #e1bee7; }

code { background: #f5f5f5; padding: 3px 8px; border-radius: 4px; font-size: 13px; font-family: 'Consolas', monospace; }
.copyable { cursor: pointer; transition: background 0.2s; }
.copyable:hover { background: #e3f2fd; }

.form-row { display: flex; gap: 15px; }
.form-row .form-group { flex: 1; }
.required { color: #e74c3c; }

.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.detail-item { background: #f8f9fa; padding: 12px 15px; border-radius: 6px; }
.detail-item.full { grid-column: 1 / -1; }
.detail-item label { display: block; font-size: 12px; color: #888; margin-bottom: 5px; }
.detail-item span { font-size: 14px; color: #333; word-break: break-all; }

.toast { position: fixed; bottom: 30px; left: 50%; transform: translateX(-50%); background: rgba(0,0,0,0.8); color: white; padding: 12px 24px; border-radius: 6px; font-size: 14px; z-index: 9999; animation: fadeInUp 0.3s; }
@keyframes fadeInUp { from { opacity: 0; transform: translate(-50%, 20px); } to { opacity: 1; transform: translate(-50%, 0); } }


.section-title { font-size: 14px; font-weight: 600; color: #333; margin: 20px 0 10px 0; padding-bottom: 8px; border-bottom: 1px solid #eee; }
.section-title:first-child { margin-top: 0; }


.dashboard-cards { display: flex; gap: 20px; flex-wrap: wrap; }
.dash-card { display: flex; align-items: center; gap: 15px; background: white; padding: 20px 25px; border-radius: 10px; box-shadow: 0 2px 10px rgba(0,0,0,0.08); min-width: 200px; }
.dash-icon { width: 50px; height: 50px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 24px; color: white; }
.dash-value { font-size: 24px; font-weight: 600; color: #333; }
.dash-label { font-size: 13px; color: #888; margin-top: 4px; }


/* 分页样式 */
.pagination { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 20px; padding: 15px; background: white; border-radius: 8px; }
.pagination button { padding: 8px 15px; border: 1px solid #ddd; background: white; border-radius: 4px; cursor: pointer; font-size: 13px; }
.pagination button:hover:not(:disabled) { background: #f0f0f0; }
.pagination button:disabled { opacity: 0.5; cursor: not-allowed; }
.pagination span { font-size: 13px; color: #666; }


/* 半宽表单组 */
.form-group.half { flex: 1; min-width: 0; }

/* 只读输入框样式 */
input[readonly], input:disabled {
    background: #f5f5f5;
    color: #666;
    cursor: not-allowed;
}

/* 日期/时间输入框样式 */
input[type="date"],
input[type="datetime-local"] {
    padding: 10px 12px;
    border: 2px solid #e1e5eb;
    border-radius: 6px;
    font-size: 14px;
    background: white;
    color: #333;
    cursor: pointer;
    transition: border-color 0.2s;
}
input[type="date"]:focus,
input[type="datetime-local"]:focus {
    outline: none;
    border-color: #667eea;
}
input[type="date"]::-webkit-calendar-picker-indicator,
input[type="datetime-local"]::-webkit-calendar-picker-indicator {
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: background 0.2s;
}
input[type="date"]::-webkit-calendar-picker-indicator:hover,
input[type="datetime-local"]::-webkit-calendar-picker-indicator:hover {
    background: #e3f2fd;
}

/* 复选框样式 */
input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: #667eea;
}
