<template>
  <view class="consult-accept-container">
    <view class="accept-card">
      <view class="accept-content">
        <text class="accept-text">患者已发起咨询申请，请及时接诊</text>
      </view>
      <view class="accept-actions">
        <button class="btn-cancel" @click="handleReject">暂不接受</button>
        <button class="btn-confirm" @click="handleAccept">接受咨询</button>
      </view>
    </view>
  </view>
</template>

<script setup>

const emit = defineEmits(['accept', 'reject']);

const handleAccept = () => {
  emit('accept');
};

const handleReject = () => {
  emit('reject');
};
</script>

<style scoped lang="scss">
.consult-accept-container {
  width: 100%;
  padding: 20rpx 32rpx;
  background-color: #f5f5f5;
  box-sizing: border-box;
}

.accept-card {
  background-color: #fff;
  border-radius: 16rpx;
  padding: 32rpx;
  box-shadow: 0 2rpx 12rpx rgba(0, 0, 0, 0.08);
}

.accept-content {
  margin-bottom: 32rpx;
}

.accept-text {
  font-size: 30rpx;
  color: #333;
  line-height: 1.6;
}

.accept-actions {
  display: flex;
  gap: 24rpx;
}

.btn-cancel,
.btn-confirm {
  flex: 1;
  height: 80rpx;
  border-radius: 8rpx;
  font-size: 30rpx;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-cancel {
  background-color: #f5f5f5;
  color: #666;
}

.btn-cancel::after {
  border: none;
}

.btn-confirm {
  background-color: #1677ff;
  color: #fff;
}

.btn-confirm::after {
  border: none;
}
</style>
