/* 全局重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 极客终端主体 */
body {
    background-color: #0f1316;
    color: #e0e0e0;
    font-family: "JetBrains Mono", "Consolas", "Monaco", "Courier New", monospace;
    font-size: 16px;
    line-height: 1.7;
    padding: 3rem 2rem;
    min-height: 100vh;
}

/* 导航栏 */
.menu {
    margin-bottom: 3rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #1f292e;
}
.menu a {
    color: #00e676;
    text-decoration: none;
    margin-right: 1.8rem;
    transition: color 0.2s;
}
.menu a:hover {
    color: #fff;
}

/* 容器统一 */
.container {
    max-width: 820px;
    margin: 0 auto;
}

/* 页面标题统一 */
.site-header {
    margin-bottom: 2.5rem;
}
.site-title {
    font-size: 24px;
    color: #00e676;
    font-weight: normal;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #1f292e;
}

/* 文章列表样式（首页、标签、分类统一） */
.post-list {
    margin-top: 1rem;
}
.post-item {
    display: flex;
    align-items: center;
    margin-bottom: 0.9rem;
    padding: 0.6rem 0;
    border-bottom: 1px dashed #1b2429;
}
.post-item .date {
    color: #7a8b97;
    width: 110px;
}
.post-item .cat {
    color: #00e676;
    margin: 0 0.7rem;
}
.post-item .title {
    color: #e0e0e0;
    text-decoration: none;
    transition: color 0.2s;
}
.post-item .title:hover {
    color: #00e676;
}

/* 文章页头部 */
.post-head {
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #1f292e;
}
.post-meta {
    margin-bottom: 0.8rem;
    color: #7a8b97;
}
.post-meta .date {
    margin-right: 0.5rem;
}
.post-meta .cat {
    color: #00e676;
    margin: 0 0.3rem;
}
.post-title {
    font-size: 24px;
    color: #fff;
    font-weight: normal;
}

/* 文章内容 & 页面内容统一 */
.post-content,
.page-content {
    color: #d0d8de;
    margin-bottom: 2.5rem;
    line-height: 1.8;
}
.post-content p {
    margin-bottom: 1.2rem;
}
.post-content h2 {
    font-size: 20px;
    color: #00e676;
    margin: 2.2rem 0 1rem;
    padding-bottom: 0.3rem;
    border-bottom: 1px solid #1f292e;
}
.post-content h3 {
    font-size: 18px;
    color: #aed2b9;
    margin: 1.8rem 0 0.8rem;
}

/* 标签展示 */
.post-tags {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #1f292e;
}
.post-tags .tag {
    display: inline-block;
    background-color: #171f24;
    color: #00e676;
    text-decoration: none;
    padding: 0.3rem 0.7rem;
    border-radius: 3px;
    margin-right: 0.6rem;
    transition: background 0.2s;
}
.post-tags .tag:hover {
    background-color: #00e676;
    color: #000;
}

/* 引用块 */
blockquote {
    border-left: 3px solid #00e676;
    padding: 0.8rem 1rem;
    margin: 1.2rem 0;
    background-color: #171f24;
    color: #aed2b9;
}

/* 表格 */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
}
th, td {
    border: 1px solid #1f292e;
    padding: 0.6rem;
    text-align: left;
}
th {
    background-color: #171f24;
    color: #00e676;
}

/* 终端风格代码块 */
code {
    background-color: #171f24;
    color: #00e676;
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
}
pre {
    background-color: #0b0e11;
    color: #e0e0e0;
    padding: 1.2rem;
    border-radius: 4px;
    overflow-x: auto;
    margin: 1.2rem 0;
    border: 1px solid #1f292e;
}
pre code {
    background: none;
    color: inherit;
    padding: 0;
}
.post-content,
.page-content {
    color: #d0d8de;
    margin-bottom: 2.5rem;
    line-height: 1.8;
    word-wrap: break-word; /* 防止长段代码或链接撑破版面 */
}

/* --- 1. 段落与强调文字 --- */
.post-content p {
    margin-bottom: 1.5rem; /* 增大段落间距，让阅读更透气 */
}

.post-content strong,
.post-content b {
    color: #fff; /* 加粗文字用纯白，在暗色背景中脱颖而出 */
    font-weight: bold;
}

/* --- 2. 标题层级 (增加终端提示符效果) --- */
.post-content h1,
.post-content h2,
.post-content h3,
.post-content h4,
.post-content h5,
.post-content h6 {
    font-weight: 600;
    line-height: 1.5;
}

.post-content h2 {
    font-size: 22px;
    color: #00e676;
    margin: 2.8rem 0 1.2rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(0, 230, 118, 0.2); /* 荧光绿的透明下划线 */
}

.post-content h2::before {
    content: "> "; /* 终端箭头 */
    color: #7a8b97;
}

.post-content h3 {
    font-size: 18px;
    color: #aed2b9;
    margin: 2.2rem 0 1rem;
}

.post-content h3::before {
    content: "# "; /* 终端注释符 */
    color: #7a8b97;
}

/* --- 3. 超链接 (增加交互反馈) --- */
.post-content a {
    color: #00e676;
    text-decoration: none;
    border-bottom: 1px dashed rgba(0, 230, 118, 0.5); /* 虚线底部 */
    padding-bottom: 1px;
    transition: all 0.3s ease;
}

.post-content a:hover {
    color: #fff;
    border-bottom-color: #fff;
    background-color: rgba(0, 230, 118, 0.15); /* 鼠标悬浮时带点荧光背景 */
}

/* --- 4. 列表优化 (极客风方块) --- */
.post-content ul,
.post-content ol {
    margin: 1rem 0 1.5rem 2rem;
    padding: 0;
}

.post-content li {
    margin-bottom: 0.5rem;
}

.post-content ul {
    list-style-type: square; /* 终端风格更适合方形符号 */
    color: #00e676; /* 让列表符号变成荧光绿 */
}

.post-content ul li {
    color: #d0d8de; /* 保证文字颜色正常 */
}

/* --- 5. 图片自适应 --- */
.post-content img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 1.8rem auto;
    border-radius: 4px;
    border: 1px solid #1f292e;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4); /* 暗黑模式下的深度阴影 */
}

/* --- 6. 分割线 --- */
.post-content hr {
    border: none;
    border-top: 1px dashed #1f292e;
    margin: 2.5rem 0;
}

/* --- 7. 引用块 --- */
.post-content blockquote {
    border-left: 3px solid #00e676;
    padding: 1rem 1.2rem;
    margin: 1.5rem 0;
    background-color: #12181c; /* 比背景稍微亮一点点 */
    color: #aed2b9;
    border-radius: 0 4px 4px 0;
}

.post-content blockquote p:last-child {
    margin-bottom: 0; /* 防止底部留白过多 */
}

/* --- 8. 表格优化 (斑马线与悬浮) --- */
.post-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: 15px;
    display: block;
    overflow-x: auto; /* 防止表格过宽撑破页面 */
}

.post-content th,
.post-content td {
    border: 1px solid #1f292e;
    padding: 0.8rem;
    text-align: left;
}

.post-content th {
    background-color: #171f24;
    color: #00e676;
    white-space: nowrap;
}

.post-content tr:nth-child(even) {
    background-color: rgba(255, 255, 255, 0.02); /* 淡淡的斑马线 */
}

.post-content tr:hover {
    background-color: rgba(0, 230, 118, 0.05); /* 悬浮行微微发绿 */
}

/* --- 9. 代码块优化 --- */
.post-content code {
    background-color: #171f24;
    color: #00e676;
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
    font-size: 0.9em;
}

.post-content pre {
    background-color: #0b0e11;
    color: #e0e0e0;
    padding: 1.2rem;
    border-radius: 6px;
    overflow-x: auto;
    margin: 1.5rem 0;
    border: 1px solid #1f292e;
}

.post-content pre code {
    background: none;
    color: inherit;
    padding: 0;
    font-size: 0.95em;
}

/* 代码块炫酷滚动条 */
.post-content pre::-webkit-scrollbar {
    height: 6px;
}
.post-content pre::-webkit-scrollbar-track {
    background: #0b0e11;
}
.post-content pre::-webkit-scrollbar-thumb {
    background: #1f292e;
    border-radius: 3px;
}
.post-content pre::-webkit-scrollbar-thumb:hover {
    background: #00e676; /* 滚动条悬浮变绿 */
}