* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', sans-serif;
}

body {
    background-color: #f8f9fa;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
a{text-decoration: none;}

/* 页头样式 */
.header {
    background-color: #2c3e50;
    color: #ecf0f1;
    padding: 20px 0;
}

.header-container {
    width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 600;
}

.nav ul {
    list-style: none;
    display: flex;
}

.nav li {
    margin-left: 30px;
}

.nav a {
    color: #ecf0f1;
    text-decoration: none;
    transition: color 0.3s;
}

.nav a:hover {
    color: #3498db;
}

.container {
    width: 1200px;
    margin: 30px auto;
    padding: 20px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
    flex: 1;
}

.main-content {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.left-content {
    flex: 3;
    min-width: 850px;
}

.right-content {
    flex: 1 1 20%;
    min-width: 200px;
}

.section-title {
    font-size: 1.3rem;
    color: #2c3e50;
    border-bottom: 2px solid #3498db;
    padding-bottom: 8px;
    margin-bottom: 20px;
}

/* 文章列表样式 */
.article-list {
    list-style: none;
}

.article-item {
    background-color: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    padding: 18px;
    margin-bottom: 15px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.article-item:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.article-title {
    font-size: 1.1rem;
    color: #2c3e50;
    margin-bottom: 8px;
}

.article-meta {
    font-size: 0.9rem;
    color: #7f8c8d;
}

/* 分类列表样式 */
.category-list {
    list-style: none;
}

.category-item {
    margin-bottom: 12px;
}

.category-link {
    display: block;
    color: #34495e;
    text-decoration: none;
    padding: 8px 15px;
    border-radius: 5px;
    transition: all 0.3s;
}

.category-link:hover,
.category-link.active {
    background-color: #3498db;
    color: white;
    padding-left: 25px;
    position: relative;
}

.category-link::before {
    content: '';
    position: absolute;
    left: 10px;
    width: 6px;
    height: 6px;
    background-color: #3498db;
    border-radius: 50%;
    display: none;
}

.category-link.active::before {
    display: block;
}

/* 版权信息样式 */
.footer {
    background-color: #2c3e50;
    color: #ecf0f1;
    text-align: center;
    padding: 20px 0;
    margin-top: 10px;
}

.footer p {
    margin: 0;
    font-size: 0.9rem;
}

.footer a {
    color: #3498db;
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

/* 响应式布局 */
@media (max-width: 1200px) {
    .container {
        width: 95%;
    }
}

@media (max-width: 992px) {
    .main-content {
        flex-direction: column;
        min-width: unset;
    }

    .left-content, .right-content {
        flex: 1;
        min-width: unset;
    }
    .header-container {
        flex-direction: column;
        align-items: flex-start;
    }

    .nav ul {
        flex-direction: column;
        margin-top: 10px;
    }

    .nav li {
        margin-left: 0;
        margin-bottom: 10px;
    }
}
@media (max-width: 768px) {
    .article-title {
        font-size: 1.5rem;
    }

    .article-meta {
        flex-direction: column;
        align-items: flex-start;
    }

    .article-meta span {
        margin-right: 0;
        margin-bottom: 5px;
    }
    .header-container {
        flex-direction: column;
        align-items: flex-start;
    }

    .nav ul {
        flex-direction: column;
        margin-top: 10px;
    }

    .nav li {
        margin-left: 0;
        margin-bottom: 10px;
    }
}
.pagination span{
    margin:0;
    cursor:pointer
}
.pagination{
    padding:0;
    margin:20px 0;text-align: center;
}
.pagination a{
    margin-right:10px;
    padding:6px 12px;
    border:1px #cccccc solid;
    background:#fff;
    text-decoration:none;
    color:#808080;
    font-size:12px;
    line-height:24px;
}
.pagination a:hover{
    color:#3498db;
    background: white;
    border:1px #3498db solid;
}
.pagination a.cur{
    border:1px #3498db solid;
    background:#3498db;
    color:#fff;padding:6px 12px;
}
.pagination span{
    padding:6px 12px;
    font-size:12px;
    line-height:24px;
    color:#bbb;
    border:1px #ccc solid;
    background:#fcfcfc;
    margin-right:8px;

}
.pagination span.pageRemark{
    border-style:none;
    background:none;
    margin-right:0px;
    padding:4px 0px;
    color:#666;
}
.pagination span.pageRemark b{
    color:red;
}
.pagination span.pageEllipsis{
    border-style:none;
    background:none;
    padding:4px 0px;
    color:#808080;
}




.article-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e8e8e8;
}

.article-title {
    font-size:1.2rem;
    color: #2c3e50;
    margin-bottom: 15px;
}

.article-meta {
    display: flex;
    align-items: center;
    color: #7f8c8d;
    font-size: 0.9rem;
}

.article-meta span {
    margin-right: 20px;
}

.article-author {
    display: flex;
    align-items: center;
}

.author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 10px;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
}

.article-content {
    margin-bottom: 40px;
}

.article-content p {
    margin-bottom: 20px;
    color: #333;
}

.article-content h3 {
    font-size: 1.5rem;
    color: #2c3e50;
    margin: 30px 0 15px;
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
}

.related-articles {
    margin-bottom: 40px;
}

.related-articles h3 {
    font-size: 1.3rem;
    color: #2c3e50;
    margin-bottom: 15px;
    border-bottom: 2px solid #3498db;
    padding-bottom: 8px;
}

.related-list {
    list-style: none;
}

.related-item {
    margin-bottom: 10px;
}

.related-item a {
    color: #34495e;
    text-decoration: none;
    transition: color 0.3s;
}

.related-item a:hover {
    color: #3498db;
}
.back-btn {
    display: inline-block;
    margin-bottom: 20px;
    color: #3498db;
    text-decoration: none;
    font-weight: 500;
}

.back-btn:hover {
    text-decoration: underline;
}