/* 精简版 - 仅右侧浮动工具栏样式 */
.rightList ul, li {
    font-size: 100%;
    vertical-align: baseline;
    margin: 0px;
    padding: 0px;
    border-width: 0px;
    border-style: initial;
    border-color: initial;
    border-image: initial;
    outline: 0px;
    background: 0px 0px;
    list-style: none;
}

.rightList.bar-v2 {
    position: fixed;
    right: 8px;
    bottom: 34px;
    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);
    -o-transform: translateY(0);
    width: 100%;
    background: rgb(var(--card-background-rgb));
    box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.12);
    border-radius: 6px;
}

.rightList.bar-v2 .Top {
    display: none;
    position: absolute;
    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 .common-gradient {
    background: linear-gradient(90deg, #ffa363 0%, #ff6948 100%);
}

.bar-v2 .Top:hover i {
    color: #fb130a;
}

.ripro-dark .bar-v2 .Top:hover i {
    color: #ffa363;
}

.bar-v2 .sidebar li {
    position: relative;
}

.bar-v2 .sidebar li > a {
    display: block;
    padding: 10px 0;
    cursor: pointer;
    position: relative;
    border: 0;
    opacity: 1;
    transition: all 0.3s ease;
    margin: 2px 0;
}

.bar-v2 .sidebar li > a:hover {
    transform: translateX(-2px);
    box-shadow: 2px 0 8px rgba(0, 0, 0, 0.15);
}

.bar-v2 .sidebar li > a:after {
    content: "";
    position: absolute;
    top: 0;
    left: 3px;
    width: 44px;
    height: 1px;
    opacity: 0;
    display: none;
}

.bar-v2 .sidebar li:first-child > a:after {
    display: none;
}

.bar-v2 .sidebar li > a .iconfonts {
    display: block;
    font-size: 20px;
    line-height: 1;
    color: #000;
    transition: .3s;
}

.bar-v2 .sidebar li > a:hover .iconfonts {
    transform: scale(1.1);
}

.bar-v2 .sidebar li > a span {
    display: block;
    font-size: 12px;
    line-height: 1.2;
    margin-top: 3px;
    color: #000;
    transition: .3s;
}

.bar-v2 .sidebar li > a:hover span {
    transform: scale(1.05);
}

/* 客服弹出框 */
.bar-v2 .sidebar li.customer-service .service-box {
    display: none;
    position: absolute;
    right: 60px;
    top: 0;
    width: 200px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
    padding: 15px;
    z-index: 1000;
}

.bar-v2 .sidebar li.customer-service:hover .service-box {
    display: block;
}

.service-box .service-con {
    text-align: center;
}

.service-box .custom-box {
    margin-bottom: 10px;
}

.service-box .custom-box p {
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 8px;
    color: #fff;
}

.service-box .custom-box a {
    display: inline-block;
    padding: 8px 16px;
    background: #fff;
    color: #667eea;
    border-radius: 20px;
    text-decoration: none;
    font-size: 13px;
    font-weight: bold;
    transition: all .3s;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.service-box .custom-box a:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.service-box .custom-tel {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    margin-top: 8px;
}

.service-box .custom-tel p {
    margin: 0;
    color: rgba(255, 255, 255, 0.85);
}

/* 暗色主题适配 */
.ripro-dark .bar-v2 .sidebar {
    background: #1e1e1e;
}

.ripro-dark .bar-v2 .Top {
    background: #1e1e1e;
}

.ripro-dark .bar-v2 .sidebar li > a .iconfonts,
.ripro-dark .bar-v2 .sidebar li > a span,
.ripro-dark .bar-v2 .Top i {
    color: #fff;
}

.ripro-dark .service-box {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.ripro-dark .service-box .custom-box p {
    color: #fff;
}

.ripro-dark .service-box .custom-tel {
    color: rgba(255, 255, 255, 0.9);
}

.ripro-dark .service-box .custom-tel p {
    color: rgba(255, 255, 255, 0.85);
}

/* VIP左侧图片 */
.bar-v2 .sidebar li.vip .left-box {
    display: none;
    position: absolute;
    right: 60px;
    top: 0;
    z-index: 1000;
}

.bar-v2 .sidebar li.vip:hover .left-box {
    display: block;
}

.bar-v2 .sidebar li.vip .left-box img {
    max-width: 200px;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* 按钮渐变背景 - 原版配色 */
/* 1. VIP会员 - 紫蓝渐变 */
.bar-v2 .sidebar li.vip > a {
    background: linear-gradient(to right, #667eea 0%, #764ba2 100%);
    border-radius: 6px 6px 0 0;
}

.bar-v2 .sidebar li.vip > a .iconfonts,
.bar-v2 .sidebar li.vip > a span {
    color: #fff !important;
}

/* 2. 签到 - 无渐变，默认样式 */
.bar-v2 .sidebar li.sign-in > a {
    background: transparent;
}

/* 3. 客服 - 无渐变，默认样式 */
.bar-v2 .sidebar li.customer-service > a {
    background: transparent;
}

/* 4. 最新帖子 - 无渐变，默认样式 */
.bar-v2 .sidebar li.twinkle-point > a {
    background: transparent;
}

/* 5. 首页 - 无渐变，默认样式 */
.bar-v2 .sidebar li.client > a {
    background: transparent;
}

/* 6. 简繁切换 - 无渐变，默认样式 */
.bar-v2 .sidebar li.lang-switch > a {
    background: transparent;
}

/* 简繁切换 SVG 图标 */
.lang-switch-icon {
    display: block;
    width: 20px;
    height: 20px;
    background-image: url('/plugin/edm_tools/css/简繁切换.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    margin: 0 auto;
}

.bar-v2 .sidebar li.lang-switch > a:hover .lang-switch-icon {
    transform: scale(1.1);
}

/* 7. 投稿赚钱 - 无渐变，默认样式 */
.bar-v2 .sidebar li.recruit > a {
    background: transparent;
    border-radius: 0 0 6px 6px;
}

/* 闪烁效果 */
.bar-v2 .sidebar li.twinkle-point > a {
    position: relative;
}

.bar-v2 .sidebar li.twinkle-point > a::before {
    content: "";
    position: absolute;
    top: 5px;
    right: 5px;
    width: 8px;
    height: 8px;
    background: #ff0000;
    border-radius: 50%;
    animation: twinkle 1.5s infinite;
}

@keyframes twinkle {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.3;
        transform: scale(1.2);
    }
}

/* 二维码弹窗样式 */
.qrcode-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
}

.qrcode-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
}

.qrcode-modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    max-width: 90%;
    max-height: 90%;
    animation: qrcodeZoomIn 0.3s ease;
}

.qrcode-modal-content img {
    display: block;
    max-width: 400px;
    max-height: 400px;
    width: auto;
    height: auto;
    border-radius: 8px;
}

.qrcode-modal-text {
    margin-top: 15px;
    margin-bottom: 0;
    text-align: center;
    font-size: 16px;
    color: #333;
    line-height: 1.6;
}

.qrcode-modal-close {
    position: absolute;
    top: -15px;
    right: -15px;
    width: 40px;
    height: 40px;
    background: #fff;
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    font-size: 28px;
    color: #666;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s;
}

.qrcode-modal-close:hover {
    background: #f5576c;
    color: #fff;
    transform: rotate(90deg);
}

@keyframes qrcodeZoomIn {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.7);
    }
    to {
    opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

/* 暗色主题适配 */
.ripro-dark .qrcode-modal-content {
    background: #2a2a2a;
}

.ripro-dark .qrcode-modal-text {
    color: #fff;
}

.ripro-dark .qrcode-modal-close {
    background: #333;
    color: #fff;
}

.ripro-dark .qrcode-modal-close:hover {
    background: #f5576c;
}

/* 移动端显示与适配悬浮工具栏 */
@media (max-width: 768px) {
    .rightList.bar-v2 { display: block !important; right: 8px; bottom: 20px; z-index: 10000; }
    .rightList.bar-v2 .sidebar { border-radius: 6px; }
    /* 隐藏所有按钮，仅保留简繁切换 */
    .rightList.bar-v2 .sidebar li { display: none; }
    .rightList.bar-v2 .sidebar li.lang-switch { display: block; }
    .bar-v2 .sidebar li > a { padding: 8px 0; }
    /* 隐藏返回顶部 */
    .bar-v2 .Top { display: none !important; }
}
