/* 最新公告: the home page's board, news.html's list and a post */
.nbadge {
  display: inline-grid; place-items: center; min-width: 46px; padding: 2px 8px; border-radius: 7px; flex: none;
  font-weight: 700; font-size: 13px; line-height: 1.6; color: #fff; background: var(--ink);
}
.nbadge.c-update { background: var(--lagoon-bright); }
.nbadge.c-event { background: var(--coral); }
.nbadge.c-news { background: var(--sun); color: var(--sun-ink); }
.nbadge.c-system { background: #7a8fa0; }
.npin { font-style: normal; font-size: 12px; font-weight: 700; color: var(--stamp); border: 1.5px solid currentColor; border-radius: 5px; padding: 0 5px; margin-right: 8px; vertical-align: 2px; }
.ntabs { display: flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: 14px; background: rgba(18, 52, 77, 0.06); width: fit-content; }
.ntabs button {
  padding: 6px 16px; border: 0; border-radius: 10px; background: transparent; font-weight: 700; font-size: 15px; color: var(--muted);
  transition: background 0.2s, color 0.2s;
}
.ntabs button:hover { color: var(--lagoon); }
.ntabs button[aria-selected='true'] { background: #fff; color: var(--ink); box-shadow: 0 2px 0 rgba(18, 52, 77, 0.12), 0 4px 10px rgba(10, 50, 80, 0.08); }
.ntabs.big { margin: 0 auto 28px; }
.ntabs.big button { padding: 8px 22px; font-size: 16px; }
.nempty { list-style: none; padding: 24px; text-align: center; color: var(--muted); }

/* the board on the home page */
.news-home { padding: 64px 0 80px; }
.news-board {
  display: grid; grid-template-columns: 1fr 1.25fr; gap: 28px; padding: 22px; border-radius: 26px; background: #fff;
  border: 1px solid var(--line); box-shadow: var(--shadow-panel);
}
.nfeature { position: relative; display: block; min-height: 300px; border-radius: 18px; overflow: hidden; text-decoration: none; background: var(--ink); }
.nf-img { position: absolute; inset: 0; background: center / cover; transition: transform 0.6s var(--out); }
.nfeature:hover .nf-img { transform: scale(1.05); }
.nf-body {
  position: absolute; left: 0; right: 0; bottom: 0; display: grid; gap: 6px; justify-items: start; padding: 110px 20px 18px; color: #fff;
  background: linear-gradient(rgba(8, 24, 36, 0), rgba(8, 24, 36, 0.82) 45%, rgba(8, 24, 36, 0.94));
}
.nf-body b { text-shadow: 0 2px 6px rgba(0, 0, 0, 0.5); font-family: var(--font-display); font-weight: 400; font-size: 22px; line-height: 1.35; }
.nf-body small { font-size: 14px; color: #d7e4ec; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.nf-body time { font-size: 13px; color: #b3c7d4; }
.nb-main { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.nb-head { display: flex; align-items: center; gap: 12px; }
.nb-title { display: flex; align-items: center; gap: 10px; font-size: 30px; }
.nb-title img { width: 40px; height: 40px; }
.nb-more { margin-left: auto; font-weight: 700; font-size: 14px; color: var(--muted); text-decoration: none; white-space: nowrap; }
.nb-more b { display: inline-grid; place-items: center; width: 22px; height: 22px; margin-left: 4px; border-radius: 6px; background: var(--shallow); color: var(--lagoon); }
.nb-more:hover { color: var(--lagoon); }
.nlist { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.nlist li { border-bottom: 1px dashed var(--line); }
.nrow { display: flex; align-items: center; gap: 12px; padding: 12px 6px; text-decoration: none; transition: background 0.2s, padding 0.2s; }
.nrow:hover { background: var(--shallow); padding-left: 12px; }
.ntitle { flex: 1; min-width: 0; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nrow:hover .ntitle { color: var(--lagoon); }
.ndate { flex: none; font-size: 14px; color: var(--muted); }

/* news.html */
.page-hero.slim { padding-bottom: 40px; }
.page-hero.slim .wrap { grid-template-columns: 1fr; }
.news-page { padding-top: 40px; }
.news-page .ntabs.big { display: flex; }
.ncards { list-style: none; margin: 0 auto; padding: 0; display: grid; gap: 16px; max-width: 920px; }
.ncard {
  display: grid; grid-template-columns: 240px 1fr; gap: 20px; padding: 14px; border-radius: 20px; background: #fff; text-decoration: none;
  border: 1px solid var(--line); box-shadow: var(--shadow-float); transition: transform 0.25s var(--spring), box-shadow 0.25s;
}
.ncard:hover { transform: translateY(-4px); box-shadow: 0 16px 30px rgba(10, 50, 80, 0.18); }
.nc-img { aspect-ratio: 16 / 9; border-radius: 14px; background: var(--ink) center / cover; }
.nc-body { display: flex; flex-direction: column; gap: 6px; padding: 4px 6px 4px 0; min-width: 0; }
.nc-meta { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--muted); }
.nc-body b { font-family: var(--font-display); font-weight: 400; font-size: 22px; line-height: 1.35; }
.ncard:hover .nc-body b { color: var(--lagoon); }
.nc-body small { color: var(--muted); font-size: 15px; line-height: 1.6; }

/* one post */
.narticle { max-width: 860px; margin: 0 auto; padding: clamp(22px, 4vw, 48px); border-radius: 26px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-panel); }
.na-back { display: inline-block; margin-bottom: 18px; font-weight: 700; color: var(--lagoon); text-decoration: none; }
.na-head { display: grid; justify-items: start; gap: 10px; padding-bottom: 20px; border-bottom: 2px solid var(--ink); }
.na-head h1 { font-size: clamp(28px, 3.6vw, 40px); }
.na-head time { color: var(--muted); font-size: 15px; }
.na-body { padding-top: 10px; font-size: 17px; color: var(--ink-2); }
.na-body h2 { font-size: 26px; margin: 36px 0 12px; padding-left: 14px; border-left: 6px solid var(--sun); }
.na-body h3 { font-size: 20px; margin: 26px 0 8px; color: var(--lagoon); }
.na-body p { margin: 0 0 14px; }
.na-body ul { margin: 0 0 16px; padding-left: 1.3em; }
.na-body li { margin: 4px 0; }
.na-body li::marker { color: var(--lagoon-bright); }
.na-body a { color: var(--lagoon); font-weight: 700; }
.na-body code { font-family: var(--font-num); font-weight: 700; color: var(--lagoon); background: var(--shallow); padding: 1px 6px; border-radius: 5px; }
.na-body blockquote { margin: 16px 0; padding: 12px 16px; border-radius: 12px; background: var(--sand); color: var(--ink-2); font-size: 15px; }
.na-body figure { margin: 20px 0; }
.na-body figure video, .na-body figure img { width: 100%; border-radius: 14px; box-shadow: 0 0 0 4px #fff, 0 10px 24px rgba(10, 50, 80, 0.2); }
.na-body figcaption { margin-top: 8px; font-size: 13px; color: var(--muted); text-align: center; }
.na-body hr { border: 0; border-top: 1px dashed var(--line); margin: 28px 0; }
.na-navs { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 36px; padding-top: 20px; border-top: 1px dashed var(--line); }
.na-nav { display: grid; gap: 2px; padding: 12px 16px; border-radius: 14px; background: var(--shallow); text-decoration: none; }
.na-nav:last-child:not(:first-child) { text-align: right; }
.na-nav small { color: var(--muted); font-size: 13px; }
.na-nav b { font-size: 15px; }
.na-nav:hover b { color: var(--lagoon); }

@media (max-width: 960px) {
  .news-board { grid-template-columns: 1fr; }
  .nfeature { min-height: 240px; }
}
@media (max-width: 600px) {
  .news-board { padding: 14px; }
  .nb-title { font-size: 24px; }
  .ntabs { flex-wrap: nowrap; max-width: 100%; }
  .ntabs button, .ntabs.big button { padding: 6px 11px; font-size: 14px; }
  .nrow { flex-wrap: wrap; gap: 6px 10px; }
  .ntitle { flex-basis: 100%; order: 3; white-space: normal; }
  .ncard { grid-template-columns: 1fr; }
  .na-navs { grid-template-columns: 1fr; }
}
