
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Microsoft YaHei', sans-serif;
}

body {
    background-color: #f5f7fa;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

header {
    background: linear-gradient(135deg, #1e5799 0%, #207cca 100%);
    color: white;
    padding: 20px 0;
    border-radius: 8px;
    margin-bottom: 30px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

header h1 {
    text-align: center;
    font-size: 28px;
    margin-bottom: 10px;
}

header p {
    text-align: center;
    opacity: 0.9;
}

.search-form {
    background-color: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
}

.form-row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -10px;
}

.form-group {
    flex: 1;
    min-width: 200px;
    margin: 0 10px 15px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #555;
}

input, select {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 15px;
    transition: border 0.3s;
}

input:focus, select:focus {
    border-color: #3498db;
    outline: none;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

.buttons {
    display: flex;
    justify-content: flex-end;
    margin-top: 10px;
}

button {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.3s;
}

.search-btn {
    background-color: #3498db;
    color: white;
    margin-right: 10px;
}

.search-btn:hover {
    background-color: #2980b9;
}

.search-btn:disabled {
    background-color: #a0c5e8;
    cursor: not-allowed;
}

.reset-btn {
    background-color: #e0e0e0;
    color: #555;
}

.reset-btn:hover {
    background-color: #d0d0d0;
}

.results {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    position: relative;
}

.results-header {
    padding: 15px 25px;
    background-color: #f8f9fa;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.results-count {
    font-weight: 600;
    color: #555;
}

.export-btn {
    background-color: #27ae60;
    color: white;
    padding: 8px 15px;
    font-size: 14px;
}

.export-btn:hover {
    background-color: #219955;
}

table {
    width: 100%;
    border-collapse: collapse;
}

thead {
    background-color: #f1f5f9;
}

th {
    padding: 15px 20px;
    text-align: left;
    font-weight: 600;
    color: #555;
    border-bottom: 1px solid #e0e0e0;
}

td {
    padding: 15px 20px;
    border-bottom: 1px solid #f0f0f0;
}

tbody tr:hover {
    background-color: #f8fafc;
}

.status {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

.status-active {
    background-color: #e8f7ef;
    color: #27ae60;
}

.status-inactive {
    background-color: #fef3e9;
    color: #f39c12;
}

.pagination {
    display: flex;
    justify-content: center;
    padding: 20px;
    border-top: 1px solid #eee;
}

.pagination button {
    margin: 0 5px;
    padding: 8px 15px;
    background-color: white;
    border: 1px solid #ddd;
    color: #555;
    border-radius: 4px;
}

.pagination button.active {
    background-color: #3498db;
    color: white;
    border-color: #3498db;
}

.pagination button:hover:not(.active) {
    background-color: #f5f5f5;
}

.pagination button:disabled {
    color: #ccc;
    cursor: not-allowed;
}

.no-results {
    padding: 40px 20px;
    text-align: center;
    color: #777;
}

/* 加载指示器样式 */
.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
    border-radius: 8px;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loading-text {
    margin-top: 15px;
    color: #3498db;
    font-weight: 600;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-content {
    text-align: center;
}

/* 表格加载占位符 */
.table-placeholder {
    display: flex;
    flex-direction: column;
    padding: 20px;
}

.placeholder-row {
    display: flex;
    margin-bottom: 15px;
}

.placeholder-cell {
    height: 20px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: 4px;
    margin-right: 10px;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

@media (max-width: 768px) {
    .form-group {
        min-width: 100%;
    }

    .buttons {
        justify-content: center;
    }

    th, td {
        padding: 10px 15px;
    }

    .results-header {
        flex-direction: column;
        gap: 10px;
    }
}
