.page-header {
    background: white;
    padding: 25px 30px;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
    margin-bottom: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.page-header h1 {
    color: #333;
    font-size: 24px;
    font-weight: 700;
}

.user-info-header {
    display: flex;
    align-items: center;
    gap: 15px;
}

.page-content {
    background: white;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
    padding: 30px;
}

.page-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.btn-secondary {
    background: linear-gradient(135deg, #e0e0e0 0%, #c0c0c0 100%);
    color: #333;
}

.btn-secondary:hover {
    transform: translateY(-2px);
}

.btn-info {
    background: linear-gradient(135deg, #4299e1 0%, #3182ce 100%);
    color: white;
}

.btn-info:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(66, 153, 225, 0.3);
}

.btn-success {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    color: white;
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(17, 153, 142, 0.3);
}

.btn-danger {
    background: linear-gradient(135deg, #eb3349 0%, #f45c43 100%);
    color: white;
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(235, 51, 73, 0.3);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 13px;
    border-radius: 8px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.4);
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #888;
}

.table-container {
    overflow-x: auto;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    background: white;
}

table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

thead {
    background: linear-gradient(135deg, #312e81 0%, #4f46e5 40%, #6366f1 70%, #7c3aed 100%);
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.35);
}

th {
    padding: 20px 22px;
    text-align: left;
    color: #ffffff;
    font-weight: 800;
    font-size: 15px;
    letter-spacing: 0.4px;
    position: relative;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

th:first-child {
    border-top-left-radius: 16px;
}

th:last-child {
    border-top-right-radius: 16px;
}

td {
    padding: 18px 22px;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
    color: #1f2937;
    font-size: 15px;
    font-weight: 500;
}

tbody tr:last-child td:first-child {
    border-bottom-left-radius: 16px;
}

tbody tr:last-child td:last-child {
    border-bottom-right-radius: 16px;
}

tbody tr:hover {
    background: linear-gradient(to right, rgba(99, 102, 241, 0.08) 0%, rgba(139, 92, 246, 0.05) 100%);
}

.status-badge {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    display: inline-block;
}

.status-badge.status-1 {
    background: #c6f6d5;
    color: #22543d;
}

.status-badge.status-0 {
    background: #f8d7da;
    color: #721c24;
}

.status-badge.status-normal {
    background: #c6f6d5;
    color: #22543d;
}

.status-badge.status-maintenance {
    background: #fff3cd;
    color: #856404;
}

.status-badge.status-offline {
    background: #f8d7da;
    color: #721c24;
}

.action-buttons {
    display: flex;
    gap: 8px;
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal.active {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 20px;
    padding: 35px;
    width: 100%;
    max-width: 550px;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideIn 0.3s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.modal-header h2 {
    color: #333;
    font-size: 22px;
    font-weight: 700;
}

.close-btn {
    background: none;
    border: none;
    font-size: 30px;
    color: #888;
    cursor: pointer;
    padding: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    border-radius: 50%;
}

.close-btn:hover {
    color: #333;
    background: #f5f5f5;
}

.form-group {
    margin-bottom: 22px;
}

.form-group label {
    display: block;
    color: #555;
    font-weight: 600;
    margin-bottom: 10px;
    font-size: 14px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 14px;
    transition: all 0.3s ease;
    outline: none;
    background: white;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 30px;
}

.pagination-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.pagination-info {
    color: #666;
    font-size: 14px;
}

.pagination-buttons {
    display: flex;
    gap: 8px;
    align-items: center;
}

.pagination-dots {
    color: #666;
    padding: 0 5px;
}

.btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.welcome-card {
    text-align: center;
    padding: 60px 20px;
}

.welcome-card h2 {
    font-size: 28px;
    color: #333;
    margin-bottom: 15px;
}

.welcome-card p {
    color: #888;
    font-size: 16px;
}

.tab-container {
    display: flex;
    gap: 0;
    margin-bottom: 25px;
    border-bottom: 2px solid #e0e0e0;
}

.tab-btn {
    padding: 12px 24px;
    border: none;
    background: none;
    font-size: 15px;
    font-weight: 500;
    color: #888;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all 0.2s;
}

.tab-btn.active {
    color: #667eea;
    border-bottom-color: #667eea;
}

.tab-btn:hover {
    color: #667eea;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* 油卡管理弹窗样式 */
.card-modal-content {
    max-width: 900px;
    width: 90%;
    padding: 40px;
}

.card-search-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    gap: 20px;
    flex-wrap: wrap;
}

.search-input-group {
    display: flex;
    gap: 12px;
    align-items: center;
    flex: 1;
}

.search-input-group input {
    flex: 1;
    min-width: 200px;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.search-input-group input:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
    outline: none;
}

.search-input-group select {
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 14px;
    min-width: 120px;
    cursor: pointer;
}

.add-btn {
    white-space: nowrap;
    padding: 12px 24px;
    font-weight: 600;
}

.card-table-container {
    margin-bottom: 20px;
}

.card-table-container th {
    font-size: 15px;
    padding: 22px 24px;
}

.card-table-container td {
    padding: 20px 24px;
    font-size: 15px;
}

.card-table-container .status-badge {
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 600;
}

.card-table-container .action-buttons button {
    padding: 10px 18px;
    font-size: 14px;
}
