:root {
  color-scheme: light;
  --article-bg: #f7f8f8;
  --article-panel: #ffffff;
  --article-ink: #121515;
  --article-muted: #69706f;
  --article-soft: #8a9290;
  --article-line: rgba(18, 21, 21, 0.1);
  --article-accent: #16b59a;
  --article-accent-dark: #0d7f70;
  --article-code: #101413;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  max-width: 100%;
  margin: 0;
  overflow-x: clip;
}

body {
  min-height: 100vh;
  color: var(--article-ink);
  background:
    radial-gradient(rgba(20, 184, 166, 0.08) 1px, transparent 1px),
    linear-gradient(180deg, #fbfcfc 0%, var(--article-bg) 100%);
  background-size: 12px 12px, auto;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

.article-shell {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}

.article-nav {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid rgba(18, 21, 21, 0.08);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(16px) saturate(1.08);
}

.article-nav-inner {
  display: grid;
  grid-template-columns: minmax(140px, 220px) minmax(0, 1fr);
  gap: 20px;
  align-items: center;
  min-height: 56px;
}

.article-brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  font-weight: 900;
  letter-spacing: 0;
}

.article-brand-mark {
  width: 14px;
  height: 14px;
  border: 2px solid var(--article-ink);
  border-radius: 50%;
  box-shadow: inset 0 0 0 3px #ffffff;
  background: var(--article-accent);
}

.article-nav-links,
.article-nav-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
}

.article-nav-links {
  justify-content: center;
}

.article-nav-links a,
.article-nav-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid transparent;
  border-radius: 6px;
  color: rgba(18, 21, 21, 0.68);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.article-nav-links a:hover,
.article-nav-links a.is-active,
.article-nav-actions a:hover {
  color: #071211;
  background: rgba(18, 21, 21, 0.045);
}

.article-nav-actions a {
  border-color: rgba(18, 21, 21, 0.1);
  background: #ffffff;
}

.article-nav-actions a.is-primary {
  color: #ffffff;
  border-color: #111716;
  background: #111716;
}

.article-mobile-nav {
  display: none;
  position: relative;
  justify-self: end;
}

.article-mobile-nav summary {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(18, 21, 21, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.68);
  cursor: pointer;
  list-style: none;
}

.article-mobile-nav summary::-webkit-details-marker {
  display: none;
}

.article-mobile-nav summary span {
  display: block;
  width: 14px;
  height: 1px;
  background: rgba(18, 21, 21, 0.62);
}

.article-mobile-nav-panel {
  position: fixed;
  top: 70px;
  right: 14px;
  z-index: 999;
  display: grid;
  width: min(240px, calc(100vw - 28px));
  max-width: calc(100vw - 28px);
  padding: 10px 0;
  border: 1px solid rgba(18, 21, 21, 0.1);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 22px 48px rgba(16, 20, 19, 0.16);
  opacity: 0;
  visibility: hidden;
  transform: translateX(14px) translateY(-8px);
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
}

.article-mobile-nav[open] .article-mobile-nav-panel {
  opacity: 1;
  visibility: visible;
  transform: translateX(0) translateY(0);
  pointer-events: auto;
}

.article-mobile-nav-panel a {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 44px;
  width: 100%;
  padding: 0 16px;
  color: rgba(18, 21, 21, 0.82);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.article-mobile-nav-panel a:hover,
.article-mobile-nav-panel a:focus-visible,
.article-mobile-nav-panel a.is-active {
  color: #071211;
  background: rgba(18, 21, 21, 0.055);
}

.article-mobile-nav-panel a.is-primary {
  color: #ffffff;
  background: #111716;
}

.article-hero {
  padding: 70px 0 38px;
  border-bottom: 1px solid var(--article-line);
}

.article-kicker,
.article-card-kicker,
.article-meta,
.article-tag,
.article-mini-label {
  color: var(--article-accent-dark);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
}

.article-hero h1 {
  max-width: 780px;
  margin: 12px 0 0;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 0.98;
  letter-spacing: 0;
}

.article-hero p {
  max-width: 760px;
  margin: 20px 0 0;
  color: var(--article-muted);
  font-size: 17px;
}

.article-signal-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.article-signal-row span,
.article-filter-row a,
.article-tag {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid var(--article-line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.78);
  color: rgba(18, 21, 21, 0.72);
  font-size: 12px;
  font-weight: 800;
  flex: 0 0 auto;
  max-width: 100%;
  white-space: nowrap;
}

.article-filter-wrap {
  padding: 28px 0 16px;
}

.article-filter-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
  min-width: 0;
}

.article-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
}

.article-filter-row-compact {
  flex-wrap: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  min-height: 32px;
  padding-bottom: 2px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.article-filter-row-compact::-webkit-scrollbar {
  display: none;
}

.article-filter-row a.is-active {
  color: #ffffff;
  border-color: #111716;
  background: #111716;
}

.article-filter-more {
  position: relative;
  justify-self: end;
}

.article-filter-more summary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0 12px;
  border: 1px solid var(--article-line);
  border-radius: 6px;
  background: #111716;
  color: #ffffff;
  font-size: 12px;
  font-weight: 850;
  cursor: pointer;
  list-style: none;
  white-space: nowrap;
}

.article-filter-more summary::-webkit-details-marker {
  display: none;
}

.article-filter-more[open] summary {
  background: #0d7f70;
  border-color: #0d7f70;
}

.article-filter-popover {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 25;
  width: min(620px, calc(100vw - 48px));
  max-width: calc(100vw - 48px);
}

.article-filter-panel {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-height: min(360px, calc(100vh - 180px));
  overflow: auto;
  padding: 12px;
  border: 1px solid var(--article-line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 20px 50px rgba(16, 20, 19, 0.12);
  -webkit-overflow-scrolling: touch;
}

.article-filter-panel a {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid var(--article-line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.78);
  color: rgba(18, 21, 21, 0.72);
  font-size: 12px;
  font-weight: 800;
}

.article-filter-panel a.is-active {
  color: #ffffff;
  border-color: #111716;
  background: #111716;
}

.article-pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
  margin: 12px 0 16px;
  padding: 12px;
  border: 1px solid var(--article-line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
}

.article-pagination > a,
.article-page-jump a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid var(--article-line);
  border-radius: 6px;
  background: #ffffff;
  color: rgba(18, 21, 21, 0.72);
  font-size: 12px;
  font-weight: 850;
}

.article-pagination > span {
  color: var(--article-muted);
  font-size: 12px;
  font-weight: 850;
}

.article-pagination a.is-active {
  color: #ffffff;
  border-color: #111716;
  background: #111716;
}

.article-pagination a.is-disabled {
  pointer-events: none;
  opacity: 0.45;
}

.article-page-jump {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  min-width: 0;
}

.article-page-jump strong {
  color: var(--article-muted);
  font-size: 12px;
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 270px;
  gap: 28px;
  padding: 18px 0 56px;
}

.article-list {
  display: grid;
  gap: 14px;
}

.article-empty {
  padding: 24px;
  border: 1px solid var(--article-line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--article-muted);
  font-size: 14px;
}

.article-card {
  display: block;
  min-width: 0;
  max-width: 100%;
  padding: 22px 24px;
  border: 1px solid var(--article-line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
  transition: border-color 160ms ease, transform 160ms ease, background 160ms ease;
}

.article-card:hover {
  border-color: rgba(20, 184, 166, 0.35);
  background: #ffffff;
  transform: translateY(-1px);
}

.article-card.is-featured {
  border-color: rgba(13, 127, 112, 0.34);
  background: linear-gradient(180deg, rgba(20, 184, 166, 0.08), rgba(255, 255, 255, 0.94));
}

.article-card h2 {
  margin: 8px 0 0;
  font-size: clamp(20px, 3vw, 28px);
  line-height: 1.22;
  letter-spacing: 0;
}

.article-card p {
  margin: 10px 0 0;
  color: var(--article-muted);
  font-size: 14px;
}

.article-card-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  width: 100%;
  max-width: 100%;
  margin-top: 14px;
  min-width: 0;
}

.article-side {
  position: sticky;
  top: 76px;
  align-self: start;
  display: grid;
  gap: 14px;
}

.article-side-panel {
  border: 1px solid var(--article-line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  overflow: hidden;
}

.article-side-panel h2 {
  margin: 0;
  padding: 16px 16px 8px;
  font-size: 15px;
}

.article-side-panel a {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-top: 1px solid var(--article-line);
  color: rgba(18, 21, 21, 0.78);
  font-size: 13px;
  font-weight: 750;
}

.article-side-panel a:hover {
  color: var(--article-accent-dark);
  background: rgba(20, 184, 166, 0.06);
}

.article-footer {
  border-top: 1px solid var(--article-line);
  padding: 26px 0 36px;
  color: var(--article-soft);
  font-size: 12px;
}

.article-footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px 28px;
  align-items: start;
}

.article-footer-brand {
  display: grid;
  gap: 4px;
}

.article-footer-brand strong {
  color: var(--article-ink);
  font-size: 14px;
}

.article-footer-links,
.article-footer-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  align-items: center;
}

.article-footer-links {
  justify-content: flex-end;
}

.article-footer-links a,
.article-footer-meta a {
  color: rgba(18, 21, 21, 0.72);
  font-weight: 800;
}

.article-footer-links a:hover,
.article-footer-meta a:hover {
  color: var(--article-accent-dark);
}

.article-footer-meta {
  grid-column: 1 / -1;
  padding-top: 12px;
  border-top: 1px solid rgba(18, 21, 21, 0.08);
}

.article-page {
  display: grid;
  grid-template-columns: minmax(0, 820px) 250px;
  gap: 46px;
  padding: 42px 0 64px;
}

.article-main {
  min-width: 0;
  padding: 34px;
  border: 1px solid var(--article-line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
}

.article-main header {
  padding-bottom: 24px;
  border-bottom: 1px solid var(--article-line);
}

.article-main h1 {
  margin: 12px 0 0;
  font-size: clamp(30px, 5vw, 50px);
  line-height: 1.06;
  letter-spacing: 0;
}

.article-summary {
  margin: 16px 0 0;
  color: var(--article-muted);
  font-size: 16px;
}

.article-cover {
  margin: 22px 0 0;
  overflow: hidden;
  border: 1px solid var(--article-line);
  border-radius: 8px;
  background: #ffffff;
}

.article-cover img {
  display: block;
  width: 100%;
  height: auto;
}

.article-figure {
  margin: 24px 0;
  overflow: hidden;
  border: 1px solid var(--article-line);
  border-radius: 8px;
  background: #ffffff;
}

.article-figure img {
  display: block;
  width: 100%;
  height: auto;
}

.article-figure figcaption {
  padding: 10px 14px;
  border-top: 1px solid var(--article-line);
  color: var(--article-muted);
  font-size: 12px;
  line-height: 1.55;
}

.article-body {
  padding-top: 20px;
}

.article-body h2 {
  margin: 34px 0 10px;
  font-size: 23px;
  line-height: 1.25;
}

.article-body h3 {
  margin: 22px 0 8px;
  color: #151917;
  font-size: 18px;
  line-height: 1.35;
}

.article-body p,
.article-body li {
  color: #343a39;
  font-size: 15px;
}

.article-body code {
  padding: 2px 5px;
  border-radius: 5px;
  color: #085f55;
  background: rgba(20, 184, 166, 0.1);
  overflow-wrap: anywhere;
}

.article-code {
  margin: 18px 0;
  padding: 16px;
  overflow-x: auto;
  border-radius: 8px;
  color: #d7f7ef;
  background: var(--article-code);
  font: 13px/1.6 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}

.article-body pre {
  max-width: 100%;
  margin: 18px 0;
  padding: 16px;
  overflow-x: auto;
  border-radius: 8px;
  color: #d7f7ef;
  background: var(--article-code);
  font: 13px/1.6 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  -webkit-overflow-scrolling: touch;
}

.article-body pre code {
  display: block;
  min-width: max-content;
  padding: 0;
  color: inherit;
  background: transparent;
  overflow-wrap: normal;
  white-space: pre;
}

.article-table-wrap {
  margin: 18px 0;
  overflow-x: auto;
  border: 1px solid var(--article-line);
  border-radius: 8px;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
  background: #ffffff;
}

th,
td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--article-line);
  text-align: left;
  vertical-align: top;
  font-size: 13px;
}

th {
  color: #111716;
  background: rgba(18, 21, 21, 0.035);
}

blockquote {
  margin: 22px 0;
  padding: 18px 20px;
  border-left: 3px solid var(--article-accent);
  border-radius: 0 8px 8px 0;
  color: #1f2d2b;
  background: rgba(20, 184, 166, 0.08);
}

.article-toc {
  position: sticky;
  top: 76px;
  align-self: start;
  padding: 16px;
  border: 1px solid var(--article-line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
}

.article-toc strong {
  display: block;
  margin-bottom: 10px;
  font-size: 13px;
}

.article-toc a {
  display: block;
  padding: 7px 0;
  color: var(--article-muted);
  font-size: 13px;
}

.article-related {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 28px;
}

.article-related a {
  padding: 14px;
  border: 1px solid var(--article-line);
  border-radius: 8px;
  background: #ffffff;
  font-size: 13px;
  font-weight: 850;
}

@media (max-width: 900px) {
  .article-shell {
    width: min(100% - 28px, 1180px);
  }

  .article-nav-inner {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    min-height: 62px;
    padding: 0;
  }

  .article-nav-links,
  .article-nav-actions {
    display: none;
  }

  .article-mobile-nav {
    display: block;
  }

  .article-filter-main {
    grid-template-columns: 1fr;
  }

  .article-filter-more {
    position: relative;
    justify-self: stretch;
    z-index: 30;
  }

  .article-filter-more summary {
    width: 100%;
  }

  .article-filter-popover {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    z-index: 55;
    width: auto;
    max-width: none;
  }

  .article-filter-panel {
    max-height: min(58vh, 420px);
    overflow: auto;
    -webkit-overflow-scrolling: touch;
  }

  .article-filter-wrap + .article-pagination {
    display: none;
  }

  .article-layout,
  .article-page {
    grid-template-columns: 1fr;
  }

  .article-side,
  .article-toc {
    position: static;
  }

  .article-main {
    padding: 22px 18px;
  }

  .article-related {
    grid-template-columns: 1fr;
  }

  .article-footer-inner {
    grid-template-columns: 1fr;
  }

  .article-footer-links {
    justify-content: flex-start;
  }
}

@media (max-width: 520px) {
  .article-hero {
    padding-top: 42px;
  }

  .article-card {
    padding: 18px;
  }

  .article-card-foot {
    flex-wrap: nowrap;
    align-items: center;
    overflow: hidden;
  }

  .article-card-foot .article-tag:nth-child(n+3):not(:last-child) {
    display: none;
  }

  .article-filter-panel {
    flex-wrap: wrap;
  }

  .article-filter-row-compact {
    overflow: hidden;
  }

  .article-filter-row-compact a:nth-child(n+4) {
    display: none;
  }

  .article-pagination {
    flex-wrap: nowrap;
    gap: 4px;
    align-items: center;
    padding: 8px;
    overflow: hidden;
  }

  .article-pagination > a,
  .article-page-jump a {
    min-height: 32px;
    min-width: 30px;
    padding: 0 8px;
    font-size: 11px;
    flex: 0 0 auto;
  }

  .article-pagination > span {
    flex: 0 0 auto;
    font-size: 11px;
    white-space: nowrap;
  }

  .article-page-jump {
    flex: 1 1 auto;
    flex-wrap: nowrap;
    justify-content: center;
    gap: 4px;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .article-page-jump strong {
    display: none;
  }

  .article-page-jump::-webkit-scrollbar {
    display: none;
  }
}
