/* ========================================
   Blog Archive Page
   ======================================== */

.blog-archive-page {
    background: #000;
    min-height: 100vh;
}

/* 博客头部 */
.blog-header {
    background: #1a1a1a;
    padding: 80px 0 60px;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.blog-header-container {
    max-width: 1290px;
    margin: 0 auto;
    padding: 0 20px;
}

.blog-title {
    font-family: 'EB Garamond', serif;
    font-size: 3.5rem;
    font-weight: 400;
    color: #fff;
    margin: 0 0 15px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.archive-description {
    color: #ccc;
    font-size: 16px;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto;
}

/* 博客容器 */
.blog-container {
    max-width: 1290px;
    margin: 0 auto;
    padding: 60px 20px 80px;
}

.blog-content {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 60px;
}

/* 文章网格 */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

/* 文章卡片 */
.post-card {
    background: #1a1a1a;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.post-thumbnail {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/10;
}

.post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.post-card:hover .post-thumbnail img {
    transform: scale(1.1);
}

.post-category {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 2;
}

.post-category a {
    display: inline-block;
    padding: 6px 16px;
    background: #fff;
    color: #000;
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 4px;
    transition: all 0.3s;
}

.post-category a:hover {
    background: #000;
    color: #fff;
}

.post-content {
    padding: 30px;
}

.post-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    font-size: 13px;
    color: #999;
}

.post-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.post-meta svg {
    width: 14px;
    height: 14px;
}

.post-title {
    font-family: 'EB Garamond', serif;
    font-size: 1.5rem;
    font-weight: 400;
    margin: 0 0 15px;
    line-height: 1.3;
}

.post-title a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s;
}

.post-title a:hover {
    color: #ccc;
}

.post-excerpt {
    color: #ccc;
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 20px;
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s;
}

.read-more:hover {
    gap: 12px;
}

.read-more svg {
    width: 16px;
    height: 16px;
}

/* 分页 */
.blog-pagination {
    margin-top: 60px;
    text-align: center;
}

.blog-pagination .page-numbers {
    display: inline-flex;
    gap: 10px;
    align-items: center;
}

.blog-pagination .page-numbers a,
.blog-pagination .page-numbers span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    background: #1a1a1a;
    color: #ccc;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s;
}

.blog-pagination .page-numbers a:hover,
.blog-pagination .page-numbers span.current {
    background: #fff;
    color: #000;
}

/* 侧边栏 */
.blog-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.sidebar-widget {
    background: #1a1a1a;
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 30px;
}

.widget-title {
    font-family: 'EB Garamond', serif;
    font-size: 1.5rem;
    font-weight: 400;
    color: #fff;
    margin: 0 0 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* 搜索框 */
.widget-search .search-form {
    display: flex;
    gap: 10px;
}

.widget-search .search-field {
    flex: 1;
    padding: 12px 16px;
    background: #000;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    border-radius: 4px;
    font-size: 14px;
}

.widget-search .search-submit {
    padding: 12px 16px;
    background: #fff;
    color: #000;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
}

.widget-search .search-submit:hover {
    background: #ccc;
}

/* 分类列表 */
.widget-categories ul,
.widget-recent-posts ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.widget-categories li,
.widget-recent-posts li {
    margin-bottom: 12px;
}

.widget-categories li:last-child,
.widget-recent-posts li:last-child {
    margin-bottom: 0;
}

.widget-categories a {
    color: #ccc;
    text-decoration: none;
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    transition: all 0.3s;
}

.widget-categories a:hover {
    color: #fff;
    padding-left: 10px;
}

.widget-categories .count {
    color: #666;
    font-size: 13px;
}

/* 最新文章 */
.widget-recent-posts a {
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    line-height: 1.4;
    transition: color 0.3s;
}

.widget-recent-posts a:hover {
    color: #ccc;
}

.widget-recent-posts .post-date {
    display: block;
    color: #666;
    font-size: 12px;
    margin-top: 5px;
}

/* 标签云 */
.widget-tags .tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.widget-tags .tag-link {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.05);
    color: #ccc;
    text-decoration: none;
    font-size: 13px;
    border-radius: 4px;
    transition: all 0.3s;
}

.widget-tags .tag-link:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

/* 没有文章 */
.no-posts-found {
    text-align: center;
    padding: 80px 20px;
    grid-column: 1 / -1;
}

.no-posts-found svg {
    color: #666;
    margin-bottom: 30px;
}

.no-posts-found h2 {
    font-family: 'EB Garamond', serif;
    font-size: 2rem;
    color: #fff;
    margin: 0 0 15px;
}

.no-posts-found p {
    color: #ccc;
    margin: 0 0 30px;
}

.no-posts-found .button {
    display: inline-block;
    padding: 14px 32px;
    background: #fff;
    color: #000;
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 4px;
    transition: all 0.3s;
}

.no-posts-found .button:hover {
    background: #ccc;
}

/* ========================================
   Single Post Page
   ======================================== */

.single-post-page {
    background: #000;
    min-height: 100vh;
}

/* 文章头部 */
.post-header {
    position: relative;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #1a1a1a;
}

.post-header-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.post-header-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.5), rgba(0,0,0,0.8));
}

.post-header-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 60px 20px;
    text-align: center;
}

.post-breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 14px;
    margin-bottom: 20px;
}

.post-breadcrumb a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
}

.post-breadcrumb a:hover {
    color: #fff;
}

.post-breadcrumb .separator {
    color: #666;
}

.post-breadcrumb .current {
    color: #fff;
}

.post-category-badge {
    margin-bottom: 20px;
}

.post-category-badge a {
    display: inline-block;
    padding: 8px 20px;
    background: #fff;
    color: #000;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 4px;
    transition: all 0.3s;
}

.post-category-badge a:hover {
    background: #ccc;
}

.post-header .post-title {
    font-family: 'EB Garamond', serif;
    font-size: 3rem;
    font-weight: 400;
    color: #fff;
    margin: 0 0 30px;
    line-height: 1.2;
}

.post-header .post-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.post-header .post-meta span {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #ccc;
    font-size: 14px;
}

.post-author img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

/* 文章内容 */
.post-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 80px 20px;
}

.post-content-wrapper {
    background: #fff;
    border-radius: 8px;
    padding: 60px;
}

.post-content {
    color: #333;
    font-size: 16px;
    line-height: 1.8;
}

.post-content h1,
.post-content h2,
.post-content h3,
.post-content h4,
.post-content h5,
.post-content h6 {
    color: #000;
    font-family: 'EB Garamond', serif;
    margin: 40px 0 20px;
    line-height: 1.3;
}

.post-content h2 {
    font-size: 2rem;
}

.post-content h3 {
    font-size: 1.5rem;
}

.post-content p {
    margin-bottom: 20px;
}

.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 30px 0;
}

.post-content a {
    text-decoration: underline;
}

/* .post-content a:hover {
    color: #666;
} */

.post-content blockquote {
    border-left: 4px solid #000;
    padding-left: 30px;
    margin: 30px 0;
    font-style: italic;
    color: #666;
}

.post-content ul,
.post-content ol {
    margin: 20px 0;
    padding-left: 30px;
}

.post-content li {
    margin-bottom: 10px;
}

/* 文章标签 */
.post-tags {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    padding: 30px 0;
    border-top: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
    margin: 40px 0;
}

.tags-label {
    font-weight: 600;
    color: #000;
}

.post-tags a {
    display: inline-block;
    padding: 6px 14px;
    background: #f5f5f5;
    color: #333;
    text-decoration: none;
    font-size: 13px;
    border-radius: 4px;
    transition: all 0.3s;
}

.post-tags a:hover {
    background: #000;
    color: #fff;
}

/* 作者信息 */
.author-box {
    display: flex;
    gap: 25px;
    padding: 30px;
    background: #f9f9f9;
    border-radius: 8px;
    margin: 40px 0;
}

.author-avatar img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
}

.author-info {
    flex: 1;
}

.author-name {
    font-family: 'EB Garamond', serif;
    font-size: 1.3rem;
    color: #000;
    margin: 0 0 10px;
}

.author-bio {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
}

/* 文章导航 */
.post-navigation {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin: 40px 0;
}

.nav-previous,
.nav-next {
    padding: 25px;
    background: #f9f9f9;
    border-radius: 8px;
    transition: all 0.3s;
}

.nav-previous:hover,
.nav-next:hover {
    background: #f0f0f0;
}

.nav-label {
    display: block;
    font-size: 12px;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}

.nav-previous a,
.nav-next a {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #000;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.nav-previous a:hover,
.nav-next a:hover {
    color: #666;
}

.nav-next {
    text-align: right;
}

.nav-next a {
    justify-content: flex-end;
}

/* ========================================
   响应式设计
   ======================================== */

@media (max-width: 1200px) {
    .blog-content {
        grid-template-columns: 1fr 300px;
        gap: 40px;
    }
}

@media (max-width: 968px) {
    .blog-content {
        grid-template-columns: 1fr;
    }
    
    .blog-sidebar {
        position: static;
    }
    
    .posts-grid {
        grid-template-columns: 1fr;
    }
    
    .post-navigation {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .blog-title {
        font-size: 2.5rem;
    }
    
    .post-header .post-title {
        font-size: 2rem;
    }
    
    .post-content-wrapper {
        padding: 30px 20px;
    }
    
    .author-box {
        flex-direction: column;
        text-align: center;
    }
}


/* ========================================
   Comments Section
   ======================================== */

.comments-area {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 2px solid #e0e0e0;
}

.comments-title {
    font-family: 'EB Garamond', serif;
    font-size: 2rem;
    color: #000;
    margin: 0 0 30px;
}

.comment-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.comment {
    margin-bottom: 30px;
    padding: 25px;
    background: #f9f9f9;
    border-radius: 8px;
}

.comment-body {
    display: flex;
    gap: 20px;
}

.comment-author {
    flex-shrink: 0;
}

.comment-author img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
}

.comment-content-wrapper {
    flex: 1;
}

.comment-meta {
    margin-bottom: 10px;
}

.comment-author-name {
    font-weight: 600;
    color: #000;
    font-size: 16px;
    margin-right: 10px;
}

.comment-metadata {
    font-size: 13px;
    color: #999;
}

.comment-metadata a {
    color: #999;
    text-decoration: none;
}

.comment-metadata a:hover {
    color: #666;
}

.comment-content {
    color: #333;
    line-height: 1.7;
    margin-bottom: 15px;
}

.comment-content p {
    margin-bottom: 10px;
}

.reply {
    margin-top: 10px;
}

.comment-reply-link {
    display: inline-block;
    padding: 6px 16px;
    background: #000;
    color: #fff;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 4px;
    transition: all 0.3s;
}

.comment-reply-link:hover {
    background: #333;
}

/* 嵌套评论 */
.children {
    list-style: none;
    margin: 20px 0 0 40px;
    padding: 0;
}

/* 评论表单 */
.comment-respond {
    margin-top: 40px;
    padding: 30px;
    background: #f9f9f9;
    border-radius: 8px;
}

.comment-reply-title {
    font-family: 'EB Garamond', serif;
    font-size: 1.5rem;
    color: #000;
    margin: 0 0 20px;
}

.comment-reply-title small {
    font-size: 14px;
    margin-left: 10px;
}

.comment-reply-title small a {
    color: #666;
    text-decoration: none;
}

.comment-form {
    display: grid;
    gap: 20px;
}

.comment-form-comment {
    grid-column: 1 / -1;
}

.comment-form label {
    display: block;
    color: #000;
    font-weight: 500;
    margin-bottom: 8px;
    font-size: 14px;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 12px 16px;
    background: #fff;
    border: 1px solid #ddd;
    color: #333;
    border-radius: 4px;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.3s;
}

.comment-form input:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: #000;
}

.comment-form textarea {
    min-height: 150px;
    resize: vertical;
}

.form-submit {
    grid-column: 1 / -1;
    margin: 0;
}

.form-submit input[type="submit"] {
    padding: 14px 32px;
    background: #000;
    color: #fff;
    border: none;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s;
}

.form-submit input[type="submit"]:hover {
    background: #333;
}

.comment-notes,
.logged-in-as {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
}

.logged-in-as a {
    color: #000;
    text-decoration: underline;
}

.logged-in-as a:hover {
    color: #666;
}

/* 评论分页 */
.comment-navigation {
    margin: 30px 0;
    display: flex;
    justify-content: space-between;
}

.comment-navigation a {
    color: #000;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.comment-navigation a:hover {
    color: #666;
}

/* ========================================
   Page Links (分页内容)
   ======================================== */

.page-links {
    margin: 30px 0;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
    text-align: center;
}

.page-links a,
.page-links > span {
    display: inline-block;
    padding: 8px 16px;
    margin: 0 5px;
    background: #fff;
    color: #000;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s;
}

.page-links a:hover {
    background: #000;
    color: #fff;
}

.page-links > span {
    background: #000;
    color: #fff;
}

/* ========================================
   搜索结果页面
   ======================================== */

.search-results .blog-title {
    font-size: 2.5rem;
}

.search-results .search-query {
    color: #ccc;
    font-weight: normal;
}

/* ========================================
   404页面样式
   ======================================== */

.error-404 {
    background: #000;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
}

.error-404-content {
    max-width: 600px;
}

.error-404-title {
    font-family: 'EB Garamond', serif;
    font-size: 8rem;
    color: #fff;
    margin: 0 0 20px;
    line-height: 1;
}

.error-404-subtitle {
    font-size: 2rem;
    color: #fff;
    margin: 0 0 20px;
}

.error-404-text {
    color: #ccc;
    font-size: 16px;
    margin: 0 0 40px;
}

.error-404 .search-form {
    max-width: 400px;
    margin: 0 auto 30px;
    display: flex;
    gap: 10px;
}

.error-404 .search-field {
    flex: 1;
    padding: 14px 20px;
    background: #1a1a1a;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    border-radius: 4px;
}

.error-404 .search-submit {
    padding: 14px 24px;
    background: #fff;
    color: #000;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
}

.error-404 .button {
    display: inline-block;
    padding: 14px 32px;
    background: #fff;
    color: #000;
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 4px;
    transition: all 0.3s;
}

.error-404 .button:hover {
    background: #ccc;
}

/* ========================================
   响应式 - 评论区
   ======================================== */

@media (max-width: 768px) {
    .comment-body {
        flex-direction: column;
    }
    
    .children {
        margin-left: 20px;
    }
    
    .comment-respond {
        padding: 20px;
    }
}
