
/* 页面标题区域 */
.page-hero {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.8)), url('https://img2.baidu.com/it/u=1166098408,811706935&fm=253&fmt=auto&app=138&f=JPEG?w=760&h=475') center/cover;
    color: white;
    padding: 4rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-hero h1 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-hero p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto;
}

/* 内容区块通用样式 */
.section {
    padding: 4rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--metal);
}

.section-title p {
    color: #666;
    max-width: 700px;
    margin: 0 auto;
}

/* 公告资讯列表样式 */
.news-container {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}

.news-sidebar {
    flex: 0 0 300px;
}

.news-main {
    flex: 1;
    min-width: 300px;
}

.news-categories {
    background-color: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
    margin-bottom: 1.5rem;
}

.news-categories h3 {
    color: var(--fire);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--metal);
}

.category-list {
    list-style: none;
}

.category-item {
    margin-bottom: 0.5rem;
}

.category-link {
    display: block;
    padding: 0.7rem 1rem;
    color: var(--dark);
    text-decoration: none;
    border-radius: 4px;
    transition: var(--transition);
}

.category-link:hover, .category-link.active {
    background-color: rgba(255, 69, 0, 0.1);
    color: var(--fire);
}

.news-count {
    float: right;
    background-color: #f0f0f0;
    padding: 0.2rem 0.5rem;
    border-radius: 10px;
    font-size: 0.8rem;
}

.hot-news {
    background-color: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
}

.hot-news h3 {
    color: var(--fire);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--metal);
}

.hot-news-item {
    display: flex;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
}

.hot-news-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.hot-news-rank {
    flex: 0 0 30px;
    font-weight: bold;
    color: var(--fire);
    font-size: 1.2rem;
}

.hot-news-content {
    flex: 1;
}

.hot-news-title {
    font-weight: bold;
    margin-bottom: 0.3rem;
}

.hot-news-title a {
    color: var(--dark);
    text-decoration: none;
    transition: var(--transition);
}

.hot-news-title a:hover {
    color: var(--fire);
}

.hot-news-date {
    font-size: 0.8rem;
    color: #999;
}

/* 新闻列表 */
.news-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.news-item {
    background-color: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: flex;
    flex-wrap: wrap;
}

.news-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.news-image {
    flex: 0 0 200px;
    margin-right: 1.5rem;
}

.news-image img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 6px;
}

.news-content {
    flex: 1;
    min-width: 300px;
}

.news-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 0.8rem;
}

.news-category {
    display: inline-block;
    background-color: rgba(255, 69, 0, 0.1);
    color: var(--fire);
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
}

.news-date {
    color: #999;
    font-size: 0.9rem;
}

.news-views {
    color: #999;
    font-size: 0.9rem;
}

.news-title {
    font-size: 1.3rem;
    font-weight: bold;
    margin-bottom: 0.8rem;
}

.news-title a {
    color: var(--dark);
    text-decoration: none;
    transition: var(--transition);
}

.news-title a:hover {
    color: var(--fire);
}

.news-excerpt {
    color: #666;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.news-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
}

.news-author {
    color: #666;
    font-size: 0.9rem;
}

.read-more {
    color: var(--fire);
    text-decoration: none;
    font-weight: bold;
    transition: var(--transition);
}

.read-more:hover {
    color: #e63e00;
}

.pagination {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

.pagination-list {
    display: flex;
    list-style: none;
    gap: 0.5rem;
}

.pagination-item a, .pagination-item span {
    display: block;
    padding: 0.5rem 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    color: var(--dark);
    transition: var(--transition);
}

.pagination-item a:hover {
    background-color: var(--gray);
}

.pagination-item.active a {
    background-color: var(--fire);
    color: white;
    border-color: var(--fire);
}

.pagination-item.disabled span {
    color: #999;
    cursor: not-allowed;
}

/* 页脚样式 */
footer {
    background-color: var(--dark);
    color: white;
    padding: 2.5rem 0;
    text-align: center;
}

.social-links {
    margin: 1rem 0;
}

.social-links a {
    color: white;
    margin: 0 0.8rem;
    font-size: 1.5rem;
    text-decoration: none;
    transition: var(--transition);
}

.social-links a:hover {
    color: var(--metal);
    transform: translateY(-3px);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .header-container {
        flex-direction: row;
        align-items: center;
    }

    nav ul {
        flex-direction: column;
        padding: 1rem 0;
    }

    nav li {
        margin: 0.5rem 0;
        width: 100%;
        text-align: center;
    }

    nav a {
        display: block;
        padding: 0.8rem 1rem;
    }

    .login-btn {
        margin: 0.5rem auto;
        display: block;
        width: 200px;
        text-align: center;
    }

    .page-hero h1 {
        font-size: 2.2rem;
    }

    .page-hero {
        padding: 3rem 0;
    }

    .section-title h2 {
        font-size: 1.8rem;
    }

    .news-container {
        flex-direction: column;
    }

    .news-sidebar {
        flex: 0 0 auto;
    }

    .news-item {
        flex-direction: column;
    }

    .news-image {
        margin-right: 0;
        margin-bottom: 1rem;
        flex: 0 0 auto;
    }
}