/* styles.css */
/* 基础样式重置与全局设置 */
:root {
    --primary-color: #4361ee;
    --secondary-color: #3f37c9;
    --accent-color: #4cc9f0;
    --success-color: #4ade80;
    --warning-color: #facc15;
    --danger-color: #f87171;
    --dark-color: #1e293b;
    --light-color: #f8fafc;
    --gray-color: #94a3b8;
    --card-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    color: var(--dark-color);
    line-height: 1.6;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiPjxkZWZzPjxwYXR0ZXJuIGlkPSJwYXR0ZXJuIiB3aWR0aD0iNjAiIGhlaWdodD0iNjAiIHBhdHRlcm5Vbml0cz0idXNlclNwYWNlT25Vc2UiIHBhdHRlcm5UcmFuc2Zvcm09InJvdGF0ZSg0NSkiPjxyZWN0IHdpZHRoPSIzMCIgaGVpZ2h0PSIzIiBmaWxsPSIjNGNjOWYwIiBvcGFjaXR5PSIwLjEiLz48L3BhdHRlcm4+PC9kZWZzPjxyZWN0IHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiIGZpbGw9InVybCgjcGF0dGVybikiLz48L3N2Zz4=');
    opacity: 0.1;
    z-index: -1;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
    100% {
        transform: translateY(0px);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.8s ease forwards;
}

.animate-slide-in-left {
    animation: slideInLeft 0.5s ease forwards;
}

/* 导航栏样式 */
header {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    color: var(--dark-color);
    padding: 1rem 0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo i {
    animation: float 3s ease-in-out infinite;
}

/* 移动端菜单按钮 */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--dark-color);
    cursor: pointer;
    padding: 0.5rem;
}

/* 导航链接区域 */
.nav-links {
    display: flex;
    align-items: center;
    gap: 15px;
}

.nav-links a {
    color: var(--dark-color);
    padding: 0.7rem 1.2rem;
    border-radius: 50px;
    transition: var(--transition);
    font-weight: 500;
    position: relative;
    overflow: hidden;
}

.nav-links a:hover {
    background: rgba(67, 97, 238, 0.1);
    color: var(--primary-color);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: var(--primary-color);
    transition: var(--transition);
    transform: translateX(-50%);
}

.nav-links a:hover::after {
    width: 70%;
}

/* 登录/用户信息区域 */
.auth-area {
    display: flex;
    align-items: center;
    gap: 15px;
}

.auth-btn {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 0.7rem 1.5rem;
    border-radius: 50px;
    transition: var(--transition);
    font-weight: 500;
    box-shadow: 0 4px 6px rgba(67, 97, 238, 0.3);
}

.auth-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 10px rgba(67, 97, 238, 0.4);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(255, 255, 255, 0.8);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    backdrop-filter: blur(10px);
    box-shadow: var(--card-shadow);
}

.user-avatar-small {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--accent-color);
    cursor: pointer;
    transition: var(--transition);
}

.user-avatar-small:hover {
    transform: scale(1.1);
    box-shadow: 0 0 0 3px rgba(76, 201, 240, 0.3);
}

.sign-btn {
    background: linear-gradient(45deg, var(--warning-color), #f59e0b);
    color: white;
    padding: 0.7rem 1.5rem;
    border-radius: 50px;
    transition: var(--transition);
    font-weight: 500;
    box-shadow: 0 4px 6px rgba(250, 204, 21, 0.3);
}

.sign-btn:hover:not(.disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 10px rgba(250, 204, 21, 0.4);
}

.sign-btn.disabled {
    background: linear-gradient(45deg, #cbd5e1, #94a3b8);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* 主要内容区域 */
.main-content {
    display: flex;
    gap: 30px;
    margin: 30px 0;
}

.content-section {
    flex: 3;
}

.sidebar {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* 个人介绍样式 */
.profile {
    background: rgba(255, 255, 255, 0.85);
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--card-shadow);
    margin-bottom: 30px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    position: relative;
    overflow: hidden;
}

.profile::before {
    content: "";
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(67, 97, 238, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
}

.profile-img-container {
    position: relative;
    z-index: 1;
    float: left;
    margin-right: 30px;
    margin-bottom: 20px;
}

.profile-img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid white;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    animation: float 4s ease-in-out infinite;
}

.profile-info {
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.profile-info h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--dark-color);
    position: relative;
    display: inline-block;
}

.profile-info h2::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    border-radius: 2px;
}

.profile-info p {
    margin-bottom: 15px;
    color: #475569;
    font-size: 1.1rem;
    line-height: 1.8;
}

.tags-container {
    margin-top: 25px;
}

.tag {
    display: inline-block;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 8px 16px;
    border-radius: 50px;
    margin-right: 12px;
    margin-bottom: 12px;
    font-size: 0.9rem;
    font-weight: 500;
    box-shadow: 0 4px 6px rgba(67, 97, 238, 0.2);
    transition: var(--transition);
}

.tag:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 10px rgba(67, 97, 238, 0.3);
}

/* 学习资料样式 */
.materials {
    margin: 30px 0;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
}

.section-header h2 {
    font-size: 2rem;
    color: var(--dark-color);
    position: relative;
    padding-left: 20px;
}

.section-header h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 40px;
    background: linear-gradient(to bottom, var(--primary-color), var(--accent-color));
    border-radius: 4px;
}

.section-icon {
    font-size: 1.8rem;
    color: var(--primary-color);
    background: rgba(67, 97, 238, 0.1);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
}

.material-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.material-card {
    background: rgba(255, 255, 255, 0.85);
    padding: 30px;
    border-radius: 20px;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    position: relative;
    overflow: hidden;
}

.material-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
}

.material-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.material-card h3 {
    margin-bottom: 15px;
    color: var(--dark-color);
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.material-card h3 i {
    color: var(--primary-color);
}

.material-card p {
    color: #475569;
    margin-bottom: 20px;
    font-size: 1rem;
    line-height: 1.7;
}

.material-card a {
    display: inline-block;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 12px 25px;
    border-radius: 50px;
    transition: var(--transition);
    font-weight: 500;
    box-shadow: 0 4px 6px rgba(67, 97, 238, 0.3);
}

.material-card a:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 15px rgba(67, 97, 238, 0.4);
}

/* 联系方式样式 */
.contact {
    background: rgba(255, 255, 255, 0.85);
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--card-shadow);
    margin: 30px 0;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 15px;
    transition: var(--transition);
}

.contact-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.05);
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    flex-shrink: 0;
}

.contact-text {
    font-size: 1.1rem;
    color: var(--dark-color);
    font-weight: 500;
}

.contact-text span:first-child {
    display: block;
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--primary-color);
}

/* 留言板样式 */
.message-board {
    background: rgba(255, 255, 255, 0.85);
    padding: 30px;
    border-radius: 20px;
    box-shadow: var(--card-shadow);
    margin: 30px 0;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    display: none;
}

.message-board.active {
    display: block;
    animation: fadeInUp 0.5s ease forwards;
}

.message-form {
    background: rgba(255, 255, 255, 0.7);
    padding: 25px;
    border-radius: 15px;
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--dark-color);
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 1rem;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.2);
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

.btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 50px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: white;
    box-shadow: 0 4px 6px rgba(67, 97, 238, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 10px rgba(67, 97, 238, 0.4);
}

.messages-container {
    margin-top: 30px;
}

.message-item {
    background: rgba(255, 255, 255, 0.7);
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 20px;
    border-left: 4px solid var(--primary-color);
}

.message-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    align-items: center;
}

.message-author {
    font-weight: 600;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.message-avatar {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    object-fit: cover;
}

.message-time {
    color: var(--gray-color);
    font-size: 0.9rem;
}

.message-content {
    color: #334155;
    line-height: 1.7;
}

.message-actions {
    display: flex;
    gap: 15px;
    margin-top: 15px;
    justify-content: flex-end;
}

.action-btn {
    background: none;
    border: none;
    color: var(--gray-color);
    cursor: pointer;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: var(--transition);
}

.action-btn:hover {
    color: var(--primary-color);
}

/* 侧边栏组件 */
.sidebar-card {
    background: rgba(255, 255, 255, 0.85);
    padding: 25px;
    border-radius: 20px;
    box-shadow: var(--card-shadow);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.sidebar-card h3 {
    font-size: 1.4rem;
    margin-bottom: 20px;
    color: var(--dark-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidebar-card h3 i {
    color: var(--primary-color);
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.stat-item {
    text-align: center;
    padding: 15px;
    background: rgba(67, 97, 238, 0.05);
    border-radius: 10px;
}

.stat-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--gray-color);
}

.recent-activity {
    margin-top: 20px;
}

.activity-item {
    display: flex;
    gap: 15px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.activity-item:last-child {
    border-bottom: none;
}

.activity-icon {
    width: 40px;
    height: 40px;
    background: rgba(67, 97, 238, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    flex-shrink: 0;
}

.activity-content {
    flex: 1;
}

.activity-text {
    font-size: 0.95rem;
    margin-bottom: 5px;
}

.activity-time {
    font-size: 0.8rem;
    color: var(--gray-color);
}

/* 快速访问按钮 */
.quick-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.quick-action-btn {
    flex: 1;
    min-width: 120px;
    padding: 10px;
    background: rgba(67, 97, 238, 0.1);
    border-radius: 10px;
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
}

.quick-action-btn:hover {
    background: rgba(67, 97, 238, 0.2);
    transform: translateY(-2px);
}

.quick-action-btn i {
    display: block;
    font-size: 1.2rem;
    margin-bottom: 5px;
    color: var(--primary-color);
}

/* 页脚样式 */
footer {
    background: linear-gradient(135deg, var(--dark-color) 0%, #0f172a 100%);
    color: white;
    text-align: center;
    padding: 3rem 0 2rem;
    margin-top: 60px;
    position: relative;
}

footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
}

footer p {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 10px;
    opacity: 0.8;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 20px 0;
}

.social-link {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    transition: var(--transition);
}

.social-link:hover {
    background: var(--primary-color);
    transform: translateY(-5px);
}

/* 响应式样式 */
@media (max-width: 992px) {
    .main-content {
        flex-direction: column;
    }
    
    .profile {
        text-align: center;
    }
    
    .profile-img-container {
        float: none;
        display: flex;
        justify-content: center;
        margin-right: 0;
    }
    
    .profile-info h2::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .tags-container {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .nav-container {
        flex-direction: row;
        gap: 15px;
        position: relative;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
        border-radius: 0 0 20px 20px;
        padding: 10px 0;
        display: none;
        z-index: 1000;
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .nav-links a {
        padding: 15px 20px;
        border-radius: 0;
        text-align: center;
    }
    
    .auth-area {
        display: none;
    }
    
    .mobile-auth-area {
        display: flex;
        justify-content: center;
        padding: 15px 0;
        background: rgba(255, 255, 255, 0.8);
        border-top: 1px solid rgba(0, 0, 0, 0.05);
        margin-top: 10px;
    }
    
    .profile {
        padding: 30px 20px;
    }
    
    .profile-img {
        width: 120px;
        height: 120px;
    }
    
    .material-list {
        grid-template-columns: 1fr;
    }
    
    .contact {
        padding: 30px 20px;
    }
    
    .contact-info {
        grid-template-columns: 1fr;
    }
    
    .message-board {
        padding: 20px;
    }
    
    .message-form {
        padding: 20px;
    }
    
    .message-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .message-actions {
        justify-content: flex-start;
    }
}

@media (max-width: 576px) {
    .logo {
        font-size: 1.5rem;
    }
    
    .nav-links a {
        padding: 12px 15px;
        font-size: 0.9rem;
    }
    
    .user-info {
        padding: 0.5rem 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .profile-info h2 {
        font-size: 1.8rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .section-header h2 {
        font-size: 1.5rem;
    }
    
    .material-card {
        padding: 20px;
    }
    
    .material-card h3 {
        font-size: 1.2rem;
    }
    
    .contact-item {
        flex-direction: column;
        text-align: center;
    }
    
    .contact-icon {
        margin-bottom: 10px;
    }
    
    .quick-action-btn {
        min-width: 80px;
        padding: 8px;
        font-size: 0.8rem;
    }
    
    footer {
        padding: 2rem 0 1rem;
    }
    
    footer p {
        font-size: 0.9rem;
    }
}

/* 加载动画 */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 切换按钮样式 */
.tab-buttons {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.tab-btn {
    padding: 10px 20px;
    background: rgba(67, 97, 238, 0.1);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition);
}

.tab-btn.active {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: white;
}

.tab-btn:hover:not(.active) {
    background: rgba(67, 97, 238, 0.2);
}

/* 移动端优化 */
@media (max-width: 480px) {
    .container {
        padding: 10px;
    }
    
    .profile {
        padding: 20px 15px;
    }
    
    .profile-img {
        width: 100px;
        height: 100px;
    }
    
    .profile-info h2 {
        font-size: 1.5rem;
    }
    
    .tag {
        padding: 6px 12px;
        font-size: 0.8rem;
        margin-right: 8px;
        margin-bottom: 8px;
    }
    
    .section-header {
        gap: 10px;
    }
    
    .section-icon {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
    }
    
    .section-header h2 {
        font-size: 1.3rem;
    }
    
    .material-card {
        padding: 15px;
    }
    
    .material-card h3 {
        font-size: 1.1rem;
        margin-bottom: 10px;
    }
    
    .material-card p {
        font-size: 0.9rem;
        margin-bottom: 15px;
    }
    
    .material-card a {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .contact {
        padding: 20px 15px;
    }
    
    .contact-item {
        padding: 15px;
    }
    
    .contact-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .contact-text {
        font-size: 0.9rem;
    }
    
    .sidebar-card {
        padding: 20px 15px;
    }
    
    .sidebar-card h3 {
        font-size: 1.2rem;
        margin-bottom: 15px;
    }
    
    .stat-value {
        font-size: 1.5rem;
    }
    
    .activity-text {
        font-size: 0.9rem;
    }
}
/* 可隐藏导航栏样式 */
.nav-hidden header {
    transform: translateY(-100%);
}

header {
    transition: transform 0.3s ease;
}

/* 导航栏切换按钮 */
.nav-toggle-btn {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    background: rgba(67, 97, 238, 0.9);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    display: none;
    align-items: center;
    justify-content: center;
}

.nav-toggle-btn:hover {
    background: rgba(67, 97, 238, 1);
}

/* 在小屏幕上显示切换按钮 */
@media (max-width: 768px) {
    .nav-toggle-btn {
        display: flex;
    }
    
    .nav-hidden .nav-toggle-btn {
        top: 20px;
    }
}

/* 自动隐藏导航栏 - 滚动时 */
.nav-auto-hide header {
    transform: translateY(-100%);
}

.nav-auto-hide .nav-toggle-btn {
    transform: translateY(0);
}
/* 在 styles.css 文件末尾添加 */
@media (max-width: 768px) {
    /* 隐藏桌面端的用户信息区域 */
    .auth-area {
        display: none;
    }
    
    /* 显示移动端的用户信息区域 */
    .mobile-auth-area {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.9);
        backdrop-filter: blur(10px);
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        z-index: 100;
        padding: 10px 20px;
    }
    
    /* 调整移动端用户信息样式 */
    #mobile-user-area {
        display: flex;
        align-items: center;
        gap: 15px;
        padding: 0;
        margin: 0;
    }
    
    /* 确保移动端按钮不重复 */
    .mobile-auth-area .user-info {
        display: flex;
        align-items: center;
        gap: 15px;
        padding: 0;
        margin: 0;
    }
}