* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Microsoft YaHei', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
    min-height: 100vh;
    position: relative;
}

/* 必应壁纸背景支持 */
body.has-wallpaper {
    background-attachment: fixed;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-color: #2c3e50;
}

/* 内容区域背景优化 - 半透明白色背景 */
body.has-wallpaper main {
    background: rgba(255, 255, 255, 0.92);
    border-radius: 12px;
    padding: 2rem;
    margin: 2rem auto;
    max-width: 1200px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(12px);
}

/* 头部导航优化 - 半透明背景 */
body.has-wallpaper header {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* 页脚优化 - 半透明背景 */
body.has-wallpaper footer {
    background: rgba(44, 62, 80, 0.92);
    backdrop-filter: blur(12px);
}

/* 文章卡片在壁纸背景下的优化 */
body.has-wallpaper .post-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
}

/* Hero区域在壁纸背景下的优化 */
body.has-wallpaper .hero {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.9) 0%, rgba(118, 75, 162, 0.9) 100%);
    backdrop-filter: blur(8px);
}

/* 关于页面内容在壁纸背景下的优化 */
body.has-wallpaper .about-content {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
}

/* 文章详情在壁纸背景下的优化 */
body.has-wallpaper .post-detail {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
}

/* 评论区在壁纸背景下的优化 */
body.has-wallpaper .comments-section {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
}

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

header {
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
}

.logo {
    font-size: 1.5rem;
    color: #2c3e50;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: #555;
    transition: color 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
    color: #3498db;
}

main {
    min-height: calc(100vh - 200px);
    padding: 2rem 20px;
}

.hero {
    text-align: center;
    padding: 3rem 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 10px;
    margin-bottom: 3rem;
}

.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    opacity: 0.9;
}

.posts {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.post-card {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.post-card h3 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.post-meta {
    color: #7f8c8d;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.post-excerpt {
    color: #555;
    line-height: 1.6;
}

.about-content {
    background: white;
    padding: 3rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.about-content h2 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
}

.about-content h3 {
    color: #34495e;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.about-content p {
    margin-bottom: 1rem;
    color: #555;
}

.contact-list {
    list-style: none;
    margin-top: 1rem;
}

.contact-list li {
    padding: 0.5rem 0;
    color: #555;
}

footer {
    background-color: #2c3e50;
    color: white;
    text-align: center;
    padding: 2rem 0;
    margin-top: 3rem;
}

/* 文章详情页样式 */
.post-detail {
    background: white;
    padding: 3rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.post-header {
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 1.5rem;
    margin-bottom: 2rem;
}

.post-header h1 {
    color: #2c3e50;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.post-header .post-meta {
    display: flex;
    gap: 2rem;
    color: #7f8c8d;
    font-size: 0.95rem;
}

.post-content {
    color: #333;
    font-size: 1.1rem;
    line-height: 1.8;
}

.post-content h3 {
    color: #2c3e50;
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.post-content p {
    margin-bottom: 1.2rem;
}

.post-content ul {
    margin: 1rem 0 1.5rem 2rem;
}

.post-content li {
    margin-bottom: 0.5rem;
}

.post-content pre {
    background: #f8f9fa;
    border-left: 4px solid #667eea;
    padding: 1rem;
    overflow-x: auto;
    border-radius: 4px;
    margin: 1.5rem 0;
}

.post-content code {
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    color: #e83e8c;
}

.post-content pre code {
    color: #333;
}

/* 文章图片样式 */
.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1.5rem 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    display: block;
}

.post-content figure {
    margin: 2rem 0;
    text-align: center;
}

.post-content figure img {
    margin: 0 auto;
}

.post-content figcaption {
    color: #7f8c8d;
    font-size: 0.9rem;
    margin-top: 0.5rem;
    font-style: italic;
}

/* 文章封面图 */
.post-cover {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 2rem;
}

/* 首页文章卡片封面图 */
.post-card-cover {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.post-navigation {
    text-align: center;
    margin-top: 2rem;
}

.back-link {
    display: inline-block;
    padding: 0.8rem 2rem;
    background: #667eea;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s;
}

.back-link:hover {
    background: #5568d3;
}

.error-message {
    text-align: center;
    padding: 3rem;
}

.error-message h2 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

.error-message p {
    color: #7f8c8d;
    margin-bottom: 2rem;
}

.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    background: #667eea;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s;
}

.btn:hover {
    background: #5568d3;
}

@media (max-width: 768px) {
    .hero h2 {
        font-size: 1.8rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .posts {
        grid-template-columns: 1fr;
    }
    
    .about-content {
        padding: 1.5rem;
    }
    
    .post-detail {
        padding: 1.5rem;
    }
    
    .post-header h1 {
        font-size: 1.8rem;
    }
    
    .post-header .post-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .post-content {
        font-size: 1rem;
    }
    
    .post-cover {
        height: 200px;
    }
    
    .post-card-cover {
        height: 150px;
    }
}

/* 评论区样式 */
.comments-section {
    background: white;
    padding: 3rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.comments-section h2 {
    color: #2c3e50;
    margin-bottom: 2rem;
    font-size: 1.8rem;
}

.comment-form {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid #f0f0f0;
}

.comment-form h3 {
    color: #34495e;
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.comment-form .btn {
    cursor: pointer;
    border: none;
    font-size: 1rem;
    margin-top: 0.5rem;
}

.comments-list h3 {
    color: #34495e;
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

.no-comments {
    text-align: center;
    color: #7f8c8d;
    padding: 2rem;
    font-style: italic;
}

.comment-item {
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 1rem;
    transition: background 0.3s;
}

.comment-item:hover {
    background: #f0f1f3;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.8rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e0e0e0;
}

.comment-author {
    font-weight: bold;
    color: #2c3e50;
    font-size: 1rem;
}

.comment-date {
    color: #7f8c8d;
    font-size: 0.85rem;
}

.comment-content {
    color: #555;
    line-height: 1.6;
    white-space: pre-wrap;
    word-wrap: break-word;
}

@media (max-width: 768px) {
    .comments-section {
        padding: 1.5rem;
    }
    
    .comments-section h2 {
        font-size: 1.5rem;
    }
    
    .comment-form h3,
    .comments-list h3 {
        font-size: 1.1rem;
    }
    
    .comment-item {
        padding: 1rem;
    }
    
    .comment-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.3rem;
    }
}

/* Markdown 提示样式 */
.markdown-tip {
    background: #f0f7ff;
    border-left: 4px solid #667eea;
    padding: 0.8rem 1rem;
    margin-bottom: 1.5rem;
    border-radius: 4px;
    color: #555;
    font-size: 0.9rem;
}

.markdown-tip code {
    background: #e8f0fe;
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
    font-size: 0.85rem;
    color: #667eea;
}

/* Markdown 预览切换 */
.markdown-preview-toggle {
    margin: 0.5rem 0;
}

.markdown-preview-toggle label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    color: #555;
    font-size: 0.9rem;
}

.markdown-preview-toggle input[type="checkbox"] {
    cursor: pointer;
}

/* Markdown 预览区域 */
.markdown-preview {
    background: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 1rem;
    margin: 1rem 0;
    min-height: 100px;
}

.markdown-preview h1,
.markdown-preview h2,
.markdown-preview h3 {
    margin-top: 1rem;
    margin-bottom: 0.5rem;
    color: #2c3e50;
}

.markdown-preview h1 {
    font-size: 1.8rem;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 0.3rem;
}

.markdown-preview h2 {
    font-size: 1.5rem;
}

.markdown-preview h3 {
    font-size: 1.2rem;
}

.markdown-preview p {
    margin-bottom: 0.8rem;
}

.markdown-preview code {
    background: #e8f0fe;
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    color: #e83e8c;
}

.markdown-preview pre {
    background: #2d2d2d;
    color: #f8f8f2;
    padding: 1rem;
    border-radius: 5px;
    overflow-x: auto;
    margin: 1rem 0;
}

.markdown-preview pre code {
    background: transparent;
    color: #f8f8f2;
    padding: 0;
}

.markdown-preview ul,
.markdown-preview ol {
    margin: 0.5rem 0 1rem 1.5rem;
}

.markdown-preview li {
    margin-bottom: 0.3rem;
}

.markdown-preview blockquote {
    border-left: 4px solid #667eea;
    padding-left: 1rem;
    margin: 1rem 0;
    color: #666;
    font-style: italic;
}

.markdown-preview a {
    color: #667eea;
    text-decoration: none;
}

.markdown-preview a:hover {
    text-decoration: underline;
}

.markdown-preview img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
    margin: 1rem 0;
}

.markdown-preview table {
    border-collapse: collapse;
    width: 100%;
    margin: 1rem 0;
}

.markdown-preview th,
.markdown-preview td {
    border: 1px solid #ddd;
    padding: 0.5rem;
    text-align: left;
}

.markdown-preview th {
    background: #f0f0f0;
    font-weight: bold;
}

/* 评论内容中的 Markdown 样式 */
.comment-content.markdown-content {
    line-height: 1.6;
}

.comment-content.markdown-content h1,
.comment-content.markdown-content h2,
.comment-content.markdown-content h3 {
    margin-top: 0.8rem;
    margin-bottom: 0.5rem;
    color: #2c3e50;
}

.comment-content.markdown-content h1 {
    font-size: 1.4rem;
}

.comment-content.markdown-content h2 {
    font-size: 1.2rem;
}

.comment-content.markdown-content h3 {
    font-size: 1.1rem;
}

.comment-content.markdown-content p {
    margin-bottom: 0.8rem;
}

.comment-content.markdown-content code {
    background: #e8f0fe;
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    color: #e83e8c;
}

.comment-content.markdown-content pre {
    background: #2d2d2d;
    color: #f8f8f2;
    padding: 0.8rem;
    border-radius: 5px;
    overflow-x: auto;
    margin: 0.8rem 0;
}

.comment-content.markdown-content pre code {
    background: transparent;
    color: #f8f8f2;
    padding: 0;
}

.comment-content.markdown-content ul,
.comment-content.markdown-content ol {
    margin: 0.5rem 0 0.8rem 1.5rem;
}

.comment-content.markdown-content li {
    margin-bottom: 0.3rem;
}

.comment-content.markdown-content blockquote {
    border-left: 3px solid #667eea;
    padding-left: 0.8rem;
    margin: 0.8rem 0;
    color: #666;
    font-style: italic;
}

.comment-content.markdown-content a {
    color: #667eea;
    text-decoration: none;
}

.comment-content.markdown-content a:hover {
    text-decoration: underline;
}

.comment-content.markdown-content strong {
    font-weight: bold;
    color: #2c3e50;
}

.comment-content.markdown-content em {
    font-style: italic;
}

.comment-content.markdown-content img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
    margin: 0.5rem 0;
}

@media (max-width: 768px) {
    .markdown-tip {
        font-size: 0.85rem;
        padding: 0.6rem 0.8rem;
    }
    
    .markdown-tip code {
        font-size: 0.8rem;
    }
}

/* 编辑器工具栏 */
.editor-toolbar {
    display: flex;
    gap: 0.3rem;
    padding: 0.5rem;
    background: #f8f9fa;
    border: 1px solid #ddd;
    border-bottom: none;
    border-radius: 5px 5px 0 0;
    flex-wrap: wrap;
}

.toolbar-btn {
    padding: 0.4rem 0.8rem;
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
}

.toolbar-btn:hover {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.toolbar-btn:active {
    transform: scale(0.95);
}

.toolbar-btn strong,
.toolbar-btn em {
    font-size: 1rem;
}

.editor-toolbar + textarea {
    border-radius: 0 0 5px 5px;
    border-top: none;
}

/* 表情选择器 */
.emoji-picker {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 320px;
    max-height: 400px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    overflow: hidden;
}

.emoji-picker-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 1rem;
    background: #667eea;
    color: white;
    font-weight: bold;
}

.emoji-close {
    background: transparent;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: background 0.2s;
}

.emoji-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.emoji-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 0.3rem;
    padding: 1rem;
    max-height: 340px;
    overflow-y: auto;
}

.emoji-item {
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.3rem;
    text-align: center;
    border-radius: 4px;
    transition: all 0.2s;
    user-select: none;
}

.emoji-item:hover {
    background: #f0f0f0;
    transform: scale(1.2);
}

/* 滚动条美化 */
.emoji-grid::-webkit-scrollbar {
    width: 8px;
}

.emoji-grid::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.emoji-grid::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

.emoji-grid::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .editor-toolbar {
        gap: 0.2rem;
        padding: 0.4rem;
    }
    
    .toolbar-btn {
        padding: 0.3rem 0.6rem;
        font-size: 0.85rem;
        min-width: 28px;
        height: 28px;
    }
    
    .emoji-picker {
        width: 90%;
        max-width: 320px;
        left: 50%;
        right: auto;
        transform: translateX(-50%);
        bottom: 10px;
    }
    
    .emoji-grid {
        grid-template-columns: repeat(6, 1fr);
    }
    
    .emoji-item {
        font-size: 1.3rem;
    }
}

/* 图片上传提示 */
.image-upload-hint {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 0.8rem 1rem;
    margin: 1rem 0;
    border-radius: 4px;
    color: #856404;
    font-size: 0.9rem;
}

.image-upload-hint strong {
    display: block;
    margin-bottom: 0.3rem;
}

/* 增强评论内容中的图片显示 */
.comment-content.markdown-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1rem 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: transform 0.3s;
}

.comment-content.markdown-content img:hover {
    transform: scale(1.02);
}

/* 图片灯箱效果 */
.image-lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.image-lightbox.active {
    display: flex;
}

.image-lightbox img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.5);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.lightbox-close:hover {
    background: rgba(0, 0, 0, 0.8);
}

/* 分类筛选器 */
.category-filter {
    display: flex;
    gap: 0.8rem;
    margin: 2rem 0;
    flex-wrap: wrap;
    justify-content: center;
}

.filter-btn {
    padding: 0.6rem 1.5rem;
    background: white;
    border: 2px solid #ddd;
    border-radius: 25px;
    cursor: pointer;
    font-size: 0.95rem;
    transition: all 0.3s;
    color: #555;
}

.filter-btn:hover {
    border-color: #667eea;
    color: #667eea;
}

.filter-btn.active {
    background: #667eea;
    border-color: #667eea;
    color: white;
}

/* 分类标签 */
.category-badge {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 15px;
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

.post-card-content {
    padding: 0 0.5rem;
}

/* 管理页面 */
.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f0f0f0;
    flex-wrap: wrap;
    gap: 1rem;
}

.admin-header h2 {
    color: #2c3e50;
    margin: 0;
}

.admin-actions {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.admin-posts-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.admin-post-item {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.admin-post-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.admin-post-info {
    display: flex;
    gap: 1.5rem;
    flex: 1;
    align-items: center;
}

.admin-post-thumb {
    width: 120px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

.admin-post-thumb-placeholder {
    width: 120px;
    height: 80px;
    background: #f0f0f0;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    flex-shrink: 0;
}

.admin-post-details {
    flex: 1;
}

.admin-post-details h3 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.admin-post-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: #7f8c8d;
    flex-wrap: wrap;
}

.admin-post-excerpt {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.admin-post-actions {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}

.btn-icon {
    width: 40px;
    height: 40px;
    border: none;
    background: #f0f0f0;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-icon:hover {
    background: #667eea;
    transform: scale(1.1);
}

.btn-icon.btn-danger:hover {
    background: #e74c3c;
}

.empty-state {
    text-align: center;
    padding: 3rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.empty-state p {
    font-size: 1.2rem;
    color: #7f8c8d;
    margin-bottom: 1.5rem;
}

/* 编辑器页面 */
.editor-container {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.editor-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f0f0f0;
}

.editor-header h2 {
    color: #2c3e50;
    margin: 0;
}

.editor-actions {
    display: flex;
    gap: 0.8rem;
}

.btn-secondary {
    background: #95a5a6;
}

.btn-secondary:hover {
    background: #7f8c8d;
}

.post-editor-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #2c3e50;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
}

.form-group textarea {
    resize: vertical;
    font-family: 'Courier New', monospace;
}

/* 模态框 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    overflow-y: auto;
    padding: 2rem;
}

.modal.active {
    display: block;
}

.modal-content {
    background: white;
    max-width: 900px;
    margin: 0 auto;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 2px solid #f0f0f0;
}

.modal-header h3 {
    margin: 0;
    color: #2c3e50;
}

.modal-close {
    background: transparent;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: #7f8c8d;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s;
}

.modal-close:hover {
    background: #f0f0f0;
    color: #2c3e50;
}

.modal-body {
    padding: 2rem;
    max-height: 70vh;
    overflow-y: auto;
}

/* 空消息 */
.empty-message {
    text-align: center;
    padding: 3rem;
    color: #7f8c8d;
    font-size: 1.1rem;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .admin-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .admin-post-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .admin-post-info {
        flex-direction: column;
        width: 100%;
    }
    
    .admin-post-thumb,
    .admin-post-thumb-placeholder {
        width: 100%;
        height: 150px;
    }
    
    .admin-post-actions {
        width: 100%;
        justify-content: flex-end;
    }
    
    .editor-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .editor-actions {
        width: 100%;
        flex-wrap: wrap;
    }
    
    .editor-actions .btn {
        flex: 1;
    }
    
    .category-filter {
        gap: 0.5rem;
    }
    
    .filter-btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    
    .modal {
        padding: 1rem;
    }
    
    .modal-body {
        padding: 1rem;
    }
}

/* 登录页面 */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 2rem;
}

.login-box {
    background: white;
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 400px;
}

.login-logo {
    text-align: center;
    font-size: 4rem;
    margin-bottom: 1rem;
}

.login-box h2 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 2rem;
    font-size: 1.5rem;
}

.login-box .form-group {
    margin-bottom: 1.5rem;
}

.login-box label {
    display: block;
    margin-bottom: 0.5rem;
    color: #2c3e50;
    font-weight: 500;
}

.login-box input {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.login-box input:focus {
    outline: none;
    border-color: #667eea;
}

.btn-block {
    width: 100%;
    padding: 1rem;
    font-size: 1.1rem;
}

.back-home {
    display: block;
    text-align: center;
    margin-top: 1rem;
    color: #667eea;
    text-decoration: none;
    transition: color 0.3s;
}

.back-home:hover {
    color: #5568d3;
}

/* 登出链接 */
.logout-link {
    color: #e74c3c !important;
}

.logout-link:hover {
    color: #c0392b !important;
}

/* 可见性标签 */
.visibility-badge {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 500;
}

.visibility-public {
    background: #d4edda;
    color: #155724;
}

.visibility-private {
    background: #f8d7da;
    color: #721c24;
}

/* 错误消息增强 */
.error-message .btn {
    margin: 0.5rem;
}

/* 图片上传容器 */
.image-upload-container {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.image-upload-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.btn-upload {
    padding: 0.6rem 1rem;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s;
    flex: 1;
    min-width: 120px;
}

.btn-upload:hover {
    background: #5568d3;
    transform: translateY(-2px);
}

.btn-clear {
    background: #95a5a6;
}

.btn-clear:hover {
    background: #7f8c8d;
}

.image-preview {
    display: none;
    margin-top: 0.5rem;
    border: 2px dashed #ddd;
    border-radius: 8px;
    padding: 1rem;
    background: #f8f9fa;
}

.image-preview img {
    width: 100%;
    max-height: 300px;
    object-fit: contain;
    border-radius: 5px;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .login-container {
        padding: 1rem;
    }
    
    .login-box {
        padding: 2rem 1.5rem;
    }
    
    .login-logo {
        font-size: 3rem;
    }
    
    .login-box h2 {
        font-size: 1.3rem;
    }
    
    .image-upload-buttons {
        flex-direction: column;
    }
    
    .btn-upload {
        min-width: auto;
    }
}

/* 分类选择容器 */
.category-select-container {
    display: flex;
    gap: 0.5rem;
    align-items: stretch;
}

.category-select-container select {
    flex: 1;
}

.btn-manage-categories {
    padding: 0.8rem 1rem;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s;
    min-width: 50px;
}

.btn-manage-categories:hover {
    background: #5568d3;
    transform: scale(1.05);
}

/* 分类管理模态框 */
.category-modal-content {
    max-width: 600px;
}

.category-add-section {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid #f0f0f0;
}

.category-add-section h4 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.category-add-form {
    display: flex;
    gap: 0.8rem;
}

.category-add-form input {
    flex: 1;
    padding: 0.8rem;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.category-add-form input:focus {
    outline: none;
    border-color: #667eea;
}

.category-list-section h4 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.category-list {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    max-height: 400px;
    overflow-y: auto;
}

.category-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    transition: all 0.3s;
}

.category-item:hover {
    background: #e9ecef;
    transform: translateX(5px);
}

.category-info {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.category-name {
    font-weight: 600;
    color: #2c3e50;
    font-size: 1.05rem;
}

.category-count {
    font-size: 0.85rem;
    color: #7f8c8d;
}

.category-actions {
    display: flex;
    gap: 0.5rem;
}

.btn-icon-small {
    width: 36px;
    height: 36px;
    border: none;
    background: white;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn-icon-small:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.btn-icon-small.btn-danger:hover {
    background: #e74c3c;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .category-modal-content {
        max-width: 95%;
    }
    
    .category-add-form {
        flex-direction: column;
    }
    
    .category-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .category-actions {
        width: 100%;
        justify-content: flex-end;
    }
    
    .category-select-container {
        flex-direction: column;
    }
    
    .btn-manage-categories {
        width: 100%;
    }
}

/* 总体统计卡片 */
.overall-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: transform 0.3s, box-shadow 0.3s;
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.stat-icon {
    font-size: 2.5rem;
    flex-shrink: 0;
}

.stat-info {
    flex: 1;
}

.stat-value {
    font-size: 1.8rem;
    font-weight: bold;
    color: #2c3e50;
    line-height: 1.2;
}

.stat-label {
    font-size: 0.9rem;
    color: #7f8c8d;
    margin-top: 0.3rem;
}

/* 文章统计（管理列表中） */
.admin-post-stats {
    display: flex;
    gap: 1rem;
    margin: 0.5rem 0;
    font-size: 0.9rem;
    color: #7f8c8d;
}

.admin-post-stats span {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

/* 统计模态框 */
.stats-modal-content {
    max-width: 700px;
}

.stats-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.stats-overview h4 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.stats-details h4 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.stats-timeline {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
}

.timeline-item {
    display: flex;
    justify-content: space-between;
    padding: 0.8rem 0;
    border-bottom: 1px solid #e0e0e0;
}

.timeline-item:last-child {
    border-bottom: none;
}

.timeline-label {
    color: #7f8c8d;
    font-weight: 500;
}

.timeline-value {
    color: #2c3e50;
    font-weight: 600;
}

.stats-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    padding-top: 1rem;
    border-top: 2px solid #f0f0f0;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .overall-stats {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
        gap: 0.8rem;
    }
    
    .stat-card {
        padding: 1rem;
        flex-direction: column;
        text-align: center;
    }
    
    .stat-icon {
        font-size: 2rem;
    }
    
    .stat-value {
        font-size: 1.5rem;
    }
    
    .stat-label {
        font-size: 0.85rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .timeline-item {
        flex-direction: column;
        gap: 0.3rem;
    }
    
    .admin-post-stats {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
}

/* GitHub 配置页面 */
.config-container {
    max-width: 800px;
    margin: 0 auto;
}

.config-header {
    text-align: center;
    margin-bottom: 2rem;
}

.config-header h2 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.config-description {
    color: #7f8c8d;
    font-size: 1.05rem;
}

.config-status {
    margin-bottom: 2rem;
}

.status-success,
.status-warning,
.status-error,
.status-loading {
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.status-success {
    background: #d4edda;
    border-left: 4px solid #28a745;
    color: #155724;
}

.status-warning {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    color: #856404;
}

.status-error {
    background: #f8d7da;
    border-left: 4px solid #dc3545;
    color: #721c24;
}

.status-loading {
    background: #d1ecf1;
    border-left: 4px solid #17a2b8;
    color: #0c5460;
}

.status-success strong,
.status-warning strong,
.status-error strong,
.status-loading strong {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.status-success p,
.status-warning p,
.status-error p,
.status-loading p {
    margin: 0.3rem 0;
}

.status-success code,
.status-warning code,
.status-error code {
    background: rgba(0, 0, 0, 0.1);
    padding: 0.2rem 0.5rem;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
}

.status-error ul {
    margin: 0.5rem 0 0 1.5rem;
    text-align: left;
}

.status-error li {
    margin: 0.3rem 0;
}

.status-error details {
    margin-top: 1rem;
    padding: 0.5rem;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 4px;
}

.status-error summary {
    cursor: pointer;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.status-error pre {
    margin: 0.5rem 0 0 0;
    padding: 0.5rem;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 3px;
    overflow-x: auto;
    font-size: 0.85rem;
}

.config-form {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.config-form .form-group {
    margin-bottom: 1.5rem;
}

.config-form small {
    display: block;
    margin-top: 0.5rem;
    color: #7f8c8d;
    font-size: 0.9rem;
}

.config-form small a {
    color: #667eea;
    text-decoration: none;
}

.config-form small a:hover {
    text-decoration: underline;
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.sync-section {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.sync-section h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

.sync-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.sync-status {
    margin-top: 1rem;
}

.help-section {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 8px;
    border-left: 4px solid #667eea;
}

.help-section h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

.help-section ol {
    margin-left: 1.5rem;
    color: #555;
    line-height: 1.8;
}

.help-section code {
    background: #e8f0fe;
    padding: 0.2rem 0.5rem;
    border-radius: 3px;
    color: #667eea;
    font-family: 'Courier New', monospace;
}

.help-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.help-link {
    display: inline-block;
    padding: 0.6rem 1.2rem;
    background: white;
    color: #667eea;
    text-decoration: none;
    border-radius: 5px;
    border: 2px solid #667eea;
    transition: all 0.3s;
}

.help-link:hover {
    background: #667eea;
    color: white;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .form-actions,
    .sync-actions {
        flex-direction: column;
    }
    
    .form-actions .btn,
    .sync-actions .btn {
        width: 100%;
    }
    
    .help-links {
        flex-direction: column;
    }
    
    .help-link {
        text-align: center;
    }
}

/* 必应壁纸版权信息样式 */
.bing-copyright {
    transition: opacity 0.3s;
}

.bing-copyright:hover {
    opacity: 0.8;
}

.bing-copyright a {
    color: white !important;
    text-decoration: none !important;
}

.bing-copyright a:hover {
    text-decoration: underline !important;
}

/* 登录页面背景优化 */
body.has-wallpaper .login-container {
    background: transparent;
}

body.has-wallpaper .login-box {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

/* Hero 区域优化 */
body.has-wallpaper .hero {
    background: rgba(102, 126, 234, 0.9);
    backdrop-filter: blur(10px);
}

/* 文章卡片优化 */
body.has-wallpaper .post-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
}

body.has-wallpaper .post-card:hover {
    background: rgba(255, 255, 255, 1);
}

/* 文章详情页优化 */
body.has-wallpaper .post-detail {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
}

/* 管理页面卡片优化 */
body.has-wallpaper .admin-post-item,
body.has-wallpaper .stat-card,
body.has-wallpaper .config-form,
body.has-wallpaper .sync-section,
body.has-wallpaper .editor-container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
}

/* 空状态优化 */
body.has-wallpaper .empty-state {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
}

/* 模态框优化 */
body.has-wallpaper .modal-content {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
}

/* 加载动画 */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

body.has-wallpaper {
    animation: fadeIn 0.5s ease-in;
}

/* 响应式优化 */
@media (max-width: 768px) {
    .bing-copyright {
        font-size: 10px;
        padding: 3px 6px;
        bottom: 5px;
        right: 5px;
    }
    
    body.has-wallpaper .container {
        padding: 1rem;
    }
}

/* Quill 富文本编辑器样式优化 */
.quill-editor-container {
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
}

.quill-editor-container .ql-toolbar {
    background: #f8f9fa;
    border: none;
    border-bottom: 1px solid #ddd;
    padding: 12px;
}

.quill-editor-container .ql-container {
    border: none;
    font-size: 16px;
    min-height: 500px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Microsoft YaHei', sans-serif;
}

.quill-editor-container .ql-editor {
    min-height: 500px;
    padding: 20px;
    line-height: 1.8;
}

.quill-editor-container .ql-editor.ql-blank::before {
    color: #999;
    font-style: normal;
}

/* Quill 工具栏按钮优化 */
.quill-editor-container .ql-toolbar button {
    width: 32px;
    height: 32px;
    border-radius: 4px;
    transition: all 0.2s;
}

.quill-editor-container .ql-toolbar button:hover {
    background: #e9ecef;
}

.quill-editor-container .ql-toolbar button.ql-active {
    background: #667eea;
    color: white;
}

.quill-editor-container .ql-toolbar .ql-stroke {
    stroke: #555;
}

.quill-editor-container .ql-toolbar button:hover .ql-stroke {
    stroke: #667eea;
}

.quill-editor-container .ql-toolbar button.ql-active .ql-stroke {
    stroke: white;
}

.quill-editor-container .ql-toolbar .ql-fill {
    fill: #555;
}

.quill-editor-container .ql-toolbar button:hover .ql-fill {
    fill: #667eea;
}

.quill-editor-container .ql-toolbar button.ql-active .ql-fill {
    fill: white;
}

/* Quill 编辑器内容样式 */
.quill-editor-container .ql-editor h1 {
    font-size: 2em;
    margin-top: 1em;
    margin-bottom: 0.5em;
    color: #2c3e50;
}

.quill-editor-container .ql-editor h2 {
    font-size: 1.5em;
    margin-top: 1em;
    margin-bottom: 0.5em;
    color: #2c3e50;
}

.quill-editor-container .ql-editor h3 {
    font-size: 1.3em;
    margin-top: 0.8em;
    margin-bottom: 0.4em;
    color: #34495e;
}

.quill-editor-container .ql-editor p {
    margin-bottom: 1em;
}

.quill-editor-container .ql-editor img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1em 0;
}

.quill-editor-container .ql-editor blockquote {
    border-left: 4px solid #667eea;
    padding-left: 1em;
    margin: 1em 0;
    color: #666;
}

.quill-editor-container .ql-editor pre {
    background: #2d2d2d;
    color: #f8f8f2;
    padding: 1em;
    border-radius: 5px;
    overflow-x: auto;
}

.quill-editor-container .ql-editor code {
    background: #f0f0f0;
    padding: 0.2em 0.4em;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
}

.quill-editor-container .ql-editor pre.ql-syntax {
    background: #2d2d2d;
    color: #f8f8f2;
}

/* 文章详情页显示 Quill 内容的样式 */
.post-content h1 {
    font-size: 2em;
    margin-top: 1em;
    margin-bottom: 0.5em;
    color: #2c3e50;
}

.post-content h2 {
    font-size: 1.5em;
    margin-top: 1em;
    margin-bottom: 0.5em;
    color: #2c3e50;
}

.post-content h3 {
    font-size: 1.3em;
    margin-top: 0.8em;
    margin-bottom: 0.4em;
    color: #34495e;
}

.post-content h4 {
    font-size: 1.1em;
    margin-top: 0.6em;
    margin-bottom: 0.3em;
    color: #34495e;
}

.post-content p {
    margin-bottom: 1em;
}

.post-content strong {
    font-weight: bold;
    color: #2c3e50;
}

.post-content em {
    font-style: italic;
}

.post-content u {
    text-decoration: underline;
}

.post-content s {
    text-decoration: line-through;
}

.post-content a {
    color: #667eea;
    text-decoration: none;
}

.post-content a:hover {
    text-decoration: underline;
}

.post-content ul,
.post-content ol {
    margin: 1em 0 1em 2em;
}

.post-content li {
    margin-bottom: 0.5em;
}

.post-content blockquote {
    border-left: 4px solid #667eea;
    padding-left: 1em;
    margin: 1em 0;
    color: #666;
    font-style: italic;
}

.post-content pre {
    background: #2d2d2d;
    color: #f8f8f2;
    padding: 1em;
    border-radius: 5px;
    overflow-x: auto;
    margin: 1em 0;
}

.post-content code {
    background: #f0f0f0;
    padding: 0.2em 0.4em;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
}

.post-content pre code {
    background: transparent;
    padding: 0;
    color: #f8f8f2;
}

.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1.5rem 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    display: block;
}

.post-content video {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1.5rem 0;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .quill-editor-container .ql-container {
        min-height: 400px;
    }
    
    .quill-editor-container .ql-editor {
        min-height: 400px;
        padding: 15px;
        font-size: 15px;
    }
    
    .quill-editor-container .ql-toolbar {
        padding: 8px;
    }
    
    .quill-editor-container .ql-toolbar button {
        width: 28px;
        height: 28px;
    }
}
