/* ==========================================================================
   选择阶段样式 (stage-selection.css)
   ========================================================================== */
.selection-stage {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #FFCE92;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 2000;
  color: #333;
  padding: 60px 20px 20px 20px;
  text-align: center;
  overflow-y: auto;
}
.selection-stage.hidden {
  display: none;
}

.selection-header {
  font-size: 28px;
  margin-bottom: 15px;
  color: #2c3e50;
  text-shadow: none;
}
.selection-subheader {
  font-size: 18px;
  margin-bottom: 30px;
  max-width: 800px;
  line-height: 1.5;
  padding: 0 15px;
}

.selection-card {
  background: white;
  color: #333;
  border-radius: 15px;
  padding: 25px;
  max-width: 600px;
  width: 90%;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  margin-bottom: 25px;
  transition: transform 0.3s, box-shadow 0.3s;
}
.selection-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}
.selection-card h2 {
  font-size: 24px;
  margin-bottom: 15px;
  color: #2c3e50;
}

.feature-explanation {
  background: #f8f9fa;
  border-radius: 10px;
  padding: 15px;
  margin: 15px 0;
  text-align: left;
  font-size: 15px;
  line-height: 1.5;
}
.feature-explanation h3 {
  color: #3498db;
  margin-bottom: 8px;
  font-size: 16px;
}
.feature-explanation ul {
  padding-left: 18px;
}
.feature-explanation li {
  margin-bottom: 8px;
  font-size: 14px;
}

.selection-options {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 15px;
}
.selection-btn {
  padding: 10px 20px;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.3s;
  font-weight: bold;
  min-width: 120px;
  flex: 1;
  max-width: 45%;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}
.selection-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}
.very-fit-btn { background: #4CAF50; color: white; }
.fit-btn { background: #2196F3; color: white; }
.normal-btn { background: #FF9800; color: white; }
.not-fit-btn { background: #F44336; color: white; }
.skip-btn { background: #9E9E9E; color: white; }

.selection-btn.selected {
  transform: scale(1.05);
  box-shadow: 0 0 0 3px rgba(255,255,255,0.8), 0 5px 15px rgba(0,0,0,0.3);
}
.very-fit-btn.selected {
  background: #388E3C;
  box-shadow: 0 0 0 3px rgba(76,175,80,0.5);
}
.fit-btn.selected {
  background: #1976D2;
  box-shadow: 0 0 0 3px rgba(33,150,243,0.5);
}
.normal-btn.selected {
  background: #FFA000;
  box-shadow: 0 0 0 3px rgba(255,193,7,0.5);
}
.not-fit-btn.selected {
  background: #D32F2F;
  box-shadow: 0 0 0 3px rgba(244,67,54,0.5);
}

.progress-container {
  width: 100%;
  max-width: 600px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  height: 18px;
  margin-bottom: 15px;
}
.progress-bar {
  height: 100%;
  background: #3498db;
  border-radius: 10px;
  transition: width 0.5s ease;
}
.progress-text {
  margin-bottom: 12px;
  font-size: 16px;
}

.start-game-btn {
  padding: 12px 35px;
  background: #3498db;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s;
  margin-top: 25px;
  font-weight: bold;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}
.start-game-btn:hover {
  background: #2980b9;
  transform: scale(1.05);
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.nav-buttons {
  display: flex;
  justify-content: space-between;
  width: 100%;
  max-width: 600px;
  margin-top: 15px;
}
.nav-btn {
  padding: 10px 20px;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.3s;
  font-weight: bold;
  min-width: 120px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}
.prev-btn {
  background: #607D8B;
  color: white;
}
.next-btn {
  background: #9E9E9E;
  color: white;
}
.prev-btn:hover,
.next-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}
.prev-btn:disabled,
.next-btn:disabled {
  background: #BDBDBD;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.skip-guide-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  padding: 8px 15px;
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 20px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s;
  z-index: 2001;
}
.skip-guide-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

.completed-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  width: 100%;
  margin-top: 20px;
}

.selection-hint {
  font-size: 14px;
  color: #7f8c8d;
  margin-top: 15px;
  margin-bottom: 5px;
  text-align: left;
  line-height: 1.5;
  width: 100%;
  max-width: 600px;
}

@media (max-width: 768px) {
  .completed-buttons {
    flex-direction: column;
    align-items: center;
  }
  .selection-header {
    font-size: 24px;
    margin-top: 40px;
  }
  .selection-subheader {
    font-size: 16px;
    margin-bottom: 20px;
  }
  .selection-card {
    padding: 20px;
  }
  .selection-card h2 {
    font-size: 20px;
  }
  .feature-explanation {
    font-size: 16px;
    padding: 12px;
  }
  .feature-explanation h3 {
    font-size: 17px;
  }
  .feature-explanation li {
    font-size: 15px;
  }
  .selection-btn {
    min-width: 100px;
    font-size: 16px;
    padding: 10px 15px;
  }
  .start-game-btn {
    padding: 10px 30px;
    font-size: 15px;
  }
  .nav-btn {
    min-width: 100px;
    font-size: 14px;
    padding: 8px 15px;
  }
  .skip-guide-btn {
    top: 15px;
    right: 15px;
    padding: 6px 12px;
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  .selection-btn {
    min-width: 80px;
    font-size: 15px;
    padding: 10px 10px;
  }
  .selection-header {
    font-size: 22px;
  }
  .selection-subheader {
    font-size: 15px;
  }
  .nav-btn {
    min-width: 80px;
    font-size: 13px;
    padding: 8px 10px;
  }
}