* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  background: #f5f6f8;
  color: #1a1a1a;
  font-size: 15px;
  line-height: 1.5;
  padding-bottom: 40px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #07c160;
  color: #fff;
  padding: 12px 16px;
  position: sticky;
  top: 0;
  z-index: 10;
}
.topbar-title { font-size: 16px; font-weight: 600; }
.topbar-user { font-size: 12px; opacity: .9; max-width: 45%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.view { padding: 12px; }
.hidden { display: none !important; }

button {
  border: none;
  border-radius: 6px;
  padding: 8px 14px;
  font-size: 14px;
  background: #e8e8e8;
  color: #333;
  cursor: pointer;
}
button.primary { background: #07c160; color: #fff; }
button:active { opacity: .8; }

input, textarea, select {
  width: 100%;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 8px 10px;
  font-size: 14px;
  font-family: inherit;
  background: #fff;
}

.create-box, .publish-box {
  background: #fff;
  border-radius: 10px;
  padding: 14px;
  margin-bottom: 14px;
}
.create-box { display: flex; gap: 8px; }
.create-box input { flex: 1; }

.publish-title { font-weight: 600; margin-bottom: 10px; }
.publish-box textarea { margin-bottom: 10px; resize: vertical; }
.row { display: flex; gap: 10px; margin-bottom: 10px; }
.row label { flex: 1; font-size: 13px; color: #666; }
.row label select { margin-top: 4px; }
#recipientBox { margin-bottom: 10px; }
.hint { font-size: 12px; color: #999; margin-top: 4px; }
#publishBtn { width: 100%; margin-top: 6px; }

.back-btn { margin-bottom: 12px; background: transparent; color: #07c160; padding-left: 0; }

.list { display: flex; flex-direction: column; gap: 10px; }
.card {
  background: #fff;
  border-radius: 10px;
  padding: 12px 14px;
}
.card-title { font-weight: 600; margin-bottom: 6px; }
.card-title a { color: #07c160; text-decoration: none; }
.card-meta { font-size: 12px; color: #999; margin-bottom: 6px; }
.card-body { font-size: 14px; word-break: break-all; }
.badge {
  display: inline-block;
  font-size: 11px;
  padding: 1px 6px;
  border-radius: 4px;
  background: #f0f0f0;
  color: #666;
  margin-left: 6px;
}
.badge.link { background: #e8f5ee; color: #07c160; }
.badge.specified { background: #fff3e0; color: #e69100; }

.reply-box { display: flex; gap: 8px; margin-top: 10px; }
.reply-box input { flex: 1; }

.empty { text-align: center; color: #999; padding: 40px 0; font-size: 14px; }

.toast {
  position: fixed;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,.75);
  color: #fff;
  padding: 10px 18px;
  border-radius: 6px;
  font-size: 14px;
  z-index: 100;
}
