:root {
  color-scheme: light;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: #1f2937;
  background: #f5f7fa;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; min-width: 320px; background: #f5f7fa; }
.article-shell { width: min(100% - 40px, 900px); margin: 48px auto; }
.article-card { padding: 52px 64px 64px; overflow-wrap: anywhere; background: #fff; border: 1px solid #e5e7eb; border-radius: 16px; box-shadow: 0 8px 28px rgb(15 23 42 / 6%); }
.article-header { padding-bottom: 24px; margin-bottom: 30px; border-bottom: 1px solid #edf0f3; }
.article-header h1, .article-empty h1 { margin: 0; color: #111827; font-size: clamp(28px, 4vw, 40px); line-height: 1.3; }
.article-meta { margin: 14px 0 0; color: #8a94a3; font-size: 14px; }
.article-content { color: #374151; font-size: 17px; line-height: 1.9; }
.article-content > :first-child { margin-top: 0; }
.article-content > :last-child { margin-bottom: 0; }
.article-content h2, .article-content h3, .article-content h4 { margin: 1.7em 0 .7em; color: #111827; line-height: 1.45; }
.article-content p, .article-content ul, .article-content ol, .article-content blockquote { margin: 1em 0; }
.article-content img { display: block; max-width: 100%; height: auto; margin: 24px auto; border-radius: 8px; }
.article-content a { color: #1677ff; text-decoration: underline; text-underline-offset: 3px; }
.article-content blockquote { padding: 12px 18px; color: #5f6b7a; background: #f7f9fc; border-left: 4px solid #cfd8e3; }
.article-content table { display: block; width: 100%; overflow-x: auto; border-collapse: collapse; }
.article-content th, .article-content td { min-width: 100px; padding: 10px 12px; border: 1px solid #dfe4ea; }
.article-empty { padding-block: 90px; text-align: center; }
.article-empty-code { margin: 0 0 12px; color: #1677ff; font-size: 48px; font-weight: 700; }
.article-empty > p:last-child { color: #7b8491; }

@media (max-width: 767px) {
  .article-shell { width: 100%; margin: 0; }
  .article-card { min-height: 100vh; padding: 28px 20px 44px; border: 0; border-radius: 0; box-shadow: none; }
  .article-header { margin-bottom: 22px; padding-bottom: 18px; }
  .article-content { font-size: 16px; line-height: 1.85; }
}

@media (min-width: 768px) and (max-width: 1024px) {
  .article-shell { width: min(100% - 48px, 820px); margin-block: 36px; }
  .article-card { padding: 44px 48px 52px; }
}

@media print {
  body { background: #fff; }
  .article-shell { width: 100%; margin: 0; }
  .article-card { padding: 0; border: 0; box-shadow: none; }
}
