<template>
  <view class="admin-maintain-config">
    <view class="page-header border-shadow">
      <text class="page-title">开发配置 - 配置分类</text>
      <view class="btn-primary"><text class="btn-txt">+ 添加配置</text></view>
    </view>
    
    <view class="table-container border-shadow">
      <view class="table-header">
        <text class="th col-id">ID</text>
        <text class="th col-name">标题</text>
        <text class="th col-key">分类Key</text>
        <text class="th col-type">类型</text>
        <text class="th col-status">状态</text>
        <text class="th col-op">操作</text>
      </view>
      <view class="table-body">
        <view class="table-row" v-for="item in 5" :key="item">
          <text class="td col-id">{{ item }}</text>
          <text class="td col-name">基础配置 {{ item }}</text>
          <text class="td col-key">basic_conf_{{ item }}</text>
          <text class="td col-type">系统配置</text>
          <view class="td col-status"><text class="status-tag success">显</text></view>
          <view class="td col-op">
            <text class="btn-link">查看</text>
            <text class="btn-link">编辑</text>
          </view>
        </view>
      </view>
    </view>
  </view>
</template>

<style scoped lang="scss">
.admin-maintain-config { padding: 20px; }
.border-shadow { background-color: #fff; border-radius: 4px; box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.05); }
.page-header { padding: 20px 24px; margin-bottom: 20px; display: flex; flex-direction: row; justify-content: space-between; align-items: center; }
.page-title { font-size: 16px; font-weight: 600; color: #303133; }
.btn-primary { padding: 8px 16px; background-color: #1890ff; border-radius: 4px; }
.btn-txt { color: #fff; font-size: 14px; }

.table-header { display: flex; flex-direction: row; background-color: #f8f9fb; border-bottom: 1px solid #ebeef5; }
.th { padding: 12px 10px; font-size: 14px; color: #909399; text-align: center; font-weight: 500; }
.table-row { display: flex; flex-direction: row; border-bottom: 1px solid #ebeef5; align-items: center; }
.td { padding: 15px 10px; font-size: 13px; color: #606266; text-align: center; }

.col-id { width: 80px; }
.col-name { flex: 1; text-align: left; justify-content: flex-start; }
.col-key { width: 150px; }
.col-type { width: 120px; }
.col-status { width: 80px; }
.col-op { width: 150px; }

.status-tag { padding: 2px 6px; border-radius: 3px; font-size: 11px; }
.success { background-color: #f0f9eb; color: #67c23a; border: 1px solid #e1f3d8; }
.btn-link { color: #1890ff; margin: 0 8px; font-size: 13px; cursor: pointer; }
</style>
