/* ==========================================================================
   游戏阶段样式 (stage-game.css)
   ========================================================================== */
.game-guidance {
  background: rgba(255, 255, 255, 0.6);
  border-radius: 10px;
  padding: 15px;
  margin-bottom: 20px;
  text-align: left;
  font-size: 15px;
  line-height: 1.6;
  color: #2c3e50;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}
.game-guidance p {
  margin-bottom: 8px;
}
.game-guidance p:last-child {
  margin-bottom: 0;
}

/* 卡牌池 */
.cards-pool {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 80px;
  padding: 10px;
  background: #f8f9fa;
  border-radius: 8px;
  border: 2px dashed #dee2e6;
  justify-content: flex-start;
}

/* 单张卡牌 - 默认白色文字 + 加粗放大 */
.card {
  color: #fff;
  padding: 8px 12px;
  border-radius: 6px;
  cursor: move;
  transition: transform 0.2s, box-shadow 0.2s;
  font-size: 16px;
  font-weight: 700;
  user-select: none;
  width: 90px;
  height: 55px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  flex-shrink: 0;
  position: relative;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
  touch-action: none;
}
/* 行动力（行动、决断、挑战）和驱动力（成就、竞争、信念）使用偏黑文字 */
.card.action-card,
.card.drive-card {
  color: #2d3436;
}
.card:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}
.card.dragging {
  opacity: 0.5;
  box-shadow: 0 0 10px rgba(0,0,0,0.5);
}

/* 四个放置区 */
.drop-areas {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 15px;
}
.drop-area {
  background: #ecf0f1;
  border: 3px dashed #bdc3c7;
  border-radius: 10px;
  padding: 15px;
  min-height: 80px;
  transition: all 0.3s;
}
.drop-area.drag-over {
  background: #d5dbdb;
  border-color: #3498db;
  transform: scale(1.02);
}
.drop-area h3 {
  margin-bottom: 12px;
  color: #2c3e50;
  text-align: center;
  font-size: 1.1rem;
}
.area-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-height: 40px;
}

/* 放置区计数 */
.area-count {
  display: inline-block;
  background: #3498db;
  color: white;
  font-size: 14px;
  width: 24px;
  height: 24px;
  line-height: 24px;
  border-radius: 50%;
  margin-left: 8px;
  vertical-align: middle;
  text-align: center;
}
.area-count.warning {
  background: transparent;
  color: black;
  border: 2px solid red;
  line-height: 20px;
  font-weight: bold;
}

/* 右侧悬浮 / 隐藏策略 */
.cards-section.sticky {
  position: fixed;
  top: 20px;
  right: 20px;
  width: 300px;
  max-height: 80vh;
  overflow-y: auto;
  z-index: 1000;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}
.cards-section.sticky .cards-pool {
  max-height: 60vh;
  overflow-y: auto;
}
.main-content.shifted {
  margin-right: 340px;
}
.cards-section.hidden {
  display: none;
}
.main-content.full-width {
  margin-right: 0;
}

/* 卡牌提示框 */
.card-tooltip {
  position: fixed;
  z-index: 1001;
  background: rgba(0, 0, 0, 0.9);
  color: white;
  padding: 12px;
  border-radius: 8px;
  max-width: 280px;
  font-size: 14px;
  line-height: 1.5;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(2px);
}
.card-tooltip.visible {
  opacity: 1;
  pointer-events: auto;
}
.card-tooltip h4 {
  margin: 0 0 8px 0;
  font-size: 16px;
  color: #3498db;
}
.card-tooltip ul {
  padding-left: 18px;
  margin: 8px 0;
}
.card-tooltip li {
  margin-bottom: 6px;
  font-size: 14px;
}

.tooltip-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: transparent;
  z-index: 1000;
  display: none;
}
.tooltip-backdrop.active {
  display: block;
}

/* 确认区域 */
.confirmation-section {
  max-width: 600px;
  margin: 30px auto;
  text-align: center;
  padding: 40px 20px;
  background: white;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  animation: fadeInUp 0.5s ease-out;
}
.confirmation-section h2 {
  font-size: 22px;
  color: #2c3e50;
  margin-bottom: 15px;
  line-height: 1.4;
}
.confirmation-hint {
  font-size: 14px;
  color: #7f8c8d;
  margin-bottom: 25px;
}
.confirm-btn {
  padding: 12px 40px;
  background: #27ae60;
  color: white;
  border: none;
  border-radius: 30px;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 4px 10px rgba(39, 174, 96, 0.3);
}
.confirm-btn:hover {
  background: #2ecc71;
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(39, 174, 96, 0.4);
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
  .cards-section,
  .areas-section {
    padding: 12px;
    margin-bottom: 12px;
  }
  .cards-pool {
    gap: 6px;
    padding: 10px;
  }
  .card {
    width: 85px;
    height: 50px;
    font-size: 15px;
    font-weight: 700;
    padding: 6px 10px;
  }
  .drop-areas {
    gap: 12px;
    margin-top: 12px;
  }
  .drop-area {
    padding: 12px;
    min-height: 70px;
  }
  .drop-area h3 {
    font-size: 1rem;
    margin-bottom: 10px;
  }
  .area-cards {
    gap: 5px;
  }
  .cards-section.sticky {
    position: relative;
    top: auto;
    right: auto;
    width: 100%;
    max-height: none;
    box-shadow: none;
    margin-bottom: 15px;
  }
  .cards-section.sticky .cards-pool {
    max-height: none;
  }
  .main-content.shifted {
    margin-right: 0;
  }
}

@media (max-width: 480px) {
  .card {
    width: 75px;
    height: 45px;
    font-size: 14px;
    font-weight: 700;
  }
  .card-tooltip {
    max-width: 250px;
    font-size: 13px;
    padding: 10px;
  }
  .card-tooltip h4 {
    font-size: 15px;
  }
  .card-tooltip li {
    font-size: 13px;
  }
}

/* ==========================================================================
   反馈按钮和弹窗样式
   ========================================================================== */

/* 反馈按钮 - 与 reset-btn 保持完全一致 */
.feedback-btn {
  display: block;
  margin: 0;  /* 移除额外的 margin，由父容器 gap 控制间距 */
  padding: 12px 30px;
  background: #f39c12;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}
.feedback-btn:hover {
  background: #e67e22;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(243, 156, 18, 0.3);
}

/* 反馈弹窗遮罩层 */
.feedback-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  backdrop-filter: blur(3px);
}

/* 反馈弹窗 */
.feedback-modal {
  background: white;
  border-radius: 12px;
  width: 90%;
  max-width: 480px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  animation: feedbackModalSlideIn 0.3s ease;
}

@keyframes feedbackModalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* 弹窗头部 */
.feedback-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid #e8e8e8;
}
.feedback-modal-header h3 {
  margin: 0;
  font-size: 18px;
  color: #2c3e50;
}
.feedback-modal-close {
  background: none;
  border: none;
  font-size: 24px;
  color: #999;
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s;
}
.feedback-modal-close:hover {
  background: #f5f5f5;
  color: #666;
}

/* 弹窗内容区 */
.feedback-modal-body {
  padding: 20px;
}
.feedback-modal-desc {
  margin: 0 0 12px 0;
  font-size: 14px;
  color: #666;
}
.feedback-modal-input {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 14px;
  resize: vertical;
  box-sizing: border-box;
  font-family: inherit;
  line-height: 1.5;
}
.feedback-modal-input:focus {
  outline: none;
  border-color: #3498db;
  box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}
.feedback-modal-contact {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 14px;
  margin-top: 12px;
  box-sizing: border-box;
}
.feedback-modal-contact:focus {
  outline: none;
  border-color: #3498db;
  box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

/* 弹窗底部 */
.feedback-modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 16px 20px;
  border-top: 1px solid #e8e8e8;
}
.feedback-modal-btn {
  padding: 10px 20px;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
}
.feedback-modal-btn-cancel {
  background: #f5f5f5;
  color: #666;
}
.feedback-modal-btn-cancel:hover {
  background: #e8e8e8;
}
.feedback-modal-btn-submit {
  background: #3498db;
  color: white;
}
.feedback-modal-btn-submit:hover {
  background: #2980b9;
}
.feedback-modal-btn-submit:disabled {
  background: #bdc3c7;
  cursor: not-allowed;
}

/* 移动端适配 */
@media (max-width: 768px) {
  .feedback-btn {
    margin: 0;  /* 移动端也统一由父容器控制间距 */
  }
  .feedback-modal {
    width: 95%;
    max-width: none;
    margin: 20px;
  }
  .feedback-modal-footer {
    flex-direction: column;
  }
  .feedback-modal-btn {
    width: 100%;
  }
}