/**
 * 版式二 · 壹梦全站浮动（rightList bar-v2）
 * 样式移植自壹梦网络主题 diy.css「Floating navigation Style」整块
 * 适配说明：
 *  - 回顶按钮外层改用 .ymwl-f2-topwrap，避免被父主题/子主题的 .rollbar 隐藏规则误伤
 *  - 旧版 .ripro-dark 深色选择器 → 补充 v5 的 html[data-bs-theme="dark"] 等效规则
 *  - 移动端 ≤768px 隐藏（原版行为）
 */

.rightList ul, .rightList li {
    margin: 0;
    padding: 0;
    border: 0;
    outline: 0;
    font-size: 100%;
    vertical-align: baseline;
    background: transparent;
}
.rightList ul, .rightList ol, .rightList li {
    list-style-type: none;
}

/* ---------- 主容器 ---------- */
.rightList.bar-v2 {
    position: fixed;
    right: 3px;
    bottom: 40%;
    z-index: 999;
    text-align: center;
    width: 50px;
    height: auto;
    box-sizing: border-box;
    padding-bottom: 55px;
    background: transparent;
    box-shadow: none;
}
.rightList.bar-v2 .sidebar {
    position: relative;
    transform: translateY(0);
    -ms-transform: translateY(0);
    -webkit-transform: translateY(0);
    width: 100%;
    background: #fff;
    box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.12);
    border-radius: 6px;
}

/* ---------- 返回顶部 ---------- */
.rightList.bar-v2 .ymwl-f2-topwrap .Top {
    display: none;
    position: absolute;
    /* left: -3px; */
    bottom: 0;
    cursor: pointer;
    z-index: 10;
    width: 100%;
    height: 45px;
    background: #fff;
    box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.12);
    border-radius: 6px;
    text-align: center;
    box-sizing: border-box;
    padding-top: 12px;
}
.bar-v2 .Top i {
    font-size: 16px;
    color: #000;
    transition: .3s;
}
.bar-v2 .Top span {
    display: block;
    margin: -7px auto 0;
    width: 16px;
    height: 2px;
    border: 0;
    border-radius: 1px;
}
.bar-v2 .Top:hover i {
    color: #448aff;
}

/* ---------- 菜单项 ---------- */
.bar-v2 .sidebar li {
    position: relative;
}
.bar-v2 .sidebar li > a {
    display: block;
    padding: 8px 0;
    cursor: pointer;
    position: relative;
    border: 0;
    opacity: 1;
}
.bar-v2 .sidebar li > a:after {
    content: "";
    position: absolute;
    top: 0;
    left: 3px;
    width: 44px;
    height: 1px;
    background: #707070;
    opacity: .1;
}
.bar-v2 .sidebar .iconfont {
    font-size: 22px;
    color: #448aff;
    background-image: linear-gradient(to bottom, #1d68fc 0, #448aff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.bar-v2 .sidebar .vip .iconfont {
    color: #ffa363;
    background-image: linear-gradient(to bottom, #ffa363 0, #fd7d5b 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.bar-v2 .sidebar li span {
    display: block;
    margin-top: 2px;
    font-size: 12px;
    color: #232323;
    text-align: center;
    transition: .3s;
    line-height: 16px;
}
.bar-v2 .sidebar li:hover span {
    color: #1d68fc;
}
.bar-v2 .sidebar li:hover {
    background: transparent;
}

/* 红包按钮 */
.bar-v2 .sidebar .vip span {
    font-size: 12px;
    color: #ee663f;
    padding: 0 10px;
    letter-spacing: 0;
}
.bar-v2 .sidebar li.vip:hover span {
    color: #ee663f;
}
.bar-v2 .sidebar .vip .left-box {
    position: absolute;
    top: 0;
    right: 106%;
    cursor: pointer;
    width: 0;
    opacity: 0;
    transition: .3s;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0px 2px 4px 0 rgba(0, 0, 0, 0.33);
}
.bar-v2 .sidebar .vip:hover .left-box {
    width: 220px;
    opacity: 1;
}
.bar-v2 .sidebar .vip .left-box > img {
    width: 100%;
}

/* 小圆点（自定义链接/暗黑按钮） */
.sidebar .twinkle-point a:before {
    position: absolute;
    content: '';
    top: 7px;
    left: 7px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: linear-gradient(45deg, #448aff 29%, #18cef2 100%);
    animation: ymwlTwinkle .6s ease-in-out infinite alternate;
    -webkit-animation: ymwlTwinkle .6s ease-in-out infinite alternate;
}
@keyframes ymwlTwinkle {
    0%   { transform: scale(1); }
    100% { transform: scale(1.6); }
}

/* ---------- 客服悬停弹层 ---------- */
.customer-service {
    position: relative;
}
li.customer-service:hover .service-box {
    opacity: 1;
    width: 225px;
}
.sidebar li .service-box {
    opacity: 0;
    position: absolute;
    width: 0;
    right: 93.3%;
    top: 50%;
    transform: translateY(-50%);
    padding-right: 5px;
    transition: opacity .3s;
}
.sidebar li .service-box .service-con {
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 4px;
    font-size: 14px;
}
.sidebar li .service-box .service-con > a {
    display: block;
    line-height: 35px;
    height: 36px;
    border-bottom: 1px solid rgba(255, 255, 255, .17);
    color: inherit;
    padding-left: 34px;
    text-align: left;
}
.sidebar li .service-box .service-con .iconfont {
    font-size: 12px;
    color: inherit;
    margin-left: 5px;
    background: none;
    -webkit-text-fill-color: currentColor;
}
.sidebar li .service-box .service-con p {
    color: inherit;
    padding-left: 34px;
    text-align: left;
    line-height: 18px;
}
.sidebar li .service-box .custom-box,
.sidebar li .service-box .custom-tel {
    padding: 6px 0;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, .17);
}
.sidebar li .service-box .btn-contact {
    display: block;
    margin: 6px auto 6px 34px;
    width: 100px;
    height: 26px;
    background-color: #fff;
    box-shadow: 0 3px 4px 0 #448affe0;
    border-radius: 4px;
    line-height: 26px;
    text-align: center;
    font-size: 14px;
    transition: all .2s;
}
.sidebar li .service-box .btn-contact:hover {
    transform: translateY(-3px);
}

/* 返回顶部按钮下面的小横线 */
.common-gradient {
    color: #fff;
    border: 1px solid #448aff;
    background-image: linear-gradient(90deg, #448aff 0, #18cef2 100%);
    transition: all .3s ease-in-out;
}
.common-gradient:hover {
    background: #448aff;
}

/* ---------- 深色模式（v5 html[data-bs-theme] + 兼容旧版 .ripro-dark） ---------- */
.ripro-dark .bar-v2 .Top:hover i,
html[data-bs-theme="dark"] .bar-v2 .Top:hover i {
    color: #ffa363;
}
.ripro-dark .bar-v2 .sidebar .iconfont,
html[data-bs-theme="dark"] .bar-v2 .sidebar .iconfont {
    color: #FFC107;
    background-image: linear-gradient(to bottom, #FFC107 0, #ffa363 100%);
}
.ripro-dark .sidebar .twinkle-point a:before,
html[data-bs-theme="dark"] .sidebar .twinkle-point a:before {
    background: linear-gradient(45deg, #ffa363 29%, #FFC107 100%);
}
html[data-bs-theme="dark"] .rightList.bar-v2 .sidebar {
    background: #21242b;
    box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.5);
}
html[data-bs-theme="dark"] .rightList.bar-v2 .sidebar li span {
    color: #c9d1e3;
}
html[data-bs-theme="dark"] .rightList.bar-v2 .ymwl-f2-topwrap .Top {
    background: #21242b;
}
.ripro-dark .common-gradient,
html[data-bs-theme="dark"] .common-gradient {
    border-color: #ffa363;
    background-image: linear-gradient(90deg, #ffa363 0, #FFC107 100%);
}

/* ---------- 移动端隐藏（原版行为） ---------- */
@media (max-width: 768px) {
    .rightList {
        display: none;
    }
}
