/* 全局样式 */
:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --sidebar-bg: #f8f9fa;
    --sidebar-active: #e9ecef;
    --text-color: #212529;
    --light-text: #6c757d;
    --border-color: #dee2e6;
    --card-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition-speed: 0.3s;
}

body {
    font-family: 'Microsoft YaHei', 'Segoe UI', sans-serif;
    color: var(--text-color);
    background-color: #f5f5f5;
    overflow-x: hidden;
}

/* 侧边栏样式 */
.sidebar {
    background-color: var(--sidebar-bg);
    min-height: 100vh;
    padding: 0;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: all var(--transition-speed);
}

.sidebar-header {
    padding: 1.5rem 1rem;
    background: linear-gradient(135deg, var(--primary-color), #0a58ca);
    color: white;
    text-align: center;
}

.sidebar-header h3 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
}

.sidebar-user {
    display: flex;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 10px;
    object-fit: cover;
}

.user-info h6 {
    margin: 0;
    font-weight: 600;
}

.user-info p {
    margin: 0;
    font-size: 0.8rem;
    color: var(--light-text);
}

.nav-item {
    margin: 0.25rem 0;
}

.nav-link {
    color: var(--text-color);
    padding: 0.75rem 1rem;
    border-radius: 0.25rem;
    margin: 0 0.5rem;
    transition: all var(--transition-speed);
}

.nav-link:hover {
    background-color: rgba(13, 110, 253, 0.1);
    color: var(--primary-color);
}

.nav-link.active {
    background-color: var(--sidebar-active);
    color: var(--primary-color);
    font-weight: 500;
}

.nav-link i {
    margin-right: 0.5rem;
    font-size: 1.1rem;
}

.sidebar-footer {
    padding: 1rem;
    text-align: center;
    font-size: 0.8rem;
    color: var(--light-text);
    border-top: 1px solid var(--border-color);
    margin-top: auto;
    position: absolute;
    bottom: 0;
    width: 100%;
}

/* 主内容区域样式 */
.main-content {
    padding: 0;
    transition: all var(--transition-speed);
}

.content-page {
    display: none;
    height: 100vh;
    width: 100%;
}

.content-page.active {
    display: block;
}

iframe {
    width: 100%;
    height: 100vh;
    border: none;
}

/* 首页样式 */
.welcome-section {
    padding: 3rem;
    text-align: center;
    background-color: white;
    border-radius: 0.5rem;
    margin: 2rem;
    box-shadow: var(--card-shadow);
}

.welcome-section h1 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 700;
}

.feature-card {
    background-color: white;
    border-radius: 0.5rem;
    padding: 2rem;
    text-align: center;
    box-shadow: var(--card-shadow);
    transition: transform var(--transition-speed);
    cursor: pointer;
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.feature-card h3 {
    color: var(--text-color);
    margin-bottom: 1rem;
}

.feature-card p {
    color: var(--light-text);
    margin-bottom: 1.5rem;
}

/* 关于页面样式 */
.about-section {
    padding: 3rem;
    background-color: white;
    border-radius: 0.5rem;
    margin: 2rem;
    box-shadow: var(--card-shadow);
}

.about-section h2 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.about-section h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.about-section ul {
    padding-left: 1.5rem;
}

.about-section li {
    margin-bottom: 0.5rem;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .sidebar {
        position: fixed;
        left: -100%;
        width: 250px;
    }
    
    .sidebar.show {
        left: 0;
    }
    
    .main-content {
        width: 100%;
    }
    
    .welcome-section {
        padding: 1.5rem;
        margin: 1rem;
    }
    
    .about-section {
        padding: 1.5rem;
        margin: 1rem;
    }
}