/*zyg*/
.article-content ul li{font-size: 1.4rem;margin: 5px 20px;}
h3 { font-size: 1.8rem; font-weight: bold;margin: 20px 0px;}




/* ===== 全局布局 ===== */
.site-main{
    background: #ebebeb;
    padding:10px 0;
}
.article-container {
    display: flex;
    max-width: 1200px;
    margin: 0 auto;
    gap: 20px;
}

.article-main {
    flex: 1;
    width: 70%;
    padding: 30px;
    background: #FFF;
}

.article-sidebar {
    width: 30%;
    padding: 0px 0 0px 0px;
    background: #FFF;
    height: fit-content;
}

@media (max-width: 992px) {
    .article-container {
        flex-direction: column;
        gap: 0;
    }
    
    .article-main,
    .article-sidebar {
        width: 100%;
        padding: 20px 0;
    }
    
    .article-sidebar {
        padding-left: 0;
        border-top: 1px solid #f0f0f0;
    }

    .article-main{
        padding: 20px;
    }
    .site-main{
    padding:0px;
    }
}

/* ===== 面包屑导航 ===== */
.breadcrumb {
    font-size: 1.3rem;
    margin-bottom: 25px;
    color: #666;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.breadcrumb a {
    color: #0073aa;
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumb a:hover {
    color: #005177;
}

.breadcrumb .separator {
    margin: 0 8px;
    color: #999;
}

.breadcrumb span:last-child {
    color: #333;
}

@media (max-width: 992px) {
    .breadcrumb{
        display: none;
    }
}

/* ===== 文章内容 ===== */
.single-article {
    margin-bottom: 50px;
}

.article-header {
    margin-bottom: 30px;
    padding-bottom: 10px;
}

.article-title {
    font-size: 2.5rem;
    line-height: 1.3;
    color: #222;
    margin-bottom: 15px;
}

.article-meta {
    align-items: center;
    gap: 15px;
    font-size: 1.2rem;
    color: #666;
}

/*.post-date::before {
    content: "📅 ";
}*/

.widget-title{
    font-size: 2rem;
    text-align: center;
}

.post-category a {
    color: #0073aa;
    padding: 3px 8px;
    background: #f5f9ff;
    border-radius: 3px;
    text-decoration: none;
}

.post-category a:hover {
    background: #e0edff;
}

.article-content {
    line-height: 1.8;
    font-size: 1.5rem;
    color: #333;
}

.article-content p {
    margin-bottom: 1.8em;
    font-size: 1.4rem;
}

.article-content img {
    max-width: 350px;
    height: auto;
    margin: 0px auto;
    border-radius: 4px;
}

.page-links {
    margin: 30px 0;
}

.page-number {
    padding: 3px 8px;
    margin-right: 5px;
    background: #f5f5f5;
    border-radius: 3px;
}

/* ===== 文章页脚 ===== */
.article-footer {

}

.post-tags {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 1.2rem;
}

.tag-icon {
    margin-right: 5px;
}

.post-tags a {
    padding: 3px 10px;
    background: #f5f5f5;
    border-radius: 3px;
    color: #555;
    text-decoration: none;
    transition: all 0.2s;
}

.post-tags a:hover {
    background: #0073aa;
    color: white;
}

/* ===== 推荐文章 ===== */
.recommended-section {
    margin-top: 60px;
    padding-top: 0px;
}

.section-heading {
    text-align: center;
    margin-bottom: 30px;
    position: relative;
    font-size: 2rem;
    color: #222;
}

.section-heading span {
    padding: 0 15px;
    background: white;
    position: relative;
    z-index: 1;
}

.section-heading:after {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #eee;
    z-index: 0;
}

.recommended-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

.recommended-card {
    border-radius: 6px;
    overflow: hidden;
    transition: transform 0.3s;
}

.recommended-card:hover {
    transform: translateY(-5px);
}

.card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.card-image {
    height: 180px;
    overflow: hidden;
    margin-bottom: 12px;
    border-radius: 4px;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.recommended-card:hover .card-image img {
    transform: scale(1.05);
}

.card-title {
    font-size: 1.4rem;
    line-height: 1;
    margin: 0 8px;
    color: #222;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-weight: normal;
    white-space: nowrap;
}

/* ===== 响应式设计 ===== */
@media (max-width: 768px) {
    .article-title {
        font-size: 1.7rem;
    }
    
    .recommended-grid {
        grid-template-columns: 1fr;
    }
    
    .card-image {
        height: 200px;
    }
}

@media (max-width: 480px) {
    .article-title {
        font-size: 1.5rem;
    }
    
    .article-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .section-heading {
        font-size: 1.3rem;
    }
    
    .card-image {
        height: 160px;
    }
}


/*文章上下页*/
/* 上一篇下一篇导航样式 */
.post-navigation {
    margin: 40px 0;
    padding: 20px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.nav-links {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.nav-previous,
.nav-next {
    flex: 1;
    position: relative;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.nav-previous:hover,
.nav-next:hover {
    background-color: #e9ecef;
    transform: translateY(-2px);
}

.nav-previous a,
.nav-next a {
    text-decoration: none;
    color: #333;
    display: block;
}

.nav-previous::before {
    content: "←";
    margin-right: 8px;
    color: #666;
}

.nav-next::after {
    content: "→";
    margin-left: 8px;
    color: #666;
}

.nav-label {
    display: block;
    font-size: 0.9em;
    color: #666;
    margin-bottom: 5px;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .nav-links {
        flex-direction: column;
    }
    
    .nav-previous,
    .nav-next {
        width: 100%;
        margin-bottom: 10px;
    }
}







/*小工具*/
/*文章列表*/
.wp-block-latest-posts.wp-block-latest-posts__list {
    padding: 20px;
    padding-top: 0px;
}
.category-sidebar li {
    list-style: none;
    margin-bottom: 10px;
}
.category-sidebar h2{padding: 20px;}
.category-sidebar #widget-area li{padding: 10px 0px;}
.category-sidebar #widget-area li a{font-size: 16px;}
.category-sidebar #widget-area ul{padding-inline-start: 20px;}


/*---------------------------------------------------------zyg文章内容CSS*/

/* 标题样式 */
        .article-content h3 {
            font-size: 1.75rem;
            font-weight: bold;
            color: #1F2937;
            margin-top: 2.5rem;
            margin-bottom: 1rem;
            position: relative;
        }
        
        .article-content h3::before {
            content: '';
            position: absolute;
            left: -1rem;
            top: 0.25rem;
            width: 0.375rem;
            height: 2rem;
            background-color: #165DFF;
            border-radius: 0.1875rem;
        }
        
        .article-content h4 {
            font-size: 1.5rem;
            font-weight: 600;
            color: #1F2937;
            margin-top: 1.5rem;
            margin-bottom: 0.75rem;
            position: relative;
        }
        
        .article-content h4::before {
            content: '';
            position: absolute;
            left: -1rem;
            top: 0.25rem;
            width: 0.25rem;
            height: 1.5rem;
            background-color: #4080FF;
            border-radius: 0.125rem;
        }
        
        /* 段落样式 */
        .article-content p {
            margin-bottom: 1.5rem;
/*            font-size: 1rem;*/
            line-height: 1.8;
        }
        
        /* 列表样式 */
        .article-content ul, 
        .article-content ol {
            margin-bottom: 1.5rem;
            padding-left: 1.5rem;
        }
        
        .article-content ul {
            list-style-type: disc;
        }
        
        .article-content ol {
            list-style-type: decimal;
        }
        
        .article-content ul li::marker,
        .article-content ol li::marker {
            color: #165DFF;
        }
        
        .article-content li {
            margin-bottom: 0.5rem;
            line-height: 1.8;
        }
        
        /* 强调文本 */
        .article-content strong {
            font-weight: bold;
            color: #1F2937;
        }
        
        .article-content em {
            color: #4080FF;
        }
        
        .article-content a {
            color: #165DFF;
            text-decoration: underline;
            transition: color 0.2s;
        }
        
        .article-content a:hover {
            color: #FF5722;
        }
        
        /* 引用样式 */
        .article-content blockquote {
            border-left: 0.25rem solid #165DFF;
            padding-left: 1rem;
            margin: 1.5rem 0;
            font-style: italic;
            color: #6B7280;
            background-color: rgba(22, 93, 255, 0.05);
            border-radius: 0 0.375rem 0.375rem 0;
        }
        
        /* 代码样式 */
        .article-content code {
            font-family: monospace;
            background-color: #F3F4F6;
            padding: 0.125rem 0.25rem;
            border-radius: 0.25rem;
            color: #FF5722;
            font-size: 0.9rem;
        }
        
        .article-content pre {
            background-color: #1F2937;
            color: #F9FAFB;
            padding: 1rem;
            border-radius: 0.375rem;
            margin: 1.5rem 0;
            overflow-x: auto;
            border-left: 0.25rem solid #FF5722;
        }
        
        /* 水平线 */
        .article-content hr {
            border: 0;
            border-top: 0.0625rem solid #E5E7EB;
            margin: 2rem 0;
        }
        
        /* 表格样式 */
        .article-content table {
            width: 100%;
            border-collapse: collapse;
            margin: 1.5rem 0;
        }
        
        .article-content th {
            background-color: rgba(22, 93, 255, 0.1);
            border: 0.0625rem solid rgba(22, 93, 255, 0.3);
            padding: 0.5rem 1rem;
            text-align: left;
            color: #165DFF;
        }
        
        .article-content td {
            border: 0.0625rem solid #E5E7EB;
            padding: 0.5rem 1rem;
        }
        
        /* 高亮文本 */
        .article-content mark {
            background-color: rgba(251, 189, 35, 0.3);
            color: #1F2937;
            padding: 0.125rem 0.25rem;
            border-radius: 0.25rem;
        }
        
        /* 提示框样式 */
        .article-content > div {
            padding: 1rem;
            margin: 1.5rem 0;
            border-radius: 0 0.375rem 0.375rem 0;
        }
        
        .article-content > div::before {
            margin-right: 0.5rem;
            font-family: 'FontAwesome';
        }
        
        /* 提示框 - 成功/信息 */
        .article-content > div:not(.warning) {
            border-left: 0.25rem solid #36D399;
            background-color: rgba(54, 211, 153, 0.1);
        }
        
        .article-content > div:not(.warning)::before {
            content: '\f0eb';
            color: #36D399;
        }
        
        /* 提示框 - 警告 */
        .article-content > div.warning {
            border-left: 0.25rem solid #FBBD23;
            background-color: rgba(251, 189, 35, 0.1);
        }
        
        .article-content > div.warning::before {
            content: '\f071';
            color: #FBBD23;
        }
        
        /* 图片样式 */
        .article-content img {
            max-width: 350px;
            height: auto;
            border-radius: 0.5rem;
            box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.1);
            margin: 2rem 0;
            transition: transform 0.3s ease;
            margin: 0px auto;
        }
        
        .article-content img:hover {
            transform: scale(1.02);
        }
        
        /* 响应式调整 */
        @media (max-width: 640px) {
            body {
                padding: 1rem;
            }
            
            .article-content h3 {
                font-size: 1.7rem;
            }
            
            .article-content h4 {
                font-size: 1.5rem;
            }
            
            .article-content p, 
            .article-content li {
/*                font-size: 0.9375rem;*/
            }

            .article-content img {
                max-width: 80%;
            }
        }