<template>
  <div class="customer-service-page">
    <!-- 返回箭头 -->
    <div class="back-arrow" @click="goBack">
      <el-icon><ArrowLeft /></el-icon>
    </div>
    
    <!-- 客服二维码图片 -->
    <div class="customer-service-container">
      <img src="/imgs/mainpage/kefuma.jpg" alt="客服码" class="customer-service-img">
      <div class="customer-service-text">扫码联系客服（长按识别）</div>
    </div>
  </div>
</template>

<script setup>
import { ArrowLeft } from '@element-plus/icons-vue'
import { useRouter } from 'vue-router'

const router = useRouter()

const goBack = () => {
  router.go(-1) // 返回上一页
}
</script>

<style scoped>
.customer-service-page {
  background: linear-gradient(to bottom, #72c9ffae, #f3f3f3);
  position: relative;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.back-arrow {
  position: absolute;
  top: 20px;
  left: 20px;
  font-size: 24px;
  color: #333;
  cursor: pointer;
  padding: 8px;
  background-color: rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  transition: all 0.3s;
  z-index: 10;
}

.back-arrow:hover {
  background-color: rgba(255, 255, 255, 0.9);
  transform: scale(1.1);
}

.customer-service-container {
  text-align: center;
  background-color: white;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.customer-service-img {
  width: 250px;
  height: 250px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
}

.customer-service-text {
  font-size: 16px;
  color: #666;
  margin-top: 10px;
  font-weight: 500;
  font-weight: bold;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .customer-service-img {
    width: 200px;
    height: 200px;
  }
  
  .customer-service-container {
    padding: 20px;
  }
}
</style>