.banner-news {
  background-image: url('/images/news/banner.jpg');
}

.news-tabs {
  display: flex;
  gap: 12px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.news-tab {
  padding: 10px 24px;
  background: var(--primary-light);
  color: var(--primary);
  border: none;
  border-radius: 24px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s;
}
.news-tab:hover {
  background: var(--primary);
  color: #fff;
}
.news-tab.active {
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 4px 12px rgba(0,102,204,0.3);
}

.news-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.news-item {
  display: flex;
  gap: 24px;
  padding: 24px;
  background: #f8fafd;
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: all 0.3s;
  cursor: pointer;
}
.news-item:hover {
  transform: translateX(8px);
  box-shadow: var(--shadow);
  border-color: var(--primary);
}
.news-date {
  flex-shrink: 0;
  width: 80px;
  text-align: center;
  padding: 12px;
  background: var(--gradient-light);
  border-radius: 8px;
}
.news-date .day {
  font-size: 28px;
  font-weight: 900;
  color: var(--primary);
  line-height: 1;
}
.news-date .month {
  font-size: 12px;
  color: var(--text-dim);
  margin-top: 4px;
}
.news-info { flex: 1; }
.news-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
  line-height: 1.4;
}
.news-summary {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.6;
  margin-bottom: 12px;
}
.news-meta {
  display: flex;
  gap: 16px;
  font-size: 12px;
  color: var(--text-dim);
}
.news-tag {
  padding: 4px 12px;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
}

#news-list.is-loading {
  opacity: 0.5;
  pointer-events: none;
  min-height: 200px;
}
.news-load-error {
  text-align: center;
  padding: 48px 20px;
  color: var(--text-dim);
}

.article-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px 80px;
}
.article-card {
  background: var(--white);
  border-radius: 18px;
  padding: 48px 56px;
  box-shadow: var(--shadow);
}
.article-title {
  font-size: 28px;
  font-weight: 900;
  color: var(--text);
  line-height: 1.4;
  margin-bottom: 20px;
}
.article-meta {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-bottom: 20px;
  margin-bottom: 32px;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}
.article-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-dim);
}
.article-tag {
  padding: 4px 14px;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
}
.article-body {
  font-size: 15px;
  line-height: 2;
  color: #333;
  white-space: pre-line;
  word-break: break-word;
}
.article-body p,
.article-body p.MsoNormal {
  margin: 0 0 1.25em !important;
  text-indent: 2em;
  white-space: normal;
}
.article-body p:last-child {
  margin-bottom: 0 !important;
}
.article-body p.article-img-wrap,
.article-body p:has(img),
.article-body div.article-img-wrap {
  text-indent: 0 !important;
  text-align: center;
  margin: 24px 0 !important;
  white-space: normal;
}
.article-body .article-img-wrap img,
.article-body img {
  width: 100%;
  max-width: 550px;
  height: auto;
  border-radius: 12px;
  box-shadow: var(--shadow);
}
.back-to-list {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 32px;
  padding: 12px 28px;
  background: var(--gradient);
  color: #fff;
  border-radius: 8px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
}

@media (max-width: 1024px) {
  .article-container { padding: 0 28px 64px; }
  .article-card { padding: 36px 32px; }
  .article-title { font-size: 24px; }
}

@media (max-width: 768px) {
  .news-tabs { gap: 8px; margin-bottom: 20px; }
  .news-tab { padding: 8px 16px; font-size: 13px; }

  .news-list { gap: 14px; }
  .news-item {
    flex-direction: row;
    align-items: flex-start;
    gap: 14px;
    padding: 16px;
  }
  .news-item:hover { transform: none; }
  .news-date {
    width: 56px;
    padding: 8px 4px;
  }
  .news-date .day { font-size: 22px; }
  .news-date .month { font-size: 11px; }
  .news-title {
    font-size: 15px;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .news-summary {
    font-size: 13px;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .news-meta { gap: 10px; }
  .news-tag { padding: 3px 10px; font-size: 11px; }

  .article-container { padding: 0 16px 48px; }
  .article-card {
    padding: 24px 16px;
    border-radius: 14px;
  }
  .article-title { font-size: 20px; margin-bottom: 14px; }
  .article-meta {
    gap: 12px;
    padding-bottom: 14px;
    margin-bottom: 20px;
  }
  .article-meta-item { font-size: 12px; }
  .article-body {
    font-size: 14px;
    line-height: 1.85;
  }
  .article-body p,
  .article-body p.MsoNormal {
    text-indent: 2em;
    margin-bottom: 1em !important;
  }
  .article-body .article-img-wrap img,
  .article-body img {
    width: 100%;
    max-width: 100%;
    border-radius: 8px;
  }
  .article-body p.article-img-wrap,
  .article-body p:has(img),
  .article-body div.article-img-wrap {
    margin: 16px 0 !important;
  }
  .back-to-list {
    width: 100%;
    justify-content: center;
    margin-top: 24px;
    padding: 12px 20px;
  }
}

@media (max-width: 480px) {
  .news-item {
    flex-direction: column;
    gap: 10px;
  }
  .news-date {
    width: 100%;
    display: flex;
    align-items: baseline;
    justify-content: flex-start;
    gap: 8px;
    padding: 6px 10px;
  }
  .news-date .day { font-size: 18px; }
  .news-date .month { margin-top: 0; }
  .article-title { font-size: 18px; }
}

