.news-section {
  margin-top: 20px;
  padding: 30px 34px;
  border: 1px solid var(--theme-border);
  border-radius: 24px;
  background: var(--theme-surface);
  box-shadow: 0 18px 48px rgba(0, 0, 0, .24);
}
.news-section-head {
  display: flex;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
.news-section-head h2 {
  font-size: 30px;
}
.news-refresh-btn {
  width: auto;
  min-width: 120px;
  margin-top: 0;
}
.news-meta {
  color: #f3f4f6;
  margin-bottom: 14px;
  font-size: 14px;
}
.news-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.news-card {
  border: 1px solid var(--theme-border);
  border-radius: 14px;
  padding: 14px;
  background: color-mix(in srgb, var(--theme-accent) 8%, transparent);
}
.news-cover {
  display: block;
  position: relative;
  width: 100%;
  min-height: 170px;
  border-radius: 10px;
  margin-bottom: 10px;
  overflow: hidden;
  background: rgba(255, 255, 255, .04);
}
.news-cover img {
  width: 100%;
  height: 100%;
  min-height: 170px;
  object-fit: cover;
  display: block;
}
.news-cover::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.82), rgba(0,0,0,.08));
  z-index: 1;
}
.news-cover-title {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 8px;
  color: #fff;
  line-height: 1.5;
  font-weight: 700;
  z-index: 2;
}
.news-generated-cover .news-cover-title {
  display: none;
}
.news-generated-image {
  filter: saturate(1.05) contrast(1.02);
}

/* 图片缺失/加载失败时，使用标题生成封面 */
.news-fallback-cover {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 14px;
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--theme-accent) 35%, #111), #121212);
}
.news-fallback-cover .news-cover-title {
  position: static;
  left: auto;
  right: auto;
  bottom: auto;
  width: 100%;
  color: #fff;
  font-size: 20px;
  line-height: 1.45;
  text-shadow: 0 2px 10px rgba(0, 0, 0, .45);
}
.news-fallback-cover::before {
  background: linear-gradient(to top, rgba(0,0,0,.3), rgba(0,0,0,.18));
}

.news-card p {
  color: #f3f4f6;
  margin: 4px 0;
  font-size: 14px;
}
.news-card .news-action a {
  color: var(--theme-accent-soft);
  text-decoration: none;
}
.news-card .news-action a:hover {
  text-decoration: underline;
}
.news-card .news-source {
  color: var(--theme-accent-soft);
  font-size: 13px;
}
.news-loadmore-tip {
  margin-top: 14px;
  text-align: center;
  color: #f3f4f6;
  font-size: 14px;
}

@media (max-width: 860px) {
  .news-list { grid-template-columns: 1fr; }
  .news-section-head { align-items: flex-start; flex-direction: column; }
}
