body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f5f5f5;
    color: #333;
}
.container {
    width: 80%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
}
.header {
    text-align: center;
    padding: 20px 0;
    border-bottom: 1px solid #ddd;
}
.header h1 {
    font-size: 36px;
    margin: 0;
    color: #636363;
}
.header p {
    font-size: 14px;
    color: #999;
    margin: 5px 0 0;
}
.nav {
    text-align: center;
    padding: 10px 0;
    border-bottom: 1px solid #ddd;
}
.nav a {
    margin: 0 15px;
    text-decoration: none;
    color: #666;
    font-size: 16px;
    padding: 5px 10px;
    border-radius: 4px;
    transition: all 0.3s;
}
.nav a:hover {
    color: #333;
    background-color: #f5f5f5;
}
.nav a.active {
    color: #333;
    background-color: #f5f5f5;
    font-weight: bold;
}
.main-content {
    width: 70%;
    padding: 20px 0;
}
.sidebar {
    width: 25%;
    padding: 20px 0;
}
.category {
    font-size: 14px;
    color: #999;
    margin-bottom: 10px;
}
.article {
    margin-bottom: 40px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 5px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}
.article:hover {
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}
.article h2 {
    font-size: 24px;
    color: #333;
    margin-bottom: 10px;
}
.article h2 a {
    color: #333;
    text-decoration: none;
}
.article h2 a:hover {
    color: #007bff;
}
.article .date {
    font-size: 14px;
    color: #999;
    /* margin-bottom: 10px; */
}
.article-meta {
    color: #999;
    font-size: 14px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
}
.article-meta .category a {
    color: #666;
    text-decoration: none;
}
.article-meta .category a:hover {
    color: #333;
    text-decoration: underline;
}
.article p {
    font-size: 16px;
    line-height: 1.8;
    color: #666;
    margin: 10px 0;
}
/* 富文本内容样式 */
/* .article-summary,
.article-content {
    font-size: 16px;
    line-height: 1.8;
    color: #333;
} */
.article-summary {
    max-height: 200px;
    overflow: hidden;
    position: relative;
}
.article-summary::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50px;
    background: linear-gradient(to bottom, rgba(255,255,255,0), rgba(255,255,255,1));
}
.article-content img {
    max-width: 100%;
    height: auto;
    margin: 10px 0;
}
.article-content p {
    margin: 1em 0;
}
.article-content h1,
.article-content h2,
.article-content h3,
.article-content h4,
.article-content h5,
.article-content h6 {
    margin: 1.5em 0 0.8em;
    color: #333;
    line-height: 1.4;
}
.article-content h1 { font-size: 24px; }
.article-content h2 { font-size: 22px; }
.article-content h3 { font-size: 20px; }
.article-content h4 { font-size: 18px; }
.article-content h5 { font-size: 16px; }
.article-content h6 { font-size: 14px; }
.article-content blockquote {
    margin: 1em 0;
    padding: 0.5em 1em;
    border-left: 4px solid #ddd;
    color: #666;
    background: #f9f9f9;
}
/* .article-content pre {
    margin: 1em 0;
    padding: 1em;
    background: #f5f5f5;
    border-radius: 4px;
    overflow-x: auto;
}
.article-content code {
    font-family: Consolas, Monaco, 'Andale Mono', monospace;
    background: #f5f5f5;
    padding: 0.2em 0.4em;
    border-radius: 3px;
    font-size: 0.9em;
} */
.article-content ul,
.article-content ol {
    margin: 1em 0;
    padding-left: 2em;
}
.article-content li {
    margin: 0.5em 0;
}
.article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1em 0;
}
.article-content th,
.article-content td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
}
.article-content th {
    background: #f5f5f5;
}
.article-content a {
    color: #666;
    text-decoration: none;
}
.article-content a:hover {
    color: #333;
    text-decoration: underline;
}
.article .link {
    color: #007bff;
    text-decoration: none;
}
.article .link:hover {
    text-decoration: underline;
}
.sidebar h3 {
    font-size: 18px;
    color: #333;
    margin: 20px 0 10px;
    border-bottom: 1px solid #ddd;
    padding-bottom: 5px;
}
.sidebar p {
    font-size: 14px;
    color: #666;
    margin: 5px 0;
    text-align: center;
}
.sidebar .search-bar {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}
.sidebar .search-bar input {
    width: 100%;
    padding: 5px;
    font-size: 14px;
    border: 1px solid #ddd;
    border-radius: 3px;
}
.sidebar .search-bar button {
    padding: 5px 10px;
    background: none;
    border: none;
    cursor: pointer;
}
.sidebar img.qrcode {
    width: 150px;
    height: 150px;
    margin: 10px auto;
    display: block;
}
.sidebar .category-list a {
    display: block;
    font-size: 14px;
    color: #666;
    text-decoration: none;
    margin-bottom: 8px;
}
.sidebar .category-list a:hover {
    color: #000;
}
.sidebar .category-list a.active {
    color: #007bff;
    font-weight: bold;
}
.support {
    padding: 20px 0;
    border-top: 1px solid #ddd;
    margin-top: 20px;
}
.support p {
    font-size: 16px;
    color: #666;
    margin: 10px 0;
}
.support .highlight {
    color: #ff4d4f;
    font-weight: bold;
}
.support .link {
    color: #007bff;
    text-decoration: none;
}
.support .link:hover {
    text-decoration: underline;
}
/* 分页样式 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px 0;
    padding: 10px 0;
    border-top: 1px solid #ddd;
}
.pagination-btn {
    padding: 8px 16px;
    margin: 0 10px;
    border: 1px solid #ddd;
    background-color: #fff;
    color: #333;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s;
}
.pagination-btn:hover:not(:disabled) {
    background-color: #f5f5f5;
    border-color: #999;
}
.pagination-btn:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}
.pagination-info {
    color: #666;
    font-size: 14px;
}
/* 文章详情页样式 */
.article-detail {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.article-title {
    font-size: 28px;
    color: #333;
    margin-bottom: 20px;
    line-height: 1.4;
}
.article-content {
    font-size: 16px;
    line-height: 1.8;
    color: #333;
    margin-bottom: 30px;
}
.article-tags {
    margin: 20px 0;
    padding: 15px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}
.tag-label {
    color: #666;
    margin-right: 10px;
}
.tag {
    display: inline-block;
    padding: 3px 10px;
    margin: 0 5px 5px 0;
    background: #f5f5f5;
    color: #666;
    border-radius: 3px;
    text-decoration: none;
    font-size: 14px;
}
.tag:hover {
    background: #e9e9e9;
    color: #333;
}
/* 评论区域样式 */
.comments-section {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}
.comments-section h3 {
    font-size: 18px;
    color: #333;
    margin-bottom: 20px;
}
.comment {
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}
.comment-header {
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.comment-author {
    font-weight: bold;
    color: #333;
}
.comment-date {
    color: #999;
    font-size: 14px;
}
.comment-content {
    color: #666;
    line-height: 1.6;
}
.no-comments {
    color: #999;
    text-align: center;
    padding: 20px;
}
.comment-form {
    margin-top: 20px;
}
.comment-form textarea {
    width: 100%;
    height: 100px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 10px;
    resize: vertical;
}
.comment-form button {
    padding: 8px 16px;
    background: #007bff;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}
.comment-form button:disabled {
    background: #ccc;
    cursor: not-allowed;
}
.login-to-comment {
    text-align: center;
    color: #666;
    margin-top: 20px;
}
.login-to-comment a {
    color: #007bff;
    text-decoration: none;
}
.login-to-comment a:hover {
    text-decoration: underline;
}
/* 相关文章样式 */
.related-posts {
    margin-top: 10px;
}
.related-post {
    display: block;
    padding: 8px 0;
    color: #666;
    text-decoration: none;
    border-bottom: 1px solid #eee;
}
.related-post:hover {
    color: #333;
}
.article-toggle {
    text-align: center;
    margin-top: 10px;
    cursor: pointer;
    color: #666;
    font-size: 14px;
}
.article-toggle:hover {
    color: #333;
    text-decoration: underline;
}