* { margin:0; padding:0; box-sizing:border-box; }
body { font-family: -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif; background:#f0f2f5; color:#333; }
.container { max-width:1400px; margin:0 auto; padding:20px; }
header { display:flex; justify-content:space-between; align-items:center; margin-bottom:20px; flex-wrap:wrap; gap:10px; }
header h1 { font-size:24px; }
.actions { display:flex; gap:8px; align-items:center; }

.stats-bar { display:flex; gap:16px; margin-bottom:24px; flex-wrap:wrap; }
.stat { background:#fff; padding:16px 24px; border-radius:8px; box-shadow:0 1px 3px rgba(0,0,0,.08); display:flex; flex-direction:column; align-items:center; min-width:100px; }
.stat .num { font-size:28px; font-weight:700; }
.stat .green { color:#52c41a; }
.stat .red { color:#ff4d4f; }
.stat .gray { color:#999; }

.server-group { background:#fff; border-radius:8px; box-shadow:0 1px 3px rgba(0,0,0,.08); margin-bottom:20px; overflow:hidden; }
.server-title { padding:14px 20px; background:#fafafa; border-bottom:1px solid #eee; font-size:16px; }
.badge { background:#e6f7ff; color:#1890ff; padding:2px 10px; border-radius:10px; font-size:13px; font-weight:400; margin-left:8px; }

table { width:100%; border-collapse:collapse; }
th { background:#fafafa; padding:10px 12px; text-align:left; font-size:13px; color:#666; border-bottom:1px solid #eee; }
td { padding:10px 12px; border-bottom:1px solid #f0f0f0; font-size:14px; }
tr:hover { background:#f9f9f9; }
tr.status-error { background:#fff2f0; }
tr.status-error:hover { background:#ffebe8; }
.domain a { color:#1890ff; text-decoration:none; }
.domain a:hover { text-decoration:underline; }
.gray { color:#999; }
.green { color:#52c41a; }
.red { color:#ff4d4f; }

.status-dot { display:inline-block; width:8px; height:8px; border-radius:50%; margin-right:6px; }
.status-dot.green { background:#52c41a; }
.status-dot.red { background:#ff4d4f; }
.status-dot.gray { background:#d9d9d9; }

.tag { padding:2px 8px; border-radius:4px; font-size:12px; }
.tag-网站 { background:#e6f7ff; color:#1890ff; }
.tag-公众号 { background:#f6ffed; color:#52c41a; }
.tag-小程序 { background:#fff7e6; color:#fa8c16; }

.btn { padding:8px 16px; border:1px solid #d9d9d9; border-radius:6px; background:#fff; cursor:pointer; font-size:14px; text-decoration:none; color:#333; }
.btn:hover { border-color:#1890ff; color:#1890ff; }
.btn-primary { background:#1890ff; color:#fff; border-color:#1890ff; }
.btn-primary:hover { background:#40a9ff; }
.btn-success { background:#52c41a; color:#fff; border-color:#52c41a; }
.btn-success:hover { background:#73d13d; }
.btn-danger { background:#ff4d4f; color:#fff; border-color:#ff4d4f; }
.btn-danger:hover { background:#ff7875; }
.btn-sm { padding:4px 10px; font-size:12px; border:1px solid #d9d9d9; border-radius:4px; background:#fff; cursor:pointer; color:#333; text-decoration:none; }
.btn-sm:hover { border-color:#1890ff; color:#1890ff; }
.btn-sm-danger { color:#ff4d4f; border-color:#ffa39e; }
.btn-sm-danger:hover { color:#fff; background:#ff4d4f; border-color:#ff4d4f; }

.modal { position:fixed; top:0; left:0; right:0; bottom:0; background:rgba(0,0,0,.45); display:flex; align-items:center; justify-content:center; z-index:100; }
.modal-content { background:#fff; padding:24px; border-radius:8px; width:480px; max-width:90vw; }
.modal-content h3 { margin-bottom:16px; }
.modal-content label { display:block; margin:8px 0 4px; font-size:13px; color:#666; }
.modal-content input, .modal-content select { width:100%; padding:8px; border:1px solid #d9d9d9; border-radius:4px; font-size:14px; }
.form-actions { margin-top:16px; display:flex; gap:8px; justify-content:flex-end; }

.detail-grid { display:grid; grid-template-columns:1fr 1fr; gap:20px; }
.detail-card { background:#fff; padding:20px; border-radius:8px; box-shadow:0 1px 3px rgba(0,0,0,.08); }
.detail-card h3 { margin-bottom:16px; padding-bottom:10px; border-bottom:1px solid #eee; }
.detail-card label { display:block; margin:10px 0 4px; font-size:13px; color:#666; }
.detail-card input, .detail-card select { width:100%; padding:8px; border:1px solid #d9d9d9; border-radius:4px; font-size:14px; }
.detail-card input[type=checkbox] { width:auto; margin-right:6px; }
.info-row { display:flex; justify-content:space-between; padding:10px 0; border-bottom:1px solid #f0f0f0; }
.alert { padding:12px 16px; border-radius:6px; margin-bottom:16px; }
.alert-success { background:#f6ffed; border:1px solid #b7eb8f; color:#52c41a; }

@media (max-width:768px) {
    .detail-grid { grid-template-columns:1fr; }
    .stats-bar { gap:8px; }
    .stat { padding:10px 14px; min-width:70px; }
    .stat .num { font-size:20px; }
    table { font-size:13px; }
    td, th { padding:8px 6px; }
}

/* 安全检测样式 */
.orange { color:#fa8c16; }
.status-hacked { background:#fff2e8 !important; }
.status-hacked:hover { background:#ffe7cc !important; }

.sec-badge { padding:2px 8px; border-radius:4px; font-size:12px; white-space:nowrap; }
.sec-ok { background:#f6ffed; color:#52c41a; border:1px solid #b7eb8f; }
.sec-warn { background:#fff7e6; color:#fa8c16; border:1px solid #ffd591; }
.sec-danger { background:#fff2f0; color:#ff4d4f; border:1px solid #ffccc7; font-weight:600; }
.sec-gray { background:#fafafa; color:#999; border:1px solid #d9d9d9; }

.title-cell { max-width:220px; }
.title-text { display:inline-block; max-width:200px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; color:#666; font-size:13px; }

.security-detail { background:#fffbe6; border:1px solid #ffe58f; border-radius:4px; padding:10px; margin-top:8px; font-size:13px; }
.security-detail ul { margin:6px 0 0 16px; padding:0; }
.security-detail li { margin:3px 0; color:#d4380d; }
