/* 深宫旧事 - 内置样式表 */
/* 定义所有class，AI输出时只需引用，不占用token */

/* 基础容器 */
.sggs-wrap {
  background: rgba(245, 239, 231, 0.95);
  border-radius: 16px;
  padding: 20px;
  margin: 16px 0;
  color: #2c2a2a;
  font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', serif;
  line-height: 1.75;
  font-size: 15px;
  border: 1px solid rgba(200, 190, 180, 0.4);
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}

/* 对话样式 - 粉色（NPC女性） */
.sggs-dialogue-pink {
  color: #c97b6b;
  font-weight: 500;
  display: inline;
}

/* 对话样式 - 蓝色（玩家） */
.sggs-dialogue-blue {
  color: #6b8c7e;
  font-weight: 500;
  display: inline;
}

/* 引号包裹的对话，不另外加颜色时使用 */
.sggs-quote {
  color: #5e5a55;
  font-style: normal;
}

/* 内心独白/心理活动 */
.sggs-inner {
  color: #9a958e;
  font-style: italic;
  background: rgba(200, 190, 180, 0.15);
  padding: 12px 16px;
  border-radius: 12px;
  margin: 12px 0;
  border-left: 3px solid #c9a87b;
}

/* 场景描述卡片 */
.sggs-scene {
  background: rgba(230, 220, 210, 0.4);
  padding: 16px;
  border-radius: 12px;
  margin: 12px 0;
  color: #5e5a55;
  font-size: 14px;
  text-align: center;
  letter-spacing: 1px;
}

/* 分隔线 - 古风纹样 */
.sggs-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, #c97b6b, #6b8c7e, #c97b6b, transparent);
  margin: 24px 0;
}

/* 动作描写专用（不加额外样式，只是语义化） */
.sggs-action {
  font-weight: normal;
}

/* 状态栏折叠面板样式覆盖 */
details.sggs-state {
  background: rgba(245, 239, 231, 0.6);
  border-radius: 12px;
  padding: 8px 12px;
  margin: 12px 0;
  font-size: 13px;
  border: 1px solid rgba(200, 190, 180, 0.3);
}
details.sggs-state summary {
  cursor: pointer;
  color: #c97b6b;
  font-weight: 500;
}

/* 时间状态栏专用 */
.sggs-timebar {
  background: linear-gradient(135deg, rgba(201,123,107,0.1), rgba(107,140,126,0.1));
  padding: 12px 16px;
  border-radius: 12px;
  font-family: monospace;
  font-size: 13px;
  color: #5e5a55;
  margin-bottom: 20px;
  border-left: 4px solid #c97b6b;
}

/* 选项按钮样式 */
.sggs-option {
  display: inline-block;
  background: rgba(255,255,255,0.9);
  border: 1px solid rgba(201,123,107,0.3);
  border-radius: 30px;
  padding: 8px 20px;
  margin: 8px 8px 0 0;
  color: #c97b6b;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
}
.sggs-option:hover {
  background: #c97b6b;
  color: white;
  border-color: #c97b6b;
}

/* 角色名字标签 */
.sggs-name-tag {
  font-weight: 600;
  color: #c97b6b;
  margin-right: 8px;
}

/* 场景切换淡入淡出 */
.sggs-fade {
  animation: sggsFadeIn 0.3s ease;
}
@keyframes sggsFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* 引用/书信样式 */
.sggs-letter {
  background: rgba(250, 245, 235, 0.9);
  padding: 20px;
  border-radius: 8px;
  font-family: 'KaiTi', '楷体', serif;
  border: 1px dashed #c9a87b;
  margin: 16px 0;
  color: #5e5a55;
}

/* 红墙背景特殊块 */
.sggs-wall {
  background: rgba(201,123,107,0.08);
  border-left: 4px solid #c97b6b;
  padding: 16px;
  margin: 16px 0;
  border-radius: 0 12px 12px 0;
}

/* 手机端适配 */
@media (max-width: 600px) {
  .sggs-wrap {
    padding: 16px;
    font-size: 14px;
  }
  .sggs-option {
    padding: 6px 16px;
    font-size: 13px;
  }
}