/* --- 全局和基础样式 (与首页同步) --- */
:root {
    --bg-color: #121212;
    --text-color: #e0e0e0;
}

body {
    background-color: var(--bg-color);
    margin: 0;
    font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--text-color);
    padding: 20px;
    box-sizing: border-box;
}

/* --- 详情页主容器 --- */
.detail-container {
    width: 100%;
    max-width: 900px; /* 设定文章内容的最大宽度 */
    margin: 80px auto 40px auto; /* 顶部留出更多空间给返回按钮 */
    text-align: left; /* 内容左对齐 */
}

/* --- 文章标题样式 --- */
#post-title-display {
    font-family: "Yusei Magic", sans-serif;
    font-size: 2.8em;
    font-weight: 400;
    color: #fff;
    text-align: center;
    margin-bottom: 40px;
    line-height: 1.4;
}

/* --- 文章内容样式 --- */
#post-content-display {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-color);
}

/* 确保内容中的图片能正常显示 */
#post-content-display img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
    display: block;
}

/* --- 返回链接 --- */
.back-home-link {
    font-size: 1.1rem;
    text-decoration: none;
    color: var(--subtle-text-color);
    padding: 10px 20px;
    border-radius: 25px;
    transition: all 0.3s ease;
    position: fixed;
    top: 30px;
    left: 30px;
    background-color: rgba(26, 26, 26, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 10;
}

.back-home-link:hover {
    color: #fff;
    background-color: rgba(40, 40, 40, 0.7);
}

#admin-controls {
    position: fixed;
    top: 30px;
    right: 30px;
    z-index: 20;
    display: flex;
    gap: 15px;
}

#admin-controls button {
    font-size: 1rem;
    font-weight: bold;
    padding: 10px 20px;
    border-radius: 25px;
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: all 0.3s ease;
}

#edit-btn {
    background-color: rgba(92, 175, 255, 0.2);
    color: #5cafff;
}
#edit-btn:hover { background-color: rgba(92, 175, 255, 0.4); }

#delete-btn {
    background-color: rgba(255, 92, 92, 0.2);
    color: #ff5c5c;
}
#delete-btn:hover { background-color: rgba(255, 92, 92, 0.4); }

/* 移动端优化 */

@media (max-width: 768px) {
    #post-title-display {
        font-size: 2em;
    }
    .back-home-link {
        top: 15px;
        left: 15px;
        font-size: 0.9rem;
        padding: 8px 16px;
    }
    .detail-container {
        width: 95%;
    }
	#admin-controls {
        top: auto;
        bottom: 20px;
        right: 20px;
        left: auto;
    }
}

/* --- 修复：强制文章内容继承页面的浅色文字 --- */
#post-content-display * {
    color: inherit !important;
}