<template>
  <view class="about-container">
    <!-- 顶部导航栏 -->
    <view class="nav-bar" :style="{height: (statusBarHeight + 88) + 'rpx', paddingTop: statusBarHeight + 'px'}">
      <view class="back" @tap="goBack">
        <uni-icons type="left" size="20"></uni-icons>
      </view>
      <text class="title">关于我们</text>
    </view>
    <!-- 主卡片 -->
    <view class="main-card" :style="{marginTop: (statusBarHeight + 88) + 'rpx'}">
      <text class="main-title">瀚海回收</text>
      <text class="main-desc">瀚海回收致力于打造一个便捷、高效且环保的旧衣回收平台，为用户提供符合环保理念的旧衣回收解决方案，助力资源循环利用和可持续发展。</text>
      <view class="service-tags">
        <view class="tag-item">
          <image class="tag-icon" src="/static/about/free.png" mode="aspectFit"></image>
          <text class="tag-text">免费寄</text>
        </view>
        <view class="tag-item">
          <image class="tag-icon" src="/static/about/inspect.png" mode="aspectFit"></image>
          <text class="tag-text">逐件验</text>
        </view>
        <view class="tag-item">
          <image class="tag-icon" src="/static/about/fast.png" mode="aspectFit"></image>
          <text class="tag-text">秒到账</text>
        </view>
        <view class="tag-item">
          <image class="tag-icon" src="/static/about/eco.png" mode="aspectFit"></image>
          <text class="tag-text">助环保</text>
        </view>
      </view>

      <!-- 服务介绍区块 -->
      <view class="service-section">
        <view class="section-title">
          <image class="section-icon" src="/static/home/② 快递上门.png" mode="aspectFit"></image>
          <text>免费寄</text>
        </view>
        <text class="section-desc">我们为用户提供一个便捷且无负担的旧衣回收服务。用户只需在平台上提交旧衣回收申请，我们会提供免费的上门取件服务。无论您有多少衣物想要处理，都可以轻松寄出，让旧衣变资源。</text>
        <image class="section-img" src="/static/回收/回收规则.png" mode="aspectFit"></image>
      </view>
      <view class="service-section">
        <view class="section-title">
          <image class="section-icon" src="/static/home/③ 透明质检.png" mode="aspectFit"></image>
          <text>逐件验</text>
        </view>
        <text class="section-desc">我们对每一件回收的旧衣进行严格的逐件验收，确保衣物符合回收标准。我们的专业团队会仔细检查每一件衣物的状况，包括是否破损、是否有严重污染异味等。只有符合要求的旧衣才会进入后续的处理流程，以保证回收质量和效率。</text>
        <image class="section-img" src="/static/回收/回收规则.png" mode="aspectFit"></image>
      </view>
      <view class="service-section">
        <view class="section-title">
          <image class="section-icon" src="/static/home/④ 现金打款.png" mode="aspectFit"></image>
          <text>秒到账</text>
        </view>
        <text class="section-desc">我们深知用户对资金结算的及时性要求，因此建立了高效的结算系统。订单成功推单回收订单后，佣金会及时到账。无论订单有多少件，我们都承诺在最短时间内为您发放奖励，确保用户收益的及时性和稳定性。</text>
        <image class="section-img" src="/static/回收/回收规则.png" mode="aspectFit"></image>
      </view>
      <view class="service-section">
        <view class="section-title">
          <image class="section-icon" src="/static/home/碳循再生.png" mode="aspectFit"></image>
          <text>助环保</text>
        </view>
        <text class="section-desc">我们的使命是通过旧衣回收推动环保事业的发展，实现资源的循环再利用。我们始终以环保为核心理念，不断优化服务流程，提高用户体验，以实现经济效益与环保效益的双赢。加入我们，一起为环保事业贡献力量，让旧衣焕发新的价值！</text>
        <image class="section-img" src="/static/回收/回收规则.png" mode="aspectFit"></image>
      </view>

      <!-- 底部说明 -->
      <view class="about-footer">
        <view class="footer-divider"></view>
        <text class="footer-text">如有任何问题或建议，请随时与我们联系，我们将竭诚为您服务！</text>
      </view>
    </view>
  </view>
</template>

<script>
import pullRefreshMixin from '@/pages/mixins/pullRefreshMixin.js'

export default {
  mixins: [pullRefreshMixin],
  data() {
    return {
      statusBarHeight: 0
    }
  },
  onLoad() {
    this.statusBarHeight = uni.getSystemInfoSync().statusBarHeight
  },
  methods: {
    goBack() {
      uni.navigateBack();
    },
    async onRefresh() {
      // 模拟刷新数据
      await new Promise(resolve => setTimeout(resolve, 1000))
      this.stopPullRefresh()
    }
  }
}
</script>

<style scoped lang="scss">
.about-container {
  min-height: 100vh;
  background: linear-gradient(180deg, #fff3db 0%, #fffefb 30%);
  padding-bottom: 40rpx;
}
.nav-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 999;
  display: flex;
  align-items: center;
  background: #fffbe6;
  padding: 0 30rpx;
  .back {
    padding: 20rpx;
    margin-left: -20rpx;
  }
  .title {
    flex: 1;
    text-align: center;
    font-family: PingFang SC;
font-weight: 500;
font-size: 16px;
line-height: 140%;
letter-spacing: 0%;
text-align: center;
vertical-align: middle;
    font-weight: 500;
    color: #222;
  }
}
.main-card {
  background: #ffffff;
  border-radius: 36rpx;
  box-shadow: 0 8rpx 32rpx rgba(255, 156, 0, 0.08);
  margin: 32rpx 24rpx 0 24rpx;
  padding: 40rpx 32rpx 32rpx 32rpx;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}
.main-title {
  font-size: 32rpx;
  font-weight: bold;
  color: #222;
  margin-bottom: 18rpx;
}
.main-desc {
  font-size: 26rpx;
  color: #444;
  margin-bottom: 32rpx;
  line-height: 1.7;
}
.service-tags {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24rpx 24rpx;
  margin-bottom: 36rpx;
}
.tag-item {
  background: #fff8ea;
  border-radius: 24rpx;
  box-shadow: 0 2rpx 8rpx rgba(255, 156, 0, 0.06);
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  padding: 28rpx 0 18rpx 0;
  min-height: 90rpx;
  gap: 12rpx;
}
.tag-icon {
  width: 40rpx;
  height: 40rpx;
  margin: 0;
}
.tag-text {
  font-size: 26rpx;
  color: #222;
  font-weight: 500;
}
.service-section {
  margin-bottom: 36rpx;
}
.section-title {
  display: flex;
  align-items: center;
  font-size: 28rpx;
  font-weight: bold;
  color: #222;
  margin-bottom: 12rpx;
  .section-icon {
    width: 32rpx;
    height: 32rpx;
    margin-right: 12rpx;
  }
}
.section-desc {
  font-size: 24rpx;
  color: #666;
  line-height: 1.7;
  margin-bottom: 18rpx;
}
.section-img {
  width: 80%;
  margin: 0 auto;
  display: block;
  border-radius: 24rpx;
  box-shadow: 0 2rpx 8rpx rgba(255, 156, 0, 0.04);
}
.about-footer {
  margin-top: 24rpx;
  text-align: center;
}
.footer-divider {
  width: 100%;
  height: 1rpx;
  background: #f0f0f0;
  margin: 32rpx 0 18rpx 0;
}
.footer-text {
  color: #bcbcbc;
  font-size: 24rpx;
  margin-bottom: 18rpx;
}
</style> 