css
ai {
  display: block;
  max-width: 720px;
  margin: 0 auto;
  padding: 20px;
  background: linear-gradient(135deg, #0f0c29 0%, #302b63 50%, #24243e 100%);
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6), 0 0 60px rgba(138, 43, 226, 0.4), inset 0 0 80px rgba(255, 215, 0, 0.05);
  color: #ffffff;
  font-size: 15px;
  line-height: 1.8;
  position: relative;
  border: 2px solid rgba(255, 215, 0, 0.3);
}
ai::before {
  content: "";
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, #ffd700, #9c27b0, #00bcd4, #ffd700);
  border-radius: 16px;
  z-index: -1;
  opacity: 0.6;
  filter: blur(8px);
  animation: borderGlow 3s linear infinite;
}
@keyframes borderGlow {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 0.9; }
}
ai hd {
  display: block;
  padding: 14px 18px;
  background: linear-gradient(90deg, rgba(255, 215, 0, 0.25), rgba(255, 152, 0, 0.25));
  border-left: 6px solid #ffd700;
  border-radius: 8px;
  font-size: 15px;
  color: #fff;
  margin-bottom: 16px;
  font-weight: 700;
  text-shadow: 0 2px 8px rgba(255, 215, 0, 0.8), 0 0 20px rgba(255, 215, 0, 0.5);
  box-shadow: 0 4px 16px rgba(255, 215, 0, 0.3);
}
ai text {
  display: block;
  margin-bottom: 16px;
  padding: 12px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}
ai text p {
  margin: 10px 0;
  padding: 0 6px;
  color: #f0f0f0;
  text-indent: 2em;
  font-size: 15px;
  line-height: 1.9;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}
ai details {
  margin: 14px 0;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 10px;
  border: 2px solid rgba(255, 215, 0, 0.3);
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4), inset 0 0 40px rgba(138, 43, 226, 0.1);
}
ai details summary {
  padding: 14px 18px;
  background: linear-gradient(90deg, rgba(255, 215, 0, 0.2), rgba(138, 43, 226, 0.2));
  cursor: pointer;
  font-weight: 700;
  font-size: 16px;
  color: #ffd700;
  transition: all 0.4s;
  user-select: none;
  text-shadow: 0 2px 8px rgba(255, 215, 0, 0.6);
  position: relative;
}
ai details summary::after {
  content: "▼";
  position: absolute;
  right: 18px;
  transition: transform 0.4s;
  color: #ffd700;
  font-size: 14px;
}
ai details[open] summary::after {
  transform: rotate(180deg);
}
ai details summary:hover {
  background: linear-gradient(90deg, rgba(255, 215, 0, 0.35), rgba(138, 43, 226, 0.35));
  padding-left: 24px;
  box-shadow: inset 0 0 30px rgba(255, 215, 0, 0.2);
}
ai details[open] summary {
  border-bottom: 2px solid rgba(255, 215, 0, 0.4);
  box-shadow: 0 4px 12px rgba(255, 215, 0, 0.3);
}
ai p {
  margin: 10px 14px;
  padding: 10px 12px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  border-left: 3px solid rgba(138, 43, 226, 0.5);
}
ai p[t]::before {
  content: attr(t) " ▸ ";
  color: #ce93d8;
  font-weight: 700;
  margin-right: 8px;
  text-shadow: 0 0 10px rgba(206, 147, 216, 0.8);
  font-size: 14px;
}
ai f {
  display: inline-block;
  padding: 5px 14px;
  background: linear-gradient(135deg, #ffd700 0%, #ffab00 100%);
  color: #1a1a2e;
  border-radius: 6px;
  font-weight: 800;
  margin-right: 10px;
  box-shadow: 0 4px 16px rgba(255, 215, 0, 0.6), 0 0 20px rgba(255, 215, 0, 0.4);
  position: relative;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  font-size: 15px;
  transition: all 0.3s;
}
ai f:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 24px rgba(255, 215, 0, 0.8), 0 0 30px rgba(255, 215, 0, 0.6);
}
ai f[lv]::after {
  content: "Lv." attr(lv);
  position: absolute;
  top: -10px;
  right: -10px;
  background: linear-gradient(135deg, #9c27b0, #7b1fa2);
  color: #fff;
  font-size: 11px;
  padding: 3px 7px;
  border-radius: 4px;
  box-shadow: 0 3px 10px rgba(156, 39, 176, 0.8), 0 0 15px rgba(156, 39, 176, 0.5);
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.3);
}
ai d {
  color: #e0e0e0;
  font-size: 14px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}
ai r {
  display: inline-block;
  padding: 6px 14px;
  margin: 4px 6px 4px 0;
  border-radius: 25px;
  font-size: 13px;
  font-weight: 700;
  position: relative;
  transition: all 0.4s;
  cursor: default;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}
ai r[c="黄"] {
  background: linear-gradient(135deg, #ffeb3b 0%, #ffc107 100%);
  color: #1a1a2e;
  box-shadow: 0 0 20px rgba(255, 235, 59, 0.8), 0 4px 12px rgba(255, 193, 7, 0.6);
  border: 2px solid rgba(255, 255, 255, 0.4);
}
ai r[c="紫"] {
  background: linear-gradient(135deg, #9c27b0 0%, #7b1fa2 100%);
  color: #fff;
  box-shadow: 0 0 20px rgba(156, 39, 176, 0.8), 0 4px 12px rgba(123, 31, 162, 0.6);
  border: 2px solid rgba(255, 255, 255, 0.3);
}
ai r[c="黑"] {
  background: linear-gradient(135deg, #424242 0%, #212121 100%);
  color: #fff;
  box-shadow: 0 0 20px rgba(66, 66, 66, 1), 0 4px 12px rgba(33, 33, 33, 0.8);
  border: 2px solid #757575;
}
ai r[c="红"] {
  background: linear-gradient(135deg, #f44336 0%, #d32f2f 100%);
  color: #fff;
  box-shadow: 0 0 25px rgba(244, 67, 54, 1), 0 4px 16px rgba(211, 47, 47, 0.8);
  border: 2px solid rgba(255, 255, 255, 0.4);
  animation: pulseRed 2s infinite;
}
@keyframes pulseRed {
  0%, 100% { 
    box-shadow: 0 0 25px rgba(244, 67, 54, 1), 0 4px 16px rgba(211, 47, 47, 0.8);
    transform: scale(1);
  }
  50% { 
    box-shadow: 0 0 40px rgba(244, 67, 54, 1), 0 6px 24px rgba(211, 47, 47, 1);
    transform: scale(1.05);
  }
}
ai r:hover {
  transform: scale(1.15) translateY(-3px);
  filter: brightness(1.3);
}
ai r[y]::before {
  content: attr(y) "年 ";
  opacity: 0.9;
  font-size: 12px;
  font-weight: 600;
}
ai b {
  display: inline-block;
  padding: 7px 15px;
  margin: 4px 6px 4px 0;
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.3), rgba(255, 152, 0, 0.3));
  border: 2px solid rgba(255, 215, 0, 0.7);
  border-radius: 8px;
  color: #ffd700;
  font-weight: 700;
  font-size: 14px;
  position: relative;
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.5), 0 4px 12px rgba(255, 152, 0, 0.4);
  transition: all 0.4s;
  text-shadow: 0 2px 8px rgba(255, 215, 0, 0.8), 0 0 15px rgba(255, 215, 0, 0.5);
}
ai b::before {
  content: "🦴";
  margin-right: 6px;
  font-size: 16px;
  filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.8));
}
ai b:hover {
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.5), rgba(255, 152, 0, 0.5));
  box-shadow: 0 0 30px rgba(255, 215, 0, 0.8), 0 6px 20px rgba(255, 152, 0, 0.6);
  transform: translateY(-4px) scale(1.05);
  border-color: #ffd700;
}
ai i {
  display: inline-block;
  padding: 5px 11px;
  margin: 3px 5px 3px 0;
  background: rgba(138, 43, 226, 0.25);
  border-radius: 6px;
  color: #e1bee7;
  font-size: 13px;
  font-style: normal;
  border: 1px solid rgba(156, 39, 176, 0.5);
  box-shadow: 0 0 10px rgba(138, 43, 226, 0.4);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
  transition: all 0.3s;
}
ai i:hover {
  background: rgba(138, 43, 226, 0.4);
  box-shadow: 0 0 16px rgba(138, 43, 226, 0.6);
  transform: translateY(-2px);
}
ai q {
  display: inline-block;
  padding: 6px 12px;
  background: rgba(255, 215, 0, 0.15);
  border-left: 4px solid #ffd700;
  color: #ffd700;
  font-style: italic;
  border-radius: 0 6px 6px 0;
  margin: 3px 0;
  box-shadow: 0 0 15px rgba(255, 215, 0, 0.3);
  text-shadow: 0 1px 6px rgba(255, 215, 0, 0.6);
  font-size: 14px;
}
ai npc {
  display: block;
  padding: 12px 0;
  border-bottom: 2px dashed rgba(255, 215, 0, 0.3);
  margin-bottom: 8px;
}
ai npc:last-child {
  border-bottom: none;
}
ai p[t="主线"] {
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.25), rgba(255, 152, 0, 0.2));
  border-left: 6px solid #ffd700;
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.3), inset 0 0 30px rgba(255, 215, 0, 0.1);
  border-radius: 8px;
}
ai p[t="主线"]::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 15px;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="rgba(255,215,0,0.4)" d="M12 2l3.09 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.77l-6.18 3.25L7 14.14 2 9.27l6.91-1.01L12 2z"/></svg>') center/contain no-repeat;
  opacity: 0.6;
  filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.8));
  animation: starRotate 4s linear infinite;
}
@keyframes starRotate {
  from { transform: translateY(-50%) rotate(0deg); }
  to { transform: translateY(-50%) rotate(360deg); }
}
ai p[t="支线"] {
  background: linear-gradient(135deg, rgba(138, 43, 226, 0.25), rgba(103, 58, 183, 0.2));
  border-left: 6px solid #9c27b0;
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 20px rgba(138, 43, 226, 0.3), inset 0 0 30px rgba(138, 43, 226, 0.1);
  border-radius: 8px;
}
ai p[t="支线"]::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 15px;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="rgba(156,39,176,0.4)" d="M9 11H7v2h2v-2m4 0h-2v2h2v-2m4 0h-2v2h2v-2m2-7h-1V2h-2v2H8V2H6v2H5c-1.11 0-1.99.9-1.99 2L3 20c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2m0 16H5V9h14v11z"/></svg>') center/contain no-repeat;
  opacity: 0.6;
  filter: drop-shadow(0 0 10px rgba(156, 39, 176, 0.8));
}
ai table {
  width: 100%;
  border-collapse: collapse;
  margin: 10px 0;
  font-size: 13px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}
ai table th {
  background: linear-gradient(90deg, rgba(255, 215, 0, 0.3), rgba(255, 152, 0, 0.3));
  color: #ffd700;
  padding: 10px 12px;
  text-align: left;
  font-weight: 700;
  border-bottom: 3px solid rgba(255, 215, 0, 0.5);
  text-shadow: 0 2px 6px rgba(255, 215, 0, 0.6);
  font-size: 14px;
}
ai table td {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: #e0e0e0;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}
ai table tr {
  transition: all 0.3s;
}
ai table tr:hover {
  background: rgba(255, 215, 0, 0.15);
  box-shadow: inset 0 0 20px rgba(255, 215, 0, 0.2);
}
ai table tr[c="ltm"] td {
  color: #ce93d8;
  font-weight: 600;
}
ai table tr[c="stm"] td {
  color: #81d4fa;
  font-weight: 600;
}
ai a {
  display: block;
  padding: 12px 16px;
  margin: 8px 0;
  background: linear-gradient(90deg, rgba(255, 215, 0, 0.15), rgba(138, 43, 226, 0.15));
  border-radius: 8px;
  color: #ffd700;
  cursor: pointer;
  transition: all 0.4s;
  border-left: 4px solid transparent;
  font-weight: 600;
  font-size: 14px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}
ai a:hover {
  background: linear-gradient(90deg, rgba(255, 215, 0, 0.35), rgba(138, 43, 226, 0.35));
  border-left-color: #ffd700;
  padding-left: 24px;
  box-shadow: 0 4px 20px rgba(255, 215, 0, 0.5), inset 0 0 30px rgba(255, 215, 0, 0.2);
  transform: translateX(4px);
}
ai a:active {
  transform: translateX(4px) scale(0.98);
  box-shadow: 0 2px 12px rgba(255, 215, 0, 0.6);
}