<template>
  <div class="nonsense-container">
    <div class="nonsense-list">
      <div
        class="nonsense-item"
        v-for="item in nonsenseList"
        :key="item.id"
      >
        <div class="nonsense-meta-info">
          <span class="nonsense-time">{{ item.time }}</span>
        </div>
        <div class="nonsense-content">{{ item.content }}</div>
      </div>
    </div>
  </div>
</template>

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

/**
 * 吐槽数据列表
 * 仅站长可见/可发
 */
const nonsenseList = ref([
  {
    id: 1,
    content: '嘿嘿 嘿嘿嘿（流口水ing）',
    time: '2025-09-26 09:30'
  }
])
</script>

<style scoped>
/* 吐槽页面主容器样式 */
.nonsense-container {
  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);
  transition: box-shadow 0.3s ease;
}

/* 吐槽页面主容器悬浮效果 */
.nonsense-container:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

/* 吐槽头部样式 */
.nonsense-header {
  text-align: center;
  margin-bottom: 28px;
}

.nonsense-header h1 {
  font-size: 2.2rem;
  margin-bottom: 8px;
  color: #409eff;
  letter-spacing: 2px;
}

.nonsense-description {
  color: #888;
  font-size: 1rem;
  margin-bottom: 0;
}

/* 吐槽列表样式 */
.nonsense-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* 吐槽项样式 */
.nonsense-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, transform 0.2s ease;
}

/* 吐槽项悬浮效果 */
.nonsense-item:hover {
  box-shadow: 0 4px 16px rgba(64,158,255,0.12);
  transform: translateY(-2px);
}

/* 吐槽元信息样式 */
.nonsense-meta-info {
  font-size: 13px;
  color: #aaa;
  margin-bottom: 8px;
  text-align: right;
}

/* 吐槽内容样式 */
.nonsense-content {
  font-size: 1.08rem;
  color: #333;
  line-height: 1.8;
  word-break: break-all;
  font-style: italic;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .nonsense-container {
    padding: 14px 4px 10px 4px;
    margin: 0 8px;
  }
  
  .nonsense-header h1 {
    font-size: 1.4rem;
  }
  
  .nonsense-content {
    font-size: 0.98rem;
    line-height: 1.6;
  }
  
  .nonsense-list {
    gap: 12px;
  }
  
  .nonsense-item {
    padding: 14px 16px 10px 16px;
  }
}
</style>