/* 文字锚点模块样式开始 */

/* 确保 maodian_text 模块的父容器支持 sticky 定位 */
[data-module-name="maodian_text"] {
    display: block !important;
    overflow: visible !important;
    height: auto !important;
    /* position: relative !important; */
    align-self: stretch !important; /* 让容器占满父容器宽度 */
    position: -webkit-sticky; /* Safari 兼容 */
    position: sticky !important;
    top: 0;
    z-index: 100;
}

/* Tab导航栏容器 */
.maodian_text_tabs-container {
    position: -webkit-sticky; /* Safari 兼容 */
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 12px;
    transition: box-shadow 0.3s ease;
    width: 100%; /* 确保宽度为100% */
    background-color: white; /* 添加背景色，避免内容透出 */
}

/* 吸顶时的阴影效果 */
.maodian_text_tabs-container.sticky-active {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    /* position: fixed;
    top: 0;
    left: 0; */
    width: 100%;
    z-index: 99999;
    background-color: white;
}

/* 横向滚动的Tab列表 */
.maodian_text_tabs-scroll {
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    padding: 0 16px;
    gap: 24px;
    /* 隐藏滚动条但保持滚动功能 */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

.maodian_text_tabs-scroll::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

/* 单个Tab项 */
.maodian_text_tab-item {
    flex-shrink: 0;
    font-size: 15px;
    line-height: 32px;
    color: #666;
    cursor: pointer;
    position: relative;
    white-space: nowrap;
    transition: color 0.3s ease;
    user-select: none;
    position: relative;
}

.maodian_text_tab-item.active {
    color: #4a90e2;
    font-weight: 500;
}
/* 激活状态的下划线 */
.maodian_text_tab-item.active::after {
    content: '';
    position: absolute;
    bottom: 0px;
    height: 2px;
    left: 0;
    right: 0;
    background-color: #4a90e2;
    border-radius: 1px;
    width: 70%;
    margin: 0 auto;
    z-index: 100;
}
/* 文字锚点模块样式结束 */

