/* 文章页面样式 */
.article-container {
  min-height: calc(100vh - 140px);
  padding: 60px 32px;
  background: var(--surface-warm);
}

.article-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 40px;
}

.article-content {
  background: var(--surface);
  border-radius: var(--radius-xl);
  padding: 50px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-light);
}

.article-header {
  margin-bottom: 40px;
  padding-bottom: 30px;
  border-bottom: 2px solid var(--border);
}

.article-header h1 {
  font-size: 36px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 15px;
  line-height: 1.4;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 20px;
}

.update-date {
  color: var(--text-secondary);
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.update-date::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--brand);
  border-radius: 50%;
}

.article-body {
  line-height: 1.8;
}

.article-section {
  margin-bottom: 35px;
}

.article-section h2 {
  font-size: 24px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 15px;
  padding-left: 15px;
  border-left: 4px solid var(--brand);
}

.article-section p {
  color: var(--text-primary);
  font-size: 16px;
  margin-bottom: 12px;
  line-height: 1.8;
}

.article-section a {
  color: var(--brand);
  text-decoration: none;
  transition: color 0.3s var(--ease);
}

.article-section a:hover {
  color: var(--brand-warm);
  text-decoration: underline;
}

/* 侧边栏样式 */
.article-sidebar {
  position: sticky;
  top: 100px;
  height: fit-content;
}

.sidebar-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 25px;
  margin-bottom: 25px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
}

.sidebar-card h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 2px solid var(--border);
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sidebar-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 15px;
  padding: 10px 15px;
  border-radius: var(--radius-sm);
  transition: all 0.3s var(--ease);
  display: flex;
  align-items: center;
  gap: 10px;
}

.sidebar-link::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--brand);
  border-radius: 50%;
  opacity: 0.5;
}

.sidebar-link:hover {
  background: var(--brand-glow);
  color: var(--brand);
  transform: translateX(5px);
}

.sidebar-link:hover::before {
  opacity: 1;
}

/* 响应式设计 */
@media (max-width: 1024px) {
  .article-wrapper {
    grid-template-columns: 1fr;
  }
  
  .article-sidebar {
    position: static;
  }
  
  .sidebar-card {
    margin-bottom: 20px;
  }
}

@media (max-width: 768px) {
  .article-container {
    padding: 40px 16px;
  }
  
  .article-content {
    padding: 30px 25px;
  }
  
  .article-header h1 {
    font-size: 28px;
  }
  
  .article-section h2 {
    font-size: 20px;
  }
  
  .article-section p {
    font-size: 15px;
  }
  
  .sidebar-card {
    padding: 20px;
  }
  
  .sidebar-card h3 {
    font-size: 16px;
  }
  
  .sidebar-link {
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .article-content {
    padding: 25px 20px;
  }
  
  .article-header h1 {
    font-size: 24px;
  }
  
  .article-section h2 {
    font-size: 18px;
    padding-left: 12px;
    border-left-width: 3px;
  }
  
  .article-section p {
    font-size: 14px;
  }
  
  .article-meta {
    flex-direction: column;
    gap: 10px;
  }
}