
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}
body {
    background-color: #f4f4f4;
    transition: background-color 0.3s ease;
}
.header {
    background-color: #333;
    color: white;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header h1 {
    margin: 0;
    font-size: 1.5rem;
}
.header-links a {
    color: white;
    text-decoration: none;
    margin-left: 11px;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}
.header-links a:hover {
    color: #f0c14b;
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}
.search-nav {
    background-color: #f8f8f8;
    border-bottom: 1px solid #e0e0e0;
    padding: 15px 0;
}
.search-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
}
.search-box {
    display: flex;
    width: 40%;
}
.search-box input {
    padding: 8px 15px;
    border: 1px solid #ddd;
    border-radius: 5px 0 0 5px;
    outline: none;
    font-size: 0.9rem;
}
.search-box button {
    padding: 8px 15px;
    background-color: #333;
    color: white;
    border: none;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
    font-size: 0.9rem;
}
.categories {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.categories a {
    color: #555;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}
.categories a:hover {
    color: #333;
}
.main-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 20px;
}
.news-section {
    background-color: white;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    padding: 20px;
}
.news-section h2 {
    margin-bottom: 15px;
    font-size: 1.5rem;
    color: #333;
}
.news-item {
    display: flex;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
    transition: transform 0.3s ease;
}
.news-item:hover {
    transform: translateY(-5px);
}
.news-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}
.news-item img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    margin-right: 15px;
    border-radius: 5px;
    transition: transform 0.3s ease;
}
.news-item:hover img {
    transform: scale(1.05);
}
.news-item .content h3 {
    margin: 0 0 8px;
    font-size: 1rem;
}
.news-item .content p {
    margin: 0 0 5px;
    color: #777;
    font-size: 0.85rem;
}
.news-item .content a {
    color: #0066cc;
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.3s ease;
}
.news-item .content a:hover {
    color: #333;
}
.sidebar-section {
    background-color: white;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin-bottom: 20px;
}
.sidebar-section h2 {
    margin-bottom: 15px;
    font-size: 1.2rem;
    color: #333;
}
.sidebar-item {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}
.sidebar-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}
.sidebar-item img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 5px;
    margin-bottom: 10px;
    transition: opacity 0.3s ease;
}
.sidebar-item:hover img {
    opacity: 0.8;
}
.sidebar-item h3 {
    margin: 0 0 5px;
    font-size: 0.95rem;
}
.sidebar-item p {
    margin: 0 0 5px;
    color: #777;
    font-size: 0.85rem;
}
.sidebar-item a {
    color: #0066cc;
    text-decoration: none;
    font-size: 0.85rem;
}
.sidebar-item a:hover {
    text-decoration: underline;
}
.footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 20px;
    margin-top: 40px;
}
.footer p {
    margin: 5px 0;
    font-size: 0.9rem;
}
.load-more {
    display: block;
    margin: 20px auto;
    padding: 10px 20px;
    background-color: #333;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-size: 0.9rem;
}
.load-more:hover {
    background-color: #555;
}

/* 响应式设计 */
@media screen and (min-width: 768px) {
    .header {
        padding: 15px 20px;
    }
    .header h1 {
        font-size: 1.8rem;
    }
    .header-links a {
        margin-left: 25px;
        font-size: 1rem;
    }
    .main-content {
        grid-template-columns: 7fr 3fr;
    }
    .search-box {
        width: 30%;
    }
    .news-item img {
        width: 120px;
        height: 120px;
    }
    .news-item .content h3 {
        font-size: 1.1rem;
    }
    .sidebar-section {
        margin-bottom: 20px;
    }
    .sidebar-item img {
        height: 150px;
    }
}

a {
    text-decoration: none;
}