/* ===== Game Section ===== */
.game-section {
  padding: 48px 80px;
  background: linear-gradient(180deg, #101820 0%, #00325C 100%);
}

.game-section .container {
  max-width: 1280px;
  padding: 0;
}

/* ===== 主布局 ===== */
.game-layout {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  margin-bottom: 48px;
}

/* ===== 左侧游戏面板 ===== */
.game-board {
  width: 640px;
  max-width: 100%;
  aspect-ratio: 1;
  flex-shrink: 0;
  border-radius: 20px;
  background-color: #1B2B3D;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  overflow: hidden;
}

/* 四象限：百分比定位，随面板缩放 */
.game-quadrant {
  position: absolute;
  width: 50%;
  height: 50%;
  overflow: hidden;
}

.game-quadrant.pos-tl { top: 0;    left: 0; }
.game-quadrant.pos-tr { top: 0;    left: 50%; }
.game-quadrant.pos-bl { top: 50%;  left: 0; }
.game-quadrant.pos-br { top: 50%;  left: 50%; }

.game-quadrant-mask {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1;
  transition: background 0.3s;
}

.game-quadrant-content {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: #fff;
  text-align: center;
  padding: 16px;
}

.game-quadrant-icon {
  display: block;
  object-fit: contain;
  width: 80px;
  height: 80px;
}

.game-quadrant-name {
  font-size: clamp(14px, 2.5vw, 21px);
  line-height: 1.4;
  font-weight: 500;
  color: #fff;
}

.game-quadrant-btn {
  border: none;
  border-radius: 26px;
  width: clamp(120px, 25vw, 171px);
  height: 42px;
  color: #fff;
  font-size: clamp(12px, 2vw, 16px);
  font-weight: 500;
  cursor: pointer;
  transition: opacity 0.3s;
}

.game-quadrant-btn:hover {
  opacity: 0.9;
}

/* 选中状态：按钮脉冲闪烁 */
@keyframes game-btn-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.5); }
  70%  { box-shadow: 0 0 0 10px rgba(255, 255, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
}

.game-quadrant.selected .game-quadrant-btn {
  animation: game-btn-pulse 1.5s ease-out infinite;
}

/* ===== 右侧答题区 ===== */
.game-side {
  flex: 1;
  min-width: 0;
  padding-top: 8px;
}

.game-side-title {
  font-size: clamp(22px, 3vw, 30px);
  line-height: 1.4;
  color: #fff;
  font-weight: 700;
  margin-bottom: 12px;
}

.game-side-desc {
  font-size: clamp(14px, 2vw, 20px);
  line-height: 1.5;
  color: rgba(255,255,255,0.85);
  margin-bottom: 20px;
}

.game-quiz {
  width: 100%;
  max-width: 560px;
  background: #12202F;
  border: 1px solid #2C435C;
  border-radius: 14px;
  padding: 20px 22px;
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.game-quiz-question {
  font-size: clamp(14px, 2vw, 18px);
  line-height: 1.5;
  color: #F2F7FC;
  font-weight: 500;
}

.game-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.game-option {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  background: #182A3D;
  border: 1px solid #3D5672;
  border-radius: 8px;
  padding: 0 14px;
  cursor: pointer;
  transition: all 0.2s;
}

.game-option:hover,
.game-option.active {
  background: #245082;
  border-color: #5A7B9D;
}

.game-option-key {
  font-size: 13px;
  font-weight: 700;
  color: #8FB4D9;
  flex-shrink: 0;
}

.game-option-text {
  font-size: clamp(12px, 1.8vw, 13px);
  color: #DCE9F7;
  line-height: 1.4;
}

.game-confirm-btn {
  width: 100%;
  height: 44px;
  border: none;
  border-radius: 8px;
  background: #0067B9;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.3s;
}

.game-confirm-btn:hover {
  background: #0052A3;
}

/* ===== 填空题 ===== */
.game-fill-input {
  display: inline-block;
  width: 60px;
  height: 28px;
  border: 1px solid #3D5672;
  border-radius: 4px;
  background: #182A3D;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  outline: none;
  vertical-align: baseline;
  transition: border-color 0.2s;
}

.game-fill-input:focus {
  border-color: #5A9FD4;
  box-shadow: 0 0 0 2px rgba(90, 159, 212, 0.3);
}

.game-error {
  color: #E27E7E;
  margin-top: 16px;
  font-size: 16px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
}

.game-error-icon {
  width: 16px;
  height: 16px;
}

.game-all-lit {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px;
}

.game-all-lit i {
  font-size: 48px;
  color: #16A34A;
  margin-bottom: 16px;
}

.game-quiz-title {
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}

.game-all-lit p {
  font-size: 18px;
  font-weight: 600;
  color: #fff;
}

/* ===== 解锁进度 ===== */
.game-progress {
  background: #fff;
  border-radius: 16px;
  padding: 32px;
}

.game-progress-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.game-progress-title {
  font-size: 18px;
  font-weight: 600;
  color: #101820;
  display: flex;
  align-items: center;
  gap: 8px;
}

.game-progress-title i {
  color: #0067B9;
}

.game-progress-count {
  font-size: 14px;
  color: #0067B9;
  font-weight: 500;
}

.game-progress-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.game-progress-card {
  background: #f2f4f7;
  border-radius: 12px;
  padding: 20px;
  text-align: center;
}

.game-progress-card.unlocked {
  background: #e6f4ea;
}

.game-progress-name {
  font-size: 14px;
  color: #101820;
  margin-bottom: 12px;
  font-weight: 500;
}

.game-progress-status {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  color: #999;
  background: #e0e0e0;
  padding: 4px 10px;
  border-radius: 12px;
}

.game-progress-card.unlocked .game-progress-status {
  color: #16A34A;
  background: #d4edda;
}

/* ===== 响应式 ===== */

/* 平板横屏 / 小桌面 */
@media (max-width: 1200px) {
  .game-section {
    padding: 48px 40px;
  }
}

/* 平板竖屏 */
@media (max-width: 992px) {
  .game-section {
    padding: 40px 24px;
  }

  .game-layout {
    flex-direction: column;
    align-items: center;
    gap: 32px;
  }

  .game-board {
    width: 100%;
    max-width: 560px;
  }

  .game-side {
    width: 100%;
    max-width: 560px;
  }

  .game-quiz {
    max-width: 100%;
  }

  .game-progress-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* 手机 */
@media (max-width: 576px) {
  .game-section {
    padding: 32px 16px;
  }

  .game-layout {
    gap: 24px;
    margin-bottom: 32px;
  }

  .game-board {
    border-radius: 14px;
  }

  .game-quadrant-content {
    gap: 8px;
    padding: 12px;
  }

  .game-quadrant-icon {
    width: 48px;
    height: 48px;
  }

  .game-quadrant-btn {
    height: 36px;
    border-radius: 20px;
  }

  .game-quiz {
    padding: 16px;
    border-radius: 10px;
  }

  .game-option {
    min-height: 36px;
    padding: 0 10px;
  }

  .game-confirm-btn {
    height: 40px;
    font-size: 14px;
  }

  .game-progress {
    padding: 20px 16px;
    border-radius: 12px;
  }

  .game-progress-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 16px;
  }

  .game-progress-cards {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .game-progress-card {
    padding: 14px 10px;
  }

  .game-progress-name {
    font-size: 13px;
    margin-bottom: 8px;
  }
}

/* 小屏手机 */
@media (max-width: 375px) {
  .game-quadrant-name {
    font-size: 13px;
  }

  .game-progress-cards {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
}
