ai[status="1.0"] {
  --c1: #c77dff;
  --c2: #9d4edd;
  --c3: #48cae4;
  --c4: #90e0ef;
  --bg: #fff5f7;
  --text: #2d2d2d;
  --subtle: #6b6b6b;
  --line: #e0d4f0;
  display: block;
  padding: 12px 14px;
  background: var(--bg);
  background-image: 
    url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23c77dff' fill-opacity='0.07'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  font-family: system-ui, -apple-system, 'Segoe UI', 'Noto Sans SC', sans-serif;
  color: var(--text);
  line-height: 1.5;
  font-size: 14px;
  border-radius: 18px;
  box-shadow: 0 4px 24px rgba(159, 77, 237, 0.15);
  position: relative;
  overflow: hidden;
}
ai[status="1.0"]::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--c1), var(--c3), var(--c1));
  background-size: 200% 100%;
  animation: gradBar 4s linear infinite;
}
@keyframes gradBar {
  0% { background-position: 0% 0%; }
  100% { background-position: 200% 0%; }
}

/* 标题 */
ai[status="1.0"] t {
  display: block;
  margin: 16px 0 8px 0;
  font-weight: 700;
  font-size: 15px;
  background: linear-gradient(135deg, var(--c2), var(--c3));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
  padding-left: 4px;
}
ai[status="1.0"] t::before,
ai[status="1.0"] t::after {
  content: "✦";
  font-size: 12px;
  -webkit-text-fill-color: var(--c1);
  margin: 0 4px;
  display: inline-block;
  animation: twinkle 2s ease-in-out infinite alternate;
}
@keyframes twinkle {
  0% { opacity: 0.4; transform: scale(0.8); }
  100% { opacity: 1; transform: scale(1.1); }
}
ai[status="1.0"] t::after {
  animation-delay: 1s;
}

/* 时间行 */
ai[status="1.0"] hd {
  display: block;
  font-weight: 600;
  color: var(--c2);
  font-size: 13px;
  margin-bottom: 6px;
  border-left: 3px solid var(--c4);
  padding-left: 8px;
}

/* 通用数据行 */
ai[status="1.0"] d {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0 4px;
  margin: 2px 0;
  padding: 2px 0;
  border-bottom: 1px dashed var(--line);
}
ai[status="1.0"] d:last-of-type {
  border-bottom: none;
}
ai[status="1.0"] d b {
  font-weight: 600;
  color: var(--c2);
  flex-shrink: 0;
  min-width: 5em;
}
ai[status="1.0"] d q {
  font-style: normal;
  color: var(--c1);
  font-weight: 500;
}

/* 名字 */
ai[status="1.0"] .name {
  font-size: 18px;
  font-weight: 700;
  background: linear-gradient(135deg, var(--c2), var(--c1));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 4px 0;
}

/* NPC 分组 */
ai[status="1.0"] g {
  display: block;
  margin: 10px 0;
  padding: 10px 12px;
  background: rgba(159, 77, 237, 0.06);
  border-radius: 12px;
  border-left: 3px solid var(--c3);
  transition: background 0.2s;
}
ai[status="1.0"] g:hover {
  background: rgba(159, 77, 237, 0.12);
}
ai[status="1.0"] g p {
  font-weight: 600;
  margin: 0 0 4px 0;
  color: var(--c2);
}

/* 课程表内嵌缩进 */
ai[status="1.0"] d q {
  display: inline;
}

/* 列表（行动推荐） */
ai[status="1.0"] ol {
  margin: 6px 0 0 0;
  padding-left: 1.5em;
}
ai[status="1.0"] ol li {
  margin: 4px 0;
  padding: 4px 6px;
  border-radius: 8px;
  background: rgba(72, 202, 228, 0.08);
  transition: background 0.2s, transform 0.1s;
  list-style-position: outside;
}
ai[status="1.0"] ol li::marker {
  color: var(--c3);
  font-weight: 700;
}
ai[status="1.0"] ol li:hover {
  background: rgba(72, 202, 228, 0.18);
  transform: translateX(4px);
}

/* 表格（记忆区） */
ai[status="1.0"] table {
  width: 100%;
  border-collapse: collapse;
  margin: 4px 0;
  font-size: 12px;
}
ai[status="1.0"] table th {
  background: linear-gradient(135deg, var(--c1), var(--c3));
  color: #fff;
  font-weight: 600;
  padding: 3px 6px;
  border: 1px solid var(--line);
}
ai[status="1.0"] table td {
  border: 1px solid var(--line);
  padding: 2px 6px;
  background: rgba(255,255,255,0.5);
}

/* 分割线（用于区段之间） */
ai[status="1.0"] hr {
  border: none;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--c4), transparent);
  margin: 12px 0;
}

/* 滚动条美化 */
ai[status="1.0"]::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
ai[status="1.0"]::-webkit-scrollbar-track {
  background: rgba(159, 77, 237, 0.05);
  border-radius: 3px;
}
ai[status="1.0"]::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, var(--c1), var(--c3));
  border-radius: 3px;
}

/* 移动端适配 */
@media (max-width: 480px) {
  ai[status="1.0"] {
    padding: 10px 8px;
    font-size: 13px;
  }
  ai[status="1.0"] d b {
    min-width: 4em;
  }
  ai[status="1.0"] g {
    padding: 8px 10px;
  }
}