:root{
  --bg:#f4f6fb;
  --card:#ffffff;
  --line:rgba(15,23,42,0.08);
  --text:#0f172a;
  --muted:rgba(15,23,42,0.62);
  --muted-2:rgba(15,23,42,0.46);
  --shadow:0 18px 60px rgba(15,23,42,0.10);
  --radius:20px;
  --ok:#22c55e;
  --warn:#f59e0b;
  --info:#64748b;
  --blue:#2563eb;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family:"Noto Sans SC","PingFang SC","Microsoft YaHei",system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial,sans-serif;
  background:var(--bg);
  color:var(--text);
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}
a{color:inherit;text-decoration:none}
img{display:block;max-width:100%;height:auto}

.detect-overlay{
  position:fixed;
  inset:0;
  z-index:1000;
  display:none;
  align-items:center;
  justify-content:center;
  padding:18px;
}
.detect-overlay[data-open="1"]{display:flex}
.detect-overlay-backdrop{
  position:absolute;
  inset:0;
  background:rgba(0,0,0,0.55);
  backdrop-filter:blur(6px);
}
.detect-overlay-panel{
  position:relative;
  width:min(520px, calc(100vw - 36px));
  border-radius:18px;
  background:#fff;
  border:1px solid rgba(15,23,42,0.10);
  box-shadow:0 30px 90px rgba(0,0,0,0.35);
  padding:18px 18px 16px;
}
.detect-overlay-title{
  font-weight:950;
  font-size:15px;
  letter-spacing:-0.01em;
  color:rgba(15,23,42,0.88);
}
.detect-overlay-sub{
  margin-top:6px;
  font-size:13px;
  line-height:1.7;
  color:rgba(15,23,42,0.62);
}
.detect-progress{
  margin-top:14px;
  height:10px;
  border-radius:999px;
  background:rgba(15,23,42,0.08);
  overflow:hidden;
}
.detect-progress-bar{
  height:100%;
  width:42%;
  border-radius:999px;
  background:linear-gradient(90deg,rgba(37,99,235,0.88),rgba(34,197,94,0.88),rgba(37,99,235,0.88));
  background-size:200% 100%;
  animation:detect-progress-move 1.1s linear infinite, detect-progress-width 1.8s ease-in-out infinite;
}
@keyframes detect-progress-move{
  0%{background-position:0% 50%}
  100%{background-position:100% 50%}
}
@keyframes detect-progress-width{
  0%{transform:translateX(-40%)}
  50%{transform:translateX(110%)}
  100%{transform:translateX(210%)}
}

.detect-shell{
  width:100%;
  max-width:1040px;
  margin:0 auto;
  padding:22px 16px 40px;
}

.detect-topbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding:8px 6px 18px;
}
.detect-brand{
  display:flex;
  align-items:center;
  gap:12px;
}
.detect-brand img{
  width:36px;
  height:36px;
  border-radius:9999px;
  object-fit:cover;
}
.detect-brand span{
  display:flex;
  flex-direction:column;
  min-width:0;
}
.detect-brand strong{
  font-size:14px;
  letter-spacing:-0.01em;
}
.detect-brand em{
  font-style:normal;
  font-size:12px;
  color:var(--muted-2);
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  max-width:54vw;
}
.detect-link{
  font-size:13px;
  font-weight:700;
  color:rgba(37,99,235,0.92);
  padding:10px 12px;
  border-radius:999px;
  border:1px solid rgba(37,99,235,0.20);
  background:rgba(37,99,235,0.06);
}
.detect-link:hover{background:rgba(37,99,235,0.10)}

.detect-card{
  background:var(--card);
  border:1px solid var(--line);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  padding:22px;
}
.detect-card + .detect-card{margin-top:16px}
.detect-card-tight{padding:20px}

.detect-h1{
  margin:0;
  font-size:28px;
  line-height:1.2;
  letter-spacing:-0.02em;
}
.detect-h1-tight{margin-top:4px}
.detect-sub{
  margin:10px 0 0;
  color:var(--muted);
  line-height:1.85;
  font-size:14px;
}
.detect-sub-tight{margin-top:6px}
.detect-domain{font-weight:800;color:rgba(15,23,42,0.90)}

.detect-form{margin-top:16px}
.detect-label{
  display:block;
  font-size:12px;
  font-weight:800;
  color:rgba(15,23,42,0.70);
  margin-bottom:8px;
}
.detect-row{
  display:flex;
  gap:10px;
}
.detect-input{
  flex:1;
  min-width:0;
  padding:14px 14px;
  border-radius:14px;
  border:1px solid rgba(15,23,42,0.14);
  background:#fff;
  color:rgba(15,23,42,0.90);
  outline:none;
  box-shadow:0 1px 0 rgba(15,23,42,0.03);
}
.detect-input::placeholder{color:rgba(15,23,42,0.40)}
.detect-input:focus{border-color:rgba(37,99,235,0.40);box-shadow:0 0 0 4px rgba(37,99,235,0.12)}

.detect-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:14px 16px;
  border-radius:14px;
  border:1px solid rgba(37,99,235,0.20);
  background:linear-gradient(180deg,rgba(37,99,235,0.94),rgba(29,78,216,0.94));
  color:#fff;
  font-weight:800;
  font-size:13px;
  cursor:pointer;
  white-space:nowrap;
}
.detect-btn:hover{filter:brightness(0.98)}
.detect-btn.ghost{
  background:#fff;
  color:rgba(37,99,235,0.92);
  border-color:rgba(37,99,235,0.24);
}
.detect-helpbar{
  margin-top:14px;
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
  font-size:14px;
  color:rgba(15,23,42,0.70);
}
.detect-helpbar-ico{
  width:18px;
  height:18px;
  flex:0 0 auto;
}
.detect-helpbar-ico.question{
  fill:none;
  stroke:#2563eb;
  stroke-width:2;
}
.detect-helpbar-ico.wechat{
  fill:none;
  stroke:#16a34a;
  stroke-width:2;
}
.detect-helpbar-prefix{
  display:inline-flex;
  align-items:center;
  gap:8px;
  color:#2563eb;
  font-weight:900;
  white-space:nowrap;
}
.detect-helpbar-scan{
  display:inline-flex;
  align-items:center;
  gap:6px;
  color:rgba(15,23,42,0.56);
  white-space:nowrap;
}
.detect-helpbar-cta{
  display:inline-flex;
  align-items:center;
  gap:8px;
  appearance:none;
  border:0;
  background:transparent;
  padding:0;
  font:inherit;
  font-weight:900;
  color:#16a34a;
  cursor:pointer;
  white-space:nowrap;
}
.detect-helpbar-cta:hover{text-decoration:underline}

.detect-modal{
  position:fixed;
  inset:0;
  z-index:999;
  display:none;
  align-items:center;
  justify-content:center;
  padding:18px;
}
.detect-modal[data-open="1"]{display:flex}
.detect-modal-backdrop{
  position:absolute;
  inset:0;
  background:rgba(0,0,0,0.55);
}
.detect-modal-panel{
  position:relative;
  width:min(420px, calc(100vw - 36px));
  background:#fff;
  border-radius:18px;
  box-shadow:0 30px 90px rgba(0,0,0,0.35);
  padding:18px;
}
.detect-modal-close{
  position:absolute;
  top:10px;
  right:10px;
  width:34px;
  height:34px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:999px;
  border:1px solid rgba(15,23,42,0.10);
  background:#fff;
  color:rgba(15,23,42,0.56);
  cursor:pointer;
}
.detect-modal-close:hover{color:rgba(15,23,42,0.78)}
.detect-modal-qr{
  width:100%;
  display:flex;
  justify-content:center;
  padding:18px 10px 12px;
}
.detect-modal-qr img{
  width:260px;
  height:260px;
  border-radius:14px;
  border:1px solid rgba(15,23,42,0.08);
  background:#fff;
}
.detect-modal-foot{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:12px;
  padding:0 8px 8px;
  color:rgba(15,23,42,0.72);
  font-size:14px;
}
.detect-modal-code{font-weight:950;color:rgba(15,23,42,0.88)}
.detect-modal-copy{
  appearance:none;
  border:1px solid rgba(15,23,42,0.14);
  background:rgba(15,23,42,0.04);
  color:rgba(15,23,42,0.78);
  font-weight:900;
  font-size:12px;
  padding:8px 12px;
  border-radius:999px;
  cursor:pointer;
}
.detect-modal-copy:hover{background:rgba(15,23,42,0.06)}
.detect-note{
  margin:10px 0 0;
  font-size:12px;
  line-height:1.7;
  color:rgba(15,23,42,0.46);
}

.detect-result-head{
  display:grid;
  grid-template-columns:160px 1fr;
  gap:18px;
  align-items:center;
}
.detect-summary{min-width:0}
.detect-status{
  display:inline-flex;
  align-items:center;
  height:28px;
  padding:0 12px;
  border-radius:999px;
  font-weight:900;
  font-size:12px;
  color:rgba(15,23,42,0.72);
  border:1px solid rgba(15,23,42,0.10);
  background:rgba(15,23,42,0.04);
}
.detect-status.ok{color:rgba(21,128,61,0.96);border-color:rgba(34,197,94,0.22);background:rgba(34,197,94,0.10)}
.detect-status.warn{color:rgba(180,83,9,0.96);border-color:rgba(245,158,11,0.24);background:rgba(245,158,11,0.12)}
.detect-status.bad{color:rgba(185,28,28,0.96);border-color:rgba(239,68,68,0.20);background:rgba(239,68,68,0.10)}

.detect-ring{
  position:relative;
  width:140px;
  height:140px;
  margin:0 auto;
}
.detect-ring svg{width:100%;height:100%;transform:rotate(-90deg)}
.detect-ring-bg{
  fill:none;
  stroke:rgba(15,23,42,0.08);
  stroke-width:12;
}
.detect-ring-fg{
  fill:none;
  stroke:var(--ok);
  stroke-width:12;
  stroke-linecap:round;
  stroke-dasharray:0 999;
  transition:stroke-dasharray .55s ease;
}
.detect-ring-text{
  position:absolute;
  inset:0;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  pointer-events:none;
}
.detect-ring-num{
  font-weight:950;
  font-size:30px;
  letter-spacing:-0.03em;
  color:rgba(34,197,94,0.96);
}
.detect-ring-sub{
  margin-top:4px;
  font-size:12px;
  font-weight:800;
  color:rgba(15,23,42,0.46);
}

.detect-metrics{
  margin-top:18px;
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:12px;
}
.detect-metric{
  display:flex;
  align-items:center;
  gap:10px;
  padding:14px 14px;
  border-radius:18px;
  border:1px solid rgba(15,23,42,0.08);
  background:rgba(15,23,42,0.02);
}
.detect-metric-icon{
  width:34px;
  height:34px;
  border-radius:14px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:900;
  border:1px solid rgba(15,23,42,0.08);
  background:#fff;
  color:rgba(15,23,42,0.70);
}
.detect-metric-icon.ok{color:rgba(21,128,61,0.96);border-color:rgba(34,197,94,0.22);background:rgba(34,197,94,0.10)}
.detect-metric-icon.warn{color:rgba(180,83,9,0.96);border-color:rgba(245,158,11,0.24);background:rgba(245,158,11,0.12)}
.detect-metric-icon.info{color:rgba(51,65,85,0.96);border-color:rgba(100,116,139,0.22);background:rgba(100,116,139,0.10)}
.detect-metric-icon.link{color:rgba(91,33,182,0.96);border-color:rgba(139,92,246,0.22);background:rgba(139,92,246,0.10)}
.detect-metric-num{
  font-weight:950;
  font-size:18px;
  letter-spacing:-0.02em;
}
.detect-metric-label{
  margin-top:2px;
  font-size:12px;
  color:rgba(15,23,42,0.46);
  font-weight:800;
}

.detect-h2{
  margin:0;
  font-size:16px;
  letter-spacing:-0.01em;
}
.detect-advice{
  margin-top:18px;
  padding:16px;
  border-radius:18px;
  border:1px solid rgba(245,158,11,0.18);
  background:rgba(245,158,11,0.10);
}
.detect-advice-text{
  margin:10px 0 0;
  color:rgba(15,23,42,0.72);
  line-height:1.85;
  font-size:13.5px;
}
.detect-advice-list{
  margin:10px 0 0;
  padding:0;
  list-style:none;
  display:grid;
  gap:8px;
}
.detect-advice-list li{
  display:flex;
  gap:10px;
  align-items:flex-start;
  color:rgba(15,23,42,0.72);
  line-height:1.75;
  font-size:13px;
}
.detect-advice-list li::before{
  content:"";
  width:8px;
  height:8px;
  border-radius:999px;
  background:rgba(245,158,11,0.70);
  margin-top:8px;
  flex:0 0 auto;
}
.detect-actions{
  margin-top:12px;
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}

.detect-table{margin-top:12px}
.detect-tr{
  display:grid;
  grid-template-columns:1fr 120px 110px;
  gap:10px;
  padding:14px 12px;
  border-top:1px solid rgba(15,23,42,0.08);
}
.detect-tr.head{
  border-top:0;
  padding-top:10px;
  padding-bottom:10px;
  background:rgba(15,23,42,0.02);
  border:1px solid rgba(15,23,42,0.08);
  border-radius:14px;
}
.detect-td{min-width:0}
.detect-td.right{text-align:right}
.detect-item{
  display:flex;
  gap:10px;
  align-items:flex-start;
}
.detect-item-icon{
  width:34px;
  height:34px;
  border-radius:14px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:900;
  border:1px solid rgba(15,23,42,0.08);
  background:rgba(15,23,42,0.02);
  color:rgba(15,23,42,0.70);
  flex:0 0 auto;
}
.detect-item-text strong{
  display:block;
  font-size:13.5px;
  letter-spacing:-0.01em;
}
.detect-item-text span{
  display:block;
  margin-top:4px;
  font-size:12px;
  line-height:1.6;
  color:rgba(15,23,42,0.46);
}
.detect-pill{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  height:26px;
  padding:0 10px;
  border-radius:999px;
  font-size:12px;
  font-weight:900;
  border:1px solid rgba(15,23,42,0.10);
  background:rgba(15,23,42,0.03);
  color:rgba(15,23,42,0.72);
}
.detect-pill.ok{border-color:rgba(34,197,94,0.22);background:rgba(34,197,94,0.10);color:rgba(21,128,61,0.96)}
.detect-pill.warn{border-color:rgba(245,158,11,0.24);background:rgba(245,158,11,0.12);color:rgba(180,83,9,0.96)}

@media (max-width: 860px){
  .detect-result-head{grid-template-columns:1fr;gap:12px}
  .detect-ring{margin:0}
  .detect-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}
  .detect-row{flex-direction:column}
  .detect-btn{width:100%}
  .detect-tr{grid-template-columns:1fr;gap:8px}
  .detect-td.right{text-align:left}
}
