/* 全局基础容器美化：粉色波点渐变背景 */
va-box {
  display: flex;
  flex-direction: column;
  font-family: 'Helvetica Neue', Helvetica, 'PingFang SC', sans-serif;
  background: linear-gradient(135deg, #fffafb 0%, #fff0f5 100%);
  background-image: radial-gradient(#ffd1dc 1px, transparent 1px);
  background-size: 20px 20px;
  padding: 16px;
  border-radius: 16px;
  color: #4a4a4a;
  line-height: 1.6;
  font-size: 14px;
  box-shadow: 0 4px 20px rgba(255, 182, 193, 0.2);
}

/* 1. 顶部状态栏 */
va-box .status-bar-pink {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  background: linear-gradient(120deg, #ffb7b2, #e2858e);
  padding: 10px 16px;
  border-radius: 12px;
  color: white;
  font-weight: bold;
  font-size: 13px;
  margin-bottom: 16px;
  box-shadow: 0 4px 12px rgba(226, 133, 142, 0.25);
}

/* 2. 正文区域：旁白与气泡 */
va-box .narrative-text {
  margin: 10px 0;
  color: #5a4a4d;
  background: rgba(255, 255, 255, 0.75);
  padding: 12px 16px;
  border-radius: 8px;
  border-left: 4px solid #ffb7b2;
}

va-box .chat-bubble, va-box .thought-bubble {
  position: relative;
  margin: 8px 0;
  padding: 12px 16px;
  border-radius: 16px;
  max-width: 85%;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

va-box .bubble-male { float: right; background: #eef5fc; border-bottom-right-radius: 4px; border: 1px solid #dce8f5; }
va-box .bubble-male .char-name { color: #5b8cba; text-align: right; }
va-box .bubble-female { float: left; background: #fff0f5; border-bottom-left-radius: 4px; border: 1px solid #ffe4e1; }
va-box .bubble-female .char-name { color: #d81b60; }
va-box .thought-bubble { font-style: italic; border: 1px dashed #ffb7b2; background: rgba(255, 255, 255, 0.6); }
va-box .thought-male { float: right; border-color: #5b8cba; }
va-box .thought-female { float: left; border-color: #d81b60; }
va-box .char-name { display: block; font-size: 12px; font-weight: bold; margin-bottom: 4px; opacity: 0.9; }
va-box .clearfix { clear: both; height: 1px; }

/* 3. 底部折叠区美化 (核心排版优化) */
va-box details {
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(255, 183, 178, 0.5);
  border-radius: 10px;
  margin-bottom: 8px;
  overflow: hidden;
  transition: all 0.3s ease;
}
va-box details[open] {
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 4px 12px rgba(255, 182, 193, 0.2);
  border-color: #ffb7b2;
}
va-box summary {
  background: linear-gradient(90deg, rgba(255, 240, 245, 0.8), transparent);
  padding: 10px 14px;
  font-weight: bold;
  color: #e2858e;
  cursor: pointer;
  list-style: none;
  font-size: 13.5px;
  display: flex;
  align-items: center;
}
va-box summary::-webkit-details-marker { display: none; }
va-box details[open] summary { border-bottom: 1px dashed #ffe4e1; }
va-box .d-content { padding: 12px 14px; font-size: 13px; line-height: 1.6; }

/* 记忆快照专属样式 */
va-box .m-box summary { color: #5b8cba; background: linear-gradient(90deg, #eef5fc, transparent); }
va-box .m-box details[open] { border-color: #5b8cba; }
va-box .m-section h4 { margin: 8px 0 4px 0; color: #5b8cba; font-size: 13px; border-bottom: 1px solid #dce8f5; padding-bottom: 4px; }
va-box .m-section ul { margin: 0; padding-left: 20px; color: #555; }
va-box .m-section li { margin-bottom: 4px; }

/* 4. 尾部选项区 (固定在最底端) */
va-box .options-box {
  margin-top: 16px;
  border-top: 2px dashed #ffb7b2;
  padding-top: 16px;
}
va-box .opt {
  background: white;
  border: 1px solid #ffb7b2;
  padding: 10px 15px;
  margin-bottom: 8px;
  border-radius: 8px;
  color: #e2858e;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 13.5px;
}
va-box .opt:hover {
  background: #ffb7b2;
  color: white;
  transform: translateX(4px);
  box-shadow: 0 2px 8px rgba(226, 133, 142, 0.3);
}