/* 基础样式 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
}

.back-btn {
    display: inline-block;
    margin-bottom: 1rem;
    padding: 0.8rem 1.5rem;
    background: #3498db;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: background 0.3s;
    font-size: 1rem;
}

.back-btn:hover {
    background: #2980b9;
}

h1 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
    font-size: 2rem;
}

/* 搜索栏 */
.news-tools {
    margin: 1.5rem 0;
}

.search-form {
    display: flex;
    gap: 0.5rem;
    max-width: 500px;
}

.search-form input {
    flex: 1;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

.search-form button {
    padding: 0.8rem 1.5rem;
    background: #1abc9c;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.3s;
}

.search-form button:hover {
    background: #16a085;
}

/* 新闻列表 */
.news-list {
    margin-top: 2rem;
}

.news-item {
    margin-bottom: 2rem;
    padding: 1.5rem;
    border: 1px solid #eee;
    border-radius: 8px;
    background: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: box-shadow 0.3s;
}

.news-item:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.news-image {
    margin-bottom: 1rem;
}

.news-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 4px;
}

.news-content h2 {
    color: #2c3e50;
    margin-bottom: 0.8rem;
    font-size: 1.5rem;
}

.news-content h2 a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s;
}

.news-content h2 a:hover {
    color: #3498db;
}

.news-date {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.news-excerpt {
    color: #444;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.read-more {
    color: #1abc9c;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
}

.read-more:hover {
    color: #16a085;
    text-decoration: underline;
}

/* 分页 */
.pagination {
    margin: 2rem 0;
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.page-link {
    padding: 0.8rem 1.2rem;
    background: #3498db;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: background 0.3s;
    font-size: 0.9rem;
}

.page-link:hover {
    background: #2980b9;
}

.page-info {
    color: #666;
    align-self: center;
    margin: 0 1rem;
}

.no-news {
    text-align: center;
    color: #666;
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 8px;
}

/* 移动端样式 */
@media (max-width: 768px) {
    .container {
        padding: 0.5rem;
    }

    h1 {
        font-size: 1.5rem;
    }

    .back-btn {
        width: 100%;
        text-align: center;
        margin-bottom: 1rem;
    }

    .search-form {
        flex-direction: column;
    }

    .search-form button {
        width: 100%;
    }

    .news-item {
        padding: 1rem;
        margin-bottom: 1.5rem;
    }

    .news-content h2 {
        font-size: 1.2rem;
    }

    .news-excerpt {
        font-size: 0.9rem;
    }

    .pagination {
        gap: 0.3rem;
    }

    .page-link {
        padding: 0.6rem 1rem;
    }
}

@media (max-width: 480px) {
    .news-image img {
        height: 150px;
    }

    .news-date {
        font-size: 0.8rem;
    }

    .page-link {
        font-size: 0.8rem;
        padding: 0.5rem 0.8rem;
    }
}