/* 站內通知系統樣式 — 取代瀏覽器原生 alert/confirm */

.site-notify-dialog {
    border: 1px solid rgba(192, 132, 252, .35);
    border-radius: 18px;
    padding: 0;
    background: linear-gradient(160deg, #0b1020, #161b33);
    color: #eef1fb;
    max-width: 420px;
    width: calc(100vw - 40px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, .6), 0 0 50px rgba(192, 132, 252, .15);
    overflow: hidden;
    font-family: "Noto Sans TC", "Microsoft JhengHei", system-ui, sans-serif;
}
.site-notify-dialog::backdrop {
    background: rgba(11, 16, 32, .75);
    backdrop-filter: blur(6px);
}
.site-notify-dialog[open] {
    animation: siteNotifyIn .25s ease;
}
@keyframes siteNotifyIn {
    from { transform: scale(.92); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.site-notify-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 28px auto 12px;
    font-size: 32px;
    font-weight: 700;
}
.site-notify-info .site-notify-icon {
    background: linear-gradient(135deg, #60a5fa, #818cf8);
    box-shadow: 0 0 25px rgba(96, 165, 250, .4);
}
.site-notify-success .site-notify-icon {
    background: linear-gradient(135deg, #34d399, #10b981);
    box-shadow: 0 0 25px rgba(16, 185, 129, .5);
}
.site-notify-error .site-notify-icon {
    background: linear-gradient(135deg, #f87171, #ef4444);
    box-shadow: 0 0 25px rgba(239, 68, 68, .5);
}
.site-notify-warning .site-notify-icon {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    box-shadow: 0 0 25px rgba(245, 158, 11, .5);
}

.site-notify-title {
    text-align: center;
    font-size: 18px;
    font-weight: 700;
    margin: 0 24px 10px;
    color: #fff;
}
.site-notify-msg {
    padding: 0 24px 22px;
    text-align: center;
    font-size: 14px;
    line-height: 1.6;
    color: #d1d5db;
    white-space: pre-wrap;
    word-break: break-word;
    max-height: 50vh;
    overflow-y: auto;
}
.site-notify-actions {
    display: flex;
    gap: 10px;
    padding: 0 24px 24px;
    border-top: 1px solid rgba(255, 255, 255, .06);
    padding-top: 18px;
    margin-top: 4px;
}
.site-notify-btn {
    flex: 1;
    padding: 12px 18px;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: transform .12s, box-shadow .12s, background .12s;
    font-family: inherit;
}
.site-notify-btn:hover { transform: translateY(-1px); }
.site-notify-btn:active { transform: translateY(0); }
.site-notify-btn-primary {
    background: linear-gradient(135deg, #c084fc, #818cf8);
    color: #fff;
    box-shadow: 0 4px 16px rgba(192, 132, 252, .3);
}
.site-notify-btn-danger {
    background: linear-gradient(135deg, #f87171, #ef4444);
    color: #fff;
    box-shadow: 0 4px 16px rgba(239, 68, 68, .3);
}
.site-notify-btn-secondary {
    background: rgba(255, 255, 255, .06);
    color: #eef1fb;
    border: 1px solid rgba(255, 255, 255, .12);
}

/* Toast 浮動通知（不阻塞） */
.site-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background: linear-gradient(160deg, #0b1020, #161b33);
    border: 1px solid rgba(192, 132, 252, .3);
    color: #eef1fb;
    padding: 12px 20px;
    border-radius: 12px;
    font-size: 14px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, .4);
    z-index: 100000;
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 380px;
    opacity: 0;
    transform: translateX(20px);
    transition: opacity .3s, transform .3s;
}
.site-toast.show {
    opacity: 1;
    transform: translateX(0);
}
.site-toast-icon {
    font-size: 18px;
    font-weight: 700;
}
.site-toast-success { border-color: rgba(16, 185, 129, .5); }
.site-toast-success .site-toast-icon { color: #34d399; }
.site-toast-error { border-color: rgba(239, 68, 68, .5); }
.site-toast-error .site-toast-icon { color: #f87171; }
.site-toast-warning { border-color: rgba(245, 158, 11, .5); }
.site-toast-warning .site-toast-icon { color: #fbbf24; }
.site-toast-info { border-color: rgba(192, 132, 252, .4); }
.site-toast-info .site-toast-icon { color: #c084fc; }

@media (max-width: 480px) {
    .site-notify-dialog { max-width: calc(100vw - 24px); }
    .site-notify-icon { width: 56px; height: 56px; font-size: 26px; margin: 20px auto 8px; }
    .site-notify-title { font-size: 16px; }
    .site-notify-msg { font-size: 13px; }
    .site-toast { top: 12px; right: 12px; left: 12px; max-width: none; }
}
