/* 自定义样式 */

/* 登录/注册页面 */
.login-page {
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.login-container {
    max-width: 400px;
    width: 100%;
    background: white;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

.login-tabs {
    display: flex;
    margin-bottom: 30px;
    border-bottom: 2px solid #f0f0f0;
}

.login-tab {
    flex: 1;
    text-align: center;
    padding: 15px;
    background: none;
    border: none;
    font-size: 16px;
    font-weight: 500;
    color: #95a5a6;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.login-tab.active {
    color: #667eea;
}

.login-tab.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* 滚动条美化 */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4291 100%);
}

/* 动画效果 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.waterfall-item {
    animation: fadeIn 0.5s ease-out;
}

/* 移动端优化 */
@media (max-width: 768px) {
    .login-container {
        padding: 30px 20px;
    }
    
    .header-content {
        padding: 10px 0;
    }
    
    .site-title {
        font-size: 20px;
    }
    
    .main-menu {
        gap: 10px;
    }
    
    .menu-item a {
        padding: 6px 12px;
        font-size: 14px;
    }
}

/* 加载动画增强 */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.loading p {
    animation: pulse 1.5s ease-in-out infinite;
}

/* 暗色模式支持 */
@media (prefers-color-scheme: dark) {
    body {
        background-color: #1a1a1a;
        color: #e0e0e0;
    }
    
    .site-header {
        background: rgba(26, 26, 26, 0.95);
    }
    
    .waterfall-item {
        background: #2a2a2a;
    }
    
    .post-title {
        color: #e0e0e0;
    }
    
    .user-sidebar,
    .user-content {
        background: #2a2a2a;
    }
    
    .section-title {
        color: #e0e0e0;
    }
}