/* 文章页和归档页样式 */

/* 文章页容器 */
.single-post,
.page {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
    background: #fff;
}

/* 文章标题 */
.single-post .entry-header,
.page .entry-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
}

.single-post .entry-title,
.page .entry-title {
    font-size: 36px;
    font-weight: 700;
    line-height: 1.3;
    color: #1a1a1a;
    margin-bottom: 20px;
}

/* 文章元信息 */
.single-post .entry-meta,
.page .entry-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 15px;
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
}

.entry-meta span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.entry-meta .posted-on::before {
    content: "📅";
    margin-right: 5px;
}

.entry-meta .byline::before {
    content: "👤";
    margin-right: 5px;
}

.entry-meta .cat-links::before {
    content: "📁";
    margin-right: 5px;
}

.entry-meta .tags-links::before {
    content: "🏷️";
    margin-right: 5px;
}

.entry-meta a {
    color: #667eea;
    text-decoration: none;
    transition: color 0.3s ease;
}

.entry-meta a:hover {
    color: #764ba2;
    text-decoration: underline;
}

/* 文章特色图 */
.single-post .post-thumbnail,
.page .post-thumbnail {
    margin-bottom: 30px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.single-post .post-thumbnail img,
.page .post-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.single-post .post-thumbnail:hover img,
.page .post-thumbnail:hover img {
    transform: scale(1.02);
}

/* 文章内容 */
.single-post .entry-content,
.page .entry-content {
    font-size: 18px;
    line-height: 1.8;
    color: #333;
    margin-bottom: 40px;
}

.single-post .entry-content p,
.page .entry-content p {
    margin-bottom: 20px;
}

.single-post .entry-content h1,
.single-post .entry-content h2,
.single-post .entry-content h3,
.single-post .entry-content h4,
.single-post .entry-content h5,
.single-post .entry-content h6,
.page .entry-content h1,
.page .entry-content h2,
.page .entry-content h3,
.page .entry-content h4,
.page .entry-content h5,
.page .entry-content h6 {
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: 700;
    line-height: 1.4;
    color: #1a1a1a;
}

.single-post .entry-content h2,
.page .entry-content h2 {
    font-size: 28px;
    padding-bottom: 10px;
}

.single-post .entry-content h3,
.page .entry-content h3 {
    font-size: 24px;
}

.single-post .entry-content ul,
.single-post .entry-content ol,
.page .entry-content ul,
.page .entry-content ol {
    margin: 20px 0;
    padding-left: 30px;
}

.single-post .entry-content li,
.page .entry-content li {
    margin-bottom: 10px;
}

.single-post .entry-content blockquote,
.page .entry-content blockquote {
    margin: 30px 0;
    padding: 20px 30px;
    border-left: 4px solid #667eea;
    background: #f8f9fa;
    font-style: italic;
    color: #555;
    border-radius: 4px;
}

.single-post .entry-content img,
.page .entry-content img {
    max-width: 100%;
    height: auto;
    margin: 30px 0;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.single-post .entry-content a,
.page .entry-content a {
    color: #667eea;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.single-post .entry-content a:hover,
.page .entry-content a:hover {
    color: #764ba2;
}

.single-post .entry-content code,
.page .entry-content code {
    background: #f4f4f4;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
}

.single-post .entry-content pre,
.page .entry-content pre {
    background: #1e1e1e;
    color: #d4d4d4;
    padding: 20px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 30px 0;
}

.single-post .entry-content pre code,
.page .entry-content pre code {
    background: transparent;
    padding: 0;
    color: inherit;
}

/* 文章页脚（仅作用于文章内容区域的页脚，不影响网站页脚） */
.single-post .entry-footer,
.page .entry-footer {
    margin-top: 40px;
    padding-top: 30px;
}

/* 确保网站页脚不受影响 */
#colophon.site-footer,
.site-footer#colophon {
    margin-top: 0 !important;
    padding-top: 0 !important;
    border-top: none !important;
}

/* 文章导航 */
.post-navigation {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 40px;
    padding-top: 30px;
}

.nav-previous,
.nav-next {
    flex: 1;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.nav-previous:hover,
.nav-next:hover {
    background: #e9ecef;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.nav-subtitle {
    display: block;
    font-size: 12px;
    color: #666;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nav-title {
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    line-height: 1.4;
}

.nav-next {
    text-align: right;
}

/* 评论区域 */
.comments-area {
    margin-top: 60px;
    padding-top: 40px;
}

.comments-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 30px;
    color: #1a1a1a;
}

.comment-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

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

.comment-author {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.comment-author .avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
}

.comment-author .fn {
    font-weight: 600;
    color: #1a1a1a;
    font-size: 16px;
}

.comment-meta {
    font-size: 13px;
    color: #666;
    margin-bottom: 15px;
}

.comment-content {
    color: #333;
    line-height: 1.7;
}

.comment-content p {
    margin-bottom: 10px;
}

/* 评论表单 */
.comment-respond {
    margin-top: 40px;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 8px;
}

.comment-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #1a1a1a;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 16px;
    font-family: inherit;
    transition: border-color 0.3s ease;
    margin-bottom: 20px;
}

.comment-form input[type="text"]:focus,
.comment-form input[type="email"]:focus,
.comment-form input[type="url"]:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: #667eea;
}

.comment-form textarea {
    min-height: 150px;
    resize: vertical;
}

.comment-form input[type="submit"] {
    padding: 12px 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.comment-form input[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .single-post,
    .page {
        padding: 20px 15px;
    }

    .single-post .entry-title,
    .page .entry-title {
        font-size: 28px;
    }

    .single-post .entry-content,
    .page .entry-content {
        font-size: 16px;
    }

    .single-post .entry-content h2,
    .page .entry-content h2 {
        font-size: 24px;
    }

    .single-post .entry-content h3,
    .page .entry-content h3 {
        font-size: 20px;
    }

    .entry-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .post-navigation {
        flex-direction: column;
    }

    .nav-next {
        text-align: left;
    }
}

