/*
Theme Name: AgriROS Community
Theme URI: https://agriros.org.cn
Author: AgriROS Community
Author URI: https://agriros.org.cn
Description: 农业机器人技术社区官方网站WordPress主题，专为AgriROS社区设计，采用农业绿色主题，响应式设计，支持WordPress动态内容管理。
Version: 1.0.0
License: GPL v2 or later
Text Domain: agriros
Tags: agriculture, robotics, open-source, responsive, green, community
*/

/* ============================================================
   AgriROS Community Website - WordPress Theme
   农业机器人技术社区官网WordPress主题
   ============================================================ */

/* 导入主样式表 */
@import url('../../assets/css/style.css');

/* WordPress特有样式 */
/* ============================================================
   WordPress主题定制
   ============================================================ */

/* WordPress管理栏适配 */
.admin-bar .navbar {
    top: 32px;
}

@media screen and (max-width: 782px) {
    .admin-bar .navbar {
        top: 46px;
    }
}

@media screen and (max-width: 600px) {
    .admin-bar .navbar {
        top: 0;
    }
}

/* WordPress内容区域样式 */
.wp-content {
    font-family: inherit;
}

.wp-block {
    margin-top: 1.5em;
    margin-bottom: 1.5em;
}

.alignwide {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.alignfull {
    max-width: 100%;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
}

/* WordPress小工具样式 */
.widget {
    background: var(--green-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 20px;
    margin-bottom: 20px;
}

.widget-title {
    color: var(--text-primary);
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 16px;
    border-bottom: 2px solid var(--green-main);
    padding-bottom: 8px;
}

.widget ul {
    list-style: none;
    padding-left: 0;
}

.widget li {
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
}

.widget li:last-child {
    border-bottom: none;
}

.widget a {
    color: var(--text-secondary);
    transition: var(--transition);
}

.widget a:hover {
    color: var(--green-main);
}

/* WordPress评论样式 */
.comments-area {
    margin-top: 40px;
    padding: 30px;
    background: var(--green-bg);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
}

.comment-reply-title {
    color: var(--text-primary);
    font-size: 20px;
    margin-bottom: 20px;
}

.comment-form label {
    display: block;
    margin-bottom: 5px;
    color: var(--text-secondary);
    font-weight: 600;
}

.comment-form input,
.comment-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: inherit;
    margin-bottom: 15px;
    transition: var(--transition);
}

.comment-form input:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: var(--green-main);
    box-shadow: 0 0 0 3px rgba(64, 145, 108, 0.1);
}

.comment-form .submit {
    background: var(--green-main);
    color: white;
    border: none;
    padding: 12px 28px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.comment-form .submit:hover {
    background: var(--green-dark);
}

/* WordPress分页样式 */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 40px 0;
}

.page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-weight: 500;
    transition: var(--transition);
}

.page-numbers.current {
    background: var(--green-main);
    color: white;
    border-color: var(--green-main);
}

.page-numbers:hover {
    background: var(--green-bg);
    color: var(--green-main);
}

/* WordPress搜索表单 */
.search-form {
    display: flex;
    margin-bottom: 20px;
}

.search-form input[type="search"] {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm) 0 0 var(--radius-sm);
    font-family: inherit;
}

.search-form button {
    padding: 12px 20px;
    background: var(--green-main);
    color: white;
    border: none;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    cursor: pointer;
    transition: var(--transition);
}

.search-form button:hover {
    background: var(--green-dark);
}

/* WordPress文章样式 */
.entry-header {
    margin-bottom: 30px;
}

.entry-title {
    color: var(--text-primary);
    font-size: 32px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 15px;
}

.entry-meta {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 20px;
}

.entry-meta a {
    color: var(--green-main);
}

.entry-content {
    font-size: 16px;
    line-height: 1.8;
}

.entry-content h2 {
    color: var(--text-primary);
    font-size: 24px;
    margin: 30px 0 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--green-bg);
}

.entry-content h3 {
    color: var(--text-primary);
    font-size: 20px;
    margin: 25px 0 12px;
}

.entry-content p {
    margin-bottom: 20px;
}

.entry-content img {
    border-radius: var(--radius-md);
    margin: 20px 0;
}

.entry-content blockquote {
    border-left: 4px solid var(--green-main);
    padding-left: 20px;
    margin: 20px 0;
    color: var(--text-secondary);
    font-style: italic;
}

.entry-content pre {
    background: var(--green-darkest);
    color: var(--green-soft);
    padding: 20px;
    border-radius: var(--radius-sm);
    overflow-x: auto;
    margin: 20px 0;
}

.entry-content code {
    background: var(--green-bg);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 14px;
}

/* WordPress侧边栏样式 */
.sidebar {
    margin-top: 40px;
}

@media (min-width: 768px) {
    .sidebar {
        margin-top: 0;
        padding-left: 40px;
    }
}

/* WordPress页脚样式 */
.site-footer {
    background: var(--green-darkest);
    color: var(--green-soft);
    padding: 60px 0 30px;
}

.footer-widgets {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

@media (max-width: 992px) {
    .footer-widgets {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .footer-widgets {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .footer-widgets {
        grid-template-columns: 1fr;
    }
}

.footer-widget h4 {
    color: white;
    font-size: 16px;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--green-main);
    padding-bottom: 10px;
}

.footer-widget ul li {
    margin-bottom: 10px;
}

.footer-widget a {
    color: var(--green-soft);
    transition: var(--transition);
}

.footer-widget a:hover {
    color: white;
}

.site-info {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

/* WordPress错误页面 */
.error-404 {
    text-align: center;
    padding: 80px 0;
}

.error-404 h1 {
    font-size: 120px;
    color: var(--green-main);
    margin-bottom: 20px;
}

.error-404 p {
    font-size: 18px;
    margin-bottom: 30px;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .entry-title {
        font-size: 28px;
    }
    
    .comments-area {
        padding: 20px;
    }
    
    .widget {
        padding: 15px;
    }
}

/* WordPress主题定制类 */
.agriros-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 24px;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.agriros-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.agriros-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(82, 183, 136, 0.2);
    border: 1px solid rgba(82, 183, 136, 0.4);
    color: var(--green-soft);
    padding: 6px 14px;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 600;
}

.agriros-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--green-main);
    color: white;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.agriros-btn:hover {
    background: var(--green-dark);
    color: white;
}

.agriros-btn-outline {
    background: transparent;
    border: 2px solid var(--green-main);
    color: var(--green-main);
}

.agriros-btn-outline:hover {
    background: var(--green-main);
    color: white;
}
/* ============================================================
   动态文章存档页面样式
   ============================================================ */

.archive-header {
    background: linear-gradient(135deg, var(--green-main), var(--green-dark));
    color: white;
    padding: 60px 0 40px;
    text-align: center;
}

.archive-title {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 16px;
}

.archive-desc {
    font-size: 18px;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto 30px;
}

.archive-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

.filter-btn {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    padding: 10px 24px;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
}

.filter-btn:hover,
.filter-btn.active {
    background: white;
    color: var(--green-main);
    border-color: white;
}

.archive-main {
    padding: 60px 0;
    background: var(--bg);
}

.news-archive-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

@media (min-width: 768px) {
    .news-archive-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
}

@media (min-width: 1200px) {
    .news-archive-grid {
        grid-template-columns: 2fr 1fr;
    }
}

.news-archive-item {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-archive-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.news-archive-item.featured {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr;
}

@media (min-width: 1200px) {
    .news-archive-item.featured {
        grid-template-columns: 1.5fr 1fr;
    }
}

.news-category-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--green-main);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    z-index: 2;
}

.news-archive-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.news-archive-item.featured .news-archive-image {
    height: 350px;
}

@media (min-width: 1200px) {
    .news-archive-item.featured .news-archive-image {
        height: 100%;
        min-height: 350px;
    }
}

.news-archive-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-archive-item:hover .news-archive-image img {
    transform: scale(1.05);
}

.news-archive-content {
    padding: 24px;
}

.news-archive-item.featured .news-archive-content {
    padding: 32px;
}

.news-archive-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 16px;
    color: var(--text-secondary);
    font-size: 14px;
}

.news-archive-meta i {
    margin-right: 6px;
    color: var(--green-main);
}

.news-archive-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 16px;
    line-height: 1.4;
}

.news-archive-item.featured .news-archive-title {
    font-size: 28px;
    margin-bottom: 20px;
}

.news-archive-title a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.news-archive-title a:hover {
    color: var(--green-main);
}

.news-archive-excerpt {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 24px;
    font-size: 16px;
}

.news-archive-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.news-read-more {
    color: var(--green-main);
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: color 0.2s ease;
}

.news-read-more:hover {
    color: var(--green-dark);
}

.news-read-more i {
    font-size: 14px;
    transition: transform 0.2s ease;
}

.news-read-more:hover i {
    transform: translateX(4px);
}

.news-comments {
    color: var(--text-secondary);
    font-size: 14px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.news-comments:hover {
    color: var(--green-main);
}

/* 没有文章时的样式 */
.no-news {
    text-align: center;
    padding: 60px 20px;
    grid-column: 1 / -1;
}

.no-news-icon {
    font-size: 60px;
    color: var(--green-light);
    margin-bottom: 20px;
}

.no-news h3 {
    font-size: 24px;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.no-news p {
    color: var(--text-secondary);
    max-width: 400px;
    margin: 0 auto 30px;
}

/* 侧边栏样式 */
.archive-sidebar {
    background: var(--green-bg);
    padding: 60px 0;
}

.sidebar-widgets {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

@media (min-width: 768px) {
    .sidebar-widgets {
        grid-template-columns: 1fr 1fr;
    }
}

@media (min-width: 1200px) {
    .sidebar-widgets {
        grid-template-columns: 1fr;
    }
}

.widget {
    background: white;
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-sm);
}

.widget-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--green-main);
}

.popular-post-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
}

.popular-post-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.popular-post-rank .rank-icon {
    color: #ff6b35;
    font-size: 18px;
}

.popular-post-content h4 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 6px;
    line-height: 1.4;
}

.popular-post-content h4 a {
    color: var(--text-primary);
    text-decoration: none;
}

.popular-post-content h4 a:hover {
    color: var(--green-main);
}

.popular-post-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 13px;
    color: var(--text-secondary);
}

.popular-post-meta i {
    margin-right: 4px;
}

.category-stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    color: var(--text-secondary);
    text-decoration: none;
    border-bottom: 1px solid var(--border);
    transition: color 0.2s ease;
}

.category-stat-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.category-stat-item:hover {
    color: var(--green-main);
}

.category-name {
    font-weight: 500;
}

.category-count {
    background: var(--green-bg);
    color: var(--green-main);
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
}

.subscribe-reminder {
    background: linear-gradient(135deg, var(--green-main), var(--green-dark));
    color: white;
}

.subscribe-reminder .widget-title {
    color: white;
    border-bottom-color: rgba(255, 255, 255, 0.3);
}

.subscribe-reminder p {
    margin-bottom: 20px;
    opacity: 0.9;
}

.subscribe-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.subscribe-form input {
    padding: 12px 16px;
    border: none;
    border-radius: var(--radius-md);
    font-size: 15px;
}

.subscribe-form button {
    padding: 12px 24px;
    border: none;
    border-radius: var(--radius-md);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
}

.subscribe-tip {
    font-size: 13px;
    opacity: 0.7;
    margin-top: 12px;
    margin-bottom: 0;
}

/* 分页样式 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 60px;
    gap: 8px;
}

.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    background: white;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    border: 1px solid var(--border);
    transition: all 0.2s ease;
}

.pagination .page-numbers:hover,
.pagination .page-numbers.current {
    background: var(--green-main);
    color: white;
    border-color: var(--green-main);
}

.pagination .prev,
.pagination .next {
    padding: 10px 20px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .archive-title {
        font-size: 32px;
    }
    
    .archive-desc {
        font-size: 16px;
    }
    
    .news-archive-item.featured .news-archive-image {
        height: 250px;
    }
    
    .news-archive-item.featured .news-archive-title {
        font-size: 22px;
    }
    
    .pagination .prev,
    .pagination .next {
        padding: 10px 15px;
        font-size: 14px;
    }
}

/* ============================================================
   首页社区动态区块样式
   ============================================================ */

.news-section-home {
    padding: 80px 0;
    background: var(--green-bg);
}

.news-header-home {
    text-align: center;
    margin-bottom: 50px;
}

.news-header-home h2 {
    font-size: 36px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.news-header-home p {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* 新闻网格布局 */
.news-grid-home {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

@media (min-width: 768px) {
    .news-grid-home {
        grid-template-columns: 2fr 1fr;
        gap: 40px;
    }
}

/* 新闻项目通用样式 */
.news-item-home {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-item-home:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.news-item-home.featured {
    grid-column: 1 / -1;
}

@media (min-width: 768px) {
    .news-item-home.featured {
        grid-column: 1;
        display: grid;
        grid-template-columns: 1.5fr 1fr;
        min-height: 400px;
    }
}

.news-item-home.normal {
    margin-bottom: 20px;
}

@media (min-width: 768px) {
    .news-item-home.normal {
        grid-column: 2;
        margin-bottom: 0;
    }
}

/* 新闻图片样式 */
.news-image-home {
    position: relative;
    height: 250px;
    overflow: hidden;
}

@media (min-width: 768px) {
    .news-item-home.featured .news-image-home {
        height: 100%;
    }
}

.news-image-home img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-item-home:hover .news-image-home img {
    transform: scale(1.05);
}

.news-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 60%, rgba(0, 0, 0, 0.3));
}

.news-image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--green-light), var(--green-main));
    color: white;
    font-size: 60px;
}

/* 新闻内容样式 */
.news-content-home {
    padding: 24px;
}

@media (min-width: 768px) {
    .news-item-home.featured .news-content-home {
        padding: 32px;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
}

/* 分类标签 */
.news-category-home {
    display: inline-block;
    background: var(--green-main);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 16px;
}

/* 日期样式 */
.news-date-home {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 16px;
}

.news-date-home i {
    color: var(--green-main);
}

/* 标题样式 */
.news-title-home {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 16px;
    line-height: 1.4;
}

.news-item-home.featured .news-title-home {
    font-size: 28px;
}

.news-title-home a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.news-title-home a:hover {
    color: var(--green-main);
}

/* 摘要样式 */
.news-excerpt-home {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 24px;
    font-size: 16px;
}

/* 操作按钮样式 */
.news-actions-home {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.news-read-home {
    color: var(--green-main);
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: color 0.2s ease;
}

.news-read-home:hover {
    color: var(--green-dark);
}

.news-read-home i {
    font-size: 14px;
    transition: transform 0.2s ease;
}

.news-read-home:hover i {
    transform: translateX(4px);
}

.news-comments-home {
    color: var(--text-secondary);
    font-size: 14px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.news-comments-home:hover {
    color: var(--green-main);
}

/* 查看更多按钮 */
.news-more-home {
    text-align: center;
    margin-top: 40px;
}

.btn-outline-green {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: transparent;
    color: var(--green-main);
    border: 2px solid var(--green-main);
    border-radius: var(--radius-md);
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-outline-green:hover {
    background: var(--green-main);
    color: white;
    transform: translateY(-2px);
}

.btn-outline-green i {
    font-size: 14px;
    transition: transform 0.3s ease;
}

.btn-outline-green:hover i {
    transform: translateX(4px);
}

/* 响应式调整 */
@media (max-width: 767px) {
    .news-header-home h2 {
        font-size: 28px;
    }
    
    .news-header-home p {
        font-size: 16px;
    }
    
    .news-item-home.featured {
        margin-bottom: 30px;
    }
    
    .news-item-home.featured .news-title-home {
        font-size: 22px;
    }
    
    .news-image-home {
        height: 200px;
    }
}

/* ============================================================
   社区动态存档页面（新版：无侧边栏）
   ============================================================ */

.archive-header-section {
    background: linear-gradient(135deg, var(--green-main), var(--green-dark));
    color: white;
    padding: 60px 0 40px;
    text-align: center;
}

.archive-page-title {
    font-size: 40px;
    font-weight: 800;
    margin-bottom: 14px;
}

.archive-page-desc {
    font-size: 17px;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto 28px;
}

.archive-filter-tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.filter-tab {
    background: rgba(255,255,255,0.15);
    color: white;
    border: 1px solid rgba(255,255,255,0.35);
    border-radius: 50px;
    padding: 9px 22px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.25s ease;
}

.filter-tab:hover,
.filter-tab.active {
    background: white;
    color: var(--green-main);
    border-color: white;
}

.archive-body {
    padding: 60px 0;
    background: var(--bg);
}

/* 文章卡片网格 */
.news-cards-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 28px;
    margin-bottom: 50px;
}

@media (min-width: 640px) {
    .news-cards-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (min-width: 1024px) {
    .news-cards-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* 特色第一篇：全宽显示 */
.news-card--featured {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
}

@media (min-width: 768px) {
    .news-card--featured {
        flex-direction: row;
        min-height: 320px;
    }

    .news-card--featured .news-card-img-link {
        flex: 0 0 45%;
    }

    .news-card--featured .news-card-img {
        height: 100%;
        min-height: 280px;
    }
}

/* 卡片通用 */
.news-card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.news-card-img-link {
    display: block;
    overflow: hidden;
}

.news-card-img {
    height: 200px;
    background-size: cover;
    background-position: center;
    position: relative;
    transition: transform 0.4s ease;
}

.news-card:hover .news-card-img {
    transform: scale(1.04);
}

.news-card-img-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 50%, rgba(0,0,0,0.25));
}

.news-card-body {
    padding: 22px 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.news-card-meta {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.news-card-category {
    background: var(--green-main);
    color: white;
    padding: 4px 13px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
}

.news-card-date {
    color: var(--text-secondary);
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.news-card-date i {
    color: var(--green-main);
}

.news-card-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.45;
    flex: 1;
}

.news-card--featured .news-card-title {
    font-size: 24px;
}

.news-card-title a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.2s;
}

.news-card-title a:hover {
    color: var(--green-main);
}

.news-card-excerpt {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.65;
    margin-bottom: 18px;
}

.news-card-readmore {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--green-main);
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    margin-top: auto;
    transition: color 0.2s, gap 0.2s;
}

.news-card-readmore:hover {
    color: var(--green-dark);
    gap: 10px;
}

/* 暂无文章占位 */
.no-posts-placeholder {
    text-align: center;
    padding: 80px 20px;
}

.no-posts-icon {
    font-size: 64px;
    color: var(--green-light);
    margin-bottom: 24px;
}

.no-posts-placeholder h3 {
    font-size: 24px;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.no-posts-placeholder p {
    color: var(--text-secondary);
    margin-bottom: 28px;
}

/* 分页 */
.archive-pagination {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.archive-pagination .nav-links {
    display: flex;
    gap: 8px;
    align-items: center;
}

.archive-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border-radius: var(--radius-md);
    background: white;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    border: 1px solid var(--border);
    transition: all 0.2s ease;
    font-size: 14px;
}

.archive-pagination .page-numbers:hover,
.archive-pagination .page-numbers.current {
    background: var(--green-main);
    color: white;
    border-color: var(--green-main);
}

/* ============================================================
   首页社区动态区块（新版简洁列表）
   ============================================================ */

.news-home-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-bottom: 36px;
}

.news-home-item {
    background: white;
    border-radius: var(--radius-md);
    padding: 22px 26px;
    margin-bottom: 16px;
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.25s, transform 0.25s;
}

.news-home-item:last-child {
    margin-bottom: 0;
}

.news-home-item:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.news-home-item--featured {
    border-left: 4px solid var(--green-main);
}

.news-home-item-category {
    display: inline-block;
    background: var(--green-main);
    color: white;
    padding: 4px 13px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 10px;
}

.news-home-item-date {
    color: var(--text-secondary);
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 10px;
}

.news-home-item-date i {
    color: var(--green-main);
}

.news-home-item-title {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.45;
    color: var(--text-primary);
}

.news-home-item--featured .news-home-item-title {
    font-size: 20px;
}

.news-home-item-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}

.news-home-item-title a:hover {
    color: var(--green-main);
}

.news-home-item-excerpt {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.65;
    margin-bottom: 16px;
}

.news-home-item-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--green-main);
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: color 0.2s;
}

.news-home-item-link:hover {
    color: var(--green-dark);
}

.news-home-more {
    text-align: center;
    margin-top: 10px;
}

@media (max-width: 767px) {
    .archive-page-title {
        font-size: 28px;
    }

    .news-card--featured {
        flex-direction: column;
    }

    .news-card-img {
        height: 180px;
    }
}
