/*
Theme Name: Mobius Blog
Theme URI: https://mobius.blog/
Description: 极简文艺风格博客主题 - 复刻莫比乌斯博客
Author: CodeBuddy
Version: 1.4
License: GPL v2
*/

/* ===== 基础重置 ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
}

body {
    font-family: "SimSun", "宋体", "Times New Roman", "Georgia", Times, serif;
    background-color: #F5F0E8;
    color: #2C2C2C;
    line-height: 1.8;
    -webkit-font-smoothing: antialiased;
}

a {
    color: #2C2C2C;
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: #555;
}

/* ===== 顶部区域 ===== */
.site-header {
    max-width: 1200px;
    margin: 0 auto;
    padding: 50px 40px 40px;
    display: flex;
    align-items: flex-start;
    gap: 60px;
    border-bottom: 1px solid #E5E0D6;
}

/* Logo */
.site-branding {
    flex-shrink: 0;
}

.logo-link {
    display: inline-block;
    text-decoration: none;
}

.logo-icon {
    width: 50px;
    height: 50px;
    margin-bottom: 15px;
}

.logo-icon svg {
    width: 100%;
    height: 100%;
}

.logo-title {
    font-size: 20px;
    font-weight: 600;
    letter-spacing: 4px;
    color: #2C2C2C;
}

.logo-subtitle {
    font-size: 10px;
    letter-spacing: 2px;
    color: #999;
    margin-top: 4px;
    font-family: "Helvetica Neue", Arial, sans-serif;
}

/* 顶部描述 */
.site-description {
    flex: 1;
    padding-top: 10px;
}

.site-description p {
    font-size: 13px;
    color: #666;
    line-height: 2;
}

.site-description p::before {
    content: "/ ";
    color: #aaa;
}

.stats {
    color: #2C2C2C;
}

/* ===== 主内容区 ===== */
.site-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px 80px;
}

/* 文章列表 */
.post-list {
    list-style: none;
}

.post-item {
    display: flex;
    align-items: baseline;
    padding: 20px 0;
    border-bottom: 1px solid #E5E0D6;
    transition: all 0.2s ease;
}

.post-item:hover {
    background-color: rgba(0,0,0,0.015);
}

.post-item:hover .post-title a {
    color: #555;
}

.post-vol {
    font-size: 11px;
    color: #bbb;
    width: 55px;
    flex-shrink: 0;
    font-family: "Helvetica Neue", Arial, sans-serif;
}

.post-date {
    font-size: 13px;
    color: #999;
    width: 55px;
    flex-shrink: 0;
    font-family: "Helvetica Neue", Arial, sans-serif;
}

.post-title {
    flex: 1;
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 0.3px;
    padding-right: 20px;
}

.post-title a {
    color: #2C2C2C;
    text-decoration: none;
    transition: color 0.2s ease;
}

.post-category {
    font-size: 12px;
    color: #999;
    flex-shrink: 0;
    font-family: "Helvetica Neue", Arial, sans-serif;
}

.post-category::before {
    content: "/ ";
    color: #ccc;
}

/* ===== 分页 ===== */
.pagination {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid #E5E0D6;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    font-family: "Helvetica Neue", Arial, sans-serif;
}

.pagination-numbers {
    display: flex;
    gap: 16px;
    align-items: center;
}

.pagination a,
.pagination span {
    color: #999;
    text-decoration: none;
}

.pagination a:hover {
    color: #2C2C2C;
}

.pagination .current {
    color: #2C2C2C;
    font-weight: 500;
}

.pagination .dots {
    color: #ccc;
}

.pagination .next {
    color: #666;
}

/* ===== 文章详情页 ===== */
.single-post {
    display: flex;
    min-height: 100vh;
}

/* 左侧固定标题 */
.single-sidebar {
    width: 320px;
    padding: 60px 40px;
    position: fixed;
    height: 100vh;
    display: flex;
    align-items: flex-start;
    padding-top: 120px;
}

.single-title {
    font-size: 20px;
    font-weight: 600;
    line-height: 1.5;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    letter-spacing: 4px;
    color: #2C2C2C;
}

/* 右侧内容区 */
.single-content-wrapper {
    margin-left: 320px;
    flex: 1;
    padding: 60px 80px;
    max-width: 900px;
}

/* 面包屑导航 */
.breadcrumb {
    font-size: 13px;
    color: #999;
    margin-bottom: 40px;
    font-family: "Helvetica Neue", Arial, sans-serif;
}

.breadcrumb a {
    color: #999;
}

.breadcrumb a:hover {
    color: #666;
}

/* 文章头部 */
.post-header {
    margin-bottom: 50px;
    padding-bottom: 30px;
    border-bottom: 1px solid #E5E0D6;
}

.post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
}

.post-meta .date {
    font-size: 13px;
    color: #888;
    font-family: "Helvetica Neue", Arial, sans-serif;
}

.post-tags-inline {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.tag-item {
    font-size: 12px;
    color: #888;
}

.tag-item::before {
    content: "#";
}

/* 文章内容 */
.entry-content {
    font-size: 16px;
    line-height: 2.2;
    color: #333;
}

.entry-content p {
    margin-bottom: 1.8em;
    text-indent: 2em;
}

.entry-content img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 40px auto;
    border-radius: 4px;
}

.entry-content blockquote {
    margin: 30px 0;
    padding: 20px 30px;
    border-left: 3px solid #D4CFC5;
    background: rgba(0,0,0,0.02);
    font-style: italic;
    color: #555;
}

.entry-content blockquote p {
    margin-bottom: 0;
    text-indent: 0;
}

.entry-content h2,
.entry-content h3 {
    font-weight: 600;
    margin: 2.5em 0 1em;
    letter-spacing: 1px;
}

.entry-content h2 {
    font-size: 22px;
}

.entry-content h3 {
    font-size: 18px;
}

.entry-content hr {
    border: none;
    text-align: center;
    margin: 50px 0;
    color: #ccc;
    letter-spacing: 10px;
}

.entry-content hr::before {
    content: "· · ·";
}

/* 上下篇导航 */
.post-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 80px;
    padding-top: 30px;
    border-top: 1px solid #E5E0D6;
    font-size: 14px;
}

.post-navigation a {
    color: #666;
    max-width: 45%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.post-navigation a:hover {
    color: #2C2C2C;
}

/* ===== 页脚 ===== */
.site-footer {
    margin-top: 80px;
    padding-top: 30px;
    border-top: 1px solid #E5E0D6;
    font-size: 12px;
    color: #888;
    text-align: center;
}

/* ===== 响应式设计 ===== */
@media screen and (max-width: 1024px) {
    .single-sidebar {
        width: 260px;
        padding: 40px 30px;
    }
    
    .single-content-wrapper {
        margin-left: 260px;
        padding: 40px 50px;
    }
    
    .single-title {
        font-size: 18px;
    }
}

@media screen and (max-width: 768px) {
    .site-header {
        flex-direction: column;
        gap: 20px;
        padding: 30px 20px;
    }
    
    .site-main {
        padding: 0 20px 60px;
    }
    
    .single-post {
        flex-direction: column;
    }
    
    .single-sidebar {
        position: relative;
        width: 100%;
        height: auto;
        padding: 30px;
        border-bottom: 1px solid #D4CFC5;
        padding-top: 30px;
    }
    
    .single-content-wrapper {
        margin-left: 0;
        padding: 30px;
    }
    
    .single-title {
        writing-mode: horizontal-tb;
        font-size: 18px;
    }
    
    .post-item {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .post-category {
        margin-left: 0;
        width: 100%;
    }
}

/* ===== 滚动条样式 ===== */
::-webkit-scrollbar {
    width: 5px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: #ddd;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #ccc;
}