/* 模态对话框样式 */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  animation: fadeIn 0.3s;
}

.modal.active {
  display: flex;
  justify-content: center;
  align-items: center;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-content {
  background-color: white;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  max-width: 500px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  position: relative;
  animation: slideIn 0.3s;
}

@keyframes slideIn {
  from {
    transform: translateY(-50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.modal-close {
  position: absolute;
  right: 15px;
  top: 15px;
  font-size: 28px;
  font-weight: bold;
  color: #aaa;
  cursor: pointer;
  transition: color 0.2s;
}

.modal-close:hover {
  color: #000;
}

#modal-body {
  margin-top: 10px;
}

/* 模态对话框内容样式 */
.modal-title {
  font-size: 24px;
  color: #667eea;
  margin-bottom: 15px;
  font-weight: bold;
}

.modal-description {
  color: #666;
  margin-bottom: 20px;
  line-height: 1.6;
}

.modal-tip {
  background: #e3f2fd;
  padding: 15px;
  border-radius: 5px;
  margin-bottom: 20px;
  border-left: 4px solid #2196F3;
}

.modal-tip-title {
  font-weight: bold;
  color: #1976D2;
  margin-bottom: 8px;
}

.modal-tip-content {
  color: #555;
  font-size: 14px;
  line-height: 1.5;
}

.modal-actions {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.modal-actions .btn {
  flex: 1;
}

/* 资产购买对话框 */
.asset-purchase {
  text-align: center;
}

.asset-info {
  background: #f5f5f5;
  padding: 20px;
  border-radius: 8px;
  margin: 20px 0;
}

.asset-info-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid #ddd;
}

.asset-info-row:last-child {
  border-bottom: none;
}

.asset-info-label {
  color: #666;
}

.asset-info-value {
  font-weight: bold;
  color: #333;
}

.risk-indicator {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 3px;
  font-size: 12px;
  font-weight: bold;
}

.risk-low {
  background: #4CAF50;
  color: white;
}

.risk-medium {
  background: #FF9800;
  color: white;
}

.risk-high {
  background: #f44336;
  color: white;
}

/* 事件卡对话框 */
.event-card {
  text-align: center;
}

.event-choices {
  margin: 20px 0;
}

.choice-btn {
  width: 100%;
  margin-bottom: 10px;
  padding: 15px;
  text-align: left;
  background: #f5f5f5;
  border: 2px solid #ddd;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s;
}

.choice-btn:hover {
  background: #e3f2fd;
  border-color: #2196F3;
  transform: translateX(5px);
}

.choice-text {
  font-weight: bold;
  color: #333;
  margin-bottom: 5px;
}

.choice-effect {
  font-size: 14px;
  color: #666;
}

/* 学习问题对话框 */
.learning-question {
  text-align: center;
}

.question-text {
  font-size: 18px;
  color: #333;
  margin: 20px 0;
  padding: 20px;
  background: #f5f5f5;
  border-radius: 8px;
  font-weight: bold;
  line-height: 1.6;
}

.question-options {
  margin: 20px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.question-option {
  width: 100%;
  padding: 15px;
  text-align: left;
  background: #f5f5f5;
  border: 2px solid #ddd;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s;
}

.question-option:hover {
  background: #e3f2fd;
  border-color: #2196F3;
  transform: translateX(5px);
}

.question-option .choice-text {
  font-weight: bold;
  color: #333;
  font-size: 15px;
}

.answer-input {
  width: 100%;
  padding: 15px;
  font-size: 16px;
  border: 2px solid #ddd;
  border-radius: 5px;
  margin-bottom: 15px;
}

.answer-input:focus {
  outline: none;
  border-color: #667eea;
}

/* 帮助页面样式 */
.help-content {
  max-height: 70vh;
  overflow-y: auto;
}

.help-section {
  margin-bottom: 25px;
  padding-bottom: 20px;
  border-bottom: 1px solid #e0e0e0;
}

.help-section:last-of-type {
  border-bottom: none;
}

.help-section h3 {
  color: #667eea;
  font-size: 18px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
}

.help-section p {
  color: #555;
  line-height: 1.6;
  margin-bottom: 10px;
}

.help-section ol,
.help-section ul {
  color: #555;
  line-height: 1.8;
  padding-left: 25px;
}

.help-section li {
  margin-bottom: 8px;
}

.help-item {
  background: #f9f9f9;
  padding: 12px;
  border-radius: 6px;
  margin-bottom: 10px;
  border-left: 3px solid #667eea;
}

.help-item-title {
  font-weight: bold;
  color: #333;
  font-size: 15px;
  margin-bottom: 6px;
}

.help-item-desc {
  color: #666;
  font-size: 14px;
  line-height: 1.5;
}

.help-content strong {
  color: #667eea;
}

/* 帮助页面子章节 */
.help-subsection {
  background: #f9f9f9;
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 15px;
  border-left: 4px solid #4CAF50;
}

.help-subsection h4 {
  color: #333;
  font-size: 16px;
  margin-bottom: 10px;
  font-weight: bold;
}

.help-subsection p {
  color: #555;
  line-height: 1.6;
  margin-bottom: 8px;
  font-size: 14px;
}

.help-subsection strong {
  color: #667eea;
  font-weight: bold;
}

