.rb-qr-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(4px);
}

.rb-qr-modal--active {
    display: flex;
}

.rb-qr-modal__content {
    background: #ffffff;
    border-radius: 16px;
    padding: 28px 32px;
    width: 320px;
    text-align: center;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    animation: rb-qr-modal-in 0.3s ease;
}

@keyframes rb-qr-modal-in {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.rb-qr-modal__close {
    position: absolute;
    top: 12px;
    right: 16px;
    font-size: 28px;
    color: #94a3b8;
    cursor: pointer;
    transition: color 0.2s ease;
    line-height: 1;
}

.rb-qr-modal__close:hover {
    color: #64748b;
}

.rb-qr-modal__header {
    margin-bottom: 20px;
}

.rb-qr-modal__header-icon {
    font-size: 48px;
    color: #07c160;
    margin-bottom: 12px;
    display: block;
}

.rb-qr-modal__header-title {
    font-size: 1.2rem;
    color: #1e293b;
    font-weight: 600;
    margin: 0;
}



.rb-qr-modal__code-box {
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.rb-qr-modal__placeholder {
    width: 140px;
    height: 140px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: none;
    overflow: hidden;
}

.rb-qr-modal__placeholder-icon {
    font-size: 64px;
    color: #94a3b8;
}

.rb-qr-modal__placeholder-text {
    font-size: 0.85rem;
    color: #64748b;
}

.rb-qr-modal__code-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
    display: block;
}

.rb-qr-modal__tip {
    font-size: 0.9rem;
    color: #475569;
    margin: 0 0 8px 0;
}

.rb-qr-modal__id {
    font-size: 0.85rem;
    color: #2563eb;
    font-weight: 600;
    margin: 0;
    padding: 6px 12px;
    background: rgba(37, 99, 235, 0.08);
    border-radius: 20px;
    display: inline-block;
}

.rb-sidebar {
    position: fixed !important;
    right: 40px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    background: #ffffff !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.05) !important;
    z-index: 999 !important;
    border: 1px solid rgba(226, 232, 240, 0.8) !important;
    display: flex !important;
    flex-direction: column !important;
    visibility: visible !important;
    opacity: 1 !important;
    overflow: hidden !important;
}

@keyframes rb-sidebar-in {
    from {
        opacity: 0;
        transform: translateY(-50%) translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateY(-50%) translateX(0);
    }
}

.rb-sidebar__item {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    width: 64px !important;
    height: 72px !important;
    color: #64748b !important;
    text-decoration: none !important;
    position: relative !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    cursor: pointer !important;
    border-bottom: 1px solid rgba(226, 232, 240, 0.6) !important;
    background: #ffffff !important;
    border: none !important;
    outline: none !important;
}

.rb-sidebar__item:last-child {
    border-bottom: none !important;
}

.rb-sidebar__item:hover {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.06) 0%, rgba(79, 70, 229, 0.06) 100%) !important;
    color: #2563eb !important;
    transform: scale(1.05);
}

.rb-sidebar__icon {
    font-size: 1.35rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.rb-sidebar__item:hover .rb-sidebar__icon {
    transform: translateY(-2px) scale(1.1);
    filter: drop-shadow(0 4px 8px rgba(37, 99, 235, 0.3));
}

.rb-sidebar__label {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    transition: all 0.3s ease;
}

.rb-sidebar__item:hover .rb-sidebar__label {
    transform: translateY(-1px);
}

.rb-sidebar__item--wechat:hover {
    background: linear-gradient(135deg, rgba(7, 193, 96, 0.08) 0%, rgba(6, 147, 79, 0.08) 100%);
    color: #07c160;
}

.rb-sidebar__item--wechat:hover .rb-sidebar__icon {
    filter: drop-shadow(0 4px 8px rgba(7, 193, 96, 0.4));
}

.rb-sidebar__item--official:hover {
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.08) 0%, rgba(234, 88, 12, 0.08) 100%);
    color: #f97316;
}

.rb-sidebar__item--official:hover .rb-sidebar__icon {
    filter: drop-shadow(0 4px 8px rgba(249, 115, 22, 0.4));
}

.rb-sidebar__item--top {
    background: #ffffff !important;
    opacity: 0.5;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.rb-sidebar__item--top-visible {
    opacity: 1 !important;
    pointer-events: auto !important;
}

.rb-sidebar__item:hover,
.rb-sidebar__item--top:hover {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.06) 0%, rgba(79, 70, 229, 0.06) 100%) !important;
    color: #2563eb !important;
    transform: scale(1.05);
}

.rb-sidebar__item:hover .rb-sidebar__icon,
.rb-sidebar__item--top:hover .rb-sidebar__icon {
    transform: translateY(-2px) scale(1.1);
    filter: drop-shadow(0 4px 8px rgba(37, 99, 235, 0.3));
}

.rb-sidebar__item:hover .rb-sidebar__label,
.rb-sidebar__item--top:hover .rb-sidebar__label {
    transform: translateY(-1px);
}



@media (max-width: 1200px) {
    .rb-sidebar {
        right: 30px;
    }
}

@media (max-width: 992px) {
    .rb-sidebar {
        right: 20px;
        border-radius: 12px;
    }
}

@media (max-width: 768px) {
    .rb-sidebar {
        right: 10px;
    }
    
    .rb-sidebar__item {
        width: 56px;
        height: 64px;
    }
    
    .rb-sidebar__icon {
        font-size: 1.2rem;
    }
    
    .rb-sidebar__label {
        font-size: 0.65rem;
    }
}

@media (max-width: 480px) {
    .rb-sidebar {
        display: none;
    }
}

.rb-tip-container {
    position: fixed;
    display: none;
    z-index: 1000;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    padding: 16px;
    min-width: 140px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.rb-tip-container::after {
    content: '';
    position: absolute;
    right: -6px;
    top: 20px;
    width: 12px;
    height: 12px;
    background: #ffffff;
    transform: rotate(45deg);
    box-shadow: 2px -2px 4px rgba(0, 0, 0, 0.05);
}

.rb-tip-content {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.rb-tip__img-wrapper {
    width: 100px;
    height: 100px;
    border-radius: 8px;
    overflow: hidden;
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.rb-tip__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 8px;
}



.rb-tip__text {
    margin: 0;
    font-size: 13px;
    color: #475569;
    text-align: center;
    white-space: nowrap;
    font-weight: 500;
}



@media (max-width: 768px) {
    .rb-tip-container {
        display: none !important;
    }
}

.rb-feedback-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
}

.rb-feedback-modal--active {
    display: block;
}

.rb-feedback-modal__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.rb-feedback-modal__content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #ffffff;
    border-radius: 8px;
    width: 90%;
    max-width: 520px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    animation: rb-feedback-modal-in 0.3s ease;
}

@keyframes rb-feedback-modal-in {
    from {
        opacity: 0;
        transform: translate(-50%, -48%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

.rb-feedback-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #e5e7eb;
}

.rb-feedback-modal__title {
    font-size: 18px;
    font-weight: 500;
    color: #1f2937;
    margin: 0;
}

.rb-feedback-modal__close {
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    color: #9ca3af;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s;
}

.rb-feedback-modal__close:hover {
    background: #f3f4f6;
    color: #6b7280;
}

.rb-feedback-modal__form {
    padding: 16px 20px;
}

.rb-feedback-modal__field {
    margin-bottom: 12px;
}

.rb-feedback-modal__field:last-of-type {
    margin-bottom: 0;
}

.rb-feedback-modal__label {
    display: block;
    font-size: 13px;
    color: #374151;
    margin-bottom: 6px;
}

.rb-feedback-modal__required {
    color: #ef4444;
    margin-right: 4px;
}

.rb-feedback-modal__radio-group {
    display: flex;
    gap: 16px;
}

.rb-feedback-modal__radio {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-size: 13px;
    color: #4b5563;
}

.rb-feedback-modal__radio input[type="radio"] {
    width: 16px;
    height: 16px;
    accent-color: #3b82f6;
    cursor: pointer;
}

.rb-feedback-modal__radio-text {
    cursor: pointer;
}

.rb-feedback-modal__textarea {
    width: 100%;
    min-height: 80px;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 13px;
    line-height: 1.5;
    color: #374151;
    resize: vertical;
    font-family: inherit;
    transition: border-color 0.2s;
}

.rb-feedback-modal__textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.rb-feedback-modal__textarea::placeholder {
    color: #9ca3af;
}

.rb-feedback-modal__input {
    width: 100%;
    padding: 10px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    color: #374151;
    font-family: inherit;
    transition: border-color 0.2s;
}

.rb-feedback-modal__input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.rb-feedback-modal__input::placeholder {
    color: #9ca3af;
}

.rb-feedback-modal__upload {
    margin-bottom: 8px;
}

.rb-feedback-modal__upload-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100px;
    height: 100px;
    border: 2px dashed #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    color: #6b7280;
}

.rb-feedback-modal__upload-btn:hover {
    border-color: #3b82f6;
    color: #3b82f6;
    background: #eff6ff;
}

.rb-feedback-modal__upload-btn i {
    font-size: 24px;
    margin-bottom: 4px;
}

.rb-feedback-modal__upload-btn span {
    font-size: 12px;
}

.rb-feedback-modal__hint {
    font-size: 12px;
    color: #9ca3af;
    margin: 8px 0 0 0;
}

.rb-feedback-modal__preview {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.rb-feedback-modal__preview-item {
    position: relative;
    width: 80px;
    height: 80px;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
}

.rb-feedback-modal__preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rb-feedback-modal__preview-remove {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 20px;
    height: 20px;
    border: none;
    background: rgba(0, 0, 0, 0.5);
    color: #ffffff;
    border-radius: 50%;
    font-size: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.rb-feedback-modal__preview-remove:hover {
    background: rgba(0, 0, 0, 0.7);
}

.rb-feedback-modal__footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid #e5e7eb;
}

.rb-feedback-modal__btn {
    padding: 8px 20px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}

.rb-feedback-modal__btn--cancel {
    background: #ffffff;
    color: #374151;
    border: 1px solid #d1d5db;
}

.rb-feedback-modal__btn--cancel:hover {
    background: #f9fafb;
    border-color: #9ca3af;
}

.rb-feedback-modal__btn--submit {
    background: #3b82f6;
    color: #ffffff;
}

.rb-feedback-modal__btn--submit:hover {
    background: #2563eb;
}

.rb-feedback-modal__captcha-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.rb-feedback-modal__captcha-input {
    flex: 1;
    width: auto;
    min-width: 0;
}

.rb-feedback-modal__captcha-img {
    width: 100px;
    height: 40px;
    border-radius: 6px;
    cursor: pointer;
    border: 1px solid #d1d5db;
}

.rb-feedback-modal__captcha-refresh {
    width: 40px;
    height: 40px;
    border: 1px solid #d1d5db;
    background: #ffffff;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    transition: all 0.2s;
}

.rb-feedback-modal__captcha-refresh:hover {
    background: #f3f4f6;
    border-color: #3b82f6;
    color: #3b82f6;
}

.rb-feedback-modal__captcha-refresh:active {
    transform: scale(0.95);
}

.rb-feedback-modal__captcha-refresh i {
    font-size: 14px;
}

@media (max-width: 640px) {
    .rb-feedback-modal__content {
        width: 95%;
        max-height: 95vh;
    }
    
    .rb-feedback-modal__form {
        padding: 16px;
    }
    
    .rb-feedback-modal__radio-group {
        flex-direction: column;
        gap: 12px;
    }
    
    .rb-feedback-modal__footer {
        flex-direction: column-reverse;
    }
    
    .rb-feedback-modal__btn {
        width: 100%;
    }
}
