/**
 * 绿鸟软件 - 新闻列表页面专用样式
 * 
 * 本文件包含所有与新闻列表页面相关的特定样式：
 * - 新闻列表布局
 * - 新闻卡片样式
 * - 筛选标签
 * - 分页控件
 * - 响应式设计调整
 */

/* 全局变量 */
:root {
    --primary-color: #2ecc71;
    --secondary-color: #27ae60;
    --dark-color: #2c3e50;
    --light-color: #ecf0f1;
    --text-color: #333;
    --gray-color: #95a5a6;
    --gray-light: #f7f9fc;
    --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    --card-hover-shadow: 0 10px 25px rgba(46, 204, 113, 0.15);
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --border-radius: 12px;
}

/* 新闻页面横幅 - 增强视觉效果 */
.page-banner {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    padding: 120px 0 60px;
    color: white;
    text-align: center;
}

.page-banner h1 {
    font-size: 2.8rem;
    margin-bottom: 15px;
    animation: fadeInUp 0.8s ease-out;
}

.page-banner p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto;
    opacity: 0.9;
    animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 新闻主体区域 - 更轻盈的背景 */
.news-area {
    padding: 80px 0;
    background-color: var(--gray-light);
    position: relative;
}

/* 新闻布局样式 */
.news-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 35px;
}

/* 新闻筛选区域 - 更现代的设计 */
.news-filters {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 15px;
    background-color: white;
    padding: 20px;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.04);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.news-filters::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    opacity: 0.6;
}

.filter-btn {
    padding: 10px 22px;
    background-color: white;
    border: none;
    border-radius: 30px;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-color);
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03);
}

.filter-btn.active, 
.filter-btn:hover {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    box-shadow: 0 4px 10px rgba(46, 204, 113, 0.2);
    transform: translateY(-2px);
}

/* 新闻主内容区域 */
.news-main {
    background-color: transparent;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
}

/* 新闻列表样式 - 更现代的卡片布局 */
.news-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

/* 新闻项目样式 - 更流畅的动画 */
.news-item {
    margin-bottom: 0;
    transition: transform 0.5s ease, opacity 0.5s ease;
    transform-origin: center;
    opacity: 0.5;
    transform: translateY(10px);
}

.news-item.appear {
    opacity: 1;
    transform: translateY(0);
    transition-duration: 0.6s;
}

.news-item:hover {
    transform: translateY(-5px);
    opacity: 1;
}

.news-card {
    background-color: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1;
}

.news-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--card-hover-shadow);
}

.news-card:hover::before {
    opacity: 1;
}

.news-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: var(--border-radius);
    box-shadow: 0 0 0 4px rgba(46, 204, 113, 0.2);
    opacity: 0;
    transition: var(--transition);
    z-index: -1;
    pointer-events: none;
}

.news-image {
    position: relative;
    height: 170px;
    background: linear-gradient(to right, #f8f9fa, #f1f3f5);
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.news-icon-wrapper {
    width: 70px;
    height: 70px;
    background-color: white;
    border-radius: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
    z-index: 2;
    transition: transform 0.3s ease;
}

.news-card:hover .news-icon-wrapper {
    transform: scale(1.1) rotate(5deg);
}

.news-icon-wrapper i {
    font-size: 30px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: var(--transition);
}

.news-tag {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: rgba(255, 255, 255, 0.9);
    color: var(--primary-color);
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
    z-index: 2;
}

.news-card:hover .news-tag {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
}

.news-details {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    position: relative;
}

.news-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.news-meta span {
    font-size: 0.85rem;
    color: var(--gray-color);
    display: flex;
    align-items: center;
}

.news-meta span i {
    margin-right: 7px;
    color: var(--primary-color);
}

.news-details h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--dark-color);
    line-height: 1.4;
    font-weight: 600;
    transition: var(--transition);
}

.news-card:hover .news-details h3 {
    color: var(--primary-color);
}

.news-details p {
    color: var(--gray-color);
    margin-bottom: 20px;
    line-height: 1.6;
    flex-grow: 1;
}

.news-actions {
    margin-top: auto;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding-top: 15px;
}

.news-actions .btn-text {
    color: var(--primary-color);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    transition: var(--transition);
    text-decoration: none;
    position: relative;
}

.news-actions .btn-text::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transition: width 0.3s ease;
}

.news-actions .btn-text i {
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.news-actions .btn-text:hover {
    color: var(--secondary-color);
}

.news-actions .btn-text:hover::after {
    width: calc(100% - 25px);
}

.news-actions .btn-text:hover i {
    transform: translateX(5px);
}

/* 分页样式 - 更清晰的分页控件 */
.pagination {
    display: flex;
    justify-content: center;
    margin-top: 60px;
}

.pagination a {
    min-width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 5px;
    border-radius: 50%;
    font-weight: 500;
    color: var(--text-color);
    text-decoration: none;
    transition: var(--transition);
    background-color: white;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.pagination a:hover,
.pagination a.active {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(46, 204, 113, 0.25);
}

.pagination a.next {
    font-size: 1.2rem;
}

/* 响应式调整 */
@media (max-width: 991px) {
    .page-banner {
        padding: 100px 0 50px;
    }
    
    .page-banner h1 {
        font-size: 2.8rem;
    }
    
    .news-filters {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .page-banner {
        padding: 100px 0 50px;
    }
    
    .page-banner h1 {
        font-size: 2.2rem;
    }
    
    .page-banner p {
        font-size: 1.1rem;
    }
    
    .news-filters {
        flex-direction: row;
        align-items: center;
        overflow-x: auto;
        justify-content: flex-start;
        padding: 15px;
        white-space: nowrap;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    }
    
    .filter-btn {
        padding: 8px 18px;
        font-size: 0.9rem;
    }
    
    .news-list {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
    
    .news-image {
        height: 150px;
    }
}

@media (max-width: 576px) {
    .page-banner {
        padding: 90px 0 50px;
    }
    
    .page-banner h1 {
        font-size: 1.8rem;
    }
    
    .page-banner p {
        font-size: 1rem;
        padding: 0 15px;
    }
    
    .news-list {
        grid-template-columns: 1fr;
    }
    
    .news-card {
        max-width: 100%;
    }
    
    .news-filters {
        margin-bottom: 25px;
        box-shadow: 0 3px 10px rgba(0, 0, 0, 0.03);
    }
    
    .news-filters::after {
        height: 2px;
    }
    
    .pagination a {
        min-width: 40px;
        height: 40px;
        margin: 0 3px;
    }
}

/* CTA区域样式 - 增强视觉吸引力 */
.cta {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    padding: 100px 0;
    color: white;
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100'%3E%3Cg fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.1'%3E%3Cpath opacity='.5' d='M96 95h4v1h-4v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15V0h1v15h9V0h1v15h9V0h1v15h9V0h1v15h9V0h1v15h9V0h1v15h9V0h1v15h9V0h1v15h4v1h-4v9h4v1h-4v9h4v1h-4v9h4v1h-4v9h4v1h-4v9h4v1h-4v9zm-1 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-9-10h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm9-10v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-9-10h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm9-10v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-9-10h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm9-10v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-9-10h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9z'/%3E%3Cpath d='M6 5V0H5v5H0v1h5v94h1V6h94V5H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.1;
}

.cta-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.cta-content h2 {
    font-size: 2.8rem;
    margin-bottom: 25px;
    font-weight: 700;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.cta-content p {
    font-size: 1.3rem;
    margin-bottom: 35px;
    opacity: 0.9;
    line-height: 1.6;
}

.cta .btn-primary {
    background-color: white;
    color: var(--primary-color);
    padding: 15px 35px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    text-decoration: none;
    display: inline-block;
    transition: var(--transition);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.cta .btn-primary i {
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.cta .btn-primary:hover {
    background-color: var(--dark-color);
    color: white;
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.cta .btn-primary:hover i {
    transform: translateX(5px);
}

/* 确保即使没有JavaScript，5秒后内容也会显示 */
@media (prefers-reduced-motion: no-preference) {
    .news-item {
        animation: fallbackAppear 5s forwards;
    }
    
    @keyframes fallbackAppear {
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
} 