:root {
  --bg: #eef3f8;
  --bg-2: #f7fafc;
  --ink: #152033;
  --muted: #5d6b7c;
  --line: rgba(21, 32, 51, 0.08);
  --brand: #1a66ff;
  --brand-deep: #0d3eb8;
  --accent: #ff6a00;
  --surface: rgba(255, 255, 255, 0.86);
  --shadow: 0 18px 50px rgba(21, 48, 99, 0.08);
  --radius: 18px;
  --font: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --display: "ZCOOL XiaoWei", "Noto Sans SC", serif;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: var(--brand);
}

img {
  max-width: 100%;
  height: auto;
}

.page-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 12% -10%, rgba(26, 102, 255, 0.18), transparent 42%),
    radial-gradient(circle at 88% 8%, rgba(255, 106, 0, 0.12), transparent 36%),
    linear-gradient(180deg, #f5f8fc 0%, #e8eef6 48%, #eef3f8 100%);
}

.page-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.35) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.35) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.35), transparent 70%);
  pointer-events: none;
}

.container {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(14px);
  background: rgba(255, 255, 255, 0.78);
  border-bottom: 1px solid var(--line);
}

.brand-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 0 14px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  color: #fff;
  font-family: var(--display);
  font-size: 28px;
  background: linear-gradient(145deg, #3b82ff, #1146d6 55%, #0a2f9b);
  box-shadow: 0 12px 28px rgba(17, 70, 214, 0.28);
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand-text strong {
  font-family: var(--display);
  font-size: 30px;
  font-weight: 400;
  letter-spacing: 0.04em;
  line-height: 1.1;
}

.brand-text em {
  font-style: normal;
  font-size: 12px;
  color: var(--muted);
}

.search {
  flex: 1;
  max-width: 520px;
  display: flex;
  background: #fff;
  border: 1.5px solid rgba(26, 102, 255, 0.28);
  border-radius: 999px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(26, 102, 255, 0.08);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search:focus-within {
  border-color: var(--brand);
  box-shadow: 0 12px 34px rgba(26, 102, 255, 0.16);
}

.search input {
  flex: 1;
  border: 0;
  outline: 0;
  padding: 12px 18px;
  font: inherit;
  background: transparent;
}

.search button {
  border: 0;
  background: linear-gradient(135deg, #2f78ff, #174fd8);
  color: #fff;
  padding: 0 22px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.topic-nav {
  overflow-x: auto;
  scrollbar-width: none;
  border-top: 1px solid var(--line);
}

.topic-nav::-webkit-scrollbar {
  display: none;
}

.topic-track {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 0 12px;
}

.topic-label {
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #ff8a3d, #ff4d00);
  border-radius: 6px;
  padding: 2px 8px;
}

.topic-track a {
  flex: 0 0 auto;
  padding: 6px 12px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  background: rgba(26, 102, 255, 0.05);
  transition: background 0.2s ease, color 0.2s ease;
}

.topic-track a:hover {
  background: rgba(26, 102, 255, 0.12);
  color: var(--brand-deep);
}

.topic-more {
  color: var(--brand) !important;
  font-weight: 600 !important;
  background: transparent !important;
}

.site-main {
  padding: 28px 0 56px;
}

.layout,
.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 28px;
  align-items: start;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.section-head h2,
.side-block h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
}

.lead-story {
  margin-bottom: 18px;
  border-radius: var(--radius);
  overflow: hidden;
  background: #0f1c33;
  box-shadow: var(--shadow);
}

.lead-link {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  min-height: 280px;
  color: #fff;
}

.lead-link:hover {
  color: #fff;
}

.lead-media {
  min-height: 280px;
  background:
    linear-gradient(90deg, rgba(15, 28, 51, 0.15), rgba(15, 28, 51, 0.55)),
    var(--img) center/cover no-repeat;
}

.lead-media-fallback {
  background:
    radial-gradient(circle at 28% 28%, rgba(255, 106, 0, 0.35), transparent 42%),
    linear-gradient(145deg, #1d4ed8, #0f1c33 60%);
}

.lead-body {
  padding: 28px 26px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background:
    linear-gradient(160deg, rgba(17, 34, 64, 0.92), rgba(10, 18, 36, 0.96));
}

.eyebrow {
  margin: 0 0 10px;
  color: #ffb347;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.lead-body h1 {
  margin: 0;
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.35;
  font-weight: 900;
}

.lead-summary {
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
}

.lead-body .meta {
  margin-top: 18px;
  display: flex;
  gap: 14px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 12px;
}

.hot-list {
  list-style: none;
  margin: 0 0 28px;
  padding: 8px 4px;
  display: grid;
  gap: 10px;
}

.hot-list li {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 10px;
  align-items: start;
}

.hot-list .rank {
  width: 22px;
  height: 22px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #ff8a3d, #ff5a00);
}

.hot-list li:nth-child(n + 3) .rank {
  background: #93a0b4;
}

.hot-list a {
  font-weight: 600;
  line-height: 1.45;
}

.feed-head {
  margin-top: 8px;
}

.count-pill {
  font-size: 12px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 10px;
}

.news-feed {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.news-item-inner {
  display: grid;
  grid-template-columns: 148px 1fr;
  gap: 16px;
  padding: 14px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.news-item:hover .news-item-inner {
  transform: translateY(-2px);
  border-color: rgba(26, 102, 255, 0.25);
  box-shadow: var(--shadow);
}

.news-item.no-thumb .news-item-inner {
  grid-template-columns: 1fr;
}

.thumb-link {
  display: block;
}

.thumb {
  width: 148px;
  height: 98px;
  border-radius: 12px;
  background: #d9e4f2 center/cover no-repeat;
}

.news-body h3 {
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.4;
  font-weight: 700;
}

.news-body h3 a:hover {
  color: var(--brand);
}

.news-body p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.summary-link {
  color: var(--muted);
}

.summary-link:hover {
  color: var(--brand-deep);
}

.more-link {
  font-size: 13px;
  color: var(--brand);
  font-weight: 600;
}

.meta {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
}

.tag {
  color: var(--brand-deep);
  background: rgba(26, 102, 255, 0.08);
  border-radius: 999px;
  padding: 1px 8px;
}

.side-block {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 16px;
  margin-bottom: 16px;
  box-shadow: 0 10px 28px rgba(21, 48, 99, 0.04);
}

.hot-words,
.side-list {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
}

.hot-words li,
.side-list li {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 8px;
  align-items: start;
  padding: 9px 0;
  border-bottom: 1px dashed var(--line);
}

.side-list li {
  grid-template-columns: 1fr;
  gap: 4px;
}

.hot-words li:last-child,
.side-list li:last-child {
  border-bottom: 0;
}

.hot-words .num {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
  background: #e8eef8;
  color: var(--muted);
}

.hot-words .num.top {
  background: linear-gradient(135deg, #ff8a3d, #ff4d00);
  color: #fff;
}

.side-list time {
  color: var(--muted);
  font-size: 12px;
}

.pager {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
  color: var(--muted);
}

.pager a,
.pager-current,
.pager-ellipsis {
  min-width: 34px;
  height: 34px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  font-weight: 600;
}

.pager a {
  color: var(--brand);
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--line);
}

.pager-current {
  background: var(--brand);
  color: #fff;
}

.link-box {
  margin-top: 28px;
  padding: 18px 16px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
}

.link-box h2 {
  margin: 0 0 12px;
  font-size: 16px;
}

.link-box-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 16px;
}

.link-box-list a {
  display: block;
  font-size: 13px;
  line-height: 1.45;
  color: #314257;
}

.link-box-list a:hover {
  color: var(--brand);
}

.link-box-more {
  margin: 14px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: var(--muted);
}

.link-box-more a {
  color: var(--brand);
  font-weight: 600;
}

.channel-stats {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
}

.channel-stats li a {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px dashed var(--line);
  color: inherit;
}

.channel-stats li:last-child a {
  border-bottom: 0;
}

.channel-stats em {
  font-style: normal;
  color: var(--muted);
  font-size: 12px;
}

.article-tags {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  font-size: 13px;
  color: var(--muted);
}

.article-tags a {
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(26, 102, 255, 0.08);
  color: var(--brand-deep);
}

.article-nav {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.article-nav-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
}

.article-nav-item span {
  color: var(--muted);
}

.article-nav-item a {
  font-weight: 600;
  line-height: 1.45;
}

.article-nav-item em {
  font-style: normal;
  color: #9aa6b5;
}

.map-page h1 {
  margin: 8px 0 8px;
  font-size: 28px;
}

.map-intro {
  margin: 0 0 22px;
  color: var(--muted);
}

.map-channel-list {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.map-channel-list a {
  display: inline-flex;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
}

.map-channel-list span {
  color: var(--muted);
  font-size: 12px;
}

.map-section {
  margin-bottom: 16px;
}

.article {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 28px 30px 36px;
  box-shadow: var(--shadow);
}

.crumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 18px;
}

.article-title {
  margin: 0;
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.35;
  font-weight: 900;
}

.article-meta {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  color: var(--muted);
  font-size: 13px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.article-body {
  margin-top: 22px;
  font-size: 17px;
  line-height: 1.9;
  color: #243247;
}

.article-body p {
  margin: 0 0 1.1em;
  text-indent: 2em;
}

.article-body img {
  display: block;
  margin: 18px auto;
  border-radius: 12px;
}

.article-body .pictext {
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  text-indent: 0 !important;
}

.empty-state {
  margin-top: 40px;
  padding: 48px 28px;
  text-align: center;
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

.empty-state.compact {
  margin-top: 0;
  padding: 28px;
}

.empty-state code {
  background: #e8eef8;
  padding: 2px 6px;
  border-radius: 6px;
}

.site-footer {
  padding: 36px 0 48px;
  color: var(--muted);
  font-size: 13px;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.55);
}

.footer-grid {
  display: grid;
  grid-template-columns: 180px minmax(0, 1.4fr) 220px;
  gap: 24px;
  margin-bottom: 28px;
}

.footer-grid-2 {
  grid-template-columns: minmax(0, 1.6fr) 260px;
}

.footer-news-2col {
  columns: 2;
  column-gap: 24px;
}

.footer-news-2col li {
  break-inside: avoid;
}

.footer-quick {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
}

.footer-block h3 {
  margin: 0 0 12px;
  font-size: 15px;
  color: var(--ink);
}

.footer-links,
.footer-news {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links li,
.footer-news li {
  margin-bottom: 8px;
}

.footer-links a,
.footer-news a {
  color: #44566c;
  line-height: 1.4;
}

.footer-links a:hover,
.footer-news a:hover {
  color: var(--brand);
}

.footer-links span {
  color: #9aa6b5;
  font-size: 12px;
}

.footer-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.footer-tags a {
  padding: 4px 10px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  color: #44566c;
}

.footer-tags a:hover {
  color: var(--brand);
  border-color: rgba(26, 102, 255, 0.3);
}

.friend-links {
  margin: 8px 0 22px;
  padding: 18px 18px 14px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid rgba(26, 102, 255, 0.18);
  box-shadow: 0 8px 24px rgba(21, 48, 99, 0.05);
}

.friend-links h3 {
  margin: 0 0 12px;
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
}

.friend-links ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
}

.friend-links a {
  color: #2a3b50;
  font-size: 13px;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.friend-links a:hover {
  color: var(--brand);
}

.friend-links-empty {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.friend-links-empty code {
  background: #eef3f8;
  padding: 1px 6px;
  border-radius: 4px;
}

.footer-copy {
  text-align: center;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.footer-inner .copyright,
.footer-inner .copyright-cn {
  margin: 0;
  line-height: 1.8;
}

.footer-inner .copyright-cn {
  margin-top: 4px;
  font-size: 12px;
}

.footer-inner a {
  color: var(--muted);
}

.footer-copy a:hover {
  color: var(--brand-deep);
}

.footer-inner .sep {
  margin: 0 8px;
  opacity: 0.45;
}

.reveal {
  animation: rise 0.55s ease both;
  animation-delay: var(--delay, 0s);
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    animation: none;
  }
}

@media (max-width: 960px) {
  .layout,
  .detail-layout {
    grid-template-columns: 1fr;
  }

  .lead-link {
    grid-template-columns: 1fr;
  }

  .lead-media {
    min-height: 200px;
  }
}

@media (max-width: 720px) {
  .brand-row {
    flex-direction: column;
    align-items: stretch;
  }

  .brand-text strong {
    font-size: 24px;
  }

  .search {
    max-width: none;
  }

  .news-item-inner {
    grid-template-columns: 1fr;
  }

  .thumb {
    width: 100%;
    height: 160px;
  }

  .article {
    padding: 22px 16px 28px;
  }

  .article-body {
    font-size: 16px;
  }

  .article-body p {
    text-indent: 0;
  }

  .link-box-list,
  .article-nav,
  .footer-grid,
  .footer-grid-2 {
    grid-template-columns: 1fr;
  }

  .footer-news-2col {
    columns: 1;
  }
}
