/* 
  ==========================================
  《荒野大迪克》专属 UI 美化引擎 (西部/血浆/皮革风)
  ==========================================
*/

/* 全局容器接管：泛黄做旧羊皮纸与通缉令底色 */
wb {
  display: block;
  background-color: #eaddc5; /* 泛黄纸张底色 */
  background-image: 
    linear-gradient(120deg, rgba(139, 69, 19, 0.05) 0%, rgba(0, 0, 0, 0) 50%, rgba(139, 69, 19, 0.08) 100%),
    radial-gradient(circle, transparent 70%, rgba(50, 20, 0, 0.15) 100%);
  box-shadow: inset 0 0 30px rgba(60, 30, 10, 0.3), 0 2px 8px rgba(0,0,0,0.5);
  color: #312113; /* 褪色墨水印的深褐色 */
  font-family: "Georgia", "Times New Roman", serif; /* 浓厚的报纸/纸质手书感 */
  font-size: 15px;
  line-height: 1.6;
  padding: 15px;
  border-radius: 2px;
  border: 1px solid #c4a47c;
  margin: 5px 0;
  position: relative;
}

/* 顶部钉子装饰 (纯CSS手绘) */
wb::before, wb::after {
  content: "";
  position: absolute;
  top: 6px;
  width: 8px;
  height: 8px;
  background: radial-gradient(circle, #777 20%, #222 80%);
  border-radius: 50%;
  box-shadow: 1px 1px 2px rgba(0,0,0,0.6);
}
wb::before { left: 10px; }
wb::after { right: 10px; }

/* -------------------------------------
   折叠框美化：黄铜包边 + 深棕色粗糙皮革
------------------------------------- */
wb details {
  background: linear-gradient(145deg, #1f140d 0%, #110a05 100%); /* 深皮革底色 */
  border: 1px solid #5c3f22;
  border-left: 4px solid #8b1111; /* 左侧血色加厚边带，警示感 */
  border-radius: 4px;
  padding: 0 12px 12px 12px;
  margin: 15px 0;
  box-shadow: inset 0 0 15px rgba(0,0,0,0.9), 0 3px 6px rgba(0,0,0,0.4);
  color: #c9b49a; /* 浅沙色文字，在深底色上清晰且复古 */
  font-family: "Microsoft YaHei", sans-serif;
  font-size: 14px;
  transition: all 0.3s ease;
}

/* 展开时的物理反馈：底色渗出暗红血光 */
wb details[open] {
  border-color: #a82e1c;
  box-shadow: inset 0 0 15px rgba(0,0,0,0.9), 0 0 10px rgba(139, 17, 17, 0.4);
}

/* 标题栏美化：黄铜质感与悬赏榜排版 */
wb summary {
  color: #d8aa62; /* 做旧黄铜金 */
  font-weight: bold;
  font-size: 15px;
  padding: 12px 0 10px 0;
  cursor: pointer;
  border-bottom: 1px dashed #5c3f22;
  margin-bottom: 10px;
  list-style: none; /* 隐藏原生三角 */
  display: flex;
  align-items: center;
  text-shadow: 1px 1px 2px black, 0 0 8px rgba(216, 170, 98, 0.2);
  letter-spacing: 1px;
}
wb summary::-webkit-details-marker { display: none; }

/* 展开箭头：左轮弹巢/警长星徽章 */
wb summary::before {
  content: "❂"; 
  margin-right: 8px;
  color: #8b1111; /* 凝血红 */
  font-size: 18px;
  transition: transform 0.4s cubic-bezier(0.18, 0.89, 0.32, 1.28), color 0.3s;
}
wb details[open] summary::before {
  transform: rotate(180deg);
  color: #d8aa62; /* 展开后变回黄铜色 */
  text-shadow: 0 0 5px #d8aa62;
}

/* -------------------------------------
   Markdown 正文与元素深度美化 (全局接管)
------------------------------------- */

/* 粗体文字：刺眼的干涸鲜血色 */
wb b, wb strong {
  color: #8b1111;
  font-weight: 900;
  text-shadow: 0 0 1px rgba(139, 17, 17, 0.3);
}

/* 折叠框内的粗体：黄铜色强调，以防红底看不清 */
wb details b, wb details strong {
  color: #d8aa62; 
  font-weight: 900;
  text-shadow: 1px 1px 1px rgba(0,0,0,0.8);
}

/* 斜体字：沙土暗记 */
wb i, wb em {
  color: #7b5936;
  font-style: italic;
}
wb details i {
  color: #927e67; /* 内部面板使用的暗灰沙色，适合标注状态 */
}

/* 无序列表与系统选项：子弹头标记 */
wb ul {
  padding-left: 20px;
  margin: 8px 0;
}
wb li {
  list-style: none;
  position: relative;
  margin-bottom: 5px;
}
wb li::before {
  content: "⁍"; /* 子弹头/射击孔形状 */
  color: #8b1111;
  position: absolute;
  left: -18px;
  font-size: 16px;
  line-height: 1;
}
wb details li::before {
  color: #d8aa62; /* 深底色面板里换成黄铜子弹 */
}

/* 惊艳的分割线设计：两端渐隐的火枪/星章装饰线 */
wb hr {
  border: none;
  height: 1px;
  background: linear-gradient(90deg, transparent, #8b1111, transparent);
  margin: 25px 0;
  overflow: visible;
  text-align: center;
  opacity: 0.8;
}
wb hr::after {
  content: "✧ ✪ ✧"; /* 两发火花加一颗警长星 */
  color: #8b1111;
  background: #eaddc5; /* 需与全局羊皮纸底色融合 */
  padding: 0 15px;
  position: relative;
  top: -12px;
  font-size: 14px;
}

/* 表格美化 (若有使用)：通缉榜单风格 */
wb table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid #5c3f22;
}
wb th, wb td {
  border: 1px solid #5c3f22;
  padding: 6px 10px;
}
wb th {
  background: rgba(216, 170, 98, 0.1);
  color: #d8aa62;
  text-transform: uppercase;
}