/*
Theme Name: Elegant Blog
Theme URI: https://yourdomain.com
Description: 全新原创轻奢自适应博客 | SEO友好 | 自定义简介
Version: 1.0
Author: Custom
Text Domain: elegant-blog
*/

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: "Noto Sans SC", -apple-system, BlinkMacSystemFont, sans-serif;
    background: #fafafa;
    color: #222;
    line-height: 1.8;
}
a {
    color: #222;
    text-decoration: none;
    transition: all 0.25s ease;
}
a:hover {
    color: #007bff;
}
img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
}
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 头部 */
.site-header {
    background: #fff;
    padding: 20px 0;
    box-shadow: 0 1px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 99;
}
.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo {
    font-size: 24px;
    font-weight: 600;
    color: #007bff;
}
.nav-menu ul {
    display: flex;
    list-style: none;
    gap: 25px;
}

/* 主内容区 */
.site-main {
    padding: 40px 0;
}
.content-area {
    max-width: 780px;
    margin: 0 auto;
}

/* 文章卡片 */
.article-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 30px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.04);
    transition: 0.3s;
}
.article-card:hover {
    transform: translateY(-3px);
}
.thumb-box img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}
.article-content {
    padding: 25px;
}
.article-title {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 10px;
}
.article-meta {
    font-size: 13px;
    color: #999;
    margin-bottom: 15px;
}
.article-excerpt {
    color: #555;
    font-size: 15px;
}

/* 分页 */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 40px 0;
}
.pagination a, .pagination span {
    padding: 8px 14px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}
.pagination .current {
    background: #007bff;
    color: #fff;
}

/* 文章详情 */
.single-article {
    background: #fff;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.04);
}
.single-title {
    font-size: 28px;
    margin-bottom: 15px;
    line-height: 1.4;
}
.single-content {
    margin: 30px 0;
    font-size: 16px;
    line-height: 1.9;
}

/* 上下篇 */
.post-navigation {
    display: flex;
    justify-content: space-between;
    background: #fff;
    padding: 20px;
    border-radius: 14px;
    margin: 30px 0;
}

/* 相关文章 */
.related-posts {
    margin: 40px 0;
}
.related-title {
    font-size: 18px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
}
.related-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.related-item {
    background: #fff;
    padding: 15px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}

/* 网站简介（底部） */
.site-desc {
    background: #fff;
    padding: 30px;
    border-radius: 16px;
    text-align: center;
    margin: 40px 0;
    box-shadow: 0 3px 15px rgba(0,0,0,0.04);
}
.site-desc p {
    color: #666;
    font-size: 15px;
}

/* 侧边栏 */
.sidebar {
    margin-top: 40px;
}
.widget {
    background: #fff;
    padding: 25px;
    border-radius: 16px;
    margin-bottom: 25px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.04);
}
.widget-title {
    font-size: 16px;
    margin-bottom: 18px;
    padding-bottom: 8px;
    border-bottom: 1px solid #f0f0f0;
}
.widget ul {
    list-style: none;
}
.widget li {
    padding: 7px 0;
    border-bottom: 1px dashed #f0f0f0;
}
.search-input {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #eee;
    border-radius: 8px;
    outline: none;
}

/* 底部 */
.site-footer {
    background: #222;
    color: #fff;
    text-align: center;
    padding: 35px 0;
    margin-top: 30px;
}

/* 手机自适应 */
@media (max-width: 768px) {
    .content-area {
        width: 100%;
    }
    .post-navigation {
        flex-direction: column;
        gap: 10px;
    }
    .single-article {
        padding: 25px;
    }
    .nav-menu ul {
        gap: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }
}