:root {
  --nav: #25364b;
  --nav-dark: #0d1530;
  --page: #eeeeee;
  --card: #ffffff;
  --ink: #2d3748;
  --muted: #718096;
  --line: #e8edf3;
  --link: #2f80ed;
  --shadow: 0 18px 42px rgba(31, 41, 55, 0.24);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--page);
  font-family:
    "Microsoft YaHei", "PingFang SC", "Noto Sans SC", system-ui, -apple-system,
    BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
}

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

img {
  display: block;
  max-width: 100%;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  padding: 0 max(22px, calc((100vw - 1320px) / 2));
  color: #fff;
  background: rgba(37, 54, 75, 0.94);
  box-shadow: 0 4px 14px rgba(13, 21, 48, 0.28);
  backdrop-filter: blur(12px);
}

.brand {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 16px;
  font-weight: 700;
}

.nav-links a {
  opacity: 0.92;
}

.nav-links a:hover {
  opacity: 1;
}

.home-band {
  height: 300px;
  background:
    linear-gradient(180deg, rgba(12, 18, 42, 0.9), rgba(14, 20, 49, 0.95)),
    radial-gradient(circle at 24% 10%, rgba(80, 115, 170, 0.42), transparent 32%),
    var(--nav-dark);
}

.preview-shell {
  width: min(1360px, calc(100vw - 56px));
  margin: -150px auto 72px;
}

.preview-panel {
  min-height: 560px;
  padding: 54px 78px;
  border-radius: 8px;
  background: var(--card);
  box-shadow: var(--shadow);
}

.preview-item {
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  gap: 38px;
  align-items: center;
  padding: 20px 0 30px;
}

.preview-item + .preview-item {
  border-top: 1px solid transparent;
}

.preview-cover {
  overflow: hidden;
  border-radius: 5px;
  background: #d8dee7;
  box-shadow: 0 8px 18px rgba(25, 34, 48, 0.24);
}

.preview-cover img {
  width: 100%;
  aspect-ratio: 5 / 3;
  object-fit: cover;
  transition: transform 180ms ease;
}

.preview-item:hover .preview-cover img {
  transform: scale(1.025);
}

.preview-title {
  display: -webkit-box;
  margin: 0 0 14px;
  overflow: hidden;
  color: #2d3748;
  font-size: 30px;
  font-weight: 800;
  line-height: 1.28;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
}

.preview-excerpt {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: #718096;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.preview-date {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 26px;
  color: #7f8da2;
  font-size: 17px;
}

.preview-date::before {
  content: "";
  width: 16px;
  height: 16px;
  border: 2px solid currentColor;
  border-radius: 3px;
  box-shadow: inset 0 4px 0 currentColor;
}

.pager {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin: 32px auto 0;
  border-radius: 4px;
  color: #64748b;
  background: #f5f7fa;
  font-size: 17px;
}

.article-hero {
  min-height: 670px;
  padding: 128px 24px 230px;
  color: #fff;
  background:
    linear-gradient(rgba(21, 28, 48, 0.48), rgba(21, 28, 48, 0.58)),
    var(--article-cover, linear-gradient(135deg, #222b47, #3a4d69));
  background-position: center;
  background-size: cover;
}

.article-hero-content {
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  min-height: 360px;
  max-width: 1040px;
  margin: 0 auto;
  text-align: center;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.45);
}

.article-hero h1 {
  max-width: 960px;
  margin: 0;
  font-size: 38px;
  line-height: 1.25;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.article-hero p {
  margin: 22px 0 0;
  font-size: 18px;
  font-weight: 700;
}

.article-card {
  width: min(1320px, calc(100vw - 64px));
  margin: -96px auto 72px;
  padding: 58px min(90px, 7vw) 76px;
  border-radius: 8px;
  background: var(--card);
  box-shadow: var(--shadow);
}

.article-content {
  max-width: 980px;
  margin: 0 auto;
  color: #465568;
  font-size: 20px;
  font-weight: 700;
}

.article-content p {
  margin: 0 0 18px;
}

.article-content h2 {
  margin: 78px 0 22px;
  padding-top: 0;
  color: #1f2937;
  font-size: 38px;
  line-height: 1.28;
  overflow-wrap: anywhere;
}

.article-content h2:first-child {
  margin-top: 0;
}

.article-content h3 {
  margin: 34px 0 18px;
  color: #1f2937;
  font-size: 26px;
  overflow-wrap: anywhere;
}

.article-content hr {
  width: 100%;
  margin: 38px 0 0;
  border: 0;
  border-top: 1px solid var(--line);
}

.shot {
  margin: 26px auto 30px;
}

.shot img {
  width: min(940px, 100%);
  margin: 0 auto;
  border-radius: 6px;
  box-shadow: 0 8px 24px rgba(25, 34, 48, 0.22);
  cursor: zoom-in;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 28px;
  background: rgba(9, 14, 24, 0.86);
}

.lightbox.is-open {
  display: flex;
}

.lightbox img {
  max-width: min(1180px, 94vw);
  max-height: 88vh;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.42);
}

.lightbox-close {
  position: fixed;
  top: 18px;
  right: 22px;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 8px;
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

@media (max-width: 900px) {
  .site-nav {
    height: auto;
    min-height: 64px;
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
    padding: 12px 18px;
  }

  .brand {
    font-size: 23px;
  }

  .nav-links {
    flex-wrap: wrap;
    gap: 14px;
    font-size: 14px;
  }

  .home-band {
    height: 240px;
  }

  .preview-shell {
    width: min(100% - 28px, 760px);
    margin-top: -118px;
  }

  .preview-panel {
    padding: 26px 22px;
  }

  .preview-item {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 18px 0 30px;
  }

  .preview-title {
    font-size: 24px;
    -webkit-line-clamp: 2;
  }

  .preview-excerpt {
    font-size: 16px;
  }

  .article-hero {
    min-height: 540px;
    padding-top: 120px;
  }

  .article-hero h1 {
    font-size: 30px;
  }

  .article-card {
    width: min(100% - 28px, 880px);
    padding: 34px 22px 48px;
  }

  .article-content {
    font-size: 17px;
  }

  .article-content h2 {
    font-size: 30px;
  }
}
