
* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

a { color: #146f8b; text-underline-offset: 3px; }
a:hover { color: #0e566c; }

.site-header {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 32px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
}

.brand, .back-link { text-decoration: none; }
.brand { color: var(--ink); font-weight: 700; }
.back-link { color: var(--muted); font-size: 15px; }

.page-shell {
  width: min(100% - 32px, 1040px);
  margin: 48px auto 80px;
}

.article {
  padding: 48px 56px 64px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-top: 8px solid var(--article-accent, var(--teal));
  border-radius: 8px;
}

.article-header { margin-bottom: 36px; }
.article-header .category {
  color: var(--article-accent, var(--teal));
  font-weight: 700;
  font-size: 15px;
}
.article-header h1 {
  margin: 8px 0 12px;
  font-size: 38px;
  line-height: 1.3;
}
.article-header p { margin: 0; color: var(--muted); }

.toc {
  margin: 0 0 44px;
  padding: 24px 28px;
  background: #eef4f2;
  border-left: 4px solid var(--article-accent, var(--teal));
  border-radius: 6px;
}
.toc-title { font-weight: 700; }
.toc ol {
  columns: 2;
  column-gap: 40px;
  margin: 12px 0 0;
  padding-left: 22px;
}
.toc li { break-inside: avoid; margin: 4px 0; }
.toc .depth-3 { margin-left: 16px; font-size: 15px; }
.toc a { color: var(--ink); text-decoration: none; }

.article-body h2 {
  margin: 56px 0 18px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--line);
  font-size: 28px;
  line-height: 1.4;
}
.article-body h3 { margin: 36px 0 12px; font-size: 22px; }
.heading-anchor {
  margin-left: 8px;
  color: var(--line);
  text-decoration: none;
  font-weight: 400;
}
h2:hover .heading-anchor, h3:hover .heading-anchor { color: var(--article-accent, var(--teal)); }

.article-body p { margin: 14px 0; }
.article-body ul, .article-body ol { padding-left: 26px; }
.article-body li { margin: 6px 0; }

figure { margin: 32px 0 42px; }
figure img, .article-body > p > img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 6px;
}
figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}

.table-wrap {
  width: 100%;
  margin: 24px 0 32px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 6px;
}
table { width: 100%; border-collapse: collapse; background: #fff; }
th, td { min-width: 150px; padding: 12px 16px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { background: #eef4f2; font-weight: 700; }
tr:last-child td { border-bottom: 0; }

pre {
  margin: 24px 0 32px;
  padding: 20px 22px;
  overflow-x: auto;
  color: #edf5f6;
  background: #1d2b32;
  border-radius: 6px;
  line-height: 1.65;
}
code { font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace; }
:not(pre) > code { padding: 2px 6px; background: #e9efef; border-radius: 4px; font-size: 0.94em; }

blockquote {
  margin: 24px 0;
  padding: 10px 22px;
  color: var(--muted);
  border-left: 4px solid var(--article-accent, var(--teal));
  background: #f7f9f8;
}

.site-footer {
  padding: 28px 20px 40px;
  color: var(--muted);
  text-align: center;
  font-size: 14px;
}


.index-shell { width: min(100% - 32px, 1120px); margin: 0px auto 80px; }
.index-header { max-width: 760px; margin-bottom: 40px; }
.index-header h1 { margin: 0 0 14px; font-size: 42px; line-height: 1.25; }
.index-header p { color: var(--muted); }
.category-jump {
  display: flex;
  gap: 24px;
  margin: 34px 0 52px;
  padding-bottom: 12px;
  overflow-x: auto;
  border-bottom: 1px solid var(--line);
}
.category-jump a { flex: 0 0 auto; color: var(--ink); font-weight: 700; text-decoration: none; }
.knowledge-group { margin: 0 0 64px; scroll-margin-top: 24px; }
.group-header { display: flex; align-items: end; justify-content: space-between; gap: 32px; margin-bottom: 20px; }
.group-header h2 { margin: 0; font-size: 28px; }
.group-header p { max-width: 520px; margin: 0; color: var(--muted); text-align: right; }
.article-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.article-card {
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.article-card img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-bottom: 1px solid var(--line); }
.article-card-content { padding: 24px; }
.article-card-category { color: var(--card-accent); font-size: 14px; font-weight: 700; }
.article-card-role { margin-left: 8px; color: var(--muted); font-weight: 500; }
.article-card h2 { margin: 6px 0 10px; font-size: 23px; line-height: 1.4; }
.article-card p { margin: 0 0 18px; color: var(--muted); }
.article-card a { color: var(--ink); font-weight: 700; }

@media (max-width: 760px) {
  .site-header { padding: 0 18px; }
  .page-shell, .index-shell { width: min(100% - 20px, 1040px); margin-top: 20px; }
  .article { padding: 30px 20px 44px; }
  .article-header h1, .index-header h1 { font-size: 30px; }
  .article-body h2 { font-size: 24px; }
  .toc ol { columns: 1; }
  .category-jump { gap: 18px; margin-bottom: 40px; }
  .group-header { display: block; }
  .group-header h2 { font-size: 24px; }
  .group-header p { margin-top: 6px; text-align: left; }
  .article-grid { grid-template-columns: 1fr; }
}
