/* blog-style.css — 专用于 blog.php，与 index.php 视觉风格统一 */
/* ==================== 全局重置 & 基础 ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
    background: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI4MCIgaGVpZ2h0PSI4MCIgdmlld0JveD0iMCAwIDgwIDgwIj48cmVjdCB3aWR0aD0iODAiIGhlaWdodD0iODAiIGZpbGw9IiNlNWU5ZWYiLz48cGF0aCBkPSJNMzAgMjBoMTB2MTBIMzB6TTUwIDIwaDEwdjEwSDUwek0zMCA0MGgxMHYxMEgzMHpNNTAgNDBoMTB2MTBINTB6TTQwIDMwaDEwdjEwSDQweiIgZmlsbD0iI2NmZDhkZSIvPjwvc3ZnPg==') repeat;
    background-size: 60px 60px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 20px;
}

/* ==================== 主容器 ==================== */
.container {
    max-width: 800px;
    width: 100%;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(8px);
    padding: 25px 28px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    transition: all 0.2s ease;
}

/* ==================== 标题 ==================== */
h1 {
    margin-top: 0;
    margin-bottom: 4px;
    color: #1a1a2e;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 26px;
}

h1 .subtitle {
    font-size: 14px;
    font-weight: 400;
    color: #888;
}

/* ==================== 自定义卡片内联样式 ==================== */
.bio-text {
    background-color: #f8fafc;
    border-radius: 24px;
    padding: 22px 26px;
    margin-bottom: 32px;
    border: 1px solid #e9edf2;
    line-height: 1.55;
    color: #1e293b;
    font-size: 1rem;
}

.bio-text p {
    margin-bottom: 0;
}

.inline-link {
    color: #2c5a7a;
    font-weight: 500;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
}

.inline-link:hover {
    color: #1a3e57;
}

/* ==================== 错误提示 ==================== */
.error {
    background: #ffe3e3;
    color: #b00020;
    padding: 10px 16px;
    border-radius: 6px;
    margin-bottom: 15px;
    border-left: 4px solid #b00020;
}

/* ==================== 帖子详情 ==================== */
.post-detail {
    margin-bottom: 24px;
}

.post-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 8px;
}

.post-meta {
    color: #888;
    font-size: 13px;
    margin-bottom: 16px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
}

.meta-separator {
    color: #bbb;
    margin: 0 2px;
}

.tag {
    display: inline-block;
    background: #eef2f8;
    color: #4a5c6c;
    padding: 2px 10px;
    border-radius: 14px;
    font-size: 12px;
    margin: 0 2px;
}

.post-content {
    font-size: 15px;
    line-height: 1.7;
    word-wrap: break-word;
    color: #1e293b;
}

.post-content img {
    max-width: 100%;
    border-radius: 8px;
    margin: 12px 0;
}

/* ==================== 附件区域 ==================== */
.post-attachments {
    margin-top: 20px;
    padding: 16px;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e9edf2;
}

.post-attachments h4 {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.attach-item {
    display: block;
    padding: 8px 12px;
    margin: 6px 0;
    background: #fff;
    border-radius: 8px;
    text-decoration: none;
    color: #2c5a7a;
    font-size: 14px;
    border: 1px solid #e1e8f0;
    transition: all 0.2s;
}

.attach-item:hover {
    background: #f0f4f8;
    border-color: #b0c4d8;
    text-decoration: none;
}

/* ==================== 帖子列表 ==================== */
.post-list {
    margin-bottom: 24px;
}

.post-item {
    border: 1px solid #e1e4e8;
    padding: 15px 18px;
    margin: 18px 0;
    border-radius: 8px;
    background: #fafbfc;
    transition: box-shadow 0.2s;
}

.post-item:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.post-item-title {
    margin-bottom: 6px;
}

.post-link {
    font-weight: 700;
    color: #0366d6;
    text-decoration: none;
    font-size: 1.05rem;
}

.post-link:hover {
    text-decoration: underline;
    color: #0250a3;
}

.post-excerpt {
    font-size: 14px;
    color: #555;
    margin: 8px 0 10px 0;
    line-height: 1.6;
}

.read-more-link {
    display: inline-block;
    color: #2c5a7a;
    font-weight: 500;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

.read-more-link:hover {
    color: #1a3e57;
    text-decoration: underline;
}

/* ==================== 空状态 ==================== */
.empty {
    color: #999;
    text-align: center;
    padding: 30px 0;
}

/* ==================== 分页 ==================== */
.pagination {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
    margin: 24px 0;
}

.page-btn {
    padding: 6px 14px;
    border: 1px solid #d0d7de;
    border-radius: 20px;
    background: #fff;
    color: #333;
    text-decoration: none;
    font-size: 13px;
    transition: all 0.2s;
}

.page-btn:hover:not(.active) {
    background: #f0f2f4;
    border-color: #b0b8c0;
}

.page-btn.active {
    background: #0366d6;
    color: #fff;
    border-color: #0366d6;
}

/* ==================== 分割线 ==================== */
.hr {
    border: none;
    border-top: 2px solid #eaeef2;
    margin: 25px 0;
}

/* ==================== 底部信息 ==================== */
.footnote {
    font-size: 0.7rem;
    text-align: center;
    color: #7f8c9a;
    background: #f9fafc;
    padding: 16px 20px;
    border-top: 1px solid #eef2f8;
    border-radius: 12px;
}

/* ==================== 响应式 ==================== */
@media (max-width: 640px) {
    body {
        padding: 16px;
    }
    .container {
        padding: 16px 14px;
        border-radius: 8px;
    }
    h1 {
        font-size: 20px;
    }
    .bio-text {
        padding: 18px 20px;
        font-size: 0.95rem;
    }
    .post-item {
        padding: 12px 14px;
    }
}