/* 容器：宣纸色底 */
ai {
  display: block;
  font-family: "Noto Serif SC", "Source Han Serif SC", serif;
  background: #f4f1de url('https://www.transparenttextures.com/patterns/handmade-paper.png');
  color: #1a1a1a;
  padding: 15px;
  border: 1px solid #2c2c2c;
  box-shadow: 0 10px 40px rgba(0,0,0,0.2);
  line-height: 1.6;
}

/* 模块间距增加 6px */
details {
  margin-bottom: 6px;
  border: 1px solid rgba(0,0,0,0.08);
  background: rgba(255,255,255,0.3);
}

/* 标题高度增加 6px (通过增加 padding 达成) */
summary {
  padding: 11px 15px; 
  background: #1a1a1a;
  color: #f4f1de;
  cursor: pointer;
  list-style: none;
  font-size: 15px; /* 字号加大一号 */
  font-weight: bold;
  border-left: 5px solid #bc2423;
  display: flex;
  justify-content: space-between;
}

details[open] summary { background: #bc2423; }

/* 内容区字号上调 */
p[type="scene"], p[type="list"], p[type="stats"], p[type="desc"], p[type="tags"], .inner {
  padding: 10px;
  font-size: 15px; /* 区块内容字号加大 */
  margin: 0;
}

/* 正文保持 16px 以上 */
.main {
  padding: 20px 5px;
  font-size: 17px;
  color: #000;
  text-align: justify;
  border-bottom: 2px solid #1a1a1a;
  margin-bottom: 20px;
  white-space: pre-wrap;
}

/* 子标题样式 */
.sub {
  background: rgba(0,0,0,0.08);
  border-bottom: 1px solid #1a1a1a;
  color: #1a1a1a;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: bold;
}

/* 进度条与标签 */
d { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
v { flex-grow: 1; max-width: 100px; height: 6px; background: #ccc; border-radius: 2px; position: relative; }
v::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: var(--p); background: #bc2423; }

/* 装备/天赋标签 */
f {
  color: #bc2423;
  font-weight: bold;
  border-bottom: 1px dashed #bc2423;
  cursor: help;
  position: relative;
  display: inline-block;
  margin-right: 8px;
}

/* 气泡悬浮窗 */
f[note]:hover::after {
  content: attr(note);
  position: absolute; bottom: 130%; left: 0;
  width: 240px; padding: 12px;
  background: #1a1a1a; color: #f4f1de;
  font-size: 14px; border-radius: 4px;
  z-index: 1000; box-shadow: 0 5px 20px rgba(0,0,0,0.6);
  font-weight: normal;
}

/* 按钮与复制区 */
p[type="btns"] { display: flex; flex-direction: column; gap: 12px; }
button {
  background: #fff; border: 1px solid #bc2423; color: #bc2423;
  padding: 10px; text-align: left; cursor: pointer; font-size: 15px;
}
.selectable-branch {
  font-size: 14px; border-left: 3px solid #ddd;
  padding: 5px 10px; color: #555; user-select: text;
  background: rgba(0,0,0,0.02);
}

/* 状态标签 */
f.tag { background: #1a1a1a; color: #fff; padding: 2px 5px; border-radius: 3px; border:none; font-size:12px;}