.swiper {
    width: 100%;
    height: 250px; /* 稍微增加高度 */
    position: relative;
}

.swiper-slide {
    position: relative;
}

.swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* 全图阴影效果 */
    filter: brightness(0.8);
    box-shadow: inset 0 0 120px rgba(0, 0, 0, 0.6);
}

.slide-title {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    text-align: start;
    padding: 15px;
    font-size: 18px;
    z-index: 2;
    border-radius: 8px;
    width: 90%;
    max-width: 850px;
}

/* 箭头样式修改 */
.swiper-button-next,
.swiper-button-prev {
    color: white !important;
    padding: 10px; /* 新增padding */
    width: 10px;
    height: 10px;
    border-radius: 50%;
    transition: all 0.3s;
    font-size: 24px;
}

/* 分页指示器位置调整 */
.swiper-pagination {
    bottom: 10px !important;
}

.swiper-pagination-bullet {
    width: 6px !important; /* 调大尺寸 */
    height: 6px !important;
    opacity: 0.5 !important;
    margin: 0 8px !important; /* 增加间距 */
    background: white !important;
    transition: all 0.3s !important;
}

.swiper-pagination-bullet-active {
    opacity: 1 !important;
    transform: scale(1.3); /* 激活状态放大 */
    box-shadow: 0 0 8px rgba(246, 171, 84, 0.5); /* 添加发光效果 */
    background: #f6ab54 !important;
}

/* 2. CSS样式 - 添加到主题样式表 */
.topic-tabs-container {
    margin: 20px 0;
}

.topic-tabs-nav {
    display: flex;
    border-bottom: 2px solid #eee;
    margin: 0;
    padding: 0;
    list-style: none;
}

.topic-tabs-nav li {
    padding: 12px 20px;
    cursor: pointer;
    color: #666;
    background: #f5f5f5;
    margin-right: 5px;
    border-radius: 4px 4px 0 0;
    transition: all 0.3s;
}

.topic-tabs-nav li.active {
    background: #fff;
    color: #0073aa;
    border-bottom: 2px solid #0073aa;
    margin-bottom: -2px;
}

.tab-container {
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: column;
    margin-bottom: 50px;
}

.tabs {
    display: flex;
    height: 50px;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow-x: scroll;
}

.tab-item {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0 15px;
    font-size: 18px;
    color: #a6a6a6;
    transition: all 0.3s;
    border-bottom: 2px solid transparent;
    white-space: nowrap;
}

.tab-item.active {
    color: #010101;
    border-bottom-color: #f6ab54;
}

.content-container {
    flex: 1;
    overflow: auto;
}

.content-item {
    display: none;
    height: 100%;
    padding: 10px;
}

.content-item.active {
    display: block;
}

.content-item ul {
    list-style: none;
}

.content-item ul li {
    padding: 10px 0 15px 0;
    border-bottom: 1px solid #ededed;
}

.content-item ul li a {
    color: black;
    font-size: 16px;
    text-decoration: none;
    line-height: 1.1;
}

/* 弹性盒子布局容器 */
.topic-meta-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;

}

/* 左侧作者样式 */
.topic-author {
    color: #2573d4;
    flex: 1;
    font-size: 16px;
}

/* 右侧时间样式 */
.topic-time {
    color: #a6a6a6;
    margin-left: auto;
    padding-left: 15px;
    position: relative;
    font-size: 14px;
}

.menu-item-has-children :only-child {
    color: #ef9528;
}

/* 按钮样式 */
#backToTop {
    display: none; /* 默认隐藏 */
    position: fixed; /* 固定定位 */
    bottom: 80px;
    right: 20px;
    z-index: 1;
    border: none;
    outline: none;
    background-color: #ef9528;
    color: white;
    cursor: pointer;
    font-size: 24px;
    transition: all 0.3s;
    width: 70px;
    height: 70px;
    border-radius: 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

/* 箭头样式 */
.arrow {
    display: inline-block;
    width: 30px;
    height: 30px;
    border: solid white;
    border-width: 0 5px 5px 0;
    transform: rotate(-135deg);
    margin-top: 15px;
}

#floatingAd {
    position: fixed;
    bottom: 80px;
    right: 20px;
    z-index: 1;
    width: 150px;
    height: 200px;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}

.adSwiper {
    width: 100%;
    height: 100%;
}

.adSwiper .swiper-slide {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px;
}

.ad-image {
    width: 80px;
    height: 80px;
    margin-bottom: 10px;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-content: center;
    justify-content: center;
    align-items: center;

}

.ad-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    box-shadow: unset;
}

.ad-buttons {
    display: flex;
    gap: 5px;
    margin-bottom: 10px;
}

.ad-btn {
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    text-decoration: none;
    color: white;
    transition: all 0.3s;
}

.ad-btn.website {
    background-color: #f16621;
}

.ad-btn.register {
    background-color: #00545e;
}

.ad-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.ad-text {
    font-size: 14px;
    color: #333;
    text-align: center;
    line-height: 1.3;
}

/* 关闭按钮 */
.close-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 24px;
    height: 24px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.2s;
    z-index: 2;
}

.close-btn:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: scale(1.1);
}

.ast-header-break-point #ast-mobile-header {
    display: none;
}

.ast-container {
    padding: 0;
}

.content-item ul {
    margin: 0;
}