ai {
  display: block;
  --bg: #050a15;
  --panel: rgba(10, 20, 40, 0.7);
  --holo-blue: #00e5ff;
  --magic-purple: #b026ff;
  --bio-red: #ff2a6d;
  --text-main: #d1d8e0;
  --border: rgba(0, 229, 255, 0.3);
  font-family: system-ui, -apple-system, sans-serif;
  color: var(--text-main);
  background: radial-gradient(circle at top right, #111827, var(--bg));
  padding: 8px;
  border-radius: 8px;
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.8);
  font-size: 14px;
  line-height: 1.5;
}
ai hd {
  display: block;
  background: linear-gradient(90deg, rgba(0,229,255,0.1), transparent);
  border-left: 3px solid var(--holo-blue);
  padding: 4px 8px;
  font-size: 12px;
  color: var(--holo-blue);
  text-shadow: 0 0 5px rgba(0,229,255,0.5);
  margin-bottom: 10px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
ai article {
  display: block;
  margin-bottom: 12px;
  padding: 0 4px;
}
ai details {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 4px;
  margin-top: 8px;
  overflow: hidden;
}
ai summary {
  background: linear-gradient(90deg, rgba(0,229,255,0.2), rgba(0,0,0,0));
  padding: 6px 10px;
  font-weight: bold;
  color: #fff;
  cursor: pointer;
  list-style: none;
  font-size: 13px;
  border-bottom: 1px solid var(--border);
  text-shadow: 0 0 8px var(--holo-blue);
}
ai summary::-webkit-details-marker {
  display: none;
}
ai p[t] {
  margin: 8px;
  padding: 6px;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 4px;
  border-left: 2px solid var(--magic-purple);
  position: relative;
}
ai p[t]::before {
  content: attr(t);
  display: block;
  font-size: 12px;
  color: var(--magic-purple);
  margin-bottom: 6px;
  font-weight: bold;
  text-shadow: 0 0 5px rgba(176,38,255,0.4);
  border-bottom: 1px dashed rgba(176,38,255,0.3);
  padding-bottom: 3px;
}
ai l {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
  margin-bottom: 4px;
  align-items: baseline;
}
ai k {
  font-size: 11px;
  color: rgba(255,255,255,0.5);
  background: rgba(0, 229, 255, 0.1);
  padding: 1px 4px;
  border-radius: 2px;
  white-space: nowrap;
}
ai k::before {
  content: "▪";
  color: var(--holo-blue);
  margin-right: 3px;
}
ai v {
  flex: 1;
  min-width: 30%;
  font-size: 13px;
  color: #e2e8f0;
}
ai v[mind] {
  color: var(--magic-purple);
  font-style: italic;
  letter-spacing: 0.5px;
}
/* 等阶色彩映射 */
ai v[rank="5"] { color: #a0aec0; text-shadow: 0 0 3px #a0aec0; }
ai v[rank="4"] { color: #48bb78; text-shadow: 0 0 3px #48bb78; }
ai v[rank="3"] { color: #4299e1; text-shadow: 0 0 3px #4299e1; }
ai v[rank="2"] { color: #9f7aea; text-shadow: 0 0 5px #9f7aea; font-weight: bold;}
ai v[rank="1"] { color: #ecc94b; text-shadow: 0 0 8px #ecc94b; font-weight: bold;}
/* 深度生物扫描特化UI */
ai details details {
  border-color: rgba(255, 42, 109, 0.3);
  margin: 6px 0 0 0;
  background: rgba(255, 42, 109, 0.05);
}
ai details details summary {
  background: linear-gradient(90deg, rgba(255,42,109,0.2), transparent);
  color: #ff7597;
  text-shadow: 0 0 5px var(--bio-red);
  border-bottom-color: rgba(255, 42, 109, 0.2);
}
ai details details k::before {
  color: var(--bio-red);
}
ai details details k {
  background: rgba(255, 42, 109, 0.1);
}
ai details details v {
  color: #ffb3c6;
}