/* ============================================================
   VPNHP · IP 检测页专属样式(check-ip.html)
   ============================================================ */

/* ---- 页头 ---- */
.ip-head{padding-top:56px;padding-bottom:10px}
.ip-head h1{margin:16px 0 0;font-size:clamp(34px,4.4vw,48px)}
.ip-lead{display:flex;flex-direction:column;align-items:flex-start;gap:18px;margin-top:18px}
.ip-cta{display:flex;align-items:center;gap:14px;flex-wrap:wrap}

/* ---- 结果卡 ---- */
.ip-card{
  background:var(--bg-panel);
  border:1px solid var(--border);
  border-radius:var(--radius-l);
  box-shadow:var(--shadow-card);
  padding:26px 28px 22px;
  min-width:0;
}
.ip-card-head{
  display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;
  padding-bottom:16px;border-bottom:1px dashed var(--border);
}
.ip-card-title{font-size:18px;letter-spacing:-.01em}
.ip-live{display:inline-flex;align-items:center;gap:7px;font-size:12.5px;color:var(--text-muted)}
.ip-live .dot{width:8px;height:8px;border-radius:50%;background:var(--grad-sunrise);flex:none;animation:ipPulse 2s ease-in-out infinite}
@keyframes ipPulse{0%,100%{opacity:1}50%{opacity:.35}}

.ip-main{display:flex;align-items:center;gap:16px;flex-wrap:wrap;padding-top:20px}
.ip-big{
  font-family:var(--font-mono);
  font-variant-numeric:tabular-nums;
  font-weight:700;font-size:32px;color:var(--accent-dark);
  overflow-wrap:anywhere;min-width:0;flex:1 1 200px;
}
.ip-big.is-empty{color:var(--text-muted);font-size:19px;font-weight:500}
.ip-copy{flex:none}
.ip-copy:disabled{opacity:.45;cursor:default}
.ip-copy:disabled:hover{background:var(--bg-panel);color:var(--accent-dark)}

.ip-grid{
  display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));
  gap:14px;padding-top:20px;
}
.ip-field{
  background:var(--bg-panel2);
  border:1px solid var(--border);
  border-radius:var(--radius-m);
  padding:14px 16px;min-width:0;
}
.ip-label{
  display:block;font-size:11.5px;letter-spacing:.1em;
  font-weight:600;color:var(--text-muted);margin-bottom:7px;
}
.ip-value{font-size:15.5px;font-weight:600;overflow-wrap:anywhere}
.ip-value.is-empty{color:var(--text-muted);font-weight:400}

.ip-state{display:inline-flex;align-items:center;gap:7px;font-size:15px;font-weight:600}
.ip-state::before{content:"";width:8px;height:8px;border-radius:50%;flex:none}
.ip-state.st-ok{color:var(--success)}
.ip-state.st-ok::before{background:var(--success);box-shadow:0 0 0 3px var(--success-ring)}
.ip-state.st-warn{color:var(--warn)}
.ip-state.st-warn::before{background:var(--warn)}
.ip-state.st-na{color:var(--text-muted);font-weight:400}
.ip-state.st-na::before{background:var(--border)}

.ip-note{margin-top:16px;font-size:13px;color:var(--text-muted);line-height:1.7}
.ip-actions{margin-top:16px;display:flex;gap:12px;flex-wrap:wrap}

/* ---- 章节通用 ---- */
.ip-sec h2{margin-top:14px;margin-bottom:18px}
.ip-intro{font-size:15px;color:var(--text-muted);line-height:1.8;max-width:44em}

/* ---- 解读卡 ---- */
.ip-read-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:18px}
.ip-read{
  background:var(--bg-panel);border:1px solid var(--border);
  border-radius:var(--radius-m);padding:20px 22px;box-shadow:var(--shadow-card);min-width:0;
}
.ip-read h3{font-size:16.5px;margin-bottom:10px}
.ip-read p{font-size:14px;color:var(--text-muted);line-height:1.8}
.ip-read a,.ip-steps a,.callout a{color:var(--accent-dark);font-weight:600}
.ip-read a:hover,.ip-steps a:hover,.callout a:hover{text-decoration:underline}

/* ---- 步骤列表 ---- */
.ip-steps{list-style:none;counter-reset:ipstep;display:flex;flex-direction:column;gap:16px;margin-top:22px}
.ip-steps li{
  counter-increment:ipstep;position:relative;
  padding-left:46px;min-width:0;
  font-size:14.5px;color:var(--text-muted);line-height:1.8;
}
.ip-steps li::before{
  content:counter(ipstep);
  position:absolute;left:0;top:1px;
  width:30px;height:30px;border-radius:50%;
  display:flex;align-items:center;justify-content:center;
  background:var(--grad-sunrise);color:var(--bg-panel);
  font-family:var(--font-mono);font-weight:700;font-size:13px;
}
.ip-steps li strong{color:var(--text)}

/* ---- 复制兜底用隐藏文本域 ---- */
.ip-offscreen{position:fixed;left:-9999px;top:0}

/* ---- 响应式 ---- */
@media (max-width:640px){
  .ip-card{padding:20px 18px 18px}
  .ip-big{font-size:26px}
  .ip-read-grid{grid-template-columns:1fr}
}
@media (prefers-reduced-motion:reduce){
  .ip-live .dot{animation:none}
}