/* ============================================================
   VPNCU · iplookup.css
   IP 查询工具页专属样式
   ============================================================ */

/* ---------- Hero ---------- */
.ip-hero {
  padding-top: 64px;
  padding-bottom: 36px;
  text-align: center;
}

.ip-hero .kicker {
  margin-bottom: 16px;
}

.ip-hero h1 {
  font-size: clamp(36px, 4.5vw, 52px);
  line-height: 1.12;
  letter-spacing: -.025em;
  color: var(--ink);
}

.ip-hero-sub {
  margin: 14px auto 0;
  max-width: 560px;
  font-size: 16px;
  color: var(--muted);
}

/* ---------- 结果卡 ---------- */
.ip-tools {
  padding-top: 8px;
  padding-bottom: 56px;
}

.ip-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-1);
  padding: 28px 32px;
  max-width: 820px;
  margin: 0 auto;
}

.ip-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.ip-card-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 18px;
  color: var(--ink);
}

.ip-copy-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 7px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-dark);
  background: var(--panel);
  border: 1px solid var(--accent);
  border-radius: var(--r-sm);
  min-height: 34px;
  min-width: 64px;
  transition: background .18s ease, color .18s ease, border-color .18s ease;
}

.ip-copy-btn:hover {
  background: var(--accent);
  color: var(--white);
}

.ip-copy-btn.copied {
  background: var(--ok);
  border-color: var(--ok);
  color: var(--white);
}

.ip-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.ip-field {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 14px 18px;
  min-width: 0;
}

.ip-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}

.ip-value {
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  word-break: break-all;
  overflow-wrap: anywhere;
}

.ip-value.proxy-yes {
  color: var(--ok);
}

.ip-value.proxy-no {
  color: var(--muted);
}

.ip-error {
  margin-top: 16px;
  padding: 12px 16px;
  background: var(--bg);
  border-left: 3px solid var(--err);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  font-size: 14px;
  color: var(--err);
}

.ip-note {
  margin-top: 16px;
  font-size: 13px;
  color: var(--muted);
}

/* ---------- 解读段落 ---------- */
.ip-explain {
  padding-top: 24px;
  padding-bottom: 56px;
}

.ip-explain-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.ip-explain-item {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 24px 28px;
  min-width: 0;
}

.ip-explain-num {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .12em;
  color: var(--accent-dark);
  margin-bottom: 14px;
}

.ip-explain-item h2 {
  font-size: 20px;
  margin-bottom: 10px;
}

.ip-explain-item p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
}

/* ---------- DNS 泄漏自查 ---------- */
.ip-dns {
  padding-bottom: 56px;
}

.ip-dns-panel {
  background: var(--panel2);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 32px 36px;
}

.ip-dns-panel h2 {
  font-size: 22px;
  margin-bottom: 12px;
}

.ip-dns-panel p {
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--muted);
  margin-bottom: 10px;
}

.ip-dns-panel p:last-child {
  margin-bottom: 0;
}

/* ---------- 隐私提示 ---------- */
.ip-privacy {
  padding-bottom: 56px;
}

.ip-privacy-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 28px 32px;
  display: flex;
  align-items: flex-start;
  gap: 18px;
}

.ip-privacy-card svg {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  color: var(--accent-dark);
  margin-top: 2px;
}

.ip-privacy-card h2 {
  font-size: 20px;
  margin-bottom: 8px;
}

.ip-privacy-card p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
}

/* ---------- 底部 CTA ---------- */
.ip-cta {
  padding-bottom: 72px;
}

.ip-cta-inner {
  background: var(--ink);
  border-radius: var(--r-lg);
  padding: 36px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.ip-cta-inner h2 {
  color: var(--white);
  font-size: 24px;
}

.ip-cta-inner p {
  color: var(--white);
  font-size: 14.5px;
  margin-top: 6px;
  opacity: .85;
}

.ip-cta-inner .btn-primary {
  flex-shrink: 0;
}

/* ---------- 复制 fallback 辅助元素 ---------- */
.ip-copy-fallback {
  position: fixed;
  top: -9999px;
  left: -9999px;
  opacity: 0;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
  .ip-explain-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}

@media (max-width: 768px) {
  .ip-hero {
    padding-top: 48px;
    padding-bottom: 28px;
  }

  .ip-card {
    padding: 22px 20px;
  }

  .ip-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .ip-dns-panel {
    padding: 24px 22px;
  }

  .ip-privacy-card {
    padding: 22px 20px;
    flex-direction: column;
    gap: 14px;
  }

  .ip-cta-inner {
    padding: 28px 24px;
    flex-direction: column;
    align-items: flex-start;
  }

  .ip-cta-inner .btn-primary {
    width: 100%;
  }
}