/* report.css - V4.0.2 (合并修复版) */

/* --- V2.5 基础样式 (找回丢失的卡片和表格样式) --- */
body { background-color: #f0f2f5; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; color: #333; }
.card { border: none; box-shadow: 0 2px 6px rgba(0,0,0,0.04); margin-bottom: 20px; border-radius: 12px; transition: transform 0.2s; background: #fff; }
.card:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.08); }
.stat-val { font-size: 1.8rem; font-weight: 700; color: #333; letter-spacing: -0.5px; }
.stat-label { color: #8898aa; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.5px; font-weight: 600; }

/* 表格与分页样式 */
.table-logs { font-size: 0.9rem; }
.table-logs th { font-weight: 600; background-color: #f8f9fa; border-bottom: 2px solid #e9ecef; color: #495057; padding: 12px 15px; }
.table-logs td { vertical-align: middle; border-color: #f0f2f5; padding: 12px 15px; }
.badge-os { background: #e3f2fd; color: #0d6efd; border: 1px solid #d1e7dd; padding: 3px 8px; border-radius: 6px; font-weight: 500; font-size: 0.85rem; }
.badge-br { background: #fff3cd; color: #664d03; border: 1px solid #ffecb5; padding: 3px 8px; border-radius: 6px; font-weight: 500; font-size: 0.85rem; }
.url-truncate { max-width: 280px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: inline-block; vertical-align: bottom; color: #525f7f; font-weight: 500; text-decoration: none; }
.ref-truncate { max-width: 200px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: inline-block; vertical-align: bottom; }

/* 分页按钮美化 */
.pagination-area { display: flex; align-items: center; justify-content: center; padding: 20px; border-top: 1px solid #f0f2f5; }
.btn-page { border: 1px solid #e9ecef; background: #fff; padding: 6px 16px; margin: 0 8px; border-radius: 6px; font-size: 13px; cursor: pointer; color: #525f7f; transition: all 0.2s; font-weight: 500; }
.btn-page:hover:not(:disabled) { background: #f6f9fc; color: #0d6efd; border-color: #b1c2f9; transform: translateY(-1px); }
.btn-page:disabled { opacity: 0.6; cursor: not-allowed; background: #f8f9fa; }
.page-info { margin: 0 15px; font-size: 14px; color: #8898aa; font-weight: 600; }

/* --- V4.0 新增样式 (保留弹窗和徽章) --- */
.server-status-badge { font-size: 0.8rem; background: rgba(25, 135, 84, 0.1); color: #198754; border: 1px solid rgba(25, 135, 84, 0.2); padding: 5px 10px; border-radius: 20px; text-decoration: none; transition: 0.2s; display: inline-flex; align-items: center; }
.server-status-badge:hover { background: rgba(25, 135, 84, 0.2); color: #157347; transform: translateY(-1px); text-decoration: none; }
.server-status-dot { width: 8px; height: 8px; background: #198754; border-radius: 50%; display: inline-block; margin-right: 6px; box-shadow: 0 0 0 2px rgba(25,135,84,0.2); animation: pulse 2s infinite; }

.milestone-banner { background: linear-gradient(90deg, #fff3cd, #fff8e1); border: 1px solid #ffeeba; color: #856404; padding: 12px; border-radius: 8px; margin-bottom: 20px; display: none; align-items: center; justify-content: space-between; animation: slideDown 0.5s ease; }
.milestone-btn { background: #ffc107; color: #000; border: none; padding: 4px 12px; border-radius: 4px; font-size: 0.85rem; font-weight: bold; text-decoration: none; box-shadow: 0 2px 5px rgba(0,0,0,0.1); }

.kw-real { color: #d63384; background: #fff0f6; padding: 2px 8px; border-radius: 4px; font-weight: 600; font-size: 0.85em; display: inline-block; margin-top: 3px; }
.kw-guess { color: #5e72e4; background: #eff3ff; padding: 2px 8px; border-radius: 4px; border: 1px dashed #b1c2f9; font-size: 0.85em; display: inline-block; margin-top: 3px; }
.kw-real-modal { color: #333; font-weight:600; font-size:0.95rem; }
.kw-guess-modal { color: #999; font-style: italic; font-size:0.9rem; }

.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.6); display: none; justify-content: center; align-items: center; z-index: 9999; backdrop-filter: blur(3px); }
.modal-box { width: 95%; max-width: 600px; background: #fff; border-radius: 10px; box-shadow: 0 10px 30px rgba(0,0,0,0.3); overflow: hidden; display: flex; flex-direction: column; max-height: 80vh; animation: zoomIn 0.2s ease; }
.modal-header { background: #f8f9fa; padding: 15px 20px; border-bottom: 1px solid #eee; display: flex; justify-content: space-between; align-items: center; font-weight: bold; }
.modal-body { padding: 0; overflow-y: auto; }
.modal-list-item { padding: 12px 20px; border-bottom: 1px solid #f0f0f0; display: flex; justify-content: space-between; align-items: center; }
.modal-list-item:hover { background: #fdfdfd; }

.engine-badge { font-size: 0.75rem; padding: 1px 6px; border-radius: 4px; margin-right: 4px; color: #fff; display: inline-block; vertical-align: middle; }
.bg-baidu { background-color: #2932e1; }
.bg-google { background-color: #db4437; }
.bg-bing { background-color: #00897b; }
.bg-sogou { background-color: #fd7e14; }
.bg-360 { background-color: #198754; }
.bg-sm { background-color: #ffc107; color: #000; }
.bg-other { background-color: #6c757d; }

.console-box { background: #1e1e1e; color: #0f0; font-family: monospace; }
.console-header { background: #333; color: #ddd; border-bottom: 1px solid #444; }

@keyframes fadeIn { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(25,135,84,0.4); } 70% { box-shadow: 0 0 0 6px rgba(25,135,84,0); } 100% { box-shadow: 0 0 0 0 rgba(25,135,84,0); } }
@keyframes slideDown { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes zoomIn { from { opacity: 0; transform: scale(0.95); } to { opacity: 1; transform: scale(1); } }
.empty-guide { padding: 30px; text-align: center; color: #6c757d; border: 1px dashed #dee2e6; border-radius: 8px; background: #f8f9fa; }
.seo-alert-box { background: #fff8f0; border-left: 4px solid #fd7e14; padding: 12px 15px; margin-top: 15px; border-radius: 4px; font-size: 0.9rem; color: #664d03; display: flex; justify-content: space-between; align-items: center; }