/* 统一提示弹窗 */
.alert-modal {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    display: flex; justify-content: center; align-items: center;
    z-index: 3000; animation: fadeIn 0.3s ease;
}
.alert-modal.fade-out { animation: fadeOut 0.3s ease forwards; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeOut { from { opacity: 1; } to { opacity: 0; } }

.alert-modal-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.6);
}
.alert-modal-content {
    background: white; border-radius: 15px; width: 90%; max-width: 400px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.25); z-index: 1; overflow: hidden;
    animation: slideUp 0.3s ease;
}
@keyframes slideUp { from { transform: translateY(30px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

.alert-modal-body {
    padding: 40px 30px; text-align: center; display: flex;
    flex-direction: column; align-items: center; gap: 20px;
}
.alert-modal-icon {
    width: 80px; height: 80px; border-radius: 50%; display: flex;
    align-items: center; justify-content: center; font-size: 40px;
    background: #f8f9fa; box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}
.alert-loading-icon {
    width: 80px; height: 80px; border-radius: 50%; display: flex;
    align-items: center; justify-content: center;
    background: #f8f9fa; box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}
.loading-spinner {
    width: 60px; height: 60px; border: 4px solid #f3f3f3;
    border-top: 4px solid #1e88e5; border-radius: 50%;
    animation: spin 1s linear infinite;
}
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

.alert-message {
    font-size: 1.2rem; line-height: 1.5; color: #333;
    font-weight: 500; text-align: center; word-break: keep-all;
}
.alert-modal-footer {
    padding: 20px 30px; border-top: 1px solid #eee;
    display: flex; justify-content: center; gap: 15px; background: #f8f9fa;
}
.alert-modal-btn {
    padding: 12px 30px; border-radius: 8px; cursor: pointer;
    font-size: 1.1rem; font-weight: 500; transition: all 0.3s;
    border: none; min-width: 100px;
}
.alert-modal-btn.btn-primary { background: #1e88e5; color: white; }
.alert-modal-btn.btn-primary:hover { background: #1976d2; transform: translateY(-2px); box-shadow: 0 4px 8px rgba(0,0,0,0.2); }
.alert-modal-btn.btn-primary:active { transform: translateY(0); }
.alert-modal-btn.btn-secondary { background: #f5f7fa; color: #333; border: 1px solid #ddd; }
.alert-modal-btn.btn-secondary:hover { background: #e4eaf3; }
.alert-modal-btn.btn-danger { background: #f44336; color: white; }
.alert-modal-btn.btn-danger:hover { background: #d32f2f; }

/* 登录成功通知（右下角弹窗） */
.login-notify-overlay {
    position: fixed; bottom: 20px; right: 20px; z-index: 9999;
    animation: fadeInUp 0.4s ease;
}
.login-notify-box {
    background: rgba(0,0,0,0.85); color: #fff; border-radius: 10px;
    padding: 16px 20px; min-width: 280px; backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.2);
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
    position: relative;
}
.login-notify-close {
    position: absolute; top: 8px; right: 12px;
    background: none; border: none; color: #ccc; font-size: 20px;
    cursor: pointer; line-height: 1;
}
.login-notify-close:hover { color: #fff; }
.login-notify-title { font-size: 1.1rem; margin-bottom: 8px; color: #4CAF50; }
.login-notify-item { font-size: 0.9rem; margin: 4px 0; }
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 底部版权统一样式 */
.coastal-lighthouse {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 0.9rem;
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(5px);
    padding: 8px 0;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    text-align: center;
    color: #000;
    z-index: 100;
}
.coastal-lighthouse a, .coastal-lighthouse span {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    color: #000;
}
.coastal-lighthouse a:hover { color: #1e88e5; }
.coastal-lighthouse img {
    height: 16px;
    margin-right: 4px;
}

/* 日志表格 */
.logs-container {
    margin-top: 20px;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.logs-table {
    width: 100%;
    border-collapse: collapse;
}
.logs-table th, .logs-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}
.logs-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #333;
}
.logs-table tr:hover { background: #f5f7fa; }
.log-event-type {
    font-weight: 500;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.85rem;
}
.log-success { background: #e8f5e9; color: #2e7d32; }
.log-warning { background: #fff3e0; color: #ef6c00; }
.log-error { background: #ffebee; color: #c62828; }
.log-info { background: #e3f2fd; color: #1565c0; }

/* 后台背景 */
body:not(.login-page) {
    background-image: url('../images/Haian_yb.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    position: relative;
}
body:not(.login-page)::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.02);
    z-index: -1;
}