:root {
    --primary-dark: #2c3e50;
    --primary-medium: #34495e;
    --primary-light: #4a6572;
    --accent-blue: #3498db;
    --accent-light-blue: #5dade2;
    --background-light: #ecf0f1;
    --background-white: #ffffff;
    --text-dark: #2c3e50;
    --text-medium: #5d6d7e;
    --text-light: #7f8c8d;
    --border-light: #d5dbdb;
    --success: #2ecc71;
    --warning: #f39c12;
    --error: #e74c3c;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Noto Sans SC', sans-serif;
}

body {
    background-color: var(--background-light);
    color: var(--text-dark);
    line-height: 1.6;
}

.container {
    display: flex;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    gap: 20px;
}

/* 左侧导航样式 */
.left-nav {
    width: 280px;
    flex-shrink: 0;
}

.profile-card {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-medium));
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin-bottom: 20px;
}

.profile-header {
    padding: 25px 20px 15px;
    text-align: center;
    color: white;
}

.avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.3);
    margin: 0 auto 15px;
    overflow: hidden;
}

.avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-name {
    font-size: 20px;
    font-weight: 500;
    margin-bottom: 5px;
}

.profile-bio {
    font-size: 14px;
    opacity: 0.8;
    margin-bottom: 15px;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--accent-blue);
    transform: translateY(-2px);
}

.nav-card {
    background: var(--background-white);
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    margin-bottom: 20px;
}

.nav-header {
    padding: 15px 20px;
    background: var(--primary-medium);
    color: white;
    font-weight: 500;
}

.nav-links {
    padding: 10px 0;
}

.nav-links a {
    display: block;
    padding: 12px 20px;
    color: var(--text-medium);
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.nav-links a:hover {
    background: rgba(52, 152, 219, 0.1);
    color: var(--accent-blue);
    border-left-color: var(--accent-blue);
}

.nav-links a.active {
    background: rgba(52, 152, 219, 0.1);
    color: var(--accent-blue);
    border-left-color: var(--accent-blue);
}

.month-list {
    padding: 15px 20px;
}

.month-item {
    display: inline-block;
    margin: 5px;
    padding: 6px 12px;
    background: var(--background-light);
    color: var(--text-medium);
    border-radius: 20px;
    font-size: 13px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.month-item:hover {
    background: var(--accent-blue);
    color: white;
}

/* 右侧内容样式 */
.right-content {
    flex: 1;
}

.page-title {
    font-size: 24px;
    font-weight: 500;
    margin-bottom: 20px;
    color: var(--primary-dark);
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-light);
}

.waterfall-container {
    column-count: 2;
    column-gap: 20px;
}

@media (max-width: 768px) {
    .waterfall-container {
        column-count: 1;
    }
    
    .container {
        flex-direction: column;
    }
    
    .left-nav {
        width: 100%;
    }
}

.article-card {
    break-inside: avoid;
    margin-bottom: 20px;
    background: var(--background-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.article-image {
    width: 100%;
    height: 180px;
    overflow: hidden;
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.article-card:hover .article-image img {
    transform: scale(1.05);
}

.article-content {
    padding: 20px;
}

.article-date {
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 10px;
}

.article-title {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 10px;
}

.article-summary {
    font-size: 14px;
    color: var(--text-medium);
    line-height: 1.6;
}

.read-more {
    display: inline-block;
    margin-top: 15px;
    color: var(--accent-blue);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.read-more:hover {
    color: var(--accent-light-blue);
    text-decoration: underline;
}

/* 加载状态 */
.loading, .loading-small {
    text-align: center;
    color: var(--text-light);
    padding: 20px;
}

.loading-small {
    padding: 10px;
    font-size: 13px;
}

.empty-state {
    text-align: center;
    padding: 40px;
    color: var(--text-light);
}

/* 登录页面样式 */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-medium));
    padding: 20px;
}

.login-box {
    width: 100%;
    max-width: 400px;
    background: var(--background-white);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.login-header {
    padding: 30px 20px 20px;
    text-align: center;
    background: var(--primary-medium);
    color: white;
}

.login-header h2 {
    font-weight: 500;
}

.login-body {
    padding: 30px;
}

.login-form .layui-form-item {
    margin-bottom: 20px;
}

.login-form .layui-form-label {
    color: var(--text-medium);
}

.login-form .layui-input {
    border-radius: 6px;
    border: 1px solid var(--border-light);
    padding-left: 15px;
}

.login-form .layui-input:focus {
    border-color: var(--accent-blue);
}

.login-btn {
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-light-blue));
    border: none;
    border-radius: 6px;
    height: 44px;
    line-height: 44px;
    font-size: 16px;
    transition: all 0.3s ease;
}

.login-btn:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

/* 文章详情页样式 */
.article-detail {
    background: var(--background-white);
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.article-header {
    padding: 30px;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-medium));
    color: white;
}

.article-title-large {
    font-size: 28px;
    font-weight: 500;
    margin-bottom: 10px;
}

.article-meta {
    display: flex;
    gap: 15px;
    font-size: 14px;
    opacity: 0.8;
}

.article-body {
    padding: 30px;
}

.carousel-container {
    margin-bottom: 30px;
    border-radius: 8px;
    overflow: hidden;
}

.article-text {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-medium);
}

.article-text p {
    margin-bottom: 15px;
}

/* 管理后台样式 */
.admin-container {
    background: var(--background-white);
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.admin-header {
    padding: 20px 30px;
    background: var(--primary-medium);
    color: white;
}

.admin-body {
    padding: 30px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: var(--background-light);
    padding: 20px;
    border-radius: 8px;
    text-align: center;
}

.stat-number {
    font-size: 32px;
    font-weight: 700;
    color: var(--accent-blue);
    margin-bottom: 5px;
}

.stat-label {
    color: var(--text-medium);
    font-size: 14px;
}

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

.fade-in {
    animation: fadeIn 0.5s ease forwards;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }

/* 响应式调整 */
@media (max-width: 800px) {
    .container {
        flex-direction: column;
    }
    
    /*.left-nav {
        width: 100%;
    }*/
    
    .left-nav {
        width: 100% !important;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }
    
    .mobile-menu-btn {
        display: flex;
        justify-content: space-around;
        padding: 10px 0;
        background: #f8f9fa;
        border-bottom: 1px solid #eee;
    }
    
    .nav-btn, .archive-btn {
        padding: 8px 16px;
        background: var(--primary-dark);
        color: white;
        border: none;
        border-radius: 4px;
        cursor: pointer;
    }
    
    /* 默认隐藏原始导航内容 */
    
    .nav-card,
    .month-list {
        display: none;
    }
    
    /* 展开状态 */
    .left-nav.expanded {
        max-height: 1000px; /* 足够大的值以显示所有内容 */
    }
    
    .left-nav.expanded .profile-card,
    .left-nav.expanded .nav-card,
    .left-nav.expanded .month-list {
        display: block;
    }
}

/* 桌面端样式保持不变 */
@media (min-width: 801px) {
    .mobile-menu-btn {
        display: none;
    }
    
    .left-nav {
        width: 250px; /* 保持原有宽度 */
    }
}