/* News page — 最新动态 */

.news-page main {
  padding-bottom: 0;
}

/* Hero banner */
.news-hero {
  position: relative;
  padding-block-end: calc(var(--page-hero-padding-block) + 72px);
  overflow: hidden;
  background: linear-gradient(
    135deg,
    rgba(255, 107, 0, 0.92) 0%,
    rgba(255, 140, 60, 0.88) 45%,
    rgba(124, 92, 255, 0.75) 100%
  );
}

.news-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='800' height='400' viewBox='0 0 800 400'%3E%3Cg fill='none' stroke='rgba(255,255,255,0.25)' stroke-width='1'%3E%3Ccircle cx='120' cy='80' r='4'/%3E%3Ccircle cx='280' cy='140' r='4'/%3E%3Ccircle cx='420' cy='60' r='4'/%3E%3Ccircle cx='580' cy='120' r='4'/%3E%3Ccircle cx='700' cy='200' r='4'/%3E%3Ccircle cx='200' cy='260' r='4'/%3E%3Cpath d='M120 80 L280 140 L420 60 L580 120 L700 200'/%3E%3Cpath d='M280 140 L200 260'/%3E%3C/g%3E%3C/svg%3E");
  background-size: cover;
  opacity: 0.7;
  pointer-events: none;
}

.news-hero-deco {
  position: absolute;
  right: 8%;
  top: 50%;
  transform: translateY(-50%);
  width: min(220px, 28vw);
  height: min(220px, 28vw);
  opacity: 0.35;
  pointer-events: none;
}

.news-hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 720px;
  margin-inline: auto;
  text-align: center;
}

.news-hero-title {
  margin: 0 0 16px;
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: var(--font-weight-bold);
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: #fff;
}

.news-hero-lead {
  margin: 0 auto;
  font-size: var(--font-size-lg);
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.92);
  max-width: 560px;
}

/* Main card overlapping hero */
.news-panel-wrap {
  margin-top: -72px;
  padding-bottom: 80px;
  position: relative;
  z-index: 2;
}

.news-panel {
  padding: 32px 36px 40px;
  border-radius: var(--radius-lg);
}

.news-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}

.news-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.news-tab {
  padding: 10px 22px;
  border: none;
  border-radius: var(--radius-pill);
  font-family: inherit;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition:
    background var(--transition-fast),
    color var(--transition-fast),
    transform var(--transition-fast),
    box-shadow var(--transition-fast);
}

.news-tab:hover {
  transform: translateY(-2px);
  color: var(--brand);
  background: var(--brand-soft);
}

.news-tab.is-active {
  color: #fff;
  background: linear-gradient(135deg, var(--brand) 0%, #ff8533 100%);
  box-shadow: 0 8px 20px var(--brand-glow);
}

.news-search {
  position: relative;
  flex: 0 1 280px;
  min-width: 200px;
}

.news-search i {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 14px;
  pointer-events: none;
}

.news-search .input-glass {
  padding-left: 44px;
}

/* News list */
.news-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.news-item {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 20px 24px;
  padding: 20px 24px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.7);
  transition:
    transform var(--transition-fast),
    box-shadow var(--transition-fast),
    background var(--transition-fast);
}

.news-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--glass-shadow-hover);
  background: rgba(255, 255, 255, 0.72);
}

.news-item.is-hidden {
  display: none;
}

.news-item-link {
  display: block;
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-medium);
  color: var(--text-primary);
  line-height: 1.5;
  transition: color var(--transition-fast);
}

.news-item-link:hover {
  color: var(--brand);
}

.news-tag {
  flex-shrink: 0;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  color: var(--text-secondary);
  white-space: nowrap;
}

.news-date {
  flex-shrink: 0;
  font-size: var(--font-size-sm);
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.news-empty {
  display: none;
  text-align: center;
  padding: 48px 24px;
  color: var(--text-secondary);
}

.news-empty.is-visible {
  display: block;
}

/* Pagination */
.news-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 36px;
  padding-top: 8px;
}

.page-btn {
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border: none;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.55);
  cursor: pointer;
  transition:
    background var(--transition-fast),
    color var(--transition-fast),
    transform var(--transition-fast),
    box-shadow var(--transition-fast);
}

.page-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  color: var(--brand);
  background: var(--brand-soft);
}

.page-btn.is-active {
  color: #fff;
  background: linear-gradient(135deg, var(--brand) 0%, #ff8533 100%);
  box-shadow: 0 6px 16px var(--brand-glow);
}

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

.page-ellipsis {
  padding: 0 4px;
  color: var(--text-muted);
  font-size: var(--font-size-sm);
  user-select: none;
}

/* Footer contact (news page extended) */
.footer-contact li {
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
  line-height: 1.65;
}

.footer-contact a {
  color: var(--text-secondary);
}

.footer-contact a:hover {
  color: var(--brand);
}

@media (max-width: 768px) {
  .news-panel {
    padding: 24px 20px 32px;
  }

  .news-item {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .news-tag,
  .news-date {
    justify-self: start;
  }

  .news-hero-deco {
    display: none;
  }

  .news-hero {
    padding-block-end: calc(var(--page-hero-padding-block) + 56px);
  }
}
