@charset "UTF-8";
/* ========== 全局重置与基础样式 ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f7fa;
    font-size: 15px;
    -webkit-font-smoothing: antialiased;
}
a {
    color: #165DFF;
    text-decoration: none;
    transition: all 0.2s ease;
}
a:hover {
    color: #0F4CD0;
}
ul, ol {
    list-style: none;
}
img {
    max-width: 100%;
    height: auto;
}

/* ========== 头部导航 ========== */
.site-header {
    background-color: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    position: sticky;
    top: 0;
    z-index: 999;
}
.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    height: 64px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo a {
    font-size: 22px;
    font-weight: 700;
    color: #165DFF;
}
.main-nav .nav-link {
    margin-left: 28px;
    color: #4e5969;
    font-size: 15px;
}
.main-nav .nav-link.active,
.main-nav .nav-link:hover {
    color: #165DFF;
}
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #333;
}

/* ========== 主容器布局 ========== */
.container {
    max-width: 1200px;
    margin: 24px auto;
    padding: 0 20px;
    display: flex;
    gap: 24px;
}
.main-content {
    flex: 1;
    min-width: 0;
}
.sidebar {
    width: 300px;
    flex-shrink: 0;
}

/* ========== 首页列表样式 ========== */
.list-card {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    transition: all 0.2s ease;
}
.list-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    transform: translateY(-2px);
}
.list-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
}
.list-title a {
    color: #1d2129;
}
.list-title a:hover {
    color: #165DFF;
}
.list-desc {
    color: #86909c;
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.list-meta {
    font-size: 13px;
    color: #c9cdd4;
}
.empty-tip {
    text-align: center;
    padding: 60px 20px;
    color: #86909c;
    background: #fff;
    border-radius: 8px;
}

/* ========== 分页样式 ========== */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 32px;
    flex-wrap: wrap;
}
.page-link {
    padding: 8px 14px;
    background: #fff;
    border: 1px solid #e5e6eb;
    border-radius: 6px;
    color: #4e5969;
    font-size: 14px;
}
.page-link:hover {
    border-color: #165DFF;
    color: #165DFF;
}
.page-link.active {
    background: #165DFF;
    border-color: #165DFF;
    color: #fff;
}
.page-ellipsis {
    color: #86909c;
    padding: 0 4px;
}

/* ========== 内容页样式 ========== */
.breadcrumb {
    background: #fff;
    padding: 12px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    color: #86909c;
}
.breadcrumb a {
    color: #86909c;
}
.breadcrumb a:hover {
    color: #165DFF;
}
.article-card {
    background: #fff;
    border-radius: 8px;
    padding: 32px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.article-title {
    font-size: 28px;
    font-weight: 700;
    line-height: 1.4;
    color: #1d2129;
    margin-bottom: 16px;
}
.article-meta {
    font-size: 14px;
    color: #86909c;
    padding-bottom: 20px;
    border-bottom: 1px solid #f2f3f5;
    margin-bottom: 24px;
}
.article-content {
    line-height: 1.8;
    color: #4e5969;
    font-size: 16px;
}
.article-content p {
    margin-bottom: 16px;
}
.article-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid #f2f3f5;
}
.nav-btn {
    padding: 10px 20px;
    background: #f2f3f5;
    border-radius: 6px;
    color: #4e5969;
    font-size: 14px;
    max-width: 48%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.nav-btn:hover {
    background: #165DFF;
    color: #fff;
}

/* ========== 侧边栏样式 ========== */
.widget {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.widget-title {
    font-size: 16px;
    font-weight: 600;
    color: #1d2129;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid #165DFF;
}
.widget-list li {
    padding: 8px 0;
    border-bottom: 1px solid #f2f3f5;
}
.widget-list li:last-child {
    border-bottom: none;
}
.widget-list a {
    color: #4e5969;
    font-size: 14px;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.widget-list a:hover {
    color: #165DFF;
    padding-left: 4px;
}

/* ========== 页脚样式 ========== */
.site-footer {
    background: #fff;
    padding: 24px 0;
    margin-top: 40px;
    border-top: 1px solid #e5e6eb;
}
.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
    color: #86909c;
    font-size: 14px;
}

/* ========== 响应式适配 ========== */
@media (max-width: 992px) {
    .container {
        flex-direction: column;
    }
    .sidebar {
        width: 100%;
    }
    .article-card {
        padding: 20px;
    }
    .article-title {
        font-size: 22px;
    }
}
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    .main-nav {
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: #fff;
        flex-direction: column;
        padding: 12px 0;
        box-shadow: 0 4px 8px rgba(0,0,0,0.06);
        display: none;
    }
    .main-nav.show {
        display: flex;
    }
    .main-nav .nav-link {
        margin: 0;
        padding: 12px 20px;
    }
    .header-container {
        height: 56px;
    }
    .container {
        margin: 16px auto;
        padding: 0 12px;
        gap: 16px;
    }
    .list-card, .article-card, .widget, .breadcrumb {
        padding: 16px;
    }
    .article-title {
        font-size: 20px;
    }
    .pagination {
        gap: 4px;
    }
    .page-link {
        padding: 6px 10px;
        font-size: 13px;
    }
    .article-nav {
        flex-direction: column;
        gap: 12px;
    }
    .nav-btn {
        max-width: 100%;
        text-align: center;
    }
}
