* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, "Microsoft YaHei", sans-serif;
    background-color: #f0f2f5;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

h1 {
    text-align: center;
    margin-bottom: 30px;
    color: #2c3e50;
    font-size: 28px;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

.news-card {
    background-color: #fff;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.news-card:hover {
    background-color: #f8f9fa;
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.card-content h3 {
    font-size: 16px;
    margin-bottom: 8px;
    color: #2c3e50;
}

.card-content p {
    font-size: 12px;
    line-height: 1.4;
    color: #666;
    word-break: break-all;
    margin-bottom: 8px;
}

/* 卡片描述样式 */
.card-description {
    font-size: 12px;
    line-height: 1.4;
    color: #666;
    margin-top: 8px;
    padding: 10px;
    background-color: #f8f9fa;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border: 1px solid #e9ecef;
}

.search-container {
    text-align: center;
    margin-bottom: 30px;
}

.search-box {
    display: inline-flex;
    margin-bottom: 15px;
}

.search-box input {
    width: 400px;
    height: 40px;
    padding: 0 15px;
    border: 2px solid #e0e0e0;
    border-radius: 4px 0 0 4px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.3s ease;
}

.search-box input:focus {
    border-color: #3498db;
}

.search-box button {
    height: 40px;
    padding: 0 20px;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 0 4px 4px 0;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.search-box button:hover {
    background-color: #2980b9;
}

.search-tags {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.search-tags a {
    padding: 5px 12px;
    background-color:#e0e0e0;
    /* background-color: #f0f0f0; */
    color: #333;
    text-decoration: none;
    border-radius: 15px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.search-tags a:hover {
    background-color: rgba(0, 120, 215, 0.3);
    /* background-color: #e0e0e0; */
}

.search-tags a.active {
    background: rgba(0, 120, 215, 0.3);
    color: white;
}

.category-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.tab {
    padding: 8px 20px;
    margin: 0 5px 10px;
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 16px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.tab:hover {
    background-color: #f5f5f5;
}

.tab.active {
    background-color: #3498db;
    color: white;
    border-color: #3498db;
}

/* 新闻导航区域样式 */
.news-navigation {
    background-color: #e9ecef;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

/* 收藏按钮样式 */
.bookmark-button {
    padding: 8px 16px;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 16px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.bookmark-button:hover {
    background-color: #2980b9;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    transform: translateY(-1px);
}

.bookmark-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* 回到顶部按钮样式 */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 16px;
    width: 100px;
    height: 40px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
}

.back-to-top:hover {
    background-color: #2980b9;
    transform: scale(1.1);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

/* 页脚 */
footer {
    background: rgba(255, 255, 255, 0.5);
    padding: 20px 0;
    text-align: center;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

footer p {
    color: #666;
    font-size: 14px;
    transition: color 0.3s ease;
}