/* 面包屑 */
.breadcrumb-bar {
  background: #f1f5f9;
  border-bottom: 1px solid #e2e8f0;
  padding: 12px 0;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #64748b;
  flex-wrap: wrap;
}

.breadcrumb a {
  color: #667eea;
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.breadcrumb-sep {
  font-size: 10px;
  color: #cbd5e1;
}

.breadcrumb-current {
  color: #475569;
  max-width: 300px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* 文章布局 */
.article-section {
  padding: 48px 0 80px;
  background: #f8fafc;
}

.article-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 40px;
  align-items: flex-start;
}

/* 文章主体 */
.article-main {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  overflow: hidden;
}

.article-header {
  padding: 40px 48px 32px;
  border-bottom: 1px solid #f1f5f9;
}

.article-title {
  font-size: 26px;
  font-weight: 700;
  line-height: 1.5;
  color: #1e293b;
  margin-bottom: 20px;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 13px;
  color: #94a3b8;
  margin-bottom: 20px;
}

.article-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.article-summary {
  font-size: 15px;
  color: #64748b;
  line-height: 1.8;
  background: #f8fafc;
  padding: 16px 20px;
  border-left: 4px solid #667eea;
  border-radius: 0 8px 8px 0;
}

/* 文章正文 */
.article-content {
  padding: 40px 48px;
  font-size: 15px;
  color: #334155;
  line-height: 1.9;
}

.article-content h2 {
  font-size: 20px;
  font-weight: 700;
  color: #1e293b;
  margin: 32px 0 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid #667eea;
}

.article-content h3 {
  font-size: 17px;
  font-weight: 600;
  color: #1e293b;
  margin: 24px 0 12px;
}

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

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

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

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

.article-content blockquote {
  background: #f8fafc;
  border-left: 4px solid #667eea;
  padding: 16px 20px;
  border-radius: 0 8px 8px 0;
  margin: 24px 0;
  color: #475569;
  font-style: italic;
}

.article-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 14px;
}

.article-content th {
  background: #667eea;
  color: #fff;
  padding: 10px 16px;
  text-align: left;
}

.article-content td {
  padding: 10px 16px;
  border-bottom: 1px solid #e2e8f0;
}

.article-content tr:nth-child(even) td {
  background: #f8fafc;
}

/* 文章底部 */
.article-footer {
  padding: 24px 48px;
  border-top: 1px solid #f1f5f9;
  background: #fafbfc;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: #94a3b8;
  flex-wrap: wrap;
  gap: 12px;
}

.article-tags i {
  margin-right: 6px;
  color: #667eea;
}

/* 侧边栏 */
.article-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: sticky;
  top: 20px;
}

.sidebar-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  padding: 24px;
}

.sidebar-title {
  font-size: 15px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid #667eea;
}

.sidebar-desc {
  font-size: 13px;
  color: #64748b;
  line-height: 1.7;
  margin-bottom: 16px;
}

.sidebar-cta {
  display: block;
  text-align: center;
  width: 100%;
}

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

.sidebar-links li {
  border-bottom: 1px solid #f1f5f9;
}

.sidebar-links li:last-child {
  border-bottom: none;
}

.sidebar-links a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 0;
  font-size: 13px;
  color: #475569;
  text-decoration: none;
  transition: color 0.2s;
}

.sidebar-links a:hover {
  color: #667eea;
}

.sidebar-links i {
  width: 16px;
  color: #667eea;
  font-size: 12px;
}

/* 响应式 */
@media (max-width: 900px) {
  .article-layout {
    grid-template-columns: 1fr;
  }

  .article-sidebar {
    position: static;
  }

  .article-header,
  .article-content,
  .article-footer {
    padding-left: 24px;
    padding-right: 24px;
  }

  .article-title {
    font-size: 22px;
  }
}

@media (max-width: 480px) {
  .article-header,
  .article-content,
  .article-footer {
    padding-left: 16px;
    padding-right: 16px;
  }
}
