body {
    margin: 0;
    font-family: "Microsoft YaHei";
    background: #f5f7fa;
}

.container {
    width: 1300px;
    margin: auto;
}

.header {
    text-align: center;
    font-size: 28px;
    margin: 20px;
}

/* 吸顶导航 */
.nav-bar {
    background: #fff;
    padding: 10px 0;
    text-align: center;
    position: sticky;
    top: 0;
    z-index: 999;
    margin-bottom: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.nav-bar span {
    margin: 0 10px;
    cursor: pointer;
}

.nav-bar span.active {
    color: #0077ff;
    font-weight: bold;
}

.search-box {
    display: flex;
    justify-content: center;
    margin: 10px 0;
}

.search-box input {
    width: 300px;
    padding: 8px;
    border-radius: 20px;
    border: 1px solid #ccc;
}

.search-box button {
    margin-left: 10px;
    padding: 8px 15px;
    border: none;
    background: #333;
    color: #fff;
    border-radius: 20px;
}

.main {
    display: flex;
    gap: 20px;
}

.left {
    flex: 3;
}

.right {
    flex: 1;
    background: #fff;
    padding: 20px;
    border-radius: 15px;
}

.carousel {
    height: 340px;
    overflow: hidden;
    position: relative;
    border-radius: 15px;
    background: #eee;
}

.carousel-track {
    display: flex;
    transition: .5s;
}

.slide {
    min-width: 100%;
}

.slide img {
    width: 100%;
    height: 340px;
    object-fit: cover;
}

.carousel-title {
    position: absolute;
    bottom: 0;
    width: 100%;
    padding: 20px;
    color: #fff;
    background: linear-gradient(to top, rgba(0, 0, 0, .7), transparent);
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, .5);
    color: #fff;
    border: none;
    padding: 10px;
    cursor: pointer;
}

.prev {
    left: 10px;
}

.next {
    right: 10px;
}

.section {
    margin-top: 20px;
    background: #fff;
    padding: 20px;
    border-radius: 15px;
}

.news-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.news-item,
.hot-item {
    border-bottom: 1px solid #eee;
    padding: 12px 0;
}

a {
    text-decoration: none;
    color: #333;
}

a:hover {
    color: #0077ff;
}

.category-title {
    margin-top: 20px;
    font-weight: bold;
}

/* 骨架 */
.skeleton {
    background: linear-gradient(90deg, #eee, #ddd, #eee);
    background-size: 200% 100%;
    animation: shimmer 1.2s infinite;
    border-radius: 6px;
}

@keyframes shimmer {
    0% {
        background-position: -200px;
    }

    100% {
        background-position: 200px;
    }
}

.skeleton-carousel {
    height: 340px;
}

.skeleton-text {
    height: 18px;
    margin: 10px 0;
}

#loadingMore {
    text-align: center;
    padding: 15px;
    display: none;
}

#backTop {
    position: fixed;
    right: 30px;
    bottom: 50px;
    display: none;
    padding: 10px;
    background: #333;
    color: #fff;
    border: none;
    border-radius: 8px;
}