.container{margin-left:auto;margin-right:auto}

/* ===== 文章正文排版(覆盖 Tailwind reset) ===== */
.prose,.cms-content{
  color:hsl(var(--foreground));
  font-size:1rem;
  line-height:1.8;
  word-wrap:break-word;
}
.prose > * + *,.cms-content > * + *{margin-top:1.25rem}

/* 标题层级 */
.prose h1,.cms-content h1{font-size:2rem;font-weight:700;line-height:1.3;margin-top:2.5rem;margin-bottom:1rem;color:hsl(var(--foreground))}
.prose h2,.cms-content h2{font-size:1.5rem;font-weight:700;line-height:1.35;margin-top:2rem;margin-bottom:.75rem;color:hsl(var(--foreground));padding-bottom:.5rem;border-bottom:1px solid hsl(var(--border))}
.prose h3,.cms-content h3{font-size:1.25rem;font-weight:600;line-height:1.4;margin-top:1.5rem;margin-bottom:.5rem;color:hsl(var(--foreground))}
.prose h4,.cms-content h4{font-size:1.1rem;font-weight:600;margin-top:1.25rem;margin-bottom:.5rem;color:hsl(var(--foreground))}

/* 段落 */
.prose p,.cms-content p{margin-top:0;margin-bottom:0;color:hsl(var(--foreground)/.9)}

/* 粗体/斜体 */
.prose strong,.cms-content strong{font-weight:700;color:hsl(var(--foreground))}
.prose em,.cms-content em{font-style:italic}

/* 列表 */
.prose ul,.cms-content ul{list-style:disc;padding-left:1.5rem;margin-top:.75rem;margin-bottom:.75rem}
.prose ol,.cms-content ol{list-style:decimal;padding-left:1.5rem;margin-top:.75rem;margin-bottom:.75rem}
.prose li,.cms-content li{margin-top:.25rem;margin-bottom:.25rem}
.prose li > ul,.prose li > ol,.cms-content li > ul,.cms-content li > ol{margin-top:.5rem;margin-bottom:.5rem}

/* 链接 */
.prose a,.cms-content a{color:hsl(var(--primary));text-decoration:underline;text-underline-offset:2px;font-weight:500}
.prose a:hover,.cms-content a:hover{color:hsl(var(--primary)/.8);text-decoration-thickness:2px}

/* 引用块 */
.prose blockquote,.cms-content blockquote{
  border-left:4px solid hsl(var(--primary));
  background:hsl(var(--muted)/.5);
  padding:.75rem 1rem;
  margin:1rem 0;
  border-radius:0 .5rem .5rem 0;
  color:hsl(var(--muted-foreground));
  font-style:italic;
}
.prose blockquote p,.cms-content blockquote p{margin:0}

/* 表格 */
.prose table,.cms-content table{
  width:100%;
  border-collapse:collapse;
  margin:1rem 0;
  font-size:.9rem;
  display:block;
  overflow-x:auto;
  white-space:nowrap;
}
.prose thead,.cms-content thead{background:hsl(var(--muted))}
.prose th,.cms-content th{
  font-weight:600;
  text-align:left;
  padding:.625rem .875rem;
  border:1px solid hsl(var(--border));
  color:hsl(var(--foreground));
}
.prose td,.cms-content td{
  padding:.5rem .875rem;
  border:1px solid hsl(var(--border));
  white-space:normal;
}
.prose tbody tr:nth-child(even),.cms-content tbody tr:nth-child(even){background:hsl(var(--muted)/.3)}

/* 代码 */
.prose code,.cms-content code{
  background:hsl(var(--muted));
  color:#c7254e;
  padding:.15rem .4rem;
  border-radius:.25rem;
  font-size:.875em;
  font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;
}
.prose pre,.cms-content pre{
  background:#1e293b;
  color:#e2e8f0;
  padding:1rem 1.25rem;
  border-radius:.5rem;
  overflow-x:auto;
  font-size:.875rem;
  line-height:1.6;
  margin:1rem 0;
}
.prose pre code,.cms-content pre code{
  background:transparent;
  color:inherit;
  padding:0;
  border-radius:0;
  font-size:inherit;
}

/* 分隔线 */
.prose hr,.cms-content hr{
  border:0;
  border-top:1px solid hsl(var(--border));
  margin:2rem 0;
}

/* 图片 */
.prose img,.cms-content img{
  max-width:100%;
  height:auto;
  border-radius:.5rem;
  margin:1rem 0;
  box-shadow:0 1px 3px hsl(var(--border));
}

/* 行内高亮标记 */
.prose mark,.cms-content mark{
  background:rgba(234,179,8,.25);
  color:inherit;
  padding:0 .15rem;
  border-radius:.125rem;
}

/* 移动端优化 */
@media (max-width:640px){
  .prose,.cms-content{font-size:.95rem;line-height:1.7}
  .prose h1,.cms-content h1{font-size:1.6rem}
  .prose h2,.cms-content h2{font-size:1.25rem}
  .prose h3,.cms-content h3{font-size:1.1rem}
  .prose table,.cms-content table{font-size:.8rem}
}

/* ===== P1-7 section 视觉差异化：痛点段加蓝图栅格底纹，强化工业感 ===== */
main section:nth-of-type(2){
  background-image:
    linear-gradient(to right, rgba(30,143,224,0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(30,143,224,0.05) 1px, transparent 1px);
  background-size: 32px 32px;
}
