/*
Theme Name: Mobius Blog
Theme URI: https://mobius.blog/
Description: 极简文艺风格博客主题 - 复刻莫比乌斯博客
Author: CodeBuddy
Version: 1.0
License: GPL v2
*/

/* ===== 基础重置 ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
}

body {
    font-family: "Noto Serif SC", "Source Han Serif SC", "SimSun", "STSong", 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: #666;
}

/* ===== 布局容器 ===== */
.site-wrapper {
    display: flex;
    min-height: 100vh;
    max-width: 1400px;
    margin: 0 auto;
}

/* ===== 左侧边栏 ===== */
.site-sidebar {
    width: 320px;
    padding: 60px 40px;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

/* Logo区域 */
.site-branding {
    margin-bottom: 50px;
}

.logo-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 48px;
    height: 48px;
}

.logo-icon svg {
    width: 100%;
    height: 100%;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-english {
    font-size: 11px;
    letter-spacing: 2px;
    color: #666;
    font-family: "Helvetica Neue", Arial, sans-serif;
}

.logo-chinese {
    font-size: 24px;
    font-weight: 600;
    letter-spacing: 4px;
    margin-top: 2px;
}

/* 导航菜单 */
.site-nav {
    margin-bottom: 50px;
    padding-bottom: 30px;
    border-bottom: 1px solid #D4CFC5;
}

.nav-menu {
    list-style: none;
    display: flex;
    gap: 20px;
}

.nav-menu li {
    position: relative;
}

.nav-menu li::before {
    content: "/";
    margin-right: 4px;
    color: #999;
}

.nav-menu a {
    font-size: 14px;
    color: #555;
}

.nav-menu a:hover {
    color: #2C2C2C;
}

/* 引言区域 */
.site-quote {
    margin-bottom: 40px;
    flex: 1;
}

.quote-bird {
    font-size: 24px;
    margin-bottom: 15px;
    opacity: 0.7;
}

.quote-text {
    font-size: 13px;
    line-height: 2.2;
    color: #555;
    font-style: italic;
}

.quote-text p {
    margin-bottom: 8px;
}

/* 侧边图片 */
.sidebar-image {
    margin-top: auto;
}

.sidebar-image img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    filter: grayscale(30%);
    opacity: 0.9;
}

.image-caption {
    text-align: center;
    font-size: 12px;
    color: #888;
    margin-top: 10px;
    text-decoration: underline;
    text-decoration-color: #ccc;
}

/* ===== 主内容区 ===== */
.site-main {
    margin-left: 320px;
    flex: 1;
    padding: 60px 80px;
    min-height: 100vh;
}

/* 顶部描述 */
.site-description {
    margin-bottom: 50px;
    padding-bottom: 30px;
    border-bottom: 1px solid #D4CFC5;
}

.site-description p {
    font-size: 13px;
    color: #666;
    line-height: 2;
}

.site-description p::before {
    content: "/ ";
    color: #999;
}

.stats {
    color: #2C2C2C;
    font-weight: 500;
}

/* 文章列表 */
.post-list {
    list-style: none;
}

.post-item {
    display: flex;
    align-items: baseline;
    padding: 18px 0;
    border-bottom: 1px solid #E5E0D6;
    transition: background-color 0.2s ease;
}

.post-item:hover {
    background-color: rgba(0,0,0,0.02);
}

.post-date {
    font-size: 13px;
    color: #888;
    width: 70px;
    flex-shrink: 0;
    font-family: "Helvetica Neue", Arial, sans-serif;
}

.post-title {
    flex: 1;
    font-size: 17px;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.post-title a:hover {
    color: #666;
}

.post-category {
    font-size: 12px;
    color: #888;
    margin-left: 20px;
}

.post-category::before {
    content: "/";
    margin-right: 3px;
}

/* 分页 */
.pagination {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid #D4CFC5;
    display: flex;
    justify-content: space-between;
    font-size: 13px;
}

.pagination a {
    color: #666;
}

.pagination a:hover {
    color: #2C2C2C;
}

/* ===== 文章详情页 ===== */
.single-post {
    max-width: 700px;
}

.post-header {
    margin-bottom: 40px;
}

.post-meta {
    font-size: 13px;
    color: #888;
    margin-bottom: 15px;
}

.post-meta .date::after {
    content: " / ";
    color: #ccc;
}

.entry-title {
    font-size: 28px;
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: 1px;
}

.entry-content {
    font-size: 16px;
    line-height: 2;
    color: #333;
}

.entry-content p {
    margin-bottom: 1.8em;
}

.entry-content h2,
.entry-content h3 {
    font-weight: 600;
    margin: 2em 0 1em;
    letter-spacing: 1px;
}

.entry-content h2 {
    font-size: 22px;
}

.entry-content h3 {
    font-size: 18px;
}

/* ===== 页脚 ===== */
.site-footer {
    margin-top: 80px;
    padding-top: 30px;
    border-top: 1px solid #D4CFC5;
    font-size: 12px;
    color: #888;
    text-align: center;
}

/* ===== 响应式设计 ===== */
@media screen and (max-width: 1024px) {
    .site-sidebar {
        width: 260px;
        padding: 40px 30px;
    }
    
    .site-main {
        margin-left: 260px;
        padding: 40px 50px;
    }
}

@media screen and (max-width: 768px) {
    .site-wrapper {
        flex-direction: column;
    }
    
    .site-sidebar {
        position: relative;
        width: 100%;
        height: auto;
        padding: 30px;
        border-bottom: 1px solid #D4CFC5;
    }
    
    .site-main {
        margin-left: 0;
        padding: 30px;
    }
    
    .sidebar-image {
        display: none;
    }
    
    .post-item {
        flex-wrap: wrap;
    }
    
    .post-category {
        margin-left: 70px;
        margin-top: 5px;
    }
}

/* ===== 滚动条样式 ===== */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #aaa;
}
