﻿/* ==========================================================================
   Topic Mobile CSS - 移动端主题样式表
   ==========================================================================
   
   目录：
   1. 基础设置 - 字体、隐藏PC端元素
   2. 面包屑导航 - 移动端面包屑样式
   3. 主题内容 - 标题、章节、内容区域样式
   4. 轮播图 - 图片轮播移动端样式
   5. WPP功能 - 点赞、浏览量样式
   6. 视频播放器 - 移动端视频控制样式
   7. 标签页 - Tab 切换组件移动端样式
   ========================================================================== */

@media only screen and (max-width: 768px) {
    /* ==========================================================================
       1. 基础设置
      ========================================================================== */
    .body {
        font-size: 14px;
        line-height: 24px;
    }
    
    .wt_pc_only{
        display: none;
    }
    
    ul {
        padding-inline-start: 20px;
    }
    
    /* ==========================================================================
       2. 面包屑导航 (Breadcrumb)
      ========================================================================== */
    .wt_breadcrumb {
        display: block;
        padding: 8px 32px 8px 16px;
        background-color: var(--background-color-breadcrumb);
        width: 100%;
    }
    
    .wt_breadcrumb ol {
        padding: 0px;
        margin:0;
        border-radius: 0;
        font-size: 12px;
        line-height: 8px;  /* 必须小于字号，才不影响 li 的 line-height */
        list-style: none;
        background:none;
    }
    
    .wt_breadcrumb li{
        display:inline-block;
        overflow: auto;
        font-size: 12px;
        line-height: 18px;
    }
    
    .wt_breadcrumb_ellipsis{
        position: absolute;
        float: right;
        top: 8px;
        right: 16px;
        width: 16px;
        height: 16px;
    }
    
    /* ==========================================================================
       3. 主题内容区域
      ========================================================================== */
    .content_box {
        padding: 0px;
        overflow-x: hidden;
    }
    
    .middle_view{
        padding: 0 0 2px 0;
        width: 100%;
    }
    
    .container {
        padding: 0px 16px;
    }
    
    .wt_topic_content .title.topictitle1 {
        width: 100%;
    }
    
    /* 底部导航 */
    .body_footer {
        font-size: 13px;
        line-height: 20px;
        height: 36px;
        width: unset;
        padding: 16px 0px 0px 0px;
        margin: 16px;
    }
    
    /* 提示框 */
    .note{
        padding: 12px;
    }
    
    .note.danger,
    .note.caution,
    .note.warning{
        padding: 12px;
    }
    
    /* 2026-07-13：更新点：移动端标题占满正文宽度，并避免版本号等连续文本被异常拆行。 */
    h1.title{
        font-size: 26px;
        line-height: 34px;
        width: 100%;
        max-width: none;
        overflow-wrap: break-word;
        word-break: normal;
    }
    
    h2.title{
        color: #000000;
        font-size: 16px;
        font-weight: bold;
        line-height: 25px; /* 定义行框的高度 */
        margin-bottom: 9px;
        padding-bottom: 1px;
        margin:13px 0;
    }
    
    h3.title{
        color: #333333;
        font-size: 14px;
        font-weight: bold;
        line-height: 20px; /* 定义行框的高度 */
        border-bottom: none;
        margin-bottom: 1px;
    }
    
    /* 2025-08-20 新增 h4 */
    h4.title{
        color: #333333;
        font-size: 12px;
        font-weight: bold;
        line-height: 18px;
        margin-bottom: 1px;
    }
    
    h4.title.sectiontitle{
        color: #333333;
        font-size: 12px;
        font-weight: bold;
        line-height: 18px;
        margin-bottom: 1px;
    }

    .topic.concept.nested1 {
        border-bottom: 0.5px solid silver;
        padding-bottom: 6px;
    }

    .topic.concept.nested1:last-child {
        border-bottom: none;
    }

    .section:has(> h2.sectiontitle) {
        border-bottom: 0.5px solid silver;
        padding-bottom: 6px;
    }

    .section:has(> h2.sectiontitle):last-child {
        border-bottom: none;
    }

    /* 2026-08-13 更新点：移动端压缩Changelog 两列布局，不产生表格横向滚动。 */
    .table.wt_changelog_table > tbody {
        gap: 28px;
    }

    .table.wt_changelog_table > tbody > tr {
        grid-template-columns: 104px minmax(0, 1fr);
        column-gap: 16px;
        align-items: start;
    }

    .table.wt_changelog_table > tbody > tr::before {
        top: 6px;
        bottom: -28px;
        left: 111px;
    }

    .table.wt_changelog_table > tbody > tr::after {
        top: 0;
        left: 106px;
        width: 11px;
        height: 11px;
        border-width: 2px;
    }

    .table.wt_changelog_table .wt_changelog_meta {
        gap: 6px;
    }

    /* 2026-08-18 更新点：移动端将 Changelog 第一列色块上沿与右侧首条更新内容对齐。 */
    .table.wt_changelog_table .wt_changelog_meta_primary {
        margin-top: 0;
        padding: 5px 8px;
        font-size: 13px;
        line-height: 20px;
    }

    .table.wt_changelog_table .wt_changelog_meta_secondary {
        padding-left: 0;
        font-size: 12px;
        line-height: 20px;
    }

    .table.wt_changelog_table .wt_changelog_content {
        align-self: start;
    }

    .table.wt_changelog_table .wt_changelog_meta_primary > *,
    .table.wt_changelog_table .wt_changelog_content > :not(.p):not(.ul):not(.ol):not(span.ph) {
        margin-top: 0 !important;
    }

    .table.wt_changelog_table .wt_changelog_content > .p {
        margin-top: 0 !important;
    }

    .table.wt_changelog_table .wt_changelog_content > :is(.ul, .ol) {
        margin-top: 0 !important;
        margin-block-start: 0 !important;
        padding-top: 0;
        padding-block-start: 0;
    }

    .table.wt_changelog_table .wt_changelog_content > :is(.ul, .ol) > .li:first-child {
        margin-top: 0 !important;
        margin-block-start: 0 !important;
    }

    .table.wt_changelog_table .wt_changelog_content > :is(.ul, .ol) > .li:first-child > :first-child {
        margin-top: 0 !important;
        margin-block-start: 0 !important;
    }

    .table.wt_changelog_table .wt_changelog_content > span.ph {
        margin-top: 8px;
    }

    /* ==========================================================================
       4. 轮播图样式 (Carousel)
      ========================================================================== */
    /* 2026-07-23：更新点：移动端横图、竖图和视频统一保持上下布局，并收紧媒体与文字间距。 */
    .wt_fig_carousel_layout {
        display: flex;
        flex-direction: column;
        height: auto !important;
        gap: 6px;
        margin-top: 6px;
        margin-bottom: 14px;
    }

    .fig.fignone.carousel.slide {
        width: 100%;
        flex: none;
    }

    .fig.fignone.carousel.slide .carousel-inner > .carousel-item {
        overflow: auto;
    }

    /* 2026-07-22：更新点：移动端图片轮播项使用固定媒体高度完整展示并居中，不产生图片内部滚动。 */
    .fig.fignone.carousel.slide .carousel-inner > .carousel-item.wt_carousel_image_item.active,
    .fig.fignone.carousel.slide .carousel-inner > .carousel-item.wt_carousel_image_item.carousel-item-next,
    .fig.fignone.carousel.slide .carousel-inner > .carousel-item.wt_carousel_image_item.carousel-item-prev {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        overflow: hidden;
    }

    /* 2026-07-13：更新点：移动端视频轮播项启用垂直居中，同时保留原生视频控件。 */
    .fig.fignone.carousel.slide .carousel-inner > .carousel-item.wt_carousel_video_item.active,
    .fig.fignone.carousel.slide .carousel-inner > .carousel-item.wt_carousel_video_item.carousel-item-next,
    .fig.fignone.carousel.slide .carousel-inner > .carousel-item.wt_carousel_video_item.carousel-item-prev {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        overflow: hidden;
    }

    /* 2026-07-22：更新点：移动端轮播图片固定在媒体区域内完整显示并居中，不再按宽度铺满或产生图片滚动条。 */
    .fig.fignone.carousel.slide .carousel-inner > .carousel-item > img.image {
        width: 100% !important;
        height: 100% !important;
        max-width: 100%;
        max-height: 100% !important;
        object-fit: contain;
        flex: 1 1 auto;
        margin: 0 auto;
        display:block !important;
    }
    
    .carousel-inner > .carousel-item:not(.active) > img {
        display: none;
    }
    
    /* 轮播图文字内容 */
    .wt_fig_carousel_text_content{
        flex: none;
        min-width: 0;
        margin-bottom: 6px;
        margin-top: 0;
        min-height: 0;
    }

    /* 2026-07-13：更新点：移动端恢复fig outputclass=top语义，使文字说明显示在媒体上方。 */
    .wt_fig_carousel_layout.wt_fig_carousel_text_top .wt_fig_carousel_text_content {
        order: -1;
        margin-bottom: 0;
    }

    .wt_fig_carousel_text_indicators{
        height: auto;
        max-height: 96px;
        margin: 0;
        box-sizing: border-box;
    }
    
    .wt_fig_carousel_title {
        font-size: 14px;
        font-weight: bold;
        line-height: 20px;
        color: var(--font-color-topic-title);
    }
    
    .wt_fig_carousel_para{
        font-size: 13px;
        line-height: 18px;
        color: var(--font-color-topic-content);
        height: auto;
    }
    
    /* ==========================================================================
       5. WPP 功能样式
      ========================================================================== */
    /* .body_wpp{
        display: flex;
        align-items: center;
        justify-content: center;
        height: 26px;
        width: unset;
        padding: 0px 0px 0px 0px;
        margin: 16px;
        text-align: center;
    }
    
    .wt_body_mobile_like{
        display: inline-block;
        width: 30%;
        padding-left: 8px; 
        padding-right: 8px;
    }
    
    .wt_body_mobile_like:before{
        content: "";
        display: inline-block;
        width: 20px;
        height: 20px;
        background-image: url("../images_m/未点赞@2x.png");
        background-size: 20px 20px;
        position: relative;
        top: 4px;
        margin-right: 4px;
    }
    
    .wt_body_mobile_view{
        display: inline-block;
        width: 30%;
        padding-left: 8px; 
        padding-right: 8px;
    }
    
    .wt_body_mobile_view:before {
        content: "";
        display: inline-block;
        width: 20px;
        height: 20px;
        background-image: url("../images_m/查看@2x.png");
        background-size: 20px 20px;
        position: relative;
        top: 4px;
        margin-right: 4px;
    } */
    
/* ==========================================================================
   6. 视频播放器样式 (Video Player)
  ========================================================================== */

    /* 2026-08-22 更新点：PC页面动态切入移动布局后隐藏自定义控件，避免与恢复的原生控件重叠。 */
    .wt_video_container.wt_mobile_video_mode {
        cursor: default;
    }

    .wt_video_container.wt_mobile_video_mode .wt_video_play_overlay,
    .wt_video_container.wt_mobile_video_mode .wt_video_controls {
        display: none !important;
    }

    @media screen and (max-width: 768px) and (hover: none) and (pointer: coarse) {

        /* ---------- 章节相关 ---------- */
        .wt_chapters_container,
        .wt_video_chapters_btn_container,
        .wt_chapter_marker,
        .wt_chapter_tooltip,

        /* ---------- 播放浮层 ---------- */
        .wt_video_play_overlay,
        .wt_video_play_icon,

        /* ---------- 整体控制栏 ---------- */
        .wt_video_controls,
        .wt_video_controls_row,
        .wt_video_controls_left,
        .wt_video_controls_right,

        /* ---------- 进度条 ---------- */
        .wt_video_progress,
        .wt_video_progress_buffer,
        .wt_video_progress_played,
        .wt_video_progress_handle,

        /* ---------- 通用按钮/时间 ---------- */
        .wt_video_btn,
        .wt_video_play_pause,
        .wt_video_time,

        /* ---------- 音量 ---------- */
        .wt_video_volume_container,
        .wt_video_volume_btn,
        .wt_video_volume_slider,

        /* ---------- 倍速 ---------- */
        .wt_video_speed_container,
        .wt_video_speed,
        .wt_video_speed_text,
        .wt_video_speed_dropdown,
        .wt_video_speed_option,

        /* ---------- 其他功能按钮 ---------- */
        .wt_video_download,
        .wt_video_pip,
        .wt_video_fullscreen {
            display: none !important;
        }

        /* 容器本身保留，但取消自定义交互光标 */
        .wt_video_container {
            cursor: default;
        }

        /* 视频本体保持显示 */
        .wt_video_container video {
            display: block !important;
            width: 100%;
            height: auto;
        }

        /* 关闭 hover 显示逻辑，防止部分设备残留 */
        .wt_video_container:hover .wt_video_play_overlay,
        .wt_video_container:hover .wt_video_controls,
        .wt_video_container:hover .wt_video_progress,
        .wt_video_container:hover .wt_video_progress_handle {
            opacity: 0 !important;
            visibility: hidden !important;
        }

        /* 播放中状态也不显示自定义浮层 */
        .wt_video_container.playing .wt_video_play_overlay,
        .wt_video_container.playing .wt_video_controls {
            display: none !important;
            opacity: 0 !important;
            visibility: hidden !important;
        }
    }
/* 桌面端窗口缩小时：保留控件，但做紧凑化 */
@media screen and (max-width: 768px) and (pointer: fine) {
    .wt_video_controls {
        padding: 6px 8px;
        gap: 6px;
    }

    .wt_video_controls_left,
    .wt_video_controls_right {
        gap: 6px;
    }

    .wt_video_volume_slider {
        width: 48px;
    }

    .wt_video_speed_text {
        font-size: 12px;
    }

    .wt_video_download,
    .wt_video_pip,
    .wt_video_fullscreen {
        transform: scale(0.9);
        transform-origin: center;
    }

    .wt_chapter_tooltip {
        font-size: 12px;
        max-width: 140px;
    }

    .wt_video_speed_container {
        flex-shrink: 0;
    }

    .wt_video_speed {
        min-width: 34px;
        padding: 2px 6px;
    }

    .wt_video_speed_text {
        font-size: 11px;
    }

    .wt_video_speed_dropdown {
        right: -4px;
        min-width: 76px;
        max-height: min(160px, var(--wt-speed-dropdown-max-height, 160px));
        padding: 6px 0;
        border-radius: 10px;
        margin-bottom: 8px;
        overflow-y: auto;
        overflow-x: hidden;
        transform: translateY(8px) scale(0.96);
    }

    .wt_video_speed_dropdown::before {
        right: 12px;
        width: 12px;
        height: 12px;
        bottom: -6px;
    }

    .wt_video_speed_option {
        padding: 8px 14px;
        font-size: 12px;
        margin: 1px auto;
        letter-spacing: 0.2px;
    }

    .wt_video_speed_option:hover {
        transform: scale(1.02);
        box-shadow: 0 1px 8px rgba(0, 0, 0, 0.18);
    }

    .wt_video_speed_option.active {
        border-left-width: 2px;
    }
}

/* 更窄桌面窗口：倍速弹窗继续压缩 */
@media screen and (max-width: 560px) and (pointer: fine) {
    .wt_video_speed {
        min-width: 30px;
        padding: 2px 4px;
    }

    .wt_video_speed_text {
        font-size: 10px;
    }

    .wt_video_speed_dropdown {
        right: -6px;
        min-width: 68px;
        max-height: min(160px, var(--wt-speed-dropdown-max-height, 160px));
        padding: 4px 0;
    }

    .wt_video_speed_option {
        padding: 7px 10px;
        font-size: 11px;
    }

    .wt_video_speed_option:hover {
        transform: none;
    }
}
/* ==========================================================================
   7. 手风琴分组样式 (Accordion Group)
  ========================================================================== */
/* 2026-08-14 更新点：收紧 accordion-group 的移动端标题和内容间距。 */
:is(ol.ol, ul.ul).accordion-group.wt_accordion_ready {
    margin: 12px 0;
}

.wt_accordion_summary {
    gap: 12px;
    min-height: 48px;
    padding: 12px 14px;
}

.wt_accordion_summary > span.ph:first-child {
    font-size: 14px;
    line-height: 22px;
}

.wt_accordion_content {
    padding: 0 14px 14px;
}

/* ==========================================================================
   8. 标签页样式 (Tab)
  ========================================================================== */

/* Tab 包装容器 */
.wt-tabbed-wrapper {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.06);
    padding: 12px;
    margin: 12px 0;
}

/* Tab 导航栏滚动包装器 */
.tab-header-scroll-wrapper {
    position: relative;
    margin-bottom: 12px;
}

.tab-header-scroll-wrapper::before,
.tab-header-scroll-wrapper::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 36px;
    z-index: 10;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.tab-header-scroll-wrapper::before {
    left: 0;
    background: linear-gradient(to right, #fff 35%, rgba(255, 255, 255, 0));
}

.tab-header-scroll-wrapper::after {
    right: 0;
    background: linear-gradient(to left, #fff 35%, rgba(255, 255, 255, 0));
}

.tab-header-scroll-wrapper.can-scroll-left::before {
    opacity: 1;
}

.tab-header-scroll-wrapper.can-scroll-right::after {
    opacity: 1;
}

/* 左右滚动按钮：纯触摸屏隐藏，仅在支持 hover 的设备（桌面/触控板）显示 */
.tab-scroll-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 26px;
    height: 26px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(0, 0, 0, 0.04);
    cursor: pointer;
    z-index: 11;
    opacity: 0;
    pointer-events: none;
    display: none;
    align-items: center;
    justify-content: center;
    transition: opacity 0.25s ease, background-color 0.2s ease;
}

.tab-scroll-btn::before {
    content: "";
    width: 11px;
    height: 11px;
    background-color: #64748b;
    -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M15.41 7.41 14 6l-6 6 6 6 1.41-1.41L10.83 12z'/></svg>") center/contain no-repeat;
            mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M15.41 7.41 14 6l-6 6 6 6 1.41-1.41L10.83 12z'/></svg>") center/contain no-repeat;
    transition: background-color 0.2s ease;
}

.tab-scroll-prev { left: 2px; }
.tab-scroll-next { right: 2px; }

.tab-scroll-next::before {
    -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M8.59 16.59 13.17 12 8.59 7.41 10 6l6 6-6 6z'/></svg>") center/contain no-repeat;
            mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M8.59 16.59 13.17 12 8.59 7.41 10 6l6 6-6 6z'/></svg>") center/contain no-repeat;
}

@media (hover: hover) and (pointer: fine) {
    .tab-scroll-btn {
        display: flex;
    }
    .tab-header-scroll-wrapper.can-scroll-left .tab-scroll-prev,
    .tab-header-scroll-wrapper.can-scroll-right .tab-scroll-next {
        opacity: 1;
        pointer-events: auto;
    }
    .tab-scroll-btn:hover {
        background: #f3f4f6;
    }
    .tab-scroll-btn:hover::before {
        background-color: #6366f1;
    }
    .tab-scroll-btn:active {
        transform: translateY(-50%) scale(0.92);
    }
}

/* 一次性发现性提示：仅桌面（hover）显示 next 按钮 peek，触摸屏由 JS 用真实 scrollLeft 提示 */
@media (hover: hover) and (pointer: fine) {
    @keyframes tab-overflow-peek-mobile {
        0%, 100% { transform: translate(0, -50%); }
        30%      { transform: translate(-4px, -50%); }
        60%      { transform: translate(2px, -50%); }
    }
    .tab-header-scroll-wrapper.tab-overflow-hint .tab-scroll-next {
        animation: tab-overflow-peek-mobile 0.9s ease-in-out 2;
    }
}

/* 移动端：箭头图标嵌入右侧渐变遮罩中，增强可滚动提示 */
@media (hover: none) and (pointer: coarse) {
    .tab-header-scroll-wrapper.can-scroll-left .tab-scroll-prev,
    .tab-header-scroll-wrapper.can-scroll-right .tab-scroll-next {
        display: flex;
        background: transparent;
        box-shadow: none;
        width: 22px;
        height: 22px;
        opacity: 0.55;
        pointer-events: auto;
    }
    .tab-header-scroll-wrapper.can-scroll-left .tab-scroll-prev {
        left: 4px;
    }
    .tab-header-scroll-wrapper.can-scroll-right .tab-scroll-next {
        right: 4px;
    }
    .tab-header-scroll-wrapper.can-scroll-left .tab-scroll-prev::before,
    .tab-header-scroll-wrapper.can-scroll-right .tab-scroll-next::before {
        background-color: #64748b;
    }
}

/* Tab 导航栏 - 滚动式设计 */
.tab-header-container {
    display: flex;
    position: relative;
    padding: 0;
    border-bottom: none;
    margin-bottom: 0;
    list-style: none;
    gap: 0;
    z-index: 1;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 4px;
}

@media (hover: hover) and (pointer: fine) {
    .tab-header-container {
        /* 2026-08-23 更新点：F12及精确指针布局不再叠加首项左缩进。 */
        padding-left: 0;
        padding-right: 32px;
    }
}

.tab-header-container::-webkit-scrollbar {
    display: none;
}

.tab-header-container .tab-btn {
    background: transparent;
    border: none;
    padding: 10px 20px;
    font-size: 13px;
    font-weight: 500;
    color: #64748b;
    cursor: pointer;
    transition: color 0.2s ease, background-color 0.2s ease;
    position: relative;
    outline: none;
    white-space: nowrap;
    flex: 0 0 auto;
    z-index: 1;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 2026-08-23 更新点：首个 Tab 与面板内容共用左边界，后续 Tab 仍保留右侧点击间距。 */
.tab-header-container > li:first-child > .tab-btn {
    padding-left: 0;
}

.tab-header-container .tab-btn:hover {
    color: #6366f1;
}

.tab-header-container .tab-btn.active {
    color: #6366f1;
    background-color: #fff;
    border-radius: 10px 10px 0 0;
}

/* 选中的 Tab 形状设计 - 反向圆角融合效果 */
.tab-header-container .tab-btn.active::before,
.tab-header-container .tab-btn.active::after {
    content: "";
    position: absolute;
    bottom: 0;
    width: 16px;
    height: 16px;
    background-color: transparent;
    pointer-events: none;
}

.tab-header-container .tab-btn.active::before {
    left: -16px;
    border-bottom-right-radius: 10px;
    box-shadow: 8px 0 0 0 #fff;
}

.tab-header-container .tab-btn.active::after {
    right: -16px;
    border-bottom-left-radius: 10px;
    box-shadow: -8px 0 0 0 #fff;
}

/* 弹性短线指示器 */
.tab-indicator {
    position: absolute;
    bottom: 6px;
    height: 2px;
    width: 0;
    background-color: #6366f1;
    border-radius: 2px;
    transition: left 0.24s ease, width 0.24s ease;
    z-index: 2;
    pointer-events: none;
}

/* 2026-08-23 更新点：移动端沿用独立 segmented control，保留足够触控高度并取消歪斜下划线。 */
.tab-header-scroll-wrapper {
    margin: 12px 0 8px;
    padding: 3px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
}
.wt-tabbed-wrapper {
    margin: 0 0 12px;
    border-radius: 8px;
}
.tab-header-container {
    padding: 0 !important;
    gap: 2px;
}
.tab-header-container .tab-btn {
    min-height: 44px;
    padding: 8px 12px;
    border-radius: 6px;
    color: #475569;
    transition: color .18s ease, background-color .18s ease, box-shadow .18s ease;
}
.tab-header-container > li:first-child > .tab-btn {
    padding-left: 12px;
}
.tab-header-container .tab-btn.active {
    color: #0f172a;
    background: #fff;
    box-shadow: 0 1px 3px rgba(15, 23, 42, .14);
}
.tab-header-container .tab-btn.active::before,
.tab-header-container .tab-btn.active::after {
    display: none !important;
}
.tab-indicator {
    display: none !important;
}
/* 2026-08-23 更新点：移动端使用 #F5F9FF 轨道，正文面板保持透明，避免嵌套卡片感。 */
.tab-header-scroll-wrapper {
    background: #f5f9ff;
    border-color: #bfd6f5;
    box-shadow: none;
}
.tab-header-scroll-wrapper::before {
    background: linear-gradient(to right, #f5f9ff 35%, rgba(245, 249, 255, 0));
}
.tab-header-scroll-wrapper::after {
    background: linear-gradient(to left, #f5f9ff 35%, rgba(245, 249, 255, 0));
}
.tab-header-container.tab-fit > li {
    flex: 1 1 0;
    min-width: 0;
}
.tab-header-container.tab-fit .tab-btn {
    width: 100%;
}
.tab-header-container.tab-overflow > li {
    flex: 0 0 auto;
}
.wt-tabbed-wrapper {
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
}
.tab-header-container .tab-btn.active {
    color: #0d0d0d;
    border-radius: 999px;
    background: transparent;
    box-shadow: none;
}
/* 2026-08-23 更新点：移动端SegmentedControl pill 变体，并使用指定的 #F5F9FF 轨道。 */
.tab-header-scroll-wrapper {
    overflow: visible;
    margin: 12px 0 8px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
}
.tab-header-scroll-wrapper::before,
.tab-header-scroll-wrapper::after,
.tab-scroll-btn {
    display: none !important;
}
.tab-header-container,
.tab-header-container.tab-fit,
.tab-header-container.tab-overflow {
    position: relative;
    overflow-x: auto;
    overflow-y: hidden;
    display: inline-flex;
    flex-wrap: nowrap;
    gap: 2px;
    width: max-content;
    max-width: 100%;
    height: 40px;
    margin: 0;
    padding: 4px !important;
    border: 0;
    border-radius: 999px;
    background: #f5f9ff;
    box-sizing: border-box;
    vertical-align: middle;
    white-space: nowrap;
    scrollbar-width: none;
}
.tab-header-container::-webkit-scrollbar {
    width: 0;
    height: 0;
}
.tab-header-container.tab-fit > li,
.tab-header-container.tab-overflow > li,
.tab-header-container > li {
    position: relative;
    z-index: 1;
    flex: 0 0 auto;
    display: flex;
    min-width: auto;
    height: 32px;
    margin: 0;
    padding: 0;
}
.tab-header-container .tab-btn,
.tab-header-container.tab-fit .tab-btn,
.tab-header-container > li:first-child > .tab-btn {
    position: relative;
    z-index: 1;
    width: auto;
    min-height: 32px;
    height: 32px;
    padding: 0 18px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    box-shadow: none;
    color: #6483ad;
    font-size: 14px;
    font-weight: 500;
    line-height: 1;
    transition: color .15s ease;
}
.tab-header-container .tab-btn:hover {
    color: #2f67ad;
}
.tab-header-container .tab-btn:focus-visible {
    outline: 2px solid #2f67ad;
    outline-offset: -2px;
}
.tab-header-container .tab-btn.active {
    color: #2f67ad;
    font-weight: 500;
    border-radius: 999px;
    background: transparent;
    box-shadow: none;
}
.tab-indicator {
    position: absolute;
    z-index: 0;
    top: 4px;
    bottom: 4px;
    left: 0;
    display: block !important;
    height: auto;
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 2px 6px -2px rgba(46, 85, 130, .28);
    pointer-events: none;
    will-change: transform, width;
    transition: transform .28s cubic-bezier(.22, 1, .36, 1), width .28s cubic-bezier(.22, 1, .36, 1);
}

/* 2026-08-23 更新点：小屏 Tab 溢出时显示边缘渐隐和方向箭头，明确提示还有可选项。 */
@media (max-width: 768px) {
    .tab-header-scroll-wrapper.can-scroll-left::before,
    .tab-header-scroll-wrapper.can-scroll-right::after {
        display: block !important;
        top: 0;
        bottom: 0;
        width: 38px;
        opacity: 1;
        border-radius: 999px;
    }
    .tab-header-scroll-wrapper.can-scroll-left::before {
        background: linear-gradient(to right, #f5f9ff 45%, rgba(245, 249, 255, 0));
    }
    .tab-header-scroll-wrapper.can-scroll-right::after {
        background: linear-gradient(to left, #f5f9ff 45%, rgba(245, 249, 255, 0));
    }
    .tab-header-scroll-wrapper.can-scroll-left .tab-scroll-prev,
    .tab-header-scroll-wrapper.can-scroll-right .tab-scroll-next {
        display: flex !important;
        width: 24px;
        height: 24px;
        opacity: .72;
        pointer-events: auto;
        background: transparent;
        box-shadow: none;
    }
    .tab-header-scroll-wrapper.can-scroll-left .tab-scroll-prev {
        left: 5px;
    }
    .tab-header-scroll-wrapper.can-scroll-right .tab-scroll-next {
        right: 5px;
    }
    .tab-header-scroll-wrapper .tab-scroll-btn::before {
        width: 12px;
        height: 12px;
        background-color: #5276a6;
    }

    @keyframes tab-overflow-initial-hint {
        0%, 100% { transform: translate(0, -50%); opacity: .72; }
        35% { transform: translate(-6px, -50%); opacity: 1; }
        65% { transform: translate(2px, -50%); opacity: .86; }
    }
    .tab-header-scroll-wrapper.tab-overflow-hint.can-scroll-right .tab-scroll-next {
        animation: tab-overflow-initial-hint .8s ease-in-out 2;
    }
}

/* 流体滑块 */
.tab-slider {
    position: absolute;
    height: calc(100% - 4px);
    top: 2px;
    background: linear-gradient(135deg, rgb(225, 238, 255) 0%, rgb(210, 230, 255) 100%);
    border-radius: 50px;
    z-index: 0;
    pointer-events: none;
    transition: 
        left 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
        width 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
        transform 0.25s ease-out,
        filter 0.25s ease-out,
        border-radius 0.25s ease-out;
    box-shadow: 
        0 2px 6px rgba(0, 102, 204, 0.12),
        inset 0 0 0 1px rgba(0, 102, 204, 0.08);
    transform-origin: center center;
    opacity: 0;
}

/* 滑块拉伸状态 - 水滴拉断效果 */
.tab-slider.stretching {
    transform: scaleX(1.03);
    filter: brightness(1.03);
    border-radius: 44% 56% 44% 56% / 52% 56% 44% 48%;
}

/* 滑块恢复状态 - 水滴融合效果 */
.tab-slider.restoring {
    transform: scaleX(1);
    filter: blur(0) brightness(1);
    border-radius: 50px;
    transition: 
        left 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
        width 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
        transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
        filter 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
        border-radius 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Tab 内容区域 */
.tab-content-container {
    position: relative;
}

.tab-content-container > .tab-pane {
    display: none;
    animation: tabFadeInMobile 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.tab-content-container > .tab-pane.active {
    display: block;
}

@keyframes tabFadeInMobile {
    0% {
        opacity: 0;
        transform: translateY(15px) scale(0.96) perspective(500px) rotateX(3deg);
        filter: blur(4px);
    }
    50% {
        opacity: 0.7;
        transform: translateY(-3px) scale(1.01) perspective(500px) rotateX(-1deg);
        filter: blur(1px);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1) perspective(500px) rotateX(0);
        filter: blur(0);
    }
}

/* 内容元素交错动画 - 适用于所有直接子元素 */
.tab-pane.active > * {
    animation: childFadeInMobile 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    opacity: 0;
}

.tab-pane.active > *:nth-child(1) { animation-delay: 0.04s; }
.tab-pane.active > *:nth-child(2) { animation-delay: 0.08s; }
.tab-pane.active > *:nth-child(3) { animation-delay: 0.12s; }
.tab-pane.active > *:nth-child(4) { animation-delay: 0.16s; }
.tab-pane.active > *:nth-child(5) { animation-delay: 0.2s; }
.tab-pane.active > *:nth-child(6) { animation-delay: 0.24s; }
.tab-pane.active > *:nth-child(7) { animation-delay: 0.28s; }
.tab-pane.active > *:nth-child(8) { animation-delay: 0.32s; }
.tab-pane.active > *:nth-child(9) { animation-delay: 0.36s; }
.tab-pane.active > *:nth-child(10) { animation-delay: 0.4s; }
.tab-pane.active > *:nth-child(11) { animation-delay: 0.44s; }
.tab-pane.active > *:nth-child(12) { animation-delay: 0.48s; }
.tab-pane.active > *:nth-child(13) { animation-delay: 0.52s; }
.tab-pane.active > *:nth-child(14) { animation-delay: 0.56s; }
.tab-pane.active > *:nth-child(15) { animation-delay: 0.6s; }
.tab-pane.active > *:nth-child(16) { animation-delay: 0.64s; }
.tab-pane.active > *:nth-child(17) { animation-delay: 0.68s; }
.tab-pane.active > *:nth-child(18) { animation-delay: 0.72s; }
.tab-pane.active > *:nth-child(19) { animation-delay: 0.76s; }
.tab-pane.active > *:nth-child(20) { animation-delay: 0.8s; }

@keyframes childFadeInMobile {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 列表内部 li 保持从左到右动画 - 移动端 */
.tab-pane.active .li {
    animation: listItemFadeInMobile 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    opacity: 0;
}

.tab-pane.active .li:nth-child(1) { animation-delay: 0.04s; }
.tab-pane.active .li:nth-child(2) { animation-delay: 0.08s; }
.tab-pane.active .li:nth-child(3) { animation-delay: 0.12s; }
.tab-pane.active .li:nth-child(4) { animation-delay: 0.16s; }
.tab-pane.active .li:nth-child(5) { animation-delay: 0.2s; }
.tab-pane.active .li:nth-child(6) { animation-delay: 0.24s; }
.tab-pane.active .li:nth-child(7) { animation-delay: 0.28s; }
.tab-pane.active .li:nth-child(8) { animation-delay: 0.32s; }
.tab-pane.active .li:nth-child(9) { animation-delay: 0.36s; }
.tab-pane.active .li:nth-child(10) { animation-delay: 0.4s; }
.tab-pane.active .li:nth-child(11) { animation-delay: 0.44s; }
.tab-pane.active .li:nth-child(12) { animation-delay: 0.48s; }
.tab-pane.active .li:nth-child(13) { animation-delay: 0.52s; }
.tab-pane.active .li:nth-child(14) { animation-delay: 0.56s; }
.tab-pane.active .li:nth-child(15) { animation-delay: 0.6s; }
.tab-pane.active .li:nth-child(16) { animation-delay: 0.64s; }
.tab-pane.active .li:nth-child(17) { animation-delay: 0.68s; }
.tab-pane.active .li:nth-child(18) { animation-delay: 0.72s; }
.tab-pane.active .li:nth-child(19) { animation-delay: 0.76s; }
.tab-pane.active .li:nth-child(20) { animation-delay: 0.8s; }

@keyframes listItemFadeInMobile {
    from {
        opacity: 0;
        transform: translateX(-6px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* 内容列表样式 */
/* KC-style 2026-09-02: mobile wt-tabbed nested list fix. Direct-child selector so ul/ol
   nested inside .tab-pane each keep their own marker (decimal / disc). Was: .tab-pane .li
   descendant rule that forced decimal at every depth. */
/* 2026-09-07 更新点：排除 ol.carousel-indicators 及其小圆点。本文件在 wt_topic.css 之后加载，
   这几条正文列表规则特异度高于 (0,1,0) 的指示器样式，会覆盖 margin-left:-30%、padding-left:0
   和 list-style:none，导致 Tab 内轮播指示器右移并显示出序号。用零特异度 :where() 排除，
   不改变本规则对正文列表的原有特异度。 */
.tab-pane :is(.ol, ol):where(:not(.carousel-indicators)),
.tab-pane :is(.ul, ul) {
    margin: 0;
    padding-left: 20px;
    color: #333;
    line-height: 1.7;
}

.tab-pane :is(.ol, ol) > :is(.li, li):where(:not([data-bs-target])) {
    margin-bottom: 8px;
    list-style-type: decimal;
    font-size: 13px;
}

.tab-pane :is(.ul, ul) > :is(.li, li):where(:not([data-bs-target])) {
    margin-bottom: 8px;
    list-style-type: disc;
    font-size: 13px;
}

.tab-pane .p {
    margin: 0;
    line-height: 1.6;
    font-size: 13px;
}

/* dl.tabbed 样式 */
.wt-tabbed-wrapper dl {
    margin: 0;
}

.wt-tabbed-wrapper dt.dlterm {
    font-weight: 600;
    color: #333;
    font-size: 13px;
    padding: 8px 0;
    margin: 0;
}

.wt-tabbed-wrapper dd {
    margin: 0;
    padding: 8px 0 16px 0;
    font-size: 13px;
    line-height: 1.7;
}

/* 2026-08-13 更新点：新增 outputclass="card" 的移动端单列布局与紧凑尺寸。 */
/* 移动端支持 section 及 ul/ol 容器上的独立 card-icon-left/card-split/card-plain。 */
.body.conbody:has(> .section:is(.card, .card-center, .card-icon-left, .card-split, .card-plain)),
:is(.ul, .ol):is(.card, .card-center, .card-icon-left, .card-split, .card-plain) {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
}

.body.conbody:has(> .section.card-icon-left),
.ul.card-icon-left,
.ol.card-icon-left {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
}

/* 2026-08-18 更新点：card-split 与 card-plain 移动端均为单列卡片组。 */
.body.conbody:has(> .section.card-plain),
.ul.card-plain,
.ol.card-plain,
.ul.card-split,
.ol.card-split {
    grid-template-columns: minmax(0, 1fr);
}

.section:is(.card, .card-center, .card-icon-left, .card-split, .card-plain),
:is(.ul, .ol):is(.card, .card-center, .card-icon-left, .card-split, .card-plain) > .li {
    border-radius: 8px;
    padding: 16px;
}

.section:is(.card, .card-center, .card-icon-left, .card-split, .card-plain) > .sectiontitle {
    margin-bottom: 8px;
    font-size: 16px;
    line-height: 22px;
}

.section:is(.card, .card-center, .card-icon-left, .card-split, .card-plain) > img.image,
:is(.ul, .ol):is(.card, .card-center, .card-icon-left, .card-split, .card-plain) > .li > img.image {
    width: 24px !important;
    height: 24px !important;
    /* 移动端普通 card 与 card-center 同步增大图标到标题的间距。 */
    margin-bottom: 20px;
}

/* 2026-08-18 更新点：移动端压缩 card-icon-left 的图标尺寸与左右间距。 */
:is(.section.card-icon-left, .ul.card-icon-left > .li, .ol.card-icon-left > .li) {
    grid-template-columns: 40px minmax(0, 1fr);
    column-gap: 12px;
}

:is(.section.card-icon-left, .ul.card-icon-left > .li, .ol.card-icon-left > .li) > img.image {
    width: 40px !important;
    height: 40px !important;
    margin: 0;
    padding: 7px;
}

:is(.section.card-icon-left, .ul.card-icon-left > .li, .ol.card-icon-left > .li) > .wt_card_icon_right > :is(.sectiontitle, .ph:first-of-type) {
    font-size: 16px;
    font-weight: 600;
    line-height: 22px;
}

/* 2026-08-18 更新点：card-split 移动端按内容、按钮、媒体顺序纵向排列。 */
:is(.section.card-split, .ul.card-split > .li, .ol.card-split > .li) {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
    min-height: 0;
    padding: 16px 24px;
}

.wt_card_split_media {
    min-height: 0;
    aspect-ratio: 16 / 9;
}

/* 2026-08-31 更新点：移动端 card-split 右侧媒体支持 .fig 与原生 <fig>。 */
.wt_card_split_media > :is(img.image, video, .fig, fig) {
    max-height: none;
}

/* 2026-08-31 更新点：移动端视频轮播按原始宽高比适配，元数据不可用时使用 16:9 兜底。 */
.fig.fignone.carousel.slide.wt_carousel_video_only {
	/* 移动端同样由原始比例决定高度，避免继承弹性布局造成空白。 */
	flex: 0 0 auto;
	width: 100%;
	max-width: 100%;
    aspect-ratio: 16 / 9;
}

/* 脚本初始化前即锁定视频轮播宽度，避免首屏短暂铺满正文。 */
.fig.fignone.carousel.slide:has(video):not(:has(img.image)) {
    width: 100%;
    flex: 0 0 auto;
    aspect-ratio: 16 / 9;
    visibility: hidden;
}

.fig.fignone.carousel.slide:has(video):not(:has(img.image)).wt_carousel_video_ready {
    visibility: visible;
}

.wt_fig_carousel_text_content:has(+ .fig.fignone.carousel.slide:has(video):not(:has(img.image))),
.fig.fignone.carousel.slide:has(video):not(:has(img.image)) + .wt_fig_carousel_text_content {
    width: 100%;
}

.fig.fignone.carousel.slide.wt_carousel_video_pending {
    visibility: hidden;
}

.wt_card_split_media > :is(.fig, fig) {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
    margin: 0;
}

.wt_card_split_media > :is(.fig, fig) > img.image {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    flex: 1 1 auto;
    min-height: 0;
    max-height: none;
    margin: 0;
    object-fit: contain;
}

:is(.section.card-plain, .ul.card-plain > .li, .ol.card-plain > .li) {
    padding: 20px;
}

/* 2026-08-23 更新点：移动端与窄桌面共用同一组 Tab 字色，避免后加载的移动样式退回近黑色。 */
.tab-header-container .tab-btn:not(.active) {
    color: #5276a6 !important;
    font-weight: 500;
}

.tab-header-container .tab-btn.active {
    color: #245f9f !important;
    font-weight: 600;
}

/* 2026-08-23 更新点：移动端兜底隐藏 Tab 中旧固定表头副本，防止其窄列文字覆盖原表头。 */
.tab-pane .wt_table_rowfixed {
    display: none !important;
}

}
