
/* 主要内容区 */
main {
    margin-top: 70px;
    padding-top: 30px;
}

/* 页面标题 */
.page-title-section {
    background: linear-gradient(135deg, #6b5ce7, #ff7f50);
    padding: 40px 0;
    color: white;
    text-align: center;
    border-radius: 10px;
    margin-bottom: 30px;
}

.page-title {
    font-size: 2.2rem;
    margin-bottom: 10px;
}

.page-description {
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
    opacity: 0.9;
}

/* 筛选区域 */
.filter-section {
    background: white;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.filter-title {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: #333;
    font-weight: 600;
}

.filter-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-tag {
    background: #f0f3f8;
    color: #6b5ce7;
    border-radius: 20px;
    padding: 8px 16px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.filter-tag:hover,
.filter-tag.active {
    background: #6b5ce7;
    color: white;
}

.filter-tag.active {
    border-color: #6b5ce7;
}

/* 搜索框 */
.news-search {
    margin-top: 15px;
    position: relative;
}

.news-search-input {
    width: 100%;
    padding: 12px 15px 12px 40px;
    border: 1px solid #e5e7eb;
    border-radius: 25px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.news-search-input:focus {
    outline: none;
    border-color: #6b5ce7;
    box-shadow: 0 0 0 3px rgba(107, 92, 231, 0.1);
}

.news-search-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
}

/* 新闻列表样式 */
.news-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 40px;
}

.news-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

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

.news-img-container {
    height: 200px;
    overflow: hidden;
    position: relative;
}

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

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

.news-category {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #6b5ce7;
    color: white;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 500;
    z-index: 1;
}

.news-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.news-date {
    color: #888;
    font-size: 0.8rem;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.news-date-icon {
    margin-right: 5px;
}

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

.news-card:hover .news-title {
    color: #6b5ce7;
}

.news-excerpt {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 20px;
    line-height: 1.6;
    flex-grow: 1;
}

.news-link {
    color: #6b5ce7;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    margin-top: auto;
    transition: all 0.3s ease;
}

.news-link:hover {
    color: #ff7f50;
}

.news-link-arrow {
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.news-link:hover .news-link-arrow {
    transform: translateX(5px);
}

/* 分页 */
.pagination {
    display: flex;
    justify-content: center;
    margin: 40px 0;
    gap: 5px;
}

.page-item {
    display: inline-block;
}

.page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: white;
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    font-weight: 500;
}

.page-link:hover {
    background: #f0f3f8;
}

.page-item.active .page-link {
    background: #6b5ce7;
    color: white;
}

.page-nav {
    color: #6b5ce7;
    background: white;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.page-nav:hover {
    background: #f0f3f8;
}

.page-nav.disabled {
    color: #ccc;
    pointer-events: none;
}

/* 订阅区域 */
.subscribe-section {
    background: white;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    margin-bottom: 40px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
    background: linear-gradient(135deg, #6b5ce7, #ff7f50);
    color: white;
}

.subscribe-title {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.subscribe-desc {
    margin-bottom: 25px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.subscribe-form {
    display: flex;
    max-width: 500px;
    margin: 0 auto;
}

.subscribe-input {
    flex-grow: 1;
    padding: 12px 15px;
    border: none;
    border-radius: 25px 0 0 25px;
    font-size: 1rem;
}

.subscribe-input:focus {
    outline: none;
}

.subscribe-btn {
    background: #ffde59;
    color: #333;
    border: none;
    border-radius: 0 25px 25px 0;
    padding: 0 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.subscribe-btn:hover {
    background: #fff;
}

/* 页脚 */
footer {
    background: #333;
    color: white;
    padding: 40px 0 20px;
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 20px;
}

.footer-logo span {
    color: #ffde59;
}

.social-links {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background: #ffde59;
    color: #333;
    transform: translateY(-3px);
}

.copyright {
    margin-top: 20px;
    color: #999;
    font-size: 0.9rem;
}

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

@media (min-width: 992px) {
    .news-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .page-title {
        font-size: 1.8rem;
    }

    .page-description {
        font-size: 1rem;
    }

    .news-title {
        font-size: 1.1rem;
    }

    .search-box {
        width: 150px;
    }

    .search-box:focus {
        width: 180px;
    }
}

@media (max-width: 768px) {
    .nav-left .nav-links {
        display: none;
    }

    .nav-right {
        display: none;
    }

    .mobile-nav {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: #6b5ce7;
        padding: 20px;
        transition: 0.5s ease-in-out;
        display: flex;
        flex-direction: column;
        z-index: 999;
    }

    .mobile-nav.active {
        left: 0;
    }

    .mobile-nav .nav-links {
        flex-direction: column;
        align-items: center;
        margin-bottom: 20px;
    }

    .mobile-nav .nav-links li {
        margin: 15px 0;
    }

    .mobile-search {
        width: 100%;
        margin-bottom: 20px;
    }

    .mobile-search .search-box {
        width: 100%;
        background: rgba(255, 255, 255, 0.3);
    }

    .mobile-login {
        width: 100%;
        text-align: center;
    }

    .hamburger {
        display: block;
    }

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

    .subscribe-input {
        border-radius: 25px;
    }

    .subscribe-btn {
        border-radius: 25px;
        padding: 12px;
    }
}

@media (max-width: 480px) {
    .page-title {
        font-size: 1.5rem;
    }

    .page-description {
        font-size: 0.9rem;
    }

    .filter-tag {
        font-size: 0.8rem;
        padding: 6px 12px;
    }

    .news-img-container {
        height: 180px;
    }

    .news-content {
        padding: 15px;
    }

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

    .news-excerpt {
        font-size: 0.85rem;
    }
}














.pagination {
    display: flex;
    justify-content: center;
    margin: 20px 0;
}

.pagination ul {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
}

.pagination li {
    margin: 0 5px;
}

.pagination li a,
.pagination li span {
    display: inline-block;
    padding: 8px 12px;
    text-decoration: none;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #333;
    background-color: #fff;
    transition: all 0.3s ease;
}

.pagination li a:hover {
    background-color: #f5f5f5;
    border-color: #ccc;
}

.pagination li.active span {
    background: linear-gradient(135deg, rgb(107, 92, 231), rgb(255, 127, 80));
    box-shadow: rgba(0, 0, 0, 0.1) 0px 2px 10px;


    color: #fff;
    cursor: default;
}

.pagination li.disabled span {
    color: #aaa;
    cursor: not-allowed;
    background-color: #f8f8f8;
}
