/* ==========================================================================
   Kuromi VPN (库洛米) Article Detail Page Stylesheet
   ========================================================================== */

.article-header-section {
  padding: 60px 0 40px 0;
  text-align: center;
  border-bottom: 1px solid rgba(168, 85, 247, 0.15);
  background: radial-gradient(circle at 50% 20%, rgba(168, 85, 247, 0.15) 0%, transparent 60%);
}

.article-breadcrumbs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--text-dim);
  margin-bottom: 20px;
}

.article-breadcrumbs a {
  color: var(--text-muted);
}

.article-breadcrumbs a:hover {
  color: var(--color-primary-light);
}

.article-main-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.3;
  letter-spacing: -0.5px;
  max-width: 960px;
  margin: 0 auto 20px auto;
}

.article-info-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 0.86rem;
  color: var(--text-muted);
}

.article-info-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Article Container Layout */
.article-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 40px;
  padding: 50px 0 80px 0;
}

.article-content {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 44px 40px;
  color: #cbd5e1;
  font-size: 1.05rem;
  line-height: 1.85;
}

.article-content h2 {
  font-size: 1.7rem;
  font-weight: 800;
  color: #ffffff;
  margin: 40px 0 18px 0;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(168, 85, 247, 0.25);
  position: relative;
}

.article-content h2::before {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 50px;
  height: 2px;
  background: var(--gradient-brand);
}

.article-content h3 {
  font-size: 1.35rem;
  font-weight: 700;
  color: #ffffff;
  margin: 28px 0 14px 0;
}

.article-content p {
  margin-bottom: 20px;
}

.article-content strong {
  color: #ffffff;
  font-weight: 600;
}

.article-content ul, .article-content ol {
  margin: 0 0 24px 24px;
}

.article-content li {
  margin-bottom: 8px;
}

.article-callout {
  background: rgba(168, 85, 247, 0.1);
  border-left: 4px solid var(--color-primary);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 18px 22px;
  margin: 26px 0;
  font-size: 0.98rem;
  color: #e2e8f0;
}

.article-callout strong {
  color: var(--color-primary-light);
}

.article-table-wrap {
  overflow-x: auto;
  margin: 28px 0;
}

.article-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  text-align: left;
}

.article-table th {
  background: rgba(168, 85, 247, 0.2);
  color: #ffffff;
  padding: 12px 16px;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.article-table td {
  padding: 12px 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
}

.article-table tr:nth-child(even) td {
  background: rgba(255, 255, 255, 0.02);
}

/* Article Sidebar */
.article-sidebar {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.sidebar-widget {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 26px 22px;
}

.widget-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.toc-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toc-link {
  font-size: 0.88rem;
  color: var(--text-muted);
  display: block;
  transition: var(--transition-fast);
}

.toc-link:hover {
  color: var(--color-accent-light);
  transform: translateX(4px);
}

.cta-widget {
  background: linear-gradient(145deg, rgba(35, 26, 60, 0.85) 0%, rgba(18, 15, 34, 0.95) 100%);
  border: 1px solid var(--border-highlight);
  text-align: center;
}

.cta-widget h4 {
  font-size: 1.2rem;
  color: #ffffff;
  margin-bottom: 10px;
}

.cta-widget p {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

/* Internal Linking Tag Cloud */
.article-tags-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 30px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.article-keyword-chip {
  padding: 5px 12px;
  background: rgba(168, 85, 247, 0.12);
  border: 1px solid rgba(168, 85, 247, 0.25);
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  color: var(--color-primary-light);
}

.article-keyword-chip:hover {
  background: var(--gradient-brand);
  color: #ffffff;
  border-color: transparent;
}

@media (max-width: 992px) {
  .article-layout {
    grid-template-columns: 1fr;
  }
  .article-main-title {
    font-size: 1.9rem;
  }
  .article-content {
    padding: 30px 22px;
  }
}
