:root {
  color-scheme: light;
  --ink: #263238;
  --muted: #627078;
  --line: #e2e8e7;
  --accent: #c94e12;
  --teal: #117a77;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: #fff;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  line-height: 1.7;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
a:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }
img { max-width: 100%; }

.site-header {
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.site-header-inner, .page-width, .site-footer-inner {
  width: min(100% - 40px, 1100px);
  margin-inline: auto;
}

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

.site-brand { display: inline-flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 700; white-space: nowrap; }
.site-brand img { display: block; width: 36px; height: 36px; border-radius: 8px; }
.site-nav { display: flex; align-items: center; gap: 28px; font-size: 14px; font-weight: 600; }
.site-nav a[aria-current="page"] { color: var(--accent); }

.breadcrumb { padding-top: 24px; font-size: 13px; color: var(--muted); }
.breadcrumb span { margin-inline: 8px; color: #a0aeb1; }
.breadcrumb a { color: var(--muted); }

.listing-head { padding-block: 44px 24px; border-bottom: 1px solid var(--line); }
.listing-head h1 { margin: 0; font-size: clamp(28px, 2rem, 36px); line-height: 1.3; font-weight: 700; }
.listing-head p { margin: 8px 0 0; color: var(--muted); font-size: 15px; }
.article-list { margin: 0; padding: 0; list-style: none; }
.article-list li { border-bottom: 1px solid var(--line); }
.article-row { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 28px; padding-block: 28px; }
.article-row img { display: block; width: 220px; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 4px; background: #edf0ee; }
.article-row-text { min-width: 0; display: flex; flex-direction: column; justify-content: center; }
.article-row time, .article-meta { font-size: 13px; color: var(--muted); }
.article-row h2 { margin: 7px 0 5px; font-size: 22px; line-height: 1.4; font-weight: 700; overflow-wrap: anywhere; }
.article-row p { margin: 0; color: #4f5c61; font-size: 15px; line-height: 1.7; overflow-wrap: anywhere; }
.article-row .more { margin-top: 10px; color: var(--teal); font-size: 14px; font-weight: 600; }
.article-row:hover .more { color: var(--accent); }
.article-row.no-cover { grid-template-columns: minmax(0, 1fr); }
.empty-state { padding: 70px 0 100px; color: var(--muted); }

.pagination { display: flex; justify-content: space-between; gap: 12px; margin-block: 34px 76px; font-size: 14px; }
.pagination a { padding: 9px 14px; border: 1px solid var(--line); border-radius: 4px; }
.pagination a:hover { border-color: var(--accent); }
.pagination .page-count { margin: auto; color: var(--muted); }
.pagination .placeholder { width: 78px; }

.article-layout { width: min(100% - 40px, 780px); margin: 0 auto; }
.article-header { padding-block: 40px 24px; }
.article-header h1 { margin: 0 0 18px; font-size: 36px; line-height: 1.4; font-weight: 700; overflow-wrap: anywhere; }
.article-meta { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.article-summary { margin: 24px 0 0; padding: 14px 18px; border-left: 3px solid var(--teal); color: #4f5c61; background: #f5f8f7; }
.article-cover { display: block; margin: 4px 0 34px; width: 100%; height: auto; max-height: 560px; object-fit: contain; background: #f3f6f5; }

.article-body { color: #2f3a3e; line-height: 1.9; overflow-wrap: anywhere; }
.article-body > :first-child { margin-top: 0; }
.article-body h2 { margin: 2em 0 .65em; font-size: 26px; line-height: 1.45; color: var(--ink); }
.article-body h3 { margin: 1.7em 0 .55em; font-size: 21px; line-height: 1.45; color: var(--ink); }
.article-body h4 { margin: 1.5em 0 .5em; font-size: 18px; }
.article-body p { margin: 0 0 1.25em; }
.article-body a { color: var(--teal); text-decoration: underline; text-underline-offset: 3px; }
.article-body img { display: block; height: auto; margin: 1.5em auto; }
.article-body figure { margin: 1.7em 0; }
.article-body figcaption { font-size: 13px; color: var(--muted); text-align: center; }
.article-body ul, .article-body ol { padding-left: 1.6em; margin: 0 0 1.25em; }
.article-body li { margin: .3em 0; }
.article-body blockquote { margin: 1.5em 0; padding: .65em 1.15em; border-left: 3px solid #a4cbc4; color: #536266; background: #f5f8f7; }
.article-body pre { overflow-x: auto; padding: 16px; background: #f2f5f4; }
.article-body table { display: block; overflow-x: auto; border-collapse: collapse; max-width: 100%; margin: 1.4em 0; }
.article-body th, .article-body td { border: 1px solid var(--line); padding: 8px 12px; }
.article-body .ql-align-center { text-align: center; }
.article-body .ql-align-right { text-align: right; }
.article-body .ql-align-justify { text-align: justify; }
.article-body .ql-size-small { font-size: .8em; }
.article-body .ql-size-large { font-size: 1.35em; }
.article-body .ql-size-huge { font-size: 1.7em; }
.article-body .ql-indent-1 { padding-left: 2em; }
.article-body .ql-indent-2 { padding-left: 4em; }
.article-body .ql-indent-3 { padding-left: 6em; }
.article-body .ql-direction-rtl { direction: rtl; }

.article-source { margin-top: 44px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; overflow-wrap: anywhere; }
.article-source a { color: var(--teal); text-decoration: underline; }
.article-end { margin: 36px 0 80px; }
.article-end a { color: var(--teal); font-weight: 600; }
.article-end a:hover { color: var(--accent); }

.site-footer { border-top: 1px solid var(--line); background: #f7f9f8; }
.site-footer-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 20px; padding-block: 28px; color: var(--muted); font-size: 13px; }
.site-footer p { margin: 0; }

@media (max-width: 650px) {
  .site-header-inner, .page-width, .site-footer-inner, .article-layout { width: min(100% - 32px, 1100px); }
  .site-header-inner { min-height: 60px; }
  .site-brand { font-size: 18px; }
  .site-brand img { width: 32px; height: 32px; }
  .site-nav { gap: 15px; font-size: 13px; }
  .listing-head { padding-block: 34px 20px; }
  .article-row { grid-template-columns: 116px minmax(0, 1fr); gap: 15px; padding-block: 20px; }
  .article-row img { width: 116px; aspect-ratio: 1; }
  .article-row h2 { margin: 3px 0; font-size: 17px; }
  .article-row p { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 13px; }
  .article-row .more { margin-top: 5px; font-size: 13px; }
  .article-header { padding-block: 28px 20px; }
  .article-header h1 { font-size: 27px; }
  .article-body h2 { font-size: 22px; }
  .article-body h3 { font-size: 19px; }
}
