/* 祖蛙博客 - 浏览器优化版式 */
/* 保持微信公众号风格，但优化电脑浏览体验 */

:root {
    /* 微信公众号风格配色（优化版） */
    --wechat-bg: #ffffff;
    --wechat-text: #333333;
    --wechat-text-secondary: #666666;
    --wechat-border: #e6e6e6;
    --wechat-accent: #576b95;
    --wechat-muted: #999999;
    --wechat-card-bg: #fafafa;
    
    /* 水墨画风格配色 */
    --ink-black: #1a1a1a;
    --ink-gray: #4a4a4a;
    --ink-light: #8c8c8c;
    --paper-white: #f8f5f0;
    --paper-cream: #f5f1e8;
    
    /* 排版 - 电脑优化 */
    --font-size-base: 18px;           /* 电脑上稍大 */
    --font-size-lg: 20px;             /* 正文稍大 */
    --font-size-sm: 16px;             /* 小字稍大 */
    --line-height: 1.8;               /* 舒适行高 */
    --paragraph-spacing: 1.8em;       /* 段落间距 */
    
    /* 布局 - 电脑优化 */
    --container-width: 900px;         /* 电脑上更宽 */
    --article-width: 800px;           /* 文章区域宽度 */
    --sidebar-width: 280px;           /* 侧边栏宽度 */
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", STHeiti, "Microsoft YaHei", sans-serif;
    font-size: var(--font-size-base);
    line-height: var(--line-height);
    color: var(--wechat-text);
    background-color: var(--wechat-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
}

/* 电脑优化容器 */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 40px;  /* 电脑上更多内边距 */
    display: grid;
    grid-template-columns: 1fr var(--sidebar-width);
    gap: 40px;
    align-items: start;
}

/* 主内容区域 */
.main-content {
    grid-column: 1;
}

/* 侧边栏 */
.sidebar {
    grid-column: 2;
    position: sticky;
    top: 40px;
}

/* 头部 - 电脑优化 */
.blog-header {
    text-align: center;
    padding: 3rem 0 2rem;  /* 电脑上更多内边距 */
    border-bottom: 1px solid var(--wechat-border);
    margin-bottom: 2.5rem;
    grid-column: 1 / -1;  /* 跨两列 */
}

.blog-header h1 {
    font-size: 2.2rem;    /* 电脑上更大 */
    font-weight: 500;
    color: var(--ink-black);
    margin-bottom: 0.8rem;
    letter-spacing: 1px;
}

.blog-subtitle {
    font-size: var(--font-size-sm);
    color: var(--wechat-text-secondary);
    margin-top: 0.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* 文章卡片 - 电脑优化 */
.post-card {
    background: var(--wechat-card-bg);
    border-radius: 10px;  /* 电脑上圆角稍大 */
    margin-bottom: 2rem;  /* 电脑上间距更大 */
    overflow: hidden;
    border: 1px solid var(--wechat-border);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: grid;
    grid-template-columns: 300px 1fr;  /* 电脑上图片和文字并排 */
    min-height: 200px;
}

.post-card:hover {
    transform: translateY(-4px);  /* 电脑上悬停效果更明显 */
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

/* 水墨画封面 - 电脑优化 */
.ink-painting-cover {
    background: linear-gradient(135deg, var(--paper-cream), var(--paper-white));
    position: relative;
    overflow: hidden;
    min-height: 200px;
}

.ink-painting-cover::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" opacity="0.05"><path d="M20,20 Q40,10 60,20 T100,20" stroke="%231a1a1a" fill="none" stroke-width="0.5"/><path d="M10,40 Q30,30 50,40 T90,40" stroke="%231a1a1a" fill="none" stroke-width="0.5"/><path d="M30,60 Q50,50 70,60 T100,60" stroke="%231a1a1a" fill="none" stroke-width="0.5"/></svg>');
}

.cover-title {
    position: absolute;
    bottom: 25px;  /* 电脑上位置调整 */
    left: 25px;
    right: 25px;
    color: var(--ink-black);
    font-size: 1.8rem;  /* 电脑上更大 */
    font-weight: 500;
    text-shadow: 1px 1px 3px rgba(255, 255, 255, 0.9);
}

/* 文章内容区域 - 电脑优化 */
.post-content {
    padding: 2rem;  /* 电脑上更多内边距 */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.post-date {
    font-size: var(--font-size-sm);
    color: var(--wechat-muted);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.post-date::before {
    content: '📅';
    margin-right: 8px;
    opacity: 0.7;
}

.post-title {
    font-size: 1.5rem;  /* 电脑上更大 */
    font-weight: 500;
    color: var(--ink-black);
    margin-bottom: 1.2rem;
    line-height: 1.4;
}

.post-title a {
    color: inherit;
    text-decoration: none;
}

.post-title a:hover {
    color: var(--wechat-accent);
}

.post-excerpt {
    color: var(--wechat-text-secondary);
    font-size: var(--font-size-base);
    line-height: var(--line-height);
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

/* 标签 - 电脑优化 */
.ink-tag {
    display: inline-block;
    padding: 6px 14px;  /* 电脑上稍大 */
    background: var(--paper-white);
    border: 1px solid var(--wechat-border);
    border-radius: 15px;  /* 电脑上圆角更大 */
    font-size: 14px;      /* 电脑上稍大 */
    color: var(--ink-gray);
    margin-right: 10px;   /* 电脑上间距更大 */
    margin-bottom: 10px;
    transition: all 0.2s;
}

.ink-tag:hover {
    background: var(--wechat-accent);
    color: white;
    border-color: var(--wechat-accent);
}

/* 侧边栏内容 */
.sidebar-section {
    background: var(--wechat-card-bg);
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid var(--wechat-border);
}

.sidebar-title {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--ink-black);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--wechat-accent);
}

/* 作者信息 - 侧边栏 */
.author-card {
    text-align: center;
}

.author-avatar {
    width: 80px;        /* 电脑上更大 */
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #576b95, #8c7853);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: bold;
    margin: 0 auto 1rem;
}

.author-name {
    font-weight: 500;
    color: var(--ink-black);
    margin-bottom: 0.5rem;
}

.author-desc {
    font-size: var(--font-size-sm);
    color: var(--wechat-text-secondary);
    line-height: 1.6;
}

/* 系列导航 */
.series-list {
    list-style: none;
}

.series-item {
    margin-bottom: 0.8rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid var(--wechat-border);
}

.series-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.series-link {
    color: var(--wechat-text);
    text-decoration: none;
    display: flex;
    align-items: center;
    transition: color 0.2s;
}

.series-link:hover {
    color: var(--wechat-accent);
}

.series-link::before {
    content: '📚';
    margin-right: 8px;
    opacity: 0.7;
}

/* 文章正文 - 电脑优化 */
.article-content {
    font-size: var(--font-size-lg);
    line-height: var(--line-height);
    color: var(--ink-black);
    max-width: var(--article-width);
    margin: 0 auto;
}

.article-content p {
    margin-bottom: var(--paragraph-spacing);
    text-align: justify;
    text-justify: inter-ideograph;
}

.article-content h2 {
    font-size: 1.8rem;      /* 电脑上更大 */
    font-weight: 500;
    margin: 3rem 0 1.5rem;  /* 电脑上间距更大 */
    color: var(--ink-black);
    border-left: 5px solid var(--wechat-accent);  /* 电脑上更粗 */
    padding-left: 15px;
}

.article-content h3 {
    font-size: 1.5rem;      /* 电脑上更大 */
    font-weight: 500;
    margin: 2.5rem 0 1.2rem;
    color: var(--ink-gray);
}

.article-content blockquote {
    border-left: 4px solid var(--wechat-border);
    padding-left: 1.5rem;
    margin: 2rem 0;
    color: var(--wechat-text-secondary);
    font-style: italic;
    background: var(--paper-cream);
    padding: 1.5rem;
    border-radius: 0 8px 8px 0;
    font-size: 1.1rem;
}

.article-content ul, .article-content ol {
    margin: 1.5rem 0 1.5rem 2rem;
}

.article-content li {
    margin-bottom: 0.8rem;
}

/* 分页 - 电脑优化 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 3rem 0;
    gap: 12px;
}

.page-link, .page-current {
    padding: 10px 18px;
    border: 1px solid var(--wechat-border);
    border-radius: 6px;
    text-decoration: none;
    color: var(--wechat-text);
    font-size: var(--font-size-sm);
    transition: all 0.2s;
}

.page-current {
    background: var(--wechat-accent);
    color: white;
    border-color: var(--wechat-accent);
}

.page-link:hover {
    background: var(--wechat-card-bg);
    border-color: var(--wechat-accent);
    color: var(--wechat-accent);
}

/* 页脚 - 电脑优化 */
.blog-footer {
    text-align: center;
    padding: 3rem 0;
    margin-top: 4rem;
    border-top: 1px solid var(--wechat-border);
    color: var(--wechat-text-secondary);
    font-size: var(--font-size-sm);
    grid-column: 1 / -1;
}

.beian-info {
    margin-bottom: 1.5rem;
}

.beian-info a {
    color: var(--wechat-text-secondary);
    text-decoration: none;
    font-size: var(--font-size-base);
}

.beian-info a:hover {
    color: var(--wechat-accent);
    text-decoration: underline;
}

/* 响应式设计 - 移动端适配 */
@media (max-width: 1024px) {
    :root {
        --container-width: 100%;
        --article-width: 100%;
    }
    
    .container {
        grid-template-columns: 1fr;
        padding: 0 20px;
        gap: 30px;
    }
    
    .sidebar {
        display: none;  /* 移动端隐藏侧边栏 */
    }
    
    .post-card {
        grid-template-columns: 1fr;  /* 移动端堆叠布局 */
    }
    
    .ink-painting-cover {
        height: 180px;
    }
    
    .cover-title {
        font-size: 1.5rem;
        bottom: 20px;
        left: 20px;
        right: 20px;
    }
}

@media (max-width: 768px) {
    :root {
        --font-size-base: 16px;
        --font-size-lg: 18px;
        --font-size-sm: 14px;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .blog-header h1 {
        font-size: 1.8rem;
    }
    
    .ink-painting-cover {
        height: 160px;
    }
    
    .cover-title {
        font-size: 1.3rem;
    }
    
    .article-content {
        font-size: var(--font-size-base);
    }
}

/* 动画效果 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.post-card {
    animation: fadeIn 0.6s ease-out;
}

/* 阅读进度指示器 */
.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;  /* 电脑上更粗 */
    background: linear-gradient(90deg, var(--wechat-accent), var(--ink-gray));
    transform-origin: 0%;
    z-index: 1000;
}

/* 暗色模式支持 */
@media (prefers-color-scheme: dark) {
    :root {
        --wechat-bg: #1a1a1a;
        --wechat-text: #e6e6e6;
        --wechat-text-secondary: #b3b3b3;
        --wechat-border: #404040;
        --wechat-accent: #7a95c9;
        --wechat-muted: #808080;
        --wechat-card-bg: #262626;
        
        --ink-black: #e6e6e6;
        --ink-gray: #b3b3b3;
        --ink-light: #808080;
        --paper-white: #2a2a2a;
        --paper-cream: #333333;
    }
    
    .ink-painting-cover {
        background: linear-gradient(135deg, #333333, #2a2a2a);
    }
    
    .ink-painting-cover::before {
        background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" opacity="0.1"><path d="M20,20 Q40,10 60,20 T100,20" stroke="%23e6e6e6" fill="none" stroke-width="0.5"/><path d="M10,40 Q30,30 50,40 T90,40" stroke="%23e6e6e6" fill="none" stroke-width="0.5"/><path d="M30,60 Q50,50 70,60 T100,60" stroke="%23e6e6e6" fill="none" stroke-width="0.5"/></svg>');
    }
}

/* 打印样式 */
@media print {
    .blog-header, .sidebar, .p