/* ==========================================================================
   VPNPF — iplookup.css
   我的 IP 工具页专属样式:页面头、查询结果卡、字段解读栅格、
   自查步骤容器、相关链接行与复制回落用的隐藏文本域。
   颜色 / 圆角 / 字体一律引用 base.css 的设计令牌,不写死设计值。
   ========================================================================== */

/* ---------- 页面头(左对齐工具页版式) ---------- */
.ip-hero { padding-top: 40px; padding-bottom: 0; }
.ip-head { max-width: 800px; }
.ip-head h1 { margin-top: 18px; }
.ip-head .sub {
  margin-top: 16px;
  font-size: 18px;
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 64ch;
}
.ip-head .trust { justify-content: flex-start; }
.ip-cta {
  margin-top: 26px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 24px;
}

/* ---------- 查询结果卡 ---------- */
.ip-card { padding: 22px 24px 20px; }
.ip-card-head {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 14px 20px;
}
.ip-state {
  display: inline-flex; align-items: center; gap: 9px;
  min-width: 0; font-size: 13.5px; color: var(--text-muted);
}
.ip-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.ip-actions .btn { flex-shrink: 0; white-space: nowrap; }
.ip-actions .btn[disabled] { opacity: .5; cursor: not-allowed; }
.ip-actions .btn svg { width: 14px; height: 14px; flex-shrink: 0; }

.ip-grid {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
}
.ip-cell {
  min-width: 0;
  display: flex; flex-direction: column; gap: 8px;
  padding: 18px 20px;
  background: var(--bg-panel);
}
.ip-cell dt { font-size: 12px; letter-spacing: .06em; color: var(--text-muted); }
.ip-cell dd { min-width: 0; display: flex; flex-direction: column; gap: 7px; }
.ip-cell-value {
  font-size: 17px; font-weight: 500; line-height: 1.4; color: var(--text);
  overflow-wrap: anywhere;
}
.ip-cell-value.is-mono { font-family: var(--font-mono); font-size: 18px; letter-spacing: -.01em; }
.ip-cell-value.is-ok { color: var(--success); }
.ip-cell-value.is-warn { color: var(--warn); }
.ip-cell-value.is-muted { color: var(--text-muted); font-weight: 400; }
.ip-cell-note { font-size: 12.5px; line-height: 1.55; color: var(--text-muted); }

.ip-meta {
  margin-top: 14px; font-size: 12.5px; line-height: 1.6;
  color: var(--text-muted); max-width: 88ch;
}

/* ---------- 字段解读 ---------- */
.ip-explain {
  margin-top: 34px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 44px;
}
.ip-explain article {
  min-width: 0;
  padding: 22px 0 6px;
  border-top: 1px solid var(--border);
}
.ip-explain h3 { font-size: 17px; }
.ip-explain p { margin-top: 8px; font-size: 14px; line-height: 1.65; color: var(--text-muted); }

/* ---------- 自查步骤 / 隐私段落容器 ---------- */
.ip-steps { margin-top: 30px; max-width: 78ch; }
.ip-steps .callout { margin-top: 30px; }
.ip-steps .callout a { color: var(--accent-dark); border-bottom: 1px solid var(--border); }
.ip-steps .lead + .lead { margin-top: 14px; }
.ip-steps .lead + .callout { margin-top: 22px; }

/* ---------- 相关链接行 ---------- */
.ip-links { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 14px 28px; }

/* ---------- FAQ 阅读宽度 ---------- */
.ip-faq { max-width: 84ch; }

/* ---------- 复制回落用的隐藏文本域 ---------- */
.ip-copy-area {
  position: fixed; top: -1000px; left: -1000px;
  width: 1px; height: 1px; opacity: 0;
}

/* ---------- 响应式 ---------- */
@media (max-width: 768px) {
  .ip-grid { grid-template-columns: 1fr; }
  .ip-explain { grid-template-columns: 1fr; gap: 0; }
  .ip-head .sub { font-size: 16px; }
}

@media (max-width: 640px) {
  .ip-card { padding: 18px 16px 16px; }
  .ip-cell { padding: 16px; }
  .ip-cta { gap: 14px; }
}