/* News Page Styles */
.news-section {
  padding: 120px 0 80px;
  min-height: calc(100vh - 72px);
}

.news-header {
  text-align: center;
  margin-bottom: 60px;
}

.news-title {
  font-size: 48px;
  font-weight: 700;
  color: #1d1d1f;
  margin-bottom: 16px;
  background: linear-gradient(135deg, #007aff 0%, #34c759 50%, #007aff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.news-description {
  font-size: 20px;
  color: #86868b;
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

/* Notices Section Styles */
.notices-section {
  background: white;
  border-radius: 12px;
  padding: 0;
  margin: 40px 0 60px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

.notices-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 32px;
  background: white;
  border-bottom: 1px solid #e5e5e7;
  position: relative;
}

.notices-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #34c759 0%, #30d158 50%, #34c759 100%);
}

.notices-title-wrapper {
  display: flex;
  align-items: baseline;
  gap: 16px;
}

.notices-title {
  font-size: 28px;
  font-weight: 700;
  color: #1d1d1f;
  margin: 0;
}

.notices-subtitle {
  font-size: 18px;
  font-weight: 400;
  color: #b8945f;
  letter-spacing: 1px;
}

.notices-more {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #34c759;
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
}

.notices-more:hover {
  color: #30d158;
  transform: translateX(4px);
}

.notices-more svg {
  transition: transform 0.2s ease;
}

.notices-more:hover svg {
  transform: translateX(2px);
}

.notices-list {
  background: white;
}

.notice-item {
  display: flex;
  align-items: flex-start;
  padding: 20px 32px;
  border-bottom: 1px solid #f5f5f7;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.notice-item:last-child {
  border-bottom: none;
}

.notice-item:hover {
  background: #fafafa;
}

.notice-item::before {
  content: '';
  position: absolute;
  left: 32px;
  top: 28px;
  width: 8px;
  height: 8px;
  background: #ff3b30;
  border-radius: 50%;
}

.notice-content {
  flex: 1;
  padding-left: 20px;
}

.notice-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.notice-department {
  font-size: 14px;
  color: #ff3b30;
  font-weight: 500;
}

/* 通知公告标签样式 */
.notice-tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
  color: white;
  transition: all 0.2s ease;
}

.notice-tag-recruitment {
  background: linear-gradient(135deg, #ff3b30, #ff6259);
}

.notice-tag-meeting {
  background: linear-gradient(135deg, #007aff, #5ac8fa);
}

.notice-tag-training {
  background: linear-gradient(135deg, #ff9500, #ffb340);
}

.notice-tag-feedback {
  background: linear-gradient(135deg, #5856d6, #7b7adb);
}

.notice-tag-important {
  background: linear-gradient(135deg, #ff2d55, #ff6482);
  animation: pulse-tag 2s ease-in-out infinite;
}

.notice-tag-default {
  background: linear-gradient(135deg, #8e8e93, #aeaeb2);
}

.notice-tag-science {
  background: linear-gradient(135deg, #34c759, #30d158);
}

@keyframes pulse-tag {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 2px 8px rgba(255, 45, 85, 0.3);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(255, 45, 85, 0.5);
  }
}

.notice-date {
  font-size: 14px;
  color: #86868b;
  margin-left: auto;
}

.notice-title {
  font-size: 16px;
  font-weight: 400;
  color: #1d1d1f;
  line-height: 1.5;
  margin: 0;
  transition: color 0.2s ease;
}

.notice-item:hover .notice-title {
  color: #34c759;
}

.empty-notices {
  text-align: center;
  padding: 60px 20px;
  color: #86868b;
}

.empty-notices p {
  font-size: 16px;
  margin: 0;
}

/* News List Section - 新的列表布局 */
.news-list-section {
  background: white;
  border-radius: 12px;
  padding: 0;
  margin: 40px 0 60px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

.news-list-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 32px;
  background: white;
  border-bottom: 1px solid #e5e5e7;
  position: relative;
}

.news-list-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #34c759 0%, #a8d43f 100%);
}

.news-list-title-wrapper {
  display: flex;
  align-items: baseline;
  gap: 16px;
}

.news-list-title {
  font-size: 28px;
  font-weight: 700;
  color: #1d1d1f;
  margin: 0;
}

.news-list-subtitle {
  font-size: 18px;
  font-weight: 400;
  color: #b8945f;
  letter-spacing: 1px;
}

.news-list-container {
  padding: 24px 32px;
}

.news-item {
  display: flex;
  gap: 24px;
  padding: 24px;
  margin-bottom: 20px;
  background: #fafafa;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1px solid transparent;
}

.news-item:last-child {
  margin-bottom: 0;
}

.news-item:hover {
  background: white;
  border-color: #34c759;
  box-shadow: 0 4px 16px rgba(52, 199, 89, 0.15);
  transform: translateY(-2px);
}

.news-image-wrapper {
  flex-shrink: 0;
  width: 280px;
  height: 158px;
  border-radius: 8px;
  overflow: hidden;
  background: #f0f0f0;
}

.news-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.news-item:hover .news-image {
  transform: scale(1.05);
}

.news-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.news-item .news-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 12px;
}

.news-item .news-title {
  font-size: 20px;
  font-weight: 600;
  color: #1d1d1f;
  margin: 0;
  line-height: 1.4;
  flex: 1;
  transition: color 0.2s ease;
}

.news-item:hover .news-title {
  color: #34c759;
}

.news-date {
  font-size: 14px;
  color: #86868b;
  white-space: nowrap;
  flex-shrink: 0;
}

.news-summary {
  font-size: 15px;
  color: #515154;
  line-height: 1.6;
  margin: 0 0 12px 0;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  text-indent: 2em;
}

.news-meta {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-top: auto;
}

.news-category {
  display: inline-block;
  padding: 4px 12px;
  background: linear-gradient(135deg, #34c759, #30d158);
  color: white;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
}

.news-author {
  font-size: 14px;
  color: #86868b;
}

.empty-news {
  text-align: center;
  padding: 60px 20px;
  color: #86868b;
}

.empty-news p {
  font-size: 16px;
  margin: 0;
}

/* 分页样式 */
.pagination-container {
  padding: 24px 32px;
  border-top: 1px solid #f0f0f0;
}

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
}

.pagination-btn {
  padding: 8px 16px;
  background: white;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  color: #1d1d1f;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.pagination-btn:hover {
  background: #f8f9fa;
  border-color: #34c759;
}

.pagination-btn.active {
  background: linear-gradient(135deg, #34c759, #30d158);
  color: white;
  border-color: #34c759;
}

.pagination-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Research Section Styles - 科学研究区域（左右分栏） */
.research-section {
  display: grid;
  grid-template-columns: 480px 1fr;
  gap: 32px;
  margin: 60px 0;
  min-height: 600px;
}

/* 左侧新闻列表 */
.research-sidebar {
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.research-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 32px;
  background: white;
  border-bottom: 1px solid #e5e5e7;
  position: relative;
  flex-shrink: 0;
}

.research-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #34c759 0%, #a8d43f 100%);
}

.research-title-wrapper {
  display: flex;
  align-items: baseline;
  gap: 16px;
}

.research-title {
  font-size: 28px;
  font-weight: 700;
  color: #1d1d1f;
  margin: 0;
}

.research-subtitle {
  font-size: 18px;
  font-weight: 400;
  color: #b8945f;
  letter-spacing: 1px;
}

.research-more {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #34c759;
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
}

.research-more:hover {
  color: #30d158;
  transform: translateX(4px);
}

.research-more svg {
  transition: transform 0.2s ease;
}

.research-more:hover svg {
  transform: translateX(2px);
}

.research-list {
  background: white;
  overflow-y: auto;
  flex: 1;
}

.research-item {
  padding: 20px 32px;
  border-bottom: 1px solid #f5f5f7;
  cursor: pointer;
  transition: all 0.2s ease;
  background: white;
}

.research-item:last-child {
  border-bottom: none;
}

.research-item:hover,
.research-item.active {
  background: linear-gradient(90deg, rgba(52, 199, 89, 0.08) 0%, rgba(168, 212, 63, 0.08) 100%);
}

.research-item.active {
  border-left: 4px solid #34c759;
}

.research-item-title {
  font-size: 16px;
  font-weight: 400;
  color: #1d1d1f;
  line-height: 1.6;
  margin: 0;
  transition: color 0.2s ease;
}

.research-item:hover .research-item-title,
.research-item.active .research-item-title {
  color: #34c759;
  font-weight: 500;
}

/* 右侧新闻详情预览 */
.research-preview {
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  position: relative;
}

.research-preview::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #34c759 0%, #a8d43f 100%);
}

.research-preview-content {
  padding: 40px;
  height: 100%;
  overflow-y: auto;
}

.research-preview-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  min-height: 400px;
  color: #86868b;
  font-size: 18px;
}

.research-preview-image-wrapper {
  position: relative;
  width: 100%;
  margin-bottom: 24px;
  border-radius: 8px;
  overflow: hidden;
}

.research-preview-image {
  width: 100%;
  max-height: 400px;
  object-fit: cover;
  display: block;
}

.research-preview-category {
  position: static;
  display: inline-block;
  background: linear-gradient(135deg, #34c759, #30d158);
  color: white;
  padding: 6px 16px;
  border-radius: 16px;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  margin-bottom: 16px;
}

.research-preview-title {
  font-size: 28px;
  font-weight: 700;
  color: #1d1d1f;
  line-height: 1.4;
  margin-bottom: 16px;
}

.research-preview-meta {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 14px;
  color: #86868b;
  margin-bottom: 24px;
  padding-bottom: 0;
  border-bottom: none;
}

.research-preview-actions {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
  text-align: center;
}

.research-preview-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #34c759, #30d158);
  color: white;
  padding: 12px 24px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}

.research-preview-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(52, 199, 89, 0.3);
}

/* News Detail Page Styles */


/* News Detail Page Styles */
.news-detail-section {
  padding: 120px 0 80px;
  min-height: calc(100vh - 72px);
}

.breadcrumb {
  margin-bottom: 32px;
  font-size: 14px;
  color: #86868b;
}

.breadcrumb-link {
  color: #007aff;
  text-decoration: none;
  transition: color 0.2s ease;
}

.breadcrumb-link:hover {
  color: #005bb5;
}

.breadcrumb-separator {
  margin: 0 8px;
}

.breadcrumb-current {
  color: #1d1d1f;
}

.news-article {
  max-width: 800px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 16px;
  padding: 40px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.article-header {
  margin-bottom: 32px;
  text-align: center;
}

.article-category {
  display: inline-block;
  background: linear-gradient(135deg, #007aff, #005bb5);
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 16px;
}

.article-title {
  font-size: 36px;
  font-weight: 700;
  color: #1d1d1f;
  line-height: 1.2;
  margin-bottom: 20px;
}

.article-meta {
  display: flex;
  justify-content: center;
  gap: 24px;
  font-size: 14px;
  color: #86868b;
  flex-wrap: wrap;
}

.article-image {
  margin: 32px 0;
  border-radius: 12px;
  overflow: hidden;
}

.article-image img {
  width: 100%;
  height: auto;
  display: block;
}

.article-content {
  font-size: 18px;
  line-height: 1.7;
  color: #1d1d1f;
  margin: 32px 0;
}

.article-content img {
  max-width: 100% !important;
  width: auto !important;
  height: auto !important;
  display: block;
  margin: 20px auto;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  object-fit: contain;
}

.article-content p img {
  max-width: 100% !important;
  width: auto !important;
  height: auto !important;
}

.article-content h1,
.article-content h2,
.article-content h3 {
  margin-top: 32px;
  margin-bottom: 16px;
  font-weight: 600;
  color: #1d1d1f;
}

.article-content h1 {
  font-size: 32px;
}

.article-content h2 {
  font-size: 28px;
}

.article-content h3 {
  font-size: 24px;
}

.article-content p {
  margin-bottom: 16px;
  text-indent: 2em; /* 首行缩进2个字符 */
}

.article-content strong {
  font-weight: 600;
}

.article-content a {
  color: #007aff;
  text-decoration: none;
}

.article-content a:hover {
  text-decoration: underline;
}

.article-content blockquote {
  margin: 16px 0;
  padding: 12px 16px;
  background-color: #f8f9fa;
  border-left: 4px solid #007aff;
  color: #666;
  font-style: italic;
}

.article-footer {
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.article-tags {
  margin-bottom: 24px;
}

.tag {
  display: inline-block;
  background: rgba(0, 122, 255, 0.1);
  color: #007aff;
  padding: 6px 12px;
  border-radius: 16px;
  font-size: 14px;
  margin-right: 8px;
  margin-bottom: 8px;
}

.article-actions {
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.back-btn {
  background: linear-gradient(135deg, #007aff, #005bb5);
  color: white;
  border: none;
  border-radius: 12px;
  padding: 12px 24px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.back-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0, 122, 255, 0.3);
}

.original-btn {
  background: linear-gradient(135deg, #34c759, #2db34a);
  color: white;
  border: none;
  border-radius: 12px;
  padding: 12px 24px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: all 0.2s ease;
}

.original-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(52, 199, 89, 0.3);
}

.original-link {
  color: #34c759;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s ease;
  border-bottom: 1px solid transparent;
}

.original-link:hover {
  color: #2db34a;
  border-bottom: 1px solid #2db34a;
}

.article-source {
  display: inline-flex;
  align-items: center;
}

.retry-btn {
  background: linear-gradient(135deg, #34c759, #30d158);
  color: white;
  border: none;
  border-radius: 12px;
  padding: 12px 24px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.retry-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(52, 199, 89, 0.3);
}

/* Loading and Error States */
.loading-spinner {
  text-align: center;
  padding: 60px;
}

.spinner {
  border: 3px solid rgba(0, 122, 255, 0.1);
  border-radius: 50%;
  border-top: 3px solid #007aff;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
  margin: 0 auto 16px;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.empty-state,
.error-state {
  text-align: center;
  padding: 80px 20px;
  color: #86868b;
}

.empty-state h3,
.error-state h3 {
  font-size: 24px;
  margin-bottom: 16px;
  color: #1d1d1f;
}

.empty-state p,
.error-state p {
  font-size: 16px;
  margin-bottom: 24px;
}

/* Responsive Design for News */
@media (max-width: 768px) {
  .news-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .news-title {
    font-size: 36px;
  }

  .news-article {
    padding: 24px;
  }

  .article-title {
    font-size: 28px;
  }

  .article-content {
    font-size: 16px;
  }

  .article-meta {
    flex-direction: column;
    gap: 8px;
  }

  /* Notices responsive styles */
  .notices-header {
    padding: 20px 24px;
  }

  .notices-title {
    font-size: 24px;
  }

  .notices-subtitle {
    font-size: 16px;
  }

  .notices-more {
    font-size: 14px;
  }

  .notice-item {
    padding: 16px 24px;
  }

  .notice-item::before {
    left: 24px;
    top: 24px;
  }

  .notice-content {
    padding-left: 16px;
  }

  /* Research section responsive styles */
  .research-section {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .research-sidebar {
    max-height: 400px;
  }

  .research-header {
    padding: 20px 24px;
  }

  .research-title {
    font-size: 24px;
  }

  .research-subtitle {
    font-size: 16px;
  }

  .research-more {
    font-size: 14px;
  }

  .research-item {
    padding: 16px 24px;
  }

  .research-preview-content {
    padding: 24px;
  }

  .research-preview-title {
    font-size: 24px;
  }
}

/* 内联图片样式 */
.article-image-inline {
  text-align: center;
  margin: 24px 0;
}

.article-image-inline img,
.article-image-inline .article-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  margin: 16px 0;
  background: #f0f0f0;
}

/* 懒加载图片占位符效果 */
.lazy-image {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: loading-shimmer 1.5s infinite;
  min-height: 200px;
}

@keyframes loading-shimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* 骨架屏样式 */
.skeleton-notice {
  padding: 20px 32px;
  border-bottom: 1px solid #f5f5f7;
}

.skeleton-notice:last-child {
  border-bottom: none;
}

.skeleton-content {
  padding-left: 20px;
}

.skeleton-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
}

.skeleton-tag {
  width: 80px;
  height: 22px;
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
  border-radius: 12px;
}

.skeleton-date {
  width: 90px;
  height: 18px;
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
  border-radius: 4px;
  margin-left: auto;
}

.skeleton-title {
  width: 75%;
  height: 20px;
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
  border-radius: 4px;
}

@keyframes skeleton-loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

.article-image-inline img:hover,
.article-image-inline .article-image:hover {
  transform: scale(1.02);
}

.image-caption {
  font-size: 14px;
  color: #666;
  margin-top: 8px;
  font-style: italic;
}

