
:root {
  --bg: #f2f5f9; --card: #ffffff; --line: #cfd8e3; --line2: #e7edf5;
  --text: #122033; --sub: #5d6b7f; --blue: #4b82ff; --green: #22b61b;
  --red: #ef4444; --orange: #f59e0b;
  --nav-bg: #1e293b; --nav-text: #94a3b8;
  --telecom: #9ccc65; --unicom: #ffba57; --mobile: #00acc1; --overseas: #5e6b7a;
  --navbar-h: 52px; /* P2 修复: 导航栏高度变量，供 sticky thead 引用 */
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif; }
a { text-decoration: none; color: inherit; transition: 0.2s; }

.site-header-banner { background: var(--nav-bg); width: 100%; border-bottom: 1px solid rgba(255,255,255,0.05); }
.site-header-inner { max-width: 1240px; margin: 0 auto; padding: 8px 16px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.site-logo-link { display: flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; margin-left: -30px; }
.site-logo-img { height: 52px; border-radius: 4px; }
.site-logo-text { color: #e2e8f0; font-size: 18px; font-weight: 700; white-space: nowrap; }
.site-header-ads { display: flex; gap: 12px; align-items: center; flex: 1; justify-content: flex-end; overflow: hidden; }
.header-ad-item { flex-shrink: 0; text-decoration: none; color: #cbd5e1; font-size: 13px; white-space: nowrap; }
.header-ad-item:hover { color: #fff; }
.header-ad-item img { height: 50px; border-radius: 4px; }
.header-ad-placeholder { color: #64748b; font-size: 13px; white-space: nowrap; }

.navbar-wrapper { background: var(--nav-bg); width: 100%; position: sticky; top: 0; z-index: 100; box-shadow: 0 2px 10px rgba(0,0,0,0.1); }
.navbar { max-width: 1240px; margin: 0 auto; display: flex; align-items: center; overflow-x: auto; scrollbar-width: none; }
.navbar::-webkit-scrollbar { display: none; }
.nav-item { padding: 0 16px; height: 48px; display: flex; align-items: center; gap: 6px; color: var(--nav-text); font-size: 15px; white-space: nowrap; border-bottom: 3px solid transparent; transition: 0.2s; }
.nav-item svg { opacity: 0.7; flex-shrink: 0; transition: opacity 0.2s; }
.nav-item:hover { color: #fff; background: rgba(255,255,255,0.05); }
.nav-item:hover svg { opacity: 1; }
.nav-item.active { color: #fff; border-bottom-color: var(--blue); background: rgba(255,255,255,0.05); font-weight: 600; }
.nav-item.active svg { opacity: 1; }

.nav-dropdown { position: relative; cursor: pointer; overflow: visible !important; outline: none; }
.nav-dropdown-toggle { height: 100%; display: flex; align-items: center; gap: 5px; pointer-events: none; }
.nav-dropdown-menu { position: fixed; background: var(--nav-bg); min-width: 150px; border-radius: 0 0 6px 6px; box-shadow: 0 4px 12px rgba(0,0,0,0.2); opacity: 0; visibility: hidden; transition: all 0.2s; transform: translateY(-5px); padding: 8px 0; z-index: 9999; border-top: 1px solid rgba(255,255,255,0.05); }
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-dropdown-item { display: flex; align-items: center; gap: 8px; padding: 10px 20px; color: var(--nav-text); font-size: 14px; text-decoration: none; transition: 0.2s; }
.nav-dropdown-item:hover { background: rgba(255,255,255,0.08); color: #fff; }
.nav-dropdown-item.active { color: var(--blue); font-weight: 600; background: rgba(75,130,255,0.1); }
.nav-dropdown-item svg { opacity: 0.6; flex-shrink: 0; }
.nav-dropdown-item:hover svg { opacity: 1; }
.nav-dropdown-item.active svg { color: var(--blue); opacity: 1; }

.breadcrumb-bar { background: #fff; border-bottom: 1px solid var(--line2); }
.breadcrumb-inner { max-width: 1240px; margin: 0 auto; padding: 10px 16px; display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--sub); }
.breadcrumb-inner a { color: var(--sub); text-decoration: none; }
.breadcrumb-inner a:hover { color: var(--blue); }
.breadcrumb-sep { color: #cbd5e1; }
.breadcrumb-current { color: var(--text); font-weight: 500; }

.container { max-width: 1240px; margin: 0 auto; padding: 20px 20px; }

.card { background: var(--card); border: 1px solid #d5dce8; border-radius: 12px; margin-bottom: 20px; box-shadow: 0 2px 8px rgba(0,0,0,0.06); overflow: hidden; }
.card:has(.addr-dropdown-wrap) { overflow: visible; }
.card:has(.addr-dropdown-anchor) { overflow: visible; }
.card:has(.top-box) { overflow: visible; }
.card:has(.result-table) { overflow: visible; }
.card-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--line2); background: #fff; }
.card-body { padding: 16px 20px; background: #fff; }
.section-title { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 16px; margin: 0; }
.section-title::before { content: ""; display: inline-block; width: 3px; height: 20px; background: var(--blue); border-radius: 2px; }

.btn { height: 46px; border: none; border-radius: 10px; padding: 0 20px; cursor: pointer; font-size: 14px; font-weight: 600; display: flex; align-items: center; gap: 6px; transition: 0.2s; white-space: nowrap; }
.btn:hover { opacity: 0.9; transform: translateY(-1px); box-shadow: 0 4px 6px rgba(0,0,0,0.1); }
.btn:active { transform: translateY(0); box-shadow: none; }
.btn-blue { background: var(--blue); color: #fff; }
.btn-green { background: #10b981; color: #fff; }
.btn-yellow { background: #f59e0b; color: #fff; }
.btn-ghost { background: #f8fafc; border: 1px solid #c9d3de; color: #475569; }

.target-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.input-wrapper { position: relative; flex: 1; min-width: 280px; }
.target-input { width: 100%; height: 46px; border: 2px solid #e2e8f0; border-radius: 10px; padding: 0 40px 0 16px; font-size: 15px; outline: none; transition: all 0.2s; background: #f8fafc; color: var(--text); }
.target-input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(75,130,255,0.15); background: #fff; }
.target-input::placeholder { color: #a0aec0; }
.clear-icon { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; fill: #cbd5e1; cursor: pointer; transition: fill 0.15s; opacity: 0.6; }
.clear-icon:hover { fill: #64748b; opacity: 1; }

.isp-pill { display: inline-flex; align-items: center; height: 24px; padding: 0 8px; border-radius: 4px; color: #fff; font-size: 12px; font-weight: 700; white-space: nowrap; }
.isp-电信 { background: var(--telecom); }
.isp-联通 { background: var(--unicom); }
.isp-移动 { background: var(--mobile); }
.isp-海外 { background: var(--overseas); }

.site-footer { background: #fff; border-top: 1px solid var(--line2); padding: 30px 16px; text-align: center; margin-top: 30px; }
.footer-links { max-width: 1240px; margin: 0 auto 16px; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; align-items: center; font-size: 13px; }
.footer-links-label { color: var(--sub); font-weight: 600; }
.footer-links a { color: var(--sub); text-decoration: none; padding: 2px 6px; border-radius: 4px; transition: 0.2s; }
.footer-links a:hover { color: var(--blue); background: #eff6ff; }
.footer-info { color: var(--sub); font-size: 13px; margin-bottom: 8px; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 4px; }
.footer-copyright { color: #94a3b8; font-size: 13px; }
.footer-copyright a { color: var(--sub); text-decoration: none; }
.footer-copyright a:hover { color: var(--blue); }
.footer-divider { color: #cbd5e1; margin: 0 4px; }

.top-box { padding: 16px; background: #fff; }
.point-cell { display: flex; align-items: center; gap: 8px; }
.ip-cell { display: flex; align-items: center; justify-content: center; gap: 8px; max-width:300px; overflow:hidden; }
.latest { font-weight: 700; } .latest.timeout { color: var(--red); }
.ad-col { max-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--sub); font-size: 13px; }
.ad-col a.ad-link { color: var(--blue) !important; text-decoration: underline; text-decoration-style: dotted; text-underline-offset: 2px; font-weight: 500; cursor: pointer; }
.ad-col a.ad-link:hover { text-decoration-style: solid; opacity: 0.85; }
.row-timeout { background: #fff7f7 !important; }
.controls-row { display: flex; justify-content: space-between; align-items: center; margin-top: 16px; flex-wrap: wrap; gap: 14px; }
.filter-row, .dns-row { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.checkbox, .radio { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: #425165; cursor: pointer; white-space: nowrap; }
.checkbox input, .radio input { margin: 0; cursor: pointer; }
.dns-input { height: 36px; border: 1px solid #c9d3de; border-radius: 6px; padding: 0 10px; font-size: 13px; width: 190px; background: #f3f6fa; outline: none; }
.dns-input:not(:disabled) { background: #fff; }
.dns-input:focus { border-color: var(--blue); box-shadow: 0 0 0 2px rgba(75,130,255,0.15); }
.small-note { font-size: 12px; color: var(--sub); font-weight: normal; }
.tab { padding: 0 16px; height: 28px; border-radius: 14px; border: 1px solid #d0d9e5; background: #fff; color: #5a6678; font-size: 13px; cursor: pointer; transition: 0.2s; white-space: nowrap; }
.tab.active { background: var(--blue); border-color: var(--blue); color: #fff; }
.tab-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: space-between; width: 100%; }
.progress-bar { width: 120px; height: 8px; background: #e7edf5; border-radius: 4px; overflow: hidden; }
.progress-bar > div { height: 100%; background: var(--blue); border-radius: 4px; transition: width 0.3s ease;
  background-image: linear-gradient(45deg, rgba(255,255,255,0.15) 25%, transparent 25%, transparent 50%, rgba(255,255,255,0.15) 50%, rgba(255,255,255,0.15) 75%, transparent 75%, transparent);
  background-size: 1rem 1rem; animation: progress-stripes 1s linear infinite; }
@keyframes progress-stripes { from { background-position: 1rem 0; } to { background-position: 0 0; } }
.table-responsive { width: 100%; }
.result-table, .summary-table { width: 100%; border-collapse: collapse; border-spacing: 0; }
.result-table thead th, .summary-table th { position: sticky; z-index: 30; background: #fafcff; color: #546276; font-weight: 600; padding: 9px 6px; font-size: 13px; white-space: nowrap; border-bottom: 2px solid #dce3ed; border-right: 1px solid #e7edf5; }
.result-table thead th { top: var(--navbar-h, 52px); }
.summary-table th { top: 0; }
.result-table thead th:last-child, .summary-table th:last-child { border-right: none; }
.result-table tbody td, .summary-table td { padding: 8px 6px; font-size: 13px; text-align: center; border-bottom: 1px solid var(--line2); border-right: 1px solid #f0f3f8; white-space: nowrap; vertical-align: middle; }
.result-table tbody td:last-child, .summary-table td:last-child { border-right: none; }
.result-table td:first-child, .summary-table td:first-child, .summary-table th:first-child { text-align: left; }

.quality-wave { width: 100%; height: 24px; margin: 0 auto; border-radius: 3px; overflow: hidden; background: #f0f3f7; }
.quality-wave svg { display: block; width: 100%; height: 100%; }

/* P2 修复: 用更高特异性替代 !important，避免样式冲突 */
.card.lh-card {
    padding: 24px;
}

.card.lh-card .section-header,
.card.lh-card .local-info-grid,
.card.lh-card .route-row,
.card.lh-card .leak-card .section-header {
    margin-left: 0;
    margin-right: 0;
}

.card.lh-card .priority-badge {
    margin: 15px 0;
}

.article-content h1,.article-content h2,.article-content h3,.article-content h4 { margin:20px 0 10px; font-weight:600; color:var(--text); }
.article-content h1 { font-size:22px; } .article-content h2 { font-size:18px; } .article-content h3 { font-size:16px; }
.article-content p { margin:8px 0; }
.article-content a { color:var(--blue); text-decoration:underline; text-underline-offset:2px; }
.article-content a:hover { text-decoration-style:solid; }
.article-content ul,.article-content ol { padding-left:24px; margin:8px 0; }
.article-content li { margin:4px 0; }
.article-content blockquote { border-left:3px solid var(--blue); padding:10px 16px; margin:12px 0; background:#f8fafc; color:var(--sub); border-radius:0 6px 6px 0; }
.article-content pre { background:#f1f5f9; padding:14px; border-radius:6px; overflow-x:auto; font-size:13px; line-height:1.6; margin:12px 0; }
.article-content code { background:#f1f5f9; padding:2px 6px; border-radius:3px; font-size:13px; font-family:Consolas,"Courier New",monospace; }
.article-content img { max-width:100%; height:auto; border-radius:6px; margin:10px 0; }
.article-content table { width:100%; border-collapse:collapse; margin:12px 0; }
.article-content th,.article-content td { border:1px solid var(--line2); padding:8px 12px; font-size:13px; }
.article-content th { background:#fafcff; font-weight:600; }

.loc-full { display:block; max-width:100%; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; cursor:default; }
td[data-label="IP位置"] { max-width:240px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.ip-full { display:inline-block; max-width:100%; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; vertical-align:middle; }

.addr-dropdown-wrap { position: relative; z-index: 50; }
.addr-dropdown-anchor { position: relative; z-index: 50; }
.addr-no-wrapper { position: relative; flex: 1; min-width: 0; z-index: 50; }
.addr-no-wrapper > input.target-input { width: 100%; }
.addr-dropdown {
  display: none; position: absolute; left: 0; top: 100%; z-index: 500;
  width: 100%; box-sizing: border-box;
  background: #fff; border: 1px solid #d5dce8; border-top: none;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.10);
  max-height: 280px; overflow-y: auto;
  margin-top: 4px;
  scrollbar-width: thin;
}
.addr-dropdown.open { display: block; }
.addr-dropdown::-webkit-scrollbar { width: 5px; }
.addr-dropdown::-webkit-scrollbar-track { background: transparent; }
.addr-dropdown::-webkit-scrollbar-thumb { background: #d0d9e5; border-radius: 3px; }
.addr-dropdown-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 16px; background: #f8fafc; border-bottom: 1px solid #eef2f7;
  font-size: 12px; color: #94a3b8;
  border-radius: 10px 10px 0 0;
}
.addr-dropdown-header .addr-clear-all {
  font-size: 12px; color: #94a3b8; cursor: pointer; border: none;
  background: none; padding: 2px 6px; border-radius: 4px; transition: all 0.15s;
}
.addr-dropdown-header .addr-clear-all:hover { color: var(--red); background: #fef2f2; }
.addr-item {
  display: flex; align-items: center; padding: 0 12px 0 16px; height: 38px;
  border-bottom: 1px solid #f5f7fa; cursor: pointer; transition: background 0.12s;
}
.addr-item:last-child { border-bottom: none; }
.addr-item:hover { background: #eef4ff; }
.addr-item-text {
  flex: 1; font-size: 13.5px; color: #334155; overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap; line-height: 38px;
  font-family: "SF Mono", Consolas, "Courier New", monospace;
}
.addr-item-pinned { background: #f0f5ff; }
.addr-item-pinned .addr-item-text { font-weight: 600; color: var(--blue); }
.addr-item-actions { display: flex; gap: 1px; align-items: center; flex-shrink: 0; margin-left: 8px; opacity: 0.4; transition: opacity 0.15s; }
.addr-item:hover .addr-item-actions { opacity: 1; }
.addr-act-btn {
  width: 28px; height: 28px; border: none; border-radius: 6px; background: transparent;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  color: #94a3b8; transition: all 0.15s; padding: 0;
}
.addr-act-btn:hover { background: #f1f5f9; color: #475569; }
.addr-act-btn.pinned { color: var(--blue); opacity: 1; }
.addr-act-btn svg { width: 14px; height: 14px; }
.addr-act-btn.addr-del:hover { background: #fef2f2; color: var(--red); }
.addr-empty { padding: 16px; text-align: center; color: #a0aec0; font-size: 13px; }
.addr-dropdown-wrap:not(.input-wrapper) .target-input:focus,
.addr-dropdown.open { border-top: 1px solid #e2e8f0; }
.addr-dropdown-wrap.addr-dns-wrap { position: relative; display: inline-block; width: 190px; }
.addr-dropdown-wrap.addr-dns-wrap .addr-dropdown { border-radius: 0 0 6px 6px; }
@media (max-width: 768px) {
  .input-wrapper { min-width: 200px; }
  .addr-no-wrapper { min-width: 160px; }
  .addr-item { height: 36px; padding: 0 12px; }
  .addr-item-text { font-size: 13px; line-height: 36px; }
  .addr-act-btn { width: 26px; height: 26px; }
  .addr-act-btn svg { width: 13px; height: 13px; }
}

.result-table td.latest { transition: color 0.2s ease; }
.result-table td.val-changed,
.result-table td.val-changed-timeout,
.result-table td.sent-pulse { transition: none; /* 动画由 animation 处理 */ }
@keyframes cellFlash { 0%{background:rgba(75,130,255,0.12)} 100%{background:transparent} }
.result-table tr.row-timeout td { transition: opacity 0.3s ease; }
.live-progress-fill, [id*="ProgressBar"] { transition: width 0.4s cubic-bezier(0.4,0,0.2,1) !important; }
.status-dot { width:10px; height:10px; border-radius:50%; margin-top:6px; background:#9ca3af; display:inline-block; transition: background-color 0.3s ease; }
.map-container, [id="china_map"] { will-change: transform; contain: layout style paint; }
.mini-card .v, .stat-val { transition: color 0.2s ease; }
.result-table tbody tr:not(.row-pending):hover { background: #f5f8ff; transition: background-color 0.15s ease; }
.loading-dot { display: inline-block; }
.loading-dot::after { content:'...'; animation: dotPulse 1.2s infinite; }
@keyframes dotPulse { 0%{opacity:.2} 50%{opacity:1} 100%{opacity:.2} }

.adv-panel { margin-top: 16px; padding-top: 16px; border-top: 1px dashed var(--line2); animation: fadeInDown 0.2s ease; }
.adv-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.adv-item { display: flex; flex-direction: column; gap: 6px; }
.adv-item.full-width { grid-column: 1 / -1; }
.adv-label { font-size: 13px; color: var(--sub); font-weight: 600; }
.adv-input { width: 100%; height: 40px; border: 1px solid #c9d3de; border-radius: 6px; padding: 0 14px; font-size: 14px; outline: none; transition: all 0.2s; background: #fff; box-sizing: border-box; }
.adv-input:focus { border-color: var(--blue); box-shadow: 0 0 0 2px rgba(75,130,255,0.2); }
.adv-input[type="number"] { -moz-appearance: textfield; }
.adv-input[type="number"]::-webkit-inner-spin-button,
.adv-input[type="number"]::-webkit-outer-spin-button { opacity: 1; }
.adv-select { width: 100%; height: 40px; border: 1px solid #c9d3de; border-radius: 6px; padding: 0 14px; font-size: 14px; outline: none; transition: all 0.2s; background: #fff; cursor: pointer; -webkit-appearance: none; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%235d6b7f' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 32px; box-sizing: border-box; }
.adv-select:focus { border-color: var(--blue); box-shadow: 0 0 0 2px rgba(75,130,255,0.2); }
@keyframes fadeInDown { from { opacity:0; transform:translateY(-10px); } to { opacity:1; transform:translateY(0); } }


.report-overlay { position:fixed; inset:0; z-index:99999; background:rgba(15,23,42,.65); display:flex; align-items:flex-start; justify-content:center; overflow-y:auto; padding:24px 16px; backdrop-filter:blur(6px); }
.report-modal { background:#fff; border-radius:14px; width:100%; max-width:1060px; box-shadow:0 25px 80px rgba(0,0,0,.35); overflow:hidden; }
.report-toolbar { display:flex; align-items:center; justify-content:space-between; padding:10px 16px; background:#f8fafc; border-bottom:1px solid #e2e8f0; position:sticky; top:0; z-index:2; }
.report-toolbar-left { display:flex; align-items:center; gap:8px; font-size:13px; font-weight:500; color:#64748b; }
.report-toolbar-right { display:flex; align-items:center; gap:8px; }
.report-dl-btn { display:inline-flex; align-items:center; gap:5px; padding:7px 14px; font-size:13px; font-weight:500; background:linear-gradient(135deg,#4b82ff,#6366f1); color:#fff; border:none; border-radius:6px; cursor:pointer; transition:all .15s; box-shadow:0 2px 8px rgba(75,130,255,.3); }
.report-dl-btn:hover { transform:translateY(-1px); box-shadow:0 4px 12px rgba(75,130,255,.4); }
.report-dl-btn:disabled { opacity:.5; cursor:not-allowed; transform:none; box-shadow:none; }
.report-close-btn { width:28px; height:28px; display:flex; align-items:center; justify-content:center; border:1px solid #e2e8f0; border-radius:6px; background:#fff; cursor:pointer; color:#94a3b8; font-size:16px; line-height:1; transition:all .15s; }
.report-close-btn:hover { background:#f1f5f9; color:#1e293b; }

.rpt { background:#fff; font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif; color:#1e293b; }
.rpt-hero { background:linear-gradient(135deg,#0f172a 0%,#1e3a5f 50%,#312e81 100%); padding:32px 36px 28px; position:relative; overflow:hidden; }
.rpt-hero::before { content:''; position:absolute; top:-60px; right:-40px; width:200px; height:200px; background:radial-gradient(circle,rgba(99,102,241,.25) 0%,transparent 70%); }
.rpt-hero::after { content:''; position:absolute; bottom:-30px; left:30%; width:300px; height:100px; background:radial-gradient(ellipse,rgba(56,189,248,.12) 0%,transparent 70%); }
.rpt-hero-inner { position:relative; z-index:1; display:flex; align-items:center; gap:18px; }
.rpt-hero img { height:48px; border-radius:10px; box-shadow:0 4px 12px rgba(0,0,0,.3); }
.rpt-hero-text h1 { font-size:22px; font-weight:700; color:#fff; margin:0 0 8px; line-height:1.3; letter-spacing:.3px; }
.rpt-hero-meta { display:flex; gap:24px; flex-wrap:wrap; font-size:12px; color:rgba(255,255,255,.55); }
.rpt-hero-meta span { display:flex; align-items:center; gap:4px; }
.rpt-hero-meta b { color:rgba(255,255,255,.85); font-weight:500; }

.rpt-metrics { display:grid; grid-template-columns:repeat(4,1fr); gap:14px; padding:20px 36px 24px; }
.rpt-mc { background:#fff; border:1px solid #e2e8f0; border-radius:12px; padding:18px 16px; text-align:center; position:relative; overflow:hidden; box-shadow:0 1px 4px rgba(0,0,0,.04); }
.rpt-mc::before { content:''; position:absolute; top:0; left:0; right:0; height:3px; }
.rpt-mc.mc-blue::before { background:linear-gradient(90deg,#4b82ff,#38bdf8); }
.rpt-mc.mc-purple::before { background:linear-gradient(90deg,#8b5cf6,#a78bfa); }
.rpt-mc.mc-green::before { background:linear-gradient(90deg,#10b981,#34d399); }
.rpt-mc.mc-red::before { background:linear-gradient(90deg,#ef4444,#f97316); }
.rpt-mc-val { font-size:24px; font-weight:800; line-height:1.2; }
.rpt-mc.mc-blue .rpt-mc-val { color:#3b82f6; }
.rpt-mc.mc-purple .rpt-mc-val { color:#7c3aed; }
.rpt-mc.mc-green .rpt-mc-val { color:#059669; }
.rpt-mc.mc-red .rpt-mc-val { color:#dc2626; }
.rpt-mc-lbl { font-size:12px; color:#94a3b8; margin-top:6px; font-weight:500; letter-spacing:.3px; }

.rpt-section { padding:0 36px 24px; }
.rpt-section-title { font-size:14px; font-weight:700; color:#1e293b; margin-bottom:12px; display:flex; align-items:center; gap:8px; }
.rpt-section-title::before { content:''; width:4px; height:18px; border-radius:2px; background:linear-gradient(180deg,#4b82ff,#6366f1); flex-shrink:0; }
.rpt-table-wrap { overflow-x:visible; }
.rpt-table { width:100%; border-collapse:separate; border-spacing:0; font-size:13px; border:1px solid #e2e8f0; border-radius:8px; overflow:hidden; table-layout:fixed; }
.rpt-table.rpt-compact { font-size:12px; }
.rpt-table.rpt-compact th { padding:8px 10px; font-size:11px; }
.rpt-table.rpt-compact td { padding:7px 10px; }
.rpt-table th { background:linear-gradient(180deg,#1e293b,#334155); color:#e2e8f0; font-weight:600; text-align:left; padding:11px 14px; font-size:12px; letter-spacing:.5px; border:none; white-space:nowrap; }
.rpt-table td { padding:10px 14px; border-bottom:1px solid #f1f5f9; color:#334155; background:#fff; word-break:break-all; overflow-wrap:break-word; }
.rpt-table td { padding:10px 14px; border-bottom:1px solid #f1f5f9; color:#334155; background:#fff; }
.rpt-table tbody tr:nth-child(even) td { background:#f8fafc; }
.rpt-table tbody tr:first-child td { font-weight:600; }
.rpt-table tbody tr:last-child td { border-bottom:none; }
.rpt-table .c-green { color:#059669; font-weight:500; }
.rpt-table .c-red { color:#dc2626; font-weight:500; }
.rpt-table .c-gray { color:#94a3b8; }
.rpt-table .c-bold { font-weight:700; }
.rpt-tag { display:inline-block; padding:2px 10px; border-radius:10px; font-size:11px; font-weight:600; letter-spacing:.2px; }
.rpt-tag-ok { background:#ecfdf5; color:#059669; }
.rpt-tag-warn { background:#fffbeb; color:#d97706; }
.rpt-tag-err { background:#fef2f2; color:#dc2626; }

.rpt-footer { margin:0 36px; padding:16px 0; border-top:2px solid #f1f5f9; display:flex; align-items:center; justify-content:space-between; font-size:11px; color:#94a3b8; }
.rpt-footer-brand { display:flex; align-items:center; gap:6px; font-weight:500; }
.rpt-footer-brand img { height:16px; border-radius:3px; opacity:.6; }

.sponsor-banner { margin-bottom: 16px; }
.sponsor-banner-inner { display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap; padding: 16px 20px; background: #fff; border: 1px solid var(--line2, #e8edf3); border-radius: 10px; }
.sponsor-banner-item { display: inline-flex; align-items: center; text-decoration: none; transition: opacity 0.2s; }
.sponsor-banner-item:hover { opacity: 0.8; }
.sponsor-banner-item img { height: 40px; border-radius: 4px; }
.sponsor-banner-item span { font-size: 13px; color: var(--sub); padding: 5px 14px; background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 6px; }

.sponsor-footer { max-width: 1240px; margin: 0 auto 20px; padding: 0 16px; }
.sponsor-footer-inner { display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap; padding: 16px 20px; background: #fff; border: 1px solid var(--line2, #e8edf3); border-radius: 10px; }
.sponsor-footer-item { display: inline-flex; align-items: center; text-decoration: none; transition: opacity 0.2s; }
.sponsor-footer-item:hover { opacity: 0.8; }
.sponsor-footer-item img { height: 40px; border-radius: 4px; }
.sponsor-footer-item span { font-size: 13px; color: var(--sub); padding: 5px 14px; background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 6px; }

.sponsor-html-item { line-height: 0; }
.sponsor-html-item img { max-width: 100%; height: auto; vertical-align: middle; }
.sponsor-html-item a { display: inline-block; }
