/* ===== 便利贴风格 · 助眠航班 ===== */

scene {
  display: block;
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 15px;
  line-height: 1.7;
  color: #3a3a3a;
  background: #fffef5;
  padding: 12px;
  margin: 6px 0;
  border: 1px solid #e8e2c8;
  border-radius: 3px;
  box-shadow: 2px 3px 8px rgba(180,170,130,0.18), 0 1px 2px rgba(0,0,0,0.04);
  position: relative;
}

scene::before {
  content: "";
  display: block;
  width: 60px;
  height: 22px;
  background: linear-gradient(135deg, rgba(255,220,100,0.7), rgba(255,200,60,0.5));
  border-radius: 2px;
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* --- 地点栏 --- */
loc {
  display: block;
  background: linear-gradient(135deg, #fff8dc, #fef3c7);
  border: 1px dashed #d4c88a;
  border-radius: 3px;
  padding: 8px 10px;
  margin-bottom: 10px;
  font-size: 13px;
  color: #6b5c2e;
  letter-spacing: 0.3px;
}

/* --- 正文区 --- */
text {
  display: block;
  padding: 8px 4px;
}

text p {
  margin: 0 0 10px 0;
  text-indent: 2em;
}

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

/* --- 台词 --- */
mc {
  display: inline;
  color: #2563eb;
  font-weight: 500;
}

npc {
  display: inline;
  color: #dc2626;
  font-weight: 500;
}

/* --- 状态面板 details --- */
scene details {
  margin-top: 10px;
  background: #fffdf0;
  border: 1px solid #e8deb5;
  border-radius: 3px;
  overflow: hidden;
}

scene details summary {
  padding: 8px 10px;
  font-size: 14px;
  font-weight: 600;
  color: #5c4e1e;
  background: linear-gradient(to right, #fef9e7, #fdf6d8);
  cursor: pointer;
  user-select: none;
  border-bottom: 1px dashed #e0d6a8;
}

scene details summary:hover {
  background: linear-gradient(to right, #fdf3c9, #fcefb8);
}

scene details[open] summary {
  border-bottom: 1px solid #d9cd8e;
}

.panel-content {
  padding: 8px 10px;
  font-size: 13.5px;
  line-height: 1.8;
}

.panel-content p {
  margin: 2px 0;
  text-indent: 0;
}

.panel-content b {
  color: #4a3f1a;
}

.divider {
  border: none;
  border-top: 1px dashed #ddd4a6;
  margin: 8px 0;
}

/* --- 行动建议 --- */
suggested_questions {
  display: block;
  margin-top: 10px;
  background: linear-gradient(135deg, #f0fdf4, #ecfce5);
  border: 1px solid #b7e4a0;
  border-radius: 3px;
  padding: 8px 10px;
}

suggested_questions::before {
  content: "🎯 可选行动";
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #3d7a28;
  margin-bottom: 4px;
  padding-bottom: 4px;
  border-bottom: 1px dashed #b7e4a0;
}

suggested_questions p {
  margin: 3px 0;
  font-size: 13.5px;
  color: #2d5a1e;
  text-indent: 0;
  padding: 3px 6px;
  border-radius: 2px;
  transition: background 0.2s;
}

suggested_questions p:hover {
  background: rgba(74,160,44,0.08);
}

/* --- 便利贴纸张纹理 --- */
scene::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100'%3E%3Cfilter id='n'%3E%3CfeTurbulence baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100' height='100' filter='url(%23n)' opacity='0.015'/%3E%3C/svg%3E");
  pointer-events: none;
  border-radius: 3px;
}

/* --- 移动端微调 --- */
@media (max-width: 480px) {
  scene {
    padding: 10px;
    font-size: 14.5px;
  }
  .panel-content {
    font-size: 13px;
  }
  loc {
    font-size: 12.5px;
  }
}