/* * Minecraft Style CMS / Blog Theme 
 * Optimized for Consistency and Pixel Perfection
 */

:root {
    /* 核心色板 */
    --mc-bg-dirt: #4d331d url('https://www.minecraft.net/etc.clientlibs/minecraft/clientlibs/main/resources/img/background/dirt.png') repeat;
    --mc-gui-bg: #c6c6c6;           /* 菜单灰色 */
    --mc-btn-bg: #a9a9a9;           /* 按钮默认 */
    --mc-btn-hover: #7c7c7c;        /* 按钮悬停 */
    --mc-btn-active: #5a5a5a;       /* 按钮按下 */
    --mc-shadow-dark: #5a5a5a;      /* 像素阴影-暗 */
    --mc-shadow-light: #ffffff;     /* 像素阴影-亮 */
    --mc-text-dark: #373737;        /* UI 文字色 */
    --mc-green: #55ff55;            /* 成功/高亮绿 */
    --mc-yellow: #ffffa0;           /* 选中黄色 */
    --mc-red: #aa0000;              /* 危险红 */
    --mc-red-hover: #ff5555;        /* 危险红提亮 */
}

/* --- 全局初始化 --- */
body {
    background: var(--mc-bg-dirt);
    background-size: 64px;
    image-rendering: pixelated;
    font-family: "Minecraft", "Courier New", Courier, monospace;
    color: #fff;
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

/* --- 像素 UI 面板 --- */
.mc-panel {
    background: var(--mc-gui-bg);
    border: 4px solid #000;
    box-shadow: inset -4px -4px var(--mc-shadow-dark), 
                inset 4px 4px var(--mc-shadow-light);
    max-width: 800px;
    margin: 50px auto;
    padding: 30px;
    color: var(--mc-text-dark);
    position: relative;
}

/* --- 文章标题 --- */
.post-title a {
    color: #ffffff;
    text-shadow: 2px 2px #3f3f3f;
    text-decoration: none;
    font-size: 24px;
    transition: color 0.1s;
}
.post-title a:hover {
    color: var(--mc-green);
}

/* --- 统一按钮逻辑 (包含分页、普通按钮、导航) --- */
.mc-btn, 
.page-navigator li a, 
.page-navigator li span,
.pagination a, 
.pagination span {
    display: inline-block;
    background: var(--mc-btn-bg);
    border: 3px solid #000;
    box-shadow: inset -3px -3px var(--mc-shadow-dark), 
                inset 3px 3px var(--mc-shadow-light);
    padding: 10px 20px;
    color: #fff;
    text-shadow: 1px 1px #3f3f3f;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    font-family: inherit;
    image-rendering: pixelated;
    box-sizing: border-box;
    transition: all 0.1s;
}

/* 悬停状态：边框变白，背景提亮 */
.mc-btn:hover, 
.page-navigator li a:hover, 
.pagination a:hover {
    background-color: var(--mc-btn-hover);
    border-color: #ffffff;
    color: #ffffff;
    box-shadow: inset -3px -3px var(--mc-shadow-dark), 
                inset 3px 3px var(--mc-shadow-light);
}

/* 激活/按下状态：模拟凹陷位移 */
.mc-btn:active, 
.page-navigator li a:active,
.pagination a:active {
    background-color: var(--mc-btn-active);
    box-shadow: inset 3px 3px var(--mc-shadow-dark), 
                inset -3px -3px var(--mc-shadow-light);
    transform: translateY(2px);
}

/* 当前选中页：黄色文字 + 持续按下感 */
.page-navigator li.current a,
.page-navigator li.current span,
.pagination .current {
    background-color: var(--mc-btn-active);
    color: var(--mc-yellow);
    box-shadow: inset 3px 3px #1e1e1e, 
                inset -3px -3px var(--mc-shadow-dark);
    border-color: #000;
    cursor: default;
    transform: none;
}

/* 危险按钮（如退出） */
.mc-btn-danger { background: var(--mc-red); }
.mc-btn-danger:hover { background: var(--mc-red-hover); border-color: #fff; }

/* --- 输入框样式 --- */
.mc-input {
    background: #000;
    border: 2px solid var(--mc-shadow-dark);
    color: #fff;
    padding: 8px 12px;
    margin-bottom: 10px;
    outline: none;
    font-family: inherit;
    box-shadow: inset 2px 2px #222;
}
.mc-input:focus {
    border-color: var(--mc-green);
}

/* --- 容器布局与分页容器 --- */
.page-navigator, .pagination {
    list-style: none;
    padding: 20px 0;
    margin: 0;
    display: flex;
    justify-content: center;
    gap: 8px; /* 按钮间距 */
    flex-wrap: wrap;
}

.page-navigator li {
    display: inline-block;
    margin: 0;
}

/* --- 媒体资源适配 --- */
.post-content img, .page-content img, .comment-content img,
.post-content video, .post-content iframe {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 20px auto;
    border: 2px solid #000; /* 给媒体资源加个像素边框 */
    image-rendering: pixelated;
}

/* --- 响应式增强 --- */
@media (max-width: 600px) {
    .mc-panel {
        margin: 10px;
        padding: 15px;
    }
    .mc-btn, .page-navigator li a {
        padding: 8px 12px;
        font-size: 14px;
    }
    .post-title a {
        font-size: 20px;
    }
}