.news-slider {
    position: relative;   /* 关键：让按钮绝对定位参考这里 */
    width: 100%;
    overflow: hidden;
    background: #fff;
}

.news-slider .news-slides {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.news-slider .news-slide {
    flex: 0 0 100%;
    position: relative;
    aspect-ratio: 16 / 9;
}

.news-slider .news-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* 控制按钮 */
.news-slider .news-slider-controls {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    pointer-events: none;
}

.news-slider .news-slider-controls button {
    pointer-events: auto;
    background: rgba(0,0,0,0.5);
    color: #fff;
    border: none;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
}

/*New Gallery*/
.news-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 90%;
    max-width: 900px;
    margin: 0 auto;
    padding: 10px 0;
}

.news-item-plain-text {
    border-bottom: 1px solid #ddd;
    padding: 12px 8px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.news-item-plain-text:hover {
    background-color: #f5f5f5;
}

.news-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.news-title {
    font-weight: 600;
    font-size: 1.05em;
    color: #222;
}

.news-date {
    color: #777;
    font-size: 0.9em;
}

.news-desc {
    margin-top: 4px;
    color: #555;
    font-size: 0.95em;
    line-height: 1.5;
    text-align: justify;
}

.news-gallery h2 {
  grid-column: 1 / -1;
  text-align: center;
  margin-bottom: 30px;
  font-size: 2rem;
}

.news-gallery {
  padding: 40px;
  background: #f9f9f9;  /* 背景始终铺满 */
}
