/* 新闻模块容器 - 已更新 */
.news-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
}

.section-header h2 {
    font-size: 2.8rem;
    color: var(--primary-dark);
    margin-bottom: 15px;
    font-weight: 700;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--gold-gradient);
    border-radius: 2px;
}

.section-header p {
    font-size: 1.2rem;
    color: var(--text-light);
    max-width: 700px;
    margin: 25px auto 0;
    line-height: 1.7;
}

/* 新闻列表样式 */
.news-list {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(212, 175, 55, 0.1);
}

.news-list-header {
    padding: 20px 25px;
    background: linear-gradient(90deg, var(--primary-light) 0%, #f9f4e3 100%);
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.news-list-header h3 {
    font-size: 1.4rem;
    color: var(--primary-dark);
    margin: 0;
    font-weight: 600;
}

.news-items {
    padding: 0;
    margin: 0;
    list-style: none;
}

.news-item {
    padding: 20px 25px;
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

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

.news-item:hover {
    background-color: #fffdf6;
}

.news-item:hover::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: var(--gold-gradient);
}

.news-date {
    display: block;
    font-size: 0.85rem;
    color: var(--primary-color);
    margin-bottom: 8px;
    font-weight: 500;
}

.news-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
    display: block;
    transition: color 0.3s ease;
    line-height: 1.4;
}

.news-item:hover .news-title {
    color: var(--primary-dark);
}

.news-excerpt {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 0;
}

.news-category {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(212, 175, 55, 0.1);
    color: var(--primary-dark);
    border-radius: 20px;
    font-size: 0.8rem;
    margin-top: 15px;
    font-weight: 500;
}

.view-more-container {
    text-align: center;
    padding: 20px;
    background: rgba(245, 240, 224, 0.5);
}

.view-more-btn {
    display: inline-flex;
    align-items: center;
    padding: 12px 30px;
    background: var(--gold-gradient);
    color: #fff;
    border: none;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.3);
    text-decoration: none;
}

.view-more-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(212, 175, 55, 0.4);
}

.view-more-btn i {
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.view-more-btn:hover i {
    transform: translateX(3px);
}

/* 标签样式 */
.tag-filter {
    margin: 1rem 0;
    padding: 0.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    border-radius: var(--radius-md);
    background-color: var(--white);
    box-shadow: var(--shadow-sm);
}

.tag {
    display: inline-block;
    padding: 0.4rem 0.8rem;
    background-color: var(--white);
    color: var(--text-color);
    text-decoration: none;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

/* 分页样式 */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 30px 0;
    padding: 15px;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.pagination .btn {
    width: 40px; /* 改为固定宽度，确保圆形 */
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%; /* 圆形 */
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid transparent; /* 移除边框杂色 */
    background: transparent;
    color: var(--text-color);
    text-decoration: none;
    padding: 0; /* 移除内边距，确保圆形 */
}

.pagination .btn:hover:not(.btn-primary):not(:disabled) {
    background: var(--primary-light);
    color: var(--primary-dark);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.pagination .btn-primary {
    background: linear-gradient(135deg, #ffd700 0%, #f9a825 100%); /* 明确的金色渐变 */
    border: none; /* 完全移除边框 */
    color: white;
    box-shadow: 0 3px 10px rgba(212, 175, 55, 0.3);
    position: relative;
    z-index: 1;
}

.pagination .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.4);
}

.pagination .btn-outline-primary.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    border-color: var(--border-color);
}

/* 自动颜色生成 */
.tag:nth-child(5n+1):not(.active) {
    background-color: rgba(207, 163, 64, 0.1);
    color: #CFA340;
}

.tag:nth-child(5n+2):not(.active) {
    background-color: rgba(100, 149, 237, 0.1);
    color: #6495ED;
}

.tag:nth-child(5n+3):not(.active) {
    background-color: rgba(60, 179, 113, 0.1);
    color: #3CB371;
}

.tag:nth-child(5n+4):not(.active) {
    background-color: rgba(220, 20, 60, 0.1);
    color: #DC143C;
}

.tag:nth-child(5n):not(.active) {
    background-color: rgba(138, 43, 226, 0.1);
    color: #8A2BE2;
}

.tag:hover:not(.active) {
    opacity: 0.8;
    transform: translateY(-2px);
}

.tag.active {
    background-color: #CFA340;
    color: white;
    box-shadow: 0 2px 5px rgba(207, 163, 64, 0.3);
}

/* 新闻详情模态框 */
.news-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    overflow-y: auto;
    padding: 40px 20px;
}

.modal-content {
    background: var(--white);
    margin: 0 auto;
    max-width: 900px;
    border-radius: var(--radius-lg);
    position: relative;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    background-image: var(--paper-texture), linear-gradient(to bottom, #fffaf0, #fffdf8);
}

.modal-header {
    padding: 30px 40px 20px;
    position: relative;
    text-align: center;
}

.news-modal-title {
    font-size: 2.2rem;
    color: var(--primary-dark);
    margin-bottom: 10px;
    line-height: 1.3;
    font-weight: 700;
}

.news-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
    color: var(--text-light);
    font-size: 0.95rem;
}

.meta-item {
    display: flex;
    align-items: center;
}

.meta-item i {
    margin-right: 6px;
    color: var(--primary-color);
}

.modal-close {
    position: absolute;
    top: 25px;
    right: 25px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.2rem;
    color: var(--primary-dark);
}

.modal-close:hover {
    background: var(--primary-color);
    color: white;
    transform: rotate(90deg);
}

.modal-body {
    padding: 0 40px 30px;
}

.news-image {
    width: 100%;
    height: 400px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    margin-bottom: 30px;
    box-shadow: var(--shadow-md);
    position: relative;
}

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

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

.image-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 10px 15px;
    font-size: 0.9rem;
}

.news-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #444;
}

.news-content p {
    margin-bottom: 20px;
    text-align: justify;
}

.news-content h3 {
    color: var(--primary-dark);
    margin: 30px 0 15px;
    font-size: 1.5rem;
    position: relative;
    padding-left: 15px;
}

.news-content h3::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    height: 25px;
    width: 5px;
    background: var(--gold-gradient);
    border-radius: 3px;
}

.news-content blockquote {
    border-left: 4px solid var(--primary-color);
    background: var(--primary-light);
    padding: 20px;
    margin: 25px 0;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    font-style: italic;
    color: #5c4a1f;
}

.news-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin: 30px 0;
}

.gallery-item {
    border-radius: var(--radius-sm);
    overflow: hidden;
    height: 180px;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-footer {
    padding: 25px 40px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(245, 240, 224, 0.3);
}

.news-tags {
    display: flex;
    gap: 10px;
}

.news-tag {
    padding: 5px 15px;
    background: rgba(212, 175, 55, 0.1);
    color: var(--primary-dark);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.social-share {
    display: flex;
    gap: 15px;
}

.share-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-dark);
    transition: all 0.3s ease;
    text-decoration: none;
    font-size: 1.1rem;
}

.share-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

/* 响应式设计 */
@media (max-width: 992px) {
    .news-gallery {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .section-header h2 {
        font-size: 2.2rem;
    }

    .section-header p {
        font-size: 1rem;
    }

    .modal-header {
        padding: 25px 20px 15px;
    }

    .news-modal-title {
        font-size: 1.8rem;
        padding-right: 30px;
    }

    .modal-body {
        padding: 0 20px 20px;
    }

    .news-image {
        height: 300px;
    }

    .news-meta {
        flex-direction: column;
        gap: 8px;
    }

    .modal-footer {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
}

@media (max-width: 576px) {
    .section-header h2 {
        font-size: 1.8rem;
    }

    .news-image {
        height: 200px;
    }

    .news-gallery {
        grid-template-columns: 1fr;
    }

    .news-content {
        font-size: 1rem;
    }
}