ai {
  display: block;
  font-family: '楷体', 'KaiTi', serif;
  line-height: 1.6;
  /* 已移除全局浅色字体，正文将自动适应平台默认的黑白颜色 */
}

/* 思维链隐蔽样式 */
ai details.tc {
  background: rgba(20, 20, 25, 0.8);
  border: 1px dashed #555;
  border-radius: 6px;
  padding: 8px 12px;
  margin-bottom: 15px;
  font-family: monospace;
  font-size: 12px;
  color: #888;
}
ai details.tc summary {
  color: #aaa;
  font-weight: normal;
}

/* 叙事正文样式 */
ai article {
  display: block;
  font-size: 15px;
  text-align: justify;
  margin-bottom: 20px;
  padding: 0 5px;
  /* 已彻底移除 color: #fff 和 text-shadow，解决白底白字问题 */
}

/* 状态栏全局容器（自带深色背景，因此内部文字强制浅色） */
ai ui {
  display: block;
  background: linear-gradient(135deg, #151221 0%, #3a324d 100%);
  border: 2px solid #D4AF37;
  border-radius: 10px;
  padding: 15px;
  color: #e0d8e6; /* 浅色字体限定在深色状态栏内生效 */
  box-shadow: 0 4px 15px rgba(0,0,0,0.5), inset 0 0 20px rgba(212, 175, 55, 0.1);
}

/* 顶部时间条 */
ai hd {
  display: block;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid #D4AF37;
  border-radius: 8px;
  padding: 10px;
  margin-bottom: 15px;
  text-align: center;
  color: #FFD700;
  font-weight: bold;
  font-size: 14px;
  letter-spacing: 1px;
}

/* 通用折叠面板 */
ai ui details {
  background: rgba(0, 0, 0, 0.4);
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 10px;
  transition: all 0.3s ease;
  border: 1px solid rgba(255,255,255,0.05);
}
ai ui details:hover {
  background: rgba(0, 0, 0, 0.6);
}

/* 面板标题 */
ai summary {
  cursor: pointer;
  font-weight: bold;
  outline: none;
  list-style: none;
  margin-bottom: 5px;
  color: #FFD700; /* 默认暗流/记忆面板颜色 */
}
ai summary::-webkit-details-marker {
  display: none;
}

/* 主控面板特化 */
ai details.mc {
  background: linear-gradient(to right, rgba(255, 69, 0, 0.15), rgba(0,0,0,0.4));
  border-left: 4px solid #FF4500;
}
ai details.mc summary { color: #FF8C00; }

/* 佳丽面板特化 */
ai details.fm {
  background: linear-gradient(to right, rgba(255, 105, 180, 0.15), rgba(0,0,0,0.4));
  border-left: 4px solid #FF69B4;
}
ai details.fm summary { color: #FF1493; text-shadow: 0 0 5px rgba(255, 20, 147, 0.3); }

/* 数据行 */
ai d {
  display: block;
  font-size: 13px;
  margin: 4px 0;
  padding-left: 15px;
  position: relative;
}
ai d::before {
  content: "✦";
  position: absolute;
  left: 0;
  color: rgba(212, 175, 55, 0.5);
  font-size: 10px;
  top: 2px;
}
ai d b {
  color: #e8dcc5;
  font-weight: bold;
}

/* 选项区域 */
ai act {
  display: block;
  background: rgba(0, 0, 0, 0.3);
  border: 1px dashed #D4AF37;
  border-radius: 8px;
  padding: 15px;
  margin-top: 15px;
}
ai .tt {
  text-align: center;
  color: #FFD700;
  font-weight: bold;
  margin-bottom: 12px;
  font-size: 15px;
}

/* 选项按钮自动分配渐变色 */
ai q {
  display: block;
  padding: 10px;
  margin: 8px 0;
  border-radius: 5px;
  color: white; /* 按钮内部文字固定为白色，因为按钮背景是深色渐变 */
  text-align: center;
  font-family: sans-serif;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  border: 1px solid rgba(255,255,255,0.1);
}
ai q:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.5);
}
ai q:nth-of-type(1) { background: linear-gradient(to right, #2b4b8a, #182848); } /* A: 潜伏蓝 */
ai q:nth-of-type(2) { background: linear-gradient(to right, #6a1b9a, #4A00E0); } /* B: 调情紫 */
ai q:nth-of-type(3) { background: linear-gradient(to right, #b71c1c, #8e0000); } /* C: 破局红 */
ai q:nth-of-type(4) { background: #222; color: #aaa; } /* D: 自定义黑 */