/* ===== 公告列表页样式 ===== */
.news-filter {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  border-radius: var(--lc-radius);
  padding: 0 20px;
  box-shadow: var(--lc-shadow);
  margin-bottom: 20px;
  border-bottom: 2px solid #f5f5f5;
}

.news-filter .tabs {
  display: flex;
  gap: 4px;
}

.news-filter .tabs a {
  display: inline-block;
  padding: 16px 20px;
  color: var(--lc-gray-5);
  font-size: 14px;
  font-weight: 500;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: all 0.25s;
  text-decoration: none;
}

.news-filter .tabs a:hover {
  color: var(--lc-red);
}

.news-filter .tabs a.active {
  color: var(--lc-red);
  border-bottom-color: var(--lc-red);
  font-weight: 600;
}

.news-filter .count-label {
  font-size: 13px;
  color: var(--lc-gray-4);
}

/* 卡片列表 */
.news-card-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.news-card {
  display: block;
  background: #fff;
  border-radius: var(--lc-radius);
  overflow: hidden;
  box-shadow: var(--lc-shadow);
  text-decoration: none;
  color: inherit;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.news-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(255, 45, 45, 0.12), 0 4px 12px rgba(0, 0, 0, 0.06);
}

.news-card:hover .news-card-title {
  color: var(--lc-red);
}

.news-card:hover .news-card-more {
  color: var(--lc-red);
  letter-spacing: 1px;
}

.news-card-cover {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #f5f5f5;
}

.news-card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.news-card:hover .news-card-cover img {
  transform: scale(1.06);
}

.news-card-cover-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ccc;
  font-size: 14px;
  background: linear-gradient(135deg, #fafafa, #f0f0f0);
}

.news-card-cat {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 10px;
  background: rgba(255, 45, 45, 0.92);
  color: #fff;
  font-size: 12px;
  border-radius: 4px;
  font-weight: 500;
  backdrop-filter: blur(4px);
}

.news-card-body {
  padding: 18px 20px 16px;
}

.news-card-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--lc-gray-7);
  line-height: 1.5;
  margin: 0 0 10px 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.25s;
  min-height: 48px;
}

.news-card-desc {
  font-size: 13px;
  color: var(--lc-gray-4);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0 0 14px 0;
  min-height: 42px;
}

.news-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px dashed #eee;
}

.news-card-date {
  font-size: 12px;
  color: var(--lc-gray-3);
}

.news-card-more {
  font-size: 12px;
  color: var(--lc-gray-5);
  font-weight: 500;
  transition: all 0.25s;
}

/* 加载更多 */
.news-loadmore {
  display: flex;
  justify-content: center;
  margin-top: 30px;
}

.btn-loadmore {
  padding: 10px 36px;
  background: #fff;
  border: 1px solid #e8e8e8;
  color: var(--lc-gray-5);
  font-size: 14px;
  border-radius: 24px;
  cursor: pointer;
  transition: all 0.25s;
}

.btn-loadmore:hover {
  border-color: var(--lc-red);
  color: var(--lc-red);
  background: #fff5f5;
}

/* 空态 */
.news-empty {
  text-align: center;
  padding: 80px 20px;
  color: #999;
}

/* ===== 公告详情页 ===== */
/* 详情页专用布局：正文宽(约75%) + 侧边窄(约280px) */
.article-page-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 24px;
  padding: 30px 0;
}

.article-page-layout .content-main {
  background: #fff;
  border-radius: var(--lc-radius);
  padding: 0;
  box-shadow: var(--lc-shadow);
  min-height: 500px;
  overflow: hidden;
}

.article-page-layout .sidebar {
  background: #fff;
  border-radius: var(--lc-radius);
  padding: 14px;
  box-shadow: var(--lc-shadow);
  height: fit-content;
  position: sticky;
  top: 140px;
}

.article-page-layout .sidebar h4 {
  font-size: 15px;
  font-weight: 600;
  color: var(--lc-gray-6);
  padding-bottom: 10px;
  margin-bottom: 10px;
  border-bottom: 2px solid var(--lc-red);
  display: inline-block;
}

.article-breadcrumb {
  padding: 20px 0;
  font-size: 13px;
  color: var(--lc-gray-4);
}

.article-breadcrumb a {
  color: var(--lc-gray-4);
  text-decoration: none;
  transition: color 0.2s;
}

.article-breadcrumb a:hover {
  color: var(--lc-red);
}

.article-breadcrumb .sep {
  margin: 0 8px;
  color: #ddd;
}

.article-breadcrumb .current {
  color: var(--lc-gray-5);
  max-width: 200px;
  display: inline-block;
  vertical-align: bottom;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.article-container {
  background: #fff;
  border-radius: var(--lc-radius);
  box-shadow: var(--lc-shadow);
  overflow: hidden;
}

.article {
  padding: 36px 48px;
  max-width: 780px;
  margin: 0 auto;
}

.article-header {
  text-align: center;
  padding-bottom: 28px;
  margin-bottom: 28px;
  border-bottom: 1px solid #f0f0f0;
}

.article-cat {
  display: inline-block;
  padding: 4px 14px;
  background: linear-gradient(135deg, var(--lc-red), #ff6b6b);
  color: #fff;
  font-size: 12px;
  border-radius: 12px;
  margin-bottom: 16px;
  font-weight: 500;
}

.article-title {
  font-size: 26px;
  font-weight: 700;
  color: var(--lc-gray-7);
  line-height: 1.35;
  margin: 0 0 18px 0;
  text-align: center;
  word-break: break-word;
}

.article-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  font-size: 13px;
  color: var(--lc-gray-3);
  flex-wrap: wrap;
}

.article-body {
  font-size: 15px;
  line-height: 1.85;
  color: var(--lc-gray-6);
  max-width: 720px;
  margin: 0 auto;
}

.article-body p {
  margin: 0 0 18px 0;
  text-indent: 2em;
}

.article-intro {
  background: #fff9f9;
  border-left: 3px solid var(--lc-red);
  padding: 14px 18px;
  color: var(--lc-gray-6);
  font-size: 14px;
  margin-bottom: 20px !important;
  text-indent: 0 !important;
  border-radius: 0 6px 6px 0;
}

.article-cover {
  width: 100%;
  margin: 0 0 24px 0;
  border-radius: 8px;
  overflow: hidden;
}

.article-cover img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}

.article-inline-img {
  width: 100%;
  margin: 24px 0;
  text-align: center;
}

.article-inline-img img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  display: inline-block;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

/* 图片型文章 */
.article-gallery {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
}

.article-gallery img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

/* 标签 */
.article-tags {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 32px 0 28px;
  padding-top: 24px;
  border-top: 1px dashed #eee;
}

.article-tags .tag {
  padding: 4px 12px;
  background: #f7f7f7;
  color: var(--lc-gray-4);
  font-size: 12px;
  border-radius: 4px;
}

/* 上一篇/下一篇 */
.article-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 24px 0;
  padding: 20px 0;
  border-top: 1px solid #f0f0f0;
  border-bottom: 1px solid #f0f0f0;
}

.article-nav .nav-item {
  padding: 12px 16px;
  background: #fafafa;
  border-radius: 6px;
  transition: all 0.25s;
}

.article-nav .nav-item:hover {
  background: #fff5f5;
}

.article-nav .nav-item.next {
  text-align: right;
}

.article-nav .nav-label {
  font-size: 12px;
  color: var(--lc-gray-3);
  margin-bottom: 6px;
}

.article-nav .nav-link {
  color: var(--lc-gray-6);
  font-size: 14px;
  text-decoration: none;
  display: inline-block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color 0.2s;
}

.article-nav .nav-link:hover {
  color: var(--lc-red);
}

.article-nav .nav-none {
  color: #ccc;
  font-size: 14px;
}

.article-back {
  text-align: center;
  margin-top: 24px;
}

.article-back a {
  display: inline-block;
  padding: 8px 24px;
  color: var(--lc-gray-4);
  font-size: 13px;
  text-decoration: none;
  border: 1px solid #e0e0e0;
  border-radius: 20px;
  transition: all 0.25s;
}

.article-back a:hover {
  color: var(--lc-red);
  border-color: var(--lc-red);
  background: #fff5f5;
}

.article-empty {
  text-align: center;
  padding: 80px 20px;
}

.article-empty h3 {
  margin: 0 0 10px 0;
  color: var(--lc-gray-6);
  font-size: 18px;
}

.article-empty p {
  color: var(--lc-gray-3);
  margin: 0 0 24px 0;
}

.btn-back {
  display: inline-block;
  padding: 8px 28px;
  background: var(--lc-red);
  color: #fff;
  text-decoration: none;
  border-radius: 20px;
  font-size: 14px;
  transition: all 0.25s;
}

.btn-back:hover {
  background: #e52828;
}

/* 侧边栏最新公告 */
.sidebar-news {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-news li {
  border-bottom: 1px solid #f0f0f0;
}

.sidebar-news li:last-child {
  border-bottom: 0;
}

.sidebar-news-item {
  display: block;
  padding: 8px 2px;
  color: var(--lc-gray-5);
  text-decoration: none;
  transition: color 0.2s;
}

.sidebar-news-item:hover .sidebar-news-title {
  color: var(--lc-red);
}

.sidebar-news-title {
  font-size: 13px;
  color: var(--lc-gray-6);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.45;
  transition: color 0.2s;
  font-weight: 400;
}

.sidebar-news-date {
  font-size: 11px;
  color: var(--lc-gray-3);
  margin-top: 3px;
  display: block;
}

/* 侧边栏分类链接更紧凑 */
.article-page-layout .sidebar ul li a {
  padding: 7px 10px;
  font-size: 13px;
  border-radius: 5px;
}

/* ===== 响应式 ===== */
@media (max-width: 1100px) {
  .article-page-layout {
    grid-template-columns: minmax(0, 1fr) 240px;
    gap: 20px;
  }
  .article {
    padding: 30px 28px;
  }
}

@media (max-width: 900px) {
  .news-card-list {
    grid-template-columns: 1fr;
  }
  /* 平板及以下：详情页改为上下堆叠 */
  .article-page-layout {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 20px 0;
  }
  .article-page-layout .sidebar {
    order: 2;
    position: static;
  }
  .article-page-layout .content-main {
    order: 1;
  }
  .article {
    padding: 24px 20px;
    max-width: 100%;
  }
  .article-title {
    font-size: 22px;
  }
  .article-body {
    max-width: 100%;
  }
  .article-nav {
    grid-template-columns: 1fr;
  }
  .article-nav .nav-item.next {
    text-align: left;
  }
}

@media (max-width: 600px) {
  .news-filter {
    flex-direction: column;
    align-items: flex-start;
    padding: 10px 12px;
    gap: 6px;
  }
  .news-filter .tabs {
    flex-wrap: wrap;
  }
  .news-filter .tabs a {
    padding: 10px 12px;
    font-size: 13px;
  }
  .article {
    padding: 20px 16px;
  }
  .article-title {
    font-size: 20px;
  }
  .article-body {
    font-size: 14px;
  }
}
