.theme-modern {
  --bg: #f7f6f2;
  --card: #ffffff;
  --text: #1c1917;
  --muted: #57534e;
  --line: #e4e2dc;
  --accent: #0f766e;
  --accent-2: #115e59;
  --hero: #1c1917;
  --radius: 6px;
  --shadow: none;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", "PingFang SC", "Noto Sans SC", "Microsoft YaHei", sans-serif;
}

html,
body.theme-modern,
.theme-modern #container,
.theme-modern #wrap {
  height: auto;
  min-height: 100%;
}

.theme-modern,
.theme-modern #wrap,
.theme-modern #container {
  background: var(--bg);
  color: var(--text);
  position: relative;
  overflow: visible;
}

.theme-modern #header {
  height: 58px;
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid var(--line);
  background: rgba(247, 246, 242, 0.94);
  backdrop-filter: blur(12px);
}

.theme-modern:not(.home-page) #header,
.theme-modern:not(.home-page) #mobile-nav {
  display: none !important;
}

.theme-modern #header:before,
.theme-modern #header:after,
.theme-modern #banner,
.theme-modern #subtitle-wrap {
  display: none !important;
}

.theme-modern #header-outer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 58px;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

.theme-modern #header-title {
  position: static;
  height: auto;
  margin: 0;
  text-align: left;
}

.theme-modern #logo {
  font-size: 1.02rem;
  line-height: 1;
  letter-spacing: 0.02em;
  font-weight: 700;
  color: var(--text);
  text-shadow: none;
}

.theme-modern #header-title,
.theme-modern #header-inner {
  float: none;
  width: auto;
  overflow: visible;
}

.theme-modern #main-nav,
.theme-modern #sub-nav {
  float: none;
  margin: 0;
}

.theme-modern .main-nav-link,
.theme-modern .nav-icon {
  float: none;
  display: inline-block;
  padding: 10px 12px;
  color: var(--muted);
  opacity: 1;
  text-shadow: none;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.theme-modern .main-nav-link:hover,
.theme-modern .nav-icon:hover {
  color: var(--text);
}

.theme-modern #sub-nav {
  display: none;
}

.theme-modern #footer {
  background: var(--bg);
  border-top: 1px solid var(--line);
  padding: 22px 0;
  color: var(--muted);
}

.theme-modern #footer a {
  color: var(--accent);
}

.theme-modern #footer .outer {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

.theme-modern .site-contact {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px 32px;
  margin: 0 0 14px;
}

.theme-modern .site-contact-col {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 12px;
  font-size: 13px;
}

.theme-modern .site-contact-col em {
  font-style: normal;
  font-weight: 700;
  color: var(--text);
}

.theme-modern.home-page #footer {
  display: block !important;
}

@media (max-width: 700px) {
  .theme-modern .site-contact {
    grid-template-columns: 1fr;
  }
}

.theme-modern:not(.home-page) #wrap > .outer {
  display: block;
  max-width: 1120px;
  margin: 0 auto;
  padding: 28px 24px 64px;
}

.theme-modern:not(.home-page) #wrap > .outer:before,
.theme-modern:not(.home-page) #wrap > .outer:after {
  display: none !important;
  content: none !important;
}

.theme-modern:not(.home-page) #main,
.theme-modern:not(.home-page) #sidebar {
  display: block !important;
  float: none !important;
  width: 100% !important;
  margin: 0 !important;
}

.theme-modern:not(.home-page):not(.list-page) #sidebar {
  display: none !important;
}

.theme-modern:not(.home-page):not(.list-page) #wrap > .outer {
  display: grid;
  grid-template-columns: 220px minmax(0, 780px);
  align-items: start;
  gap: 32px;
  max-width: 1032px;
}

.theme-modern:not(.home-page):not(.list-page) #main {
  min-width: 0;
}

.theme-modern .article-toc {
  position: sticky;
  top: 84px;
  max-height: calc(100vh - 108px);
  overflow: hidden auto;
  padding: 4px 12px 14px 0;
  border-right: 1px solid var(--line);
  scrollbar-width: thin;
}

.theme-modern .article-toc[hidden] {
  display: none !important;
}

.theme-modern .article-toc-title {
  margin: 0 0 10px;
  color: var(--text);
  font-size: 15px;
  font-weight: 700;
}

.theme-modern .article-toc-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.theme-modern .article-toc-link {
  display: block;
  padding: 6px 8px;
  border-left: 2px solid transparent;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
  text-decoration: none;
  transition: color 0.18s ease, border-color 0.18s ease, background-color 0.18s ease;
}

.theme-modern .article-toc-link.level-3 {
  padding-left: 20px;
}

.theme-modern .article-toc-link.level-4 {
  padding-left: 32px;
  font-size: 12px;
}

.theme-modern .article-toc-link:hover,
.theme-modern .article-toc-link.is-active {
  border-left-color: var(--accent);
  background: rgba(15, 118, 110, 0.07);
  color: var(--accent);
}

.theme-modern:not(.home-page):not(.list-page) .article-entry h2,
.theme-modern:not(.home-page):not(.list-page) .article-entry h3,
.theme-modern:not(.home-page):not(.list-page) .article-entry h4 {
  scroll-margin-top: 90px;
}

.theme-modern.article-toc-empty:not(.home-page):not(.list-page) #wrap > .outer {
  display: block;
  max-width: 780px;
}

.theme-modern:not(.home-page):not(.list-page) .article-entry > h1:first-child {
  display: none;
}

@media (max-width: 1100px) {
  .theme-modern:not(.home-page):not(.list-page) #wrap > .outer {
    display: block;
    max-width: 780px;
  }

  .theme-modern .article-toc {
    display: none;
  }
}

.theme-modern.list-page #wrap > .outer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 32px;
  max-width: 1120px;
  margin: 0 auto;
  padding: 28px 24px 72px;
}

.theme-modern.list-page #sidebar {
  width: auto !important;
  position: sticky;
  top: 74px;
  align-self: start;
}

.list-hero {
  position: relative;
  overflow: hidden;
  padding: 36px 24px 8px;
  background: var(--bg);
  color: var(--text);
  border-bottom: 1px solid var(--line);
}

.list-hero:after {
  display: none;
}

.list-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1120px;
  margin: 0 auto;
}

.list-crumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}

.list-crumb a {
  color: var(--accent) !important;
  text-decoration: none !important;
}

.list-crumb a:hover {
  text-decoration: underline !important;
}

.list-crumb i {
  font-style: normal;
  opacity: 0.45;
}

.list-hero h2 {
  margin: 10px 0 8px;
  font-size: 1.75rem;
  letter-spacing: -0.03em;
  line-height: 1.25;
  font-weight: 700;
}

.list-hero p {
  max-width: 640px;
  margin: 0 0 12px;
  color: var(--muted);
  line-height: 1.7;
}

.list-hero-meta {
  display: inline-block;
  color: var(--muted);
  font-size: 13px;
}

.theme-modern.list-page .archives-wrap {
  margin: 0;
}

.theme-modern.list-page .archive-year-wrap {
  display: none;
}

.theme-modern.list-page .archives {
  display: flex;
  flex-direction: column;
  gap: 0;
  counter-reset: chapter;
}

.theme-modern.list-page .archive-article {
  margin: 0;
  counter-increment: chapter;
}

.theme-modern.list-page .archive-type-page {
  display: none;
}

.theme-modern.list-page .archive-article-inner {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 14px 4px;
  border-radius: 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  box-shadow: none;
}

.theme-modern.list-page .archive-article-inner:hover {
  transform: none;
  border-color: var(--line);
  box-shadow: none;
  background: transparent;
}

.theme-modern.list-page .archive-article-inner:before {
  content: counter(chapter, decimal-leading-zero);
  flex: 0 0 2em;
  color: var(--muted);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  font-weight: 500;
}

.theme-modern.list-page .archive-article-header {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-width: 0;
}

.theme-modern.list-page .archive-article-header:after {
  display: none;
}

.theme-modern.list-page .archive-article-date {
  display: none;
}

.theme-modern.list-page .archive-article-header h1 {
  margin: 0;
  min-width: 0;
}

.theme-modern.list-page .archive-article-title {
  display: block;
  color: var(--text);
  font-size: 1.05rem;
  font-weight: 650;
  line-height: 1.45;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.theme-modern.list-page .archive-article-inner:hover .archive-article-title {
  color: var(--accent);
}

.theme-modern.list-page #sidebar .widget-wrap + .widget-wrap {
  display: none;
}

.theme-modern.list-page #sidebar .widget-wrap {
  margin: 0;
  background: transparent;
  border: 0;
  border-left: 1px solid var(--line);
  border-radius: 0;
  box-shadow: none;
  overflow: visible;
}

.theme-modern.list-page #sidebar .widget-title {
  margin: 0;
  padding: 0 0 8px 16px;
  background: transparent;
  color: var(--text);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 700;
  text-shadow: none;
}

.theme-modern.list-page #sidebar .nav-lead {
  margin: 0;
  padding: 0 0 14px 16px;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.theme-modern.list-page #sidebar .widget {
  padding: 12px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.theme-modern.list-page .category-list,
.theme-modern.list-page .category-list-child {
  list-style: none;
  margin: 0;
  padding: 0;
}

.theme-modern.list-page .category-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.theme-modern.list-page .category-list > .category-list-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 4px 10px;
  margin: 0;
  padding: 0 0 0 16px;
  border-radius: 0;
  background: transparent;
  border: 0;
  border-left: 2px solid transparent;
}

.theme-modern.list-page .category-list > .category-list-item:before {
  content: none;
}

.theme-modern.list-page .category-list > .category-list-item > .category-list-link {
  grid-column: 1;
  padding: 7px 0;
  border-radius: 0;
  font-size: 14px;
  font-weight: 650;
  letter-spacing: 0;
  color: var(--text);
}

.theme-modern.list-page .category-list > .category-list-item > .category-list-count {
  grid-column: 2;
  min-width: auto;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.theme-modern.list-page .category-list > .category-list-item.is-open,
.theme-modern.list-page .category-list > .category-list-item:hover {
  background: transparent;
  border-left-color: var(--accent);
}

.theme-modern.list-page .category-list > .category-list-item.is-open:before,
.theme-modern.list-page .category-list > .category-list-item:hover:before {
  display: none;
}

.theme-modern.list-page .category-list-link {
  display: block;
  color: var(--text);
  text-decoration: none;
}

.theme-modern.list-page .category-list-link:hover,
.theme-modern.list-page .category-list-link.is-current {
  color: var(--accent);
}

.theme-modern.list-page .category-list > .category-list-item.is-open > .category-list-count {
  color: var(--accent);
}

.theme-modern.list-page .category-list > .category-list-item > .category-list-child {
  display: none;
  grid-column: 1 / -1;
}

.theme-modern.list-page .category-list > .category-list-item.is-open > .category-list-child {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 2px 2px 4px;
}

.theme-modern.list-page .category-list-child .category-list-item {
  margin: 0;
}

.theme-modern.list-page .category-list-child .category-list-link {
  display: inline-block;
  min-height: 0;
  padding: 2px 0;
  margin-right: 12px;
  border-radius: 0;
  background: transparent;
  border: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
}

.theme-modern.list-page .category-list-child .category-list-link:hover,
.theme-modern.list-page .category-list-child .category-list-link.is-current {
  background: transparent;
  border: 0;
  color: var(--accent);
}

.theme-modern.list-page .category-list-child .category-list-count {
  display: none;
}

.theme-modern.list-page #page-nav {
  margin-top: 22px;
  display: flex;
  justify-content: center;
  gap: 4px;
  padding: 6px;
  border-radius: 16px;
}

.theme-modern:not(.home-page) .article {
  margin: 0 0 20px;
}

.theme-modern:not(.home-page) .article-inner {
  background: transparent;
  border: 0;
  border-radius: var(--radius);
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.03);
  overflow: hidden;
}

.theme-modern:not(.home-page) .article-meta {
  padding: 18px 24px 0;
}

.theme-modern:not(.home-page) .article-date,
.theme-modern:not(.home-page) .article-category,
.theme-modern:not(.home-page) .article-category-link {
  float: none;
  display: inline-block;
  margin: 0 10px 0 0;
  color: var(--muted);
  text-shadow: none;
  font-size: 13px;
}

.theme-modern:not(.home-page) .article-category:before {
  content: none;
}

.theme-modern:not(.home-page) .article-category-link {
  color: var(--accent);
}

.theme-modern .read-stats {
  display: inline-block;
  margin: 0 0 10px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
}

.theme-modern .article-engagement {
  margin: 18px 0 0;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
}

.theme-modern .article-engagement-title {
  margin: 0 0 12px;
  color: var(--text);
  font-size: 16px;
  font-weight: 650;
  line-height: 1.4;
}

.theme-modern .article-stats {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.theme-modern .article-stat-item,
.theme-modern .article-like-button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 32px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  color: var(--muted);
  font: inherit;
  line-height: 1;
}

.theme-modern .article-like-button {
  cursor: pointer;
  transition: border-color 0.18s ease, color 0.18s ease, background-color 0.18s ease;
}

.theme-modern .article-like-button:hover:not(:disabled),
.theme-modern .article-like-button:focus-visible {
  border-color: var(--accent);
  color: var(--accent);
  outline: none;
}

.theme-modern .article-like-button.is-liked {
  border-color: var(--accent);
  background: #f0fdfa;
  color: var(--accent-2);
}

.theme-modern .article-like-button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.theme-modern .article-view-count,
.theme-modern .article-like-count {
  color: var(--text);
  font-weight: 650;
}

.theme-modern .article-comments {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.theme-modern .article-comments-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.theme-modern .article-comments-heading h3 {
  margin: 0;
  color: var(--text);
  font-size: 15px;
}

.theme-modern .article-comment-count,
.theme-modern .article-comment-status,
.theme-modern .article-comment-empty,
.theme-modern .article-comment-loading {
  color: var(--muted);
  font-size: 13px;
}

.theme-modern .article-comment-form {
  display: grid;
  gap: 12px;
  margin-bottom: 20px;
}

.theme-modern .article-comment-form label {
  display: grid;
  gap: 6px;
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
}

.theme-modern .article-comment-form textarea {
  box-sizing: border-box;
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  font: inherit;
  line-height: 1.55;
  resize: vertical;
}

.theme-modern .article-comment-form textarea:focus {
  border-color: var(--accent);
  outline: 2px solid rgba(15, 118, 110, 0.12);
}

.theme-modern .article-comment-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.theme-modern .article-comment-submit {
  min-height: 36px;
  padding: 0 16px;
  border: 0;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-weight: 650;
}

.theme-modern .article-comment-submit:hover:not(:disabled) {
  background: var(--accent-2);
}

.theme-modern .article-comment-submit:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

.theme-modern .article-comment-list {
  display: grid;
  gap: 10px;
}

.theme-modern .article-comment-item {
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
}

.theme-modern .article-comment-meta {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 12px;
}

.theme-modern .article-comment-meta strong {
  color: var(--text);
  font-size: 13px;
}

.theme-modern .article-comment-meta time {
  margin-left: auto;
}

.theme-modern .article-comment-mine {
  padding: 2px 6px;
  border-radius: 999px;
  background: #f0fdfa;
  color: var(--accent);
}

.theme-modern .article-comment-item p {
  margin: 0;
  color: var(--text);
  font-size: 14px;
  line-height: 1.65;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.theme-modern .article-comment-reply {
  position: relative;
  margin-top: 12px;
  padding: 11px 12px;
  border-left: 3px solid var(--accent);
  border-radius: 0 7px 7px 0;
  background: #f0fdfa;
}

.theme-modern .article-comment-reply strong {
  display: block;
  margin-bottom: 5px;
  color: var(--accent-2);
  font-size: 12px;
}

.theme-modern .article-comment-reply time {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 11px;
}

.theme-modern .site-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  margin-bottom: 10px;
  color: var(--muted);
}

.theme-modern .site-stats span {
  white-space: nowrap;
}

.theme-modern:not(.home-page) .article-header {
  padding: 10px 24px 0;
}

.theme-modern:not(.home-page) .article-title,
.theme-modern:not(.home-page) .article-title a {
  color: var(--text);
  font-size: 1.45rem;
  line-height: 1.35;
  letter-spacing: -0.03em;
  font-weight: 700;
  text-decoration: none;
}

.theme-modern:not(.home-page) .article-title a:hover {
  color: var(--accent);
}

.theme-modern:not(.home-page) .article-entry {
  color: var(--text);
  padding: 8px 24px 4px;
}

.theme-modern:not(.home-page) .article-entry p,
.theme-modern:not(.home-page) .article-entry table {
  margin: 1em 0;
  line-height: 1.75;
}

.theme-modern:not(.home-page) .article-entry h1,
.theme-modern:not(.home-page) .article-entry h2,
.theme-modern:not(.home-page) .article-entry h3,
.theme-modern:not(.home-page) .article-entry h4 {
  margin: 1.4em 0 0.6em;
  letter-spacing: -0.03em;
  color: var(--text);
}

.theme-modern:not(.home-page) .article-entry a {
  color: var(--accent);
  text-decoration: none;
}

.theme-modern:not(.home-page) .article-entry a:hover {
  text-decoration: underline;
}

.theme-modern:not(.home-page) .article-entry blockquote {
  margin: 1.2em 0;
  padding: 10px 14px;
  border-left: 3px solid var(--accent);
  background: #f4f3ee;
  border-radius: 0;
  text-align: left;
  font-family: inherit;
}

.theme-modern:not(.home-page) .article-entry table {
  display: block;
  overflow-x: auto;
}

.theme-modern:not(.home-page) .article-entry th,
.theme-modern:not(.home-page) .article-entry td {
  border-color: var(--line);
  padding: 8px 10px;
}

.theme-modern:not(.home-page) .article-entry:before,
.theme-modern:not(.home-page) .article-entry:after {
  display: none;
}

.theme-modern:not(.home-page) .article-footer {
  border-top: 1px solid var(--line);
  margin: 8px 24px 20px;
  padding-top: 14px;
}

.theme-modern:not(.home-page) .article-more-link a {
  background: transparent;
  color: var(--accent);
  text-shadow: none;
  border-radius: 0;
}

.theme-modern:not(.home-page) figure.highlight,
.theme-modern:not(.home-page) pre:not(.mermaid),
.theme-modern:not(.home-page) .highlight {
  background: #0f172a !important;
  color: #e2e8f0;
  border-radius: 12px;
  overflow: auto;
}

.theme-modern .article-entry .mermaid-box {
  background: #ffffff !important;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 12px;
  margin: 1.2em 0;
  overflow-x: auto;
  text-align: center;
  line-height: 1.4;
}

.theme-modern .article-entry .mermaid-box.is-ready {
  background: #fafaf9 !important;
}

.theme-modern .article-entry .mermaid-box.is-ready svg {
  display: block;
  margin: 0 auto;
}

.theme-modern .article-entry pre.mermaid,
.theme-modern .article-entry div.mermaid {
  background: #f7f6f2 !important;
  color: var(--text) !important;
  border: 0;
  margin: 0;
  padding: 12px;
  text-align: left;
  white-space: pre-wrap;
  font-size: 13px;
}

.theme-modern .article-entry .mermaid-box svg,
.theme-modern .article-entry pre.mermaid svg,
.theme-modern .article-entry div.mermaid svg {
  max-width: 100%;
  height: auto;
}

.theme-modern:not(.home-page) .highlight .gutter {
  color: #64748b;
}

.theme-modern #article-nav {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  position: relative;
  height: auto;
  margin: 24px 0 0;
  z-index: 2;
}

.theme-modern #article-nav:before,
.theme-modern #article-nav:after {
  display: none !important;
  content: none !important;
}

.theme-modern .article-nav-link-wrap,
.theme-modern #article-nav-newer,
.theme-modern #article-nav-older {
  position: static !important;
  float: none !important;
  width: auto !important;
  left: auto !important;
  right: auto !important;
  pointer-events: auto !important;
  z-index: 2;
}

.theme-modern .article-nav-link-wrap {
  display: block;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin-top: 0;
  color: var(--text);
  text-shadow: none;
  text-align: left;
}

.theme-modern #article-nav:has(#article-nav-newer):has(#article-nav-older) {
  grid-template-columns: 1fr 1fr;
}

.theme-modern #article-nav-older {
  text-align: right;
}

.theme-modern .article-nav-caption {
  color: var(--accent);
  letter-spacing: 0.06em;
}

.theme-modern .widget-wrap {
  margin: 0 0 16px;
}

.theme-modern .widget-title {
  margin: 0 0 8px;
  color: var(--muted);
  text-shadow: none;
  letter-spacing: 0.06em;
}

.theme-modern .widget {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: none;
  text-shadow: none;
  color: var(--text);
  padding: 16px 18px;
}

.theme-modern .widget a {
  color: var(--text);
}

.theme-modern .widget a:hover {
  color: var(--accent);
  text-decoration: none;
}

.theme-modern .category-list-count,
.theme-modern .tag-list-count,
.theme-modern .archive-list-count {
  color: var(--muted);
}

.theme-modern .archives-wrap {
  margin: 0 0 20px;
}

.theme-modern .archives {
  column-count: 1;
}

.theme-modern .archive-year {
  color: var(--muted);
  text-shadow: none;
  letter-spacing: 0.06em;
}

.theme-modern .archive-article-inner {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: none;
  padding: 14px 16px;
}

.theme-modern .archive-article-title {
  color: var(--text);
}

.theme-modern .archive-article-title:hover {
  color: var(--accent);
}

.theme-modern #page-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 4px;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  overflow: visible;
}

.theme-modern #page-nav:before,
.theme-modern #page-nav:after {
  display: none !important;
  content: none !important;
}

.theme-modern #page-nav a,
.theme-modern #page-nav span,
.theme-modern #page-nav .prev,
.theme-modern #page-nav .next {
  float: none !important;
  height: auto !important;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  pointer-events: auto;
}

.theme-modern #page-nav a,
.theme-modern #page-nav span {
  color: var(--muted);
}

.theme-modern #page-nav a:hover,
.theme-modern #page-nav .current {
  background: #f0fdfa;
  color: var(--accent);
}

.theme-modern #mobile-nav {
  display: none;
  background: var(--hero);
}

@media (max-width: 479px) {
  .theme-modern #mobile-nav {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    height: 100vh;
    overflow-y: auto;
  }
}

.theme-modern #search-form-wrap:not(.on) {
  pointer-events: none;
}

.theme-modern.list-page .article-entry,
.theme-modern.list-page .article-footer {
  display: none;
}

.theme-modern.home-page #sidebar,
.theme-modern.home-page .article-meta,
.theme-modern.home-page .article-header,
.theme-modern.home-page .article-footer,
.theme-modern.home-page #article-nav {
  display: none !important;
}

.theme-modern.home-page #wrap > .outer {
  max-width: none;
  padding: 0;
  display: block;
}

.theme-modern.home-page #wrap > .outer:before,
.theme-modern.home-page #wrap > .outer:after {
  display: none !important;
  content: none !important;
}

.theme-modern.home-page #main {
  float: none !important;
  width: 100% !important;
  margin: 0;
}

.theme-modern.home-page .article,
.theme-modern.home-page .article-inner,
.theme-modern.home-page .article-entry {
  background: transparent;
  box-shadow: none;
  margin: 0;
  padding: 0;
  overflow: visible;
}

.theme-modern.home-page .article-entry p,
.theme-modern.home-page .article-entry h1,
.theme-modern.home-page .article-entry h2,
.theme-modern.home-page .article-entry h3,
.theme-modern.home-page .article-entry h4 {
  margin: 0;
}

.theme-modern.home-page .article-entry a {
  color: inherit;
  text-decoration: none;
}

.theme-modern.home-page .article-entry:before,
.theme-modern.home-page .article-entry:after {
  display: none;
}

.theme-modern.home-page .article-entry pre,
.theme-modern.home-page .article-entry figure.highlight {
  display: none !important;
}

.home-landing {
  color: var(--text);
}

.home-hero {
  position: relative;
  overflow: hidden;
  padding: 56px 24px 28px;
  background: var(--bg);
  color: var(--text);
  border-bottom: 1px solid var(--line);
}

.home-hero:after {
  display: none;
}

.home-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1120px;
  margin: 0 auto;
}

.home-badge {
  display: inline-block;
  padding: 0;
  border-radius: 0;
  background: transparent;
  border: 0;
  color: var(--accent);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
}

.home-hero h2 {
  margin: 12px 0 12px;
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  line-height: 1.25;
  letter-spacing: -0.03em;
  font-weight: 720;
}

.home-hero p {
  max-width: 680px;
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.75;
}

.home-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.home-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 4px;
  text-decoration: none !important;
  font-weight: 600;
  font-size: 14px;
}

.home-btn:hover {
  transform: none;
}

.home-btn-primary {
  background: var(--hero);
  color: #fff !important;
  box-shadow: none;
}

.home-btn-ghost {
  background: transparent;
  color: var(--text) !important;
  border: 1px solid var(--line);
}

.home-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 2;
  border-bottom: 1px solid var(--line);
}

.home-stat {
  background: transparent;
  border: 0;
  border-right: 1px solid var(--line);
  border-radius: 0;
  box-shadow: none;
  padding: 18px 0 20px;
}

.home-stat:last-child {
  border-right: 0;
}

.home-stat strong {
  display: block;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
  color: var(--text);
}

.home-stat span {
  color: var(--muted);
  font-size: 0.92rem;
}

.home-section {
  max-width: 1120px;
  margin: 0 auto;
  padding: 56px 24px 72px;
}

.home-section h3 {
  margin: 0 0 8px;
  font-size: 1.55rem;
  letter-spacing: -0.03em;
}

.home-section > p {
  margin: 0 0 24px;
  color: var(--muted);
}

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

.home-card {
  display: block;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 22px 20px;
  text-decoration: none !important;
  color: inherit !important;
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.03);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.home-card:hover {
  transform: none;
  border-color: var(--accent);
  box-shadow: none;
}

.home-card-kicker {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.home-card h4 {
  margin: 0 0 8px;
  font-size: 1.15rem;
}

.home-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.home-tracks {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.home-tracks > h3,
.home-tracks > p {
  margin: 0;
}

.theme-modern.home-page .home-tracks > p {
  margin: 0 0 8px;
}

.home-track {
  display: grid;
  grid-template-columns: minmax(240px, 300px) minmax(0, 1fr);
  gap: 28px;
  background: transparent;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  padding: 28px 0;
  box-shadow: none;
}

.home-track-head h4 {
  margin: 8px 0 10px;
  font-size: 1.55rem;
  letter-spacing: -0.03em;
}

.theme-modern.home-page .home-track-lead,
.home-track-lead {
  margin: 0;
  color: var(--text);
  font-size: 1.02rem;
  line-height: 1.75;
}

.theme-modern.home-page .home-track-body p,
.home-track-body p {
  margin: 0 0 14px;
  color: var(--muted);
  line-height: 1.8;
}

.home-track-points {
  margin: 0 0 16px;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.75;
}

.home-track-points li + li {
  margin-top: 4px;
}

.home-track-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 16px;
}

.home-track-links a {
  display: inline-flex;
  align-items: center;
  min-height: 0;
  padding: 0;
  margin-right: 14px;
  border-radius: 0;
  background: transparent;
  color: var(--accent) !important;
  font-size: 13px;
  font-weight: 600;
}

.home-track-links a:hover {
  background: transparent;
  text-decoration: underline !important;
}

.home-track-cta {
  display: inline-flex;
  color: var(--accent) !important;
  font-weight: 700;
}

.home-track-cta:hover {
  text-decoration: underline !important;
}

@media (max-width: 900px) {
  .theme-modern.list-page #wrap > .outer {
    grid-template-columns: 1fr;
  }

  .home-grid,
  .home-stats {
    grid-template-columns: 1fr 1fr;
  }

  .home-track {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 22px 20px;
  }
}

@media (max-width: 640px) {
  .home-hero {
    padding: 64px 20px 56px;
  }

  .theme-modern .article-engagement {
    padding: 16px;
  }

  .theme-modern .article-stats {
    justify-content: flex-start;
  }

  .theme-modern .article-stat-item,
  .theme-modern .article-like-button {
    flex: 1 1 0;
    justify-content: center;
  }

  .home-grid,
  .home-stats {
    grid-template-columns: 1fr;
  }

  .theme-modern .main-nav-link {
    display: none;
  }
}

/* Modern home landing */
.theme-modern.home-page .home-landing {
  background:
    radial-gradient(circle at 8% 38%, rgba(13, 148, 136, 0.08), transparent 28rem),
    linear-gradient(180deg, #f8fafc 0%, #f7f6f2 48%, #f8fafc 100%);
}

.theme-modern.home-page .home-hero {
  min-height: 500px;
  padding: 76px 24px 112px;
  border: 0;
  background:
    radial-gradient(circle at 78% 22%, rgba(45, 212, 191, 0.2), transparent 24rem),
    radial-gradient(circle at 12% 82%, rgba(37, 99, 235, 0.13), transparent 28rem),
    linear-gradient(135deg, #071b1a 0%, #0f2927 48%, #10233d 100%);
  color: #f8fafc;
}

.theme-modern.home-page .home-hero:before {
  position: absolute;
  inset: 0;
  display: block;
  content: "";
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, black, transparent 90%);
  pointer-events: none;
}

.theme-modern.home-page .home-hero:after {
  position: absolute;
  right: -100px;
  bottom: -180px;
  display: block;
  width: 520px;
  height: 520px;
  border: 1px solid rgba(94, 234, 212, 0.15);
  border-radius: 50%;
  box-shadow:
    0 0 0 70px rgba(94, 234, 212, 0.025),
    0 0 0 140px rgba(94, 234, 212, 0.018);
  content: "";
  pointer-events: none;
}

.theme-modern.home-page .home-hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
  align-items: center;
  gap: 72px;
}

.theme-modern.home-page .home-badge {
  padding: 7px 12px;
  border: 1px solid rgba(94, 234, 212, 0.28);
  border-radius: 999px;
  background: rgba(15, 118, 110, 0.18);
  color: #99f6e4;
  font-size: 12px;
  backdrop-filter: blur(8px);
}

.theme-modern.home-page .home-hero h2 {
  margin: 20px 0 20px;
  color: #f8fafc;
  font-size: clamp(2.55rem, 5vw, 4.8rem);
  font-weight: 760;
  line-height: 1.08;
  letter-spacing: -0.055em;
}

.theme-modern.home-page .home-hero h2 em {
  color: #5eead4;
  font-style: normal;
}

.theme-modern.home-page .home-hero-copy > p {
  max-width: 680px;
  margin-bottom: 28px;
  color: #b8c9c7;
  font-size: 1.06rem;
  line-height: 1.85;
}

.theme-modern.home-page .home-actions {
  gap: 14px;
}

.theme-modern.home-page .home-btn {
  min-height: 46px;
  padding: 0 20px;
  border-radius: 10px;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.theme-modern.home-page .home-btn:hover {
  transform: translateY(-2px);
}

.theme-modern.home-page .home-btn-primary {
  background: #14b8a6;
  box-shadow: 0 12px 30px rgba(20, 184, 166, 0.25);
}

.theme-modern.home-page .home-btn-primary:hover {
  box-shadow: 0 16px 36px rgba(20, 184, 166, 0.34);
}

.theme-modern.home-page .home-btn-ghost {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.06);
  color: #f8fafc !important;
  backdrop-filter: blur(10px);
}

.home-stack-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(94, 234, 212, 0.5);
  border-radius: 18px;
  background: #071923;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.36);
  transform: none;
}

.home-stack-card:before {
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, #14b8a6, #2563eb);
  content: "";
}

.home-stack-toolbar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 13px 16px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.24);
  background: #0d2430;
}

.home-stack-toolbar span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #fb7185;
}

.home-stack-toolbar span:nth-child(2) {
  background: #fbbf24;
}

.home-stack-toolbar span:nth-child(3) {
  background: #34d399;
}

.home-stack-toolbar b {
  margin-left: 8px;
  color: #e2e8f0;
  font: 600 12px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace;
}

.home-stack-code {
  display: grid;
  gap: 5px;
  padding: 22px 20px 18px;
}

.home-stack-code > div {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: 8px;
  transition: background 0.2s ease;
}

.home-stack-code > div:hover {
  background: rgba(45, 212, 191, 0.1);
}

.home-stack-code i {
  color: #94a3b8;
  font: normal 12px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace;
}

.home-stack-code code {
  display: inline-flex;
  width: fit-content;
  padding: 5px 9px;
  border: 1px solid #3b4b55;
  border-radius: 6px;
  background: #26343d;
  color: #ffffff;
  font: 600 13px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace;
}

.home-stack-code strong {
  color: #f8fafc;
  font-size: 13px;
  font-weight: 600;
}

.home-stack-status {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-top: 1px solid rgba(148, 163, 184, 0.24);
  background: #0d2430;
  color: #cbd5e1;
  font-size: 12px;
}

.home-stack-status span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 0 5px rgba(52, 211, 153, 0.1);
}

.theme-modern.home-page .home-stats {
  gap: 16px;
  margin-top: -56px;
  padding: 0 24px;
  border: 0;
}

.theme-modern.home-page .home-stat {
  padding: 24px 26px;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 16px 45px rgba(15, 23, 42, 0.09);
  backdrop-filter: blur(14px);
}

.theme-modern.home-page .home-stat strong {
  margin-bottom: 5px;
  color: #0f766e;
  font-size: 1.7rem;
}

.home-topic-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 1120px;
  margin: 30px auto 0;
  padding: 0 24px;
}

.home-topic-nav > span {
  margin-right: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}

.home-topic-nav a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 0 11px;
  border: 1px solid #e2e8f0;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.72);
  color: #334155 !important;
  font-size: 12px;
  font-weight: 650;
  transition: transform 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.home-topic-nav a b {
  color: #0f766e;
  font-size: 10px;
}

.home-topic-nav a:hover {
  border-color: #5eead4;
  color: #0f766e !important;
  transform: translateY(-1px);
}

.theme-modern.home-page .home-section {
  padding-top: 72px;
}

.theme-modern.home-page .home-section h3 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
}

.theme-modern.home-page .home-tracks {
  gap: 22px;
}

.theme-modern.home-page .home-track {
  position: relative;
  overflow: hidden;
  grid-template-columns: minmax(230px, 0.72fr) minmax(0, 1.7fr);
  gap: 38px;
  padding: 32px;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 8px 30px rgba(15, 23, 42, 0.045);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.theme-modern.home-page .home-track:before {
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, #14b8a6, #2563eb);
  content: "";
}

.theme-modern.home-page .home-track:hover {
  border-color: rgba(20, 184, 166, 0.38);
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.09);
  transform: translateY(-3px);
}

.theme-modern.home-page .home-track-head h4 {
  font-size: 1.7rem;
}

.theme-modern.home-page .home-card-kicker {
  padding: 4px 8px;
  border-radius: 6px;
  background: #ecfdf5;
}

.theme-modern.home-page .home-track-links {
  gap: 7px;
}

.theme-modern.home-page .home-track-links a {
  min-height: 29px;
  margin: 0;
  padding: 0 10px;
  border: 1px solid #e2e8f0;
  border-radius: 7px;
  background: #f8fafc;
}

.theme-modern.home-page .home-track-links a:hover {
  border-color: #99f6e4;
  background: #f0fdfa;
  text-decoration: none !important;
}

.theme-modern.home-page .home-track-cta {
  align-items: center;
  gap: 6px;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 9px;
  background: #0f766e;
  color: #fff !important;
  font-size: 13px;
}

.theme-modern.home-page .home-track-cta:hover {
  background: #115e59;
  text-decoration: none !important;
}

@media (max-width: 920px) {
  .theme-modern.home-page .home-hero {
    min-height: 0;
    padding: 64px 24px 104px;
  }

  .theme-modern.home-page .home-hero-layout {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .home-stack-card {
    max-width: 640px;
    transform: none;
  }

  .home-topic-nav {
    flex-wrap: wrap;
  }

  .home-topic-nav > span {
    flex-basis: 100%;
    margin-bottom: 4px;
  }

  .theme-modern.home-page .home-track {
    grid-template-columns: 1fr;
    gap: 18px;
  }
}

@media (max-width: 640px) {
  .theme-modern.home-page .home-hero {
    padding: 54px 20px 92px;
  }

  .theme-modern.home-page .home-hero h2 {
    font-size: clamp(2.2rem, 12vw, 3.3rem);
  }

  .home-stack-card {
    display: none;
  }

  .theme-modern.home-page .home-stats {
    grid-template-columns: 1fr;
    margin-top: -44px;
    padding: 0 16px;
  }

  .theme-modern.home-page .home-stat {
    padding: 18px 20px;
  }

  .home-topic-nav {
    margin-top: 24px;
    padding: 0 16px;
  }

  .home-topic-nav a {
    flex: 1 1 calc(33.333% - 8px);
    justify-content: center;
  }

  .theme-modern.home-page .home-section {
    padding: 54px 16px 64px;
  }

  .theme-modern.home-page .home-track {
    padding: 24px 20px;
    border-radius: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .theme-modern.home-page .home-btn,
  .theme-modern.home-page .home-track,
  .home-topic-nav a {
    transition: none;
  }
}

/* Modern article pages */
.theme-modern:not(.home-page):not(.list-page) #wrap {
  background:
    radial-gradient(circle at 10% 8%, rgba(20, 184, 166, 0.08), transparent 25rem),
    radial-gradient(circle at 92% 34%, rgba(37, 99, 235, 0.06), transparent 28rem),
    #f4f7f8;
}

.theme-modern:not(.home-page):not(.list-page) #wrap > .outer {
  grid-template-columns: 220px minmax(0, 840px);
  gap: 36px;
  max-width: 1096px;
  padding-top: 36px;
}

.theme-modern:not(.home-page):not(.list-page) .article-toc {
  top: 82px;
  padding: 18px 14px;
  border: 1px solid #dbe4e8;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 10px 32px rgba(15, 23, 42, 0.06);
  backdrop-filter: blur(12px);
}

.theme-modern:not(.home-page):not(.list-page) .article-toc-title {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 12px;
  color: #0f172a;
  font-size: 14px;
}

.theme-modern:not(.home-page):not(.list-page) .article-toc-title:before {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #14b8a6;
  box-shadow: 0 0 0 5px rgba(20, 184, 166, 0.1);
  content: "";
}

.theme-modern:not(.home-page):not(.list-page) .article-toc-link {
  margin: 1px 0;
  padding: 7px 9px;
  border-radius: 0 7px 7px 0;
  color: #64748b;
}

.theme-modern:not(.home-page):not(.list-page) .article-toc-link:hover,
.theme-modern:not(.home-page):not(.list-page) .article-toc-link.is-active {
  background: #ecfdf5;
  color: #0f766e;
}

.theme-modern:not(.home-page):not(.list-page) .article {
  overflow: hidden;
  margin-bottom: 30px;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 18px 55px rgba(15, 23, 42, 0.08);
}

.theme-modern:not(.home-page):not(.list-page) .article-meta {
  padding: 30px 38px 8px;
  background:
    radial-gradient(circle at 88% 0%, rgba(45, 212, 191, 0.17), transparent 16rem),
    linear-gradient(135deg, #0b2423, #102a3e);
}

.theme-modern:not(.home-page):not(.list-page) .article-date,
.theme-modern:not(.home-page):not(.list-page) .article-category {
  color: #b6c9c7;
}

.theme-modern:not(.home-page):not(.list-page) .article-category-link {
  color: #99f6e4;
}

.theme-modern:not(.home-page):not(.list-page) .article-inner {
  overflow: visible;
  border-radius: 0;
  background: #fff;
  box-shadow: none;
}

.theme-modern:not(.home-page):not(.list-page) .article-header {
  padding: 8px 38px 32px;
  background:
    radial-gradient(circle at 88% -40%, rgba(45, 212, 191, 0.17), transparent 16rem),
    linear-gradient(135deg, #0b2423, #102a3e);
}

.theme-modern:not(.home-page):not(.list-page) .article-title,
.theme-modern:not(.home-page):not(.list-page) .article-title a {
  max-width: 720px;
  color: #f8fafc;
  font-size: clamp(1.9rem, 4vw, 2.65rem);
  font-weight: 760;
  line-height: 1.25;
  letter-spacing: -0.045em;
}

.theme-modern:not(.home-page):not(.list-page) .article-entry {
  padding: 34px 40px 24px;
  color: #3f4c5f;
  font-size: 16px;
  line-height: 1.82;
}

.theme-modern:not(.home-page):not(.list-page) .article-entry h2 {
  position: relative;
  margin-top: 2.1em;
  padding: 0 0 10px 16px;
  border-bottom: 1px solid #e2e8f0;
  color: #0f172a;
  font-size: 1.55rem;
}

.theme-modern:not(.home-page):not(.list-page) .article-entry h2:before {
  position: absolute;
  top: 0.18em;
  bottom: 0.55em;
  left: 0;
  width: 4px;
  border-radius: 999px;
  background: linear-gradient(180deg, #14b8a6, #2563eb);
  content: "";
}

.theme-modern:not(.home-page):not(.list-page) .article-entry h3 {
  margin-top: 1.8em;
  color: #173c3a;
  font-size: 1.25rem;
}

.theme-modern:not(.home-page):not(.list-page) .article-entry code {
  padding: 0.16em 0.42em;
  border: 1px solid #dbe4e8;
  border-radius: 5px;
  background: #f1f5f4;
  color: #0f766e;
  font-size: 0.88em;
}

.theme-modern:not(.home-page):not(.list-page) .article-entry pre code,
.theme-modern:not(.home-page):not(.list-page) .article-entry figure.highlight code {
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
}

.theme-modern:not(.home-page):not(.list-page) .article-entry figure.highlight,
.theme-modern:not(.home-page):not(.list-page) .article-entry pre:not(.mermaid),
.theme-modern:not(.home-page):not(.list-page) .article-entry .highlight {
  border: 1px solid #d8e0e5;
  border-top: 3px solid #94a3b8;
  border-radius: 11px;
  background: #f6f8fa !important;
  color: #243241;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.theme-modern:not(.home-page):not(.list-page) .article-entry pre:not(.mermaid) {
  padding: 18px 20px;
  font-size: 13px;
  line-height: 1.7;
}

.theme-modern:not(.home-page):not(.list-page) .article-entry figure.highlight pre,
.theme-modern:not(.home-page):not(.list-page) .article-entry .highlight pre,
.theme-modern:not(.home-page):not(.list-page) .article-entry .highlight .gutter pre {
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent !important;
  box-shadow: none;
}

.theme-modern:not(.home-page):not(.list-page) .article-entry figure.highlight table,
.theme-modern:not(.home-page):not(.list-page) .article-entry figure.highlight tbody,
.theme-modern:not(.home-page):not(.list-page) .article-entry figure.highlight tr,
.theme-modern:not(.home-page):not(.list-page) .article-entry figure.highlight td {
  margin: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.theme-modern:not(.home-page):not(.list-page) .article-entry figure.highlight .gutter {
  padding: 14px 8px 14px 18px;
  border: 0;
  background: transparent;
  color: #8a99a8;
  text-align: right;
  user-select: none;
}

.theme-modern:not(.home-page):not(.list-page) .article-entry figure.highlight .code {
  padding: 14px 18px 14px 12px;
  color: #243241;
}

.theme-modern:not(.home-page):not(.list-page) .article-entry figure.highlight figcaption {
  padding: 9px 14px;
  border-bottom: 1px solid #d8e0e5;
  background: #edf1f4;
  color: #526170;
  font-size: 12px;
}

.theme-modern:not(.home-page):not(.list-page) .article-entry figure.highlight figcaption a {
  color: #0f766e;
}

.theme-modern:not(.home-page):not(.list-page) .article-entry pre {
  text-shadow: none;
}

.theme-modern:not(.home-page):not(.list-page) .article-entry pre .comment,
.theme-modern:not(.home-page):not(.list-page) .article-entry pre .title {
  color: #6b7280;
}

.theme-modern:not(.home-page):not(.list-page) .article-entry pre .variable,
.theme-modern:not(.home-page):not(.list-page) .article-entry pre .attribute,
.theme-modern:not(.home-page):not(.list-page) .article-entry pre .tag,
.theme-modern:not(.home-page):not(.list-page) .article-entry pre .regexp {
  color: #b42318;
}

.theme-modern:not(.home-page):not(.list-page) .article-entry pre .number,
.theme-modern:not(.home-page):not(.list-page) .article-entry pre .preprocessor,
.theme-modern:not(.home-page):not(.list-page) .article-entry pre .built_in,
.theme-modern:not(.home-page):not(.list-page) .article-entry pre .literal,
.theme-modern:not(.home-page):not(.list-page) .article-entry pre .params,
.theme-modern:not(.home-page):not(.list-page) .article-entry pre .constant {
  color: #b54708;
}

.theme-modern:not(.home-page):not(.list-page) .article-entry pre .class,
.theme-modern:not(.home-page):not(.list-page) .article-entry pre .string,
.theme-modern:not(.home-page):not(.list-page) .article-entry pre .value {
  color: #16794b;
}

.theme-modern:not(.home-page):not(.list-page) .article-entry pre .function {
  color: #175cd3;
}

.theme-modern:not(.home-page):not(.list-page) .article-entry pre .keyword {
  color: #6941c6;
}

.theme-modern:not(.home-page):not(.list-page) .article-entry .highlight .line.marked {
  background: #e2e8f0;
}

.theme-modern:not(.home-page):not(.list-page) .article-entry blockquote {
  padding: 14px 18px;
  border: 0;
  border-left: 4px solid #14b8a6;
  border-radius: 0 10px 10px 0;
  background: #f0fdfa;
  color: #334155;
}

.theme-modern:not(.home-page):not(.list-page) .article-entry table {
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #fff;
}

.theme-modern:not(.home-page):not(.list-page) .article-entry th {
  background: #f1f5f4;
  color: #173c3a;
}

.theme-modern:not(.home-page):not(.list-page) .article-entry img {
  border-radius: 12px;
  box-shadow: 0 12px 35px rgba(15, 23, 42, 0.1);
}

.theme-modern:not(.home-page):not(.list-page) #article-nav {
  gap: 14px;
  margin: 10px 30px 0;
}

.theme-modern:not(.home-page):not(.list-page) .article-nav-link-wrap {
  padding: 16px 18px;
  border-color: #e2e8f0;
  border-radius: 12px;
  background: #f8fafc;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.theme-modern:not(.home-page):not(.list-page) .article-nav-link-wrap:hover {
  border-color: #5eead4;
  box-shadow: 0 10px 26px rgba(15, 118, 110, 0.09);
  transform: translateY(-2px);
}

.theme-modern:not(.home-page):not(.list-page) .article-engagement {
  margin: 24px 30px 30px;
  padding: 24px;
  border-color: #dbe4e8;
  border-radius: 14px;
  background: #f8fafc;
}

.theme-modern:not(.home-page):not(.list-page) .article-stat-item,
.theme-modern:not(.home-page):not(.list-page) .article-like-button {
  min-height: 38px;
  border-color: #dbe4e8;
  border-radius: 9px;
  background: #fff;
}

.theme-modern:not(.home-page):not(.list-page) .article-comment-form textarea,
.theme-modern:not(.home-page):not(.list-page) .article-comment-item {
  border-color: #dbe4e8;
  border-radius: 10px;
}

.theme-modern:not(.home-page):not(.list-page) .article-comment-submit {
  min-height: 40px;
  border-radius: 9px;
  box-shadow: 0 8px 20px rgba(15, 118, 110, 0.18);
}

@media (max-width: 1100px) {
  .theme-modern:not(.home-page):not(.list-page) #wrap > .outer {
    max-width: 840px;
  }
}

@media (max-width: 640px) {
  .theme-modern:not(.home-page):not(.list-page) #wrap > .outer {
    padding: 18px 12px 48px;
  }

  .theme-modern:not(.home-page):not(.list-page) .article {
    border-radius: 14px;
  }

  .theme-modern:not(.home-page):not(.list-page) .article-meta {
    padding: 24px 20px 6px;
  }

  .theme-modern:not(.home-page):not(.list-page) .article-header {
    padding: 6px 20px 24px;
  }

  .theme-modern:not(.home-page):not(.list-page) .article-title,
  .theme-modern:not(.home-page):not(.list-page) .article-title a {
    font-size: 1.85rem;
  }

  .theme-modern:not(.home-page):not(.list-page) .article-entry {
    padding: 24px 20px 18px;
    font-size: 15px;
  }

  .theme-modern:not(.home-page):not(.list-page) #article-nav,
  .theme-modern:not(.home-page):not(.list-page) .article-engagement {
    margin-right: 16px;
    margin-left: 16px;
  }

  .theme-modern:not(.home-page):not(.list-page) #article-nav:has(#article-nav-newer):has(#article-nav-older) {
    grid-template-columns: 1fr;
  }
}

/* Modern article lists, archives and categories */
.theme-modern.list-page #wrap {
  background:
    radial-gradient(circle at 8% 8%, rgba(20, 184, 166, 0.07), transparent 24rem),
    #f4f7f8;
}

.theme-modern.list-page .list-hero {
  padding: 52px 24px 48px;
  border: 0;
  background:
    radial-gradient(circle at 82% 15%, rgba(45, 212, 191, 0.18), transparent 22rem),
    linear-gradient(135deg, #0b2423, #102a3e);
  color: #f8fafc;
}

.theme-modern.list-page .list-hero:before {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 42px 42px;
  content: "";
  pointer-events: none;
}

.theme-modern.list-page .list-crumb {
  color: #94a3b8;
}

.theme-modern.list-page .list-crumb a {
  color: #99f6e4 !important;
}

.theme-modern.list-page .list-hero h2 {
  margin: 15px 0 10px;
  color: #f8fafc;
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 760;
  letter-spacing: -0.05em;
}

.theme-modern.list-page .list-hero p {
  color: #b8c9c7;
  font-size: 1rem;
}

.theme-modern.list-page .list-hero-meta {
  margin-top: 6px;
  padding: 5px 10px;
  border: 1px solid rgba(94, 234, 212, 0.25);
  border-radius: 999px;
  background: rgba(15, 118, 110, 0.18);
  color: #99f6e4;
  font-size: 12px;
}

.theme-modern.list-page #wrap > .outer {
  gap: 28px;
  padding-top: 36px;
}

.theme-modern.list-page #main > .article {
  overflow: hidden;
  margin-bottom: 14px;
  border: 1px solid #e2e8f0;
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.055);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.theme-modern.list-page #main > .article:hover {
  border-color: rgba(20, 184, 166, 0.45);
  box-shadow: 0 16px 38px rgba(15, 23, 42, 0.09);
  transform: translateY(-2px);
}

.theme-modern.list-page #main > .article .article-meta {
  padding: 19px 24px 0;
}

.theme-modern.list-page #main > .article .article-inner {
  background: transparent;
  box-shadow: none;
}

.theme-modern.list-page #main > .article .article-header {
  padding: 7px 24px 22px;
}

.theme-modern.list-page #main > .article .article-title,
.theme-modern.list-page #main > .article .article-title a {
  color: #172033;
  font-size: 1.14rem;
  font-weight: 680;
  line-height: 1.48;
}

.theme-modern.list-page #main > .article:hover .article-title,
.theme-modern.list-page #main > .article:hover .article-title a {
  color: #0f766e;
}

.theme-modern.list-page .archives {
  gap: 10px;
}

.theme-modern.list-page .archive-article-inner {
  align-items: center;
  gap: 14px;
  min-height: 62px;
  padding: 12px 16px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 5px 18px rgba(15, 23, 42, 0.04);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.theme-modern.list-page .archive-article-inner:before {
  display: inline-flex;
  flex: 0 0 34px;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: #ecfdf5;
  color: #0f766e;
  font-size: 11px;
  font-weight: 750;
}

.theme-modern.list-page .archive-article-inner:hover {
  border-color: rgba(20, 184, 166, 0.45);
  background: #fff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
  transform: translateY(-2px);
}

.theme-modern.list-page .archive-article-header {
  align-items: center;
}

.theme-modern.list-page .archive-article-date {
  display: block;
  flex: 0 0 auto;
  order: 2;
  color: #94a3b8;
  font-size: 12px;
  white-space: nowrap;
}

.theme-modern.list-page .archive-article-header h1 {
  order: 1;
}

.theme-modern.list-page .archive-article-title {
  color: #172033;
  font-size: 1rem;
  font-weight: 650;
}

.theme-modern.list-page #sidebar .widget-wrap {
  overflow: hidden;
  border: 1px solid #dbe4e8;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.055);
  backdrop-filter: blur(10px);
}

.theme-modern.list-page #sidebar .widget-title {
  padding: 18px 18px 7px;
  color: #0f172a;
  font-size: 13px;
}

.theme-modern.list-page #sidebar .nav-lead {
  padding: 0 18px 12px;
}

.theme-modern.list-page #sidebar .widget {
  padding: 8px 12px 14px;
}

.theme-modern.list-page .category-list > .category-list-item {
  padding: 0 10px;
  border: 0;
  border-radius: 9px;
}

.theme-modern.list-page .category-list > .category-list-item.is-open,
.theme-modern.list-page .category-list > .category-list-item:hover {
  border: 0;
  background: #ecfdf5;
}

.theme-modern.list-page .category-list > .category-list-item > .category-list-link {
  padding: 9px 0;
}

.theme-modern.list-page .category-list > .category-list-item > .category-list-child {
  padding-bottom: 9px;
}

.theme-modern.list-page .category-list-child .category-list-link {
  padding: 4px 7px;
  margin: 0;
  border: 1px solid #dbe4e8;
  border-radius: 6px;
  background: #fff;
  font-size: 12px;
}

.theme-modern.list-page #page-nav {
  width: fit-content;
  margin: 28px auto 0;
  padding: 5px;
  border: 1px solid #dbe4e8;
  border-radius: 11px;
  background: #fff;
  box-shadow: 0 7px 22px rgba(15, 23, 42, 0.05);
}

.theme-modern.list-page #page-nav a,
.theme-modern.list-page #page-nav span {
  min-width: 34px;
  min-height: 34px;
  justify-content: center;
  border-radius: 7px;
}

@media (max-width: 900px) {
  .theme-modern.list-page #sidebar {
    position: static;
  }
}

@media (max-width: 640px) {
  .theme-modern.list-page .list-hero {
    padding: 38px 20px 36px;
  }

  .theme-modern.list-page #wrap > .outer {
    padding: 22px 14px 54px;
  }

  .theme-modern.list-page .archive-article-inner {
    padding: 11px 12px;
  }

  .theme-modern.list-page .archive-article-date {
    display: none;
  }
}
