/* 资讯模板 - news_green 绿色渐变风格 */
/* 自定义样式，上下卡片式布局 */

/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #e8f5e9 100%);
    color: #333;
    line-height: 1.6;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 顶部导航栏 */
.site-header {
    background: linear-gradient(135deg, #2e7d32 0%, #4caf50 100%);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo-section {
    display: flex;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #fff;
}

.logo-image {
    max-height: 45px;
    width: auto;
    margin-right: 12px;
    border-radius: 4px;
}

.site-title {
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.search-form {
    display: flex;
    align-items: center;
    gap: 8px;
}

.search-input {
    padding: 10px 15px;
    border: none;
    border-radius: 25px;
    background: rgba(255,255,255,0.95);
    color: #333;
    font-size: 14px;
    width: 250px;
    outline: none;
    transition: all 0.3s;
}

.search-input:focus {
    width: 300px;
    box-shadow: 0 0 0 3px rgba(255,255,255,0.3);
}

.search-btn {
    padding: 10px 15px;
    border: none;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    color: #fff;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-btn:hover {
    background: rgba(255,255,255,0.3);
    transform: scale(1.1);
}

/* 主导航 */
.main-nav {
    border-top: 1px solid rgba(255,255,255,0.2);
    padding: 0;
}

.nav-menu {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 5px;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 15px 20px;
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    font-size: 15px;
    transition: all 0.3s;
    border-bottom: 3px solid transparent;
}

.nav-link:hover,
.nav-link.active {
    color: #fff;
    background: rgba(255,255,255,0.1);
    border-bottom-color: #fff;
}

/* 面包屑导航 */
.breadcrumb-nav {
    background: #fff;
    padding: 12px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.breadcrumb-list {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
}

.separator {
    margin: 0 8px;
    color: #999;
}

.breadcrumb-item a {
    color: #4caf50;
    text-decoration: none;
    transition: color 0.3s;
}

.breadcrumb-item a:hover {
    color: #2e7d32;
}

.breadcrumb-item.active {
    color: #666;
}

/* 主要内容区域 */
.main-content {
    padding: 30px 0;
}

/* 页面标题 */
.page-header {
    background: linear-gradient(135deg, #4caf50 0%, #66bb6a 100%);
    padding: 40px 0;
    margin-bottom: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.page-title {
    color: #fff;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 10px;
}

.page-desc {
    color: rgba(255,255,255,0.9);
    font-size: 16px;
}

/* 焦点图区域 */
.featured-section {
    margin-bottom: 40px;
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.featured-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    background: #fff;
}

.featured-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.featured-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.featured-image {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.featured-card:hover .featured-image img {
    transform: scale(1.1);
}

.featured-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60%;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
}

.featured-content {
    padding: 15px;
    background: #fff;
}

.featured-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.featured-desc {
    font-size: 13px;
    color: #666;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 文章列表区域 */
.articles-section {
    margin-bottom: 40px;
}

.section-header {
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: 700;
    color: #2e7d32;
}

.title-icon {
    font-size: 28px;
}

.article-count {
    font-size: 14px;
    color: #999;
    font-weight: normal;
    margin-left: 10px;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
}

.article-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    transition: all 0.3s;
}

.article-card:hover {
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    transform: translateY(-3px);
}

.article-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.article-card:hover .article-image img {
    transform: scale(1.05);
}

.article-body {
    padding: 20px;
}

.article-title {
    margin-bottom: 12px;
}

.article-title a {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    text-decoration: none;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.3s;
}

.article-title a:hover {
    color: #4caf50;
}

.article-desc {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 13px;
    color: #999;
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.meta-item svg {
    width: 14px;
    height: 14px;
}

.meta-item a {
    color: #4caf50;
    text-decoration: none;
}

.meta-item a:hover {
    color: #2e7d32;
    text-decoration: underline;
}

/* 分页 */
.pagination-wrapper {
    margin: 40px 0;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.pagination-item {
    padding: 10px 16px;
    background: #fff;
    color: #333;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s;
    box-shadow: 0 2px 5px rgba(0,0,0,0.08);
}

.pagination-item:hover {
    background: #4caf50;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(76,175,80,0.3);
}

.pagination-item.active {
    background: linear-gradient(135deg, #4caf50 0%, #66bb6a 100%);
    color: #fff;
}

/* 侧边栏 */
.sidebar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.sidebar-section {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    overflow: hidden;
}

.sidebar-header {
    background: linear-gradient(135deg, #4caf50 0%, #66bb6a 100%);
    padding: 15px 20px;
}

.sidebar-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
}

.sidebar-content {
    padding: 20px;
}

/* 热门文章列表 */
.hot-list {
    list-style: none;
}

.hot-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px dashed #e0e0e0;
}

.hot-item:last-child {
    border-bottom: none;
}

.hot-link {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    text-decoration: none;
    color: #333;
    transition: color 0.3s;
}

.hot-link:hover {
    color: #4caf50;
}

.hot-rank {
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, #4caf50 0%, #66bb6a 100%);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    flex-shrink: 0;
}

.hot-title {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 14px;
}

.hot-hits {
    color: #999;
    font-size: 12px;
    flex-shrink: 0;
    margin-left: 10px;
}

/* 分类列表 */
.category-list {
    list-style: none;
}

.category-item {
    border-bottom: 1px solid #f0f0f0;
}

.category-item:last-child {
    border-bottom: none;
}

.category-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    color: #333;
    text-decoration: none;
    transition: all 0.3s;
}

.category-link:hover,
.category-item.active .category-link {
    color: #4caf50;
    padding-left: 10px;
}

.category-name {
    font-size: 14px;
}

.category-link svg {
    opacity: 0;
    transition: opacity 0.3s;
}

.category-link:hover svg,
.category-item.active .category-link svg {
    opacity: 1;
}

/* 标签云 */
.tags-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-link {
    padding: 6px 14px;
    background: #f0f0f0;
    color: #666;
    text-decoration: none;
    border-radius: 20px;
    font-size: 13px;
    transition: all 0.3s;
}

.tag-link:hover {
    background: linear-gradient(135deg, #4caf50 0%, #66bb6a 100%);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(76,175,80,0.3);
}

/* 文章详情页 */
.article-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 30px;
}

.article-main {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    padding: 40px;
}

.article-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
}

.article-title-main {
    font-size: 32px;
    font-weight: 700;
    color: #333;
    margin-bottom: 20px;
    line-height: 1.4;
}

.article-meta-main {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    font-size: 14px;
    color: #999;
}

.meta-item-main {
    display: flex;
    align-items: center;
    gap: 6px;
}

.meta-item-main svg {
    width: 16px;
    height: 16px;
}

.meta-item-main a {
    color: #4caf50;
    text-decoration: none;
}

.meta-item-main a:hover {
    color: #2e7d32;
    text-decoration: underline;
}

.article-featured-image {
    margin-top: 20px;
    border-radius: 8px;
    overflow: hidden;
}

.article-featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

.article-content-main {
    font-size: 16px;
    line-height: 1.8;
    color: #333;
    word-wrap: break-word;
}

.article-content-main * {
    font-size: inherit;
    color: inherit;
}

.article-content-main p {
    margin-bottom: 18px;
}

.article-content-main img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 25px auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.article-content-main h1,
.article-content-main h2,
.article-content-main h3,
.article-content-main h4,
.article-content-main h5,
.article-content-main h6 {
    margin-top: 30px;
    margin-bottom: 18px;
    font-weight: 700;
    color: #2e7d32;
}

.article-content-main h1 {
    font-size: 26px;
}

.article-content-main h2 {
    font-size: 24px;
}

.article-content-main h3 {
    font-size: 22px;
}

.article-content-main ul,
.article-content-main ol {
    padding-left: 30px;
    margin-bottom: 18px;
}

.article-content-main li {
    margin-bottom: 10px;
}

.article-content-main a {
    color: #4caf50;
    text-decoration: underline;
}

.article-content-main a:hover {
    color: #2e7d32;
}

.article-content-main blockquote {
    border-left: 4px solid #4caf50;
    padding: 15px 20px;
    margin: 25px 0;
    background: #f0f7f0;
    border-radius: 4px;
    color: #555;
    font-style: italic;
}

.article-content-main code {
    background: #f5f5f5;
    padding: 3px 8px;
    border-radius: 4px;
    font-family: "Courier New", monospace;
    font-size: 14px;
    color: #e91e63;
}

.article-content-main pre {
    background: #282c34;
    color: #abb2bf;
    padding: 20px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 25px 0;
}

.article-content-main pre code {
    background: none;
    padding: 0;
    color: inherit;
}

.article-content-main table {
    width: 100%;
    border-collapse: collapse;
    margin: 25px 0;
}

.article-content-main table th,
.article-content-main table td {
    border: 1px solid #e0e0e0;
    padding: 12px;
    text-align: left;
}

.article-content-main table th {
    background: linear-gradient(135deg, #4caf50 0%, #66bb6a 100%);
    color: #fff;
    font-weight: 600;
}

.article-tags {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid #f0f0f0;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.tags-label {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #666;
    font-size: 14px;
}

.tags-label svg {
    width: 18px;
    height: 18px;
}

.tag-badge {
    padding: 6px 14px;
    background: linear-gradient(135deg, #4caf50 0%, #66bb6a 100%);
    color: #fff;
    text-decoration: none;
    border-radius: 20px;
    font-size: 13px;
    transition: all 0.3s;
}

.tag-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(76,175,80,0.3);
}

/* 上下篇导航 */
.article-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 30px 0;
}

.nav-item {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    transition: all 0.3s;
}

.nav-item:hover {
    box-shadow: 0 4px 15px rgba(0,0,0,0.12);
    transform: translateY(-3px);
}

.nav-prev {
    text-align: left;
}

.nav-next {
    text-align: right;
}

.nav-label {
    display: block;
    color: #999;
    font-size: 12px;
    margin-bottom: 8px;
}

.nav-link {
    color: #333;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    display: block;
    transition: color 0.3s;
}

.nav-link:hover {
    color: #4caf50;
}

/* 相关文章 */
.related-section {
    margin: 40px 0;
}

/* 文章侧边栏 */
.article-sidebar {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

/* 信息列表 */
.info-list {
    list-style: none;
}

.info-item {
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.info-item:last-child {
    border-bottom: none;
}

.info-label {
    font-size: 13px;
    color: #999;
}

.info-value {
    font-size: 15px;
    color: #333;
    font-weight: 600;
}

.info-value.highlight {
    color: #4caf50;
    font-size: 20px;
}

.info-value a {
    color: #4caf50;
    text-decoration: none;
}

.info-value a:hover {
    color: #2e7d32;
    text-decoration: underline;
}

.info-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 5px;
}

.tag-small {
    padding: 4px 10px;
    background: #f0f0f0;
    color: #666;
    text-decoration: none;
    border-radius: 15px;
    font-size: 12px;
    transition: all 0.3s;
}

.tag-small:hover {
    background: #4caf50;
    color: #fff;
}

/* 友情链接区域 */
.links-section {
    background: #fff;
    padding: 30px 0;
    margin-top: 40px;
    border-top: 1px solid #e0e0e0;
}

.links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
}

.links-column {
    flex: 1;
}

.links-list {
    list-style: none;
}

.links-list li {
    padding: 8px 0;
    border-bottom: 1px dashed #ddd;
}

.links-list li:last-child {
    border-bottom: none;
}

.links-list a {
    color: #666;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.links-list a:hover {
    color: #4caf50;
}

/* 页脚 */
.site-footer {
    background: linear-gradient(135deg, #1b5e20 0%, #2e7d32 100%);
    color: #fff;
    padding: 40px 0 20px;
    margin-top: 50px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 30px;
}

.footer-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #fff;
}

.footer-text {
    color: rgba(255,255,255,0.8);
    margin-bottom: 10px;
    font-size: 14px;
}

.footer-nav {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.footer-nav a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.footer-nav a:hover {
    color: #fff;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.2);
}

.beian-info {
    margin-bottom: 10px;
}

.beian-info a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    font-size: 13px;
}

.beian-info a:hover {
    color: #fff;
}

.footer-copyright {
    color: rgba(255,255,255,0.6);
    font-size: 12px;
}

/* 返回顶部按钮 */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #4caf50 0%, #66bb6a 100%);
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: all 0.3s;
    z-index: 999;
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(76,175,80,0.4);
}

.back-to-top svg {
    width: 24px;
    height: 24px;
}

/* 响应式设计 */
@media (max-width: 968px) {
    .article-layout {
        grid-template-columns: 1fr;
    }
    
    .article-sidebar {
        margin-top: 30px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .header-top {
        flex-direction: column;
        gap: 15px;
    }
    
    .search-input {
        width: 100%;
        max-width: 300px;
    }
    
    .nav-menu {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .articles-grid {
        grid-template-columns: 1fr;
    }
    
    .featured-grid {
        grid-template-columns: 1fr;
    }
    
    .sidebar-grid {
        grid-template-columns: 1fr;
    }
    
    .article-nav {
        grid-template-columns: 1fr;
    }
}

/* 滚动条美化 */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #4caf50 0%, #66bb6a 100%);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #2e7d32 0%, #4caf50 100%);
}

/* 436925 */

