:root {
  --bg: #ffffff;
  --ink: #1f2328;
  --muted: #5f6670;
  --line: #e5e7eb;
  --soft: #f3f4f6;
  --soft-blue: #eef2ff;
  --accent: #2563eb;
  --accent-ink: #ffffff;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 6px 18px rgba(0, 0, 0, 0.06);
  --font: system-ui, -apple-system, Segoe UI, Roboto, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.7 var(--font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a:hover {
  text-decoration: underline;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

button,
input {
  font: inherit;
}

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding-right: 20px;
  padding-left: 20px;
}

.muted {
  color: var(--muted);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.header-bar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

.head-top {
  display: flex;
  min-height: 68px;
  align-items: center;
  gap: 12px 16px;
  padding-top: 10px;
  padding-bottom: 10px;
}

.site-name {
  flex: 0 1 auto;
  min-width: 0;
  color: var(--ink);
  font-size: 22px;
  font-weight: 800;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.searchform {
  position: relative;
  flex: 1 1 260px;
  min-width: 180px;
  max-width: 360px;
  margin-left: auto;
}

.searchform input {
  display: block;
  width: 100%;
  min-width: 0;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg);
  color: var(--ink);
  font-size: 14px;
}

.searchform input:focus {
  outline: 3px solid #bfdbfe;
  outline-offset: 1px;
  border-color: var(--accent);
}

.lang-switch {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
  max-width: 100%;
  font-size: 13px;
}

.lang-switch a {
  padding: 3px 6px;
  border-radius: 6px;
  color: var(--muted);
  white-space: nowrap;
}

.lang-switch a.on {
  background: #dbeafe;
  color: #174ea6;
  font-weight: 700;
}

.head-nav {
  border-top: 1px solid var(--line);
  background: #f8fafc;
}

.nav-row {
  display: flex;
  gap: 8px;
  align-items: center;
  min-width: 0;
  padding-top: 10px;
  padding-bottom: 10px;
  overflow-x: auto;
  scrollbar-width: thin;
  overscroll-behavior-x: contain;
}

.nav-row a {
  flex: 0 0 auto;
  padding: 6px 10px;
  border-radius: 8px;
  color: #4b5563;
  white-space: nowrap;
}

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

.nav-row a.active {
  background: var(--accent);
  color: var(--accent-ink);
}

.main-area {
  min-width: 0;
  padding: 26px 0 40px;
}

.breadcrumbs {
  margin: 6px 0 14px;
  color: var(--muted);
  font-size: 14px;
  overflow-wrap: anywhere;
}

.breadcrumbs a {
  color: #4b5563;
}

.page-title {
  margin: 0 0 12px;
  font-size: 28px;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.home-intro {
  margin: 8px 0 18px;
  padding: 12px 14px;
  border-radius: var(--radius);
  background: var(--soft-blue);
  color: #1e293b;
  overflow-wrap: anywhere;
}

.latest-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 8px 0 26px;
}

.latest-card {
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
  transition: box-shadow 0.2s ease;
}

.latest-card:hover {
  box-shadow: var(--shadow);
  text-decoration: none;
}

.latest-title {
  margin: 0 0 6px;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.latest-meta,
.lead-meta,
.list-meta {
  color: var(--muted);
  font-size: 13px;
  overflow-wrap: anywhere;
}

.latest-meta time,
.lead-meta time,
.list-meta time,
.cat-link time {
  white-space: nowrap;
}

.section-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 26px 0 12px;
}

.section-title h2 {
  margin: 0;
  font-size: 20px;
  overflow-wrap: anywhere;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.cat-block {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
}

.cat-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  background: var(--soft);
}

.cat-title {
  min-width: 0;
  margin: 0;
  font-size: 16px;
  overflow-wrap: anywhere;
}

.cat-title a {
  color: var(--ink);
}

.more {
  flex: 0 0 auto;
  color: #4b5563;
  font-weight: 700;
}

.more:hover {
  color: var(--accent);
  text-decoration: none;
}

.cat-list {
  margin: 0;
  padding: 12px 14px;
}

.cat-item + .cat-item {
  margin-top: 10px;
}

.cat-lead {
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px dashed var(--line);
}

.lead-title {
  margin: 0 0 2px;
  font-size: 18px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.lead-title a,
.cat-link a {
  color: var(--ink);
}

.lead-sum,
.list-sum {
  margin: 6px 0 0;
  color: #374151;
  overflow-wrap: anywhere;
}

.cat-link {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 8px;
  min-width: 0;
}

.cat-link time {
  color: var(--muted);
  font-size: 12px;
}

.list-stack {
  display: grid;
  min-width: 0;
}

.list-card {
  min-width: 0;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.list-card:last-child {
  border-bottom: 0;
}

.list-title {
  margin: 0 0 4px;
  color: var(--ink);
  font-size: 20px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.pager {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
}

.pager .muted {
  font-size: 14px;
}

.pager a {
  max-width: 100%;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg);
  color: var(--ink);
  overflow-wrap: anywhere;
}

.pager a:hover {
  border-color: var(--accent);
  color: var(--accent);
  text-decoration: none;
}

.article {
  width: 100%;
  max-width: 820px;
  min-width: 0;
  margin: 0 auto;
}

.post-header {
  min-width: 0;
  margin-bottom: 10px;
}

.post-title {
  margin: 0 0 6px;
  font-size: 30px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.post-meta {
  color: var(--muted);
  font-size: 14px;
  overflow-wrap: anywhere;
}

.post-summary {
  margin: 12px 0 14px;
  color: #374151;
  font-size: 18px;
  overflow-wrap: anywhere;
}

.post-flow {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  min-width: 0;
  align-items: start;
}

.toc-panel {
  min-width: 0;
  max-height: calc(100vh - 120px);
  overflow: auto;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
}

.toc-title {
  min-height: 16px;
  margin: 0 0 8px;
  color: var(--muted);
}

.toc-list {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.toc-list li {
  min-width: 0;
}

.toc-list li a {
  display: block;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.toc-h3 a {
  padding-left: 12px;
  color: #374151;
}

.post-body {
  min-width: 0;
  margin-top: 2px;
  overflow-wrap: anywhere;
}

.post-body > :first-child {
  margin-top: 0;
}

.post-body img,
.post-body video,
.post-body iframe,
.post-body table {
  max-width: 100%;
}

.post-body table {
  display: block;
  overflow-x: auto;
}

.post-source {
  margin-top: 20px;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
  overflow-wrap: anywhere;
}

.promo-block {
  display: grid;
  gap: 10px;
  min-width: 0;
  margin-top: 24px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f8fafc;
  overflow-wrap: anywhere;
}

.button {
  display: inline-block;
  max-width: 100%;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 700;
  overflow-wrap: anywhere;
}

.button:hover {
  opacity: 0.9;
  color: var(--accent-ink);
  text-decoration: none;
}

.related-block {
  min-width: 0;
  margin-top: 28px;
}

.related-block h2 {
  margin: 0 0 10px;
  font-size: 18px;
  overflow-wrap: anywhere;
}

.link-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.link-list li {
  min-width: 0;
}

.link-list a {
  color: var(--ink);
  overflow-wrap: anywhere;
}

.footer-bar {
  padding: 24px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.footer-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  min-width: 0;
}

.footer-row a {
  color: #4b5563;
  overflow-wrap: anywhere;
}

.sep {
  opacity: 0.6;
}

.post-body details {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg);
}

.post-body details + details {
  margin-top: 10px;
}

.post-body summary {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-weight: 600;
  overflow-wrap: anywhere;
  list-style: none;
}

.post-body summary::-webkit-details-marker {
  display: none;
}

.post-body summary::before {
  display: inline-block;
  flex: 0 0 auto;
  color: var(--accent);
  content: "▸";
  transition: transform 0.2s ease;
}

.post-body details[open] summary::before {
  transform: rotate(90deg);
}

@media (min-width: 900px) {
  .post-flow {
    grid-template-columns: minmax(0, 1fr) 220px;
  }

  .toc-panel {
    grid-column: 2;
    grid-row: 1;
    position: sticky;
    top: 84px;
  }

  .post-body {
    grid-column: 1;
    grid-row: 1;
  }
}

@media (max-width: 1024px) {
  .latest-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .head-top {
    align-items: center;
  }

  .site-name {
    flex: 1 1 auto;
    min-width: 0;
    font-size: 20px;
  }

  .searchform {
    flex: 1 1 100%;
    order: 3;
    max-width: none;
    margin-left: 0;
  }

  .lang-switch {
    flex: 0 1 auto;
    justify-content: flex-end;
  }

  .latest-strip,
  .category-grid {
    grid-template-columns: 1fr;
  }

  .post-title {
    font-size: 26px;
  }

  .post-flow {
    grid-template-columns: 1fr;
  }

  .toc-panel {
    position: relative;
    top: 0;
    max-height: none;
  }
}

@media (max-width: 420px) {
  .container {
    padding-right: 16px;
    padding-left: 16px;
  }

  .head-top {
    gap: 8px 10px;
  }

  .site-name {
    font-size: 18px;
  }

  .lang-switch {
    font-size: 12px;
  }

  .lang-switch a {
    padding-right: 4px;
    padding-left: 4px;
  }

  .cat-link {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .cat-link time {
    white-space: normal;
  }

  .pager {
    align-items: stretch;
  }

  .pager a {
    flex: 1 1 auto;
    text-align: center;
  }
}
```