<template>
  <view class="container">
    <view class="header">
      <text class="title">智能eTMF系统</text>
      <text class="subtitle">欢迎使用</text>
    </view>
    
    <view class="content">
      <view class="card">
        <text class="card-title">系统信息</text>
        <view class="info-item">
          <text class="label">框架版本:</text>
          <text class="value">Vue 3 + uni-app</text>
        </view>
        <view class="info-item">
          <text class="label">平台:</text>
          <text class="value">微信小程序</text>
        </view>
      </view>
      
      <view class="action-section">
        <button type="primary" @click="handleClick">开始使用</button>
      </view>
    </view>
  </view>
</template>

<script setup>
import { ref } from 'vue'

const handleClick = () => {
  uni.showToast({
    title: '欢迎使用智能eTMF系统',
    icon: 'success'
  })
}
</script>

<style lang="scss" scoped>
.container {
  min-height: 100vh;
  padding: 40rpx;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.header {
  text-align: center;
  padding: 60rpx 0;
  
  .title {
    display: block;
    font-size: 48rpx;
    font-weight: bold;
    color: #ffffff;
    margin-bottom: 20rpx;
  }
  
  .subtitle {
    display: block;
    font-size: 28rpx;
    color: rgba(255, 255, 255, 0.8);
  }
}

.content {
  .card {
    background: #ffffff;
    border-radius: 20rpx;
    padding: 40rpx;
    margin-bottom: 40rpx;
    box-shadow: 0 4rpx 20rpx rgba(0, 0, 0, 0.1);
    
    .card-title {
      display: block;
      font-size: 32rpx;
      font-weight: bold;
      color: #333333;
      margin-bottom: 30rpx;
    }
    
    .info-item {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 20rpx 0;
      border-bottom: 1rpx solid #f0f0f0;
      
      &:last-child {
        border-bottom: none;
      }
      
      .label {
        font-size: 28rpx;
        color: #666666;
      }
      
      .value {
        font-size: 28rpx;
        color: #333333;
        font-weight: 500;
      }
    }
  }
  
  .action-section {
    padding: 20rpx 0;
    
    button {
      width: 100%;
      height: 88rpx;
      line-height: 88rpx;
      border-radius: 44rpx;
      font-size: 32rpx;
      background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    }
  }
}
</style>
