/* 基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

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

/* 头部样式 */
.header {
    text-align: center;
    margin-bottom: 40px;
    padding: 40px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 12px;
}

.header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

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

/* 笔记网格 */
.notes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.note-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.note-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.note-card a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.note-cover {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.note-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.note-info {
    padding: 20px;
}

.note-info h2 {
    font-size: 1.25rem;
    margin-bottom: 8px;
    color: #2c3e50;
    font-weight: 600;
}

.note-excerpt {
    color: #666;
    margin-bottom: 12px;
    font-size: 0.9rem;
}

.note-meta {
    display: flex;
    gap: 16px;
    font-size: 0.85rem;
    color: #888;
}

/* 详情页样式 */
.breadcrumb {
    margin-bottom: 20px;
}

.breadcrumb a {
    color: #007bff;
    text-decoration: none;
    font-weight: 500;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.note-detail {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.note-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #eee;
}

.note-header h1 {
    font-size: 2rem;
    margin-bottom: 10px;
    color: #2c3e50;
}

.author, .publish-time {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.note-content {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 30px;
    color: #444;
}

.note-images {
    margin: 30px 0;
}

.note-images img {
    max-width: 100%;
    height: auto;
    margin: 10px 0;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.interact-info {
    display: flex;
    gap: 20px;
    margin: 30px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.stat {
    font-weight: 500;
    color: #555;
}

/* 评论样式 */
.comments {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid #eee;
}

.comments h2 {
    margin-bottom: 20px;
    color: #2c3e50;
}

.comments-list {
    space-y: 16px;
}

.comment {
    margin-bottom: 20px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #667eea;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.comment-author-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.comment-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #e1e8ed;
}

.comment-author {
    font-weight: 600;
    color: #2c3e50;
}

.comment-meta {
    display: flex;
    align-items: center;
    gap: 8px;
}

.comment-time {
    font-size: 0.85rem;
    color: #888;
}

.comment-content {
    color: #555;
    line-height: 1.6;
}

.comment-reply {
    margin-left: 30px;
    background: #e8f4f8;
    border-left: 3px solid #667eea;
}

.comment-reply .comment-avatar {
    width: 32px;
    height: 32px;
}

.reply-tag {
    background: #667eea;
    color: white;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 0.75rem;
}

.no-comments {
    text-align: center;
    color: #888;
    padding: 40px 20px;
    font-style: italic;
}

.author {
    color: #666;
    font-size: 0.85rem;
}

/* 分页样式 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin: 30px 0;
    padding: 20px 0;
}

.pagination-btn {
    padding: 8px 16px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 6px;
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: all 0.3s ease;
}

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

.pagination-current {
    padding: 8px 16px;
    background: #667eea;
    color: white;
    border-radius: 6px;
    font-weight: 600;
}

.pagination-prev,
.pagination-next {
    font-size: 18px;
    font-weight: 700;
    padding: 8px 12px;
}

/* 页脚 */
.footer {
    text-align: center;
    padding: 30px 0;
    color: #666;
    border-top: 1px solid #eee;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    .header h1 {
        font-size: 2rem;
    }
    
    .notes-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .note-detail {
        padding: 20px;
    }
    
    .note-header h1 {
        font-size: 1.5rem;
    }
    
    .interact-info {
        flex-direction: column;
        gap: 10px;
    }
    
    .pagination {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .pagination-btn, .pagination-current {
        padding: 6px 12px;
        font-size: 0.9rem;
    }
}