diff --git a/src/client/public/index.html b/src/client/public/index.html index aa7f7f4..02cbe7f 100644 --- a/src/client/public/index.html +++ b/src/client/public/index.html @@ -324,6 +324,94 @@ .clear-btn:active { transform: scale(0.98); } + + .modal-overlay { + position: fixed; + top: 0; + left: 0; + right: 0; + bottom: 0; + background: rgba(0, 0, 0, 0.5); + display: flex; + align-items: center; + justify-content: center; + z-index: 1000; + opacity: 0; + visibility: hidden; + transition: all 0.3s; + } + + .modal-overlay.show { + opacity: 1; + visibility: visible; + } + + .modal { + background: white; + border-radius: 8px; + padding: 24px; + min-width: 320px; + max-width: 400px; + box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); + transform: scale(0.95); + transition: transform 0.3s; + } + + .modal-overlay.show .modal { + transform: scale(1); + } + + .modal h3 { + margin: 0 0 12px 0; + font-size: 18px; + font-weight: 600; + color: var(--fg); + } + + .modal p { + margin: 0 0 20px 0; + font-size: 14px; + color: var(--muted); + line-height: 1.5; + } + + .modal-buttons { + display: flex; + gap: 10px; + justify-content: flex-end; + } + + .modal-btn { + padding: 8px 16px; + border: none; + border-radius: 4px; + font-size: 14px; + cursor: pointer; + transition: all 0.2s; + } + + .modal-btn-cancel { + background: #f5f5f5; + color: var(--fg); + border: 1px solid var(--border); + } + + .modal-btn-cancel:hover { + background: #e0e0e0; + } + + .modal-btn-confirm { + background: var(--accent); + color: white; + } + + .modal-btn-confirm:hover { + background: #a00a0a; + } + + .modal-btn:active { + transform: scale(0.98); + } @@ -371,6 +459,17 @@
已复制到剪贴板
+ +