<template>
  <div class="page-container">
    <div class="page-header">
      <span class="title">CC Simple 测试页面</span>
    </div>

    <div class="content-section">
      <h2>这是一个简单的测试页面</h2>
      <p>如果你能看到这个页面，说明路由正常工作。</p>
      <p>当前时间: {{ currentTime }}</p>

      <el-button type="primary" @click="showMessage">点击测试</el-button>
    </div>
  </div>
</template>

<script setup lang="ts">
import { ref, onMounted } from 'vue'
import { ElMessage } from 'element-plus'

const currentTime = ref('')

onMounted(() => {
  currentTime.value = new Date().toLocaleString()
})

function showMessage() {
  ElMessage.success('按钮点击成功！')
}
</script>

<style lang="scss" scoped>
.page-container {
}

.page-header {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
  padding: 15px 20px;
  background-color: var(--bg-container);
  border-radius: var(--radius-base);
  color: var(--text-primary);

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

.content-section {
  padding: 40px;
  background-color: var(--bg-container);
  border-radius: var(--radius-base);
  text-align: center;

  h2 {
    color: var(--text-primary);
    margin-bottom: 20px;
  }

  p {
    color: var(--text-regular);
    margin-bottom: 15px;
  }
}
</style>
