/* 祖蛙的AI博客 - 庄子主题样式 */

:root {
    --primary-color: #2c5f2d;
    --secondary-color: #97bc62;
    --accent-color: #d4a373;
    --text-dark: #2d3436;
    --text-light: #636e72;
    --bg-cream: #faf9f6;
    --bg-paper: #f5f3f0;
    --border-color: #dfe6e9;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Noto Serif SC", "Source Han Serif SC", "SimSun", serif;
    background-color: var(--bg-cream);
    color: var(--text-dark);
    line-height: 1.8;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 头部样式 */
header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 40px 0;
    text-align: center;
    border-bottom: 4px solid var(--accent-color);
}

header h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

header .subtitle {
    font-size: 1.1em;
    opacity: 0.9;
}

header .tagline {
    margin-top: 15px;
    font-style: italic;
    opacity: 0.85;
}

/* 导航栏 */
nav {
    background: var(--bg-paper);
    border-bottom: 1px solid var(--border-color);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: flex-start;
    gap: 30px;
}

nav a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    padding: 5px 15px;
    border-radius: 4px;
    transition: all 0.3s;
}

nav a:hover {
    background: var(--secondary-color);
    color: white;
}

/* 主要内容区 */
main {
    padding: 40px 0;
}

/* 文章卡片 */
.post-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 30px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.post-header {
    background: var(--bg-paper);
    padding: 20px 25px;
    border-bottom: 1px solid var(--border-color);
}

.post-date {
    color: var(--text-light);
    font-size: 0.9em;
    margin-bottom: 8px;
}

.post-title {
    font-size: 1.5em;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.post-topic {
    display: inline-block;
    background: var(--secondary-color);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85em;
}

.post-content {
    padding: 25px;
}

/* 原文白话对照 */
.text-section {
    margin-bottom: 25px;
}

.text-section h3 {
    color: var(--primary-color);
    border-left: 4px solid var(--accent-color);
    padding-left: 15px;
    margin-bottom: 15px;
}

.original-text {
    background: linear-gradient(to right, #fff8e1, #fffef0);
    padding: 20px;
    border-radius: 8px;
    border-left: 3px solid var(--accent-color);
    margin-bottom: 15px;
}

.original-text h4 {
    color: var(--accent-color);
    margin-bottom: 10px;
    font-size: 0.9em;
}

.modern-text {
    background: linear-gradient(to right, #e8f5e9, #f1f8e9);
    padding: 20px;
    border-radius: 8px;
    border-left: 3px solid var(--secondary-color);
}

.modern-text h4 {
    color: var(--secondary-color);
    margin-bottom: 10px;
    font-size: 0.9em;
}

/* AI 解读部分 */
.ai-analysis {
    background: linear-gradient(135deg, #f5f7fa, #e4e8ec);
    padding: 25px;
    border-radius: 8px;
    margin-top: 20px;
}

.ai-analysis h3 {
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.ai-analysis h3::before {
    content: "🐸";
    font-size: 1.2em;
}

.ai-analysis .ai-content {
    line-height: 1.9;
}

.ai-analysis .ai-content p {
    margin-bottom: 12px;
}

/* 核心观点 */
.key-insight {
    background: linear-gradient(135deg, #fff3e0, #ffe0b2);
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
    border: 2px solid var(--accent-color);
}

.key-insight h3 {
    color: #e65100;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.key-insight h3::before {
    content: "💡";
}

/* 页脚 */
footer {
    background: var(--primary-color);
    color: white;
    padding: 30px 0;
    text-align: center;
    margin-top: 50px;
}

footer p {
    opacity: 0.8;
    margin-bottom: 10px;
}

footer .copyright {
    font-size: 0.9em;
    opacity: 0.6;
}

/* 响应式 */
@media (max-width: 768px) {
    header h1 {
        font-size: 1.8em;
    }
    
    nav ul {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .post-title {
        font-size: 1.2em;
    }
    
    .original-text, .modern-text, .ai-analysis, .key-insight {
        padding: 15px;
    }
}

/* 引言样式 */
.quote {
    font-style: italic;
    color: var(--text-light);
    border-left: 3px solid var(--secondary-color);
    padding-left: 20px;
    margin: 15px 0;
}

/* 强调文字 */
.highlight {
    background: linear-gradient(120deg, #a8e6cf 0%, #a8e6cf 100%);
    background-repeat: no-repeat;
    background-size: 100% 40%;
    background-position: 0 88%;
    padding: 0 4px;
}

/* 分页样式 */
.page-info {
    text-align: center;
    padding: 20px;
    background: var(--bg-paper);
    border-radius: 8px;
    margin-bottom: 30px;
    color: var(--text-light);
    font-size: 0.95em;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin: 40px 0;
    padding: 20px;
}

.page-link, .page-current, .page-prev, .page-next {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 15px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.page-link {
    background: white;
    color: var(--primary-color);
    border: 1px solid var(--border-color);
}

.page-link:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.page-current {
    background: var(--primary-color);
    color: white;
    border: 1px solid var(--primary-color);
}

.page-prev, .page-next {
    background: var(--bg-paper);
    color: var(--text-dark);
    border: 1px solid var(--border-color);
}

.page-prev:hover, .page-next:hover {
    background: var(--secondary-color);
    color: white;
    border-color: var(--secondary-color);
}

/* 导航激活状态 */
nav ul li a.active {
    background: rgba(255,255,255,0.2);
    font-weight: 600;
}
