/* 页面背景 */
.post-page {
    background: #f6eaea url('../img/bg.png') repeat;
    padding-bottom: 50px;
}

/* ===== 顶部封面 ===== */
.post-hero {
    height: 400px;
    background-size: cover;
    background-position: center;
    position: relative;
    z-index: 1;
    cursor: pointer; /* 悬浮时鼠标变成放大镜，提示可点击 */
    transition: all 0.2s ease;
}

.post-hero:hover {
    opacity: 0.95; /* 悬浮轻微透明，增强交互感 */
}

.post-hero-mask {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.8) 0%,
        rgba(0, 0, 0, 0.5) 25%,
        rgba(0, 0, 0, 0.5) 50%,
        rgba(0, 0, 0, 0.5) 75%,
        rgba(0, 0, 0, 0.8) 100%
    );
}

.post-hero-content {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    width: 800px;
}

.post-hero h1 {
    font-size: 40px;
    font-weight: normal;
    margin-bottom: 10px;
    margin-left: 50px;
}

.post-hero-divider {
    width: 100%;
    height: 1px;
    margin-bottom: 10px;
    margin-left: 50px;

    background: linear-gradient(
        to right,
        rgba(0,0,0,0.5) 0%,
        rgba(0,0,0,0.25) 25%,
        rgba(0,0,0,0) 80%
    );
}

/* ===== 封面预览模态框 ===== */
.cover-modal {
    display: none; /* 默认隐藏 */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9); /* 黑色半透明背景 */
    z-index: 9999; /* 最高层级 */
    align-items: center;
    justify-content: center;
}

/* 模态框图片：自适应屏幕，显示完整尺寸 */
.modal-content {
    max-width: 90%; /* 最大宽度占屏幕90% */
    max-height: 90%; /* 最大高度占屏幕90% */
    object-fit: contain; /* 完整显示图片，不裁剪 */
}

/* 关闭按钮 */
.modal-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.modal-close:hover {
    color: #ccc;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .post-hero {
        height: 300px; /* 移动端适当缩小封面高度 */
    }
    .modal-close {
        font-size: 30px;
        top: 15px;
        right: 25px;
    }
}

/* .post-meta {
    font-size: 14px;
    color: #C5A7A1;
    margin-left: 50px;
} */

/* ===== 内容区域 ===== */
.post-container {
    width: 800px;
    margin: -60px auto 0;
    position: relative;
    z-index: 3;
}

/* 卡片通用 */
.post-card {
    background: #fff;
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 30px;

    box-shadow: 0 15px 40px rgba(0,0,0,0.12);
}

/* 文章内容 */
.post-content {
    line-height: 1.8;
    font-size: 15px;
    color: #444;
}

.post-content p {
    margin-bottom: 16px;
}

.post-content img {
    max-width: 100%;
    border-radius: 10px;
}

/* 评论卡片 */
.comment-card h2 {
    text-align: center;
    margin-bottom: 20px;
    color: #555;
}