/* 千禧年复古风格 - 亮暗双主题护眼版 */
:root {
  /* 亮色主题（默认） */
  --bg-primary: #f8f3e9;
  --bg-secondary: #ede4d6;
  --bg-card: #fffbf5;
  --border-color: #d4c9b5;
  --text-primary: #3e3232;
  --accent: #b0576b;
  --accent-gold: #b8860b;
  --skill-border: #b0576b;
  --stat-value-color: #4a7254;
  --shadow-color: rgba(0,0,0,0.05);
}
:root.is-dark {
  /* 暗色主题 */
  --bg-primary: #2b2b26;
  --bg-secondary: #3a3932;
  --bg-card: #3f3e37;
  --border-color: #5a5850;
  --text-primary: #e0d7c2;
  --accent: #d47a8a;
  --accent-gold: #d4a853;
  --skill-border: #d47a8a;
  --stat-value-color: #8fb996;
  --shadow-color: rgba(255,255,255,0.03);
}
.ai-dialog-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  font-family: 'Courier New', monospace;
  font-size: 1.3em;
  color: var(--text-primary);
  box-shadow: 0 4px 16px rgba(0,0,0,0.1), inset 0 0 40px var(--shadow-color);
  line-height: 1.6;
}
.dialog-title {
  font-size: 1.4em;
  font-weight: bold;
  color: var(--accent);
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 2px dashed var(--border-color);
  text-align: center;
  letter-spacing: 0.05em;
}
.dialog-content {
  background: var(--bg-card);
  padding: 15px 18px;
  border-radius: 8px;
  margin-bottom: 15px;
  border-left: 4px solid var(--accent);
  line-height: 1.7;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.dialog-section {
  margin-bottom: 10px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
  background: var(--bg-card);
}
.dialog-section summary {
  padding: 12px 18px;
  background: var(--bg-secondary);
  color: var(--accent-gold);
  cursor: pointer;
  font-weight: bold;
  font-size: 1.05em;
  border-bottom: 1px solid var(--border-color);
  transition: background 0.3s;
  list-style: none;
}
.dialog-section summary::-webkit-details-marker {
  display: none;
}
.dialog-section summary:hover {
  background: color-mix(in srgb, var(--bg-secondary) 90%, white);
}
.dialog-section[open] summary {
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
}
.section-content {
  padding: 15px 18px;
  background: var(--bg-card);
}
.character-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 8px 20px;
  margin-bottom: 15px;
}
.character-item {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  border-bottom: 1px dotted var(--border-color);
}
.character-label {
  color: var(--stat-value-color);
  font-weight: bold;
}
.character-value {
  color: var(--text-primary);
}
.skills-container {
  margin: 15px 0;
}
.skill-item {
  background: var(--bg-secondary);
  padding: 8px 15px;
  margin: 6px 0;
  border-radius: 6px;
  border-left: 4px solid var(--skill-border);
  font-weight: 500;
}
.survival-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-top: 15px;
}
.stat-item {
  flex: 1;
  min-width: 120px;
  text-align: center;
  padding: 10px 5px;
  background: var(--bg-secondary);
  border-radius: 8px;
  border: 1px solid var(--border-color);
  font-weight: bold;
}
.stat-value {
  font-size: 1.2em;
  font-weight: bold;
  color: var(--stat-value-color);
  margin-top: 5px;
}
.separator {
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--border-color), transparent);
  margin: 15px 0;
}
/* 折叠动画 */
.dialog-section .section-content {
  animation: slideDown 0.3s ease-out;
}
@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}