/* 重置和基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #4361ee;
    --secondary-color: #3a0ca3;
    --accent-color: #4cc9f0;
    --success-color: #4ade80;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --light-color: #f8fafc;
    --dark-color: #1e293b;
    --gray-color: #64748b;
    --border-color: #e2e8f0;
    
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    
    --transition: all 0.3s ease;
}

body {
    font-family: 'Inter', 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    background-color: #f1f5f9;
}

/* 登录页面样式 */
.login-container {
    display: flex;
    min-height: 100vh;
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
}

.login-card {
    flex: 1;
    max-width: 500px;
    background: white;
    padding: 3rem 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-shadow: var(--shadow-xl);
}

.login-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.logo i {
    font-size: 2.5rem;
    color: var(--primary-color);
}

.logo h1 {
    font-size: 1.75rem;
    font-weight: 700;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.subtitle {
    color: var(--gray-color);
    font-size: 1rem;
    font-weight: 500;
}

/* 表单样式 */
.login-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 600;
    color: var(--dark-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-group label i {
    color: var(--primary-color);
}

.form-group input {
    padding: 0.875rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 1rem;
    transition: var(--transition);
    background-color: white;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.15);
}

.password-wrapper {
    position: relative;
}

.toggle-password {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--gray-color);
    cursor: pointer;
    font-size: 1.1rem;
}

.input-hint {
    font-size: 0.875rem;
    color: var(--gray-color);
}

/* 表单选项 */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.checkbox-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.95rem;
}

.checkbox-container input {
    display: none;
}

.checkmark {
    width: 1.25rem;
    height: 1.25rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.checkbox-container input:checked + .checkmark {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.checkbox-container input:checked + .checkmark::after {
    content: '✓';
    color: white;
    font-size: 0.875rem;
}

.forgot-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.forgot-link:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

/* 按钮 */
.btn-login {
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    padding: 1rem 1.5rem;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* 简化的CSS样式 - 只保留核心部分 */

/* 重置和基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #4361ee;
    --secondary-color: #3a0ca3;
    --accent-color: #4cc9f0;
    --success-color: #4ade80;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --light-color: #f8fafc;
    --dark-color: #1e293b;
    --gray-color: #64748b;
    --border-color: #e2e8f0;
    
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
}

body {
    font-family: 'Inter', 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    background-color: #f1f5f9;
}

/* 登录页面样式 */
.login-container {
    display: flex;
    min-height: 100vh;
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
}

.login-card {
    flex: 1;
    max-width: 450px;
    background: white;
    padding: 3rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-shadow: var(--shadow-xl);
}

.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.logo i {
    font-size: 2.5rem;
    color: var(--primary-color);
}

.logo h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark-color);
}

.subtitle {
    color: var(--gray-color);
    font-size: 0.95rem;
}

/* 表单样式 */
.login-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 2rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 600;
    color: var(--dark-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-group input {
    padding: 0.875rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.15);
}

.password-wrapper {
    position: relative;
}

.toggle-password {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--gray-color);
    cursor: pointer;
}

.input-hint {
    font-size: 0.85rem;
    color: var(--gray-color);
    margin-top: 0.25rem;
}

/* 按钮 */
.btn-login {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 1rem;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.btn-login:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* 警告框 */
.alert {
    padding: 1rem;
    border-radius: var(--radius-md);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.alert-error {
    background-color: #fee2e2;
    color: #991b1b;
    border-left: 4px solid var(--danger-color);
}

/* 登录侧边栏 */
.login-side {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
}

.side-content {
    max-width: 500px;
}

.side-content h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.side-content > p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

.class-info {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    margin-bottom: 2rem;
}

.class-info p {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.security-features h3 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.security-features ul {
    list-style: none;
    padding-left: 0;
}

.security-features li {
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.security-features li:last-child {
    border-bottom: none;
}

/* 主页面样式 */
.dashboard-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.dashboard-header {
    background: white;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
    box-shadow: var(--shadow-sm);
    border-bottom: 1px solid var(--border-color);
}

.header-left {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.main-nav {
    display: flex;
    gap: 1.5rem;
}

.nav-link {
    color: var(--gray-color);
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-link.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.user-menu {
    position: relative;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem;
    cursor: pointer;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary-color);
}

.user-details {
    display: flex;
    flex-direction: column;
}

.user-name {
    font-weight: 600;
    font-size: 0.95rem;
}

.user-id {
    font-size: 0.8rem;
    color: var(--gray-color);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    width: 150px;
    background: white;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    padding: 0.5rem 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.user-menu:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu a {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--dark-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

.dropdown-menu a:hover {
    background-color: #f8fafc;
    color: var(--primary-color);
}

.dropdown-menu .logout {
    color: var(--danger-color);
}

/* 主要内容区域 */
.dashboard-main {
    flex: 1;
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.welcome-section {
    margin-bottom: 2.5rem;
}

.welcome-card {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: var(--radius-lg);
    padding: 2rem;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.welcome-content h2 {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

.welcome-content p {
    opacity: 0.9;
    margin-bottom: 0.25rem;
}

.welcome-image i {
    font-size: 6rem;
    opacity: 0.2;
}

/* 同学录页面专用样式 */

/* 页面标题区域 */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.header-content h1 {
    font-size: 1.75rem;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.page-subtitle {
    color: var(--gray-color);
    font-size: 1rem;
}

.header-stats {
    display: flex;
    gap: 1.5rem;
}

.stat-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    min-width: 150px;
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.stat-icon.blue {
    background-color: #dbeafe;
    color: var(--primary-color);
}

.stat-icon.green {
    background-color: #dcfce7;
    color: var(--success-color);
}

.stat-icon.orange {
    background-color: #ffedd5;
    color: var(--warning-color);
}

.stat-content {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark-color);
    line-height: 1;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--gray-color);
    margin-top: 0.25rem;
}

/* 操作栏 */
.action-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    background: white;
    border-radius: var(--radius-lg);
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.action-left {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.search-box {
    position: relative;
    display: flex;
    align-items: center;
    width: 300px;
}

.search-box i {
    position: absolute;
    left: 1rem;
    color: var(--gray-color);
}

.search-box input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.5rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 0.95rem;
}

.search-box input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.1);
}

.filter-options select {
    padding: 0.75rem 2.5rem 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    background-color: white;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%2364748b' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 16px;
}

.filter-options select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.action-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.last-update {
    font-size: 0.9rem;
    color: var(--gray-color);
}

/* 表格容器 */
.classmates-table-container {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    margin-bottom: 2rem;
}

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

.classmates-table thead {
    background-color: #f8fafc;
    border-bottom: 2px solid var(--border-color);
}

.classmates-table th {
    padding: 1.25rem 1.5rem;
    text-align: left;
    font-weight: 600;
    color: var(--dark-color);
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.classmates-table td {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    vertical-align: middle;
}

.classmates-table tbody tr {
    transition: all 0.2s ease;
}

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

.student-id {
    font-family: 'Monaco', 'Consolas', monospace;
    font-weight: 600;
    color: var(--primary-color);
}

.student-name {
    font-weight: 500;
}

/* 状态徽章 */
.status-badge {
    display: inline-block;
    padding: 0.375rem 1rem;
    border-radius: 2rem;
    font-size: 0.85rem;
    font-weight: 600;
    text-align: center;
    min-width: 60px;
}

.status-在校 {
    background-color: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.status-离校 {
    background-color: #fef3c7;
    color: #92400e;
    border: 1px solid #fde68a;
}

.status-请假 {
    background-color: #dbeafe;
    color: #1e40af;
    border: 1px solid #bfdbfe;
}

.status-退学 {
    background-color: #f3f4f6;
    color: #374151;
    border: 1px solid #e5e7eb;
}

/* 在线状态 */
.online-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.online-dot, .offline-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}

.online-dot {
    background-color: var(--success-color);
    box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.2);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.4); }
    70% { box-shadow: 0 0 0 6px rgba(74, 222, 128, 0); }
    100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); }
}

.offline-dot {
    background-color: var(--gray-color);
}

.online-text, .offline-text {
    font-size: 0.9rem;
    font-weight: 500;
}

.online-text {
    color: var(--success-color);
}

.offline-text {
    color: var(--gray-color);
}

/* 操作按钮 */
.action-buttons {
    display: flex;
    gap: 0.5rem;
}

.btn-icon {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-md);
    border: none;
    background-color: #f8fafc;
    color: var(--gray-color);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.btn-icon:hover {
    background-color: #e2e8f0;
    color: var(--primary-color);
}

.btn-icon.edit-status:hover {
    background-color: #dbeafe;
    color: var(--primary-color);
}

.btn-icon.view-info:hover {
    background-color: #dcfce7;
    color: var(--success-color);
}

/* 状态说明 */
.status-legend {
    background: white;
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.status-legend h3 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.legend-items {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.legend-dot.in-school {
    background-color: #166534;
}

.legend-dot.left-school {
    background-color: #92400e;
}

.legend-dot.leave {
    background-color: #1e40af;
}

.legend-dot.dropout {
    background-color: #374151;
}

/* 模态框 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    border-radius: var(--radius-lg);
    width: 90%;
    max-width: 500px;
    box-shadow: var(--shadow-xl);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.modal-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--gray-color);
    cursor: pointer;
    line-height: 1;
}

.modal-close:hover {
    color: var(--danger-color);
}

.modal-body {
    padding: 1.5rem;
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    margin-top: 0.5rem;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.1);
}

.current-status {
    padding: 0.75rem 1rem;
    background-color: #f8fafc;
    border-radius: var(--radius-md);
    font-weight: 500;
    margin-top: 0.5rem;
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 1.5rem;
}

/* 用户菜单样式 */
.user-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 1rem;
    background: var(--admin-light);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.user-info:hover {
    background: var(--admin-light);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.user-info i.fa-chevron-down {
    font-size: 0.875rem;
    color: var(--admin-gray);
    transition: transform 0.3s ease;
}

.user-info.active i.fa-chevron-down {
    transform: rotate(180deg);
}

/* 用户下拉菜单 */
.user-dropdown {
    position: absolute;
    top: 100%;
    right: 2rem;
    width: 220px;
    background: var(--admin-card-bg);
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    padding: 0.5rem 0;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    border: 1px solid var(--admin-border);
}

.user-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.25rem;
    color: var(--admin-dark);
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 0.875rem;
    font-weight: 500;
}

.dropdown-item:hover {
    background: var(--admin-light);
    color: var(--admin-primary);
}

.dropdown-item i {
    width: 20px;
    text-align: center;
    color: var(--admin-gray);
}

.dropdown-item:hover i {
    color: var(--admin-primary);
}

.dropdown-item.logout {
    color: var(--admin-danger);
}

.dropdown-item.logout:hover {
    background: #fee2e2;
    color: #dc2626;
}

.dropdown-item.logout i {
    color: var(--admin-danger);
}

.dropdown-divider {
    height: 1px;
    background: var(--admin-border);
    margin: 0.5rem 0;
}

/* 返回按钮 */
.back-button {
    position: fixed;
    top: 80px;
    left: 2rem;
    z-index: 999;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--admin-card-bg);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    text-decoration: none;
    color: var(--admin-dark);
    font-weight: 500;
    transition: all 0.2s ease;
    border: 1px solid var(--admin-border);
}

.back-button:hover {
    background: var(--admin-primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.back-button i {
    font-size: 1.125rem;
}

/* 快速操作按钮 */
.quick-actions-bar {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 999;
    display: flex;
    gap: 0.75rem;
}

.quick-action-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--admin-primary);
    color: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

.quick-action-btn:hover {
    background: var(--admin-secondary);
    transform: scale(1.1) rotate(90deg);
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.4);
}

.quick-action-btn.back-btn {
    background: var(--admin-info);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.quick-action-btn.back-btn:hover {
    background: #1d4ed8;
}

.quick-action-btn.home-btn {
    background: var(--admin-success);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.quick-action-btn.home-btn:hover {
    background: #047857;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .user-dropdown {
        right: 1rem;
        width: 200px;
    }
    
    .back-button {
        left: 1rem;
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }
    
    .quick-actions-bar {
        right: 1rem;
        bottom: 1rem;
    }
    
    .quick-action-btn {
        width: 45px;
        height: 45px;
        font-size: 1.125rem;
    }
}

/* 按钮样式 */
.btn {
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background-color: #f1f5f9;
    color: var(--dark-color);
}

.btn-secondary:hover {
    background-color: #e2e8f0;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .page-header {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .header-stats {
        width: 100%;
        justify-content: space-between;
    }
    
    .stat-card {
        flex: 1;
        min-width: auto;
    }
}

@media (max-width: 992px) {
    .action-bar {
        flex-direction: column;
        gap: 1.5rem;
        align-items: stretch;
    }
    
    .action-left {
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-box {
        width: 100%;
    }
    
    .action-right {
        justify-content: space-between;
    }
    
    .classmates-table {
        display: block;
        overflow-x: auto;
    }
}

@media (max-width: 768px) {
    .header-stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .stat-card {
        width: 100%;
    }
    
    .legend-items {
        flex-direction: column;
        gap: 1rem;
    }
    
    .classmates-table th,
    .classmates-table td {
        padding: 0.75rem;
    }
}

/* 功能卡片 */
.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--dark-color);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.feature-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    text-decoration: none;
    color: var(--dark-color);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.feature-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

.card-icon {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.card-icon.blue {
    background-color: #dbeafe;
    color: var(--primary-color);
}

.card-icon.green {
    background-color: #dcfce7;
    color: var(--success-color);
}

.card-icon.purple {
    background-color: #f3e8ff;
    color: #8b5cf6;
}

.card-icon.orange {
    background-color: #ffedd5;
    color: var(--warning-color);
}

.feature-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.feature-card p {
    color: var(--gray-color);
    font-size: 0.9rem;
}

/* 通知区域 */
.notices-section {
    margin-top: 2rem;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.view-all {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.notices-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.notice-item {
    background: white;
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    display: flex;
    gap: 1rem;
    border-left: 4px solid var(--border-color);
}

.notice-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    background-color: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--primary-color);
}

.notice-content h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.notice-content p {
    color: var(--gray-color);
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.notice-time {
    font-size: 0.85rem;
    color: var(--gray-color);
}

/* 页脚 */
.dashboard-footer {
    background: white;
    padding: 1.5rem 2rem;
    text-align: center;
    border-top: 1px solid var(--border-color);
    color: var(--gray-color);
    font-size: 0.9rem;
    margin-top: auto;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .login-container {
        flex-direction: column;
    }
    
    .login-card {
        max-width: 100%;
    }
    
    .login-side {
        display: none;
    }
    
    .dashboard-header {
        padding: 0 1rem;
    }
    
    .main-nav {
        display: none;
    }
}

@media (max-width: 768px) {
    .dashboard-main {
        padding: 1rem;
    }
    
    .welcome-card {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
    
    .welcome-image {
        order: -1;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
}

/* 登录页脚 */
.login-footer {
    margin-top: 1.5rem;
    padding: 1rem;
    background-color: #f8fafc;
    border-radius: var(--radius-md);
    border-left: 4px solid var(--accent-color);
    text-align: center;
}

.login-footer p {
    font-size: 0.9rem;
    color: var(--gray-color);
    margin-bottom: 0.25rem;
}

.login-footer strong {
    color: var(--primary-color);
    font-weight: 700;
}

/* 安全通知 */
.security-notice {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 2rem;
    padding: 1rem;
    background-color: #f0f9ff;
    border-radius: var(--radius-md);
    border-left: 4px solid var(--accent-color);
}

.security-notice i {
    color: var(--accent-color);
    font-size: 1.25rem;
}

.security-notice p {
    font-size: 0.9rem;
    color: var(--gray-color);
}

/* 登录侧边栏 */
.login-side {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
}

.side-content {
    max-width: 500px;
}

.side-content h2 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.side-content > p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 3rem;
}

.features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

.feature {
    text-align: center;
}

.feature i {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.feature h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.feature p {
    font-size: 0.95rem;
    opacity: 0.8;
}

.class-info {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    backdrop-filter: blur(10px);
}

.class-info p {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    font-size: 1rem;
}

.class-info i {
    font-size: 1.25rem;
}

/* 警告框 */
.alert {
    padding: 1rem 1.25rem;
    border-radius: var(--radius-md);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.alert-error {
    background-color: #fee2e2;
    color: #991b1b;
    border-left: 4px solid var(--danger-color);
}

.alert-success {
    background-color: #dcfce7;
    color: #166534;
    border-left: 4px solid var(--success-color);
}

/* 主页面样式 */
.dashboard {
    background-color: #f8fafc;
}

.dashboard-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* 顶部导航 */
.dashboard-header {
    background: white;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.header-left .logo {
    margin-bottom: 0;
}

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

.main-nav {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: var(--gray-color);
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0;
    border-bottom: 3px solid transparent;
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-link.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

/* 用户菜单 */
.user-menu {
    position: relative;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: var(--transition);
}

.user-info:hover {
    background-color: #f8fafc;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border-color);
}

.user-details {
    display: flex;
    flex-direction: column;
}

.user-name {
    font-weight: 600;
    font-size: 0.95rem;
}

.user-id {
    font-size: 0.8rem;
    color: var(--gray-color);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    width: 200px;
    background: white;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    padding: 0.5rem 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    z-index: 1000;
}

.user-menu:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: var(--dark-color);
    text-decoration: none;
    transition: var(--transition);
}

.dropdown-menu a:hover {
    background-color: #f8fafc;
    color: var(--primary-color);
}

.dropdown-menu .divider {
    height: 1px;
    background-color: var(--border-color);
    margin: 0.5rem 0;
}

.dropdown-menu .logout {
    color: var(--danger-color);
}

/* 主要内容区域 */
.dashboard-main {
    flex: 1;
    padding: 2rem;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

/* 欢迎区域 */
.welcome-section {
    margin-bottom: 2.5rem;
}

.welcome-card {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow-lg);
}

.welcome-content h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.welcome-content p {
    opacity: 0.9;
    margin-bottom: 1.5rem;
}

.stats {
    display: flex;
    gap: 2rem;
}

.stat {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background-color: rgba(255, 255, 255, 0.1);
    padding: 0.75rem 1.25rem;
    border-radius: var(--radius-lg);
    backdrop-filter: blur(10px);
}

.stat i {
    font-size: 1.25rem;
}

.welcome-image i {
    font-size: 8rem;
    opacity: 0.2;
}

/* 功能卡片 */
.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--dark-color);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.feature-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    text-decoration: none;
    color: var(--dark-color);
    transition: var(--transition);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.card-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    font-size: 1.75rem;
}

.card-icon.blue {
    background-color: #dbeafe;
    color: var(--primary-color);
}

.card-icon.green {
    background-color: #dcfce7;
    color: var(--success-color);
}

.card-icon.purple {
    background-color: #f3e8ff;
    color: #8b5cf6;
}

.card-icon.orange {
    background-color: #ffedd5;
    color: var(--warning-color);
}

.card-icon.red {
    background-color: #fee2e2;
    color: var(--danger-color);
}

.card-icon.teal {
    background-color: #ccfbf1;
    color: #0d9488;
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.feature-card p {
    color: var(--gray-color);
    font-size: 0.95rem;
}

.card-badge {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background-color: var(--danger-color);
    color: white;
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-weight: 600;
}

/* 内容行 */
.content-row {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
}

/* 通知区域 */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.view-all {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
}

.notices-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.notice-item {
    background: white;
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    display: flex;
    gap: 1rem;
    border-left: 4px solid var(--border-color);
    transition: var(--transition);
}

.notice-item:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-md);
}

.notice-item.urgent {
    border-left-color: var(--danger-color);
}

.notice-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    background-color: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.notice-item.urgent .notice-icon {
    background-color: #fee2e2;
    color: var(--danger-color);
}

.notice-content {
    flex: 1;
}

.notice-content h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.notice-content p {
    color: var(--gray-color);
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.notice-time {
    font-size: 0.85rem;
    color: var(--gray-color);
}

/* 日历和活动 */
.calendar {
    background: white;
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.calendar-nav {
    background: none;
    border: none;
    color: var(--gray-color);
    cursor: pointer;
    font-size: 1.1rem;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.calendar-nav:hover {
    background-color: #f8fafc;
    color: var(--primary-color);
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    text-align: center;
    font-weight: 600;
    color: var(--gray-color);
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.5rem;
}

.calendar-days div {
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
}

.calendar-days div:hover {
    background-color: #f1f5f9;
}

.calendar-days .today {
    background-color: var(--primary-color);
    color: white;
    font-weight: 600;
}

.calendar-days .event-day {
    position: relative;
    color: var(--primary-color);
    font-weight: 600;
}

.calendar-days .event-day::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    background-color: var(--primary-color);
    border-radius: 50%;
}

.upcoming-events {
    background: white;
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.upcoming-events h3 {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.event-item {
    display: flex;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
}

.event-item:last-child {
    border-bottom: none;
}

.event-date {
    width: 60px;
    height: 60px;
    background-color: #f8fafc;
    border-radius: var(--radius-md);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.event-day {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
}

.event-month {
    font-size: 0.85rem;
    color: var(--gray-color);
}

.event-details h4 {
    font-size: 1.05rem;
    margin-bottom: 0.25rem;
    font-weight: 600;
}

.event-details p {
    color: var(--gray-color);
    font-size: 0.9rem;
}

/* 页脚 */
.dashboard-footer {
    background: white;
    padding: 1.5rem 2rem;
    text-align: center;
    border-top: 1px solid var(--border-color);
    color: var(--gray-color);
    font-size: 0.95rem;
    margin-top: auto;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 0.75rem;
}

.footer-links a {
    color: var(--gray-color);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary-color);
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .content-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 992px) {
    .login-container {
        flex-direction: column;
    }
    
    .login-card {
        max-width: 100%;
        padding: 2rem;
    }
    
    .login-side {
        display: none;
    }
    
    .dashboard-header {
        padding: 0 1rem;
    }
    
    .main-nav {
        display: none;
    }
    
    .features-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .dashboard-main {
        padding: 1rem;
    }
    
    .welcome-card {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }
    
    .stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-links {
        flex-wrap: wrap;
        gap: 1rem;
    }
}