* {
  box-sizing: border-box;
}

:root {
  --red: #bd3b2b;
  --dark: #0c1824;
  --muted: #5f6874;
  --line: #e4e4e4;
  --nav-bg: #f4f4f6;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--dark);
  background: #ffffff;
  font-family: "Noto Serif SC", "Songti SC", "SimSun", serif;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  border: 0;
  font: inherit;
  cursor: pointer;
}

.shell {
  width: min(1575px, calc(100% - 48px));
  margin: 0 auto;
}

.topbar {
  height: 62px;
  background: var(--nav-bg);
  border-bottom: 1px solid #d6d6d6;
  box-shadow: inset 0 -5px 0 #ffffff, inset 0 -7px 0 #bfbfbf;
  font-family: "Noto Sans SC", "Microsoft YaHei", Arial, sans-serif;
}

.nav {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  height: 62px;
  overflow: hidden;
  white-space: nowrap;
}

.nav a,
.ai-mark,
.menu-button {
  height: 55px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #111923;
  font-size: 18px;
  line-height: 1;
}

.nav > a {
  padding: 0 22px;
}

.chevron {
  width: 8px;
  height: 8px;
  margin-left: 6px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
}

.ai-mark {
  width: 58px;
  color: #7e5bf4;
  background: transparent;
  position: relative;
  font-weight: 800;
  font-size: 20px;
}

.ai-mark::before {
  content: "";
  position: absolute;
  width: 34px;
  height: 34px;
  border: 4px solid #8a65f5;
  border-radius: 50%;
}

.ai-mark::after {
  content: "+";
  position: absolute;
  top: 11px;
  right: 10px;
  color: #8a65f5;
  font-size: 18px;
  font-weight: 900;
}

.menu-button {
  width: 62px;
  flex: 0 0 62px;
  gap: 5px;
  flex-direction: column;
  background: #eeeeef;
}

.menu-button span {
  width: 25px;
  height: 2px;
  background: #1d2228;
}

.login {
  width: 64px;
  flex: 0 0 64px;
  background: #e6e6e8;
}

.lead {
  text-align: center;
  padding: 40px 0 31px;
  border-bottom: 1px solid #e9e9e9;
}

.lead h1 {
  margin: 0;
  color: var(--red);
  font-family: "Noto Sans SC", "Microsoft YaHei", Arial, sans-serif;
  font-size: 48px;
  line-height: 1.15;
  font-weight: 900;
}

.topic-line {
  width: min(1420px, 100%);
  min-height: 52px;
  margin: 18px auto 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.8;
}

.topic-line a {
  margin: 0 10px;
}

.news-stage {
  display: grid;
  grid-template-columns: 476px 1fr;
  gap: 27px;
  padding-top: 27px;
}

.headline-column {
  min-width: 0;
  padding: 0 14px 0 0;
  border-right: 1px solid #ececec;
  overflow: hidden;
}

.main-headline {
  display: block;
  margin: 4px 0 15px;
  color: #07121d;
  font-family: "Noto Sans SC", "Microsoft YaHei", Arial, sans-serif;
  font-size: 27px;
  line-height: 1.25;
  font-weight: 900;
}

.primary-links,
.secondary-links {
  display: grid;
}

.primary-links a,
.secondary-links a {
  display: block;
  color: #3f4954;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.primary-links a {
  font-size: 21px;
  line-height: 2.08;
}

.tag-links {
  display: grid;
  gap: 10px;
  margin: 5px 0 7px;
}

.tag-links a {
  display: flex;
  align-items: center;
  min-height: 34px;
  color: #3e4751;
  font-size: 19px;
}

.tag-links span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  min-width: 64px;
  margin-right: 11px;
  color: #ffffff;
  background: var(--red);
  border-radius: 3px;
  font-family: "Noto Sans SC", "Microsoft YaHei", Arial, sans-serif;
  font-size: 20px;
  font-weight: 800;
}

.tag-links b {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 400;
}

.red-features {
  display: grid;
  margin: 4px 0 10px;
  border-top: 3px solid #bfbfbf;
  border-bottom: 3px solid #bfbfbf;
}

.red-features a {
  height: 48px;
  display: flex;
  align-items: center;
  color: var(--red);
  border-bottom: 1px solid #d2d2d2;
  font-family: "Noto Sans SC", "Microsoft YaHei", Arial, sans-serif;
  font-size: 23px;
  line-height: 1.15;
  font-weight: 900;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.red-features a:last-child {
  border-bottom: 0;
}

.secondary-links {
  gap: 0;
}

.secondary-links a {
  font-size: 20px;
  line-height: 2.02;
}

.ticker {
  display: flex;
  align-items: center;
  height: 35px;
  margin-top: 6px;
  color: #3f4853;
  overflow: hidden;
  border-top: 1px solid #dcdcdc;
  font-size: 18px;
}

.ticker strong {
  margin-right: 16px;
  color: #111923;
  font-family: "Noto Sans SC", "Microsoft YaHei", Arial, sans-serif;
  font-weight: 800;
  white-space: nowrap;
}

.ticker span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.carousel {
  position: relative;
  height: 697px;
  overflow: hidden;
  background: #111820;
}

.carousel img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

.slide-shade {
  position: absolute;
  inset: auto 0 0;
  height: 150px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.68));
  pointer-events: none;
}

.slide-meta {
  position: absolute;
  left: 31px;
  right: 31px;
  bottom: 28px;
  display: grid;
  grid-template-columns: 120px 1fr 120px;
  align-items: center;
  color: #ffffff;
  font-family: "Noto Sans SC", "Microsoft YaHei", Arial, sans-serif;
}

.slide-count {
  font-size: 31px;
  font-weight: 300;
}

.slide-meta a {
  justify-self: center;
  max-width: 760px;
  overflow: hidden;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 23px;
  line-height: 1.25;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.slide-control {
  position: absolute;
  z-index: 2;
  top: 50%;
  width: 48px;
  height: 78px;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.16);
  transform: translateY(-50%);
  font-size: 68px;
  line-height: 0.75;
  font-family: Arial, sans-serif;
}

.slide-control:hover {
  background: rgba(0, 0, 0, 0.28);
}

.prev {
  left: 14px;
}

.next {
  right: 14px;
}

.archive {
  padding: 46px 0 72px;
}

.section-title {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 18px;
  border-top: 3px solid #c9c9c9;
  padding-top: 14px;
}

.section-title h2 {
  margin: 0;
  color: var(--red);
  font-family: "Noto Sans SC", "Microsoft YaHei", Arial, sans-serif;
  font-size: 28px;
  line-height: 1;
}

.section-title span {
  color: #9a9a9a;
  font-size: 14px;
  font-family: Arial, sans-serif;
}

.article-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.article-card {
  min-width: 0;
  border: 1px solid #e2e2e2;
  border-radius: 6px;
  overflow: hidden;
  background: #ffffff;
}

.article-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  display: block;
  object-fit: cover;
  background: #f0f0f0;
}

.card-fallback {
  width: 100%;
  aspect-ratio: 16 / 10;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: linear-gradient(135deg, #b93c2d, #1d2b3a);
  font-family: Arial, sans-serif;
  font-size: 32px;
  font-weight: 700;
}

.article-card .card-body {
  padding: 15px 16px 16px;
}

.article-card h3 {
  min-height: 52px;
  margin: 0 0 10px;
  color: #111923;
  font-family: "Noto Sans SC", "Microsoft YaHei", Arial, sans-serif;
  font-size: 18px;
  line-height: 1.45;
}

.article-card p {
  height: 68px;
  margin: 0;
  color: #5a6570;
  overflow: hidden;
  font-size: 15px;
  line-height: 1.55;
}

.article-card time {
  display: block;
  margin-top: 12px;
  color: #9b9b9b;
  font-family: Arial, sans-serif;
  font-size: 13px;
}

.article-dialog {
  width: min(920px, calc(100% - 36px));
  max-height: calc(100vh - 64px);
  padding: 0;
  border: 0;
  border-radius: 8px;
  overflow: auto;
  color: #17212b;
  background: #ffffff;
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.34);
}

.article-dialog::backdrop {
  background: rgba(0, 0, 0, 0.45);
}

.dialog-close {
  position: sticky;
  top: 0;
  float: right;
  width: 48px;
  height: 48px;
  color: #ffffff;
  background: var(--red);
  font-size: 30px;
  line-height: 1;
  z-index: 1;
}

.dialog-content {
  padding: 40px 54px 54px;
}

.dialog-content img {
  width: 100%;
  max-height: 430px;
  object-fit: cover;
  margin-bottom: 24px;
}

.dialog-content h2 {
  margin: 0 0 12px;
  color: #101820;
  font-family: "Noto Sans SC", "Microsoft YaHei", Arial, sans-serif;
  font-size: 32px;
  line-height: 1.35;
}

.dialog-content time {
  display: block;
  margin-bottom: 24px;
  color: #8c9299;
  font-family: Arial, sans-serif;
  font-size: 14px;
}

.dialog-content p {
  margin: 0 0 16px;
  color: #333b45;
  font-size: 18px;
  line-height: 1.9;
}

@media (max-width: 1300px) {
  .nav {
    overflow-x: auto;
    justify-content: flex-start;
    scrollbar-width: none;
  }

  .nav::-webkit-scrollbar {
    display: none;
  }

  .lead h1 {
    font-size: 42px;
  }

  .news-stage {
    grid-template-columns: 420px 1fr;
  }
}

@media (max-width: 980px) {
  .shell {
    width: min(100% - 28px, 760px);
  }

  .topbar,
  .nav {
    height: 58px;
  }

  .nav a,
  .ai-mark,
  .menu-button {
    height: 51px;
    font-size: 16px;
  }

  .lead {
    padding-top: 28px;
  }

  .lead h1 {
    font-size: 34px;
  }

  .topic-line {
    min-height: 0;
    font-size: 15px;
  }

  .news-stage {
    display: block;
    padding-top: 22px;
  }

  .headline-column {
    padding: 0 0 22px;
    border-right: 0;
    border-bottom: 1px solid #ececec;
  }

  .main-headline {
    font-size: 25px;
  }

  .carousel {
    height: auto;
    aspect-ratio: 16 / 10;
    margin-top: 22px;
  }

  .slide-meta {
    left: 20px;
    right: 20px;
    bottom: 18px;
    grid-template-columns: 88px 1fr;
  }

  .slide-count {
    font-size: 24px;
  }

  .slide-meta a {
    justify-self: start;
    max-width: 100%;
    font-size: 18px;
  }

  .article-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 620px) {
  .shell {
    width: calc(100% - 22px);
  }

  .nav > a {
    padding: 0 10px;
  }

  .ai-mark,
  .menu-button,
  .login {
    width: 52px;
    flex-basis: 52px;
  }

  .lead h1 {
    font-size: 28px;
  }

  .primary-links a,
  .secondary-links a {
    white-space: normal;
  }

  .primary-links a {
    font-size: 19px;
    line-height: 1.85;
  }

  .secondary-links a {
    font-size: 18px;
    line-height: 1.8;
  }

  .red-features a {
    height: auto;
    min-height: 44px;
    white-space: normal;
    font-size: 20px;
  }

  .slide-control {
    width: 38px;
    height: 58px;
    font-size: 48px;
  }

  .slide-meta {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .article-grid {
    grid-template-columns: 1fr;
  }

  .dialog-content {
    padding: 30px 24px 38px;
  }

  .dialog-content h2 {
    font-size: 25px;
  }

  .dialog-content p {
    font-size: 16px;
  }
}
