/* ========================================
   观海沧澜党史学习博客 - 共用样式表
   说明：全站共用此CSS文件，修改此处即可影响所有页面
   ======================================== */

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

/* ========== 页面主体 ========== */
body {
    /* 系统默认字体栈 */
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
    /* 正文字号 */
    font-size: 16px;
    /* 行距 */
    line-height: 1.8;
    /* 文字颜色 */
    color: #333;
    /* ========== 此处可修改背景图 ========== */
    background: url('../bg.jpg') no-repeat center center fixed;
    background-size: cover;
    /* 最小高度 */
    min-height: 100vh;
}

/* 背景遮罩层，让文字更清晰 */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.85);
    z-index: -1;
}

/* ========== 导航栏 ========== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    z-index: 1000;
}

.nav-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 60px;
}

/* ========== 以下可修改：导航栏博客名称 ========== */
.nav-brand {
    font-size: 1.1rem;
    font-weight: 500;
    color: #333;
    text-decoration: none;
    letter-spacing: 0.05rem;
}

.nav-menu {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-menu a {
    color: #666;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: #333;
}

/* ========== 主内容区 ========== */
.main-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 100px 1.5rem 60px;
}

/* ========== 页面标题区 ========== */
.page-header {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

/* ========== 以下可修改：页面主标题 ========== */
.page-title {
    font-size: 1.8rem;
    font-weight: 500;
    color: #2c2c2c;
    margin-bottom: 0.5rem;
    letter-spacing: 0.1rem;
}

/* ========== 以下可修改：页面副标题 ========== */
.page-subtitle {
    font-size: 0.95rem;
    color: #666;
    font-weight: 400;
}

/* ========== 文章卡片 ========== */
.article-card {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 8px;
    padding: 1.8rem;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.article-card:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.article-card-title {
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: 0.8rem;
}

.article-card-title a {
    color: #333;
    text-decoration: none;
}

.article-card-title a:hover {
    color: #555;
}

.article-card-meta {
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 0.8rem;
}

.article-card-summary {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.7;
}

/* ========== 文章列表 ========== */
.article-list {
    list-style: none;
}

.article-list-item {
    padding: 1.2rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: baseline;
    gap: 1.5rem;
}

.article-list-date {
    font-size: 0.85rem;
    color: #888;
    white-space: nowrap;
    min-width: 85px;
}

.article-list-title {
    font-size: 1rem;
    font-weight: 400;
}

.article-list-title a {
    color: #333;
    text-decoration: none;
}

.article-list-title a:hover {
    color: #555;
    text-decoration: underline;
}

/* ========== 文章正文页 ========== */
.article-header {
    text-align: center;
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.article-title {
    font-size: 1.5rem;
    font-weight: 500;
    color: #2c2c2c;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.article-date {
    font-size: 0.9rem;
    color: #888;
}

.article-body {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 8px;
    padding: 2.5rem;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.article-body p {
    margin-bottom: 1.5rem;
    text-align: justify;
    text-indent: 2em;
}

.article-body p:last-child {
    margin-bottom: 0;
}

.article-footer-note {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    font-size: 0.85rem;
    color: #888;
    text-align: center;
    font-style: italic;
}

/* ========== 关于我页面 ========== */
.about-section {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 8px;
    padding: 2.5rem;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.about-section h2 {
    font-size: 1.2rem;
    font-weight: 500;
    color: #2c2c2c;
    margin: 1.5rem 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.about-section h2:first-child {
    margin-top: 0;
}

.about-section p {
    margin-bottom: 1rem;
    text-align: justify;
    line-height: 1.9;
    text-indent: 2em;
}

.about-closing {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    text-align: center;
    font-size: 1.1rem;
    color: #555;
    font-weight: 500;
    letter-spacing: 0.1rem;
}

/* ========== 页脚 ========== */
.footer {
    text-align: center;
    padding: 2rem 1.5rem;
    margin-top: 3rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

/* ========== 以下可修改：页脚版权文字 ========== */
.footer-text {
    font-size: 0.85rem;
    color: #888;
}

/* ========== 响应式适配 ========== */
@media (max-width: 768px) {
    .nav-container {
        padding: 0 1rem;
    }
    
    .nav-menu {
        gap: 1.2rem;
    }
    
    .main-content {
        padding: 80px 1rem 40px;
    }
    
    .page-title {
        font-size: 1.5rem;
    }
    
    .article-card {
        padding: 1.2rem;
    }
    
    .article-body {
        padding: 1.5rem;
    }
    
    .article-title {
        font-size: 1.3rem;
    }
    
    .about-section {
        padding: 1.5rem;
    }
    
    .article-list-item {
        flex-direction: column;
        gap: 0.3rem;
    }
}

/* ========== 打印样式 ========== */
@media print {
    .navbar {
        display: none;
    }
    
    .main-content {
        padding-top: 2rem;
    }
    
    body::before {
        display: none;
    }
}
