/* 新闻页面头部 */
.news-header {
    background: linear-gradient(135deg, #0d6efd 0%, #0dcaf0 100%);
    padding: 200px 0 100px;
    position: relative;
    overflow: hidden;
}

.news-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/><circle cx="50" cy="50" r="30" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></svg>');
    background-size: 300px;
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.news-header h1 {
    font-size: 3.5rem;
    font-weight: 800;
    color: white;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.news-header .breadcrumb {
    justify-content: center;
}

.news-header .breadcrumb-item a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
}

.news-header .breadcrumb-item.active {
    color: white;
}

.news-header .breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.6);
}

/* 新闻列表样式 */
.news-section {
    padding: 80px 0;
    background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 100%);
}

.news-section-title {
    font-size: 2rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 15px;
}

.news-section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(135deg, #0d6efd 0%, #0dcaf0 100%);
    border-radius: 2px;
}

/* 侧边栏样式 */
.news-sidebar {
    margin-bottom: 30px;
}

.sidebar-widget {
    background: white;
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.sidebar-widget:hover {
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
    transform: translateY(-5px);
}

.widget-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f1f3f5;
    position: relative;
}

.widget-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 40px;
    height: 2px;
    background: linear-gradient(135deg, #0d6efd 0%, #0dcaf0 100%);
}

/* 分类列表样式 */
.category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-item {
    margin-bottom: 8px;
}

.category-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    background: #f8f9fa;
    border-radius: 12px;
    color: #495057;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
}

.category-link:hover,
.category-link.active {
    background: linear-gradient(135deg, #0d6efd 0%, #0dcaf0 100%);
    color: white;
    transform: translateX(5px);
}

.category-link i {
    font-size: 1.1rem;
    margin-right: 10px;
}

.category-count {
    background: rgba(13, 110, 253, 0.1);
    color: #0d6efd;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.category-link:hover .category-count,
.category-link.active .category-count {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

/* 热门标签样式 */
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag-item {
    padding: 8px 18px;
    background: #f8f9fa;
    border-radius: 25px;
    color: #495057;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.tag-item:hover {
    background: linear-gradient(135deg, #0d6efd 0%, #0dcaf0 100%);
    color: white;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(13, 110, 253, 0.3);
}

/* 热门新闻样式 */
.hot-news-item {
    display: flex;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid #f1f3f5;
    transition: all 0.3s ease;
}

.hot-news-item:last-child {
    border-bottom: none;
}

.hot-news-item:hover {
    padding-left: 10px;
    background: linear-gradient(90deg, rgba(13, 110, 253, 0.05) 0%, transparent 100%);
}

.hot-news-number {
    flex-shrink: 0;
    width: 35px;
    height: 35px;
    background: linear-gradient(135deg, #0d6efd 0%, #0dcaf0 100%);
    color: white;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.95rem;
}

.hot-news-content {
    flex: 1;
    min-width: 0;
}

.hot-news-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #2c3e50;
    text-decoration: none;
    display: block;
    margin-bottom: 8px;
    line-height: 1.5;
    transition: all 0.3s ease;
}

.hot-news-title:hover {
    color: #0d6efd;
}

.hot-news-date {
    font-size: 0.85rem;
    color: #adb5bd;
}

/* 侧边栏搜索框样式 */
.sidebar-search {
    position: relative;
}

.sidebar-search input {
    width: 100%;
    padding: 15px 20px;
    padding-right: 50px;
    border: 2px solid #e9ecef;
    border-radius: 50px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.sidebar-search input:focus {
    outline: none;
    border-color: #0d6efd;
    background: white;
    box-shadow: 0 0 0 4px rgba(13, 110, 253, 0.1);
}

.sidebar-search button {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #0d6efd 0%, #0dcaf0 100%);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.sidebar-search button:hover {
    transform: translateY(-50%) scale(1.05);
    box-shadow: 0 5px 15px rgba(13, 110, 253, 0.4);
}

/* 统计卡片样式 */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.stat-card {
    background: linear-gradient(135deg, #0d6efd 0%, #0dcaf0 100%);
    padding: 20px;
    border-radius: 15px;
    text-align: center;
    color: white;
    transition: all 0.3s ease;
}

.stat-card:nth-child(2) {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.stat-card:nth-child(3) {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.stat-card:nth-child(4) {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.85rem;
    opacity: 0.9;
}

.news-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    height: 100%;
    position: relative;
}

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

.news-card-image {
    height: 240px;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}

.news-card-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.3) 0%, rgba(13, 202, 240, 0.3) 100%);
    opacity: 0;
    transition: all 0.3s ease;
}

.news-card:hover .news-card-image::before {
    opacity: 1;
}

.news-date {
    position: absolute;
    top: 15px;
    left: 15px;
    background: linear-gradient(135deg, #0d6efd 0%, #0dcaf0 100%);
    color: white;
    padding: 10px 20px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(13, 110, 253, 0.3);
    z-index: 1;
}

.news-date .day {
    font-size: 1.8rem;
    font-weight: 800;
    line-height: 1;
    display: block;
}

.news-date .month {
    font-size: 0.85rem;
    text-transform: uppercase;
}

.news-category {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(13, 17, 23, 0.8);
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    z-index: 1;
}

.news-card-content {
    padding: 30px;
}

.news-card-title {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: #2c3e50;
    transition: all 0.3s ease;
}

.news-card:hover .news-card-title {
    color: #0d6efd;
}

.news-card-excerpt {
    color: #6c757d;
    line-height: 1.8;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

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

.news-meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #6c757d;
    font-size: 0.9rem;
}

.news-meta-item i {
    color: #0d6efd;
}

.news-card-readmore {
    color: #0d6efd;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.news-card-readmore:hover {
    color: #0dcaf0;
}

.news-card-readmore i {
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.news-card:hover .news-card-readmore i {
    transform: translateX(5px);
}

/* 分页样式 */
.pagination {
    justify-content: center;
    margin-top: 60px;
}

.page-link {
    color: #0d6efd;
    border: 2px solid #e9ecef;
    padding: 10px 18px;
    margin: 0 5px;
    border-radius: 10px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.page-link:hover {
    background: linear-gradient(135deg, #0d6efd 0%, #0dcaf0 100%);
    border-color: #0d6efd;
    color: white;
}

.page-item.active .page-link {
    background: linear-gradient(135deg, #0d6efd 0%, #0dcaf0 100%);
    border-color: #0d6efd;
    color: white;
}