/* 小学六年模拟器 · 浅蓝浅绿渐变校园风格 + 折叠NPC档案 + 浅绿色按钮美化 */
.primary-wrap {
  background: linear-gradient(145deg, #e0f2e9, #c8e6df);
  color: #2c5a4a;
  font-family: 'Segoe UI', 'Roboto', 'Noto Sans SC', 'Inter', sans-serif;
  border-radius: 28px;
  padding: 20px;
  max-width: 800px;
  margin: 20px auto;
  border: 1px solid #b8d9cc;
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
  position: relative;
}

/* 思维推理折叠块 */
.primary-detail {
  background: #f0f9f4;
  border-radius: 20px;
  margin-bottom: 20px;
  border: 1px solid #cce6dc;
  overflow: hidden;
}
.primary-detail summary {
  padding: 12px 20px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  background: #d9f0e8;
  color: #2c8c6e;
}
.primary-detail summary::-webkit-details-marker { display: none; }
.primary-detail summary::before { content: '🏫'; margin-right: 8px; }
.primary-content {
  padding: 12px 20px;
  line-height: 1.6;
  font-size: 0.9rem;
  border-top: 1px solid #cce6dc;
  background: #fffcf8;
}

/* 环境描写 */
.primary-env {
  background: #d9f0e8;
  border-radius: 60px;
  padding: 10px 20px;
  margin-bottom: 20px;
  font-size: 0.85rem;
  color: #2c8c6e;
  text-align: center;
  border: 1px solid #b8d9cc;
}

/* 叙事正文 */
.primary-narrative {
  margin-bottom: 20px;
  text-align: justify;
  font-size: 1rem;
  line-height: 1.8;
  background: rgba(240,249,244,0.6);
  padding: 12px;
  border-radius: 20px;
}

/* 对话气泡 */
.primary-bubble {
  display: flex;
  gap: 12px;
  margin: 16px 0;
  align-items: flex-start;
}
.bubble-avatar {
  width: 44px;
  height: 44px;
  background: #cce6dc;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
}
.bubble-content {
  background: #f0f9f4;
  border-radius: 20px 20px 20px 8px;
  padding: 10px 16px;
  max-width: calc(100% - 60px);
  border: 1px solid #b8d9cc;
}
.bubble-name {
  color: #2c8c6e;
  font-weight: bold;
  font-size: 0.8rem;
  margin-bottom: 4px;
}
.bubble-text {
  color: #2c5a4a;
  font-size: 0.9rem;
  line-height: 1.5;
}

/* NPC档案面板 - 折叠样式 */
.primary-profile {
  background: #d9f0e8;
  border-radius: 20px;
  margin: 20px 0;
  border: 1px solid #b8d9cc;
  overflow: hidden;
}
.primary-profile summary {
  padding: 12px 20px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  background: #cce6dc;
  color: #2c8c6e;
  font-size: 0.9rem;
}
.primary-profile summary::-webkit-details-marker { display: none; }
.primary-profile summary::before { content: '📋'; margin-right: 8px; }
.primary-profile[open] summary {
  border-bottom: 1px solid #b8d9cc;
}
.primary-profile markdown {
  display: block;
  font-size: 0.85rem;
  line-height: 1.6;
  color: #2c5a4a;
  white-space: pre-wrap;
  background: #fffcf8;
  padding: 16px;
  margin: 0;
}

/* 状态面板 */
.primary-status {
  background: #f0f9f4;
  border: 1px solid #cce6dc;
  border-radius: 20px;
  padding: 16px;
  margin: 20px 0;
}
.status-title {
  text-align: center;
  color: #2c8c6e;
  font-weight: bold;
  margin-bottom: 12px;
  padding-bottom: 6px;
  border-bottom: 1px solid #cce6dc;
}
.status-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 0.85rem;
}
.status-row span:first-child { color: #5a9a82; }
.status-row span:last-child { color: #2c6e58; font-weight: 500; }

/* 选项列表 - 浅绿色按钮美化 */
.primary-acts {
  background: #f0f9f4;
  border: 1px solid #cce6dc;
  border-radius: 20px;
  padding: 16px;
  margin-top: 20px;
}
.primary-acts-h {
  color: #2c8c6e;
  font-size: 0.85rem;
  font-weight: bold;
  text-align: center;
  margin-bottom: 12px;
  padding-bottom: 6px;
  border-bottom: 1px solid #cce6dc;
}
.primary-acts-i {
  padding: 8px 0;
  font-size: 0.85rem;
  color: #2c5a4a;
  border-bottom: 1px dashed #cce6dc;
  cursor: pointer;
  transition: all 0.2s ease;
}
.primary-acts-i:hover {
  color: #2c8c6e;
  transform: translateX(4px);
  background: rgba(100, 180, 140, 0.1);
  border-radius: 12px;
  padding-left: 8px;
}
.primary-acts-i:last-child {
  border-bottom: none;
  color: #7ab59e;
  margin-top: 6px;
  border-top: 1px dashed #cce6dc;
  padding-top: 10px;
}

/* 平台按钮美化 - 浅绿色系（评论区、流式等下方按钮） */
.primary-wrap button,
.primary-wrap .corner-btn,
.primary-wrap .game-enter-btn,
.primary-wrap .back-btn {
  background: linear-gradient(145deg, #a8e6cf, #6bc9a8) !important;
  border: none !important;
  color: #2c5a4a !important;
  font-weight: bold !important;
  border-radius: 40px !important;
  padding: 10px 24px !important;
  transition: all 0.2s ease !important;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1) !important;
}
.primary-wrap button:hover,
.primary-wrap .corner-btn:hover,
.primary-wrap .game-enter-btn:hover,
.primary-wrap .back-btn:hover {
  background: linear-gradient(145deg, #8fd9be, #4fa886) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15) !important;
}
.primary-wrap button:active,
.primary-wrap .corner-btn:active,
.primary-wrap .game-enter-btn:active,
.primary-wrap .back-btn:active {
  transform: translateY(1px) !important;
}

/* 响应式 */
@media (max-width: 640px) {
  .primary-wrap { padding: 12px; }
  .bubble-avatar { width: 36px; height: 36px; font-size: 20px; }
  .bubble-content { max-width: calc(100% - 48px); }
  .primary-acts-i { font-size: 0.8rem; padding: 6px 0; }
}