.top-menu ul li a {
    font-size: 14px;
    /* display: flex; */
    align-items: center;
    padding: 0 12px;
    line-height: 57px;
    position: relative;
    z-index: 2;
    height: 57px;
}

.top-menu ul li a:hover {
    color: #dd9933;
    /* background-color: #ff4e00; */
}

/* 分页样式 */

#pagi {
    text-align: center;
    margin: 20px 0;
}

#pagi a,
#pagi b {
    border-radius: 10px;
    display: inline-block;
    padding: 5px 10px;
    margin: 0 5px;
    border: 1px solid #ddd;
    text-decoration: none;
}

#pagi a:hover {
    background-color: #f5f5f5;
}

.zit {
    background-color: #007bff;
    color: white;
    border-color: #007bff;
}

.select-container {
    margin: 20px;
    font-family: Arial, sans-serif;
}

select {
    padding: 8px 12px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 4px;
    cursor: pointer;
    min-width: 260px;
}

select:hover {
    border-color: #666;
}

select:focus {
    outline: none;
    border-color: #4CAF50;
    box-shadow: 0 0 5px rgba(76, 175, 80, 0.3);
}

/* 上一章文章下一章文章导航 */
.article-nav {
    display: flex;
    justify-content: space-between;
    /* margin: 40px 0; */
    padding: 20px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.nav-item {
    flex: 1;
    display: flex;
    align-items: center;
    padding: 0 20px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.nav-item:hover {
    color: #1890ff;
}

.nav-item::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: #1890ff;
    transition: width 0.3s ease;
}

.nav-item:hover::before {
    width: 100%;
}

.nav-item.prev {
    text-align: left;
}

.nav-item.next {
    text-align: right;
    flex-direction: row-reverse;
}

.nav-icon {
    font-size: 24px;
    margin: 0 15px;
    color: #999;
    transition: transform 0.3s ease;
}

.nav-item:hover .nav-icon {
    transform: translateX(-5px);
}

.nav-item.next:hover .nav-icon {
    transform: translateX(5px);
}

.nav-content {
    flex: 1;
}

.nav-label {
    font-size: 14px;
    color: #999;
    margin-bottom: 5px;
}

.nav-title {
    font-size: 16px;
    font-weight: 500;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}


/* 响应式设计 */
@media (max-width: 768px) {
    .article-nav {
        flex-direction: column;
        gap: 20px;
    }

    .nav-item {
        width: 100%;
    }

    .nav-item.next {
        flex-direction: row;
    }

    .nav-icon {
        margin: 0 10px;
    }
}

/* 添加一些动画效果 */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.article-nav {
    animation: slideIn 0.5s ease;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding: 20px;
}

.card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 20px;
    transition: transform 0.3s ease;
    min-height: 360px;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 15px;
}

.card h3 {
    margin-bottom: 10px;
    color: #333;
}

.card p {
    color: #666;
    line-height: 1.6;
}

/* 响应式布局 */
@media (max-width: 1024px) {
    .card-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .card-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .card-grid {
        grid-template-columns: 1fr;
    }
}

.carousel-container {
    position: relative;
    width: 100%;
    max-width: 1200px;
    /* margin: 50px auto; */
    overflow: hidden;
    border-radius: 10px;
}

.carousel-wrapper {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.carousel-slide {
    min-width: 100%;
    height: 225px;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 导航按钮样式 */
.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    padding: 16px;
    cursor: pointer;
    border: none;
    font-size: 18px;
    transition: background-color 0.3s;
    user-select: none;
    -webkit-user-select: none;
    outline: none;
}

.carousel-nav:active {
    transform: translateY(-50%) scale(0.95);
}

.carousel-nav:hover {
    background: rgba(0, 0, 0, 0.8);
}

.carousel-prev {
    left: 10px;
}

.carousel-next {
    right: 10px;
}

/* 指示器样式 */
.carousel-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background-color 0.3s;
}

.indicator.active {
    background: white;
}

/* 响应式设计 */
@media (max-width: 600px) {
    .carousel-slide {
        height: 250px;
    }

    .carousel-nav {
        padding: 12px;
        font-size: 14px;
    }
}

.wrapper-title {
    padding: 20px;
    /* text-align: center; */
    font-size: 26px;
    font-weight: bold;
    border-bottom: 1px solid #f5f6f7;
}