:root {
  --news-bg: #ffffff;
  --news-card: #f6f0e6;
  --news-text: #111111;
  --news-accent: #111111;
  --news-muted: #5f6368;
  --news-border: #eadfce;
}

body.news-body {
  margin: 0;
  background: var(--news-bg);
  color: var(--news-text);
  font-family: "Noto Sans TC", "Source Han Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
}

.page-shell {
  max-width: 1320px;
  margin: 0 auto;
  padding: 86px 24px 80px;
}

.news-title {
  text-align: center;
  font-size: 28px;
  letter-spacing: 0.06em;
  margin: 10px 0 32px;
  color: var(--news-accent);
}

.masonry {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
}

.masonry-item {
  text-decoration: none;
  color: inherit;
  width: min(360px, 100%);
  margin-bottom: 12px;
  background-color: var(--news-card);
  padding: 18px;
  border-radius: 14px;
  border: 1px solid var(--news-border);
  box-shadow: 0 10px 24px rgba(15, 22, 31, 0.08);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.masonry-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 32px rgba(15, 22, 31, 0.12);
}

.masonry-item img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  margin-bottom: 12px;
  display: block;
}

.masonry-item .content {
  padding: 4px 6px 8px;
}

.masonry-item h3 {
  font-size: 20px;
  margin: 0 0 10px;
  color: #1f2328;
}

.masonry-item h3 a {
  color: inherit;
  text-decoration: none;
}

.masonry-item p {
  font-size: 15px;
  color: var(--news-muted);
  margin: 0;
  line-height: 1.6;
}

@media (max-width: 768px) {
  .page-shell {
    padding: 72px 16px 64px;
  }

  .news-title {
    font-size: 22px;
  }

  .masonry {
    flex-direction: column;
    align-items: center;
  }
}
