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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

a {
    text-decoration: none;
    color: #333;
    transition: color 0.3s ease;
}

a:hover {
    color: #007bff;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

.btn {
    display: inline-block;
    background-color: #007bff;
    color: #fff;
    padding: 10px 20px;
    border-radius: 4px;
    transition: background-color 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 16px;
}

.btn:hover {
    background-color: #0056b3;
    color: #fff;
}

/* 头部样式 */
header {
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

header h1 {
    font-size: 24px;
}

header h1 a {
    color: #333;
}

.nav-links {
    display: flex;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    font-weight: 500;
    position: relative;
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #007bff;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.menu-icon {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #333;
    position: relative;
}

.menu-icon::before, .menu-icon::after {
    content: '';
    position: absolute;
    width: 25px;
    height: 3px;
    background-color: #333;
    transition: transform 0.3s ease;
}

.menu-icon::before {
    top: -8px;
}

.menu-icon::after {
    bottom: -8px;
}

/* 主要内容样式 */
main {
    padding: 30px 0;
}

/* 首页样式 */
.hero {
    text-align: center;
    padding: 60px 0;
    background-color: #f8f9fa;
    margin-bottom: 40px;
}

.hero h2 {
    font-size: 36px;
    margin-bottom: 15px;
}

.hero p {
    font-size: 18px;
    color: #666;
    margin-bottom: 30px;
}

.featured-posts {
    margin-bottom: 40px;
}

.featured-posts h3 {
    font-size: 24px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #eee;
}

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

.post-card {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.post-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.post-content {
    padding: 20px;
}

.post-content h4 {
    font-size: 18px;
    margin-bottom: 10px;
}

.post-excerpt {
    color: #666;
    margin-bottom: 15px;
}

.post-meta {
    display: flex;
    justify-content: space-between;
    color: #999;
    font-size: 14px;
}

.about-me {
    background-color: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.about-me h3 {
    font-size: 24px;
    margin-bottom: 20px;
}

.about-container {
    display: flex;
    align-items: center;
    gap: 30px;
}

.profile-img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
}

.about-content p {
    margin-bottom: 20px;
}

/* 文章列表页样式 */
.page-title {
    text-align: center;
    margin-bottom: 40px;
}

.page-title h2 {
    font-size: 32px;
    margin-bottom: 10px;
}

.page-title p {
    color: #666;
}

.content-container {
    display: flex;
    gap: 30px;
}

.posts-list {
    flex: 3;
}

.post-item {
    display: flex;
    gap: 20px;
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.post-item img {
    width: 200px;
    height: 150px;
    object-fit: cover;
    border-radius: 4px;
}

.post-item h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

/* 侧边栏样式 */
.sidebar {
    flex: 1;
}

.sidebar > div {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.sidebar h3 {
    font-size: 18px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #eee;
}

.search-box form {
    display: flex;
}

.search-box input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px 0 0 4px;
}

.search-box button {
    padding: 10px 15px;
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
}

.categories ul li {
    margin-bottom: 10px;
}

.recent-posts ul li {
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.recent-posts ul li:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

/* 文章详情页样式 */
.post-detail {
    flex: 3;
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.post-detail h2 {
    font-size: 28px;
    margin-bottom: 15px;
}

.post-meta {
    color: #999;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.post-meta span {
    margin-right: 15px;
}

.post-thumbnail {
    margin-bottom: 30px;
}

.post-thumbnail img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.post-content h3 {
    font-size: 22px;
    margin: 25px 0 15px;
}

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

.post-tags {
    margin: 30px 0;
    padding: 15px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.post-tags a {
    display: inline-block;
    background-color: #f5f5f5;
    padding: 5px 10px;
    border-radius: 4px;
    margin-right: 10px;
    margin-bottom: 10px;
}

.post-nav {
    display: flex;
    justify-content: space-between;
    margin: 30px 0;
}

.post-nav a {
    display: flex;
    align-items: center;
}

.prev-post {
    margin-right: auto;
}

.next-post {
    margin-left: auto;
    text-align: right;
}

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

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

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
}

.form-group textarea {
    resize: vertical;
}

.comments-list {
    margin-top: 30px;
}

.comment-item {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.comment-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.comment-content h4 {
    font-size: 16px;
    margin-bottom: 5px;
}

.comment-date {
    font-size: 14px;
    color: #999;
    margin-left: 10px;
}

/* 页脚样式 */
footer {
    background-color: #333;
    color: #fff;
    padding: 40px 0 20px;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
}

.footer-about, .footer-links, .footer-contact {
    flex: 1;
    margin-right: 30px;
}

.footer-about h4, .footer-links h4, .footer-contact h4 {
    font-size: 18px;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-about h4::after, .footer-links h4::after, .footer-contact h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: #007bff;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #aaa;
}

.footer-links a:hover {
    color: #fff;
}

.footer-contact p {
    margin-bottom: 10px;
    color: #aaa;
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #444;
    color: #aaa;
    font-size: 14px;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .about-container {
        flex-direction: column;
        text-align: center;
    }

    .content-container {
        flex-direction: column;
    }

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

    .post-item img {
        width: 100%;
        height: auto;
    }

    .footer-container {
        flex-direction: column;
    }

    .footer-about, .footer-links, .footer-contact {
        margin-right: 0;
        margin-bottom: 30px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: #fff;
        flex-direction: column;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        padding: 20px 0;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        margin: 0 30px 15px;
    }

    .mobile-menu-btn {
        display: block;
    }

    .hero {
        padding: 40px 0;
    }

    .hero h2 {
        font-size: 28px;
    }

    .posts-grid {
        grid-template-columns: 1fr;
    }

    .post-detail {
        padding: 20px;
    }

    .post-detail h2 {
        font-size: 24px;
    }

    .post-nav {
        flex-direction: column;
        gap: 20px;
    }

    .prev-post, .next-post {
        margin: 0;
    }
}

@media (max-width: 576px) {
    .header-container {
        padding: 10px 0;
    }

    header h1 {
        font-size: 20px;
    }

    .hero h2 {
        font-size: 24px;
    }

    .hero p {
        font-size: 16px;
    }

    .about-me {
        padding: 20px;
    }

    .page-title h2 {
        font-size: 28px;
    }
}`,"rewrite":false}}}