/* 百度网址安全检测工具样式 */

/* 面包屑 */
.bsb-crumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--gray-400);
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.bsb-crumb a {
  color: var(--gray-500);
  text-decoration: none;
}

.bsb-crumb a:hover {
  color: var(--primary);
}

.bsb-crumb i {
  font-style: normal;
  color: var(--gray-300);
}

.bsb-crumb b {
  color: var(--gray-700);
  font-weight: 600;
}

/* 输入区 */
.check-input-section {
  background: #fff;
  border-radius: var(--border-radius);
  padding: 24px;
  box-shadow: var(--shadow);
}

.check-input-group {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.check-input {
  flex: 1;
  min-width: 240px;
  padding: 12px 16px;
  border: 1px solid var(--gray-300);
  border-radius: 8px;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.check-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.check-hint {
  margin-top: 12px;
  font-size: 0.85rem;
  color: var(--gray-400);
}

/* 已打开提示卡片 */
.opened-section {
  margin-top: 20px;
}

.opened-card {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-left: 4px solid #22c55e;
  border-radius: 8px;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.opened-head {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: #166534;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.6;
}

.opened-icon {
  flex-shrink: 0;
}

.opened-target {
  display: flex;
  gap: 10px;
  align-items: baseline;
  flex-wrap: wrap;
  background: #fff;
  border: 1px solid #dcfce7;
  border-radius: 8px;
  padding: 10px 14px;
}

.opened-label {
  font-size: 0.8rem;
  color: var(--gray-400);
  flex-shrink: 0;
}

.opened-url {
  font-size: 0.92rem;
  color: var(--gray-800);
  word-break: break-all;
  font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
}

.opened-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.opened-actions .btn {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.opened-tip {
  font-size: 0.82rem;
  color: var(--gray-400);
}

/* 查询历史 */
.history-section {
  background: #fff;
  border-radius: var(--border-radius);
  padding: 20px 24px;
  margin-top: 20px;
  box-shadow: var(--shadow);
}

.history-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.history-head h2 {
  font-size: 1.05rem;
  margin: 0;
}

.history-clear {
  background: none;
  border: 1px solid var(--gray-200);
  border-radius: 6px;
  padding: 4px 12px;
  font-size: 0.8rem;
  color: var(--gray-400);
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
}

.history-clear:hover {
  color: #b91c1c;
  border-color: #fecaca;
}

.history-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.history-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 4px;
  border-bottom: 1px solid var(--gray-100);
}

.history-item:last-child {
  border-bottom: none;
}

.history-url {
  flex: 1;
  min-width: 0;
  font-size: 0.9rem;
  color: var(--gray-700);
  word-break: break-all;
  background: none;
  border: none;
  padding: 0;
  text-align: left;
  cursor: pointer;
  text-decoration: none;
}

.history-url:hover {
  color: var(--primary);
  text-decoration: underline;
}

.history-time {
  flex-shrink: 0;
  font-size: 0.78rem;
  color: var(--gray-400);
}

.history-del {
  flex-shrink: 0;
  background: none;
  border: none;
  color: var(--gray-300);
  font-size: 1rem;
  cursor: pointer;
  padding: 2px 6px;
  line-height: 1;
  transition: color 0.15s;
}

.history-del:hover {
  color: #ef4444;
}

.history-note {
  margin-top: 10px;
  font-size: 0.78rem;
  color: var(--gray-300);
}

/* 说明区 */
.block-types {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  padding: 16px 18px;
}

.block-types h3 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--gray-800);
  margin-bottom: 10px;
}

.block-types ol {
  padding-left: 20px;
  color: var(--gray-600);
  font-size: 0.88rem;
  line-height: 1.8;
}

/* 免责声明 */
.disclaimer {
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-left: 4px solid #f59e0b;
  border-radius: 8px;
  padding: 14px 18px;
  margin-top: 20px;
  font-size: 0.88rem;
  color: #92400e;
  line-height: 1.6;
}

/* 响应式 */
@media (max-width: 600px) {
  .check-input-group {
    flex-direction: column;
  }

  .check-input-group .btn {
    width: 100%;
  }

  .history-time {
    display: none;
  }
}
