/* 新闻列表页面公共样式 */

/* 新闻卡片样式 */
.news-theme .news-card {
    background: #f8f8f8;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    overflow: hidden;
    position: relative;
}

.news-theme .news-card:hover {
    border-color: rgba(237, 42, 20, 0.3);
    box-shadow: 0 8px 25px rgba(237, 42, 20, 0.15);
    transform: translateY(-2px);
}

/* 新闻卡片图片样式 */
.news-theme .news-card img {
    width: 100%;
    height: 250px;
    object-fit: fill;
    transition: transform 0.3s ease;
}

.news-theme .news-card:hover img {
    transform: scale(1.05);
}

/* 新闻分类标签样式 */
.news-theme .news-category {
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--primary-orange) 100%);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
}

/* 内容布局样式 */
.news-theme .conwidth {
    max-width: 1200px;
    margin: 0 auto;
}

.news-theme .owidth {
    width: 100%;
}

.news-theme .box {
    display: flex;
    flex-wrap: wrap;
}

.news-theme .leftbox {
    flex: 1;
    min-width: 300px;
}

.news-theme .rightbox {
    flex: 1;
    min-width: 300px;
}

.news-theme .txt {
    padding: 2rem 0;
}

.news-theme .t1 {
    /* margin-bottom: 1.5rem; */
}

.news-theme .t2 {
    margin-bottom: 2rem;
}

.news-theme .text-sm {
    font-size: 1rem;
    line-height: 1.8;
}

/* 分页样式 */
.news-theme .pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 3rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.news-theme .page-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border: 2px solid #E5E7EB;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
    color: #666666;
    font-weight: 500;
    font-size: 0.875rem;
    background: white;
    user-select: none;
}

.news-theme .page-item:hover:not(.disabled) {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.news-theme .page-item.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.news-theme .page-item.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    background: #F3F4F6;
    border-color: #D1D5DB;
}

.news-theme .page-item.disabled:hover {
    transform: none;
    box-shadow: none;
}

.news-theme .pagination-info {
    text-align: center;
    margin-bottom: 1rem;
    color: #666666;
    font-size: 0.875rem;
}

.news-theme .page-nav {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.75rem;
}

.news-theme .page-nav i {
    font-size: 0.75rem;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .news-theme .box {
        flex-direction: column;
    }

    .news-theme .leftbox,
    .news-theme .rightbox {
        width: 100%;
    }

    .news-theme .news-card {
        display: flex;
        flex-direction: row;
        align-items: flex-start;
        padding: 0.5rem;
        margin-bottom: 1rem;
    }

    .news-theme .news-card img {
        width: 100%;
        height: auto;
        object-fit: cover;
        transition: transform 0.3s ease;
    }

    .news-card > div:first-child {
        flex: 0 0 120px;
        height: 80px;
        margin-right: 1rem;
        border-radius: 4px;
        overflow: hidden;
    }

    .news-card .p-3 {
        flex: 1;
        padding: 0;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        height: 80px;
    }

    .news-card .p-3 p {
        display: none; /* 隐藏摘要 */
    }

    .news-card .p-3 h3 {
        font-size: 1rem;
        font-weight: 600;
        line-height: 1.6;
        margin-bottom: 0.5rem;
    }

    .news-card .p-3 .flex {
        margin-top: auto;
    }

    .news-card .p-3 .text-sm {
        font-size: 0.75rem;
    }

    .news-theme .news-card .p-3 .text-sm {
        font-size: 0.875rem;
    }
}

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.news-theme .fade-in-up {
    animation: fadeInUp 0.8s ease-out;
}