/* css/style.css - 纯系统字体 · 黑客帝国风格点缀 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}



body {
    
    color: #1e1e1e;                   /* 深灰文字，高对比 */
    font-family: sans-serif;           /* 默认无衬线字体 */
    font-weight: 300;
    font-size: 1rem;
    line-height: 1.5;
    position: relative;
    min-height: 100vh;
}

/* 黑客帝国风格背景：极淡的矩阵字符雨效果 (纯装饰) */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        repeating-linear-gradient(0deg, 
            rgba(0, 180, 0, 0.02) 0px, 
            rgba(0, 180, 0, 0.02) 2px, 
            transparent 2px, 
            transparent 8px),
        repeating-linear-gradient(90deg, 
            rgba(0, 180, 0, 0.02) 0px, 
            rgba(0, 180, 0, 0.02) 2px, 
            transparent 2px, 
            transparent 8px);
    background-size: 30px 30px;
    pointer-events: none;              /* 不干扰点击 */
    z-index: 0;
}
.style_body_gailvshuo{
     background-color: #eaf0f9;        /* 纯白基底 */
}
.style_body_qishilu{
     background-color: #e9ebdd;        /* 纯白基底 */
}
.style_body_lunhuimeng{
     background-color: #f1e6f3;        /* 纯白基底 */
}
.style_body_zairenjian{
     background-color: #f1eeee;        /* 纯白基底 */
}
.style_body_tongyong{
     background-color: #fff;        /* 纯白基底 */
}
/* 让所有主要内容位于背景之上 */
.container, .site-header, .site-footer {
    position: relative;
    z-index: 1;
}

.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3, .logo-text, .main-nav a, .widget h3, .post-title {
    font-family: serif;                /* 标题使用默认衬线字体 */
    font-weight: 600;
    letter-spacing: 0.02em;
    color: #1e1e1e;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.4rem; }

a {
    color: #0b5e0b;                    /* 深绿色，黑客帝国风格 */
    text-decoration: none;
    transition: color 0.2s;
}
a:hover {
    color: #00a000;                    /* 更亮的绿 */
    border-bottom: 1px solid #00a000;
}

/* 头部 - 浅色半透明 */
.site-header {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #d0d0d0;
    padding: 8px 0;
    position: sticky;
    top: 0;
    z-index: 10;
}

.header-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 8px;
}
.logo-icon {
    width: auto;
    height: 56px;
}
.logo-text {
    font-size: 1.5rem;
    font-weight: 400;
    color: #0b5e0b;                    /* 深绿 */
    letter-spacing: 2px;
    font-family: serif;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 28px;
}
.main-nav a {
    font-size: 0.95rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 5px 0;
    border-bottom: 1px solid transparent;
    color: #2d2d2d;                    /* 深灰 */
    font-family: sans-serif;
}
.main-nav a:hover, .main-nav a.active {
    border-bottom-color: #0b5e0b;
    color: #0b5e0b;
}

/* 英雄区 */
.hero {
    padding: 40px 0 30px;
    text-align: center;
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 30px;
    background: rgba(255, 255, 255, 0.7);
}
.hero-title {
    font-size: 2.8rem;
    margin-bottom: 8px;
    color: #1e1e1e;
    text-shadow: none;
}
.hero-sub {
    font-size: 1.2rem;
    color: #4d4d4d;
    font-weight: 300;
    letter-spacing: 1.5px;
    font-family: sans-serif;
}

/* 主网格 */
.main-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    align-items: start;
}

/* 文章卡片 */
.posts-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
}
.post-card {
    display: flex;
    gap: 20px;
    background: transparent;
    border: none;
    border-bottom: 1px solid #cdcbcb;
    padding-bottom: 20px;
}
.post-card:last-child {
    border-bottom: none;
}

.card-img {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.card-img img {
    width: 100%;
    height: 100%;
    opacity: 0.7;
    filter: brightness(0.7) sepia(1) hue-rotate(50deg) saturate(3); /* 统一绿色调 */
    transition: opacity 0.2s;
}
.post-card:hover .card-img img {
    opacity: 1;
}

.card-content {
    flex: 1;
}
.card-content h3 {
    margin-bottom: 5px;
}
.card-content h3 a {
    color: #1e1e1e;
}
.card-content h3 a:hover {
    color: #0b5e0b;
}
.meta {
    display: flex;
    gap: 18px;
    font-size: 0.85rem;
    color: #6d6d6d;
    margin-bottom: 8px;
    font-family: sans-serif;
}
.excerpt {
    color: #3d3d3d;
    margin-bottom: 12px;
    line-height: 1.4;
    font-family: sans-serif;
}
.read-more {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 400;
    border-left: 2px solid #0b5e0b;
    padding-left: 10px;
    color: #0b5e0b;
    font-family: sans-serif;
}

/* 分页 */
.pagination {
    display: flex;
    gap: 6px;
    margin: 35px 0 15px;
    justify-content: center;
}
#pages li{
    display: inline-block;
    padding: 6px 14px;
    margin: 5px;
    background: transparent;
    border: 1px solid #b0b0b0;
    color: #0b5e0b;
    font-size: 0.9rem;
    transition: all 0.2s;
    font-family: sans-serif;
}
#pages li:hover,{
    background: #f0f0f0;
    border-color: #0b5e0b;
    color: #0b5e0b;
}
#pages li.active {
    background: #0b5e0b;
    border-color: #0b5e0b;
    color: #ffffff;
    font-weight: 600;
}


/* 侧边栏 */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 25px;
}
.widget {
    background: transparent;
    border: none;
    border-top: 1px solid #e0e0e0;
    padding: 15px 0 0;
}
.widget h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: #1e1e1e;
    font-weight: 400;
    letter-spacing: 1.5px;
}
.category-list, .star-list {
    list-style: none;
}
.category-list li, .star-list li {
    margin-bottom: 10px;
    border-left: 2px solid #0b5e0b;        /* 绿色点缀 */
    padding-left: 12px;
    font-size: 1rem;
    transition: 0.2s;
    font-family: sans-serif;
}
.category-list li:hover, .star-list li:hover {
    border-left-color: #00a000;
}
.category-list a, .star-list a {
    color: #1e1e1e;
}
.widget p {
    color: #3d3d3d;
    line-height: 1.5;
    margin-bottom: 8px;
    font-family: sans-serif;
}

/* 页脚 */
.site-footer {
    background: #f5f5f5;
    border-top: 1px solid #e0e0e0;
    margin-top: 220px;
    padding: 25px 0;
    text-align: center;
    color: #5d5d5d;
    font-size: 0.9rem;
    font-family: sans-serif;
}
.footer-small {
    font-size: 0.75rem;
    opacity: 0.7;
}

/* 内容页 */
.post-full {
    background: transparent;
    border: none;
    padding: 20px 0;
}
.post-header {
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 15px;
    margin-bottom: 25px;
}
.post-title {
    font-size: 2.5rem;
    margin-bottom: 8px;
}
.post-meta {
    color: #6d6d6d;
    font-size: 0.95rem;
    display: flex;
    gap: 20px;
    font-family: sans-serif;
}
.post-featured-image {
    margin: 20px 0 5px;
    display: flex;
    gap: 15px;
    opacity: 0.8;
}
.post-featured-image img {
    filter: brightness(0.7) sepia(1) hue-rotate(50deg) saturate(3);
}
.post-content {
    font-size: 1.1rem;
}
.post-content h2 {
    margin: 35px 0 15px;
    font-size: 1.9rem;
    border-left: 4px solid #0b5e0b;
    padding-left: 20px;
}
.post-content p {
    margin-bottom: 18px;
    font-family: sans-serif;
}
.dropcap:first-letter {
    font-size: 3.5rem;
    float: left;
    line-height: 0.8;
    margin-right: 10px;
    color: #0b5e0b;
    font-weight: 600;
    font-family: serif;
}
blockquote {
    background: #f5f5f5;
    border-left: 4px solid #0b5e0b;
    padding: 15px 25px;
    margin: 25px 0;
    font-style: italic;
    color: #1e1e1e;
    font-family: sans-serif;
}
.post-footer {
    margin-top: 35px;
    border-top: 1px solid #e0e0e0;
    padding-top: 20px;
}
.post-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}
.tag {
    background: transparent;
    border: 1px solid #b0b0b0;
    padding: 3px 14px;
    font-size: 0.8rem;
    color: #0b5e0b;
    font-family: sans-serif;
}
.post-pagination {
    display: flex;
    justify-content: space-between;
}
.prev-post, .next-post {
    background: transparent;
    border: 1px solid #b0b0b0;
    padding: 6px 20px;
    font-size: 0.9rem;
    color: #0b5e0b;
    font-family: sans-serif;
}
.related-posts {
    background: transparent;
    border: none;
    border-top: 1px solid #e0e0e0;
    padding: 20px 0;
    margin: 15px 0;
}
.related-grid {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 10px;
}
.related-grid a {
    border-left: 2px solid #0b5e0b;
    padding-left: 12px;
    color: #1e1e1e;
    font-family: sans-serif;
}

/* 响应式 */
@media (max-width: 800px) {
    .main-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .header-flex {
        flex-direction: column;
        gap: 10px;
    }
    .post-card {
        flex-direction: column;
        gap: 10px;
    }
}
@media (max-width: 500px) {
    .main-nav ul {
        gap: 15px;
    }
}