* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', 'PingFang SC', 'Helvetica Neue', Arial, sans-serif;
    background: #f5f7fa;
    min-height: 100vh;
    color: #333;
    line-height: 1.6;
}

.login-body {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    background: #e8ecf1;
}

.login-container {
    width: 100%;
    max-width: 450px;
}

.login-box {
    background: white;
    padding: 50px 40px;
    border-radius: 4px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
    border-top: 4px solid #2c5aa0;
}

.login-box h1 {
    color: #2c5aa0;
    text-align: center;
    margin-bottom: 8px;
    font-size: 26px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.login-box h2 {
    color: #666;
    text-align: center;
    margin-bottom: 35px;
    font-size: 16px;
    font-weight: normal;
}

.error-message {
    background: #fff5f5;
    color: #c53030;
    padding: 12px 16px;
    border-radius: 4px;
    margin-bottom: 20px;
    border-left: 4px solid #c53030;
    font-size: 14px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #4a5568;
    font-weight: 500;
    font-size: 14px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid #cbd5e0;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: #fff;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #2c5aa0;
    box-shadow: 0 0 0 3px rgba(44, 90, 160, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.btn {
    padding: 11px 24px;
    border: none;
    border-radius: 4px;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    font-weight: 500;
}

.btn-primary {
    background: #2c5aa0;
    color: white;
    width: 100%;
}

.btn-primary:hover {
    background: #1e3f73;
    box-shadow: 0 2px 8px rgba(44, 90, 160, 0.3);
}

.btn-success {
    background: #38a169;
    color: white;
}

.btn-success:hover {
    background: #2f855a;
}

.btn-danger {
    background: #e53e3e;
    color: white;
}

.btn-danger:hover {
    background: #c53030;
}

.btn-warning {
    background: #d69e2e;
    color: white;
}

.btn-warning:hover {
    background: #b7791f;
}

.btn-secondary {
    background: #718096;
    color: white;
}

.btn-secondary:hover {
    background: #4a5568;
}

.login-hint {
    margin-top: 25px;
    padding: 15px;
    background: #f7fafc;
    border-radius: 4px;
    text-align: center;
    font-size: 13px;
    color: #718096;
    border: 1px solid #e2e8f0;
}

.login-hint p {
    margin: 4px 0;
}

.main-header {
    background: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    margin-bottom: 0;
    border-bottom: 3px solid #2c5aa0;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 18px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.main-header h1 {
    color: #2c5aa0;
    font-size: 22px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.main-nav {
    display: flex;
    gap: 8px;
    align-items: center;
}

.main-nav a {
    color: #4a5568;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 4px;
    transition: all 0.2s;
    font-size: 14px;
    font-weight: 500;
}

.main-nav a:hover {
    background: #edf2f7;
    color: #2c5aa0;
}

.logout-btn {
    background: #e53e3e;
    color: white !important;
}

.logout-btn:hover {
    background: #c53030;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px 40px;
}

.dashboard {
    background: white;
    padding: 35px;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
}

.dashboard h1 {
    color: #2d3748;
    margin-bottom: 30px;
    font-size: 24px;
    font-weight: 600;
    padding-bottom: 15px;
    border-bottom: 2px solid #e2e8f0;
}

.welcome-box {
    background: #2c5aa0;
    color: white;
    padding: 25px 30px;
    border-radius: 4px;
    margin-bottom: 35px;
}

.welcome-box h2 {
    margin-bottom: 8px;
    font-size: 20px;
    font-weight: 600;
}

.welcome-box p {
    font-size: 14px;
    opacity: 0.9;
}

.module-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.module-card {
    background: #f7fafc;
    padding: 30px;
    border-radius: 4px;
    text-align: left;
    transition: all 0.2s;
    border: 1px solid #e2e8f0;
    border-left: 4px solid #2c5aa0;
}

.module-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-left-color: #1e3f73;
    transform: translateY(-2px);
}

.card-icon {
    font-size: 14px;
    margin-bottom: 15px;
    color: #2c5aa0;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 8px 16px;
    background: #e6f0ff;
    display: inline-block;
    border-radius: 4px;
}

.module-card h3 {
    color: #2d3748;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.module-card p {
    color: #718096;
    margin-bottom: 20px;
    line-height: 1.6;
    font-size: 14px;
}

.module-card .btn {
    width: auto;
    padding: 10px 20px;
    font-size: 14px;
}

.action-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 15px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e2e8f0;
}

.search-box {
    display: flex;
    gap: 10px;
    flex: 1;
    min-width: 300px;
}

.search-box input {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid #cbd5e0;
    border-radius: 4px;
    font-size: 14px;
}

.search-box select {
    padding: 10px 14px;
    border: 1px solid #cbd5e0;
    border-radius: 4px;
    font-size: 14px;
    background: white;
}

.table-container {
    overflow-x: auto;
    margin-top: 20px;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border: 1px solid #e2e8f0;
}

thead {
    background: #2c5aa0;
    color: white;
}

th, td {
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
    font-size: 14px;
}

th {
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

tbody tr:hover {
    background: #f7fafc;
}

tbody tr:last-child td {
    border-bottom: none;
}

.action-buttons {
    display: flex;
    gap: 8px;
}

.action-buttons .btn {
    padding: 6px 14px;
    font-size: 13px;
}

.empty-state {
    text-align: center;
    padding: 80px 20px;
    color: #a0aec0;
}

.empty-state-icon {
    font-size: 48px;
    margin-bottom: 20px;
    color: #cbd5e0;
    font-weight: 300;
}

.empty-state p {
    font-size: 15px;
    color: #718096;
    margin-bottom: 20px;
}

.form-container {
    background: white;
    padding: 35px;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
    max-width: 650px;
    margin: 0 auto;
}

.form-container h2 {
    color: #2d3748;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e2e8f0;
    font-size: 20px;
    font-weight: 600;
}

.form-actions {
    display: flex;
    gap: 12px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
}

.form-actions .btn {
    flex: 1;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
    gap: 8px;
}

.pagination-info {
    color: #718096;
    font-size: 14px;
    margin-right: 20px;
}

.pagination a,
.pagination span {
    padding: 8px 14px;
    border: 1px solid #cbd5e0;
    border-radius: 4px;
    text-decoration: none;
    color: #4a5568;
    font-size: 14px;
    transition: all 0.2s;
    display: inline-block;
    min-width: 38px;
    text-align: center;
}

.pagination a:hover {
    background: #edf2f7;
    border-color: #2c5aa0;
    color: #2c5aa0;
}

.pagination .current {
    background: #2c5aa0;
    color: white;
    border-color: #2c5aa0;
    font-weight: 600;
}

.pagination .disabled {
    color: #cbd5e0;
    cursor: not-allowed;
    background: #f7fafc;
}

.pagination .disabled:hover {
    background: #f7fafc;
    border-color: #cbd5e0;
    color: #cbd5e0;
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 15px;
    }
    
    .main-nav {
        flex-wrap: wrap;
        justify-content: center;
        width: 100%;
    }
    
    .module-cards {
        grid-template-columns: 1fr;
    }
    
    .action-bar {
        flex-direction: column;
    }
    
    .search-box {
        width: 100%;
    }
    
    table {
        font-size: 13px;
    }
    
    th, td {
        padding: 10px 12px;
    }
    
    .pagination {
        flex-wrap: wrap;
    }
    
    .pagination-info {
        width: 100%;
        text-align: center;
        margin-right: 0;
        margin-bottom: 10px;
    }
}
