ai {
  display: block;
  position: relative;
  font-family: -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 14px;
  line-height: 1.6;
  color: #3a3a3a;
  background: #ffffff;
  padding: 12px 14px;
  border-radius: 12px;
  box-shadow: 0 1px 8px rgba(0,0,0,0.04);
}
ai::before {
  content: "";
  position: absolute;
  top: 0;
  left: 12px;
  right: 12px;
  height: 2px;
  border-radius: 1px;
  background: linear-gradient(90deg, #f0a4b7, #a8d0e6);
}
/* === 情境栏 hd === */
ai hd {
  display: block;
  background: #fafbfc;
  border-radius: 8px;
  padding: 6px 10px;
  margin-bottom: 10px;
  border-bottom: 1px solid transparent;
  background-clip: padding-box;
  position: relative;
}
ai hd::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, #f0a4b7, #a8d0e6, transparent);
}
ai hd details {
  border-left: none;
  padding-left: 0;
  margin: 0;
}
/* === 正文区 === */
ai article {
  display: block;
  padding: 8px 2px;
  line-height: 1.8;
  font-size: 14.5px;
  color: #2c2c2c;
}
ai article p {
  margin: 0 0 10px 0;
  text-indent: 2em;
}
/* === 对话 === */
ai q {
  display: block;
  quotes: none;
  margin: 8px 0;
  padding: 6px 10px;
  border-radius: 6px;
  background: #fff5f7;
  color: #d4627a;
  border-left: 3px solid #f0a4b7;
  font-style: normal;
}
ai q[u] {
  background: #f3f8fc;
  color: #5b8fb9;
  border-left-color: #a8d0e6;
}
/* === details 面板通用 === */
ai details {
  display: block;
  margin: 6px 0;
  padding: 4px 4px 4px 10px;
  border-left: 3px solid #e8e8e8;
  border-radius: 0 6px 6px 0;
  background: #fcfcfd;
  transition: border-color 0.3s, box-shadow 0.3s;
}
ai details:hover {
  border-left-color: #f0a4b7;
  box-shadow: -2px 0 8px rgba(240,164,183,0.1);
}
ai details[open] > summary ~ * {
  animation: fadeIn 0.3s ease;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}
/* === summary === */
ai summary {
  font-size: 13px;
  font-weight: 600;
  color: #666;
  letter-spacing: 0.5px;
  cursor: pointer;
  padding: 4px 0;
  list-style: none;
  position: relative;
  padding-left: 14px;
  transition: color 0.2s, transform 0.2s;
}
ai summary:hover {
  color: #d4627a;
  transform: translateX(2px);
}
ai summary::before {
  content: "●";
  position: absolute;
  left: 0;
  font-size: 8px;
  color: #f0a4b7;
  top: 50%;
  transform: translateY(-50%);
}
ai summary::-webkit-details-marker {
  display: none;
}
ai details[open] > summary::after {
  content: " ▾";
  font-size: 10px;
  color: #aaa;
}
ai details:not([open]) > summary::after {
  content: " ▸";
  font-size: 10px;
  color: #aaa;
}
/* === d 行 === */
ai d {
  display: block;
  padding: 2px 0;
  color: #444;
  font-size: 13.5px;
  line-height: 1.5;
}
/* === f 标签胶囊 === */
ai f {
  display: inline-block;
  background: rgba(240,164,183,0.12);
  color: #888;
  font-size: 12px;
  padding: 1px 6px;
  border-radius: 3px;
  margin-right: 4px;
  font-weight: 500;
  letter-spacing: 0.3px;
}
/* === p[t] 分区标题 === */
ai p[t] {
  position: relative;
  margin: 8px 0 4px 0;
  padding-left: 10px;
}
ai p[t]::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 4px;
  width: 2px;
  border-radius: 1px;
  background: linear-gradient(180deg, #f0a4b7, #a8d0e6);
}
ai p[t]::after {
  content: attr(t);
  display: block;
  font-size: 12px;
  color: #999;
  font-weight: 600;
  margin-bottom: 3px;
  letter-spacing: 0.5px;
}
/* === 双轨面板特殊样式 === */
ai details:nth-of-type(4) {
  border-left-color: #e0c6f0;
}
ai details:nth-of-type(4):hover {
  border-left-color: #c9a0e0;
  box-shadow: -2px 0 8px rgba(201,160,224,0.12);
}
/* === 行动推荐 === */
ai details:last-of-type d {
  padding: 4px 8px;
  margin: 3px 0;
  background: #f8f9fa;
  border-radius: 4px;
  cursor: default;
  transition: background 0.2s, transform 0.15s;
}
ai details:last-of-type d:hover {
  background: #fff0f3;
  transform: translateX(3px);
}
ai details:last-of-type d f {
  background: rgba(91,143,185,0.12);
  color: #5b8fb9;
  min-width: 16px;
  text-align: center;
}
/* === 滚动条美化 === */
ai ::-webkit-scrollbar {
  width: 4px;
}
ai ::-webkit-scrollbar-thumb {
  background: #e8e8e8;
  border-radius: 2px;
}