/* DeskPet后台管理样式（基础版） */

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: #f0f2f5;
}

.admin-container {
    display: flex;
    height: 100vh;
}

.sidebar {
    background: #001529;
    color: white;
    width: 250px;
    height: 100vh;
    position: fixed;
    left: 0;
    overflow-y: auto;
}

.sidebar-header {
    padding: 1.5rem;
    background: #002140;
}

.sidebar-header h1 {
    font-size: 1.5rem;
}

.sidebar-nav {
    list-style: none;
}

.sidebar-nav li {
    margin: 0;
}

.nav-link {
    display: block;
    color: rgba(255, 255, 255, 0.65);
    padding: 1rem 1.5rem;
    text-decoration: none;
    transition: all 0.3s;
}

.nav-link:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
}

.nav-link.active {
    color: white;
    background: #1890ff;
}

.main-content {
    margin-left: 250px;
    padding: 2rem;
    overflow-y: auto;
}

.content-section {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.content-section h2 {
    font-size: 2rem;
    color: #333;
    margin-bottom: 2rem;
    border-bottom: 2px solid #1890ff;
    padding-bottom: 1rem;
}

.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
}

.stat-number {
    font-size: 2rem;
    color: #1890ff;
    font-weight: 600;
}

.section-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.btn-refresh {
    background: #1890ff;
    color: white;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.btn-add {
    background: #52c41a;
    color: white;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.search-input {
    padding: 0.5rem 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    flex: 1;
}

.filter-select {
    padding: 0.5rem 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
}

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

.data-table th {
    background: #f8f9fa;
    padding: 1rem;
    text-align: left;
    border-bottom: 2px solid #ddd;
}

.data-table td {
    padding: 1rem;
    border-bottom: 1px solid #ddd;
}

.data-table tr:hover {
    background: #f8f9fa;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 250px;
    width: calc(100% - 250px);
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.modal-content {
    background: white;
    padding: 2rem;
    margin: 10% auto;
    max-width: 600px;
    border-radius: 8px;
}

.modal-close {
    float: right;
    font-size: 2rem;
    cursor: pointer;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.form-group input {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.btn-save {
    background: #1890ff;
    color: white;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 0.5rem;
}

@media (max-width: 768px) {
    .sidebar {
        width: 200px;
    }
    
    .main-content {
        margin-left: 200px;
    }
    
    .dashboard-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}