:root {
  --bg: #f6f9fc;
  --panel: #ffffff;
  --panel-soft: #eef4ff;
  --ink: #0a2540;
  --muted: #425466;
  --faint: #6b7c93;
  --line: #d8e2ee;
  --accent: #635bff;
  --green: #00a37a;
  --shadow: 0 10px 28px rgba(10, 37, 64, 0.06);
  --radius: 8px;
  --content: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  line-height: 1.72;
  letter-spacing: 0;
  overflow-x: hidden;
}

body.nav-open {
  overflow: hidden;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 160ms ease, background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

a:hover {
  color: #0a2540;
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

button,
input,
textarea {
  font: inherit;
}

::selection {
  background: rgba(0, 212, 255, 0.28);
}

.skip-link,
.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;
}

.skip-link:focus {
  top: 14px;
  left: 14px;
  z-index: 1000;
  width: auto;
  height: auto;
  padding: 8px 12px;
  margin: 0;
  clip: auto;
  color: #fff;
  background: var(--ink);
  border-radius: var(--radius);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid transparent;
  transition: background 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.84);
  border-color: rgba(216, 226, 238, 0.88);
  box-shadow: 0 12px 32px rgba(10, 37, 64, 0.08);
  backdrop-filter: saturate(140%) blur(16px);
}

.site-header__inner {
  width: min(var(--content), calc(100% - 40px));
  min-height: 74px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: var(--ink);
  font-weight: 760;
  line-height: 1.1;
}

.brand img {
  max-width: 168px;
  max-height: 42px;
  object-fit: contain;
}

.brand-mark {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  border-radius: 7px;
  background: var(--accent);
  box-shadow: inset 0 0 0 7px rgba(255, 255, 255, 0.28);
}

.brand-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.site-nav-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 20px;
  min-width: 0;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  min-width: 0;
  flex-wrap: wrap;
}

.site-nav a {
  color: var(--muted);
  padding: 8px 10px;
  border-radius: var(--radius);
  font-size: 14px;
  line-height: 1.2;
}

.site-nav a:hover {
  color: var(--ink);
  background: rgba(99, 91, 255, 0.08);
}

.site-search {
  position: relative;
  display: flex;
  align-items: center;
  width: 210px;
  flex: 0 0 auto;
}

.site-search input {
  width: 100%;
  height: 38px;
  padding: 0 42px 0 14px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(216, 226, 238, 0.95);
  border-radius: var(--radius);
  outline: none;
}

.site-search input:focus {
  border-color: rgba(99, 91, 255, 0.62);
  box-shadow: 0 0 0 3px rgba(99, 91, 255, 0.12);
}

.site-search button {
  position: absolute;
  right: 6px;
  width: 30px;
  height: 30px;
  padding: 0;
  cursor: pointer;
  background: var(--ink);
  border: 0;
  border-radius: 7px;
}

.site-search button::before,
.site-search button::after {
  position: absolute;
  content: "";
  display: block;
}

.site-search button::before {
  width: 9px;
  height: 9px;
  top: 8px;
  left: 8px;
  border: 2px solid #fff;
  border-radius: 50%;
}

.site-search button::after {
  width: 8px;
  height: 2px;
  top: 18px;
  left: 18px;
  background: #fff;
  transform: rotate(45deg);
  transform-origin: left center;
  border-radius: 2px;
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  margin-left: auto;
  padding: 0;
  cursor: pointer;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  background: var(--ink);
  border-radius: 2px;
}

.home-hero {
  width: min(var(--content), calc(100% - 40px));
  margin: 44px auto 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.home-hero__copy {
  min-width: 0;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--green);
  font-size: 12px;
  font-weight: 760;
  line-height: 1.35;
  text-transform: uppercase;
}

.home-hero h1,
.article-header h1,
.archive-header h1,
.empty-state h1 {
  margin: 0;
  color: var(--ink);
  font-size: 46px;
  line-height: 1.12;
  font-weight: 780;
}

.home-hero p:not(.eyebrow) {
  max-width: 720px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.66;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 16px;
  border-radius: var(--radius);
  font-weight: 720;
  line-height: 1.2;
}

.button-primary {
  color: #fff;
  background: var(--ink);
}

.button-primary:hover {
  color: #fff;
  transform: translateY(-1px);
}

.button-ghost {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--line);
}

.button-ghost:hover {
  background: #fff;
}

.site-layout {
  width: min(var(--content), calc(100% - 40px));
  margin: 42px auto 86px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 34px;
  align-items: start;
}

.content-column,
.article-main,
.side-column {
  min-width: 0;
}

.archive-header {
  margin-bottom: 26px;
  padding: 26px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(216, 226, 238, 0.88);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.archive-header h1 {
  font-size: 34px;
}

.post-feed {
  display: grid;
  gap: 18px;
}

.post-card,
.whisper-card,
.widget,
.article-main,
.empty-state {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(216, 226, 238, 0.9);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.post-card {
  overflow: hidden;
}

.post-card__body {
  padding: 26px;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.post-meta {
  margin: 0 0 12px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  color: var(--faint);
  list-style: none;
  font-size: 13px;
  line-height: 1.4;
}

.post-meta li {
  display: inline-flex;
  align-items: center;
  min-width: 0;
}

.post-meta li + li::before {
  content: "";
  width: 4px;
  height: 4px;
  margin-right: 12px;
  background: var(--line);
  border-radius: 50%;
}

.post-meta a {
  color: var(--faint);
}

.post-card__title {
  margin: 0;
  font-size: 25px;
  line-height: 1.28;
  font-weight: 760;
}

.post-card__title a {
  color: var(--ink);
}

.post-card__title a:hover {
  color: var(--accent);
}

.post-card__excerpt {
  margin-top: 14px;
  color: var(--muted);
}

.post-card__excerpt p {
  margin: 0;
}

.read-more {
  width: fit-content;
  margin-top: auto;
  padding-top: 18px;
  color: var(--accent);
  font-weight: 720;
}

.read-more::after,
.widget-action::after {
  content: " ->";
}

.whisper-card {
  margin-bottom: 18px;
  padding: 22px 24px;
}

.whisper-card p:last-child {
  margin-bottom: 0;
}

.page-nav {
  margin: 30px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
}

.page-nav li a,
.page-nav li span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  min-height: 40px;
  padding: 8px 12px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.page-nav li.current a,
.page-nav li.current span,
.page-nav li a:hover {
  color: #fff;
  background: var(--ink);
  border-color: var(--ink);
}

.side-column {
  position: sticky;
  top: 98px;
  display: grid;
  gap: 16px;
}

.widget {
  padding: 20px;
}

.widget h2,
.widget h3 {
  margin: 0 0 14px;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.35;
}

.about-widget p:not(.eyebrow) {
  margin: 0 0 16px;
  color: var(--muted);
}

.widget-action {
  color: var(--accent);
  font-weight: 720;
}

.widget-list,
.tag-cloud,
.footer-links,
.link-grid {
  margin: 0;
  padding: 0;
  list-style: none;
}

.widget-list {
  display: grid;
  gap: 10px;
}

.widget-list li {
  min-width: 0;
  color: var(--muted);
}

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

.widget-list a:hover {
  color: var(--accent);
}

.compact-list li {
  display: grid;
  gap: 2px;
}

.compact-list span {
  color: var(--faint);
  font-size: 13px;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-cloud a,
.tag-cloud span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 6px 10px;
  color: var(--muted);
  background: rgba(99, 91, 255, 0.07);
  border: 1px solid rgba(99, 91, 255, 0.12);
  border-radius: var(--radius);
  font-size: 13px;
  line-height: 1.25;
}

.tag-cloud a:hover {
  color: var(--ink);
  background: rgba(0, 212, 255, 0.12);
  border-color: rgba(0, 212, 255, 0.24);
}

.article-main {
  padding: 38px;
}

.breadcrumbs {
  margin: 0 0 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--faint);
  font-size: 13px;
}

.breadcrumbs a {
  color: var(--faint);
}

.article-header {
  margin-bottom: 26px;
}

.article-header h1 {
  max-width: 900px;
  font-size: 46px;
}

.article-header .post-meta {
  margin-top: 18px;
}

.article-content {
  color: #273f5f;
  overflow-wrap: anywhere;
}

.article-content > *:first-child {
  margin-top: 0;
}

.article-content > *:last-child {
  margin-bottom: 0;
}

.article-content h1,
.article-content h2,
.article-content h3,
.article-content h4,
.article-content h5,
.article-content h6 {
  color: var(--ink);
  line-height: 1.24;
  margin: 1.8em 0 0.72em;
}

.article-content h2 {
  font-size: 28px;
}

.article-content h3 {
  font-size: 22px;
}

.article-content p,
.article-content ul,
.article-content ol,
.article-content blockquote,
.article-content pre,
.article-content table {
  margin: 0 0 1.18em;
}

.article-content a {
  border-bottom: 1px solid rgba(99, 91, 255, 0.28);
}

.article-content a:hover {
  border-bottom-color: var(--accent);
}

.article-content blockquote {
  padding: 16px 18px;
  color: var(--muted);
  background: rgba(99, 91, 255, 0.07);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
}

.article-content code {
  padding: 0.16em 0.34em;
  color: #8a3ffc;
  background: rgba(99, 91, 255, 0.08);
  border-radius: 6px;
}

.article-content pre {
  padding: 18px;
  overflow: auto;
  color: #e6f1ff;
  background: #0a2540;
  border-radius: var(--radius);
}

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

.article-content table {
  width: 100%;
  border-collapse: collapse;
  display: block;
  overflow-x: auto;
}

.article-content th,
.article-content td {
  padding: 10px 12px;
  border: 1px solid var(--line);
}

.article-content th {
  background: var(--panel-soft);
}

.article-content img {
  border-radius: var(--radius);
}

.catalog-anchor {
  position: relative;
  top: -90px;
}

.catalog-box {
  margin-top: 34px;
  padding: 18px;
  background: var(--panel-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.catalog-box strong {
  display: block;
  margin-bottom: 10px;
}

.catalog-box ol {
  margin: 0;
  padding-left: 20px;
}

.catalog-box .depth-3,
.catalog-box .depth-4,
.catalog-box .depth-5,
.catalog-box .depth-6 {
  margin-left: 16px;
}

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

.article-footer p {
  margin: 0 0 10px;
}

.post-near {
  margin-top: 24px;
  display: grid;
  gap: 8px;
  padding: 16px;
  background: rgba(246, 249, 252, 0.8);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.comments-area {
  margin-top: 34px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.comments-area h2 {
  margin: 0 0 18px;
  font-size: 22px;
  line-height: 1.35;
}

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

.comment-body {
  list-style: none;
}

.comment-item,
.whisper-item {
  padding: 18px;
  background: rgba(246, 249, 252, 0.78);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.comment-head {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 12px;
}

.comment-head img {
  width: 40px;
  height: 40px;
  border-radius: 8px;
}

.comment-head cite {
  display: block;
  color: var(--ink);
  font-style: normal;
  font-weight: 720;
  line-height: 1.3;
}

.comment-head time {
  color: var(--faint);
  font-size: 13px;
}

.author-badge {
  margin-left: auto;
  padding: 3px 7px;
  color: #fff;
  background: var(--accent);
  border-radius: 6px;
  font-size: 12px;
  line-height: 1.2;
}

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

.comment-content p:last-child {
  margin-bottom: 0;
}

.comment-reply {
  margin-top: 12px;
  font-size: 14px;
  font-weight: 720;
}

.comment-children {
  margin: 12px 0 0 28px;
}

.comment-awaiting-moderation {
  color: #9a6700;
  background: rgba(255, 176, 32, 0.12);
  border-radius: var(--radius);
  padding: 8px 10px;
}

.respond {
  margin-top: 28px;
}

.cancel-comment-reply {
  margin-bottom: 8px;
}

.comment-form {
  display: grid;
  gap: 14px;
}

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

.comment-form label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
}

.comment-form input,
.comment-form textarea,
.protect-form input {
  width: 100%;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  outline: none;
}

.comment-form input,
.protect-form input {
  height: 42px;
  padding: 0 12px;
}

.comment-form textarea {
  min-height: 150px;
  padding: 12px;
  resize: vertical;
}

.comment-form input:focus,
.comment-form textarea:focus,
.protect-form input:focus {
  border-color: rgba(99, 91, 255, 0.62);
  box-shadow: 0 0 0 3px rgba(99, 91, 255, 0.12);
}

.submit,
.protect-form button {
  width: fit-content;
  min-height: 42px;
  padding: 10px 16px;
  color: #fff;
  cursor: pointer;
  background: var(--ink);
  border: 0;
  border-radius: var(--radius);
  font-weight: 720;
}

.protect-form {
  display: grid;
  gap: 10px;
}

.protect-form div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.timeline-archives {
  display: grid;
  gap: 14px;
}

.timeline-archives h2 {
  margin: 20px 0 0;
}

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

.timeline-archives li {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.timeline-archives time {
  color: var(--faint);
  font-size: 14px;
}

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

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

.link-grid a,
.link-grid > li > span {
  min-height: 68px;
  padding: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  background: rgba(246, 249, 252, 0.84);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.link-grid img {
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  border-radius: 7px;
}

.link-grid span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.whisper-area .comment-list {
  gap: 18px;
}

.whisper-body {
  list-style: none;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.footer-links a,
.footer-links span {
  display: inline-flex;
  padding: 7px 10px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 13px;
}

.site-footer {
  border-top: 1px solid rgba(216, 226, 238, 0.82);
  background: rgba(255, 255, 255, 0.66);
}

.site-footer__inner {
  width: min(var(--content), calc(100% - 40px));
  margin: 0 auto;
  padding: 36px 0;
  color: var(--muted);
}

.footer-note {
  margin-bottom: 18px;
  color: var(--muted);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
}

.footer-bottom p {
  margin: 0;
}

.empty-state {
  padding: 30px;
}

.empty-state h1,
.empty-state h2 {
  margin: 0 0 12px;
}

.empty-state p {
  color: var(--muted);
}

@media (max-width: 980px) {
  .site-header__inner {
    width: min(var(--content), calc(100% - 28px));
  }

  .nav-toggle {
    display: block;
    flex: 0 0 40px;
  }

  .site-nav-wrap {
    position: fixed;
    top: 72px;
    left: 14px;
    right: 14px;
    display: none;
    padding: 16px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
  }

  .site-nav-wrap.is-open {
    display: grid;
    gap: 14px;
  }

  .site-nav {
    display: grid;
    justify-content: stretch;
    gap: 4px;
  }

  .site-search {
    width: 100%;
  }

  .home-hero,
  .site-layout {
    width: min(var(--content), calc(100% - 28px));
  }

  .home-hero {
    margin-top: 28px;
  }

  .home-hero h1 {
    font-size: 42px;
  }

  .home-hero p:not(.eyebrow) {
    font-size: 18px;
  }

  .site-layout {
    grid-template-columns: 1fr;
  }

  .side-column {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  body {
    font-size: 15px;
  }

  .site-header__inner {
    min-height: 66px;
  }

  .site-nav-wrap {
    top: 66px;
  }

  .brand-text {
    max-width: 190px;
  }

  .home-hero {
    margin-top: 18px;
  }

  .home-hero h1 {
    font-size: 34px;
  }

  .post-card__body {
    padding: 22px;
  }

  .post-card__title {
    font-size: 22px;
  }

  .article-main {
    padding: 24px;
  }

  .article-header h1 {
    font-size: 32px;
  }

  .comment-fields,
  .link-grid,
  .side-column {
    grid-template-columns: 1fr;
  }

  .comment-children {
    margin-left: 12px;
  }

  .timeline-archives li {
    grid-template-columns: 54px minmax(0, 1fr);
  }
}

@media (max-width: 460px) {
  .site-header__inner,
  .home-hero,
  .site-layout,
  .site-footer__inner {
    width: calc(100% - 22px);
  }

  .brand-text {
    max-width: 146px;
  }

  .home-hero h1 {
    font-size: 30px;
  }

  .hero-actions,
  .footer-bottom {
    align-items: stretch;
    flex-direction: column;
  }

  .button,
  .submit,
  .protect-form button {
    width: 100%;
  }

  .protect-form div {
    grid-template-columns: 1fr;
  }

  .post-meta {
    display: grid;
    gap: 6px;
  }

  .post-meta li + li::before {
    display: none;
  }
}
