/* 资讯列表页面专用样式 */

/* 搜索区域 */
.search-section {
    background: white;
    padding: 15px;
    border-bottom: 1px solid #e9ecef;
}

.search-wrapper {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    align-items: center;
}

.search-icon {
    position: absolute;
    left: 18px;
    color: #74b9ff;
    font-size: 16px;
    z-index: 1;
}

.search-input {
    width: 100%;
    padding: 12px 45px 12px 45px;
    border: 2px solid #e9ecef;
    border-radius: 25px;
    font-size: 14px;
    outline: none;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.search-input:focus {
    border-color: #74b9ff;
    box-shadow: 0 0 0 3px rgba(116, 185, 255, 0.1);
    background: white;
}

.search-clear {
    position: absolute;
    right: 15px;
    background: none;
    border: none;
    color: #bdc3c7;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-clear:hover {
    color: #e74c3c;
    transform: scale(1.1);
}

/* 新闻栏目分类 */
.news-categories {
    background: white;
    padding: 15px;
    border-bottom: 1px solid #f0f0f0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.category-tabs {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.category-tabs::-webkit-scrollbar {
    display: none;
}

.category-tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 15px;
    background: #f8f9fa;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    min-width: 80px;
}

.category-tab i {
    font-size: 18px;
    color: #636e72;
    margin-bottom: 5px;
    transition: all 0.3s ease;
}

.category-tab span {
    font-size: 12px;
    color: #636e72;
    font-weight: 500;
    transition: all 0.3s ease;
}

.category-tab.active {
    background: linear-gradient(135deg, #74b9ff, #0984e3);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(116, 185, 255, 0.3);
}

.category-tab.active i,
.category-tab.active span {
    color: white;
}

.category-tab:hover:not(.active) {
    background: #e9ecef;
    transform: translateY(-1px);
}

/* 资讯列表 */
.news-list-section {
    padding: 15px;
    margin-bottom: 80px;
}

.news-list {
    display: flex;
    flex-direction: column;
    /*gap: 15px;*/
}

.news-item {
    background: white;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    border: 1px solid #f0f0f0;
    display: block;
}

.news-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
    border-color: #74b9ff;
}

.news-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    color: white;
}

.news-badge.policy {
    background: linear-gradient(135deg, #a29bfe, #6c5ce7);
}

.news-badge.news {
    background: linear-gradient(135deg, #74b9ff, #0984e3);
}

.news-badge.notice {
    background: linear-gradient(135deg, #fdcb6e, #e17055);
}

.news-badge.activity {
    background: linear-gradient(135deg, #fd79a8, #e84393);
}

.news-title {
    font-size: 17px;
    font-weight: 700;
    color: #2d3436;
    margin-bottom: 10px;
    line-height: 1.4;
    padding-right: 80px;
}

.news-summary {
    font-size: 14px;
    color: #636e72;
    line-height: 1.6;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-clamp: 2;
    overflow: hidden;
}

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

.pagination button {
    min-width: 38px;
    height: 38px;
    border-radius: 10px;
    border: 1px solid #e0e7ff;
    background: white;
    color: #4c5b8f;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.pagination button:hover {
    border-color: #74b9ff;
    color: #74b9ff;
    box-shadow: 0 4px 12px rgba(116, 185, 255, 0.18);
}

.pagination button.active {
    background: linear-gradient(135deg, #74b9ff, #0984e3);
    border-color: transparent;
    color: white;
    box-shadow: 0 8px 20px rgba(116, 185, 255, 0.35);
}

.pagination button:disabled {
    border-color: #e3e7f3;
    color: #b0b7c6;
    cursor: not-allowed;
    box-shadow: none;
}

.news-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.news-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: #95a5a6;
}

.news-meta i {
    font-size: 12px;
}

.news-date {
    color: #74b9ff;
}

.news-views {
    color: #00b894;
}

.news-category {
    color: #fd79a8;
}

/* 加载更多 */
.load-more {
    text-align: center;
    margin-top: 30px;
    padding: 20px 0;
}

.btn-load-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 30px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border: 1px solid #dfe6e9;
    border-radius: 25px;
    color: #636e72;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-load-more:hover {
    background: linear-gradient(135deg, #74b9ff, #0984e3);
    color: white;
    border-color: #74b9ff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(116, 185, 255, 0.3);
}

.btn-load-more i {
    transition: transform 0.3s ease;
}

.btn-load-more:hover i {
    transform: rotate(180deg);
}

/* 无数据提示 */
.no-data {
    text-align: center;
    padding: 60px 20px;
    color: #95a5a6;
}

.no-data i {
    font-size: 60px;
    color: #dfe6e9;
    margin-bottom: 20px;
}

.no-data p {
    font-size: 14px;
    margin-top: 10px;
}

/* 响应式设计 */
@media (max-width: 375px) {
    .news-categories {
        padding: 12px;
    }
    
    .category-tab {
        min-width: 70px;
        padding: 8px 12px;
    }
    
    .category-tab i {
        font-size: 16px;
    }
    
    .category-tab span {
        font-size: 11px;
    }
    
    .news-item {
        padding: 15px;
    }
    
    .news-title {
        font-size: 16px;
        padding-right: 70px;
    }
    
    .news-summary {
        font-size: 13px;
    }
    
    .news-badge {
        font-size: 10px;
        padding: 3px 10px;
    }
}

@media (min-width: 768px) {
    .news-list-section {
        max-width: 900px;
        margin: 0 auto 80px;
        padding: 30px 20px;
    }
    
    .news-categories {
        padding: 20px;
    }
    
    .category-tabs {
        justify-content: center;
        gap: 15px;
    }
    
    .category-tab {
        min-width: 100px;
        padding: 12px 20px;
    }
    
    .category-tab i {
        font-size: 20px;
    }
    
    .category-tab span {
        font-size: 13px;
    }
    
    .news-list {
        gap: 20px;
    }
    
    .news-item {
        padding: 25px;
    }
    
    .news-title {
        font-size: 19px;
    }
    
    .news-summary {
        font-size: 15px;
    }
    
    .news-meta span {
        font-size: 13px;
    }
}

