/* 查询结果页：沿用 A1 门户样式 */

.crumb {
  background: #fff;
  border-bottom: 1px solid #e3e6eb;
  height: 36px;
  line-height: 36px;
  font-size: 12px;
  color: #8a9099;
}
.crumb a { color: #6b7280; }
.crumb a:hover { color: #1a6fd4; }
.crumb .sep { margin: 0 6px; color: #c0c6ce; }
.crumb strong { font-weight: 400; color: #333; }

.result-search {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #fff;
  border: 1px solid #e3e6eb;
  border-radius: 4px;
  padding: 12px 16px;
  margin-bottom: 14px;
}
.result-search form {
  display: flex;
  flex: 1;
  height: 42px;
  border: 2px solid #1a6fd4;
  border-radius: 3px;
  overflow: hidden;
  background: #fff;
}
.result-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  padding: 0 14px;
  font-family: inherit;
  font-size: 14px;
  color: #333;
}
.result-search input::placeholder { color: #a8afb8; }
.result-search button {
  width: 92px;
  border: 0;
  background: #1a6fd4;
  color: #fff;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.result-search button:hover { background: #155cb3; }
.result-search .hint { font-size: 12px; color: #9aa1ab; white-space: nowrap; }

/* 类型切换 */
.match-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin-bottom: 10px;
  font-size: 12px;
  color: #8a9099;
}
.match-label { color: #8a9099; margin-right: 2px; }
.match-chip {
  display: inline-block;
  padding: 4px 10px;
  border: 1px solid #d9e3f2;
  background: #fff;
  color: #4b5563;
  border-radius: 3px;
  font-size: 12px;
}
.match-chip:hover { border-color: #1a6fd4; color: #1a6fd4; }
.match-chip.active { background: #eef6ff; border-color: #1a6fd4; color: #1a6fd4; font-weight: 600; }

/* 结果卡 */
.res-card {
  background: #fff;
  border: 1px solid #e3e6eb;
  border-radius: 4px;
  overflow: hidden;
}
.res-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 17px 20px;
  background: #fafbfc;
  border-bottom: 1px solid #eef0f3;
}
.res-icon {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 5px;
  background: #eaf2fd;
  color: #1a6fd4;
  display: grid;
  place-items: center;
  font-size: 20px;
  font-weight: 700;
}
.res-meta { flex: 1; min-width: 0; }
.res-kicker { display: flex; align-items: center; gap: 8px; font-size: 11px; color: #8a9099; margin-bottom: 3px; }
.res-cat { color: #1a6fd4; }
.res-auto {
  color: #0b8a4b;
  background: #eefaf3;
  border: 1px solid #cdeedb;
  padding: 1px 6px;
  border-radius: 2px;
}
.res-title { font-size: 20px; font-weight: 700; color: #1f2937; line-height: 1.3; word-break: break-word; }
.res-sub { font-size: 12.5px; color: #8a9099; margin-top: 3px; line-height: 1.5; word-break: break-word; }
.res-actions { flex: none; }
.res-copy, .code-copy {
  font-family: inherit;
  font-size: 12px;
  color: #4b5563;
  background: #fff;
  border: 1px solid #d9e3f2;
  border-radius: 3px;
  padding: 5px 10px;
  cursor: pointer;
}
.res-copy:hover, .code-copy:hover { color: #1a6fd4; border-color: #1a6fd4; }

.res-body { padding: 16px 20px 18px; }

.res-preview {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px dashed #d9e3f2;
  background: #fafbfc;
  border-radius: 3px;
  margin-bottom: 12px;
}
.res-swatch { width: 48px; height: 48px; border-radius: 4px; border: 1px solid rgba(0, 0, 0, .06); }
.res-preview span { font-size: 12px; color: #8a9099; font-family: ui-monospace, Menlo, Consolas, monospace; }

.res-fields {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 10px 12px;
  margin-bottom: 14px;
}
.field {
  position: relative;
  min-width: 0;
  background: #f8fafc;
  border: 1px solid #eef1f5;
  border-radius: 3px;
  padding: 9px 11px;
}
.field.wide { grid-column: 1 / -1; }
.f-label { font-size: 11px; color: #8a9099; margin-bottom: 3px; }
.f-value {
  font-size: 13px;
  color: #1f2937;
  line-height: 1.6;
  word-break: break-word;
  white-space: pre-wrap;
  padding-right: 30px;
}
.f-value.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12px; }
.f-copy {
  position: absolute;
  right: 6px;
  top: 6px;
  font-family: inherit;
  font-size: 10px;
  color: #9aa1ab;
  background: #fff;
  border: 1px solid #e3e6eb;
  border-radius: 2px;
  padding: 1px 5px;
  cursor: pointer;
  opacity: 0;
}
.field:hover .f-copy { opacity: 1; }
.f-copy:hover { color: #1a6fd4; border-color: #1a6fd4; }

.res-code { border: 1px solid #e3e6eb; border-radius: 3px; overflow: hidden; margin-bottom: 12px; }
.res-code-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 7px 11px;
  background: #fafbfc;
  border-bottom: 1px solid #eef0f3;
  font-size: 12px;
  color: #6b7280;
}
.code-copy { padding: 2px 7px; font-size: 11px; }
.res-code pre {
  margin: 0;
  padding: 11px 12px;
  background: #f8fafc;
  font: 12px/1.7 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color: #1f2937;
  max-height: 280px;
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-word;
}
.res-code code { font: inherit; }

.table-wrap { overflow-x: auto; margin-bottom: 12px; }
.res-table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid #e3e6eb;
  font-size: 12.5px;
}
.res-table th {
  background: #fafbfc;
  color: #6b7280;
  font-size: 11px;
  font-weight: 600;
  text-align: left;
  padding: 8px 10px;
  border-bottom: 1px solid #eef0f3;
  white-space: nowrap;
}
.res-table td { padding: 8px 10px; border-top: 1px solid #eef0f3; color: #333; word-break: break-word; }
.res-table td:nth-child(2) { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12px; }

.res-warn {
  background: #fff8e6;
  border: 1px solid #f2d48c;
  color: #8a5a00;
  padding: 9px 12px;
  font-size: 12px;
  border-radius: 3px;
  margin-bottom: 12px;
  line-height: 1.7;
}
.res-note {
  background: #f0f7ff;
  border-left: 3px solid #1a6fd4;
  padding: 9px 12px;
  font-size: 12px;
  color: #5b6674;
  line-height: 1.7;
  margin: 12px 0 0;
}
.res-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.res-link {
  font-size: 12px;
  color: #1a6fd4;
  border: 1px solid #cfe0fb;
  background: #f4f9ff;
  padding: 5px 9px;
  border-radius: 3px;
}
.res-link:hover { background: #eaf3ff; }

/* 结果页补充说明 */
.res-extra {
  margin-top: 14px;
  background: #fff;
  border: 1px solid #e3e6eb;
  border-radius: 4px;
  padding: 16px 20px;
}
.res-extra h2 {
  font-size: 14px;
  font-weight: 700;
  color: #1f2937;
  border-left: 3px solid #1a6fd4;
  padding-left: 8px;
  line-height: 1.1;
}
.res-extra h3 { font-size: 13px; color: #1f2937; margin: 14px 0 8px; font-weight: 600; }
.res-extra p { font-size: 12.5px; color: #6b7280; line-height: 1.8; margin-top: 9px; }
.res-extra-links { display: flex; flex-wrap: wrap; gap: 8px; }
.res-extra-links a {
  font-size: 12px;
  color: #1a6fd4;
  border: 1px solid #d9e3f2;
  background: #f8fbff;
  padding: 5px 9px;
  border-radius: 3px;
}
.res-extra-links a:hover { background: #eef6ff; }

/* 空状态 */
.empty-card {
  background: #fff;
  border: 1px solid #e3e6eb;
  border-radius: 4px;
  padding: 46px 20px;
  text-align: center;
}
.empty-mark {
  width: 54px;
  height: 54px;
  margin: 0 auto 14px;
  border-radius: 8px;
  background: #eaf2fd;
  color: #1a6fd4;
  display: grid;
  place-items: center;
  font-size: 28px;
  font-weight: 700;
}
.empty-card h1 { font-size: 20px; color: #1f2937; }
.empty-card p { font-size: 12.5px; color: #8a9099; margin: 7px 0 18px; }
.empty-examples { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.empty-examples a {
  font-size: 12px;
  color: #4b5563;
  background: #f8fafc;
  border: 1px solid #e3e6eb;
  padding: 6px 10px;
  border-radius: 3px;
  font-family: ui-monospace, Menlo, Consolas, monospace;
}
.empty-examples a:hover { color: #1a6fd4; border-color: #1a6fd4; }

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translate(-50%, 10px);
  background: rgba(15, 23, 42, .9);
  color: #fff;
  font-size: 12px;
  padding: 8px 14px;
  border-radius: 3px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s, transform .2s;
  z-index: 100;
}
.toast.on { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 900px) {
  .result-page .header-search { display: none; }
  .result-search { flex-direction: column; align-items: stretch; gap: 8px; }
  .result-search .hint { display: none; }
}
@media (max-width: 640px) {
  .crumb { display: none; }
  .result-search { padding: 10px; }
  .result-search form { height: 40px; }
  .result-search input { font-size: 13px; padding: 0 10px; }
  .result-search button { width: 72px; font-size: 13px; }
  .res-head { padding: 14px; flex-wrap: wrap; }
  .res-icon { width: 38px; height: 38px; font-size: 18px; }
  .res-title { font-size: 17px; }
  .res-sub { font-size: 12px; }
  .res-actions { margin-left: 50px; }
  .res-copy { padding: 4px 8px; font-size: 11px; }
  .res-body { padding: 12px; }
  .res-fields { grid-template-columns: 1fr 1fr; gap: 8px; }
  .field { padding: 8px 9px; }
  .f-value { padding-right: 0; font-size: 12.5px; }
  .f-value.mono { font-size: 11.5px; }
  .f-copy { display: none; }
  .res-table th, .res-table td { padding: 7px 8px; }
}
