html {
    overflow-y: scroll;
}

/* 自定义滚动条样式 */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: #333338;
    border-radius: 10px;
    transition: background 0.2s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: #4a4a52;
}

::-webkit-scrollbar-corner {
    background: transparent;
}

/* Firefox 滚动条样式 */
* {
    scrollbar-width: thin;
    scrollbar-color: #333338 transparent;
}

/* ========== Toast 容器样式 ========== */
#toastContainer {
    position: fixed;
    top: 90px;
    right: 20px;
    z-index: 1001;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
    pointer-events: none;
}

/* Toast 提示样式 */
.toast-message {
    background: #1a1a1f;
    border: 1px solid #2a2a2f;
    border-radius: 12px;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    color: #ffffff;
    min-width: 200px;
    max-width: 350px;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.toast-message.success {
    border-left: 3px solid #22c55e;
}

.toast-message.success i {
    color: #22c55e;
}

.toast-message.error {
    border-left: 3px solid #ef4444;
}

.toast-message.error i {
    color: #ef4444;
}

.toast-message.info {
    border-left: 3px solid #6366f1;
}

.toast-message.info i {
    color: #6366f1;
}

.toast-message.warning {
    border-left: 3px solid #f59e0b;
}

.toast-message.warning i {
    color: #f59e0b;
}

/* ========== 自定义弹窗样式 ========== */
.custom-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
}

.custom-modal.show {
    opacity: 1;
    visibility: visible;
}

.custom-modal-content {
    background: #1a1a1f;
    border: 1px solid #2a2a2f;
    border-radius: 16px;
    width: 300px;
    max-width: 90%;
    transform: scale(0.9);
    transition: transform 0.2s ease;
    overflow: hidden;
}

.custom-modal.show .custom-modal-content {
    transform: scale(1);
}

.custom-modal-header {
    padding: 20px 20px 0 20px;
    text-align: center;
}

.custom-modal-icon {
    width: 56px;
    height: 56px;
    background: rgba(239, 68, 68, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.custom-modal-icon i {
    font-size: 28px;
    color: #ef4444;
}

.custom-modal-title {
    font-size: 18px;
    font-weight: 600;
    color: white;
    margin-bottom: 8px;
}

.custom-modal-message {
    font-size: 14px;
    color: #9ca3af;
    margin-bottom: 24px;
}

.custom-modal-buttons {
    display: flex;
    border-top: 1px solid #2a2a2f;
}

.custom-modal-btn {
    flex: 1;
    padding: 14px;
    text-align: center;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.custom-modal-btn:first-child {
    border-right: 1px solid #2a2a2f;
    color: #9ca3af;
    border-bottom-left-radius: 16px;
}

.custom-modal-btn:first-child:hover {
    background: #25252a;
    color: white;
}

.custom-modal-btn:last-child {
    color: #ef4444;
    border-bottom-right-radius: 16px;
}

.custom-modal-btn:last-child:hover {
    background: rgba(239, 68, 68, 0.1);
}

/* 移动端遮罩层 */
.dropdown-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 99;
    display: none;
}

.dropdown-overlay.show {
    display: block;
}