.host-waiting-room,
.host-game-view {
  padding: 20px;
  background-color: #f8f8f8;
  min-height: 100vh;
  box-sizing: border-box;
}

/* 等待房间部分 */
.room-info {
  display: flex;
  justify-content: space-between;
  padding: 15px;
  background-color: #fff;
  border-radius: 8px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);

  .room-code, .player-count {
    font-weight: bold;
    font-size: 16px;
  }
}

.riddle-selection {
  background-color: #fff;
  border-radius: 8px;
  padding: 15px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);

  .selection-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;

    .title {
      font-size: 18px;
      font-weight: bold;
    }

    .premium-button {
      background-color: #ffc107;
      color: #333;
      font-weight: bold;
      border-radius: 20px;
      font-size: 12px;
      padding: 0 12px;
    }
  }

  .loading {
    text-align: center;
    padding: 20px;
    color: #999;
  }

  .riddle-list {
    max-height: 300px;
  }

  .riddle-item {
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;

    &.selected {
      background-color: #e6f7ff;
      border-left: 3px solid #1890ff;
    }

    &.premium {
      background-color: #fffbeb;
      border-left: 3px solid #ffc107;
    }

    .riddle-title {
      font-size: 16px;
      flex: 1;
    }

    .difficulty {
      font-size: 12px;
      padding: 2px 6px;
      border-radius: 10px;
      margin-left: 10px;

      &.easy {
        background-color: #e6f7ff;
        color: #1890ff;
      }

      &.medium {
        background-color: #fff7e6;
        color: #fa8c16;
      }

      &.hard {
        background-color: #fff1f0;
        color: #f5222d;
      }

      &.expert {
        background-color: #f6ffed;
        color: #52c41a;
      }
    }

    .premium-icon {
      width: 16px;
      height: 16px;
      margin-left: 8px;
    }
  }
}

.start-button {
  width: 100%;
  height: 45px;
  line-height: 45px;
  background-color: #1890ff;
  color: #fff;
  font-size: 16px;
  font-weight: bold;
  border-radius: 8px;
  margin-top: 10px;

  &[disabled] {
    background-color: #ccc;
    color: #999;
  }
}

/* 高级主题购买弹窗 */
.premium-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;

  .modal-content {
    width: 85%;
    background-color: #fff;
    border-radius: 12px;
    overflow: hidden;
  }

  .modal-header {
    padding: 15px;
    background-color: #ffc107;
    
    .modal-title {
      font-size: 18px;
      font-weight: bold;
      color: #333;
      text-align: center;
      display: block;
    }
  }

  .modal-body {
    padding: 20px;

    .modal-description {
      font-size: 14px;
      color: #666;
      margin-bottom: 15px;
      display: block;
      text-align: center;
    }

    .premium-features {
      margin: 20px 0;
    }

    .feature-item {
      display: flex;
      align-items: center;
      margin-bottom: 12px;

      .feature-icon {
        width: 24px;
        height: 24px;
        margin-right: 10px;
      }

      .feature-text {
        font-size: 14px;
        color: #333;
      }
    }

    .price {
      display: block;
      text-align: center;
      font-size: 20px;
      font-weight: bold;
      color: #f5222d;
      margin-top: 15px;
    }
  }

  .modal-footer {
    display: flex;
    border-top: 1px solid #eee;

    button {
      flex: 1;
      border: none;
      padding: 12px 0;
      font-size: 16px;
    }

    .cancel-button {
      background-color: #f7f7f7;
      color: #666;
    }

    .confirm-button {
      background-color: #ffc107;
      color: #333;
      font-weight: bold;
    }
  }
}

/* 游戏进行中页面 */
.game-header {
  background-color: #fff;
  border-radius: 8px;
  padding: 15px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;

  .title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
  }

  .room-code {
    font-size: 14px;
    color: #666;
  }
}

.game-description,
.game-answer {
  background-color: #fff;
  border-radius: 8px;
  padding: 15px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);

  .label {
    display: block;
    font-weight: bold;
    margin-bottom: 8px;
    font-size: 16px;
  }

  .content {
    font-size: 15px;
    line-height: 1.5;
    color: #333;
  }
}

.game-answer {
  background-color: #fffbe6;
  border-left: 4px solid #faad14;
}

.questions-section {
  background-color: #fff;
  border-radius: 8px;
  padding: 15px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);

  .section-title {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 10px;
    display: block;
  }

  .questions-list {
    max-height: 300px;
  }

  .empty-state {
    text-align: center;
    padding: 20px;
    color: #999;
  }

  .question-item {
    border-bottom: 1px solid #eee;
    padding: 12px 0;

    &:last-child {
      border-bottom: none;
    }

    .question-header {
      display: flex;
      justify-content: space-between;
      margin-bottom: 8px;

      .player-name {
        font-weight: bold;
        font-size: 14px;
      }

      .status {
        font-size: 12px;
        padding: 2px 6px;
        border-radius: 10px;

        &.pending {
          background-color: #e6f7ff;
          color: #1890ff;
        }

        &.answered {
          background-color: #f6ffed;
          color: #52c41a;
        }

        &.rejected {
          background-color: #fff1f0;
          color: #f5222d;
        }
      }
    }

    .question-content {
      font-size: 14px;
      margin-bottom: 10px;
      color: #333;
      display: block;
    }

    .answer-actions {
      display: flex;
      align-items: center;
      margin-top: 10px;

      .input-wrapper {
        flex: 1;
        margin-right: 10px;
      }

      .answer-input {
        width: 100%;
        border: 1px solid #ddd;
        border-radius: 4px;
        padding: 6px 10px;
        font-size: 14px;
      }

      button {
        margin-left: 5px;
        font-size: 12px;
      }

      .answer-button {
        background-color: #1890ff;
        color: #fff;
      }

      .reject-button {
        background-color: #f5222d;
        color: #fff;
      }
    }

    .answer-display {
      background-color: #f9f9f9;
      padding: 8px 12px;
      border-radius: 4px;
      margin-top: 8px;

      .answer-label {
        font-weight: bold;
        font-size: 12px;
        color: #666;
        margin-right: 5px;
      }

      .answer-content {
        font-size: 14px;
      }
    }
  }
}

.clue-section {
  background-color: #fff;
  border-radius: 8px;
  padding: 15px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);

  .section-title {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 10px;
    display: block;
  }

  .input-wrapper {
    margin-bottom: 10px;
  }

  .clue-textarea {
    width: 100%;
    height: 80px;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 8px 12px;
    font-size: 14px;
    resize: none;
  }

  .submit-clue-button {
    width: 100%;
    background-color: #52c41a;
    color: #fff;
    font-size: 16px;
    border-radius: 4px;
  }
}

.reveal-answer-button {
  width: 100%;
  height: 45px;
  line-height: 45px;
  background-color: #faad14;
  color: #fff;
  font-size: 16px;
  font-weight: bold;
  border-radius: 8px;
} 