/* 新闻页面样式 */

/* ========== 页面标题区域 ========== */
.page-header {
    text-align: center;
    padding: 40px 0 50px;
    background: linear-gradient(135deg, #22d3ee 0%, #0891b2 100%);
    border-radius: 16px;
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
}

/* 页面标题装饰效果 */
.page-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.page-header::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 70%);
    border-radius: 50%;
}

.page-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.page-subtitle {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.9);
    position: relative;
    z-index: 1;
}

/* ========== 新闻列表区域 ========== */
.news-section {
    padding: 100px 0 80px;
    background: #f8fafc;
}

.news-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 40px;
}

/* 新闻网格 */
.news-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

/* 新闻卡片 */
.news-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: row;
    height: 180px;
    position: relative;
}

.news-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.news-card-image {
    position: relative;
    width: 240px;
    height: 100%;
    background: linear-gradient(135deg, #22d3ee 0%, #0891b2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}

.news-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news-card:hover .news-card-image img {
    transform: scale(1.05);
}

.news-card-image i {
    font-size: 80px;
    color: rgba(255, 255, 255, 0.3);
    position: absolute;
}

.news-card-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 5px 10px;
    background: rgba(255, 255, 255, 0.98);
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    color: #0891b2;
    display: flex;
    align-items: center;
    gap: 3px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.news-card-badge i {
    font-size: 11px;
}

/* 新闻卡片日期标签 - 卡片右上角 */
.news-card-date {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    padding: 6px 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    z-index: 10;
    transition: all 0.3s ease;
}

.news-card:hover .news-card-date {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.news-card-date .day {
    font-size: 18px;
    font-weight: 700;
    color: #1e293b;
    line-height: 1;
}

.news-card-date .month {
    font-size: 10px;
    color: #64748b;
    margin-top: 2px;
}

.news-card-content {
    flex: 1;
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.news-card h3 {
    font-size: 16px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 8px;
    line-height: 1.4;
    transition: color 0.3s ease;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card:hover h3 {
    color: #0891b2;
}

.news-card p {
    font-size: 13px;
    color: #64748b;
    line-height: 1.5;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 10px;
    border-top: 1px solid #e2e8f0;
}

.news-card-meta .views,
.news-card-meta .comments {
    display: flex;
    align-items: center;
    gap: 3px;
    font-size: 12px;
    color: #94a3b8;
}

.news-card-meta .views i,
.news-card-meta .comments i {
    font-size: 13px;
}

.news-card-meta .read-more {
    display: flex;
    align-items: center;
    gap: 3px;
    font-size: 12px;
    font-weight: 600;
    color: #0891b2;
    text-decoration: none;
    transition: all 0.3s ease;
}

.news-card-meta .read-more:hover {
    color: #22d3ee;
    gap: 5px;
}

/* 分页 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 40px;
}

.pagination-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: #ffffff;
    border: 2px solid #e2e8f0;
    color: #64748b;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.pagination-link:hover:not(.disabled) {
    background: #22d3ee;
    border-color: #22d3ee;
    color: #ffffff;
    transform: translateY(-2px);
}

.pagination-link.active {
    background: linear-gradient(135deg, #22d3ee 0%, #0891b2 100%);
    border-color: #22d3ee;
    color: #ffffff;
}

.pagination-link.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination-dots {
    color: #94a3b8;
    font-weight: 600;
}

/* ========== 侧边栏 ========== */
.news-sidebar {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.sidebar-widget {
    background: #ffffff;
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.widget-title {
    font-size: 20px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e2e8f0;
}

.widget-title i {
    color: #0891b2;
    font-size: 22px;
}

/* 热门新闻 */
.popular-news-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.popular-news-item {
    display: flex;
    gap: 15px;
    padding: 12px;
    border-radius: 12px;
    background: #f8fafc;
    text-decoration: none;
    transition: all 0.3s ease;
}

.popular-news-item:hover {
    background: #e0f2fe;
    transform: translateX(5px);
}

.popular-news-item .rank {
    width: 30px;
    height: 30px;
    background: linear-gradient(135deg, #22d3ee 0%, #0891b2 100%);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    flex-shrink: 0;
}

.popular-news-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.popular-news-info h4 {
    font-size: 15px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 5px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.popular-news-info .meta {
    font-size: 13px;
    color: #94a3b8;
}

.popular-news-info .meta i {
    margin-right: 4px;
}

/* 标签云 */
.tags-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag {
    padding: 8px 16px;
    background: #f8fafc;
    border-radius: 20px;
    font-size: 14px;
    color: #64748b;
    text-decoration: none;
    transition: all 0.3s ease;
}

.tag:hover {
    background: linear-gradient(135deg, #22d3ee 0%, #0891b2 100%);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(34, 211, 238, 0.3);
}

/* 订阅区域 */
.newsletter-widget p {
    font-size: 14px;
    color: #64748b;
    margin-bottom: 15px;
    line-height: 1.6;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.newsletter-form input {
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.newsletter-form input:focus {
    outline: none;
    border-color: #22d3ee;
    box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.1);
}

.btn-sm {
    padding: 10px 20px;
    font-size: 14px;
}

/* 联系方式 */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: #f8fafc;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.contact-item:hover {
    background: #e0f2fe;
    transform: translateX(5px);
}

.contact-item i {
    font-size: 20px;
    color: #0891b2;
}

.contact-item span {
    font-size: 15px;
    color: #1e293b;
    font-weight: 500;
}

/* ========== CTA区域 ========== */
.cta-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #22d3ee 0%, #0891b2 100%);
    text-align: center;
}

.cta-content h2 {
    font-size: 36px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 15px;
}

.cta-content p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 30px;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.cta-buttons .btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.cta-buttons .btn-primary {
    background: #ffffff;
    color: #0891b2;
}

.cta-buttons .btn-primary:hover {
    background: #f8fafc;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.cta-buttons .btn-outline {
    background: transparent;
    border: 2px solid #ffffff;
    color: #ffffff;
}

.cta-buttons .btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
}

/* ========== 页脚样式 ========== */
/* ========== 响应式设计 ========== */
@media (max-width: 1200px) {
    .news-layout {
        grid-template-columns: 1fr 300px;
    }
}

@media (max-width: 992px) {
    .page-header {
        padding: 30px 0 40px;
    }
    
    .page-title {
        font-size: 2rem;
    }
    
    .page-subtitle {
        font-size: 1rem;
    }
    
    .news-layout {
        grid-template-columns: 1fr;
    }
    
    .news-sidebar {
        order: -1;
    }
}

@media (max-width: 768px) {
    /* 新闻区域优化 */
    .news-section {
        padding: 120px 0 60px;
    }

    /* 页面标题区域优化 - 统一移动端字体标准 */
    .page-header {
        padding: 25px 0 35px;
        border-radius: 12px;
        margin-bottom: 30px;
    }
    
    .page-title {
        font-size: 2rem;
        margin-bottom: 16px;
        line-height: 1.2;
    }
    
    .page-subtitle {
        font-size: 1rem;
        margin-bottom: 12px;
    }
    
    /* 在移动端隐藏侧边栏 */
    .news-sidebar {
        display: none;
    }
    
    .news-card {
        flex-direction: column;
        height: auto;
    }
    
    .news-card-image {
        width: 100%;
        height: 160px;
    }
    
    .news-card-image i {
        font-size: 60px;
    }
    
    .news-card-content {
        padding: 16px;
    }
    
    .news-card h3 {
        font-size: 15px;
    }
    
    .news-card p {
        font-size: 13px;
    }
    
    .cta-content h2 {
        font-size: 28px;
    }
    
    .cta-content p {
        font-size: 16px;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-buttons .btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .page-header {
        padding: 20px 0 30px;
        border-radius: 8px;
    }
    
    .page-title {
        font-size: 1.75rem;
        margin-bottom: 12px;
        line-height: 1.2;
    }

    .page-subtitle {
        font-size: 0.875rem;
        margin-bottom: 10px;
    }
    
    .news-card h3 {
        font-size: 14px;
    }
    
    .news-card p {
        font-size: 12px;
        -webkit-line-clamp: 1;
    }
    
    .news-card-meta {
        font-size: 11px;
    }
    
    .sidebar-widget {
        padding: 20px;
    }
    
    .widget-title {
        font-size: 18px;
    }
    
    /* 分页组件优化 */
    .pagination {
        gap: 6px;
    }
    
    .pagination-link {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }
    
    /* 热门新闻优化 */
    .popular-news-item {
        padding: 10px;
    }
    
    .popular-news-item .rank {
        width: 26px;
        height: 26px;
        font-size: 13px;
    }
    
    .popular-news-info h4 {
        font-size: 14px;
    }
    
    /* 标签云优化 */
    .tag {
        padding: 6px 12px;
        font-size: 13px;
    }
    
    /* 联系方式优化 */
    .contact-item {
        padding: 10px;
    }
    
    .contact-item i {
        font-size: 18px;
    }
    
    .contact-item span {
        font-size: 14px;
    }
}

/* 480px及以下屏幕优化 */
@media (max-width: 480px) {
    /* 新闻区域优化 */
    .news-section {
        padding: 100px 0 40px;
    }

    /* 页面标题区域优化 - 统一移动端字体标准 */
    .page-header {
        padding: 15px 0 20px;
        margin-bottom: 25px;
    }
    
    .page-title {
        font-size: 1.75rem;
        margin-bottom: 12px;
        line-height: 1.2;
    }
    
    .page-subtitle {
        font-size: 0.875rem;
        margin-bottom: 10px;
    }
    
    .news-layout {
        gap: 25px;
    }
    
    /* 新闻卡片优化 */
    .news-card {
        border-radius: 12px;
        margin-bottom: 0;
    }
    
    .news-card-image {
        height: 140px;
    }
    
    .news-card-image i {
        font-size: 50px;
    }
    
    .news-card-badge {
        padding: 4px 8px;
        font-size: 10px;
        top: 8px;
        left: 8px;
    }
    
    .news-card-date {
        padding: 4px 10px;
        top: 8px;
        right: 8px;
    }
    
    .news-card-date .day {
        font-size: 16px;
    }
    
    .news-card-date .month {
        font-size: 9px;
    }
    
    .news-card-content {
        padding: 14px;
    }
    
    .news-card h3 {
        font-size: 13px;
        margin-bottom: 6px;
        -webkit-line-clamp: 2;
    }
    
    .news-card p {
        font-size: 11px;
        margin-bottom: 8px;
        -webkit-line-clamp: 2;
    }
    
    .news-card-meta {
        padding-top: 8px;
        gap: 8px;
    }
    
    .news-card-meta .views,
    .news-card-meta .comments,
    .news-card-meta .read-more {
        font-size: 11px;
    }
    
    .news-card-meta .views i,
    .news-card-meta .comments i {
        font-size: 12px;
    }
    
    /* 分页组件优化 */
    .pagination {
        margin-top: 30px;
        gap: 4px;
    }
    
    .pagination-link {
        width: 32px;
        height: 32px;
        font-size: 13px;
        border-width: 1.5px;
    }
    
    /* 侧边栏优化 */
    .news-sidebar {
        gap: 20px;
    }
    
    .sidebar-widget {
        padding: 16px;
        border-radius: 12px;
    }
    
    .widget-title {
        font-size: 16px;
        margin-bottom: 15px;
        padding-bottom: 12px;
        gap: 8px;
    }
    
    .widget-title i {
        font-size: 18px;
    }
    
    /* 热门新闻优化 */
    .popular-news-list {
        gap: 12px;
    }
    
    .popular-news-item {
        padding: 10px;
        gap: 12px;
    }
    
    .popular-news-item .rank {
        width: 24px;
        height: 24px;
        font-size: 12px;
    }
    
    .popular-news-info h4 {
        font-size: 13px;
        margin-bottom: 4px;
    }
    
    .popular-news-info .meta {
        font-size: 12px;
    }
    
    /* 标签云优化 */
    .tags-cloud {
        gap: 8px;
    }
    
    .tag {
        padding: 5px 10px;
        font-size: 12px;
        border-radius: 16px;
    }
    
    /* 订阅区域优化 */
    .newsletter-widget p {
        font-size: 13px;
        margin-bottom: 12px;
    }
    
    .newsletter-form input {
        padding: 10px 14px;
        font-size: 13px;
    }
    
    .btn-sm {
        padding: 8px 16px;
        font-size: 13px;
    }
    
    /* 联系方式优化 */
    .contact-info {
        gap: 12px;
    }
    
    .contact-item {
        padding: 10px;
        gap: 10px;
    }
    
    .contact-item i {
        font-size: 18px;
    }
    
    .contact-item span {
        font-size: 13px;
    }
    
    /* CTA区域优化 */
    .cta-section {
        padding: 50px 0;
    }
    
    .cta-content h2 {
        font-size: 24px;
        margin-bottom: 12px;
    }
    
    .cta-content p {
        font-size: 14px;
        margin-bottom: 20px;
    }
    
    .cta-buttons {
        gap: 12px;
    }
    
    .cta-buttons .btn {
        padding: 12px 24px;
        font-size: 14px;
        max-width: 260px;
    }
}