<template>
  <div id="aericle-style">
    <div class="aericle-list">
      <div
        class="aericle-item"
        v-for="item in aericleList"
        :key="item.id"
      >
        <div class="aericle-meta">
          <span class="aericle-time">{{ item.time }}</span>
        </div>
        <div class="aericle-content">{{ item.content }}</div>
      </div>
    </div>
  </div>
</template>

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

// 吐槽数据（仅站长可见/可发）
const aericleList = ref([
  {
    id: 1,
    content: '今天写代码写到怀疑人生，bug像是无穷无尽的海洋……',
    time: '2025-09-26 09:30'
  },
  {
    id: 2,
    content: '前端样式调到崩溃，为什么不同浏览器都不一样！',
    time: '2025-09-26 10:12'
  },
  {
    id: 3,
    content: 'AI 说得都对，但我还是想摸鱼。',
    time: '2025-09-26 11:00'
  },
  {
    id: 4,
    content: '有时候觉得自己像个 bug 生产机。',
    time: '2025-09-26 13:14'
  }
])
</script>

<style scoped>
#aericle-style {
  background: rgba(255,255,255,0.95);
  border-radius: 12px;
  padding: 32px 20px 24px 20px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.aericle-header {
  text-align: center;
  margin-bottom: 28px;
}
.aericle-header h1 {
  font-size: 2.2rem;
  margin-bottom: 8px;
  color: #409eff;
  letter-spacing: 2px;
}
.aericle-desc {
  color: #888;
  font-size: 1rem;
  margin-bottom: 0;
}

.aericle-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.aericle-item {
  background: #f8fafd;
  border-radius: 10px;
  padding: 18px 20px 14px 20px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.03);
  position: relative;
  transition: box-shadow 0.2s;
}
.aericle-item:hover {
  box-shadow: 0 4px 16px rgba(64,158,255,0.12);
}

.aericle-meta {
  font-size: 13px;
  color: #aaa;
  margin-bottom: 8px;
  text-align: right;
}

.aericle-content {
  font-size: 1.08rem;
  color: #333;
  line-height: 1.8;
  word-break: break-all;
}

@media (max-width: 768px) {
  #aericle-style {
    padding: 14px 4px 10px 4px;
    margin: 10px 0 0 0;
  }
  .aericle-header h1 {
    font-size: 1.4rem;
  }
  .aericle-content {
    font-size: 0.98rem;
  }
}
</style>