/* ============================================================
   时光轴（后台管理 + 前台页面）
   ============================================================ */
/* —— 后台：页面开关条 —— */
.tl-switch-box {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
  border: 1px solid var(--border, #e5e7eb);
  background: var(--surface-1, #f8fafc);
  border-radius: var(--radius-card, 10px);
  padding: 12px 16px; margin: 14px 0;
}
.tl-state-on  { color: #16a34a; font-weight: 700; }
.tl-state-off { color: #dc2626; font-weight: 700; }

/* —— 后台：事件表单网格（新增/编辑共用） —— */
.tl-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 13px 16px;
  margin-top: 6px;
}
.tl-field { display: flex; flex-direction: column; gap: 6px; font-size: 13.5px; }
.tl-field > span { font-weight: 600; }
.tl-field i { color: var(--danger, #dc2626); font-style: normal; }
.tl-field-wide { grid-column: 1 / -1; }
.tl-field-check { flex-direction: row; align-items: center; justify-content: flex-end; }
.tl-field-submit { align-items: flex-end; }
.tl-field input, .tl-field select, .tl-field textarea { width: 100%; }
.tl-preview-cell { max-width: 230px; color: var(--muted, #6b7280); font-size: 12.5px; }
.tl-cat-tag {
  display: inline-block; font-size: 11.5px; font-weight: 600;
  background: var(--primary-soft, #e0e7ff); color: var(--primary-dark, #4338ca);
  padding: 2px 9px; border-radius: 10px;
}

/* —— 前台：页面骨架 —— */
.tl-page { max-width: 1000px; margin: 0 auto; padding: 10px 16px 40px; }
.tl-offline-banner {
  margin: 10px 0; padding: 10px 14px;
  border: 1px solid #f59e0b; background: #fffbeb; color: #92400e;
  border-radius: 8px; font-size: 13px;
}
.tl-hero { text-align: center; padding: 22px 0 6px; }
.tl-hero-icon { font-size: 46px; }
.tl-hero-title { font-size: 30px; margin: 6px 0; }
.tl-hero-sub { color: var(--muted, #6b7280); }
.tl-empty { text-align: center; padding: 50px 0; color: var(--muted, #6b7280); }
.tl-empty-icon { font-size: 40px; }
.tl-back { text-align: center; margin-top: 24px; }

.tl-closed { text-align: center; padding-top: 60px; }
.tl-closed-icon { font-size: 52px; }
.tl-closed-title { font-size: 24px; margin: 14px 0 8px; }
.tl-closed-desc { color: var(--muted, #6b7280); margin-bottom: 20px; }

/* —— 前台：竖向中轴 —— */
.tl {
  position: relative;
  max-width: 960px;
  margin: 14px auto 0;
  padding: 8px 0 26px;
}
.tl::before {
  content: '';
  position: absolute; top: 0; bottom: 0; left: 50%;
  width: 3px; transform: translateX(-50%);
  background: linear-gradient(var(--primary-soft, #e0e7ff), var(--primary, #4f46e5));
  border-radius: 3px;
}
.tl-year { position: relative; text-align: center; margin: 20px 0 24px; }
.tl-year-pill {
  display: inline-block;
  background: var(--primary, #4f46e5); color: #fff;
  font-weight: 700; font-size: 14px;
  padding: 5px 20px; border-radius: 20px;
  box-shadow: var(--shadow-xs, 0 1px 2px rgba(0,0,0,.08));
}

/* 左右两类条目（桌面；PHP 渲染类名为 tl-left / tl-right） */
.tl-item { position: relative; width: 50%; margin-bottom: 26px; }
.tl-item.tl-left  { left: 0; padding-right: 44px; text-align: right; }
.tl-item.tl-right { left: 50%; padding-left: 44px; text-align: left; }
.tl-dot {
  position: absolute; top: 5px; z-index: 1;
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--card, #fff);
  border: 3px solid var(--primary, #4f46e5);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  box-shadow: var(--shadow-xs, 0 1px 2px rgba(0,0,0,.08));
}
.tl-dot img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.tl-item.tl-left  .tl-dot { right: -21px; }
.tl-item.tl-right .tl-dot { left: -21px; }

/* 事件卡片 */
.tl-card {
  display: inline-block; text-align: left;
  width: calc(100% - 8px);
  background: var(--card, #fff);
  border: 1px solid var(--border, #e5e7eb);
  border-radius: var(--radius-card, 10px);
  padding: 14px 17px;
  box-shadow: var(--shadow-xs, 0 1px 2px rgba(0,0,0,.08));
  transition: transform .15s ease, box-shadow .15s ease;
}
.tl-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(15, 23, 42, .12);
}
.tl-card-date { font-size: 12.5px; font-weight: 600; color: var(--muted, #6b7280); }
.tl-card-title { font-size: 16.5px; margin: 7px 0 6px; }
.tl-card-body { font-size: 14px; }
.tl-card-body > *:last-child { margin-bottom: 0; }
.tl-card-link { display: inline-block; margin-top: 9px; font-size: 13px; font-weight: 600; }

/* 窄屏：中轴移到左侧，全部条目靠右 */
@media (max-width: 860px) {
  .tl::before { left: 22px; transform: none; }
  .tl-year { text-align: left; padding-left: 56px; }
  .tl-item, .tl-item.tl-left, .tl-item.tl-right {
    width: 100%; left: 0;
    padding: 0 0 0 56px;
    text-align: left;
  }
  .tl-item .tl-dot { left: 1px; right: auto; }
}
@media (max-width: 720px) {
  .tl-form-grid { grid-template-columns: 1fr; }
  .tl-field-check { justify-content: flex-start; }
}

/* ============================================================
   关于我们·三大部门板块
   ============================================================ */
/* —— 后台：页签面板辅助 —— */
.sec-hidden { display: none !important; }

/* 结构管理表 */
.abt-struct-table input,
.abt-struct-table select { width: 100%; }
.abt-struct-table .sort-input { text-align: center; }
.abt-struct-table .ops { white-space: nowrap; }
.abt-struct-table .ops .btn-mini { margin: 1px; padding: 2px 8px; }
.btn-mini.danger { color: #dc2626; }
.btn-mini.danger:hover { background: #fee2e2; }

/* —— 前台：部门板块 —— */
.abt-dept {
  margin: 26px 0;
  border-top: 1px solid var(--border, #e5e7eb);
  padding-top: 20px;
  scroll-margin-top: 90px;
}
.abt-dept-title {
  display: flex; align-items: center; gap: 10px;
  font-size: 22px; margin: 0 0 14px;
}
.abt-dept-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; flex: 0 0 auto;
  border-radius: 12px;
  background: var(--primary-soft, #e0e7ff);
  font-size: 21px;
}
.abt-dept-body { font-size: 15px; line-height: 1.8; }
.abt-dept-body > *:last-child { margin-bottom: 0; }

/* 前台：关于我们板块页签（复用 .um-tabs；面板样式沿用 .abt-dept） */
.about-tabs { margin-top: 26px; justify-content: center; }
.about-tabs .um-tab { font-size: 15px; padding: 10px 20px; }

@media (max-width: 720px) {
  .about-tabs .um-tab { padding: 8px 14px; font-size: 14px; }
  .abt-struct-table { display: block; overflow-x: auto; white-space: nowrap; }
}
