/* ============================================================
   文章内容排版样式 - SEO/GEO 优化
   适用于：Blog 文章、案例详情、新闻内容
   ============================================================ */

.article-content {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Microsoft YaHei", sans-serif;
  font-size: 17px;
  line-height: 1.85;
  color: #1f2937;
  max-width: 820px;
  margin: 0 auto;
  padding: 20px 0;
}
.article-content * { box-sizing: border-box; }

/* 标题层级 */
.article-content h2 {
  font-size: 26px;
  font-weight: 700;
  color: #111827;
  margin: 40px 0 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid #e5e7eb;
  line-height: 1.35;
}
.article-content h3 {
  font-size: 20px;
  font-weight: 600;
  color: #1f2937;
  margin: 28px 0 12px;
  line-height: 1.4;
}
.article-content h4 {
  font-size: 17px;
  font-weight: 600;
  color: #374151;
  margin: 20px 0 8px;
}

/* 段落 */
.article-content p {
  margin: 0 0 16px;
  text-align: justify;
}

/* 引言/lead */
.article-content .lead {
  font-size: 19px;
  color: #4b5563;
  line-height: 1.7;
  padding: 16px 20px;
  background: #f9fafb;
  border-left: 4px solid #2563eb;
  border-radius: 0 8px 8px 0;
  margin: 20px 0;
}

/* 链接 */
.article-content a {
  color: #2563eb;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.article-content a:hover { color: #1d4ed8; }

/* 图片/配图 */
.article-content figure {
  margin: 24px 0;
  text-align: center;
}
.article-content figure img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0,0,0,.08);
}
.article-content figure figcaption {
  font-size: 13px;
  color: #6b7280;
  margin-top: 8px;
  font-style: italic;
}

/* 列表 */
.article-content ul,
.article-content ol {
  margin: 12px 0 20px;
  padding-left: 24px;
}
.article-content ul { list-style: disc; }
.article-content ol { list-style: decimal; }
.article-content li {
  margin-bottom: 8px;
  line-height: 1.7;
}
.article-content li::marker { color: #2563eb; }

/* 引用块 */
.article-content blockquote {
  margin: 24px 0;
  padding: 16px 24px;
  background: #fefce8;
  border-left: 4px solid #eab308;
  border-radius: 0 8px 8px 0;
  font-style: italic;
  color: #713f12;
}
.article-content blockquote p { margin: 0; }

/* 代码 */
.article-content code {
  background: #f3f4f6;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 14px;
  font-family: "SF Mono", Monaco, "Cascadia Code", Consolas, monospace;
  color: #be185d;
}
.article-content pre {
  background: #1e293b;
  color: #e2e8f0;
  padding: 20px;
  border-radius: 8px;
  overflow-x: auto;
  font-size: 14px;
  line-height: 1.6;
  margin: 20px 0;
}
.article-content pre code {
  background: none;
  color: inherit;
  padding: 0;
}

/* 表格 */
.article-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 15px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,.06);
}
.article-content thead th {
  background: #f8fafc;
  padding: 10px 14px;
  text-align: left;
  font-weight: 600;
  color: #374151;
  border-bottom: 2px solid #e5e7eb;
  font-size: 14px;
}
.article-content tbody td {
  padding: 10px 14px;
  border-bottom: 1px solid #f3f4f6;
}
.article-content tbody tr:hover { background: #f9fafb; }

/* FAQ 问答样式 */
.article-content .faq-item {
  margin: 16px 0;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  overflow: hidden;
}
.article-content .faq-question {
  font-weight: 600;
  font-size: 17px;
  padding: 14px 18px;
  background: #f9fafb;
  color: #1f2937;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
}
.article-content .faq-question::before {
  content: "Q";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: #2563eb;
  color: #fff;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}
.article-content .faq-answer {
  padding: 14px 18px;
  border-top: 1px solid #e5e7eb;
  color: #4b5563;
  line-height: 1.7;
}
.article-content .faq-answer::first-line {
  font-weight: 600;
}

/* 关键数据高亮 */
.article-content .highlight-box {
  background: linear-gradient(135deg, #eff6ff, #f0f9ff);
  border: 1px solid #bfdbfe;
  border-radius: 10px;
  padding: 20px 24px;
  margin: 24px 0;
}
.article-content .highlight-box h3 {
  margin-top: 0;
  color: #1e40af;
}
.article-content .highlight-box ul {
  margin: 8px 0 0;
  padding-left: 20px;
  list-style: none;
}
.article-content .highlight-box li {
  padding: 6px 0;
  line-height: 1.6;
  color: #1e40af;
}
.article-content .highlight-number {
  font-size: 36px;
  font-weight: 800;
  color: #2563eb;
  line-height: 1;
}

/* CTA 按钮 */
.article-content .cta-box {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #fff;
  text-align: center;
  padding: 28px 24px;
  border-radius: 12px;
  margin: 32px 0;
}
.article-content .cta-box h3 { color: #fff; border: none; margin-top: 0; }
.article-content .cta-box p { color: #bfdbfe; }
.article-content .cta-box .btn {
  display: inline-block;
  background: #fff;
  color: #2563eb;
  font-weight: 700;
  padding: 12px 32px;
  border-radius: 8px;
  text-decoration: none;
  margin-top: 12px;
  transition: all .2s;
}
.article-content .cta-box .btn:hover { background: #f0f9ff; transform: translateY(-1px); }

/* 响应式 */
@media (max-width: 768px) {
  .article-content {
    font-size: 16px;
    padding: 12px 0;
  }
  .article-content h2 { font-size: 22px; }
  .article-content h3 { font-size: 18px; }
  .article-content .highlight-number { font-size: 28px; }
}
