:root {
  --article-bg: #f5f8fc;
  --article-card: #ffffff;
  --article-text: #17263b;
  --article-muted: #6f8095;
  --article-line: #e5ebf2;
  --article-accent: #2478ff;
}

.article-site {
  margin: 0;
  color: var(--article-text);
  background: var(--article-bg);
}

.article-site .site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(222, 230, 240, .85);
}

.article-site .nav a.active {
  color: var(--article-accent);
}

.article-main {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 64px 0 88px;
}

.article-hero {
  padding: 44px 48px;
  border: 1px solid var(--article-line);
  border-radius: 24px;
  background:
    radial-gradient(circle at 88% 18%, rgba(49, 132, 255, .16), transparent 30%),
    linear-gradient(135deg, #fff, #f8fbff);
  box-shadow: 0 24px 70px rgba(37, 61, 92, .08);
}

.article-hero h1 {
  margin: 8px 0 14px;
  font-size: clamp(34px, 5vw, 54px);
  letter-spacing: -.04em;
}

.article-hero > p:last-child {
  margin: 0;
  color: var(--article-muted);
  font-size: 17px;
}

.article-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin-top: 30px;
}

.article-card,
.article-detail,
.related-articles {
  border: 1px solid var(--article-line);
  border-radius: 20px;
  background: var(--article-card);
  box-shadow: 0 18px 48px rgba(37, 61, 92, .06);
}

.article-card {
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
}

.article-card-content {
  padding: 28px;
}

.article-card-image {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #eaf0f8;
}

.article-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}

.article-card:hover .article-card-image img {
  transform: scale(1.025);
}

.article-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 55px rgba(37, 61, 92, .1);
}

.article-card time,
.article-meta {
  color: var(--article-muted);
  font-size: 13px;
}

.article-card h2 {
  margin: 13px 0 12px;
  line-height: 1.45;
  font-size: 23px;
}

.article-card h2 a,
.article-more,
.breadcrumbs a,
.related-articles a,
.article-footer a {
  color: inherit;
  text-decoration: none;
}

.article-card h2 a:hover,
.article-more:hover,
.breadcrumbs a:hover,
.related-articles a:hover {
  color: var(--article-accent);
}

.article-card p {
  min-height: 4.9em;
  margin: 0 0 18px;
  color: var(--article-muted);
  line-height: 1.75;
}

.article-more {
  color: var(--article-accent);
  font-weight: 700;
}

.article-empty {
  grid-column: 1 / -1;
  padding: 60px;
  text-align: center;
  color: var(--article-muted);
}

.article-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 32px;
}

.article-pagination a {
  padding: 10px 17px;
  border: 1px solid var(--article-line);
  border-radius: 10px;
  background: #fff;
  color: var(--article-text);
  text-decoration: none;
}

.article-detail-main {
  width: min(960px, calc(100% - 40px));
}

.breadcrumbs {
  display: flex;
  gap: 9px;
  align-items: center;
  margin: 0 0 20px;
  color: var(--article-muted);
  font-size: 13px;
  overflow: hidden;
  white-space: nowrap;
}

.breadcrumbs span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
}

.article-detail {
  overflow: hidden;
}

.article-detail-head {
  padding: 52px 64px 38px;
  border-bottom: 1px solid var(--article-line);
  background: linear-gradient(145deg, #fff, #f8fbff);
}

.article-detail-head h1 {
  margin: 0;
  font-size: clamp(32px, 5vw, 48px);
  line-height: 1.25;
  letter-spacing: -.035em;
}

.article-summary {
  margin: 20px 0 18px;
  color: #5f738b;
  font-size: 18px;
  line-height: 1.8;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}

.article-body {
  padding: 48px 64px 64px;
  color: #26384d;
  font-size: 17px;
  line-height: 1.95;
}

.article-cover,
.article-inline-image {
  margin: 0;
  background: #eef3f9;
}

.article-cover img,
.article-inline-image img {
  display: block;
  width: 100%;
  height: auto;
}

.article-cover figcaption,
.article-inline-image figcaption {
  padding: 10px 16px;
  color: var(--article-muted);
  background: #f7f9fc;
  font-size: 13px;
  text-align: center;
}

.article-inline-image {
  margin: 30px 0;
  overflow: hidden;
  border: 1px solid var(--article-line);
  border-radius: 14px;
}

.article-body h2 {
  margin: 2.1em 0 .75em;
  font-size: 29px;
  line-height: 1.4;
}

.article-body h3 {
  margin: 1.8em 0 .65em;
  font-size: 22px;
}

.article-body p,
.article-body ul {
  margin: 0 0 1.35em;
}

.article-body ul {
  padding-left: 1.4em;
}

.article-body li {
  margin: .45em 0;
}

.article-body a {
  color: var(--article-accent);
  text-underline-offset: 3px;
}

.article-body code {
  padding: 2px 6px;
  border-radius: 5px;
  background: #edf4ff;
  color: #145ebd;
  font-size: .92em;
}

.related-articles {
  margin-top: 24px;
  padding: 28px 32px;
}

.related-articles h2 {
  margin: 0 0 14px;
  font-size: 21px;
}

.related-articles > div {
  display: grid;
  gap: 10px;
}

.article-footer {
  display: flex;
  justify-content: center;
  gap: 18px;
  padding: 30px 20px 40px;
  color: var(--article-muted);
  font-size: 13px;
}

@media (max-width: 760px) {
  .article-main,
  .article-detail-main {
    width: min(100% - 24px, 960px);
    padding-top: 28px;
  }
  .article-hero {
    padding: 32px 24px;
  }
  .article-grid {
    grid-template-columns: 1fr;
  }
  .article-detail-head,
  .article-body {
    padding-left: 24px;
    padding-right: 24px;
  }
  .article-detail-head {
    padding-top: 34px;
  }
  .article-body {
    padding-top: 30px;
    font-size: 16px;
  }
}
