.articles-page {
  min-height: 100vh;
}

.articles-hero {
  min-height: 30vh;
  padding-top: 130px;
  padding-bottom: 90px;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.42) 0%, rgba(14, 23, 32, 0.9) 78%),
    url('/images/background.png') no-repeat center center/cover;
  border-bottom: 1px solid rgba(96, 165, 250, 0.22);
}

.article-card {
  background: #1f2937;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.article-card:hover {
  transform: translateY(-5px) scale(1.01);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6);
}

.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.2);
  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: 190px;
}

.article-cover-detail {
  aspect-ratio: 16 / 7;
  min-height: 260px;
  max-height: 360px;
}

.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.85;
  font-size: 1.08rem;
  color: #e5e7eb;
}

.article-content h1,
.article-content h2,
.article-content h3,
.article-content h4 {
  color: #c8daec;
  margin-top: 2rem;
  margin-bottom: 0.9rem;
}

.article-content h2,
.article-content h3 {
  font-weight: 600;
}

.article-content p {
  margin-bottom: 1.1rem;
  text-align: left;
}

.article-content ul,
.article-content ol {
  margin-bottom: 1.1rem;
  padding-left: 1.4rem;
}

.article-content li {
  margin-bottom: 0.45rem;
}

.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.22);
  border-radius: 8px;
  padding: 1rem;
  overflow-x: auto;
}

.article-content code {
  background: rgba(148, 163, 184, 0.22);
  border-radius: 4px;
  padding: 0.12rem 0.35rem;
}

.toc-card {
  position: sticky;
  top: 100px;
}

.toc-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.toc-list li {
  margin-bottom: 0.6rem;
  line-height: 1.4;
}

.toc-list li.toc-level-3 {
  margin-left: 1rem;
}

.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.15);
  border-bottom: 1px solid rgba(96, 165, 250, 0.15);
}

.article-header {
  background: linear-gradient(180deg, rgba(31, 41, 55, 0.95), rgba(31, 41, 55, 0.9));
  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: 46vh;
    padding-top: 90px;
    padding-bottom: 46px;
  }

  .article-content {
    font-size: 1rem;
  }

  .article-cover {
    min-height: 160px;
  }

  .article-cover-detail {
    min-height: 180px;
    max-height: 240px;
  }

  .toc-card {
    position: static;
  }
}
