/* ── 网站微博/Moment 创作台 ── */
/* mwb- 前缀，两列布局，金色 #BF8C4C 主题 */

.mwb-topbar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
}
.mwb-back-btn {
  background: none;
  border: 1px solid var(--border);
  padding: 6px 14px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
}
.mwb-back-btn:hover { background: var(--bg-hover); }
.mwb-title {
  flex: 1;
  font-size: 16px;
  font-weight: 600;
}

/* ── 两列布局 ── */
.mwb-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 16px;
  padding: 16px;
  height: calc(100vh - 60px);
  overflow: hidden;
}
.mwb-left, .mwb-right {
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow-y: auto;
}

/* ── 区块 ── */
.mwb-section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}
.mwb-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  background: var(--bg-subtle);
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  font-weight: 600;
}

/* ── 步骤状态 ── */
.mwb-steps {
  padding: 10px 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.mwb-step {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
}
.mwb-step-completed { background: #dcfce7; color: #166534; }
.mwb-step-running { background: #dbeafe; color: #1e40af; }
.mwb-step-failed { background: #fee2e2; color: #991b1b; }
.mwb-step-pending { background: var(--bg-subtle); color: var(--text-dim); }
.mwb-step-approval { background: #fff3e0; color: #e65100; border-color: #ffb300; }

/* ── 信息标签 ── */
.mwb-info {
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.mwb-info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
}
.mwb-info-label { color: var(--text-secondary); }
.mwb-info-value { font-weight: 500; }

/* ── 微博内容展示 ── */
.mwb-moment-content {
  padding: 16px;
}
.mwb-moment-card {
  background: linear-gradient(135deg, #FFFBF0 0%, #FFF8E1 100%);
  border: 1px solid #E8D5B5;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 12px;
  position: relative;
}
.mwb-moment-card::before {
  content: '"';
  position: absolute;
  top: 4px;
  left: 12px;
  font-size: 40px;
  color: #BF8C4C;
  opacity: 0.3;
  font-family: Georgia, serif;
  line-height: 1;
}
.mwb-moment-text {
  font-size: 14px;
  line-height: 1.7;
  white-space: pre-wrap;
  word-break: break-word;
  color: #333;
  padding-top: 8px;
}
.mwb-moment-empty {
  padding: 40px;
  text-align: center;
  color: var(--text-secondary);
  font-size: 14px;
}

/* ── 审核区 ── */
.mwb-gate-section { padding: 12px 14px; }
.mwb-gate-banner {
  background: #fff3e0;
  border: 2px solid #ffb300;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 16px;
}
.mwb-gate-actions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.mwb-approve-btn {
  background: #22c55e;
  color: #fff;
  border: none;
  padding: 8px 20px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
}
.mwb-approve-btn:hover { background: #16a34a; }
.mwb-reject-btn {
  background: #ffcdd2;
  color: #c62828;
  border: 1px solid #ef9a9a;
  padding: 8px 20px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
}
.mwb-reject-btn:hover { background: #ef9a9a; }
.mwb-gate-comment {
  flex: 1;
  min-width: 200px;
  padding: 8px 12px;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  font-size: 13px;
}

/* ── 运行历史 ── */
.mwb-history-list { max-height: 250px; overflow-y: auto; }
.mwb-history-item {
  padding: 8px 14px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
}
.mwb-history-item:hover { background: var(--bg-hover); }
.mwb-history-item:last-child { border-bottom: none; }
.mwb-history-row { display: flex; justify-content: space-between; align-items: center; }
.mwb-history-time { font-size: 11px; color: var(--text-dim); }
.mwb-history-status { font-size: 11px; padding: 2px 8px; border-radius: 4px; font-weight: 500; }
.mwb-history-detail { display: none; padding: 8px 0 0 0; font-size: 12px; }
.mwb-history-detail.open { display: block; }
.mwb-history-step {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 3px 0;
  font-size: 12px;
}

.mwb-loading { padding: 20px; text-align: center; color: var(--text-dim); font-size: 13px; }
.mwb-empty { padding: 20px; text-align: center; color: var(--text-dim); font-size: 13px; }
