.articles-page {
  min-height: 100vh;
}

.articles-hero {
  min-height: 28vh;
  padding-top: 120px;
  padding-bottom: 76px;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.4) 0%, rgba(14, 23, 32, 0.88) 78%),
    url('/images/background.png') no-repeat center center/cover;
  border-bottom: 1px solid rgba(96, 165, 250, 0.2);
}

.article-card {
  border-radius: 14px;
  border: 1px solid rgba(155, 184, 211, 0.22);
  background: linear-gradient(160deg, rgba(12, 20, 29, 0.8), rgba(22, 34, 47, 0.62));
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.26);
  overflow: hidden;
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.article-card:hover {
  transform: translateY(-4px);
  border-color: rgba(96, 165, 250, 0.32);
  box-shadow: 0 18px 32px rgba(0, 0, 0, 0.3);
}

.article-cover {
  width: 100% !important;
  max-width: 100% !important;
  background-position: center;
  background-repeat: no-repeat;
  border-bottom: 1px solid rgba(96, 165, 250, 0.18);
  background-color: #101927;
}

.article-cover-fit-cover {
  background-size: cover;
}

.article-cover-fit-contain {
  background-size: contain;
}

.article-cover-list {
  aspect-ratio: 16 / 7;
  min-height: 186px;
}

.article-cover-detail {
  aspect-ratio: 16 / 7;
  min-height: 250px;
  max-height: 340px;
}

.article-meta {
  color: #9fb2c8;
}

.article-excerpt {
  color: #d1d5db;
}

.article-link {
  color: #ffffff;
  text-decoration: none;
  transition: color 0.2s ease;
}

.article-link:hover {
  color: #9bb8d3;
}

.back-link {
  color: #60a5fa;
  text-decoration: none;
}

.back-link:hover {
  color: #93c5fd;
  text-decoration: underline;
}

.article-detail {
  max-width: 1140px;
}

.article-content {
  line-height: 1.8;
  font-size: 1.05rem;
  color: #e5e7eb;
}

.article-content h1,
.article-content h2,
.article-content h3,
.article-content h4 {
  color: #c8daec;
  margin-top: 1.8rem;
  margin-bottom: 0.85rem;
}

.article-content h2,
.article-content h3 {
  font-weight: 600;
}

.article-content p {
  margin-bottom: 1rem;
  text-align: left;
}

.article-content ul,
.article-content ol {
  margin-bottom: 1rem;
  padding-left: 1.35rem;
}

.article-content li {
  margin-bottom: 0.4rem;
}

.article-content a {
  color: #93c5fd;
}

.article-content a:hover {
  color: #bfdbfe;
}

.article-content h2[id],
.article-content h3[id] {
  scroll-margin-top: 110px;
}

.article-content pre {
  background: #0f172a;
  border: 1px solid rgba(96, 165, 250, 0.2);
  border-radius: 8px;
  padding: 0.9rem;
  overflow-x: auto;
}

.article-content code {
  background: rgba(148, 163, 184, 0.2);
  border-radius: 4px;
  padding: 0.12rem 0.35rem;
}

.toc-card {
  position: sticky;
  top: 94px;
}

.toc-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.toc-list li {
  margin-bottom: 0.55rem;
  line-height: 1.4;
}

.toc-list li.toc-level-3 {
  margin-left: 0.9rem;
}

.toc-list a {
  color: #c6d7ea;
  text-decoration: none;
}

.toc-list a:hover {
  color: #ffffff;
}

.article-top {
  border-top: 1px solid rgba(96, 165, 250, 0.14);
  border-bottom: 1px solid rgba(96, 165, 250, 0.14);
}

.article-header {
  background: linear-gradient(180deg, rgba(31, 41, 55, 0.92), rgba(31, 41, 55, 0.86));
  overflow: hidden;
}

.article-btn {
  background: #3b82f6;
  border-color: #3b82f6;
  color: #fff;
}

.article-btn:hover {
  background: #2563eb;
  border-color: #2563eb;
  color: #fff;
}

@media (max-width: 768px) {
  .articles-hero {
    min-height: 42vh;
    padding-top: 88px;
    padding-bottom: 42px;
  }

  .article-content {
    font-size: 1rem;
  }

  .article-cover {
    min-height: 154px;
  }

  .article-cover-detail {
    min-height: 176px;
    max-height: 230px;
  }

  .toc-card {
    position: static;
  }
}
