/* ===== 思维链隐藏 ===== */
think {
  display: none;
}

/* ===== 全局场景容器 ===== */
scene {
  display: block;
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: #1e2f22;
  line-height: 1.8;
  padding: 12px 8px;
}

/* ===== 顶部状态栏 Header ===== */
header {
  display: block;
  position: relative;
  margin: 0 0 16px 0;
  padding: 14px 18px;
  background: linear-gradient(135deg, rgba(88,156,112,0.3) 0%, rgba(128,102,168,0.25) 100%);
  border: 1px solid rgba(88,156,112,0.5);
  border-radius: 12px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  overflow: hidden;
}

header::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(ellipse at 30% 20%, rgba(200,185,130,0.18) 0%, transparent 60%);
  animation: headerGlow 8s ease-in-out infinite;
  pointer-events: none;
}

@keyframes headerGlow {
  0%, 100% { opacity: 0.4; transform: translate(0, 0); }
  50% { opacity: 0.85; transform: translate(5%, 3%); }
}

header p {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1px;
  color: #2b5438;
  text-align: center;
  position: relative;
  z-index: 1;
}

header p::after {
  content: "";
  display: block;
  width: 40px;
  height: 2px;
  margin: 8px auto 0;
  background: linear-gradient(90deg, transparent, #7a5fa0, transparent);
  border-radius: 1px;
}

/* ===== 论坛信息块 Forum ===== */
forum {
  display: block;
  margin: 0 0 16px 0;
  padding: 12px 16px;
  background: rgba(30,47,34,0.1);
  border-left: 3px solid #7a5fa0;
  border-radius: 0 10px 10px 0;
  position: relative;
}

forum::after {
  content: "💜";
  position: absolute;
  top: -8px;
  right: 12px;
  font-size: 12px;
  opacity: 0.7;
  animation: forumPulse 3s ease-in-out infinite;
}

@keyframes forumPulse {
  0%, 100% { transform: scale(1); opacity: 0.7; }
  50% { transform: scale(1.2); opacity: 1; }
}

forum p {
  margin: 4px 0;
  font-size: 13px;
  color: #2b5438;
}

forum p:first-child {
  font-weight: 600;
  font-size: 14px;
  color: #7a5fa0;
}

/* ===== 正文区 Text ===== */
text {
  display: block;
  margin: 16px 0;
  padding: 16px 14px;
  border-radius: 8px;
  background: rgba(220,235,222,0.35);
  border: 1px solid rgba(88,156,112,0.25);
}

text p {
  margin: 10px 0;
  font-size: 15px;
  line-height: 2;
  text-indent: 2em;
  color: #1e2f22;
}

text p:first-child {
  margin-top: 0;
}

text p:last-child {
  margin-bottom: 0;
}

/* ===== 折叠面板 Details/Summary ===== */
scene details {
  margin: 8px 0;
  border: 1px solid rgba(88,156,112,0.35);
  border-radius: 10px;
  overflow: hidden;
  transition: all 0.3s ease;
  background: rgba(240,248,241,0.5);
}

scene details:hover {
  border-color: rgba(122,95,160,0.55);
  box-shadow: 0 2px 14px rgba(122,95,160,0.15);
}

scene details[open] {
  background: rgba(88,156,112,0.1);
}

scene details summary {
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 600;
  color: #2b5438;
  cursor: pointer;
  list-style: none;
  position: relative;
  transition: all 0.2s ease;
  background: linear-gradient(90deg, rgba(88,156,112,0.15) 0%, transparent 100%);
}

scene details summary::-webkit-details-marker {
  display: none;
}

scene details summary::before {
  content: "▸";
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 12px;
  color: #7a5fa0;
  transition: transform 0.3s ease;
}

scene details[open] summary::before {
  transform: translateY(-50%) rotate(90deg);
}

scene details summary:hover {
  background: linear-gradient(90deg, rgba(88,156,112,0.25) 0%, rgba(128,102,168,0.12) 100%);
}

scene details > p {
  margin: 6px 16px;
  font-size: 13px;
  line-height: 1.7;
  color: #2a4430;
}

scene details > p strong {
  color: #2b5438;
  font-weight: 600;
}

/* ===== 记忆区markdown内容 ===== */
scene details > strong {
  display: block;
  margin: 12px 16px 4px;
  font-size: 13px;
  color: #7a5fa0;
}

scene details ol,
scene details ul {
  margin: 4px 16px 8px 32px;
  font-size: 13px;
  color: #2a4430;
}

scene details li {
  margin: 4px 0;
  line-height: 1.6;
}

/* ===== 角色面板个性化左边框 ===== */
scene details:nth-of-type(3) {
  border-left: 3px solid #1e3a26;
}

scene details:nth-of-type(4) {
  border-left: 3px solid #c96a2f;
}

scene details:nth-of-type(5) {
  border-left: 3px solid #7a5fa0;
}

scene details:nth-of-type(6) {
  border-left: 3px solid #b8922e;
}

/* ===== 行动推荐列表 ===== */
scene details:last-of-type ul {
  list-style: none;
  padding-left: 16px;
}

scene details:last-of-type li {
  position: relative;
  padding-left: 16px;
  margin: 8px 0;
}

scene details:last-of-type li::before {
  content: "✦";
  position: absolute;
  left: 0;
  color: #7a5fa0;
  font-size: 10px;
}

/* ===== 滚动条 ===== */
scene::-webkit-scrollbar {
  width: 4px;
}

scene::-webkit-scrollbar-track {
  background: transparent;
}

scene::-webkit-scrollbar-thumb {
  background: rgba(88,156,112,0.6);
  border-radius: 2px;
}

/* ===== 响应式 ===== */
@media (max-width: 480px) {
  header {
    padding: 10px 12px;
  }
  header p {
    font-size: 12px;
    letter-spacing: 0.5px;
  }
  text p {
    font-size: 14px;
    text-indent: 1.5em;
  }
  scene details summary {
    padding: 10px 12px;
    font-size: 13px;
  }
}

/* ===== 论坛楼层容器 ===== */
forumthread {
  display: block;
  margin: 12px 0 0 0;
  padding: 10px 8px;
  background: rgba(245,248,246,0.4);
  border-radius: 8px;
  border-top: 1px dashed rgba(88,156,112,0.2);
}

/* ===== 左侧楼层 ===== */
floorL {
  display: block;
  margin: 8px 0;
  text-align: left;
}

floorL bubble {
  display: inline-block;
  max-width: 70%;
  padding: 8px 12px;
  background: linear-gradient(135deg, #d4e7f3 0%, #c8d9f0 100%);
  color: #2a4460;
  border-radius: 4px 16px 16px 16px;
  font-size: 13px;
  line-height: 1.5;
  box-shadow: 0 2px 6px rgba(88,120,180,0.1);
  position: relative;
}

floorL bubble::before {
  content: "";
  position: absolute;
  left: -6px;
  top: 8px;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0 8px 8px 0;
  border-color: transparent #d4e7f3 transparent transparent;
}

/* ===== 右侧楼层 ===== */
floorR {
  display: block;
  margin: 8px 0;
  text-align: right;
}

floorR bubble {
  display: inline-block;
  max-width: 70%;
  padding: 8px 12px;
  background: linear-gradient(135deg, #e8f5e9 0%, #d4edd6 100%);
  color: #2a4430;
  border-radius: 16px 4px 16px 16px;
  font-size: 13px;
  line-height: 1.5;
  box-shadow: 0 2px 6px rgba(88,156,112,0.1);
  position: relative;
}

floorR bubble::before {
  content: "";
  position: absolute;
  right: -6px;
  top: 8px;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 8px 8px 0 0;
  border-color: #e8f5e9 transparent transparent transparent;
}

/* ===== 粉色特殊楼层（可选，用于表示玩家相关八卦） ===== */
floorR.hot bubble {
  background: linear-gradient(135deg, #fce4ec 0%, #f8d7e3 100%);
  color: #6d3a4a;
}

floorR.hot bubble::before {
  border-color: #fce4ec transparent transparent transparent;
}

/* ===== 移动端优化 ===== */
@media (max-width: 480px) {
  floorL bubble,
  floorR bubble {
    max-width: 80%;
    font-size: 12px;
    padding: 7px 10px;
  }
}