/* ============================================================
   知音·艺学堂 — 教研板块：主题活动 (ta-)
   ============================================================ */

/* ---- 页面容器 ---- */
.ta-page { padding: 24px; max-width: 1400px; margin: 0 auto; }

/* ---- 页面头部 ---- */
.ta-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.ta-header h2 { font-size: 22px; font-weight: 700; color: #1a1a2e; margin: 0; }
.ta-header-actions { display: flex; gap: 12px; }
.ta-btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px;
  border: none; border-radius: 6px; font-size: 14px; cursor: pointer;
  transition: all 0.2s; font-family: inherit; }
.ta-btn-primary { background: #F18D24; color: #fff; }
.ta-btn-primary:hover { background: #e07a18; }
.ta-btn-outline { background: #fff; color: #555; border: 1px solid #ddd; }
.ta-btn-outline:hover { background: #f5f5f5; }
.ta-btn-sm { padding: 4px 10px; font-size: 12px; }
.ta-btn-danger { background: #fff; color: #e74c3c; border: 1px solid #e74c3c; }
.ta-btn-danger:hover { background: #fef0ef; }
.ta-btn-success { background: #27ae60; color: #fff; }
.ta-btn-success:hover { background: #219a52; }
.ta-btn-warn { background: #fff; color: #e65100; border: 1px solid #ffb74d; }
.ta-btn-warn:hover { background: #fff8e1; }
.ta-btn-xs { padding: 3px 8px; font-size: 11px; }

/* ---- 工具栏 ---- */
.ta-toolbar { display: flex; gap: 12px; margin-bottom: 20px; flex-wrap: wrap; align-items: center; }
.ta-search { flex: 1; min-width: 200px; max-width: 320px; padding: 8px 12px;
  border: 1px solid #ddd; border-radius: 6px; font-size: 14px; outline: none; }
.ta-search:focus { border-color: #F18D24; box-shadow: 0 0 0 2px rgba(241,141,36,0.15); }
.ta-filter-group { display: flex; gap: 8px; }
.ta-filter-chip { padding: 6px 14px; border: 1px solid #ddd; border-radius: 20px;
  font-size: 13px; cursor: pointer; background: #fff; color: #555;
  transition: all 0.2s; white-space: nowrap; }
.ta-filter-chip:hover { border-color: #F18D24; color: #F18D24; }
.ta-filter-chip.active { background: #F18D24; color: #fff; border-color: #F18D24; }

/* ---- 卡片网格 ---- */
.ta-card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 20px; }
.ta-card { background: #fff; border-radius: 10px; box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  overflow: hidden; transition: box-shadow 0.2s; cursor: default; }
.ta-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.1); }

/* 卡片头部（带渐变色的装饰条） */
.ta-card-header { padding: 16px 20px; display: flex; align-items: flex-start; justify-content: space-between;
  border-bottom: 1px solid #f0f0f0; position: relative; overflow: hidden; }
.ta-card-header::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; }
.ta-card-header.status-筹备中::before { background: #90caf9; }
.ta-card-header.status-报名中::before { background: #66bb6a; }
.ta-card-header.status-进行中::before { background: #F18D24; }
.ta-card-header.status-已结束::before { background: #bdbdbd; }
.ta-card-header.status-已取消::before { background: #ef9a9a; }
.ta-card-title { font-size: 16px; font-weight: 700; color: #1a1a2e; margin: 0;
  flex: 1; padding-right: 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* 卡片主体 */
.ta-card-body { padding: 14px 20px; }
.ta-card-info { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 10px; }
.ta-info-item { display: flex; align-items: center; gap: 4px; font-size: 13px; color: #666; }
.ta-info-item .ta-info-icon { font-size: 14px; }
.ta-card-desc { font-size: 13px; color: #888; line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* 卡片底部 */
.ta-card-footer { padding: 12px 20px; border-top: 1px solid #f5f5f5;
  display: flex; align-items: center; justify-content: space-between; }
.ta-card-actions { display: flex; gap: 6px; flex-wrap: wrap; }

/* ---- 状态标签 ---- */
.ta-badge { display: inline-block; padding: 2px 10px; border-radius: 12px; font-size: 12px; font-weight: 500; }
.ta-badge-筹备中 { background: #e3f2fd; color: #1565c0; }
.ta-badge-报名中 { background: #e8f5e9; color: #2e7d32; }
.ta-badge-进行中 { background: #fff3e0; color: #e65100; }
.ta-badge-已结束 { background: #f5f5f5; color: #757575; }
.ta-badge-已取消 { background: #ffebee; color: #c62828; }

/* ---- 空态 ---- */
.ta-empty { text-align: center; padding: 64px 16px; color: #999; }
.ta-empty-icon { font-size: 48px; display: block; margin-bottom: 12px; }
.ta-empty p { font-size: 14px; margin: 0; }

/* ---- 分页 ---- */
.ta-pagination { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 24px 0; }
.ta-pagination span { font-size: 14px; color: #666; }

/* ---- 弹窗 ---- */
.ta-modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.45);
  display: flex; align-items: center; justify-content: center; z-index: 9999; }
.ta-modal { background: #fff; border-radius: 12px; width: 760px; max-width: 95vw;
  max-height: 85vh; overflow-y: auto; box-shadow: 0 8px 32px rgba(0,0,0,0.15); }
.ta-modal-header { display: flex; align-items: center; justify-content: space-between;
  padding: 16px 24px; border-bottom: 1px solid #eee; }
.ta-modal-header h3 { margin: 0; font-size: 18px; color: #1a1a2e; }
.ta-modal-close { background: none; border: none; font-size: 22px; color: #999;
  cursor: pointer; padding: 4px 8px; border-radius: 4px; }
.ta-modal-close:hover { background: #f5f5f5; color: #333; }
.ta-modal-body { padding: 24px; }
.ta-modal-footer { display: flex; justify-content: flex-end; gap: 12px;
  padding: 16px 24px; border-top: 1px solid #eee; }

/* ---- 表单 ---- */
.ta-form-group { margin-bottom: 16px; }
.ta-form-group label { display: block; font-size: 13px; font-weight: 600; color: #444; margin-bottom: 6px; }
.ta-form-group label .ta-required { color: #e74c3c; margin-left: 2px; }
.ta-input { width: 100%; padding: 8px 12px; border: 1px solid #ddd; border-radius: 6px;
  font-size: 14px; box-sizing: border-box; outline: none; transition: border-color 0.2s; }
.ta-input:focus { border-color: #F18D24; box-shadow: 0 0 0 2px rgba(241,141,36,0.15); }
.ta-textarea { width: 100%; min-height: 80px; padding: 8px 12px; border: 1px solid #ddd;
  border-radius: 6px; font-size: 14px; resize: vertical; box-sizing: border-box;
  font-family: inherit; outline: none; transition: border-color 0.2s; }
.ta-textarea:focus { border-color: #F18D24; box-shadow: 0 0 0 2px rgba(241,141,36,0.15); }
.ta-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.ta-form-row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }

/* ---- 状态流转按钮区 ---- */
.ta-transition-bar { display: flex; gap: 8px; flex-wrap: wrap;
  margin-top: 12px; padding-top: 12px; border-top: 1px solid #eee; }
.ta-transition-bar .ta-label { font-size: 13px; font-weight: 600; color: #444; line-height: 30px; margin-right: 4px; }

/* ---- 参与人管理面板 ---- */
.ta-participant-panel { margin-top: 16px; }
.ta-participant-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.ta-participant-header h4 { margin: 0; font-size: 15px; color: #1a1a2e; }
.ta-participant-count { font-size: 13px; color: #888; }
.ta-participant-table { width: 100%; border-collapse: collapse; font-size: 13px;
  border: 1px solid #eee; border-radius: 6px; overflow: hidden; }
.ta-participant-table th { background: #fafbfc; color: #555; font-weight: 600;
  text-align: left; padding: 8px 12px; border-bottom: 1px solid #eee; }
.ta-participant-table td { padding: 8px 12px; border-bottom: 1px solid #f5f5f5; }
.ta-participant-table tr:last-child td { border-bottom: none; }
.ta-add-participant { display: flex; gap: 8px; margin-top: 10px; align-items: center; }
.ta-add-participant .ta-input { flex: 1; }
