/* --------------------------------------------------------------------------
   侵权检测（ip.html）工具卡样式
   仅由 ip.html 引入，覆盖模块默认卡片观感；不影响其它页面。
   -------------------------------------------------------------------------- */

.ip-tool-grid {
  gap: 18px;
  align-items: stretch;
}

/* 保留区域标题供读屏软件识别，不让它占用检测卡片栅格。 */
.ip-tool-grid > .poa-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.ip-tool-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 24px;
  border: 1px solid #e6e9ee;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 6px 18px rgba(23, 43, 61, .05);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.ip-tool-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, #ff7a2f 0%, #ffc06a 100%);
}

.ip-tool-card:hover {
  border-color: #f2c79a;
  box-shadow: 0 14px 30px rgba(23, 43, 61, .1);
  transform: translateY(-3px);
}

.ip-tool-card :is(h2, h3) {
  margin: 15px 0 6px;
}

.ip-tool-card p {
  min-height: 44px;
  margin: 0;
}

.ip-tool-icon {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  font-size: 19px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .7), 0 5px 12px rgba(23, 43, 61, .08);
}

.ip-tool-icon.orange { color: #c25e0d; background: linear-gradient(145deg, #fff3e2, #ffe2bd); }
.ip-tool-icon.blue   { color: #2f5f88; background: linear-gradient(145deg, #eef6fc, #dbe9f7); }
.ip-tool-icon.green  { color: #2c6b49; background: linear-gradient(145deg, #eef8f1, #d9eee2); }

.ip-tool-card .inline-input {
  height: 40px;
  margin-top: auto;
  padding: 0 12px;
  border: 1px solid #e3e7ec;
  border-radius: 9px;
  background: #fbfcfd;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.ip-tool-card .inline-input:focus-within {
  border-color: #f0b979;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(255, 153, 0, .13);
}

.ip-tool-card .inline-input i {
  color: #8d9aa7;
  font-size: 12px;
}

.ip-tool-card .inline-input input { font-size: 12px; }
.ip-tool-card .inline-input input::placeholder { color: #9aa6b2; }

/* 按钮收窄为内容宽度并在卡片内水平居中，不再拉满整张卡片 */
.ip-tool-card .primary-action.compact {
  width: auto;
  min-width: 148px;
  align-self: center;
  height: 42px;
  margin-top: 14px;
  padding: 0 22px;
  border-radius: 9px;
  font-size: 13px;
}

.ip-tool-card .primary-action.compact i { font-size: 11px; }

.reserved-banner {
  margin-top: 18px;
  padding: 18px 22px;
  border: 1px dashed #f0cf9f;
  border-radius: 14px;
  background: linear-gradient(135deg, #fffaf2 0%, #fff5e6 100%);
  box-shadow: none;
}

.reserved-banner > span:first-child {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  font-size: 17px;
  color: #c25e0d;
  background: linear-gradient(145deg, #fff1dc, #ffe0ba);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .7);
}

.reserved-banner strong {
  color: var(--poa-card-title-color, #172b3d);
  font-size: 15px;
  font-weight: 700;
}

.reserved-banner p {
  margin-top: 5px;
  color: var(--poa-card-copy-color, #41505f);
  font-size: 12px;
  line-height: 1.7;
}

.reserved-tag {
  padding: 5px 11px;
  border-radius: 99px;
  color: #8a5412;
  background: #ffe8c6;
  font-size: 9px;
  letter-spacing: .14em;
}

@media (prefers-reduced-motion: reduce) {
  .ip-tool-card { transition: none; }
  .ip-tool-card:hover { transform: none; }
}
