/*
Theme Name: 行走的风景
Theme URI: https://xingzou.com
Author: 行走的风景
Author URI: https://xingzou.com
Description: 简约黑白风格个人博客主题，适合文字类博客
Version: 1.0.0
Requires at least: 7.1
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: xingzou
*/

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    line-height: 1.8;
    color: #1a1a1a;
    background: #fff;
    max-width: 680px;
    margin: 0 auto;
    padding: 60px 24px;
}

/* 头部 */
header {
    margin-bottom: 80px;
    border-bottom: 1px solid #e5e5e5;
    padding-bottom: 40px;
}

.site-title {
    font-size: 24px;
    font-weight: 400;
    letter-spacing: 2px;
    margin-bottom: 4px;
}

.site-title a {
    color: #1a1a1a;
    text-decoration: none;
}

.site-title a:hover {
    color: #666;
}

.site-desc {
    font-size: 13px;
    color: #999;
    margin-bottom: 12px;
}

nav {
    font-size: 14px;
    color: #999;
}

nav a {
    color: #999;
    text-decoration: none;
    margin-right: 24px;
}

nav a:hover {
    color: #1a1a1a;
}

/* 菜单横排 */
nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

nav ul li {
    display: inline-block;
}

/* 文章列表 */
.posts {
    list-style: none;
}

.post-item {
    margin-bottom: 56px;
}

.post-item h2 {
    font-size: 20px;
    font-weight: 400;
    margin-bottom: 8px;
}

.post-item h2 a {
    color: #1a1a1a;
    text-decoration: none;
}

.post-item h2 a:hover {
    color: #666;
}

.post-meta {
    font-size: 13px;
    color: #999;
    margin-bottom: 12px;
}

.post-excerpt {
    font-size: 15px;
    color: #666;
}

/* 文章详情页 */
.single-post .post-header {
    margin-bottom: 48px;
}

.single-post .post-title {
    font-size: 28px;
    font-weight: 400;
    margin-bottom: 16px;
    line-height: 1.4;
}

.single-post .post-content {
    font-size: 16px;
    line-height: 2;
    margin-bottom: 64px;
}

.single-post .post-content p {
    margin-bottom: 24px;
}

.single-post .post-content img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 32px 0;
    border-radius: 4px;
}

.single-post .post-content img + em {
    display: block;
    text-align: center;
    font-size: 13px;
    color: #999;
    margin-top: -20px;
    margin-bottom: 32px;
}

/* 评论区 */
.comments {
    border-top: 1px solid #e5e5e5;
    padding-top: 48px;
}

.comments h3 {
    font-size: 16px;
    font-weight: 400;
    margin-bottom: 32px;
    color: #666;
}

.comment-form {
    margin-bottom: 48px;
}

.comment-form input,
.comment-form textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e5e5e5;
    font-size: 14px;
    font-family: inherit;
    background: #fafafa;
    margin-bottom: 16px;
}

.comment-form input:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: #999;
}

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

.comment-form button {
    padding: 12px 32px;
    background: #1a1a1a;
    color: #fff;
    border: none;
    font-size: 14px;
    cursor: pointer;
}

.comment-form button:hover {
    background: #333;
}

.comment-list {
    list-style: none;
}

.comment {
    padding: 24px 0;
    border-bottom: 1px solid #f0f0f0;
}

.comment-author {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
}

.comment-date {
    font-size: 12px;
    color: #999;
    margin-bottom: 12px;
}

.comment-text {
    font-size: 14px;
    color: #444;
}

.comment-reply-link {
    font-size: 13px;
    color: #999;
    text-decoration: none;
}

.comment-reply-link:hover {
    color: #1a1a1a;
}

/* 底部 */
footer {
    margin-top: 80px;
    padding-top: 32px;
    border-top: 1px solid #e5e5e5;
    font-size: 13px;
    color: #999;
    text-align: center;
}

/* 翻页 */
.pagination {
    display: flex;
    justify-content: space-between;
    margin-top: 64px;
    font-size: 14px;
}

.pagination a {
    color: #666;
    text-decoration: none;
}

.pagination a:hover {
    color: #1a1a1a;
}

/* 响应式 */
@media (max-width: 480px) {
    body {
        padding: 40px 16px;
    }

    .site-title {
        font-size: 20px;
    }

    .single-post .post-title {
        font-size: 24px;
    }
}
