/* 起源计划 IP查询 · 站点补充样式。
   约定：.i46-main 本身就是主站白卡，内部不再嵌套白卡；
   表格走 is46-ui.css 的 .i46-doc 同款轻量横线风。 */

/* ---------- 区块与标题节奏 ---------- */
.i46-block { margin: 0 0 20px; }
.i46-h2 { margin: 26px 0 12px; font-size: 16.5px; font-weight: 700; color: #0f172a; }
.i46-h2:first-child { margin-top: 4px; }
.i46-h3 { margin: 18px 0 8px; font-size: 14px; font-weight: 600; color: #334155; }
.i46-main p { font-size: 14px; line-height: 1.9; color: #334155; }

/* ---------- 表格：i46-doc 同款 ---------- */
.i46-block table, .i46-qbox + table {
  width: 100%; border-collapse: collapse; margin: 0;
}
.i46-block th, .i46-block td {
  padding: 9px 10px; text-align: left; vertical-align: top;
  border-top: 1px solid #eef2f7; font-size: 13.5px; color: #334155;
}
.i46-block tbody tr:last-child td { border-bottom: 1px solid #eef2f7; }
.i46-block thead th {
  border-top: 0; padding-bottom: 8px;
  font-size: 12.5px; font-weight: 600; color: #64748b; letter-spacing: .02em;
}
table.i46-kv td.i46-kv-k { width: 158px; color: #94a3b8; font-size: 12.5px; padding-top: 10px; }
.i46-block code {
  background: #f8fafc; border: 1px solid #eef2f7; border-radius: 6px;
  padding: 1px 6px; font-size: 13px; color: #0f172a; word-break: break-all;
}
@media (max-width: 640px) {
  table.i46-kv td.i46-kv-k { width: auto; display: block; padding-bottom: 0; border-top: 0; }
  table.i46-kv tr { display: block; border-bottom: 1px solid #eef2f7; padding-bottom: 6px; }
  table.i46-kv td { border-top: 0; display: block; }
}

/* ---------- 风险标识 chips ---------- */
.i46-chips { margin: 0 0 4px; }
.i46-chip-ok { background: #ecfdf5; color: #047857; border-color: #a7f3d0; }
.i46-chip-danger { background: #fef2f2; color: #b91c1c; border-color: #fecaca; }
.i46-chip-warning { background: #fffbeb; color: #b45309; border-color: #fde68a; }
.i46-chip-info { background: #eff6ff; color: #1d4ed8; border-color: #bfdbfe; }
.i46-chip-muted { background: #f8fafc; color: #64748b; border-color: #e2e8f0; }

/* ---------- 滥用度评分卡（浅灰内嵌块） ---------- */
.i46-score {
  display: flex; gap: 20px; align-items: center;
  background: #f8fafc; border: 1px solid #eef2f7; border-radius: 10px;
  padding: 16px 18px; margin: 0 0 14px;
}
.i46-score-num { font-size: 40px; font-weight: 800; line-height: 1; min-width: 92px; text-align: center; }
.i46-score-num small { font-size: 13px; font-weight: 400; color: #94a3b8; }
.i46-score-side { flex: 1; min-width: 0; }
.i46-score-lv { font-weight: 600; margin: 0 0 8px; font-size: 14.5px; }
.i46-score-bar { height: 8px; border-radius: 4px; background: #e2e8f0; overflow: hidden; }
.i46-score-bar i { display: block; height: 100%; border-radius: 4px; }
.i46-score-note { font-size: 12px; color: #94a3b8; margin: 8px 0 0; }
.i46-score-ok { color: #047857; } .i46-score-ok-t { color: #047857; } .i46-score-ok .i46-score-bar i { background: #10b981; }
.i46-score-mild { color: #b45309; } .i46-score-mild-t { color: #b45309; } .i46-score-mild .i46-score-bar i { background: #f59e0b; }
.i46-score-warn { color: #c2410c; } .i46-score-warn-t { color: #c2410c; } .i46-score-warn .i46-score-bar i { background: #f97316; }
.i46-score-danger { color: #b91c1c; } .i46-score-danger-t { color: #b91c1c; } .i46-score-danger .i46-score-bar i { background: #ef4444; }
@media (max-width: 640px) {
  .i46-score { flex-direction: column; align-items: stretch; text-align: center; gap: 12px; }
  .i46-score-num { min-width: 0; }
}
.i46-sig-bad { color: #b91c1c; font-weight: 600; }
.i46-sig-ok { color: #047857; }

/* ---------- 记录类型徽标 ---------- */
.i46-rt { display: inline-block; min-width: 46px; text-align: center; font-size: 12px; font-weight: 600; border-radius: 5px; padding: 1px 6px; background: #eff6ff; color: #1d4ed8; border: 1px solid #bfdbfe; }
.i46-rt-aaaa { background: #f0fdf4; color: #15803d; border-color: #bbf7d0; }
.i46-rt-cname { background: #fef2f2; color: #b91c1c; border-color: #fecaca; }
.i46-rt-mx { background: #fffbeb; color: #b45309; border-color: #fde68a; }
.i46-rt-txt { background: #faf5ff; color: #7e22ce; border-color: #e9d5ff; }
.i46-rt-soa { background: #f8fafc; color: #475569; border-color: #e2e8f0; }
.i46-rt-ns { background: #f0f9ff; color: #0369a1; border-color: #bae6fd; }
.i46-rt-caa { background: #fdf4ff; color: #86198f; border-color: #f5d0fe; }

/* ---------- 按钮 ---------- */
.i46-mini-btn { display: inline-block; font-size: 12px; border: 1px solid #cbd5e1; border-radius: 5px; padding: 1px 8px; color: #334155; background: #fff; text-decoration: none !important; white-space: nowrap; }
.i46-mini-btn:hover { border-color: #2563eb; color: #2563eb; }
.btn-primary { background: #2563eb; color: #fff; border: 1px solid #2563eb; border-radius: 8px; padding: 8px 20px; cursor: pointer; font-size: 14px; }
.btn-primary:hover { background: #1d4ed8; }

/* ---------- 查询输入框（栏目页/结果页通用） ---------- */
.i46-qbox { margin: 0 0 22px; }
.i46-qbox form { display: flex; gap: 10px; }
.i46-qbox input {
  flex: 1; min-width: 0; border: 1px solid var(--line, #dbe3ef); border-radius: 8px;
  padding: 9px 14px; font-size: 14px; color: #0f172a; background: #fff;
}
.i46-qbox input:focus { outline: none; border-color: #2563eb; box-shadow: 0 0 0 3px rgba(37, 99, 235, .12); }
.i46-qbox .i46-qbad { border-color: #ef4444 !important; }
.i46-qbox-note { font-size: 12.5px; color: #94a3b8; margin: 8px 0 0; }

/* 放大的查询框 */
.i46-qbox-lg { max-width: 720px; margin: 12px auto 26px; position: relative; background: #fff; padding: 24px; border-radius: 14px; border: 2px solid #e2e8f0; box-shadow: 0 3px 10px rgba(15, 23, 42, .05); }
.i46-qbox-lg::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, #2563eb, #10b981, #6366f1); border-radius: 14px 14px 0 0; }
.i46-qbox-lg form { gap: 12px; }
.i46-qbox-lg input { font-size: 16px; padding: 12px 16px; border-radius: 10px; }
.i46-qbox-lg button { font-size: 16px; padding: 12px 26px; }
.i46-qbox-lg .i46-qbox-note { font-size: 14px; margin-top: 12px; }
@media (max-width: 640px) {
  .i46-qbox-lg { padding: 18px; margin: 8px 14px 22px; }
  .i46-qbox-lg form { flex-direction: column; }
  .i46-qbox-lg input { width: 100%; }
}

/* ---------- 首页「你的公网 IP」卡 ---------- */
.i46-myip {
  margin: 30px auto 24px; text-align: left; max-width: calc(100% - 28px);
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%); border: 2px solid #e2e8f0; border-radius: 14px;
  padding: 24px 28px; box-shadow: 0 4px 12px rgba(15, 23, 42, .08); position: relative; overflow: hidden;
}
.i46-myip::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, #2563eb, #10b981, #6366f1);
}
.i46-myip h3 { font-size: 16px; font-weight: 600; color: #64748b; margin: 0 0 16px; }
.i46-ip-value code { font-size: 32px !important; font-weight: 700; color: #0f172a; display: block; line-height: 1.2; }
.i46-ip-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px 18px; margin: 24px 0 18px; }
.i46-ip-item { font-size: 13.5px; color: #334155; line-height: 1.8; }
.i46-ip-item b { color: #64748b; font-weight: 600; margin-right: 6px; }
@media (max-width: 640px) {
  .i46-ip-grid { grid-template-columns: repeat(2, 1fr); gap: 10px 14px; }
  .i46-ip-value code { font-size: 24px !important; }
}
@media (max-width: 480px) {
  .i46-ip-grid { grid-template-columns: 1fr; gap: 10px; }
  .i46-myip { padding: 18px 20px; margin: 24px 14px; max-width: calc(100% - 28px); }
}
.i46-myip .btn-primary { margin-top: 8px; font-size: 14px; padding: 10px 22px; }

/* ---------- 热门链接区（主卡内的分隔带） ---------- */
.i46-pop { margin: 26px 0 0; padding: 16px 2px 2px; border-top: 1px dashed #e2e8f0; }
.i46-pop p { font-size: 13.5px; line-height: 2.1; word-break: break-all; margin: 0; }
.i46-pop-t { font-weight: 600; color: #334155; margin-top: 6px !important; }

/* ---------- PTR 列表 / FAQ / 更新时间 ---------- */
.i46-ptr-list { list-style: none; margin: 0 0 4px; padding: 0; }
.i46-ptr-list li { padding: 8px 2px; border-bottom: 1px solid #eef2f7; font-size: 13.5px; }
.i46-ptr-list li:last-child { border-bottom: 0; }
.i46-faq { background: #f8fafc; border: 1px solid #eef2f7; border-radius: 10px; padding: 12px 16px; margin: 0 0 10px; }
.i46-faq-q { font-weight: 600; margin: 0 0 4px; font-size: 14px; color: #0f172a; }
.i46-faq p:last-child { margin-bottom: 0; }
.i46-updated { font-size: 12px; color: #94a3b8; margin: 18px 0 0; }
.i46-hint { color: #64748b; font-size: 13.5px; }
.i46-note { font-size: 13.5px; color: #64748b; }

/* ---------- 指纹页 ---------- */
.i46-fp-btn { margin-right: 12px; }
.i46-fp-status { font-size: 13px; color: #64748b; }
.i46-fp-hash { font-size: 14px; font-family: Menlo, Consolas, monospace; background: #f8fafc; border: 1px solid #eef2f7; border-radius: 8px; padding: 10px 12px; word-break: break-all; margin: 0 0 14px; }
.i46-fp-hash-l { font-weight: 600; margin: 0 0 6px; font-size: 14px; }
