/* 子页面专用样式 */

/* 主内容不足 900px 时页脚贴底，一屏展示完整页面 */
body.page-sticky-footer {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

body.page-sticky-footer .site-header,
body.page-sticky-footer .site-nav,
body.page-sticky-footer .site-footer {
  flex-shrink: 0;
}

body.page-sticky-footer .main-content {
  flex: 1 0 auto;
  width: 100%;
  box-sizing: border-box;
}

.page-banner {
  background-color: #c62828;
  background-image: var(--pattern-red);
  background-repeat: repeat;
  background-size: 120px 120px;
  color: var(--white);
  padding: 32px 40px;
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
}

.page-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.08) 0%, rgba(0, 0, 0, 0.16) 100%);
  pointer-events: none;
}

.page-banner h2 {
  position: relative;
  font-size: 24px;
  font-weight: bold;
  letter-spacing: 3px;
  margin-bottom: 8px;
}

.page-banner p {
  position: relative;
  font-size: 14px;
  opacity: 0.85;
}

/* 文档列表 */
.doc-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.doc-item {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--white);
  border: 1px solid var(--border);
  padding: 18px 24px;
  transition: all 0.25s;
  scroll-margin-top: 70px;
}

.doc-item:hover {
  border-color: var(--red-primary);
  box-shadow: 0 2px 12px rgba(224, 142, 156, 0.12);
  transform: translateX(4px);
}

.doc-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, #c7475c, #ff002f);
  color: var(--white);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: bold;
  flex-shrink: 0;
}

.doc-info {
  flex: 1;
}

.doc-info h4 {
  font-size: 15px;
  color: var(--text-dark);
  margin-bottom: 4px;
}

.doc-info p {
  font-size: 13px;
  color: var(--text-muted);
}

.doc-action {
  font-size: 13px;
  color: var(--red-primary);
  font-weight: bold;
  flex-shrink: 0;
}

.doc-loading,
.doc-empty {
  padding: 40px;
  text-align: center;
  color: var(--text-muted);
  background: var(--white);
  border: 1px solid var(--border);
}

/* 分页 */
.pagination {
  margin-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.pagination-info {
  font-size: 13px;
  color: var(--text-muted);
}

.pagination-btns {
  display: flex;
  align-items: center;
  gap: 6px;
}

.page-btn {
  min-width: 36px;
  height: 36px;
  padding: 0 12px;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--text-dark);
  font-size: 13px;
  cursor: pointer;
  border-radius: 2px;
  transition: all 0.2s;
}

.page-btn:hover:not(:disabled):not(.active) {
  border-color: var(--red-primary);
  color: var(--red-primary);
}

.page-btn.active {
  background: var(--red-primary);
  border-color: var(--red-primary);
  color: var(--white);
}

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

/* 成果简介详情页 */
.intro-detail {
  background: var(--white);
  border: 1px solid var(--border);
  padding: 28px 32px;
  line-height: 2;
  font-size: 14px;
  color: var(--text-dark);
  box-shadow: 0 1px 4px rgba(255, 93, 120, 0.08);
}

.intro-detail p {
  margin-bottom: 12px;
  text-indent: 2em;
  text-align: justify;
}

.intro-detail img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 12px auto;
}

.intro-detail table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0;
}

.intro-detail table td,
.intro-detail table th {
  border: 1px solid var(--border);
  padding: 8px 12px;
}

.video-list-section {
  margin-bottom: 0;
}

.video-list-section .section-body {
  padding: 16px;
}

.video-list-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.video-list-cards .result-empty {
  grid-column: 1 / -1;
}

.video-list-card {
  position: relative;
  display: block;
  height: 180px;
  overflow: hidden;
  border-radius: 2px;
  background: #000;
  color: inherit;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.video-list-card:hover {
  color: inherit;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}

.video-list-card-inner {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.video-list-card .featured-video-bg {
  position: absolute;
  inset: 0;
}

.video-list-card .featured-video-overlay {
  position: absolute;
  inset: 0;
}

.video-list-card:hover .featured-video-bg {
  transform: scale(1.05);
}

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

@media (max-width: 576px) {
  .video-list-cards {
    grid-template-columns: 1fr;
  }

  .video-list-card {
    height: 200px;
  }
}

/* 支撑材料卡片网格（保留兼容） */
.material-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.material-card {
  background: var(--white);
  border: 1px solid var(--border);
  padding: 24px 20px;
  text-align: center;
  transition: all 0.25s;
  scroll-margin-top: 70px;
}

.material-card:hover {
  border-color: var(--red-primary);
  box-shadow: 0 4px 16px rgba(224, 142, 156, 0.12);
  transform: translateY(-3px);
}

.material-icon {
  font-size: 32px;
  margin-bottom: 12px;
}

.material-card h4 {
  font-size: 15px;
  color: var(--red-primary);
  margin-bottom: 8px;
}

.material-card p {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* 媒体报道列表 */
.media-list-section .section-body {
  padding: 16px;
}

.media-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.media-item {
  display: flex;
  align-items: stretch;
  gap: 20px;
  background: var(--white);
  border: 1px solid var(--border);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
  padding: 16px;
  text-decoration: none;
  color: inherit;
  transition: all 0.25s;
}

.media-item:hover {
  border-color: var(--red-primary);
  box-shadow: 0 4px 16px rgba(224, 142, 156, 0.15);
  transform: translateY(-2px);
}

.media-cover {
  width: 280px;
  height: 180px;
  flex-shrink: 0;
  overflow: hidden;
  background: #f0f0f0;
}

.media-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.media-cover-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 13px;
  background: linear-gradient(135deg, #f5f5f5, #ececec);
}

.media-body {
  flex: 1;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 4px 0;
}

.media-title {
  font-size: 18px;
  font-weight: bold;
  color: var(--text-dark);
  line-height: 1.5;
  margin-bottom: 12px;
  flex-shrink: 0;
}

.media-synopsis {
  flex: 1;
  min-height: 0;
  font-size: 14px;
  color: #333;
  line-height: 1.85;
  max-height: calc(14px * 1.85 * 3);
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: break-word;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
}

.media-date {
  margin-top: auto;
  padding-top: 16px;
  flex-shrink: 0;
  font-size: 14px;
  color: #a52a2a;
  font-weight: 500;
}

.media-empty {
  padding: 40px;
  text-align: center;
  color: var(--text-muted);
  background: var(--white);
  border: 1px solid var(--border);
}
