:root {
  --primary: #07c160; /* 微信绿 */
  --bg: #f0f2f5;
  --sidebar-bg: #ffffff;
  --border: #e8e8e8;
  --text-main: #333;
  --text-sub: #666;
}

body {
  font-family: system-ui, -apple-system, sans-serif;
  margin: 0;
  background: var(--bg);
  height: 100vh;
  overflow: hidden;
}

.container {
  display: flex;
  height: 100%;
}

/* 侧边栏 */
.sidebar {
  width: 300px;
  background: var(--sidebar-bg);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
}

.sidebar-header {
  padding: 16px;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.news-list {
  flex: 1;
  overflow-y: auto;
}

.news-item {
  padding: 12px 16px;
  border-bottom: 1px solid #f5f5f5;
  cursor: pointer;
  transition: background 0.2s;
}

.news-item:hover { background: #f9f9f9; }
.news-item.active { background: #e6f7ed; border-left: 4px solid var(--primary); }
.news-item .title { font-size: 14px; color: var(--text-main); font-weight: 500; margin-bottom: 4px; }
.news-item .info { font-size: 12px; color: var(--text-sub); }

/* 主内容区 */
.main-content {
  flex: 1;
  padding: 24px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.main-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.block {
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.form-group { margin-bottom: 16px; }
.form-group label { display: block; margin-bottom: 8px; font-weight: bold; font-size: 14px; }

input, textarea, select {
  width: 100%;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 4px;
  box-sizing: border-box;
}

.form-row-group { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.img-preview {
  width: 120px;
  height: 80px;
  border: 1px dashed #ccc;
  margin-top: 8px;
  background-size: cover;
  background-position: center;
  border-radius: 4px;
}

.action-bar {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

/* 按钮 */
button { cursor: pointer; border-radius: 4px; padding: 8px 16px; border: none; transition: 0.3s; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-outline { background: #fff; border: 1px solid #ccc; }
.btn-secondary { background: #007bff; color: white; }
.btn-sm { padding: 4px 8px; font-size: 12px; }

.tag { font-size: 12px; background: #eee; padding: 2px 8px; border-radius: 10px; margin-left: 8px; }
.status-dot { width: 10px; height: 10px; border-radius: 50%; background: #ccc; display: inline-block; }
.status-dot.online { background: var(--primary); }

.log-console {
  background: #222;
  color: #0f0;
  padding: 12px;
  font-family: monospace;
  font-size: 12px;
  border-radius: 4px;
  max-height: 150px;
  overflow-y: auto;
}