/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "微软雅黑", "思源黑体", sans-serif;
}
body {
    background-color: #FFFFFF;
    color: #333333;
    font-size: 18px;
    line-height: 1.8;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
a {
    color: #333;
    text-decoration: none;
}
a:hover {
    color: #FF6C00;
}
button, input {
    font-size: 18px;
    padding: 8px 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
}
button {
    background-color: #FF6C00;
    color: white;
    border: none;
    cursor: pointer;
}
button:hover {
    background-color: #e56000;
}
.header {
    padding: 20px 0;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}
.logo {
    font-size: 24px;
    font-weight: bold;
    color: #FF6C00;
}
.nav a {
    margin: 0 15px;
}
.font-control {
    display: flex;
    gap: 10px;
}
.font-control button {
    width: 40px;
    height: 40px;
    padding: 0;
}
.ad-slot {
    width: 100%;
    height: 90px;
    background-color: #f5f5f5;
    margin: 15px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    border: 1px dashed #ccc;
    text-align: center;
}
.ad-slot img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}
.ad-slot-sm {
    height: 50px;
}
.search {
    margin: 15px 0;
    display: flex;
    justify-content: center;
    gap: 10px;
}
.search input {
    width: 300px;
}
.slogan {
    text-align: center;
    margin: 20px 0;
}
.slogan h1 {
    font-size: 28px;
    margin-bottom: 10px;
}
.slogan p {
    color: #666;
}
.categories {
    display: flex;
    justify-content: space-between;
    margin: 20px 0;
    gap: 10px;
}
.category-item {
    flex: 1;
    background-color: #f5f5f5;
    padding: 20px;
    text-align: center;
    border-radius: 8px;
}
.category-item h3 {
    margin-bottom: 5px;
    color: #FF6C00;
}
.category-item p {
    font-size: 16px;
    color: #666;
}
.recommend {
    margin: 20px 0;
    padding: 15px;
    background-color: #fafafa;
    border-left: 4px solid #FF6C00;
}
.recommend-title {
    font-weight: bold;
    margin-bottom: 10px;
}
.recommend-item {
    font-size: 20px;
}
.article-list {
    margin: 20px 0;
}
.list-title {
    text-align: center;
    margin-bottom: 20px;
    font-size: 24px;
}
.article-item {
    padding: 15px 0;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.article-title {
    font-size: 20px;
    flex: 1;
}
.article-meta {
    color: #999;
    font-size: 16px;
    margin-left: 20px;
    text-align: right;
}
.pagination {
    margin: 30px 0;
    text-align: center;
}
.pagination a {
    margin: 0 10px;
    padding: 8px 15px;
    border: 1px solid #eee;
    border-radius: 4px;
}
.pagination a:hover {
    background-color: #FF6C00;
    color: white;
    border-color: #FF6C00;
}
.footer {
    margin-top: 30px;
    padding: 20px 0;
    border-top: 1px solid #eee;
    text-align: center;
    color: #666;
    font-size: 16px;
}
.cate-header {
    margin: 20px 0;
    padding: 15px;
    border-bottom: 2px solid #FF6C00;
}
.cate-header h1 {
    font-size: 28px;
    color: #FF6C00;
}
.cate-header p {
    color: #666;
    margin-top: 10px;
}
@media (max-width: 768px) {
    .header {
        flex-direction: column;
        gap: 15px;
    }
    .nav {
        width: 100%;
        text-align: center;
    }
    .categories {
        flex-direction: column;
    }
    .article-item {
        flex-direction: column;
        align-items: flex-start;
    }
    .article-meta {
        margin-left: 0;
        text-align: left;
        margin-top: 5px;
    }
    .ad-slot {
        height: auto;
        padding: 5px;
    }
}
