.news-list-wrap { 
  margin-top: 10px; 
}

.news-item {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 16px;
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: 14px;
  padding: 16px;
  align-items: stretch;
  min-height: 160px;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
  transition: transform 0.5s ease, box-shadow 0.5s ease;
  /* transform-origin: center center; */
}

.news-cover {
  width: 100%;
  height: 100%;
  min-height: 140px;
  max-height: 180px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--border);
  display: block;
}

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

.news-title {
  font-size: 1.3rem;
  color: var(--primary);
  margin-bottom: 10px;
  line-height: 1.4;
}

.news-author {
  font-size: 1.1rem;
  color: var(--text);
  opacity: 0.95;
  margin-bottom: 5px;
  word-break: break-all;
}

.news-summary {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--text);
  opacity: 0.9;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-time {
  margin-top: auto;
  text-align: right;
  font-size: 1rem;
  font-weight: 600;
  opacity: 0.8;
  color: var(--primary);
}

.news-link {
  color: inherit;
  text-decoration: none;
  display: block;
}

.news-link:hover .news-title {
  color: var(--accent);
}

.news-link:hover h3{
  color: var(--accent);
}

/* .grid4 p:hover, .grid4 h3:hover {
  color:var(--accent);
} */

.news-link:hover .news-item, .news-link:hover .card {
  transform:scale(1.005);
  border-color:var(--primary);
}

.news-loading {
  display:flex; 
  flex-direction:column; 
  align-items:center; 
  justify-content:center; 
  gap:10px;
}

.loadText {
  margin:0; 
  font-size:1rem; 
  color:var(--text); 
  opacity:0.9;
  text-align:center;
  font-weight: 600;
}

.news-empty {
  padding: 16px;
  border: 1px dashed var(--border);
  border-radius: 12px;
  font-size: 1.05rem;
}

.search-notice {
  font-size:1.1rem;
  font-weight:600;
  margin-top:12px;
  margin-bottom:15px;
  color: var(--primary);
}

.news-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 12px;
  margin-top: 24px;
}

.news-pagination[hidden] {
  display: none;
}

.news-pagination-controls,
.news-page-buttons {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.news-page-size-wrapper {
  margin-left: 0;
  vertical-align: middle;
}

.news-page-size-inline {
  margin-left: 12px;
}

.news-page-size-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  /* max-height: 40px; */
  padding: 8px 8px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--card);
  color: var(--primary);
  font-size: 1.1rem;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}

.news-page-size-toggle:hover {
  color: #fff;
  background: var(--accent);
  border-color: var(--accent);
}

.news-page-size-dropdown {
  top: calc(100% + 8px);
  right: 0;
  min-width: 96px;
  max-width: none;
  padding: 6px;
  border-radius: 8px;
  background: var(--primary);
  z-index: 1300;
}

.news-page-size-option {
  width: 100%;
  padding: 7px 9px;
  color: #fff;
  font-size: 1.2rem;
  text-align: center;
  white-space: nowrap;
}

.news-page-size-option:hover,
.news-page-size-option.active {
  color: var(--accent);
}

.news-page-btn,
.news-page-ellipsis {
  min-width: 38px;
  height: 36px;
  padding: 0 12px;
  border-radius: 10px;
  font: inherit;
  line-height: 1;
}

.news-page-btn {
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--primary);
  cursor: pointer;
  transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}

.news-page-btn:hover:not(:disabled):not(.active) {
  color: #fff;
  background: var(--accent);
  border-color: var(--accent);
  transform: translateY(-1px);
}

.news-page-btn.active {
  color: #fff;
  background: var(--primary);
  border-color: var(--primary);
  cursor: default;
}

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

.news-page-ellipsis {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
}

@media (max-width: 480px) {
  .news-pagination {
    gap: 8px;
    margin-top: 18px;
  }

  .news-pagination-controls,
  .news-page-buttons {
    gap: 6px;
  }

  .news-page-size-inline {
    display: inline-flex;
    margin-left: 8px;
    margin-top: 8px;
  }

  .news-page-size-toggle,
  .news-page-btn,
  .news-page-ellipsis {
    min-width: 34px;
    height: 34px;
    padding: 0 9px;
    border-radius: 9px;
  }
    .news-page-size-slot {
    display: block;
    margin-top: 8px;
  }

  .news-page-size-inline {
    display: inline-flex;
    margin-left: 0;
    margin-top: 0;
  }
}

@media (max-width: 980px) {
  .news-item {
    grid-template-columns: 1fr;
  }
  .news-cover {
    max-height: 220px;
  }
  .news-time {
    margin-top: 8px;
  }
}