:root {
  --ink: #1f2a32;
  --muted: #697780;
  --paper: #eef1f2;
  --panel: #ffffff;
  --line: #d5dde1;
  --line-strong: #aeb9bf;
  --accent: #b6573c;
  --accent-dark: #843b2b;
  --accent-soft: #fbf2ee;
  --max-width: 1120px;
  --reading-width: 780px;
}

* { box-sizing: border-box; }

html { background: var(--paper); }

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.75;
}

body.article-layout { background: var(--panel); }

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  color: var(--accent-dark);
  text-decoration: underline;
}

.site-header {
  width: 100%;
  color: var(--ink);
  background: var(--panel);
  border-top: 3px solid var(--accent);
  border-bottom: 1px solid var(--line);
}

.site-header-inner,
.site-main,
.site-footer-inner {
  width: min(var(--max-width), calc(100% - 48px));
  margin: 0 auto;
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  min-height: 76px;
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
}

.site-brand:hover {
  color: var(--ink);
  text-decoration: none;
}

.site-brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: #ffffff;
  background: var(--ink);
  font-size: 19px;
  font-weight: 900;
}

.site-brand-copy {
  display: grid;
  gap: 1px;
}

.site-brand-copy strong {
  font-size: 16px;
  line-height: 1.2;
}

.site-brand-copy small {
  color: var(--muted);
  font-size: 9px;
  line-height: 1.2;
}

.site-header nav {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  font-size: 14px;
}

.site-header nav a {
  color: var(--muted);
}

.site-header nav a:hover {
  color: var(--accent);
  text-decoration: none;
}

.site-main { padding: 56px 0 84px; }

.site-footer {
  color: var(--muted);
  background: var(--paper);
  border-top: 1px solid var(--line);
}

.site-footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  padding: 22px 0 30px;
  font-size: 13px;
}

.site-footer a { color: var(--muted); }

.home-masthead,
.archive-head,
.archive-shell {
  max-width: 920px;
  margin-right: auto;
  margin-left: auto;
}

.home-masthead,
.archive-head {
  padding: 14px 0 28px;
  border-bottom: 1px solid var(--ink);
}

.home-kicker,
.eyebrow {
  margin: 0 0 11px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.home-masthead h1,
.archive-head h1,
.article-page h1,
.static-page h1 {
  margin: 0;
  color: var(--ink);
  font-family: "Songti SC", "STSong", "Noto Serif CJK SC", serif;
  font-weight: 700;
  letter-spacing: 0;
}

.home-masthead h1,
.archive-head h1 { font-size: 42px; line-height: 1.22; }

.home-masthead > p:not(.home-kicker),
.archive-head > p:not(.home-kicker) {
  max-width: 720px;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.8;
}

.home-count {
  display: flex;
  align-items: baseline;
  gap: 9px;
  margin-top: 21px;
  padding-top: 13px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: 13px;
}

.home-count strong {
  color: var(--accent);
  font-family: Georgia, serif;
  font-size: 25px;
  line-height: 1;
}

.archive-shell { padding-top: 42px; }

.archive-section { max-width: 920px; }

.section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 13px;
  border-bottom: 2px solid var(--ink);
}

.section-heading h2 {
  margin: 0;
  font-size: 21px;
  line-height: 1.35;
}

.section-heading span {
  color: var(--muted);
  font-size: 13px;
}

.article-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.article-row {
  padding: 24px 0 23px;
  border-bottom: 1px solid var(--line);
}

.article-row-main h2 {
  margin: 8px 0 6px;
  font-size: 22px;
  line-height: 1.45;
}

.article-row-main h2 a {
  color: var(--ink);
}

.article-row-main h2 a:hover {
  color: var(--accent-dark);
  text-decoration: none;
}

.article-row-main p {
  max-width: 780px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
}

.article-row-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 12px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
}

.article-row-meta time {
  color: var(--muted);
  font-weight: 400;
}

.article-row:hover { border-bottom-color: var(--line-strong); }

.empty-state {
  padding: 36px 0;
  color: var(--muted);
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 23px;
  padding-top: 18px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: 13px;
}

.pagination a,
.pagination .is-disabled {
  display: inline-flex;
  min-width: 64px;
  padding: 3px 0;
  justify-content: center;
}

.pagination a {
  color: var(--accent);
  font-weight: 700;
}

.pagination .is-disabled { color: var(--line-strong); }

.article-layout .site-main { max-width: 1040px; }

.article-page,
.static-page {
  max-width: var(--reading-width);
  margin: 0 auto;
}

.article-page h1,
.static-page h1 {
  font-size: 45px;
  line-height: 1.28;
}

.article-kicker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  margin-bottom: 13px;
  color: var(--muted);
  font-size: 12px;
}

.article-kicker .eyebrow { margin: 0; }

.article-excerpt {
  margin: 19px 0 8px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.85;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px 9px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.meta-separator { color: var(--line-strong); }

.article-seo-title {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 12px;
  margin-top: 22px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  line-height: 1.7;
}

.article-seo-title span { color: var(--accent); font-weight: 700; }
.article-seo-title strong { color: var(--ink); font-weight: 600; overflow-wrap: anywhere; }

.article-origin {
  display: flex;
  gap: 10px;
  margin: 25px 0 0;
  padding: 13px 15px;
  color: #63483e;
  background: var(--accent-soft);
  border-left: 3px solid var(--accent);
  font-size: 13px;
  line-height: 1.7;
}

.article-origin strong {
  flex: 0 0 auto;
  color: var(--accent-dark);
}

.product-mentions {
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
  padding: 14px 15px;
  background: #f7f9fa;
  border: 1px solid var(--line);
  border-left: 3px solid var(--ink);
  font-size: 13px;
  line-height: 1.7;
}

.product-mentions strong {
  color: var(--ink);
}

.product-mentions div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.product-mentions a {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  color: var(--accent-dark);
  background: var(--panel);
  border: 1px solid var(--line);
  font-weight: 700;
}

.product-mentions a:hover,
.product-mentions a:focus-visible {
  color: var(--panel);
  background: var(--accent);
  border-color: var(--accent);
  text-decoration: none;
  outline: none;
}

.article-body {
  margin-top: 38px;
  overflow-wrap: anywhere;
  color: #303d45;
  font-size: 17px;
  line-height: 2;
}

.article-body h2 {
  margin: 48px 0 14px;
  padding: 0;
  color: var(--ink);
  font-size: 26px;
  line-height: 1.4;
}

.article-body h2::before {
  display: block;
  width: 28px;
  height: 3px;
  margin-bottom: 12px;
  background: var(--accent);
  content: "";
}

.article-body h3 {
  margin: 31px 0 10px;
  color: var(--ink);
  font-size: 20px;
  line-height: 1.5;
}

.article-body p,
.article-body ul,
.article-body ol,
.article-body table,
.article-body pre { margin: 18px 0; }

.article-body ul,
.article-body ol { padding-left: 25px; }

.article-body li + li { margin-top: 8px; }

.article-body code {
  padding: 2px 5px;
  color: var(--accent-dark);
  background: #f4e9e5;
  border-radius: 2px;
}

.article-body pre {
  padding: 16px;
  overflow-x: auto;
  color: #eff5f7;
  background: #202c33;
  border-left: 3px solid var(--accent);
}

.article-body pre code {
  padding: 0;
  color: inherit;
  background: transparent;
}

.article-body hr {
  margin: 40px 0;
  border: 0;
  border-top: 1px solid var(--line);
}

.article-body table {
  width: 100%;
  border-collapse: collapse;
}

.article-body th,
.article-body td {
  padding: 9px 10px;
  text-align: left;
  vertical-align: top;
  border: 1px solid var(--line);
}

.article-body th { background: #f3f5f6; }

.notice {
  margin-top: 20px;
  padding: 12px 14px;
  color: #614c16;
  background: #fff8dc;
  border-left: 3px solid #c49b31;
}

.article-source {
  margin-top: 34px;
  padding-top: 17px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: 14px;
}

.article-nav,
.related {
  max-width: var(--reading-width);
  margin-right: auto;
  margin-left: auto;
}

.article-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 38px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.article-nav-item {
  display: grid;
  gap: 5px;
  min-width: 0;
  color: var(--ink);
}

.article-nav-item span {
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
}

.article-nav-item strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.article-nav-item:hover strong { color: var(--accent-dark); }
.article-nav-next { text-align: right; }
.article-nav-item.is-empty { opacity: 0.35; }

.related {
  margin-top: 42px;
  padding-top: 17px;
  border-top: 2px solid var(--ink);
}

.related h2 {
  margin: 0 0 10px;
  font-size: 21px;
}

.related ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.related li {
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.related a {
  color: var(--accent);
  font-size: 14px;
  line-height: 1.65;
}

@media (max-width: 760px) {
  .site-header-inner,
  .site-main,
  .site-footer-inner { width: min(100% - 30px, var(--max-width)); }

  .site-header-inner {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 13px;
    min-height: 0;
    padding: 15px 0 17px;
  }

  .site-brand-copy strong { font-size: 15px; }

  .site-header nav {
    gap: 9px 16px;
    font-size: 13px;
  }

  .site-main { padding: 36px 0 58px; }

  .home-masthead,
  .archive-head { padding-top: 7px; padding-bottom: 25px; }

  .home-masthead h1,
  .archive-head h1 { font-size: 33px; line-height: 1.3; }

  .home-masthead > p:not(.home-kicker),
  .archive-head > p:not(.home-kicker) {
    margin-top: 13px;
    font-size: 15px;
    line-height: 1.8;
  }

  .home-count { margin-top: 18px; }
  .home-count strong { font-size: 23px; }
  .archive-shell { padding-top: 30px; }

  .section-heading { gap: 12px; }
  .section-heading h2 { font-size: 19px; }
  .section-heading span { font-size: 12px; }

  .article-row { padding: 20px 0 19px; }
  .article-row-main h2 { margin-top: 7px; font-size: 19px; line-height: 1.5; }
  .article-row-main p { font-size: 13px; line-height: 1.75; }

  .pagination {
    flex-wrap: wrap;
    margin-top: 18px;
    padding-top: 15px;
  }

  .article-layout .site-main { width: min(100% - 30px, 1040px); }

  .article-page h1,
  .static-page h1 { font-size: 33px; line-height: 1.35; }

  .article-excerpt { font-size: 17px; line-height: 1.85; }

  .article-origin {
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
  }

  .article-body {
    margin-top: 32px;
    font-size: 16px;
    line-height: 1.95;
  }

  .article-body h2 {
    margin-top: 40px;
    font-size: 22px;
  }

  .article-body h3 { font-size: 18px; }

  .article-nav {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 31px;
  }

  .article-nav-next { text-align: left; }

  .related {
    margin-top: 34px;
    padding-top: 15px;
  }

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

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

.article-keywords { margin-top: 30px; padding: 20px 24px; background: var(--paper); border: 1px solid var(--line); border-radius: 6px; }
.article-keywords h2 { margin: 0 0 12px; font-size: 14px; color: var(--muted); }
.keywords-list { display: flex; flex-wrap: wrap; gap: 8px; }
.keyword-tag { display: inline-block; padding: 3px 10px; background: var(--panel); border: 1px solid var(--line); border-radius: 4px; font-size: 13px; color: var(--ink); }
