/*
Theme Name: Astra Forestry Policy
Theme URI: https://wpastra.com/
Description: Astra主题子主题，添加林业政策分类导航系统
Author: shgyujia
Author URI: https://808198.cn
Template: astra
Version: 1.0.0
Text Domain: astra-forestry-policy
*/

/* 首页部分样式 */
.home-section {
    margin-bottom: 1cm; /* 1厘米间隔 */
}

/* 分类导航样式 */
.category-nav {
    margin: 1rem 0;
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
}

.category-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
}

.category-nav li {
    margin-right: 2rem;
    margin-bottom: 0.5rem;
}

/* 标题样式 */
.section-title {
    margin-top: 0;
    margin-bottom: 1rem;
}

.red-title {
    color: #ff0000; /* 红色字体 */
    font-weight: bold;
}

.light-red-title {
    color: #ff6666; /* 浅红色字体 */
    font-weight: bold;
}

.nav-link {
    text-decoration: none;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #cc0000 !important;
    text-decoration: underline;
}

/* 文章列表样式 */
.articles-list {
    margin-top: 1rem;
}

.category-posts-list,
.latest-posts-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.category-posts-list li,
.latest-posts-list li {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
}

.category-posts-list a,
.latest-posts-list a {
    color: #000000; /* 黑色字体 */
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.category-posts-list a:hover,
.latest-posts-list a:hover {
    color: #333333;
    text-decoration: underline;
}

/* 更多链接样式 */
.more-link-container {
    text-align: right;
    margin-top: 1rem;
}

.more-link {
    color: #888888; /* 灰色字体 */
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.more-link:hover {
    color: #666666;
    text-decoration: underline;
}

/* 加载状态样式 */
.loading {
    text-align: center;
    padding: 2rem;
    color: #666;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .category-nav li {
        margin-right: 1rem;
        margin-bottom: 0.5rem;
    }
    
    .nav-link {
        font-size: 1rem;
    }
}

/* 兼容旧版样式 */
.forestry-category-nav {
    margin: 2rem 0;
    padding: 1rem 0;
    border-bottom: 1px solid #eee;
}

.forestry-category-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
}

.forestry-category-nav li {
    margin-right: 2rem;
    margin-bottom: 0.5rem;
}

.forestry-category-nav a {
    color: #ff0000; /* 红色字体 */
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.forestry-category-nav a:hover,
.forestry-category-nav a.active {
    color: #cc0000;
    text-decoration: underline;
}

.forestry-articles-list {
    margin-top: 2rem;
}

.forestry-articles-list ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.forestry-articles-list li {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
}

.forestry-articles-list a {
    color: #000000; /* 黑色字体 */
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.forestry-articles-list a:hover {
    color: #333333;
    text-decoration: underline;
}

.forestry-loading {
    text-align: center;
    padding: 2rem;
    color: #666;
}