/**
 * Tsay 主样式文件
 * 从 index.html 提取以优化加载性能
 */

/* ============ 自定义滚动条 ============ */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #0a0e14; }
::-webkit-scrollbar-thumb { background: #1a2332; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #2a3a52; }

body {
    background: #0a0e14;
    color: #e5e7eb;
    font-family: 'Microsoft YaHei', 'Segoe UI', sans-serif;
}

/* ============ 频道样式 ============ */
.text-channel {
    transition: all 0.15s ease;
}
.text-channel.active {
    background: #1a2332;
    color: #fff;
}

.voice-channel {
    transition: all 0.15s ease;
}
.voice-channel.active > div:first-child {
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
}
.voice-channel.active > div:first-child i {
    color: #22c55e;
}

/* ============ 屏幕选择卡片 ============ */
.screen-card {
    transition: all 0.15s ease;
    border: 2px solid transparent;
}
.screen-card:hover {
    border-color: #3b82f6;
    transform: scale(1.02);
}
.screen-card.selected {
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

/* ============ 质量选择按钮 ============ */
.quality-btn {
    transition: all 0.15s ease;
}
.quality-btn:hover {
    background: #151d28;
}
.quality-btn.active {
    background: #3b82f6;
    color: white;
}

/* ============ 主按钮 ============ */
.btn-primary {
    background: #3b82f6;
    transition: all 0.2s ease;
}
.btn-primary:hover {
    background: #2563eb;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}
.btn-primary:active {
    transform: translateY(0);
}

.btn-danger {
    background: #ef4444;
}
.btn-danger:hover {
    background: #dc2626;
}

/* ============ 动画 ============ */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}
.animate-pulse-slow {
    animation: pulse 2s ease-in-out infinite;
}

.modal-enter {
    animation: modalIn 0.2s ease-out;
}
@keyframes modalIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

.animate-popup {
    animation: popup-appear 0.15s ease-out;
}
@keyframes popup-appear {
    from { opacity: 0; transform: translateY(8px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes toast-appear {
    from { opacity: 0; transform: translateX(-50%) translateY(10px); }
    to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* ============ 服务器设置导航 ============ */
.settings-nav-btn {
    color: #72767d;
}
.settings-nav-btn:hover {
    color: #dcddde;
    background-color: rgba(79, 84, 92, 0.4);
}
.settings-nav-btn.active {
    background-color: rgba(79, 84, 92, 0.6);
    color: #ffffff;
}

/* ============ 权限设置导航 ============ */
.perm-nav-btn {
    color: #72767d !important;
    background-color: transparent !important;
    border-left: 3px solid transparent !important;
    transition: all 0.15s ease !important;
}
.perm-nav-btn:hover {
    color: #dcddde !important;
    background-color: rgba(79, 84, 92, 0.6) !important;
}
.perm-nav-btn.active {
    background-color: #5865f2 !important;
    color: #ffffff !important;
    font-weight: 600 !important;
    border-left-color: #ffffff !important;
}

.perm-role-btn {
    color: #b5bac1 !important;
    background-color: transparent !important;
    border-left: 3px solid transparent !important;
    transition: all 0.15s ease !important;
}
.perm-role-btn:hover {
    background-color: rgba(79, 84, 92, 0.6) !important;
    color: #ffffff !important;
}
.perm-role-btn.active {
    background-color: #5865f2 !important;
    color: #ffffff !important;
    font-weight: 600 !important;
    border-left-color: #ffffff !important;
}

/* ============ 权限按钮 ============ */
.perm-btn {
    opacity: 0.5 !important;
    transition: all 0.15s ease !important;
}
.perm-btn[data-state="deny"] { color: #f87171 !important; }
.perm-btn[data-state="inherit"] { color: #9ca3af !important; }
.perm-btn[data-state="allow"] { color: #4ade80 !important; }
.perm-btn:hover {
    opacity: 0.8 !important;
    transform: scale(1.1) !important;
}
.perm-btn.active {
    opacity: 1 !important;
    box-shadow: 0 0 0 3px rgba(255,255,255,0.9) !important;
    transform: scale(1.25) !important;
}
.perm-btn.active[data-state="deny"] {
    background-color: #ef4444 !important;
    color: #fff !important;
}
.perm-btn.active[data-state="inherit"] {
    background-color: #6b7280 !important;
    color: #fff !important;
}
.perm-btn.active[data-state="allow"] {
    background-color: #22c55e !important;
    color: #fff !important;
}

.role-perm-btn {
    opacity: 0.5 !important;
    transition: all 0.15s ease !important;
}
.role-perm-btn[data-state="deny"] { color: #f87171 !important; }
.role-perm-btn[data-state="inherit"] { color: #9ca3af !important; }
.role-perm-btn[data-state="allow"] { color: #4ade80 !important; }
.role-perm-btn:hover {
    opacity: 0.8 !important;
    transform: scale(1.1) !important;
}
.role-perm-btn.active {
    opacity: 1 !important;
    box-shadow: 0 0 0 3px rgba(255,255,255,0.9) !important;
    transform: scale(1.25) !important;
}
.role-perm-btn.active[data-state="deny"] {
    background-color: #ef4444 !important;
    color: #fff !important;
}
.role-perm-btn.active[data-state="inherit"] {
    background-color: #6b7280 !important;
    color: #fff !important;
}
.role-perm-btn.active[data-state="allow"] {
    background-color: #22c55e !important;
    color: #fff !important;
}

/* ============ 服务器图标选中状态 ============ */
.server-icon .server-indicator {
    opacity: 0;
    height: 8px;
}
.server-icon:hover .server-indicator {
    opacity: 1;
    height: 20px;
}
.server-icon.active .server-indicator {
    opacity: 1;
    height: 40px;
}
.server-icon.active {
    border-radius: 16px;
}

#tsayHomeBtn.active #tsayHomeIndicator {
    opacity: 1;
    height: 40px;
}
#tsayHomeBtn:hover:not(.active) #tsayHomeIndicator {
    opacity: 1;
    height: 20px;
}

/* ============ 状态子菜单动画 ============ */
#statusSubMenu:not(.hidden) {
    animation: submenu-appear 0.1s ease-out;
}
@keyframes submenu-appear {
    from { opacity: 0; transform: translateX(-5px); }
    to { opacity: 1; transform: translateX(0); }
}

/* ============ 未保存更改提示栏动画 ============ */
.animate-slide-up {
    animation: slide-up 0.3s ease-out;
}
@keyframes slide-up {
    from { opacity: 0; transform: translateY(100%); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
    animation: fade-in 0.2s ease-out;
}
@keyframes fade-in {
    from { opacity: 0; transform: translateX(-5px); }
    to { opacity: 1; transform: translateX(0); }
}

/* ============ 好友筛选按钮 ============ */
.friend-filter-btn {
    color: #b5bac1;
    background-color: transparent;
}
.friend-filter-btn:hover {
    color: #ffffff;
    background-color: rgba(79, 84, 92, 0.4);
}
.friend-filter-btn.active {
    color: #ffffff;
    background-color: rgba(79, 84, 92, 0.6);
}

/* ============ 角色设置相关样式 ============ */
.animate-slideUp {
    animation: slideUp 0.3s ease-out;
}
@keyframes slideUp {
    from { transform: translateY(100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

#settingsTab-roles .role-tab-btn {
    color: #b5bac1;
}
#settingsTab-roles .role-tab-btn:hover {
    color: #fff;
}
#settingsTab-roles .role-tab-btn.active {
    color: #5865f2;
    border-bottom-color: #5865f2;
}

.role-list-item {
    transition: all 0.15s ease;
    padding: 8px 12px;
    margin: 2px 8px;
    border-radius: 4px;
    cursor: pointer;
    border-left: 3px solid transparent;
}
.role-list-item:hover {
    background: rgba(79, 84, 92, 0.4);
}
.role-list-item.active {
    background: rgba(88, 101, 242, 0.2);
    border-left-color: #5865f2;
    box-shadow: inset 0 0 0 2px #5865f2;
}

@keyframes shakeBar {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-4px); }
    20%, 40%, 60%, 80% { transform: translateX(4px); }
}
.shake-bar {
    animation: shakeBar 0.5s ease-in-out;
}

/* ============ 渐变文字 ============ */
.gradient-text {
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ============ 消息高亮动画 ============ */
@keyframes messageHighlight {
    0%, 15%, 30%, 45% { 
        background-color: rgba(59, 130, 246, 0.5) !important;
        border-left: 4px solid #3b82f6 !important;
    }
    7.5%, 22.5%, 37.5% { 
        background-color: rgba(59, 130, 246, 0.2) !important;
        border-left: 4px solid #60a5fa !important;
    }
    100% { 
        background-color: transparent !important;
        border-left: 4px solid transparent !important;
    }
}
.dm-message.message-highlight {
    animation: messageHighlight 2.5s ease-out forwards !important;
    border-left: 4px solid #3b82f6 !important;
    margin-left: -4px !important;
    border-radius: 4px !important;
}

/* ============ KOOK 风格垂直音量滑块 ============ */
.mic-volume-slider,
.headphone-volume-slider {
    -webkit-appearance: none;
    appearance: none;
    writing-mode: vertical-lr;
    direction: rtl;
    background: transparent;
    z-index: 10;
}
.mic-volume-slider::-webkit-slider-thumb,
.headphone-volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    background: #22c55e;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 6px rgba(34, 197, 94, 0.6), 0 2px 4px rgba(0,0,0,0.3);
    transition: all 0.15s ease;
    border: 2px solid rgba(255, 255, 255, 0.3);
}
.mic-volume-slider::-webkit-slider-thumb:hover,
.headphone-volume-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    background: #4ade80;
    box-shadow: 0 0 10px rgba(34, 197, 94, 0.8), 0 2px 6px rgba(0,0,0,0.4);
}
.mic-volume-slider::-moz-range-thumb,
.headphone-volume-slider::-moz-range-thumb {
    width: 16px;
    height: 16px;
    background: #22c55e;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 6px rgba(34, 197, 94, 0.6);
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: all 0.15s ease;
}
.mic-volume-slider::-moz-range-thumb:hover,
.headphone-volume-slider::-moz-range-thumb:hover {
    transform: scale(1.2);
    background: #4ade80;
    border: none;
}

/* ============ 成员菜单音量滑块 ============ */
.member-volume-slider {
    -webkit-appearance: none;
    appearance: none;
    height: 6px;
    background: #40444b;
    border-radius: 3px;
    cursor: pointer;
}
.member-volume-slider::-webkit-slider-runnable-track {
    height: 6px;
    background: linear-gradient(to right, #22c55e 0%, #22c55e var(--value, 50%), #40444b var(--value, 50%), #40444b 100%);
    border-radius: 3px;
}
.member-volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    background: #22c55e;
    border-radius: 50%;
    cursor: pointer;
    margin-top: -6px;
    box-shadow: 0 0 6px rgba(34, 197, 94, 0.6), 0 2px 4px rgba(0,0,0,0.3);
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: all 0.15s ease;
}
.member-volume-slider::-webkit-slider-thumb:hover {
    transform: scale(1.15);
    background: #4ade80;
    box-shadow: 0 0 10px rgba(34, 197, 94, 0.8), 0 2px 6px rgba(0,0,0,0.4);
}
.member-volume-slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    background: #22c55e;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 0 6px rgba(34, 197, 94, 0.6);
}
.member-volume-slider::-moz-range-track {
    height: 6px;
    background: #40444b;
    border-radius: 3px;
}
.member-volume-slider::-moz-range-progress {
    height: 6px;
    background: #22c55e;
    border-radius: 3px;
}

/* ============ 语音设置下拉选择框样式 ============ */
#quickInputDeviceSelect,
#quickOutputDeviceSelect {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23b9bbbe' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
    padding-right: 32px;
}
#quickInputDeviceSelect option,
#quickOutputDeviceSelect option {
    background: #1e1f22;
    color: white;
    padding: 8px;
}

/* ============ KOOK 风格语音成员卡片 ============ */
.voice-card {
    position: relative;
    width: 180px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 16px 16px;
    border-radius: 12px;
    transition: all 0.2s ease;
}
.voice-card-avatar-wrap {
    position: relative;
    width: 72px;
    height: 72px;
}
.voice-card-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid transparent;
    transition: all 0.15s ease;
    background: #2b2d31;
}
.voice-card-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.voice-card-avatar .avatar-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #5865f2 0%, #7289da 100%);
    color: white;
    font-size: 24px;
    font-weight: 600;
}
.voice-card.speaking .voice-card-avatar {
    border-color: #3ba55c;
    box-shadow: 0 0 0 4px rgba(59, 165, 92, 0.35), 0 0 20px rgba(59, 165, 92, 0.3);
    animation: speaking-pulse 1.5s ease-in-out infinite;
}
@keyframes speaking-pulse {
    0%, 100% { box-shadow: 0 0 0 4px rgba(59, 165, 92, 0.35), 0 0 20px rgba(59, 165, 92, 0.3); }
    50% { box-shadow: 0 0 0 6px rgba(59, 165, 92, 0.25), 0 0 30px rgba(59, 165, 92, 0.4); }
}

.voice-card-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.8);
    border-radius: 6px;
    padding: 4px 8px;
    display: flex;
    align-items: center;
    gap: 4px;
    z-index: 10;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}
.voice-card-badge i {
    font-size: 16px;
    color: #ffffff;
}
.voice-card-badge i.server-muted,
.voice-card-badge i.server-deafened {
    color: #ed4245;
}

.voice-card-name {
    margin-top: 10px;
    font-size: 13px;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.6);
    padding: 4px 10px;
    border-radius: 4px;
    text-align: center;
    max-width: 160px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}
.voice-card-name img {
    width: 16px;
    height: 16px;
    border-radius: 3px;
}

.voice-card-status {
    margin-top: 4px;
    display: flex;
    align-items: center;
    gap: 3px;
    height: 16px;
}
.voice-card-status i {
    font-size: 11px;
}
.voice-card-status .muted { color: #ed4245; }
.voice-card-status .deafened { color: #ed4245; }

/* ============ KOOK 风格屏幕共享小卡片 ============ */
.screen-share-card {
    position: relative;
    width: 280px;
    background: #1e2024;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 2px solid transparent;
}
.screen-share-card:hover {
    border-color: #3ba55c;
    transform: translateY(-2px);
}
.screen-share-card-video {
    width: 100%;
    aspect-ratio: 16/9;
    background: #0d0f11;
    object-fit: contain;
}
.screen-share-card-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: #ed4245;
    color: white;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 4px;
}
.screen-share-card-info {
    padding: 10px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.screen-share-card-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #5865f2;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.screen-share-card-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.screen-share-card-name {
    font-size: 13px;
    color: #dcddde;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ============ 待观看的屏幕共享卡片 ============ */
.pending-screen-share {
    background: linear-gradient(135deg, #1a1d21 0%, #2d3136 100%);
}
.pending-screen-share:hover {
    border-color: #5865f2;
}
.pending-screen-overlay {
    width: 100%;
    aspect-ratio: 16/9;
    background: linear-gradient(135deg, #1e2024 0%, #292b2f 50%, #1e2024 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
}
.pending-screen-overlay::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(88, 101, 242, 0.1) 0%, transparent 70%);
    animation: pulse-glow 2s ease-in-out infinite;
}
@keyframes pulse-glow {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}
.pending-play-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(88, 101, 242, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    transition: all 0.2s ease;
    z-index: 1;
    box-shadow: 0 4px 20px rgba(88, 101, 242, 0.4);
}
.pending-screen-share:hover .pending-play-btn {
    background: #5865f2;
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(88, 101, 242, 0.6);
}
.pending-hint {
    font-size: 12px;
    color: #b9bbbe;
    z-index: 1;
}
.pending-loading {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #5865f2;
    z-index: 1;
}
.screen-share-card-badge.pending {
    background: #5865f2;
}

/* ============ 屏幕共享放大模式 ============ */
.screen-share-expanded {
    position: absolute;
    inset: 0;
    background: #0d0f11;
    z-index: 50;
    display: flex;
    flex-direction: column;
}
.screen-share-expanded-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: linear-gradient(to bottom, rgba(0,0,0,0.8) 0%, transparent 100%);
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10;
}
.screen-share-expanded-back {
    display: flex;
    align-items: center;
    gap: 8px;
    color: white;
    cursor: pointer;
    transition: opacity 0.2s;
}
.screen-share-expanded-back:hover {
    opacity: 0.8;
}
.screen-share-expanded-info {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #a3a6aa;
    font-size: 13px;
}
.screen-share-expanded-tag {
    background: #5865f2;
    color: white;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 4px;
}

/* ============ 屏幕共享放大模式 - 视频区域 ============ */
.screen-share-expanded-video {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 0;
    overflow: hidden;
    background: #000;
    position: relative;
}
/* Agora SDK 在容器内自动创建的 video 元素 */
.screen-share-expanded-video video,
.screen-share-expanded-video div {
    width: 100% !important;
    height: 100% !important;
}
.screen-share-expanded-video video {
    object-fit: contain !important;
}

/* ============ KIOSK 全屏模式 ============ */
/* 纯视频全屏：隐藏所有 UI、隐藏鼠标、只靠 ESC 退出 */
.kiosk-fullscreen {
    cursor: none !important;
    background: #000 !important;
}
.kiosk-fullscreen * {
    cursor: none !important;
}
.kiosk-fullscreen .screen-share-expanded-header,
.kiosk-fullscreen #screenShareViewers,
.kiosk-fullscreen .screen-share-expanded-info {
    display: none !important;
}

/* ============ KOOK 风格滑块 ============ */
.kook-slider {
    -webkit-appearance: none;
    appearance: none;
    height: 8px;
    border-radius: 4px;
    background: linear-gradient(to right, #3ba55c 0%, #57d47e var(--fill, 50%), #1e1f22 var(--fill, 50%), #1e1f22 100%);
    outline: none;
    cursor: pointer;
}
.kook-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    background: #22c55e;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.4), 0 2px 4px rgba(0,0,0,0.3);
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: all 0.15s ease;
}
.kook-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    background: #4ade80;
    box-shadow: 0 0 10px rgba(34, 197, 94, 0.8), 0 2px 6px rgba(0,0,0,0.4);
}
.kook-slider::-moz-range-thumb {
    width: 16px;
    height: 16px;
    background: #22c55e;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border: none;
}
.kook-slider::-moz-range-track {
    height: 8px;
    border-radius: 4px;
    background: #1e1f22;
}
.kook-slider::-moz-range-progress {
    height: 8px;
    border-radius: 4px;
    background: linear-gradient(to right, #3ba55c, #57d47e);
}

/* ============ 右键菜单样式 ============ */
.context-menu {
    position: fixed;
    background: #111214;
    border: 1px solid var(--tn-border);
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.4);
    padding: 6px;
    z-index: 1000;
    min-width: 180px;
}
.context-menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    color: #b5bac1;
    font-size: 14px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.1s;
}
.context-menu-item:hover {
    background: var(--tn-hover);
    color: white;
}
.context-menu-item i {
    width: 16px;
    text-align: center;
}
.context-menu-divider {
    height: 1px;
    background: var(--tn-border);
    margin: 4px 0;
}

/* ============ Cropper.js 自定义样式 ============ */
.cropper-container {
    background-color: #1e1f22 !important;
}
.cropper-modal {
    background-color: rgba(0, 0, 0, 0.6) !important;
}
.cropper-view-box {
    outline: 2px solid #57f287 !important;
}
.cropper-line {
    background-color: #57f287 !important;
}
.cropper-point {
    background-color: #57f287 !important;
    width: 8px !important;
    height: 8px !important;
}
.cropper-dashed {
    border-color: rgba(87, 242, 135, 0.5) !important;
}
.cropper-face {
    background-color: transparent !important;
}
.cropper-crop-box.cropper-round .cropper-view-box,
.cropper-crop-box.cropper-round .cropper-face {
    border-radius: 50%;
}

#cropperZoom {
    -webkit-appearance: none;
    appearance: none;
    background: #3f4147;
    border-radius: 4px;
}
#cropperZoom::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 14px;
    height: 14px;
    background: #57f287;
    border-radius: 50%;
    cursor: pointer;
}
#cropperZoom::-moz-range-thumb {
    width: 14px;
    height: 14px;
    background: #57f287;
    border-radius: 50%;
    cursor: pointer;
    border: none;
}
