/* ========================================
   学校团委 · 机构设置补充样式（与 org.css 统一）
   ======================================== */

/* 部门首页轮播 */
.yl-banner-carousel {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 24px;
  aspect-ratio: 21 / 7;
  min-height: 180px;
  border: 1px solid #eee5e2;
}

.yl-banner-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.6s;
  background-size: cover;
  background-position: center;
}

.yl-banner-slide.active {
  opacity: 1;
}

.yl-banner-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(107, 20, 20, 0.55) 0%, transparent 60%);
}

.yl-banner-text {
  position: absolute;
  left: 32px;
  bottom: 28px;
  z-index: 1;
  color: #fff;
}

.yl-banner-text h2 {
  font-family: var(--font-serif);
  font-size: 26px;
  margin-bottom: 6px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.yl-banner-text p {
  font-size: 14px;
  opacity: 0.9;
}

.yl-banner-dots {
  position: absolute;
  right: 20px;
  bottom: 20px;
  z-index: 2;
  display: flex;
  gap: 8px;
}

.yl-banner-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid #fff;
  background: transparent;
  cursor: pointer;
  padding: 0;
}

.yl-banner-dot.active {
  background: var(--color-gold);
  border-color: var(--color-gold);
}

/* 组织架构图 */
.yl-org-chart {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  margin-bottom: 32px;
}

.yl-org-level {
  width: 100%;
  max-width: 480px;
  text-align: center;
  padding: 16px 20px;
  background: #fff;
  border: 1px solid #eee5e2;
  border-top: 3px solid var(--color-primary);
  border-radius: 4px;
  margin-bottom: 0;
  position: relative;
}

.yl-org-level::after {
  content: "";
  display: block;
  width: 2px;
  height: 20px;
  background: #eee5e2;
  margin: 0 auto;
}

.yl-org-level:last-child::after {
  display: none;
}

.yl-org-level strong {
  display: block;
  font-size: 13px;
  color: var(--color-primary);
  margin-bottom: 4px;
}

.yl-org-level span {
  font-size: 14px;
  color: #333;
}

/* 通知公告 · 红头文件 */
.yl-notice-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.yl-notice-card {
  background: #fff;
  border: 1px solid #eee5e2;
  border-radius: 4px;
  overflow: hidden;
  transition: box-shadow 0.2s;
}

.yl-notice-card:hover {
  box-shadow: 0 4px 16px rgba(140, 28, 28, 0.06);
}

.yl-notice-card.pinned {
  border-color: rgba(140, 28, 28, 0.35);
}

.yl-notice-pin {
  display: inline-block;
  padding: 2px 8px;
  font-size: 11px;
  background: var(--color-primary);
  color: #fff;
  border-radius: 2px;
  margin-right: 8px;
}

.yl-red-header {
  padding: 24px 28px;
  text-align: center;
  border-bottom: 2px solid #c41e3a;
  background: #fffafa;
}

.yl-red-header .yl-red-title {
  font-family: var(--font-serif);
  font-size: 18px;
  color: #c41e3a;
  font-weight: bold;
  letter-spacing: 2px;
  margin-bottom: 12px;
}

.yl-red-header .yl-red-docno {
  font-size: 13px;
  color: #c41e3a;
  margin-bottom: 8px;
}

.yl-red-header .yl-red-subject {
  font-size: 16px;
  color: #333;
  font-weight: bold;
}

.yl-notice-body {
  padding: 20px 28px;
  font-size: 14px;
  line-height: 1.85;
  color: #555;
}

.yl-notice-footer {
  padding: 12px 28px;
  border-top: 1px dashed #eee;
  font-size: 12px;
  color: #bbb;
  display: flex;
  justify-content: space-between;
}

.yl-notice-simple {
  padding: 18px 20px;
}

.yl-notice-simple h4 {
  font-size: 15px;
  color: #333;
  margin-bottom: 8px;
  font-weight: normal;
}

/* 实践育人 · 学生组织矩阵 */
.yl-org-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.yl-org-grid .po-timeline-card {
  transition: transform 0.25s, box-shadow 0.25s;
}

.yl-org-grid .po-timeline-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(140, 28, 28, 0.08);
}

.yl-org-type {
  display: inline-block;
  padding: 2px 8px;
  font-size: 11px;
  background: rgba(140, 28, 28, 0.08);
  color: var(--color-primary);
  border-radius: 2px;
  margin-bottom: 8px;
}

.yl-org-members {
  font-size: 12px;
  color: #999;
  margin-top: 8px;
}

@media (max-width: 992px) {
  .yl-org-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .yl-org-grid {
    grid-template-columns: 1fr;
  }

  .yl-banner-text h2 {
    font-size: 20px;
  }
}

/* 列表 · 分页 */
.news-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid #eee;
}

.page-btn {
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border: 1px solid #ddd;
  background: #fff;
  border-radius: 3px;
  cursor: pointer;
  font-size: 13px;
  color: #666;
  transition: all 0.2s;
}

.page-btn:hover:not(:disabled),
.page-btn.active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}

.page-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.page-info {
  font-size: 13px;
  color: #999;
  margin: 0 8px;
}
