

/* 容器 */
.post-content-container {
    width: 90%;
    max-width: 800px;
    margin: 40px auto;
    padding: 20px;
    background-color: rgba(51, 51, 51, 1); /* 与 index.css 主题颜色保持一致 */
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    color: #CCCCCC;
}

.post-detail {
    margin-bottom: 30px;
}

.post-title {
    color: #CCCCCC;
    font-size: 28px;
    margin-bottom: 10px;
    border-bottom: 2px solid #999999;
    padding-bottom: 10px;
}

.post-time {
    font-size: 14px;
    color: #999999;
    margin-bottom: 20px;
}

.post-body {
    font-size: 16px;
    line-height: 1.6;
    color: #CCCCCC;
}

.post-body p {
    margin-bottom: 1em;
}

/* 代码块区域 */
.post-body pre {
    background-color: #2d2d2d;  /* 深色背景 */
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
    margin-bottom: 1.5em;
    position: relative;         /* 为复制按钮、行号等插件提供定位 */
}

/* 代码文字样式 */
.post-body code {
    font-family: 'Courier New', Courier, monospace;
    font-size: 14px;
    color: #f8f8f2; /* 代码文字颜色 */
}

.pre .prismjs-copy-button:hover,
pre .prismjs-copy-button:hover {
    background: #666666;
    opacity: 1;
}

/* 自定义滚动 */
.post-body pre::-webkit-scrollbar {
    height: 10px;
    background: #3d3d3d;
    border-radius: 4px;
}

.post-body pre::-webkit-scrollbar-thumb {
    background: #666666;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.post-body pre::-webkit-scrollbar-thumb:hover {
    background: #888888;
}

/* 行号插件 */
.post-body pre.line-numbers {
    padding-left: 3em; /* 给行号留出空间 */
}

/* 文章底部区域 */
.post-footer {
    border-top: 1px solid #ddd;
    padding-top: 10px;
    font-size: 14px;
    color: #999999;
}

.copy-to-clipboard-button {
    right: 10px;
    padding: 5px 10px;
    background: #272822;  /* 深灰色背景 */
    color: white;      /* 白色文字 */
    border: none;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    opacity: 0.9;
    transition: background 0.2s ease, opacity 0.2s ease;
}

.toolbar-item{
    right: 10px;
    padding: 5px 10px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .post-content-container {
        width: 95%;
        padding: 15px;
    }

    .post-title {
        font-size: 24px;
    }

    .post-time {
        font-size: 12px;
    }

    .post-body {
        font-size: 14px;
    }

    /* 如果使用 line-numbers 插件，需要微调左侧 padding */
    .post-body pre.line-numbers {
        padding-left: 3.5em;
    }

    .post-footer {
        font-size: 12px;
    }
}
