/* --- 高考压抑主题UI --- */
/* --- 基础容器与变量定义 --- */
ai-gbg {
  --bg: #2c3e50; /* 深灰蓝背景，模拟深夜/阴天 */
  --panel-bg: rgba(44, 62, 80, 0.85); /* 半透明毛玻璃面板 */
  --text: #ecf0f1; /* 柔和米白文本 */
  --sub-text: #bdc3c7; /* 次要信息文本 */
  --accent: #ab87a8; /* 柔和的豆沙紫，象征隐藏的情感 */
  --border-color: rgba(171, 135, 168, 0.4);
  --font-main: 16px;
  --font-small: 14px;
  display: block;
  font-family: 'Microsoft YaHei', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  /* 增加细微的噪点纹理，提升质感 */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='4' height='4' viewBox='0 0 4 4'%3E%3Cpath fill='%239C92AC' fill-opacity='0.08' d='M1 3h1v1H1V3zm2-2h1v1H3V1z'%3E%3C/path%3E%3C/svg%3E");
  color: var(--text);
  font-size: var(--font-main);
}
/* --- 顶部信息栏 (时间/地点) --- */
ai-gbg hd {
  display: block;
  text-align: center;
  font-size: 13px;
  color: var(--sub-text);
  padding: 8px 15px;
  background: rgba(0,0,0,0.2);
  letter-spacing: 1px;
}
/* --- 正文区域 --- */
ai-gbg article p {
  font-size: var(--font-main);
  line-height: 1.7;
  padding: 12px 15px;
  margin: 0;
}
/* --- 状态面板核心 --- */
ai-gbg .st {
  background: var(--panel-bg);
  /* 毛玻璃效果 */
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-top: 1px solid var(--border-color);
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.4);
  margin: 0;
  padding: 0;
}
/* --- 面板折叠标题 <summary> --- */
ai-gbg .st summary {
  padding: 12px 15px;
  font-weight: bold;
  color: var(--text);
  cursor: pointer;
  outline: none;
  list-style: none; /* 隐藏默认箭头 */
  position: relative;
  background: rgba(0,0,0,0.2);
  transition: background-color 0.2s;
}
ai-gbg .st summary:hover {
  background: rgba(0,0,0,0.3);
}
ai-gbg .st summary::-webkit-details-marker { display: none; }
/* 自定义折叠箭头 */
ai-gbg .st summary::after {
  content: '▼';
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 12px;
  color: var(--accent);
  transition: transform 0.3s ease-in-out;
}
ai-gbg .st[open] > summary::after {
  transform: translateY(-50%) rotate(180deg);
}
/* --- 信息分区 <p t="..."> --- */
ai-gbg .st p[t] {
  display: grid;
  grid-template-columns: 1fr;
  gap: 5px;
  padding: 12px 15px 12px 60px; /* 左侧留出标题空间 */
  margin: 0;
  border-top: 1px solid rgba(236, 240, 241, 0.1);
  position: relative;
  font-size: var(--font-small);
}
ai-gbg .st p[t]:first-of-type { border-top: none; }
/* 使用伪元素生成分区标题 */
ai-gbg .st p[t]::before {
  content: attr(t);
  position: absolute;
  left: 15px;
  top: 14px;
  font-weight: bold;
  color: var(--accent);
  writing-mode: vertical-lr; /* 竖排标题 */
  text-align: center;
}
/* --- 数据条目 <d> --- */
ai-gbg .st d {
  display: block;
  color: var(--sub-text);
  line-height: 1.6;
}
/* 标签文字 (如 "年龄:") */
ai-gbg .st d b {
  color: var(--text);
  font-weight: 600;
  margin-right: 5px;
}
/* --- 名字 <f> --- */
ai-gbg .st f {
  font-size: 1.15em;
  font-weight: bold;
  color: var(--accent);
  text-shadow: 0 0 8px rgba(171, 135, 168, 0.6);
  display: block;
  margin-bottom: 5px;
}
/* --- NPC外貌详情的特殊样式 --- */
ai-gbg .st d.ext { /* "外貌详情" 标题 */
  margin-top: 8px;
  font-weight: bold;
  color: var(--text);
}
ai-gbg .st d.sub { /* 缩进的详情条目 */
  padding-left: 12px;
  position: relative;
  color: #b2b9be; /* 颜色稍暗以示区别 */
}
/* 详情条目前的小装饰线 */
ai-gbg .st d.sub::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 5px;
  height: 1px;
  background: var(--border-color);
  opacity: 0.8;
}
/* --- 行动选项 --- */
ai-gbg .st p[t="行动"] d {
  cursor: pointer;
  padding: 5px 8px;
  margin: 0 -8px; /* 扩展悬停热区 */
  border-radius: 4px;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
  will-change: transform;
}
ai-gbg .st p[t="行动"] d:hover {
  background-color: var(--accent);
  color: white;
  transform: translateX(5px);
}