.site-main {
  flex: 1 0 auto;
  padding: 46px 0 76px;
}

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

.news-wrap {
  overflow: hidden;
  border: 1px solid rgba(40, 128, 218, 0.12);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 24px 70px rgba(38, 94, 148, 0.12);
}

.features {
  display: grid;
  grid-template-columns: 188px minmax(0, 1fr);
  min-height: 520px;
}

.features > .left {
  padding: 38px 22px;
  border-right: 1px solid #eaf1f8;
  background:
    radial-gradient(circle at 15% 8%, rgba(124, 101, 255, 0.13), transparent 34%),
    linear-gradient(180deg, rgba(39, 151, 255, 0.1), rgba(247, 251, 255, 0.78));
}

.features > .left ul,
.blog-list {
  padding: 0;
  margin: 0;
  list-style: none;
}

.features > .left a {
  display: flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 9px 14px;
  border: 1px solid transparent;
  border-radius: 22px;
  color: #647185;
  font-size: 15px;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
}

.features > .left a:hover,
.features > .left a:focus-visible {
  color: #1684f6;
  border-color: rgba(23, 138, 255, 0.2);
  background: rgba(255, 255, 255, 0.75);
}

.features > .left a.active {
  color: #fff;
  background: linear-gradient(135deg, #2797ff, #1178f1);
  box-shadow: 0 10px 24px rgba(19, 122, 240, 0.2);
}

.features > .right {
  min-width: 0;
  padding: 42px 48px 52px;
}

.newsc > h1,
.title {
  margin: 0;
  color: #171d29;
  font-size: clamp(30px, 4vw, 42px);
  line-height: 1.3;
  letter-spacing: -0.025em;
}

.blog-list {
  margin-top: 24px;
}

.blog-list-item {
  display: flex;
  gap: 24px;
  padding: 24px 0;
  border-top: 1px solid #eaf1f8;
}

.blog-list-item:last-child {
  padding-bottom: 8px;
}

.blog-thumb {
  width: 220px;
  flex: 0 0 220px;
  overflow: hidden;
  border: 1px solid rgba(40, 128, 218, 0.1);
  border-radius: 12px;
  background: #eef6ff;
}

.blog-thumb a,
.blog-thumb img {
  display: block;
  width: 100%;
  height: 100%;
}

.blog-thumb img {
  aspect-ratio: 11 / 7;
  object-fit: cover;
  transition: transform 180ms ease;
}

.blog-thumb a:hover img {
  transform: scale(1.025);
}

.blog-summary {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
}

.blog-summary h2 {
  margin: 0;
  font-size: 21px;
  line-height: 1.55;
}

.blog-summary h2 a {
  color: #202a38;
  text-decoration: none;
}

.blog-summary h2 a:hover,
.blog-summary h2 a:focus-visible,
.read-more:hover,
.read-more:focus-visible {
  color: #1684f6;
  text-decoration: underline;
}

.blog-summary p {
  margin: 10px 0 0;
  color: #6f7988;
  font-size: 15px;
  line-height: 1.8;
}

.read-more {
  margin-left: 5px;
  color: #1684f6;
  text-decoration: none;
  white-space: nowrap;
}

.blog-summary time {
  align-self: flex-end;
  margin-top: auto;
  padding-top: 14px;
  color: #9aa4b2;
  font-size: 13px;
}

.post-time {
  margin-top: 12px;
  padding-bottom: 24px;
  border-bottom: 1px solid #eaf1f8;
  color: #9aa4b2;
  font-size: 14px;
}

.content {
  margin-top: 30px;
  color: #5f6b7a;
  font-size: 16px;
  line-height: 1.9;
  overflow-wrap: anywhere;
}

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

.content > :last-child {
  margin-bottom: 0;
}

.content h2,
.content h3,
.content h4 {
  margin: 1.7em 0 0.65em;
  color: #202a38;
  line-height: 1.5;
}

.content p,
.content ul,
.content ol,
.content blockquote,
.content pre,
.content table {
  margin: 1em 0;
}

.content img,
.content video,
.content iframe {
  max-width: 100%;
}

.content img,
.content video {
  height: auto;
  border-radius: 12px;
}

.content a {
  color: #1684f6;
}

.content blockquote {
  padding: 16px 20px;
  border-left: 4px solid #178aff;
  border-radius: 0 10px 10px 0;
  background: #f6faff;
}

.content pre {
  max-width: 100%;
  overflow-x: auto;
  padding: 18px;
  border-radius: 10px;
  color: #e8f2ff;
  background: #172235;
}

.content table {
  display: block;
  width: 100%;
  overflow-x: auto;
  border-collapse: collapse;
}

.content th,
.content td {
  padding: 10px 12px;
  border: 1px solid #e1e9f2;
  text-align: left;
}

.article-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 42px;
  padding-top: 24px;
  border-top: 1px solid #eaf1f8;
}

.article-nav p {
  min-width: 0;
  margin: 0;
  color: #7b8492;
  line-height: 1.65;
}

.article-nav p:last-child {
  text-align: right;
}

.article-nav a {
  color: #586577;
  text-decoration: none;
}

.article-nav a:hover,
.article-nav a:focus-visible {
  color: #1684f6;
}

.blog-detail-back {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  margin-top: 28px;
  padding: 8px 20px;
  border: 1px solid rgba(23, 138, 255, 0.2);
  border-radius: 21px;
  color: #1684f6;
  background: rgba(23, 138, 255, 0.055);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.blog-detail-back:hover,
.blog-detail-back:focus-visible {
  color: #fff;
  background: #1684f6;
}

.pages {
  margin-top: 36px;
  text-align: center;
}

.pages a,
.pages span {
  display: inline-flex;
  min-width: 36px;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  margin: 3px;
  padding: 6px 10px;
  border: 1px solid #dfe8f2;
  border-radius: 18px;
  color: #687588;
  background: #fff;
  text-decoration: none;
}

.pages a:hover,
.pages a:focus-visible,
.pages .current {
  color: #fff;
  border-color: #1684f6;
  background: #1684f6;
}

.features a:focus-visible,
.blog-summary a:focus-visible,
.article-nav a:focus-visible,
.blog-detail-back:focus-visible,
.pages a:focus-visible {
  outline: 3px solid rgba(22, 127, 245, 0.28);
  outline-offset: 3px;
}

@media (max-width: 800px) {
  .site-main {
    padding-top: 28px;
  }

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

  .features > .left {
    padding: 18px 22px;
    border-right: 0;
    border-bottom: 1px solid #eaf1f8;
  }

  .features > .left ul {
    display: flex;
    overflow-x: auto;
  }

  .features > .left a {
    min-width: 116px;
  }

  .features > .right {
    padding: 32px 28px 42px;
  }

  .blog-list-item {
    flex-direction: column;
  }

  .blog-thumb {
    width: 100%;
    flex: 0 0 auto;
  }

  .blog-thumb img {
    aspect-ratio: 16 / 9;
  }

  .blog-summary time {
    align-self: flex-start;
  }
}

@media (max-width: 520px) {
  .container {
    width: min(100% - 28px, 1080px);
  }

  .news-wrap {
    border-radius: 16px;
  }

  .features > .right {
    padding: 28px 20px 36px;
  }

  .newsc > h1,
  .title {
    font-size: 30px;
  }

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

  .article-nav p:last-child {
    text-align: left;
  }
}

@media (prefers-reduced-motion: reduce) {
  .blog-thumb img {
    transition: none;
  }
}
