/* ========================================
   新闻资讯 · 内容页样式
   ======================================== */

.news-page-header .hero-banner {
  display: none;
}

.news-page-header .nav-item.has-dropdown > a.active {
  color: #fff;
  background: rgba(0, 0, 0, 0.15);
}

.news-page-header .nav-item.has-dropdown > a.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 3px;
  background: var(--color-gold);
  display: block;
}

/* 资讯入口 */
.news-hub-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.news-hub-card {
  display: flex;
  gap: 24px;
  padding: 28px;
  background: linear-gradient(180deg, #faf7f5 0%, #fff 100%);
  border: 1px solid #eee5e2;
  border-radius: 4px;
  transition: box-shadow 0.25s, transform 0.25s;
  color: inherit;
}

.news-hub-card:hover {
  border-color: rgba(140, 28, 28, 0.25);
  box-shadow: 0 8px 24px rgba(140, 28, 28, 0.1);
  transform: translateY(-3px);
}

.news-hub-icon {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  background: var(--color-primary);
  color: #fff;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.news-hub-card h3 {
  font-family: var(--font-serif);
  font-size: 20px;
  color: var(--color-primary);
  margin-bottom: 8px;
}

.news-hub-card p {
  font-size: 13px;
  color: var(--color-text-light);
  line-height: 1.75;
}

.news-hub-more {
  display: inline-block;
  margin-top: 12px;
  font-size: 13px;
  color: var(--color-primary);
}

/* 学院新闻 · 搜索区 */
.news-search-block {
  display: flex;
  justify-content: center;
  margin-bottom: 12px;
}

.news-search-block .news-search--large {
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 560px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 4px;
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.news-search-block .news-search--large:focus-within {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(140, 28, 28, 0.08);
}

.news-search-block .news-search-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 40px;
  color: #bbb;
}

.news-search-block .news-search-icon svg {
  width: 18px;
  height: 18px;
}

.news-search-block .news-search--large input {
  flex: 1;
  min-width: 0;
  padding: 10px 0;
  border: none;
  font-size: 14px;
  background: transparent;
  outline: none;
}

.news-search-block .news-search--large input::placeholder {
  color: #bbb;
}

.news-search-block .news-search--large button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 72px;
  height: 36px;
  margin: 3px;
  padding: 0 20px;
  border: none;
  border-radius: 3px;
  background: var(--color-primary);
  color: #fff;
  font-size: 14px;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: background 0.2s;
  flex-shrink: 0;
}

.news-search-block .news-search--large button:hover {
  background: #7a1818;
}

.news-search-block .news-search-status {
  font-size: 13px;
  color: var(--color-text-muted);
}

/* 学院新闻 · 列表视图切换 */
.news-list-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid #eee;
}

.news-list-toolbar .news-search-status {
  margin: 0;
  font-size: 13px;
  color: var(--color-text-muted);
}

.news-list-toolbar .news-layout-btns {
  display: flex;
  gap: 6px;
}

/* 学院新闻列表工具栏（信息公开等复用） */
.news-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid #eee;
}

.news-search {
  display: flex;
  align-items: center;
  gap: 0;
  flex: 1;
  max-width: 360px;
}

.news-search input {
  flex: 1;
  padding: 9px 14px;
  border: 1px solid #ddd;
  border-right: none;
  border-radius: 3px 0 0 3px;
  font-size: 13px;
  outline: none;
}

.news-search input:focus {
  border-color: var(--color-primary);
}

.news-search button {
  padding: 9px 16px;
  background: var(--color-primary);
  color: #fff;
  border: 1px solid var(--color-primary);
  border-radius: 0 3px 3px 0;
  cursor: pointer;
  font-size: 13px;
}

.news-search-status {
  font-size: 13px;
  color: var(--color-text-muted);
  margin-top: 6px;
}

.news-layout-btns {
  display: flex;
  gap: 8px;
}

.layout-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid #ddd;
  background: #fff;
  border-radius: 3px;
  cursor: pointer;
  color: #666;
  transition: all 0.2s;
}

.layout-btn svg {
  display: block;
}

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

/* 新闻列表 - 图文 */
.news-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.news-list.layout-thumb .news-item {
  display: flex;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid #eee;
  align-items: flex-start;
}

.news-list.layout-thumb .news-item-thumb {
  flex-shrink: 0;
  width: 200px;
  height: 130px;
  overflow: hidden;
  border-radius: 3px;
}

.news-list.layout-thumb .news-item-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.news-list.layout-thumb .news-item:hover .news-item-thumb img {
  transform: scale(1.04);
}

.news-list.layout-text .news-item {
  display: block;
  padding: 18px 0;
  border-bottom: 1px solid #eee;
}

.news-list.layout-text .news-item-thumb {
  display: none;
}

.news-list.layout-large {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.news-list.layout-large .news-item {
  display: block;
  border: 1px solid #eee;
  border-radius: 4px;
  overflow: hidden;
  transition: box-shadow 0.25s;
}

.news-list.layout-large .news-item:hover {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.news-list.layout-large .news-item-thumb {
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.news-list.layout-large .news-item-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-list.layout-large .news-item-body {
  padding: 16px;
}

.news-item-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
  font-size: 12px;
  color: #aaa;
}

.news-item-tag {
  padding: 2px 8px;
  background: rgba(140, 28, 28, 0.08);
  color: var(--color-primary);
  border-radius: 2px;
  font-size: 11px;
}

.news-item-title {
  font-size: 16px;
  font-weight: normal;
  line-height: 1.55;
  color: #333;
  margin-bottom: 8px;
  transition: color 0.2s;
}

.news-item:hover .news-item-title {
  color: var(--color-primary);
}

.news-item-summary {
  font-size: 13px;
  color: #999;
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  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;
}

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

/* 新闻详情 */
.article-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 40px;
  align-items: start;
  padding: 0 10vw;
}

.article-main {
  min-width: 0;
}

.article-header {
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid #eee;
}

.article-header h1 {
  font-family: var(--font-serif);
  font-size: 28px;
  line-height: 1.45;
  color: #222;
  margin-bottom: 16px;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
  color: #999;
}

.article-body {
  font-size: 15px;
  line-height: 1.9;
  color: #444;
}

.article-body p {
  margin-bottom: 16px;
}

.article-body .article-figure {
  margin: 24px 0;
  text-align: center;
}

.article-body .article-figure img {
  max-width: 100%;
  border-radius: 4px;
}

.article-body .article-figure figcaption {
  font-size: 13px;
  color: #999;
  margin-top: 8px;
}

.article-body .article-video {
  margin: 24px 0;
  aspect-ratio: 16 / 9;
  background: #111;
  border-radius: 4px;
  overflow: hidden;
}

.article-body .article-video video {
  width: 100%;
  height: 100%;
}

.article-share {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid #eee;
}

.article-share span {
  font-size: 13px;
  color: #999;
}

.share-btn {
  padding: 6px 14px;
  font-size: 12px;
  border: 1px solid #ddd;
  background: #fff;
  border-radius: 3px;
  cursor: pointer;
  transition: all 0.2s;
}

.share-btn:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.article-sidebar {
  position: sticky;
  top: 24px;
}

.related-news {
  background: var(--color-bg-pink);
  border: 1px solid #eee5e2;
  border-radius: 4px;
  padding: 20px;
}

.related-news h3 {
  font-family: var(--font-serif);
  font-size: 16px;
  color: var(--color-primary);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid #eee5e2;
}

.related-news li {
  padding: 10px 0;
  border-bottom: 1px dashed #eee;
}

.related-news li:last-child {
  border-bottom: none;
}

.related-news a {
  font-size: 13px;
  line-height: 1.55;
  color: #555;
  display: block;
}

.related-news a:hover {
  color: var(--color-primary);
}

.related-news time {
  display: block;
  font-size: 11px;
  color: #bbb;
  margin-top: 4px;
}

/* 信息公开 - 与学院新闻统一布局 */
.about-sidenav--disclosure .sidenav-tree-wrap {
  border-top: 1px solid #eee5e2;
}

.sidenav-tree-label {
  padding: 12px 18px 8px;
  font-size: 12px;
  color: #999;
  letter-spacing: 1px;
}

.sidenav-tree {
  padding-bottom: 8px;
}

.sidenav-tree .tree-group {
  border-bottom: 1px solid #eee5e2;
}

.sidenav-tree .tree-group:last-child {
  border-bottom: none;
}

.sidenav-tree .tree-parent {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 10px 18px;
  font-size: 13px;
  font-weight: bold;
  color: #555;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
}

.sidenav-tree .tree-parent:hover {
  color: var(--color-primary);
  background: rgba(140, 28, 28, 0.05);
}

.sidenav-tree .tree-parent::after {
  content: "+";
  font-size: 14px;
  color: #bbb;
}

.sidenav-tree .tree-group.open .tree-parent::after {
  content: "−";
}

.sidenav-tree .tree-children {
  display: none;
}

.sidenav-tree .tree-group.open .tree-children {
  display: block;
}

.sidenav-tree .tree-child {
  display: block;
  width: 100%;
  padding: 8px 18px 8px 28px;
  font-size: 13px;
  color: #666;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  transition: all 0.2s;
}

.sidenav-tree .tree-child:hover,
.sidenav-tree .tree-child.active {
  color: var(--color-primary);
  background: #fff;
}

.news-toolbar--disclosure {
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
}

.disclosure-filter-form {
  width: 100%;
}

.disclosure-filter-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px;
}

.disclosure-title-search {
  flex: 1;
  min-width: 220px;
  max-width: 320px;
}

.disclosure-filter-fields {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  flex: 2;
}

.disclosure-filter-fields .search-field {
  flex: 1;
  min-width: 140px;
}

.news-toolbar--disclosure .hot-tags {
  margin-bottom: 0;
}

.news-toolbar--disclosure .news-search-status {
  margin-top: 0;
}

.search-field label {
  display: block;
  font-size: 12px;
  color: #999;
  margin-bottom: 4px;
}

.search-field input,
.search-field select {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid #ddd;
  border-radius: 3px;
  font-size: 13px;
  outline: none;
  box-sizing: border-box;
}

.search-field input:focus,
.search-field select:focus {
  border-color: var(--color-primary);
}

.search-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.btn-primary {
  padding: 9px 20px;
  background: var(--color-primary);
  color: #fff;
  border: none;
  border-radius: 3px;
  cursor: pointer;
  font-size: 13px;
}

.btn-secondary {
  padding: 9px 20px;
  background: #fff;
  color: #666;
  border: 1px solid #ddd;
  border-radius: 3px;
  cursor: pointer;
  font-size: 13px;
}

.hot-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.hot-tags-label {
  font-size: 13px;
  color: #999;
}

.hot-tag {
  padding: 4px 12px;
  font-size: 12px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 20px;
  cursor: pointer;
  color: #666;
  transition: all 0.2s;
}

.hot-tag:hover, .hot-tag.active {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.doc-list.news-list .doc-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid #eee;
  color: inherit;
}

.doc-list.news-list .doc-item:hover .news-item-title {
  color: var(--color-primary);
}

.doc-list.news-list .news-item-body {
  flex: 1;
  min-width: 0;
}

.doc-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.doc-btn {
  padding: 6px 12px;
  font-size: 12px;
  border: 1px solid #ddd;
  background: #fff;
  border-radius: 3px;
  cursor: pointer;
  color: #666;
  transition: all 0.2s;
  text-decoration: none;
  white-space: nowrap;
}

.doc-btn:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.doc-btn.primary {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}

.doc-btn.primary:hover {
  color: #fff;
  opacity: 0.9;
}

/* 附件预览弹窗 */
.preview-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

.preview-modal.open {
  opacity: 1;
  visibility: visible;
}

.preview-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
}

.preview-panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 960px;
  height: 85vh;
  background: #fff;
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.preview-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: var(--color-primary);
  color: #fff;
}

.preview-header h3 {
  font-size: 15px;
  font-weight: normal;
}

.preview-close {
  width: 32px;
  height: 32px;
  border: none;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border-radius: 50%;
  cursor: pointer;
  font-size: 18px;
}

.preview-body {
  flex: 1;
  overflow: hidden;
}

.preview-body iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.preview-footer {
  padding: 12px 20px;
  border-top: 1px solid #eee;
  text-align: right;
}

@media (max-width: 992px) {
  .news-hub-grid,
  .news-list.layout-large {
    grid-template-columns: 1fr;
  }

  .article-layout {
    grid-template-columns: 1fr;
    padding: 0 16px;
  }

  .article-sidebar {
    position: static;
  }

  .disclosure-filter-row {
    flex-direction: column;
    align-items: stretch;
  }

  .disclosure-title-search {
    max-width: none;
  }

  .news-list.layout-thumb .news-item {
    flex-direction: column;
  }

  .news-list.layout-thumb .news-item-thumb {
    width: 100%;
    height: 180px;
  }

  .doc-list.news-list .doc-item {
    flex-wrap: wrap;
  }

  .doc-actions {
    width: 100%;
    justify-content: flex-end;
  }
}

@media (max-width: 640px) {
  .news-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .news-list-toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .news-list-toolbar .news-layout-btns {
    justify-content: flex-end;
  }

  .news-search {
    max-width: none;
  }

  .news-search-block .news-search--large {
    max-width: 100%;
  }

  .news-search-block .news-search--large button {
    min-width: 64px;
    padding: 0 16px;
  }

  .disclosure-filter-fields {
    flex-direction: column;
  }
}
