@import url('/lang-fonts.css');

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { font-family: 'Outfit', ui-sans-serif, system-ui, -apple-system, sans-serif; font-size: 15px; line-height: 1.75; color: #2d3432; background: #f5f4ed; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body { padding: 0; }
.banner { background: #f5f4ed; }
.banner-inner { max-width: 1280px; margin: 0; padding: 40px 16px 32px; }
.breadcrumb { display: flex; align-items: center; gap: 6px; font-size: 13px; color: #5e5d59; margin-bottom: 12px; }
.breadcrumb a { color: #5e5d59; text-decoration: none; transition: color .15s; }
.breadcrumb a:hover { color: #2d3432; text-decoration: underline; }
.breadcrumb svg { width: 14px; height: 14px; opacity: .55; flex-shrink: 0; }
.banner h1 { font-family: 'Libre Baskerville', 'Georgia', serif; font-size: 32px; font-weight: 700; line-height: 1.15; color: #2d3432; text-align: left; }
.banner-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 16px; }
.banner-read-time { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; color: #5e5d59; }
.banner-read-time svg { width: 14px; height: 14px; }
.banner-tag { display: inline-flex; align-items: center; padding: 2px 10px; border-radius: 999px; background: rgba(195,199,197,0.15); font-size: 12px; font-weight: 500; color: #434846; }
.page-body { max-width: 1280px; margin: 0; display: flex; gap: 32px; padding: 32px 16px 64px; }
.article-content { flex: 1; min-width: 0; }
.sidebar { width: 260px; flex-shrink: 0; display: none; }
.sidebar-inner { position: sticky; top: 16px; display: flex; flex-direction: column; gap: 16px; }
.sidebar-card { background: #faf9f5; border: 1px solid #f0eee6; border-radius: 12px; padding: 20px; }
.sidebar-card-title { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 1.5px; color: #5e5d59; margin-bottom: 12px; }
.sidebar-card-title svg { width: 14px; height: 14px; }
.outline-nav { display: flex; flex-direction: column; gap: 2px; }
.outline-link { display: block; text-decoration: none; font-size: 13px; font-weight: 500; line-height: 20px; padding: 6px 10px; border-radius: 6px; color: #5e5d59; transition: color .15s, background-color .15s; cursor: pointer; }
.outline-link:hover { color: #2d3432; }
.outline-link.active { background: rgba(195,199,197,0.15); color: #2d3432; }
.related-empty { font-size: 13px; color: #87867f; line-height: 20px; }
.related-nav { display: flex; flex-direction: column; gap: 2px; }
.related-link { display: flex; align-items: center; gap: 6px; text-decoration: none; font-size: 13px; line-height: 20px; padding: 5px 6px; border-radius: 6px; color: #5e5d59; transition: color .15s; }
.related-link:hover { color: #2d3432; text-decoration: underline; }
.related-link svg { width: 13px; height: 13px; flex-shrink: 0; }
html[lang="en"] .zh { display: none; }
html[lang="zh"] .en { display: none; }
h2 { font-size: 22px; font-weight: 700; letter-spacing: -0.3px; color: #181f1d; margin-top: 40px; margin-bottom: 16px; }
h3 { font-size: 16px; font-weight: 600; color: #181f1d; margin-top: 24px; margin-bottom: 8px; }
p { font-size: 15px; line-height: 1.75; color: #2d3432; margin-bottom: 12px; }
strong { font-weight: 700; color: #181f1d; }
em { font-style: italic; color: #5e5d59; }
a { color: #2d3432; }
hr { border: none; border-top: 1px solid rgba(195,199,197,0.3); margin: 32px 0; }
ol, ul { padding-left: 20px; margin-bottom: 12px; }
ol { list-style: decimal; }
ul { list-style: none; padding-left: 16px; }
ul > li::before { content: ''; display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: #5c6361; margin-right: 10px; vertical-align: middle; position: relative; top: -1px; }
li { font-size: 15px; line-height: 1.75; color: #2d3432; margin-bottom: 6px; }
li strong { color: #181f1d; }
ol ol, ol ul, li ul { margin-top: 6px; margin-bottom: 4px; }
code { font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', monospace; font-size: 13px; background: rgba(195,199,197,0.18); color: #181f1d; padding: 2px 6px; border-radius: 5px; }
blockquote { border-left: 3px solid rgba(195,199,197,0.5); padding: 10px 16px; margin: 12px 0; background: rgba(195,199,197,0.06); border-radius: 0 6px 6px 0; }
blockquote p { margin-bottom: 0; color: #5e5d59; font-style: italic; }
.callout { background: rgba(195,199,197,0.12); border-radius: 8px; padding: 20px; margin: 16px 0; }
.callout p { margin-bottom: 4px; }
.callout ul { margin-bottom: 0; }
.faq-item { margin-bottom: 20px; }
.faq-q { font-size: 15px; font-weight: 700; color: #181f1d; margin-bottom: 8px; }
.faq-a { border-left: 2px solid rgba(195,199,197,0.45); padding-left: 16px; font-size: 15px; line-height: 1.75; color: #434846; }
.faq-a ul { margin-top: 8px; margin-bottom: 0; }
.intro { font-size: 16px; line-height: 1.7; color: #434846; margin-bottom: 24px; }
.skill-block { background: white; border: 1px solid rgba(195,199,197,0.2); border-radius: 12px; padding: 20px 24px; margin-bottom: 12px; box-shadow: 0 1px 4px rgba(0,0,0,0.03); }
.skill-block h3 { margin-top: 0; }
.skill-block ul { margin-bottom: 0; }
.example-cmd { background: rgba(195,199,197,0.08); border-left: 3px solid rgba(195,199,197,0.5); padding: 12px 16px; margin: 8px 0 16px; border-radius: 0 6px 6px 0; font-style: italic; color: #434846; font-size: 14px; }
.article-nav { display: flex; justify-content: center; gap: 12px; margin-top: 48px; padding-top: 32px; border-top: 1px solid rgba(195,199,197,0.3); }
.article-nav a { display: flex; flex-direction: column; padding: 16px 20px; border: 1px solid #f0eee6; border-radius: 12px; background: #faf9f5; text-decoration: none; transition: border-color .15s, box-shadow .15s; flex: 0 1 200px; min-width: 0; }
.article-nav a:hover { border-color: #d5d3cb; box-shadow: 0 2px 8px rgba(0,0,0,0.04); }
.article-nav a:only-child { margin: 0 auto; align-items: center; }
.article-nav-label { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; color: #87867f; margin-bottom: 4px; display: flex; align-items: center; gap: 4px; }
.article-nav-label svg { width: 14px; height: 14px; }
.article-nav-title { display: block; max-width: 100%; font-size: 14px; font-weight: 500; color: #2d3432; line-height: 1.4; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.article-nav .prev { align-items: flex-start; }
.article-nav .next { align-items: flex-end; }
img { display: block; max-width: 100%; height: auto; margin: 16px 0; border-radius: 8px; border: 1px solid rgba(195,199,197,0.22); }
.article-content .en > h2:first-child, .article-content .zh > h2:first-child { margin-top: 0; }
li img, p img { margin-top: 12px; margin-bottom: 12px; }
@media (min-width: 1024px) { .sidebar { display: block; } }
@media (min-width: 768px) { .banner-inner { padding: 48px 80px 36px; } .banner h1 { font-size: 44px; } .page-body { padding: 40px 80px 80px; } }
@media (max-width: 767px) {
  .banner-inner { padding: 32px 16px 24px; }
  .banner h1 { font-size: 26px; }
  .banner-meta { gap: 8px; }
  .page-body { padding: 24px 16px 56px; gap: 0; }
  h2 { font-size: 20px; margin-top: 32px; }
  h3 { font-size: 15px; }
  table { font-size: 13px; display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  pre { overflow-x: auto; }
  .callout { padding: 14px 16px; }
  .faq-a { padding-left: 12px; }
}
