/* 栏目页 / 文章详情页样式 */
.logo-link {
  display: flex;
  align-items: center;
  gap: 12px;
  color: inherit;
}

.page-breadcrumb {
  font-size: 13px;
  color: var(--text-gray);
  padding-bottom: 12px;
  border-bottom: 1px solid #eee;
  margin-bottom: 16px;
}

.page-breadcrumb a {
  color: var(--primary-blue);
}

.page-header h2 {
  font-size: 22px;
  color: var(--text-dark);
  font-weight: 700;
  margin-bottom: 18px;
  padding-left: 12px;
  border-left: 4px solid var(--accent-red);
}

.org-page-panel {
  margin-bottom: 20px;
  padding: 16px;
  background: var(--sky-blue-bg);
  border: 1px solid var(--border-blue);
}

.org-grid-page {
  grid-template-columns: repeat(3, 1fr);
}

.page-news-list {
  min-height: 200px;
}

.article-list-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.list-thumb {
  width: 80px;
  height: 54px;
  object-fit: cover;
  border: 1px solid #eee;
  flex-shrink: 0;
}

.list-thumb-video {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #333;
  color: #fff;
  font-size: 18px;
}

.list-body {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.list-body a {
  flex: 1;
  min-width: 200px;
}

.media-badge {
  display: inline-block;
  padding: 1px 6px;
  font-size: 11px;
  background: var(--sky-blue-bg);
  color: var(--primary-blue);
  border: 1px solid var(--border-blue);
  border-radius: 2px;
  flex-shrink: 0;
}

.article-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 20px;
}

.article-card {
  display: block;
  border: 1px solid #e5e5e5;
  color: inherit;
  transition: box-shadow 0.2s;
}

.article-card:hover {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  color: inherit;
}

.card-cover {
  height: 140px;
  background-size: cover;
  background-position: center;
  position: relative;
}

.card-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.25);
  color: #fff;
  font-size: 32px;
}

.card-cover .media-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(255, 255, 255, 0.9);
}

.card-body {
  padding: 12px;
}

.card-body h4 {
  font-size: 14px;
  margin-bottom: 6px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-body p {
  font-size: 12px;
  color: var(--text-gray);
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding-top: 16px;
}

.page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 32px;
  padding: 0 10px;
  border: 1px solid #ddd;
  color: var(--text-dark);
  font-size: 13px;
}

.page-btn.active,
.page-btn:hover {
  background: var(--nav-blue);
  color: #fff;
  border-color: var(--nav-blue);
}

.empty-tip,
.loading-tip {
  text-align: center;
  color: var(--text-light);
  padding: 40px 0;
}

/* 文章详情 */
.article-detail {
  padding: 8px 0 24px;
}

.article-header h1 {
  font-size: 24px;
  line-height: 1.5;
  margin-bottom: 12px;
  text-align: center;
}

.article-meta {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
  color: var(--text-light);
  padding-bottom: 16px;
  border-bottom: 1px solid #eee;
  margin-bottom: 20px;
}

.media-block {
  margin-bottom: 20px;
}

.media-block video {
  width: 100%;
  max-height: 480px;
  background: #000;
}

.media-block .cover-image {
  width: 100%;
  max-height: 420px;
  object-fit: contain;
  margin: 0 auto;
}

.media-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
}

.media-gallery figure {
  margin: 0;
}

.media-gallery img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border: 1px solid #eee;
}

.video-poster {
  width: 100%;
  max-height: 200px;
  object-fit: cover;
  margin-bottom: 8px;
}

.article-summary {
  font-size: 15px;
  color: var(--text-gray);
  line-height: 1.8;
  padding: 12px 16px;
  background: var(--light-blue);
  border-left: 3px solid var(--primary-blue);
  margin-bottom: 20px;
}

.article-content {
  font-size: 15px;
  line-height: 1.9;
  color: var(--text-dark);
}

.article-content p {
  margin-bottom: 12px;
}

.article-content img {
  max-width: 100%;
  margin: 12px auto;
}

.article-back {
  margin-top: 32px;
  padding-top: 16px;
  border-top: 1px solid #eee;
}

.article-back a {
  color: var(--primary-blue);
}

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

  .org-grid-page {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .article-grid {
    grid-template-columns: 1fr;
  }
}

/* 机构设置弹窗 */
.org-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 51, 102, 0.55);
  z-index: 1100;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.org-modal-overlay.show {
  display: flex;
}

.org-modal {
  width: 100%;
  max-width: 760px;
  max-height: 85vh;
  background: var(--white);
  border-radius: 4px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-top: 4px solid var(--accent-red);
}

.org-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: linear-gradient(180deg, var(--nav-blue) 0%, var(--primary-blue-dark) 100%);
  color: var(--white);
  flex-shrink: 0;
}

.org-modal-header h3 {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 1px;
}

.org-modal-close {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: var(--white);
  width: 32px;
  height: 32px;
  border-radius: 3px;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.org-modal-close:hover {
  background: rgba(255, 255, 255, 0.25);
}

.org-modal-body {
  padding: 20px 24px;
  overflow-y: auto;
  flex: 1;
}

.org-modal-loading {
  text-align: center;
  color: var(--text-light);
  padding: 40px 0;
}

.org-modal-content,
.org-page-content {
  font-size: 15px;
  line-height: 1.9;
  color: var(--text-dark);
}

.org-modal-content p,
.org-page-content p {
  margin-bottom: 12px;
}

.org-modal-content ul,
.org-page-content ul {
  margin: 8px 0 12px 24px;
}

.org-modal-content table,
.org-page-content table,
.org-table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0;
  font-size: 14px;
}

.org-modal-content th,
.org-modal-content td,
.org-page-content th,
.org-page-content td,
.org-table th,
.org-table td {
  border: 1px solid #ddd;
  padding: 10px 12px;
  text-align: left;
}

.org-modal-content th,
.org-page-content th,
.org-table th {
  background: var(--light-blue);
  color: var(--primary-blue);
  font-weight: 600;
}

.org-modal-content img,
.org-page-content img {
  max-width: 100%;
  margin: 12px 0;
}

@media (max-width: 600px) {
  .org-modal {
    max-height: 92vh;
  }

  .org-modal-body {
    padding: 16px;
  }
}
