/* ------------------------------------
 * Nano for Typecho
 *
 * @author Beichen
 * @link https://bcsm.us.kg
 * @update 2024
 * --------------------------------- */

/* CSS变量 */
:root {
    --primary-color: #2c3e50;
    --text-color: #333;
    --text-light: #666;
    --bg-color: #fff;
    --border-color: #eaeaea;
    --sidebar-bg: #f8f9fa;
    --spacing: 1.5rem;
}

/* 基础布局 */
.layout-container {
    min-height: 100vh;
}

.sidebar {
    background: var(--sidebar-bg);
    border-right: 1px solid var(--border-color);
    position: fixed;
    height: 100vh;
    overflow-y: auto;
}

.sidebar-content {
    padding: var(--spacing);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.main-content {
    padding: var(--spacing);
}

/* 网站标题 */
.site-header {
    margin-bottom: 2rem;
}

.site-title {
    font-size: 1.5rem;
    margin: 0 0 0.5rem 0;
}

.site-title a {
    color: var(--primary-color);
    text-decoration: none;
}

.site-description {
    color: var(--text-light);
    font-size: 0.9rem;
    margin: 0;
}

/* 导航样式 */
.nav-list {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem 0;
}

.nav-list li {
    margin-bottom: 0.5rem;
}

.nav-list a {
    display: block;
    padding: 0.5rem 0;
    color: var(--text-color);
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.nav-list a:hover,
.nav-list li.active a {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

/* 搜索框 */
.search-box {
    margin-bottom: 2rem;
}

.pure-input-1 {
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 0.75rem;
}

/* 侧边栏描述 */
.sidebar-desc {
    margin-bottom: 2rem;
    padding: 1rem;
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 0.9rem;
    color: var(--text-light);
}

/* 侧边栏页脚 */
.sidebar-footer {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
    font-size: 0.8rem;
    color: var(--text-light);
}

/* 文章样式 */
.post {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.post:last-child {
    border-bottom: none;
}

.post-header {
    margin-bottom: 1rem;
}

.post-title {
    font-size: 1.5rem;
    margin: 0 0 0.5rem 0;
}

.post-title a {
    color: var(--text-color);
    text-decoration: none;
}

.post-title a:hover {
    color: var(--primary-color);
}

.post-meta {
    color: var(--text-light);
    font-size: 0.9rem;
}

.post-excerpt {
    margin-bottom: 1rem;
    line-height: 1.7;
}

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

/* 页脚样式 */
.site-footer {
    background: var(--sidebar-bg);
    border-top: 1px solid var(--border-color);
    margin-top: 4rem;
    padding: 3rem 0 1rem;
}

.footer-columns {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-column {
    flex: 1;
    min-width: 200px;
}

.footer-column h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 0.5rem;
    display: inline-block;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    flex-wrap: wrap;
    gap: 1rem;
}

/* 工具类 */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mt-2 { margin-top: 2rem; }
.mb-2 { margin-bottom: 2rem; }

/* 响应式设计 */
@media (max-width: 768px) {
    .sidebar {
        position: static;
        height: auto;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }
    
    .sidebar-content {
        padding: 1rem;
    }
    
    .nav-list {
        display: flex;
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .nav-list li {
        margin-bottom: 0;
    }
    
    .footer-columns {
        flex-direction: column;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    :root {
        --spacing: 1rem;
    }
    
    .main-content,
    .sidebar-content {
        padding: 1rem;
    }
    
    .post-title {
        font-size: 1.25rem;
    }
}