[data-muqi-template=news],
[data-muqi-template=article] {
  --news-ink: #182c43;
  --news-copy: #35495d;
  --news-muted: #536779;
  --news-accent: #125b98;
  --news-border: #dce5ee;
  --news-tint: #f3f7fb;
  --news-gutter: clamp(16px, 4vw, 40px);
}

[data-muqi-template=news]:has(.muqi-header) .page1-box:has(.page1-p) {
  box-sizing: border-box;
  display: grid;
  min-height: 0;
  align-items: center;
  isolation: isolate;
  padding: clamp(94px, 12vw, 148px) var(--news-gutter) clamp(30px, 6vw, 72px);
  background: #193f5d;
}
[data-muqi-template=news]:has(.muqi-header) .page1-box:has(.page1-p) > .page1-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}
[data-muqi-template=news]:has(.muqi-header) .page1-box:has(.page1-p)::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #102a43ed, #102a437a);
  z-index: -1;
}
[data-muqi-template=news]:has(.muqi-header) .page1-box .page1-ok {
  position: relative;
  width: min(100%, 1080px);
  min-width: 0;
  margin: 0 auto;
}
[data-muqi-template=news] .page1-p {
  position: static;
  width: auto;
  max-width: 42rem;
  text-align: left;
}
[data-muqi-template=news] .page1-p h1 {
  color: #fff;
  font: 700 clamp(30px, 5vw, 50px)/1.15 system-ui, sans-serif;
  margin: 0 0 12px;
}
[data-muqi-template=news] .page1-p p {
  color: #f0f5fb;
  font-size: clamp(15px, 2vw, 18px);
  line-height: 1.65;
  letter-spacing: normal;
  margin: 0;
}

.news-archive,
.news-reading {
  box-sizing: border-box;
  width: min(1080px, calc(100% - var(--news-gutter) * 2));
  margin-inline: auto;
  color: var(--news-ink);
}
.news-archive { padding: clamp(22px, 4vw, 44px) 0 clamp(30px, 5vw, 56px); }
.news-topics {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-bottom: 16px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--news-border);
}
.news-topics a,
.news-archive .pagination > li > a {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 6px 14px;
  border: 1px solid var(--news-border);
  border-radius: 8px;
  color: var(--news-ink);
  text-decoration: none;
  font-size: 14px;
  line-height: 1.3;
}
.news-topics a:hover,
.news-archive .pagination > li > a:hover { color: var(--news-accent); background: var(--news-tint); }
.news-topics a[aria-current],
.news-archive .pagination > li > a[aria-current] {
  color: #fff;
  background: var(--news-accent);
  border-color: var(--news-accent);
}
.news-cards { display: grid; list-style: none; padding: 0; margin: 0; }
.news-card {
  display: grid;
  grid-template-columns: minmax(0, 216px) minmax(0, 1fr);
  align-items: start;
  gap: clamp(16px, 3vw, 32px);
  padding-block: 20px;
  border-bottom: 1px solid var(--news-border);
}
.news-card-cover {
  display: block;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  border-radius: 10px;
  background: var(--news-tint);
}
.news-card-cover img { display: block; width: 100%; height: 100%; object-fit: cover; }
.news-card-copy { min-width: 0; overflow-wrap: anywhere; }
.news-card h3 {
  font-size: clamp(19px, 2.5vw, 25px);
  line-height: 1.35;
  font-weight: 700;
  margin: 8px 0 0;
}
.news-card h3 a { color: var(--news-ink); text-decoration: none; }
.news-card h3 a:hover { color: var(--news-accent); text-decoration: underline; text-underline-offset: 3px; }
.news-card-summary {
  color: var(--news-copy);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  margin: 8px 0 0;
  font-size: 15px;
  line-height: 1.55;
}
.news-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
  color: var(--news-muted);
  font-size: 13px;
  line-height: 1.5;
}
.news-meta:empty,
.news-meta > :empty,
.news-reading-count:has(.art_browse:empty) { display: none; }
.news-category {
  padding: 3px 8px;
  border-radius: 5px;
  background: var(--news-tint);
  color: var(--news-accent);
  font-weight: 650;
}
.news-archive .pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  padding: 0;
  margin: 24px 0 0;
}
.news-archive .pagination > li > a { margin: 0; min-width: 44px; padding-inline: 9px; float: none; }
.news-archive #pagination:empty { display: none; }

.news-reading {
  width: min(780px, calc(100% - var(--news-gutter) * 2));
  padding-top: calc(var(--muqi-mobile-header, 90px) + clamp(16px, 4vw, 40px));
}
.news-breadcrumb a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-bottom: 10px;
  color: var(--news-accent);
  font-size: 14px;
  text-decoration: none;
}
.news-breadcrumb a:hover { text-decoration: underline; }
.news-reading .art_title {
  margin: 0 0 16px;
  color: var(--news-ink);
  text-align: left;
  font-size: clamp(28px, 5vw, 48px);
  font-weight: 750;
  line-height: 1.2;
  overflow-wrap: anywhere;
}
.news-reading .news-meta { padding-bottom: 18px; border-bottom: 1px solid var(--news-border); }
.news-reading .art_desc {
  margin: 24px 0 0;
  padding: 15px 18px;
  border-inline-start: 3px solid #4284bb;
  border-radius: 5px;
  color: var(--news-copy);
  background: var(--news-tint);
  font-size: 15px;
  line-height: 1.65;
  overflow-wrap: anywhere;
}
.news-reading .art_desc p { margin: 4px 0 0; }
.news-reading .art_con {
  margin-top: 24px;
  color: var(--news-copy);
  font: clamp(16px, 2vw, 18px)/1.8 system-ui, sans-serif;
  overflow-wrap: anywhere;
}
.news-reading .art_con :is(p, ul, ol, dl, pre, blockquote, table) { margin: 0 0 1em; }
.news-reading .art_con :is(h1, h2, h3, h4, h5, h6) {
  margin: 1.45em 0 .5em;
  line-height: 1.4;
  font-weight: 700;
  color: var(--news-ink);
}
.news-reading .art_con :is(h1, h2) { font-size: 1.38em; }
.news-reading .art_con h3 { font-size: 1.2em; }
.news-reading .art_con :is(h4, h5, h6) { font-size: 1.05em; }
.news-reading .art_con > :first-child { margin-top: 0; }
.news-reading .art_con a,
.news-reading .caveat a { color: var(--news-accent); text-decoration: underline; text-underline-offset: 3px; }
.news-reading .art_con :is(ul, ol) { padding-inline-start: 1.45em; }
.news-reading .art_con ul { list-style: disc outside; }
.news-reading .art_con ol { list-style: decimal outside; }
.news-reading .art_con li { display: list-item; list-style: inherit; }
.news-reading .art_con li + li { margin-top: .25em; }
.news-reading .art_con li > p { margin: 0; }
.news-reading .art_con blockquote { border-inline-start: 3px solid var(--news-border); padding: 8px 0 8px 16px; }
.news-reading .art_con blockquote > :last-child { margin-bottom: 0; }
.news-reading .art_con img { max-width: 100%; height: auto; border-radius: 8px; vertical-align: middle; }
.news-reading .art_con img:only-child, .news-reading .art_con > img { display: block; margin: 1em auto; }
.news-reading .art_con :is(table, pre) {
  display: block;
  box-sizing: border-box;
  max-width: 100%;
  overflow: auto;
  overscroll-behavior-inline: contain;
}
.news-reading .art_con pre { padding: 12px; border-radius: 6px; background: var(--news-tint); white-space: pre; }
.news-reading .art_con pre code { white-space: inherit; }
.news-reading .art_con table { border-collapse: collapse; }
.news-reading .art_con :is(th, td) { padding: 8px 10px; min-width: 72px; border: 1px solid var(--news-border); }
.news-reading .art_con th { background: var(--news-tint); color: var(--news-ink); }
.news-reading .art_con hr { margin: 1.6em 0; border: 0; border-top: 1px solid var(--news-border); }
.news-reading .caveat { color: var(--news-muted); font-size: 13px; line-height: 1.6; margin: 24px 0 0; }
.news-reading .bottom_label { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 18px 0 0; font-size: 13px; }
.news-reading .bottom_label:empty { display: none; }
.news-reading .bottom_label a { color: var(--news-accent); background: var(--news-tint); border-radius: 6px; padding: 6px 9px; }
.news-reading .next-previous { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 10px; margin-top: 24px; }
.news-reading .next-previous p { padding: 12px 14px; margin: 0; border: 1px solid var(--news-border); border-radius: 8px; }
.news-reading .next-previous p:empty { display: none; }
.news-reading .next-previous span { display: block; color: var(--news-muted); font-size: 13px; margin-bottom: 3px; }
.news-reading .next-previous a { color: var(--news-accent); font-size: 15px; overflow-wrap: anywhere; }
[data-muqi-template=article] .muqi-seo-related { width: min(780px, calc(100% - var(--news-gutter) * 2)); }
[data-muqi-template=article] .muqi-seo-related h2 { font-size: 18px; }

@media(max-width: 600px) {
  .news-topics { gap: 6px; }
  .news-topics a { padding-inline: 9px; font-size: 13px; }
  .news-card { grid-template-columns: 88px minmax(0, 1fr); gap: 12px; padding-block: 15px; }
  .news-card-cover { aspect-ratio: 1; border-radius: 7px; }
  .news-card .news-meta { font-size: 12px; gap: 3px 7px; }
  .news-card h3 { font-size: 17px; margin-top: 5px; }
  .news-card-summary { font-size: 14px; margin-top: 5px; -webkit-line-clamp: 2; }
}
