/* AI爬虫抓取验证工具 - 页面专属样式（公共样式一律用 /css/style.css，本文件只定义 abcc- 前缀） */

/* ---------- 工具区容器 ---------- */
.abcc-tool {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 20px;
  margin: 18px 0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .04);
}
.abcc-stat-line {
  text-align: center;
  color: #6b7280;
  font-size: 14px;
  margin: 0 0 14px;
}
.abcc-stat-line strong { color: var(--primary, #2563eb); }

/* ---------- 输入区 ---------- */
.abcc-field label {
  display: block;
  font-size: 14px;
  color: #374151;
  margin-bottom: 6px;
  font-weight: 600;
}
.abcc-input-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.abcc-input-row input[type="text"] {
  flex: 1;
  min-width: 220px;
  box-sizing: border-box;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  padding: 11px 12px;
  font-size: 14px;
  color: #111827;
}
.abcc-input-row input[type="text"]:focus {
  outline: none;
  border-color: var(--primary, #2563eb);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .12);
}
.abcc-examples {
  font-size: 13px;
  color: #9ca3af;
  margin: 8px 0 0;
}
.abcc-examples a {
  color: var(--primary, #2563eb);
  text-decoration: none;
  margin-right: 10px;
}
.abcc-examples a:hover { text-decoration: underline; }
.abcc-hint { font-size: 13px; color: #9ca3af; margin: 8px 0 0; line-height: 1.7; }
.abcc-error {
  display: none;
  color: #b91c1c;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 8px;
  font-size: 14px;
  margin: 12px 0 0;
  padding: 10px 14px;
  line-height: 1.6;
}

/* ---------- 加载动画 ---------- */
.abcc-loading {
  display: none;
  text-align: center;
  padding: 26px 0 22px;
}
.abcc-loading-emoji { font-size: 34px; display: inline-block; animation: abcc-bounce 1s ease-in-out infinite; }
@keyframes abcc-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
.abcc-loading-text { color: #4b5563; font-size: 14px; margin-top: 8px; }
.abcc-dots { display: inline-flex; gap: 6px; margin-top: 12px; }
.abcc-dots span {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--primary, #2563eb);
  opacity: .3;
  animation: abcc-dot 1.2s infinite;
}
.abcc-dots span:nth-child(2) { animation-delay: .2s; }
.abcc-dots span:nth-child(3) { animation-delay: .4s; }
@keyframes abcc-dot {
  0%, 100% { opacity: .25; }
  50% { opacity: 1; }
}

/* ---------- 徽章 ---------- */
.abcc-pill, .abcc-state {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}
.abcc-pill--high   { background: #fee2e2; color: #b91c1c; }
.abcc-pill--medium { background: #fef3c7; color: #b45309; }
.abcc-pill--low    { background: #f3f4f6; color: #6b7280; }
.abcc-state--ok           { background: #dcfce7; color: #15803d; }
.abcc-state--robots_block { background: #fee2e2; color: #b91c1c; }
.abcc-state--meta_block   { background: #ffedd5; color: #c2410c; }
.abcc-state--http_block   { background: #fef3c7; color: #b45309; }
.abcc-state--rate         { background: #fef9c3; color: #a16207; }
.abcc-state--server_error { background: #fee2e2; color: #b91c1c; }
.abcc-state--redirect     { background: #e0f2fe; color: #0369a1; }
.abcc-state--notfound     { background: #f3f4f6; color: #6b7280; }
.abcc-state--error        { background: #fee2e2; color: #b91c1c; }
.abcc-state--token        { background: #ede9fe; color: #6d28d9; }
.abcc-state--warn         { background: #fef3c7; color: #b45309; }
.abcc-star { font-style: normal; font-size: 12px; margin-right: 2px; }
.abcc-star--cn { color: #dc2626; }
.abcc-star--us { color: #2563eb; }
.abcc-unofficial {
  display: inline-block;
  font-size: 11px;
  padding: 1px 6px;
  border-radius: 4px;
  background: #fef3c7;
  color: #b45309;
  margin-left: 4px;
  white-space: nowrap;
}
.abcc-user-note { display: block; font-size: 11px; color: #b45309; margin-top: 2px; }

/* ---------- 概览卡片 ---------- */
.abcc-meta-line {
  font-size: 13px;
  color: #6b7280;
  margin: 0 0 14px;
  word-break: break-all;
}
.abcc-meta-line strong { color: #111827; }
.abcc-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
}
.abcc-card {
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 12px 14px;
  background: #fafafa;
}
.abcc-card-num { font-size: 24px; font-weight: 700; color: #111827; line-height: 1.2; }
.abcc-card-num.abcc-good { color: #15803d; }
.abcc-card-num.abcc-bad  { color: #b91c1c; }
.abcc-card-num.abcc-mid  { color: #b45309; }
.abcc-card-label { font-size: 12px; color: #6b7280; margin-top: 2px; }

/* ---------- 结果表 ---------- */
.abcc-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.abcc-section-title { font-size: 1rem; color: #374151; font-weight: 600; margin: 0; }
.abcc-btn-mini {
  appearance: none;
  border: 1px solid #d1d5db;
  background: #fff;
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 13px;
  color: #374151;
  cursor: pointer;
}
.abcc-btn-mini:hover { border-color: var(--primary, #2563eb); color: var(--primary, #2563eb); }
.abcc-table-wrap { overflow-x: auto; margin-top: 14px; }
.abcc-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.abcc-table th, .abcc-table td {
  border-bottom: 1px solid #f3f4f6;
  padding: 9px 10px;
  text-align: left;
  vertical-align: top;
  white-space: nowrap;
}
.abcc-table th {
  background: #f9fafb;
  color: #4b5563;
  font-weight: 600;
  position: sticky;
  top: 0;
}
.abcc-table td.abcc-col-bot { white-space: normal; min-width: 150px; }
.abcc-table td.abcc-col-rule { white-space: normal; min-width: 180px; color: #6b7280; font-size: 12px; }
.abcc-table .abcc-vendor { color: #9ca3af; font-size: 12px; }
.abcc-table a { color: var(--primary, #2563eb); text-decoration: none; }
.abcc-table a:hover { text-decoration: underline; }
.abcc-table code {
  font-family: ui-monospace, SFMono-Regular, Consolas, "Courier New", monospace;
  font-size: 12px;
  color: #3730a3;
  word-break: break-all;
}
.abcc-tr-group td {
  background: #f9fafb;
  color: #6b7280;
  font-weight: 600;
  font-size: 12px;
}

/* ---------- robots.txt 查看 ---------- */
.abcc-robots-details { border-top: 1px dashed #e5e7eb; margin-top: 14px; padding-top: 12px; }
.abcc-robots-details summary {
  font-size: 13px;
  color: #6b7280;
  cursor: pointer;
  user-select: none;
  margin-bottom: 10px;
}
.abcc-robots-pre {
  background: #0f172a;
  color: #e2e8f0;
  border-radius: 8px;
  padding: 14px;
  font-size: 12px;
  line-height: 1.7;
  overflow-x: auto;
  max-height: 320px;
  overflow-y: auto;
  margin: 0;
  font-family: ui-monospace, SFMono-Regular, Consolas, "Courier New", monospace;
}

/* ---------- 清单目录表 ---------- */
.abcc-catalog { margin-top: 14px; }
.abcc-catalog-wrap { overflow-x: auto; }
.abcc-catalog-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.abcc-catalog-table th, .abcc-catalog-table td {
  border-bottom: 1px solid #f3f4f6;
  padding: 9px 10px;
  text-align: left;
  vertical-align: top;
}
.abcc-catalog-table th { background: #f9fafb; color: #4b5563; font-weight: 600; white-space: nowrap; }
.abcc-catalog-table td:nth-child(4) { color: #6b7280; }
.abcc-catalog-table code {
  font-family: ui-monospace, SFMono-Regular, Consolas, "Courier New", monospace;
  font-size: 12px;
  color: #3730a3;
  word-break: break-all;
}
.abcc-catalog-table a { color: var(--primary, #2563eb); text-decoration: none; }
.abcc-catalog-table a:hover { text-decoration: underline; }
.abcc-disallow-example {
  background: #f9fafb;
  border: 1px solid #f3f4f6;
  border-radius: 6px;
  padding: 6px 8px;
  margin: 0;
  font-size: 12px;
  color: #6b7280;
  white-space: pre;
  font-family: ui-monospace, SFMono-Regular, Consolas, "Courier New", monospace;
}
.abcc-legend {
  font-size: 13px;
  color: #6b7280;
  line-height: 1.9;
  margin: 10px 0 0;
}
.abcc-legend strong { color: #374151; }

/* ---------- 说明区 ---------- */
.abcc-steps-grid { counter-reset: abcc-step; }
.abcc-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--primary, #2563eb);
  color: #fff;
  font-size: 13px;
  margin-right: 6px;
}
.abcc-info pre {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 12.5px;
  line-height: 1.8;
  overflow-x: auto;
  font-family: ui-monospace, SFMono-Regular, Consolas, "Courier New", monospace;
  margin: 8px 0 0;
}

/* ---------- 响应式 ---------- */
@media (max-width: 640px) {
  .abcc-tool { padding: 14px; }
  .abcc-table th, .abcc-table td { padding: 7px 8px; }
  .abcc-card-num { font-size: 20px; }
}
