/* 引入 Google 字体 */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@300;400;500;700&display=swap');

/* 弹窗遮罩层 */
.dialog-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(3px);
}

/* 弹窗容器 */
.dialog {
    background: white;
    border-radius: 12px;
    padding: 24px;
    min-width: 320px;
    max-width: 90%;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
    font-family: 'Noto Sans SC', sans-serif;
    transform: scale(0.9);
    opacity: 0;
    transition: all 0.2s ease-out;
}

/* 弹窗显示时的动画 */
.dialog-overlay.active {
    display: flex;
}

.dialog-overlay.active .dialog {
    transform: scale(1);
    opacity: 1;
}

/* 弹窗标题 */
.dialog-title {
    font-size: 1.25rem;
    font-weight: 500;
    margin-bottom: 16px;
    color: #2c3e50;
}

/* 弹窗内容 */
.dialog-content {
    margin-bottom: 24px;
    color: #34495e;
    line-height: 1.5;
}

/* 弹窗按钮容器 */
.dialog-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

/* 弹窗按钮 */
.dialog-button {
    padding: 8px 16px;
    border-radius: 6px;
    border: none;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'Noto Sans SC', sans-serif;
}

/* 取消按钮 */
.dialog-button-cancel {
    background-color: #f8f9fa;
    color: #495057;
}

.dialog-button-cancel:hover {
    background-color: #e9ecef;
}

/* 确认按钮 */
.dialog-button-confirm {
    background-color: #3498db;
    color: white;
}

.dialog-button-confirm:hover {
    background-color: #2980b9;
}

/* 危险操作按钮 */
.dialog-button-danger {
    background-color: #e74c3c;
    color: white;
}

.dialog-button-danger:hover {
    background-color: #c0392b;
}

/* Toast容器 */
.toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 1001;
}

/* 成功提示 */
.toast {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    border-radius: 8px;
    font-family: 'Noto Sans SC', sans-serif;
    font-size: 0.875rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateX(120%);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    min-width: 300px;
    max-width: 400px;
}

.toast::before {
    font-family: "bootstrap-icons";
    font-size: 1.25rem;
}

.toast.success::before {
    content: "\F270";  /* Bootstrap Icons: check-circle-fill */
    color: #2ecc71;
}

.toast.error::before {
    content: "\F623";  /* Bootstrap Icons: x-circle-fill */
    color: #e74c3c;
}

.toast.warning::before {
    content: "\F333";  /* Bootstrap Icons: exclamation-circle-fill */
    color: #f1c40f;
}

.toast.info::before {
    content: "\F430";  /* Bootstrap Icons: info-circle-fill */
    color: #3498db;
}

.toast.show {
    transform: translateX(0);
}

/* 移除旧的错误样式 */
.toast.error {
    background-color: rgba(0, 0, 0, 0.8);
} 