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

body {
  font-family: 'Microsoft YaHei', '微软雅黑', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  background: linear-gradient(160deg, #f4f6fb 0%, #e8edf5 100%);
  min-height: 100vh;
  color: #1a1a2e;
}

.page { max-width: 720px; margin: 0 auto; padding: 32px 20px 48px; }

.site-nav {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  font-size: 14px; margin-bottom: 24px;
}
.site-nav a { color: #4f5bd5; font-weight: 600; text-decoration: none; }
.site-nav a:hover { text-decoration: underline; }
.site-nav .crumb { color: #888; }

h1 { font-size: 26px; margin-bottom: 8px; }
.lead { color: #5a6278; font-size: 14px; line-height: 1.6; margin-bottom: 24px; }

.card {
  background: #fff; border-radius: 14px; padding: 20px;
  box-shadow: 0 2px 14px rgba(0,0,0,0.06); margin-bottom: 20px;
}
.card-head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 14px; flex-wrap: wrap; gap: 8px;
}
.card-head h2 { font-size: 16px; }

.btn {
  padding: 8px 16px; border: none; border-radius: 8px;
  font-size: 13px; font-weight: 600; cursor: pointer; font-family: inherit;
}
.btn-primary { background: #4f5bd5; color: #fff; }
.btn-ghost { background: #fff; border: 1px solid #dde3ef; color: #555; }
.btn-sm { padding: 6px 10px; }
.danger { color: #e74c3c; }
.btn-danger { color: #e74c3c; background: none; border: none; cursor: pointer; font-size: 18px; }

.list-item {
  display: flex; align-items: center; gap: 10px; padding: 12px 0;
  border-bottom: 1px solid #f0f2f8; font-size: 14px; cursor: pointer;
}
.list-item:last-child { border-bottom: none; }
.list-item .time { font-weight: 600; color: #444; min-width: 110px; }
.list-item .body { flex: 1; color: #333; }
.list-item .status { font-size: 12px; color: #888; }
.status-failed, .status-unscheduled { color: #d35400 !important; max-width: 190px; }
.list-item .channel-tag {
  font-size: 11px; background: #eef2ff; color: #4f5bd5;
  padding: 2px 8px; border-radius: 10px;
}

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

.channel-item {
  padding: 12px 0; border-bottom: 1px solid #f0f2f8;
  display: flex; justify-content: space-between; align-items: center; gap: 8px;
}
.channel-item:last-child { border-bottom: none; }
.channel-meta { font-size: 12px; color: #888; margin-top: 4px; word-break: break-all; }
.channel-actions { display: flex; gap: 6px; }
.channel-local { color: #888; font-size: 12px; }

.login-row, .manager-head {
  display: flex; align-items: center; gap: 8px;
}
.login-row input {
  flex: 1; min-width: 0; padding: 10px 12px; border: 2px solid #e8ecf4;
  border-radius: 8px; font-size: 14px;
}
.manager-head { justify-content: flex-end; margin: -8px 0 10px; color: #6b7280; font-size: 12px; }

.guide {
  font-size: 13px; color: #555; line-height: 1.7;
}
.guide code { background: #f0f2f8; padding: 1px 6px; border-radius: 4px; font-size: 12px; }
.guide ul { margin: 8px 0 8px 20px; }

.modal-overlay {
  display: none; position: fixed; inset: 0; z-index: 100;
  background: rgba(0,0,0,0.35); align-items: center; justify-content: center; padding: 16px;
}
.modal-overlay.show { display: flex; }
.modal {
  background: #fff; border-radius: 14px; padding: 24px; width: 100%; max-width: 440px;
  max-height: 90vh; overflow-y: auto;
}
.modal h3 { margin-bottom: 16px; font-size: 18px; }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 4px; color: #444; }
.field input, .field select, .field textarea {
  width: 100%; padding: 10px 12px; border: 2px solid #e8ecf4; border-radius: 8px;
  font-size: 14px; font-family: inherit;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: #4f5bd5;
}
.modal-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 16px; flex-wrap: wrap; }
.hint { font-size: 12px; color: #888; margin-top: 4px; }
.test-result { font-size: 12px; color: #666; margin-top: 8px; white-space: pre-wrap; }

.type-tabs { display: flex; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }
.type-tabs button { flex: 1; min-width: 80px; }
.advance-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.advance-row select { flex: 0 0 120px; }
.advance-preview { font-size: 13px; color: #4f5bd5; font-weight: 600; }
