:root {
  --news-accent: var(--site-primary, #b91c1c);
  --news-ink: var(--site-text, #151515);
  --news-muted: #6b625a;
  --news-paper: rgba(255, 255, 255, .92);
  --news-paper-soft: rgba(247, 242, 232, .9);
  --news-line: rgba(88, 72, 54, .22);
  --news-shadow: 0 18px 50px rgba(43, 32, 19, .10);
  --news-serif: Georgia, "Times New Roman", "Noto Serif SC", "Songti SC", serif;
  --news-sans: Gadugi, "Microsoft YaHei UI", system-ui, sans-serif;
}

:root[data-theme="dark"] {
  --news-accent: #f87171;
  --news-ink: #fff1f1;
  --news-muted: #b3919a;
  --news-paper: rgba(17, 17, 17, .9);
  --news-paper-soft: rgba(26, 26, 26, .92);
  --news-line: rgba(248, 113, 113, .2);
  --news-shadow: 0 20px 70px rgba(20, 2, 6, .34);
}

@media (max-width: 768px) {
  :root {
    --news-shadow: 0 8px 24px rgba(43, 32, 19, .08);
  }
  :root[data-theme="dark"] {
    --news-shadow: 0 8px 28px rgba(20, 2, 6, .30);
  }
}

html {
  min-height: 100%;
  font-size: 14px;
  color-scheme: light dark;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }

  .top-stories {
    height: 480px;
    overflow-y: auto;
  }
}

body.news-site {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 12% 0%, rgba(185, 28, 28, .06), transparent 32rem),
    var(--site-bg, #f8f7f3);
  color: var(--news-ink);
  font-family: var(--site-font, var(--news-sans));
  line-height: 1.6;
  display: flex;
  flex-direction: column;
}

:root[data-theme="dark"] body.news-site {
  background: #111111;
}

body.news-site a {
  color: inherit;
}

body.news-site img {
  max-width: 100%;
}

body.news-site .site-container {
  width: min(100% - 40px, var(--site-width, 1140px));
  max-width: var(--site-width, 1140px);
  margin-inline: auto;
}

body.news-site > .site-container,
body.news-site > .container.site-container {
  flex: 1;
}

body.news-site .site-footer {
  margin-top: auto;
  padding: 30px 20px;
  text-align: center;
  background-color: #f9f9f9;
  border-top: 1px solid #e8e8e8;
  color: #666666;
  transition: background-color 0.35s ease, border-color 0.35s ease, color 0.35s ease;
}

:root[data-theme="dark"] body.news-site .site-footer {
  background-color: #1a1a1a;
  border-top-color: #2a2a2a;
  color: #b4a5a8;
}

body.news-site .footer-content p {
  margin: 5px 0;
  color: #666666;
  font-size: 14px;
}

body.news-site .footer-content a {
  color: #666666;
  text-decoration: none;
}

:root[data-theme="dark"] body.news-site .footer-content p {
  color: #b4aea5;
}

:root[data-theme="dark"] body.news-site .footer-content a {
  color: #d9caca;
}

body.news-site .footer-content a:hover {
  text-decoration: underline;
}

main.pb-3 {
  padding-top: clamp(1.5rem, 3vw, 2.5rem);
  padding-bottom: clamp(2rem, 5vw, 4rem) !important;
}

.site-kicker,
.story-label,
.hero-briefing span,
.top-stories h3 {
  font-family: var(--news-sans);
  text-transform: uppercase;
  letter-spacing: .16em;
}

.site-kicker {
  margin-bottom: .55rem;
  color: var(--news-accent);
  font-size: .78rem;
  font-weight: 850;
}

body.news-site .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  padding: .62rem 1.05rem;
  border-radius: 999px;
  font-weight: 850;
  line-height: 1.2;
  text-decoration: none;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

body.news-site .btn-primary {
  color: #ffffff;
  background: var(--news-accent);
  border: 1px solid var(--news-accent);
}

body.news-site .btn-outline-primary {
  color: var(--news-accent);
  background: transparent;
  border: 1px solid var(--news-accent);
}

body.news-site .btn-primary:hover,
body.news-site .btn-outline-primary:hover {
  color: var(--news-paper);
  background: var(--news-ink);
  border-color: var(--news-ink);
}

.site-hero.news-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(190px, 270px);
  gap: clamp(1rem, 3vw, 2rem);
  margin: 1.5rem 0 2rem;
  padding: clamp(1.5rem, 5vw, 4rem);
  overflow: hidden;
  color: var(--news-ink);
  background:
    linear-gradient(120deg, rgba(185, 28, 28, .08), transparent 42%),
    repeating-linear-gradient(0deg, transparent 0 31px, rgba(88, 72, 54, .045) 32px),
    var(--news-paper);
  border: 1px solid var(--news-line);
  border-radius: var(--site-radius, 14px);
  box-shadow: var(--news-shadow);
}

:root[data-theme="dark"] .site-hero.news-hero {
  background:
    linear-gradient(120deg, rgba(248, 113, 113, .16), transparent 48%),
    repeating-linear-gradient(0deg, transparent 0 31px, rgba(248, 113, 113, .045) 32px),
    var(--news-paper);
}

.site-hero.news-hero::before {
  content: "号外";
  position: absolute;
  right: clamp(1rem, 4vw, 3rem);
  top: clamp(.75rem, 3vw, 2rem);
  color: rgba(185, 28, 28, .08);
  font-family: var(--news-serif);
  font-size: clamp(5rem, 15vw, 13rem);
  font-weight: 900;
  line-height: 1;
  pointer-events: none;
}

:root[data-theme="dark"] .site-hero.news-hero::before {
  color: rgba(248, 113, 113, .09);
}

.hero-copy {
  position: relative;
  z-index: 1;
  padding-left: clamp(1rem, 3vw, 1.5rem);
  border-left: 6px solid var(--news-accent);
}

.site-hero h1 {
  max-width: 840px;
  margin: 0;
  font-family: var(--news-serif);
  font-size: clamp(2.5rem, 7vw, 5.8rem);
  font-weight: 950;
  line-height: .95;
  letter-spacing: -.07em;
}

.hero-subtitle-link {
  color: inherit;
  text-decoration: none;
  transition: opacity .2s;
}

.hero-subtitle-link:hover {
  opacity: .75;
}

.site-hero p {
  max-width: 760px;
  color: var(--news-muted);
  font-size: 1.12rem;
}

.hero-featured-title {
  font-size: clamp(1.4rem, 2.5vw, 2rem) !important;
  font-weight: 700;
  margin-bottom: 0;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: .5rem;
}

.hero-actions .btn {
  border-radius: 999px;
  font-weight: 850;
}

.hero-briefing {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 190px;
  padding: 1.25rem;
  background: var(--news-paper-soft);
  border: 1px solid var(--news-line);
  border-radius: calc(var(--site-radius, 14px) * .75);
}

.hero-briefing span {
  color: var(--news-muted);
  font-size: .72rem;
  font-weight: 850;
}

.hero-briefing strong {
  color: var(--news-accent);
  font-family: var(--news-serif);
  font-size: clamp(3rem, 8vw, 5.5rem);
  line-height: .9;
}

.hero-briefing small {
  color: var(--news-muted);
}

.site-section {
  margin: 2rem 0;
}

.custom-html-block,
.empty-state {
  padding: 1.25rem;
  background: var(--news-paper);
  border: 1px solid var(--news-line);
  border-radius: var(--site-radius, 14px);
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
  padding: .85rem 0;
  border-top: 4px double var(--news-ink);
  border-bottom: 1px solid var(--news-line);
}

.section-heading h2 {
  margin: 0;
  font-family: var(--news-serif);
  font-size: clamp(2rem, 5vw, 3.35rem);
  font-weight: 950;
  line-height: .95;
  letter-spacing: -.055em;
}

.section-heading p:last-child {
  max-width: 430px;
  color: var(--news-muted);
}

.news-tools {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: .7rem;
  max-width: 520px;
}

.news-search {
  width: min(100%, 320px);
  padding: .72rem 1rem;
  color: var(--news-ink);
  background: var(--news-paper);
  border: 1px solid var(--news-line);
  border-radius: 999px;
  outline: 0;
}

.news-sort {
  min-height: 2.65rem;
  padding: .58rem 2.25rem .58rem .9rem;
  color: var(--news-ink);
  background: var(--news-paper);
  border: 1px solid var(--news-line);
  border-radius: 999px;
  outline: 0;
}

.view-toggle {
  position: relative;
  display: inline-flex;
  min-height: 2.65rem;
  padding: .2rem;
  overflow: hidden;
  background: var(--news-paper);
  border: 1px solid var(--news-line);
  border-radius: 999px;
}

.view-toggle::before {
  content: "";
  position: absolute;
  top: .2rem;
  bottom: .2rem;
  left: .2rem;
  width: calc(50% - .2rem);
  background: var(--news-accent);
  border-radius: 999px;
  transform: translateX(0);
  transition: transform .24s ease, background-color .24s ease;
}

.view-toggle:has([data-view-mode="list"][aria-pressed="true"])::before {
  transform: translateX(100%);
}

.view-toggle-button {
  position: relative;
  z-index: 1;
  min-width: 3.6rem;
  padding: .42rem .78rem;
  color: var(--news-muted);
  background: transparent;
  border: 0;
  border-radius: 999px;
  font-weight: 850;
  cursor: pointer;
  transition: color .2s ease, transform .2s ease;
}

.view-toggle-button[aria-pressed="true"] {
  color: var(--news-paper);
}

.view-toggle-button:hover {
  transform: translateY(-1px);
}

.news-search:focus,
.news-sort:focus {
  border-color: var(--news-accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--news-accent) 20%, transparent);
}

.news-search::placeholder {
  color: var(--news-muted);
}

.all-posts-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.65rem;
  padding: .58rem .95rem;
  color: var(--news-accent);
  background: color-mix(in srgb, var(--news-accent) 10%, transparent);
  border: 1px solid var(--news-line);
  border-radius: 999px;
  font-weight: 850;
  text-decoration: none;
}

.all-posts-link:hover {
  color: var(--news-paper);
  background: var(--news-accent);
  border-color: var(--news-accent);
}

.archive-list {
  display: grid;
  gap: .75rem;
}

.archive-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
}

.archive-card-grid[data-view="list"] {
  grid-template-columns: 1fr;
  gap: .75rem;
}

.archive-card {
  position: relative;
  min-height: 180px;
  padding: 1.15rem;
  overflow: hidden;
  background: var(--news-paper);
  border: 1px solid var(--news-line);
  border-radius: var(--site-radius, 14px);
  box-shadow: var(--news-shadow);
}

.archive-card::after {
  content: "";
  position: absolute;
  inset: auto 1rem 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--news-accent), transparent);
  opacity: 0;
}

.archive-card:hover {
  background: var(--news-paper-soft);
  border-color: var(--news-accent);
}

.archive-card:hover::after {
  opacity: .9;
}

.archive-card h3 {
  margin: .25rem 0 .65rem;
  font-family: var(--news-serif);
  font-size: clamp(1.18rem, 2.4vw, 1.65rem);
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: -.03em;
}

.archive-card a {
  color: var(--news-ink);
  text-decoration: none;
}

.archive-card a:hover {
  color: var(--news-accent);
}

.archive-card time {
  display: block;
  color: var(--news-muted);
  font-size: .86rem;
}

.archive-card-preview {
  max-height: 0;
  margin: 0;
  overflow: hidden;
  color: var(--news-muted);
  opacity: 0;
  transform: translateY(.35rem);
  transition: max-height .22s ease, margin-top .22s ease, opacity .22s ease, transform .22s ease;
}

.archive-card:hover .archive-card-preview,
.archive-card:focus-within .archive-card-preview {
  max-height: 9rem;
  margin-top: .85rem;
  opacity: 1;
  transform: translateY(0);
}

.archive-card-grid[data-view="list"] .archive-card {
  display: block;
  min-height: 0;
  padding: 1rem 1.15rem;
  box-shadow: none;
}

.archive-card-grid[data-view="list"] .archive-card .story-label {
  display: none;
}

.archive-card-grid[data-view="list"] .archive-card h3 {
  margin: 0;
  font-size: clamp(1.08rem, 2vw, 1.35rem);
}

.archive-card-grid[data-view="list"] .archive-card time {
  margin-top: .35rem;
}

.archive-card-grid[data-view="list"] .archive-card-preview {
  display: -webkit-box;
  max-height: none;
  margin-top: .55rem;
  overflow: hidden;
  opacity: .88;
  transform: none;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.archive-card-grid[data-view="list"] .archive-card:hover .archive-card-preview,
.archive-card-grid[data-view="list"] .archive-card:focus-within .archive-card-preview {
  max-height: none;
  margin-top: .55rem;
  opacity: 1;
  transform: none;
}

.archive-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.15rem;
  background: var(--news-paper);
  border: 1px solid var(--news-line);
  border-radius: var(--site-radius, 14px);
}

.archive-item a {
  color: var(--news-ink);
  font-family: var(--news-serif);
  font-size: clamp(1.08rem, 2vw, 1.35rem);
  font-weight: 900;
  line-height: 1.22;
  text-decoration: none;
}

.archive-item a:hover {
  color: var(--news-accent);
}

.archive-item time {
  flex: 0 0 auto;
  color: var(--news-muted);
  font-size: .86rem;
}

.news-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.75fr) minmax(280px, .9fr);
  gap: 1rem;
  margin-bottom: 1rem;
}

.post-grid.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
}

.post-card,
.post-detail,
.top-stories {
  padding: 1.25rem;
  background: var(--news-paper);
  border: 1px solid var(--news-line);
  border-radius: var(--site-radius, 14px);
  box-shadow: none;
}

.post-card {
  transition: background-color .18s ease, border-color .18s ease, transform .18s ease;
}

.post-card:hover {
  transform: translateY(-2px);
  background: var(--news-paper-soft);
  border-color: var(--news-accent);
}

.lead-story {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  overflow: hidden;
  border-radius: var(--site-radius, 14px) var(--site-radius, 14px) 0 0;
  background:
    linear-gradient(180deg, transparent, rgba(185, 28, 28, .06)),
    var(--news-paper);
}

@media (min-width: 768px) {
  .lead-story {
    height: 480px;
  }
}

.lead-story[style*="background-image"] {
  position: relative;
}

.lead-story[style*="background-image"]::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.55), rgba(0,0,0,.75));
  border-radius: inherit;
}

.lead-story[style*="background-image"] > * {
  position: relative;
  z-index: 1;
}

.lead-story[style*="background-image"] h3 a,
.lead-story[style*="background-image"] .lead-story-summary {
  color: #fff;
}

.lead-story[style*="background-image"] .story-label-inline {
  background: rgba(255,255,255,.2);
  color: #fff;
}

:root[data-theme="dark"] .lead-story {
  background:
    linear-gradient(180deg, transparent, rgba(248, 113, 113, .1)),
    var(--news-paper);
}

.post-card h3,
.top-stories h4,
.post-detail h1 {
  font-family: var(--news-serif);
  font-weight: 900;
}

.lead-story h3 {
  font-size: clamp(1.4rem, 3vw, 2.4rem);
  line-height: 1.1;
  letter-spacing: -.04em;
}

.lead-story-title {
  padding-top: .75rem;
  border-top: 2px solid var(--news-accent);
  margin-top: auto;
}

.lead-story-image-area {
  position: relative;
  width: 100%;
  margin-top: 0;
  overflow: hidden;
  border-radius: calc(var(--site-radius, 14px) * .6) calc(var(--site-radius, 14px) * .6) 0 0;
}

.lead-story:has(.lead-story-image) .lead-story-image-area {
  aspect-ratio: 16 / 9;
}

.lead-story-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.lead-story-label-row {
  position: absolute;
  left: 0;
  bottom: 0;
  display: inline-flex;
  align-items: stretch;
  z-index: 2;
}

.lead-story-image-area .story-label-inline {
  display: inline-flex;
  align-items: center;
  padding: calc(.12rem + 2px) .45rem .12rem;
  color: #fff;
  background: var(--news-accent);
  border-radius: 0;
  font-size: clamp(1.2rem, 2.6vw, 2.2rem);
  font-weight: 900;
  font-family: var(--news-serif);
  line-height: 1;
}

.lead-story-date {
  display: inline-flex;
  align-items: center;
  padding: .12rem .5rem;
  color: #fff;
  background: var(--news-accent);
  border-radius: 0 4px 0 0;
  font-size: .75rem;
  font-weight: 700;
  line-height: 1;
}

:root[data-theme="dark"] .lead-story-image-area .story-label-inline,
:root[data-theme="dark"] .lead-story-date {
  color: #fff;
}

.lead-story-meta {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-bottom: .5rem;
}

.lead-story-meta .story-label-inline {
  display: inline-flex;
  align-items: center;
  padding: calc(.12rem + 2px) .45rem .12rem;
  color: #fff;
  background: var(--news-accent);
  border-radius: 4px;
  font-size: clamp(1.2rem, 2.6vw, 2.2rem);
  font-weight: 900;
  font-family: var(--news-serif);
  line-height: 1;
}

.lead-story-meta .lead-story-date {
  display: inline-flex;
  align-items: center;
  padding: .12rem .5rem;
  color: #fff;
  background: var(--news-accent);
  border-radius: 4px;
  font-size: .75rem;
  font-weight: 700;
  line-height: 1;
}

.lead-story:not(:has(.lead-story-image)) .lead-story-image-area {
  display: none;
}

.lead-story-summary {
  flex: 1;
  font-size: .95rem;
  line-height: 1.7;
  color: var(--news-text-muted, #555);
  display: -webkit-box;
  -webkit-line-clamp: 6;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: pre-line;
  word-break: break-word;
  overflow-wrap: break-word;
}

@media (min-width: 768px) {
  .lead-story-summary {
    -webkit-line-clamp: 4;
  }
}

.lead-story[style*="background-image"] .lead-story-summary {
  border-top-color: rgba(255,255,255,.3);
}

.post-card h3 {
  line-height: 1.13;
  letter-spacing: -.035em;
}

.post-card a,
.top-stories a {
  color: var(--news-ink);
  text-decoration: none;
}

.post-card a:hover,
.top-stories a:hover {
  color: var(--news-accent);
}

.story-label {
  display: inline-flex;
  width: fit-content;
  margin-bottom: .75rem;
  padding: .18rem .52rem;
  color: #fff;
  background: var(--news-accent);
  border-radius: 4px;
  font-size: .68rem;
  font-weight: 900;
}

:root[data-theme="dark"] .story-label {
  color: #1a1a1a;
}

.post-card time,
.post-detail time,
.top-stories time,
.post-meta-line {
  display: block;
  margin-bottom: .75rem;
  color: var(--news-muted);
  font-size: .86rem;
}

.post-meta-line {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .45rem .85rem;
  padding-bottom: .85rem;
  border-bottom: 1px solid var(--news-line);
}

.post-meta-line time {
  display: inline;
  margin: 0;
}

.post-category {
  display: inline-block;
  padding: .12rem .45rem;
  background: rgba(185, 28, 28, .08);
  color: var(--news-accent, #b91c1c);
  font-size: .75rem;
  font-weight: 600;
  border-radius: 3px;
  letter-spacing: .02em;
}

:root[data-theme="dark"] .post-category {
  background: rgba(248, 113, 113, .15);
  color: #f87171;
}

.news-fiction-notice {
  margin: .35rem 0 1rem;
  padding: .42rem .65rem;
  color: #991b1b;
  background: #fff1f2;
  border: 1px solid rgba(185, 28, 28, .28);
  border-left: 4px solid #b91c1c;
  border-radius: 6px;
  font-size: .78rem;
  font-weight: 800;
  line-height: 1.65;
}

.post-detail .news-fiction-notice {
  margin-top: -.35rem;
  margin-bottom: 1.25rem;
}

:root[data-theme="dark"] .news-fiction-notice {
  color: #fecdd3;
  background: rgba(127, 29, 29, .22);
  border-color: rgba(248, 113, 113, .32);
  border-left-color: #f87171;
}

.post-author {
  color: var(--news-muted);
}

.post-card p {
  color: var(--news-muted);
}

.top-stories {
  background: var(--news-paper-soft);
}

.top-stories h3 {
  margin-bottom: .45rem;
  font-size: 1.6rem;
  font-weight: 900;
}

.top-stories article {
  padding: .85rem 0;
  border-top: 1px solid var(--news-line);
}

.top-stories h4 {
  margin-bottom: .1rem;
  font-size: 1.12rem;
  line-height: 1.22;
}

.top-stories .post-meta-line {
  padding-bottom: .45rem;
  margin-bottom: 0;
}

.post-detail {
  max-width: 860px;
  margin: 2rem auto;
}

.post-detail h1 {
  margin: 1.5rem 0;
  font-size: clamp(2rem, 4.5vw, 3.65rem);
  line-height: 1.05;
  letter-spacing: -.045em;
}

.post-content {
  margin-top: 1.5rem;
  line-height: 1.86;
}

/* 确保所有段落有最小高度，包括只包含 &nbsp; 的空段落 */
.post-content p {
  min-height: 1em;
  margin-bottom: 1em;
}

.post-content p:empty::after {
  content: "\00a0";
}

.post-nav {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--news-border, #e0e0e0);
  display: flex;
  flex-direction: column;
  gap: .6rem;
}

.post-nav-item {
  font-size: .95rem;
  line-height: 1.6;
}

.post-nav-label {
  font-weight: 600;
  color: var(--news-text-muted, #666);
}

.post-nav-link {
  color: var(--news-accent);
  text-decoration: none;
  transition: opacity .2s;
}

.post-nav-link:hover {
  opacity: .75;
}

.post-nav-none {
  color: var(--news-text-muted, #999);
}

.news-content :is(h2, h3, h4) {
  margin-top: 2rem;
  font-family: var(--news-serif);
  font-weight: 900;
}

.news-content ul,
.news-content ol {
  padding-left: 1.8rem;
  margin: 1rem 0;
}

.news-content li {
  margin-bottom: .45rem;
  overflow-wrap: break-word;
  word-break: break-word;
}

.news-content :is(img, video, iframe) {
  max-width: 100%;
  border-radius: var(--site-radius, 14px);
}

.news-content blockquote {
  padding: 1rem 1.25rem;
  border-left: .35rem solid var(--news-accent);
  background: var(--news-paper-soft);
}

.news-content table {
  width: 100%;
  margin: 1.25rem 0;
  border-collapse: collapse;
}

.news-content th,
.news-content td {
  padding: .75rem;
  border: 1px solid var(--news-line);
}

.news-content pre {
  padding: 1rem;
  overflow-x: auto;
  color: #e5e7eb;
  background: #111827;
  border-radius: 8px;
}

@media (max-width: 768px) {
  .site-hero.news-hero,
  .news-layout {
    grid-template-columns: 1fr;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .news-tools,
  .news-search {
    width: 100%;
    justify-content: flex-start;
  }

  .sort-form,
  .news-sort,
  .all-posts-link {
    width: 100%;
  }

  .archive-item {
    align-items: flex-start;
    flex-direction: column;
  }

  .lead-story {
    min-height: 0;
  }

  body.news-site .site-footer {
    padding: 10px 12px;
  }

  body.news-site .footer-content p {
    font-size: 12px;
    margin: 1px 0;
  }
}

/* ── News-site-only dark mode navbar overrides ── */
:root[data-theme="dark"] body.news-site .site-navbar {
  background: linear-gradient(90deg, #1a0808, #221012 50%, #1a0808) !important;
  border-bottom-color: rgba(248, 113, 113, .18) !important;
}

:root[data-theme="dark"] body.news-site .site-title {
  color: #fff1f1 !important;
}

:root[data-theme="dark"] body.news-site .nav-link {
  color: #d5a9a9 !important;
}

:root[data-theme="dark"] body.news-site .nav-link:hover,
:root[data-theme="dark"] body.news-site .nav-link.active {
  color: #f87171 !important;
  border-bottom-color: #f87171 !important;
}

:root[data-theme="dark"] body.news-site .mobile-menu-btn span {
  background-color: #fff1f1 !important;
}

@media (max-width: 768px) {
  :root[data-theme="dark"] body.news-site .navbar-right {
    background: linear-gradient(180deg, #1a0808, #221012) !important;
    border-bottom-color: rgba(248, 113, 113, .18) !important;
  }

  :root[data-theme="dark"] body.news-site .nav-link {
    border-bottom-color: rgba(248, 113, 113, .12) !important;
  }

  /* 手机端隐藏视图切换按钮 */
  .view-toggle {
    display: none;
  }

  /* 手机端所有文章页默认列表样式 */
  .all-news-section .archive-card-grid {
    grid-template-columns: 1fr;
    gap: .75rem;
  }

  .all-news-section .archive-card-grid .archive-card {
    display: block;
    min-height: 0;
    padding: 1rem 1.15rem;
    box-shadow: none;
  }

  .all-news-section .archive-card-grid .archive-card .story-label {
    display: none;
  }

  .all-news-section .archive-card-grid .archive-card h3 {
    margin: 0;
    font-size: clamp(1.08rem, 2vw, 1.35rem);
  }

  .all-news-section .archive-card-grid .archive-card time {
    margin-top: .35rem;
  }

  .all-news-section .archive-card-grid .archive-card-preview {
    display: -webkit-box;
    max-height: none;
    margin-top: .55rem;
    overflow: hidden;
    opacity: .88;
    transform: none;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  /* 手机端首页最新文章使用列表样式 */
  .news-section > .archive-card-grid {
    grid-template-columns: 1fr;
    gap: .75rem;
  }

  .news-section > .archive-card-grid .archive-card {
    display: block;
    min-height: 0;
    padding: 1rem 1.15rem;
    box-shadow: none;
  }

  .news-section > .archive-card-grid .archive-card .story-label {
    display: none;
  }

  .news-section > .archive-card-grid .archive-card h3 {
    margin: 0;
    font-size: clamp(1.08rem, 2vw, 1.35rem);
  }

  .news-section > .archive-card-grid .archive-card time {
    margin-top: .35rem;
  }

  .news-section > .archive-card-grid .archive-card-preview {
    display: -webkit-box;
    max-height: none;
    margin-top: .55rem;
    overflow: hidden;
    opacity: .88;
    transform: none;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }
}
