@import url("https://fonts.googleapis.com/css2?family=Lato:wght@400;700&display=swap");

:root {
  --body-bg-color: #eef3f7;
  --content-bg-color: rgba(255, 255, 255, 0.76);
  --card-bg-color: rgba(255, 255, 255, 0.62);
  --glass-bg: rgba(255, 255, 255, 0.68);
  --glass-bg-strong: rgba(255, 255, 255, 0.82);
  --glass-border: rgba(255, 255, 255, 0.72);
  --glass-hairline: rgba(92, 121, 151, 0.18);
  --glass-highlight: rgba(255, 255, 255, 0.9);
  --text-color: #435061;
  --text-strong-color: #17212e;
  --muted-color: #728095;
  --line-color: rgba(112, 132, 156, 0.24);
  --soft-line-color: rgba(112, 132, 156, 0.14);
  --theme-color: #17212e;
  --accent-color: #367c93;
  --accent-soft-color: rgba(54, 124, 147, 0.12);
  --link-color: #2f6f85;
  --link-hover-color: #153846;
  --selection-bg: #173747;
  --selection-color: #f6fbff;
  --shadow: 0 18px 60px rgba(49, 67, 88, 0.12), 0 3px 12px rgba(49, 67, 88, 0.08);
  --shadow-lifted: 0 24px 72px rgba(49, 67, 88, 0.16), 0 8px 20px rgba(49, 67, 88, 0.1);
  --surface-radius: 18px;
  --control-radius: 12px;
  --motion-enter: cubic-bezier(0.22, 1, 0.36, 1);
  --motion-move: cubic-bezier(0.25, 1, 0.5, 1);
  --font-sans: Lato, "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-mono: Consolas, Menlo, Monaco, "PingFang SC", "Microsoft YaHei", monospace;
}

* {
  box-sizing: border-box;
}

::selection {
  background: var(--selection-bg);
  color: var(--selection-color);
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  position: relative;
  min-height: 100%;
  margin: 0;
  background:
    radial-gradient(circle at 16% 12%, rgba(105, 170, 190, 0.18), transparent 32rem),
    radial-gradient(circle at 88% 6%, rgba(178, 199, 231, 0.2), transparent 30rem),
    linear-gradient(135deg, #f8fbfd 0%, var(--body-bg-color) 46%, #f7f9fb 100%);
  color: var(--text-color);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 2;
  overflow-x: hidden;
  isolation: isolate;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body::before,
body::after {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  content: "";
}

.headband,
.main,
.footer {
  position: relative;
  z-index: 1;
}

body::before {
  background-image:
    linear-gradient(rgba(71, 96, 124, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(71, 96, 124, 0.05) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.72), transparent 72%);
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.72), transparent 72%);
}

body::after {
  background:
    radial-gradient(circle at 50% 0, rgba(255, 255, 255, 0.72), transparent 34rem),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.15), transparent 42%);
}

[hidden] {
  display: none !important;
}

a {
  color: var(--link-color);
  border-bottom: 1px solid rgba(47, 111, 133, 0.32);
  text-decoration: none;
  overflow-wrap: break-word;
  transition: color 180ms ease, border-color 180ms ease;
}

a:hover {
  color: var(--link-hover-color);
  border-bottom-color: var(--link-hover-color);
}

p {
  margin: 0 0 20px;
}

ul,
ol {
  margin: 0 0 20px;
  padding-left: 24px;
}

li {
  margin: 0 0 8px;
}

blockquote {
  margin: 0 0 20px;
  padding: 16px 18px;
  border: 1px solid var(--line-color);
  border-radius: var(--control-radius);
  background: var(--card-bg-color);
  color: var(--text-color);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

hr {
  height: 3px;
  margin: 40px 0;
  border: 0;
  background-image: repeating-linear-gradient(-45deg, #ddd, #ddd 4px, transparent 4px, transparent 8px);
}

pre,
code {
  font-family: var(--font-mono);
}

code {
  border: 1px solid var(--soft-line-color);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.68);
  color: #29384a;
  font-size: 0.875em;
  padding: 2px 4px;
}

pre {
  overflow: auto;
  margin: 0 auto 20px;
  padding: 14px;
  border: 1px solid var(--soft-line-color);
  border-radius: var(--control-radius);
  background: rgba(248, 251, 253, 0.84);
  color: #29384a;
  line-height: 1.6;
}

pre code {
  background: none;
  padding: 0;
}

img,
video,
embed,
iframe {
  display: block;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.headband {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(54, 124, 147, 0.42), transparent);
}

.main {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  width: calc(100% - 20px);
  max-width: 1160px;
  margin: 24px auto 0;
}

.column {
  width: 240px;
  flex: 0 0 240px;
}

.home-page .main {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  grid-template-rows: auto auto auto 1fr;
  column-gap: 12px;
  align-items: start;
}

.home-page .header {
  grid-column: 1;
  grid-row: 1;
}

.home-page .main-inner {
  grid-column: 2;
  grid-row: 1 / span 4;
  width: auto;
  min-width: 0;
  padding-left: 0;
}

.home-page .sidebar {
  grid-column: 1;
  grid-row: 2;
}

.home-page .site-search-card {
  grid-column: 1;
  grid-row: 3;
}

.home-page .account-links-card {
  grid-column: 1;
  grid-row: 4;
}

.header,
.sidebar-inner,
.post-block,
.legacy-post-shell {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--glass-border);
  border-radius: var(--surface-radius);
  background: var(--content-bg-color);
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px) saturate(1.35);
  -webkit-backdrop-filter: blur(22px) saturate(1.35);
  transition: border-color 220ms ease, box-shadow 260ms var(--motion-enter), background-color 220ms ease;
}

.header::before,
.sidebar-inner::before,
.post-block::before,
.legacy-post-shell::before,
.site-search-card::before,
.account-links-card::before,
.editor-page-shell::before,
.site-shell .sidebar::before,
.site-shell .content::before {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.82), transparent 32%),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.3), transparent 42%);
  content: "";
}

.header > *,
.sidebar-inner > *,
.post-block > *,
.legacy-post-shell > *,
.site-search-card > *,
.account-links-card > *,
.editor-page-shell > *,
.site-shell .sidebar > *,
.site-shell .content > * {
  position: relative;
  z-index: 1;
}

.header {
  margin: 0 0 12px;
}

.site-brand-container {
  display: flex;
  padding: 0 10px;
  background:
    linear-gradient(145deg, rgba(23, 33, 46, 0.92), rgba(42, 75, 91, 0.78)),
    var(--theme-color);
}

.site-meta {
  flex: 1;
  padding: 20px 0;
  text-align: center;
}

.brand {
  display: inline-block;
  color: #fff;
  border-bottom: 0;
}

.brand:hover {
  color: #fff;
  border-bottom-color: transparent;
}

.logo-line {
  display: block;
  width: 72%;
  height: 1px;
  margin: 0 auto 7px;
  background: rgba(255, 255, 255, 0.45);
}

.brand .logo-line:last-child {
  margin: 7px auto 0;
}

.site-title {
  margin: 0;
  color: #fff;
  font-size: 1.375em;
  font-weight: 400;
  line-height: 1.5;
}

.site-subtitle {
  margin: 10px 10px 0;
  color: rgba(247, 250, 252, 0.78);
  font-size: 0.8125em;
  line-height: 1.4;
}

.site-nav {
  background: rgba(255, 255, 255, 0.3);
}

.menu {
  margin: 0;
  padding: 1em 0;
  list-style: none;
  text-align: left;
}

.menu-item {
  margin: 0;
}

.menu-item a {
  display: block;
  padding: 5px 20px;
  border-bottom: 0;
  color: var(--text-color);
  font-size: 0.8125em;
  line-height: 2;
  transition: background-color 180ms ease, color 180ms ease, transform 220ms var(--motion-enter);
}

.menu-item a:hover {
  background: rgba(255, 255, 255, 0.54);
  color: var(--text-strong-color);
}

.sidebar {
  position: sticky;
  top: 12px;
}

.sidebar-inner {
  max-height: calc(100vh - 24px);
  margin-top: 12px;
  padding: 20px 12px;
  color: var(--text-color);
  text-align: center;
}

.site-author-name {
  margin: 0;
  color: var(--text-strong-color);
  font-weight: 700;
}

.site-description {
  margin: 0;
  color: var(--muted-color);
  font-size: 0.8125em;
}

.site-state {
  display: flex;
  justify-content: center;
  margin-top: 18px;
}

.site-state-item {
  min-width: 74px;
  padding: 0 10px;
  border-bottom: 0;
  color: var(--text-color);
}

.site-state-item + .site-state-item {
  border-left: 1px solid var(--line-color);
}

.site-state-item-count {
  display: block;
  color: var(--text-strong-color);
  font-size: 1.125em;
  font-weight: 700;
  line-height: 1.4;
}

.site-state-item-name {
  display: block;
  color: var(--muted-color);
  font-size: 0.8125em;
  line-height: 1.4;
}

.links-of-author {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin-top: 18px;
}

.links-of-author a {
  display: block;
  min-width: 82px;
  padding: 1px 8px;
  border: 0;
  border-radius: 4px;
  font-size: 0.8125em;
}

.links-of-author a:hover {
  background: var(--card-bg-color);
}

.site-search-card {
  position: relative;
  overflow: hidden;
  margin-top: 12px;
  padding: 16px 14px;
  border: 1px solid var(--glass-border);
  border-radius: var(--surface-radius);
  background: var(--glass-bg);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px) saturate(1.28);
  -webkit-backdrop-filter: blur(18px) saturate(1.28);
  transition: border-color 220ms ease, box-shadow 260ms var(--motion-enter), background-color 220ms ease;
}

.site-search-label {
  display: block;
  margin-bottom: 8px;
  color: var(--text-strong-color);
  font-size: 0.875em;
  font-weight: 700;
  line-height: 1.4;
}

.site-search-control {
  position: relative;
}

.site-search-icon {
  position: absolute;
  top: 50%;
  left: 10px;
  width: 12px;
  height: 12px;
  border: 2px solid var(--muted-color);
  border-radius: 50%;
  transform: translateY(-58%);
}

.site-search-icon::after {
  position: absolute;
  right: -6px;
  bottom: -5px;
  width: 7px;
  height: 2px;
  background: var(--muted-color);
  content: "";
  transform: rotate(45deg);
  transform-origin: left center;
}

.site-search-input {
  width: 100%;
  height: 38px;
  border: 1px solid var(--line-color);
  border-radius: var(--control-radius);
  background: rgba(255, 255, 255, 0.72);
  color: var(--text-color);
  font: inherit;
  font-size: 0.875em;
  line-height: 1.4;
  outline: none;
  padding: 6px 8px 6px 32px;
  transition: border-color 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.site-search-input:focus {
  border-color: rgba(54, 124, 147, 0.52);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 0 0 4px rgba(54, 124, 147, 0.1);
}

.site-search-status {
  margin: 8px 0 0;
  color: var(--muted-color);
  font-size: 0.75em;
  line-height: 1.5;
}

.site-search-results {
  display: grid;
  gap: 8px;
  max-height: 320px;
  margin-top: 10px;
  overflow-y: auto;
}

.site-search-result {
  display: block;
  padding: 9px 10px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.36);
  transition: background-color 180ms ease, border-color 180ms ease, transform 220ms var(--motion-enter);
}

.site-search-result:last-child {
  border-bottom: 1px solid transparent;
}

.site-search-result-title {
  display: block;
  color: var(--text-strong-color);
  font-size: 0.875em;
  line-height: 1.45;
}

.site-search-result-meta {
  display: block;
  margin-top: 2px;
  color: var(--muted-color);
  font-size: 0.75em;
  line-height: 1.4;
}

.site-search-result-excerpt {
  display: block;
  margin-top: 3px;
  color: var(--text-color);
  font-size: 0.75em;
  line-height: 1.5;
}

.site-search-mark {
  border-radius: 4px;
  background: rgba(255, 224, 122, 0.62);
  color: var(--text-strong-color);
  font-weight: 700;
  padding: 0 2px;
}

.account-links-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
  padding: 15px 12px;
  border: 1px solid var(--glass-border);
  border-radius: var(--surface-radius);
  background: var(--glass-bg);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px) saturate(1.28);
  -webkit-backdrop-filter: blur(18px) saturate(1.28);
  transition: border-color 220ms ease, box-shadow 260ms var(--motion-enter), background-color 220ms ease;
}

.account-link {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 2px 12px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 999px;
  color: #fff;
  font-size: 0.8125em;
  font-weight: 700;
  line-height: 1.4;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28), 0 8px 18px rgba(37, 55, 72, 0.12);
  transition: opacity 180ms ease, transform 220ms var(--motion-enter), box-shadow 220ms var(--motion-enter);
}

.account-link:hover,
.account-link:focus-visible {
  border-color: rgba(255, 255, 255, 0.56);
  color: #fff;
  opacity: 0.86;
  transform: translateY(-1px);
}

.account-link-bilibili {
  background: #2f95d8;
}

.account-link-xhs {
  background: #d83d55;
}

.account-link-github {
  background: #333;
}

.account-link-steam {
  background: #1b2838;
}

.account-link-bangumi {
  background: #f09199;
}

.account-link-leetcode {
  background: #f89f1b;
}

.main-inner {
  width: calc(100% - 252px);
  padding-left: 12px;
}

.post-block {
  padding: 46px;
}

.post-header {
  position: relative;
  margin-bottom: 58px;
  padding: 18px 0 10px;
  text-align: center;
}

.post-header::after {
  display: none;
  width: min(180px, 52%);
  height: 1px;
  margin: 22px auto 0;
  background: linear-gradient(90deg, transparent, rgba(54, 124, 147, 0.46), transparent);
  content: "";
}

.post-title,
.article-title {
  margin: 0;
  color: var(--text-strong-color);
  font-size: 2.1rem;
  font-weight: 400;
  line-height: 1.25;
  overflow-wrap: break-word;
}

.post-meta-container,
.meta {
  color: var(--muted-color);
  font-size: 0.8125em;
}

.post-meta-container {
  margin-top: 12px;
  letter-spacing: 0.04em;
}

.post-meta-container a {
  border-bottom: 0;
  color: inherit;
}

.post-meta-container a:hover {
  color: var(--link-hover-color);
  border-bottom-color: transparent;
}

.post-body,
.article-content,
.md-preview {
  overflow-wrap: break-word;
}

.post-body a,
.article-content a,
.md-preview a,
.blog-list .item-title {
  border-bottom: 0;
}

.post-body a:hover,
.article-content a:hover,
.md-preview a:hover,
.blog-list .item-title:hover {
  border-bottom-color: transparent;
}

.xhs-gallery {
  position: relative;
  margin: 0 0 28px;
}

.xhs-gallery-track {
  display: flex;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  border: 1px solid var(--line-color);
  border-radius: var(--control-radius);
  background: rgba(248, 251, 253, 0.82);
}

.xhs-gallery-track::-webkit-scrollbar {
  display: none;
}

.xhs-image {
  display: grid;
  flex: 0 0 100%;
  min-width: 0;
  min-height: clamp(260px, 58vh, 620px);
  margin: 0;
  place-items: center;
  scroll-snap-align: center;
  scroll-snap-stop: always;
}

.xhs-image img {
  width: auto;
  max-width: 100%;
  max-height: min(72vh, 620px);
  margin: 0 auto;
  object-fit: contain;
}

.xhs-gallery-button {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(214, 216, 218, 0.86);
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-weight: 300;
  font-size: 0;
  line-height: 0;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-50%) scale(0.92);
  transition: background-color 180ms ease, opacity 180ms ease, transform 220ms var(--motion-enter);
}

.xhs-gallery-button::before {
  content: "";
  display: block;
  width: 12px;
  height: 12px;
  border-top: 4px solid currentColor;
  border-right: 4px solid currentColor;
}

.xhs-gallery-prev::before {
  transform: rotate(-135deg);
}

.xhs-gallery-next::before {
  transform: rotate(45deg);
}

.xhs-gallery:hover .xhs-gallery-button,
.xhs-gallery:focus-within .xhs-gallery-button,
.xhs-gallery.is-controls-visible .xhs-gallery-button {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(-50%) scale(1);
}

.xhs-gallery-button:hover,
.xhs-gallery-button:focus-visible {
  background: rgba(190, 194, 198, 0.94);
}

.xhs-gallery-button:disabled {
  cursor: default;
  opacity: 0;
  pointer-events: none;
}

.xhs-gallery-prev {
  left: 18px;
}

.xhs-gallery-next {
  right: 18px;
}

.xhs-gallery-count {
  position: absolute;
  right: 10px;
  bottom: 8px;
  margin: 0;
  padding: 1px 8px;
  border-radius: 999px;
  background: rgba(23, 33, 46, 0.72);
  color: #fff;
  font-size: 0.75em;
  line-height: 1.8;
  opacity: 0;
  transition: opacity 180ms ease;
}

.xhs-gallery:hover .xhs-gallery-count,
.xhs-gallery:focus-within .xhs-gallery-count,
.xhs-gallery.is-controls-visible .xhs-gallery-count {
  opacity: 1;
}

.xhs-gallery[data-count="1"] .xhs-gallery-button,
.xhs-gallery[data-count="1"] .xhs-gallery-count {
  display: none;
}

.post-body h1,
.post-body h2,
.article-content h1,
.article-content h2,
.md-preview h1,
.md-preview h2 {
  position: relative;
  margin: 36px 0 16px;
  padding-bottom: 0;
  border-bottom: 0;
  color: var(--text-strong-color);
  font-size: 1.375em;
  font-weight: 700;
  line-height: 1.5;
}

.post-body h1::after,
.post-body h2::after,
.article-content h1::after,
.article-content h2::after,
.md-preview h1::after,
.md-preview h2::after {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent-color);
  content: "";
}

.post-body h1:first-child,
.article-content h1:first-child,
.md-preview h1:first-child {
  margin-top: 0;
}

.post-body h3,
.article-content h3,
.md-preview h3 {
  margin: 30px 0 15px;
  padding-bottom: 0;
  border-bottom: 0;
  color: var(--text-strong-color);
  font-size: 1.25em;
  font-weight: 700;
  line-height: 1.5;
}

.about {
  max-width: 680px;
}

.about p {
  margin: 0;
  line-height: 1.75;
  color: rgba(0, 0, 0, 0.75);
}

.about p + p {
  margin-top: 10px;
}

.section-intro {
  max-width: 680px;
  margin: -2px 0 18px;
  color: var(--muted-color);
  font-size: 0.9375em;
  line-height: 1.75;
}

.identity-hero {
  margin: 0 0 28px;
  border-top: 3px solid rgba(54, 124, 147, 0.48);
  border-bottom: 1px solid var(--line-color);
  padding: 20px 0 22px;
}

.identity-copy {
  max-width: 760px;
}

.identity-kicker,
.route-card span {
  display: block;
  margin: 0 0 5px;
  color: var(--muted-color);
  font-family: var(--font-mono);
  font-size: 0.72em;
  font-weight: 700;
  line-height: 1.5;
  text-transform: uppercase;
}

.identity-hero h2 {
  margin: 0 0 14px;
  color: var(--text-strong-color);
  font-size: 2.12rem;
  line-height: 1.25;
}

.identity-hero p {
  max-width: 680px;
  margin: 0;
  line-height: 1.8;
}

.identity-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 18px;
}

.btn.btn-quiet {
  border-color: rgba(54, 124, 147, 0.22);
  background: rgba(54, 124, 147, 0.08);
  color: var(--link-color);
  box-shadow: none;
}

.start-routes {
  margin: 0 0 32px;
}

.section-heading-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  margin: 0 0 14px;
}

.section-heading-row h2 {
  margin: 0;
}

.section-heading-row p {
  max-width: 360px;
  margin: 0;
  color: var(--muted-color);
  font-size: 0.9em;
  line-height: 1.65;
  text-align: right;
}

.route-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.route-card {
  display: grid;
  gap: 5px;
  min-width: 0;
  min-height: 128px;
  border: 1px solid var(--soft-line-color);
  border-radius: var(--control-radius);
  background: rgba(255, 255, 255, 0.48);
  color: var(--text-color);
  padding: 13px 14px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
  transition: transform 260ms var(--motion-enter), border-color 220ms ease, background-color 220ms ease, box-shadow 260ms var(--motion-enter);
}

.route-card:hover,
.route-card:focus-visible {
  border-color: rgba(54, 124, 147, 0.34);
  background: rgba(255, 255, 255, 0.68);
  color: var(--text-color);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.route-card strong {
  display: block;
  color: var(--text-strong-color);
  font-size: 0.96em;
  line-height: 1.45;
}

.route-card em {
  color: var(--muted-color);
  font-size: 0.82em;
  font-style: normal;
  line-height: 1.55;
}

.project-list,
.blog-list {
  display: grid;
  gap: 12px;
  padding-left: 0;
  list-style: none;
}

.project-case-list {
  gap: 16px;
}

.project-list > li,
.blog-list .blog-item {
  position: relative;
  margin: 0;
  padding: 16px 18px;
  border: 1px solid var(--soft-line-color);
  border-radius: var(--control-radius);
  background: rgba(255, 255, 255, 0.5);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.74);
  transition: transform 260ms var(--motion-enter), border-color 220ms ease, background-color 220ms ease, box-shadow 260ms var(--motion-enter);
}

.project-list > li::before,
.blog-list .blog-item::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  border-radius: var(--control-radius) 0 0 var(--control-radius);
  background: linear-gradient(to bottom, rgba(54, 124, 147, 0.68), rgba(54, 124, 147, 0.08));
  content: "";
  opacity: 0.58;
}

.project-card {
  display: grid;
  gap: 14px;
}

.project-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.project-card-kicker {
  margin: 0 0 4px;
  color: var(--muted-color);
  font-family: var(--font-mono);
  font-size: 0.75em;
  line-height: 1.5;
  text-transform: uppercase;
}

.project-card h3 {
  margin: 0;
  color: var(--text-strong-color);
  font-size: 1.08em;
  line-height: 1.45;
}

.project-status {
  flex: 0 0 auto;
  border: 1px solid rgba(54, 124, 147, 0.2);
  border-radius: 999px;
  background: rgba(54, 124, 147, 0.08);
  color: var(--link-color);
  font-size: 0.72em;
  font-weight: 700;
  line-height: 1.35;
  padding: 3px 8px;
  white-space: nowrap;
}

.project-card-summary {
  margin: 0;
  color: var(--text-color);
  font-size: 0.94em;
  line-height: 1.7;
}

.project-card-meta {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin: 0;
}

.project-card-meta div {
  min-width: 0;
  border-top: 1px solid var(--soft-line-color);
  padding-top: 10px;
}

.project-card-meta dt {
  margin-bottom: 3px;
  color: var(--muted-color);
  font-family: var(--font-mono);
  font-size: 0.72em;
  line-height: 1.5;
  text-transform: uppercase;
}

.project-card-meta dd {
  margin: 0;
  color: var(--text-strong-color);
  font-size: 0.88em;
  line-height: 1.55;
}

.project-note-list,
.case-points,
.case-link-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 18px;
}

.project-note-list li,
.case-points li,
.case-link-list li {
  margin: 0;
  line-height: 1.65;
}

.project-card-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.case-study-nav {
  display: grid;
  gap: 6px;
  margin-top: 18px;
}

.case-study-nav a {
  display: block;
  border-bottom: 0;
  border-radius: 9px;
  color: var(--muted-color);
  font-size: 0.86em;
  font-weight: 700;
  line-height: 1.45;
  padding: 6px 9px;
  transition: background-color 180ms ease, color 180ms ease, transform 220ms var(--motion-enter);
}

.case-study-nav a:hover,
.case-study-nav a:focus-visible {
  background: rgba(54, 124, 147, 0.09);
  color: var(--text-strong-color);
  outline: 2px solid rgba(54, 124, 147, 0.34);
  outline-offset: 2px;
}

.case-lead {
  margin-bottom: 22px;
  color: var(--text-strong-color);
  font-size: 1.05em;
  line-height: 1.8;
}

.case-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 28px;
  border-top: 1px solid var(--soft-line-color);
  border-bottom: 1px solid var(--soft-line-color);
  padding: 14px 0;
}

.case-facts div {
  min-width: 0;
}

.case-facts span,
.case-flow span {
  display: block;
  margin-bottom: 4px;
  color: var(--muted-color);
  font-family: var(--font-mono);
  font-size: 0.72em;
  line-height: 1.5;
  text-transform: uppercase;
}

.case-facts strong {
  display: block;
  color: var(--text-strong-color);
  font-size: 0.9em;
  line-height: 1.55;
}

.case-flow {
  display: grid;
  gap: 0;
  margin: 0 0 22px;
  border-top: 1px solid var(--soft-line-color);
}

.case-flow div {
  display: grid;
  grid-template-columns: 56px minmax(120px, 180px) minmax(0, 1fr);
  gap: 12px;
  border-bottom: 1px solid var(--soft-line-color);
  padding: 13px 0;
}

.case-flow strong {
  color: var(--text-strong-color);
  line-height: 1.5;
}

.case-flow p {
  margin: 0;
  font-size: 0.92em;
  line-height: 1.7;
}

.case-link-list {
  margin-bottom: 20px;
}

.code-tour-list {
  display: grid;
  gap: 12px;
  margin: 0 0 24px;
}

.code-tour-item {
  display: grid;
  grid-template-columns: minmax(160px, 0.62fr) minmax(0, 1fr) minmax(160px, 0.58fr);
  gap: 16px;
  border-top: 1px solid var(--soft-line-color);
  padding: 15px 0 0;
}

.code-tour-item h3 {
  margin: 0;
  color: var(--text-strong-color);
  font-size: 1em;
  line-height: 1.5;
}

.code-tour-item span,
.verification-grid span {
  display: block;
  margin-bottom: 4px;
  color: var(--muted-color);
  font-family: var(--font-mono);
  font-size: 0.72em;
  font-weight: 700;
  line-height: 1.5;
  text-transform: uppercase;
}

.code-tour-item p {
  margin: 0;
  font-size: 0.92em;
  line-height: 1.7;
}

.code-tour-item .case-link-list {
  margin: 0;
}

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

.verification-grid div {
  min-width: 0;
  border: 1px solid var(--soft-line-color);
  border-radius: var(--control-radius);
  background: rgba(255, 255, 255, 0.42);
  padding: 14px 15px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.verification-grid strong {
  display: block;
  color: var(--text-strong-color);
  line-height: 1.55;
}

.verification-grid p {
  margin: 8px 0 0;
  font-size: 0.88em;
  line-height: 1.65;
}

.blog-toolbar {
  margin-bottom: 18px;
}

.archive-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 20px;
}

.archive-filter {
  appearance: none;
  min-height: 32px;
  border: 1px solid var(--soft-line-color);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.48);
  color: var(--muted-color);
  cursor: pointer;
  font: inherit;
  font-size: 0.8125em;
  font-weight: 700;
  line-height: 1.4;
  padding: 5px 13px;
  transition: border-color 180ms ease, background-color 180ms ease, color 180ms ease, box-shadow 220ms var(--motion-enter), transform 220ms var(--motion-enter);
}

.archive-filter:hover,
.archive-filter:focus-visible {
  border-color: rgba(54, 124, 147, 0.34);
  background: rgba(255, 255, 255, 0.74);
  color: var(--text-strong-color);
  outline: none;
}

.archive-filter.is-active {
  border-color: rgba(54, 124, 147, 0.38);
  background: rgba(54, 124, 147, 0.12);
  color: var(--text-strong-color);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82), 0 8px 18px rgba(54, 82, 104, 0.1);
}

.archive-year-group {
  position: relative;
  margin: 0;
}

.archive-year {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 8px 0 10px;
  color: var(--text-strong-color);
  font-size: 1.05em;
  font-weight: 700;
  line-height: 1.4;
}

.archive-year::after {
  flex: 1 1 auto;
  height: 1px;
  background: linear-gradient(90deg, rgba(54, 124, 147, 0.24), transparent);
  content: "";
}

.archive-timeline {
  display: grid;
  gap: 12px;
  margin: 0 0 10px;
  padding-left: 0;
  list-style: none;
}

.blog-list .blog-item {
  margin-bottom: 0;
}

.blog-list .item-title {
  font-size: 1em;
}

.archive-entry {
  display: grid;
  grid-template-columns: minmax(92px, 120px) minmax(0, 1fr);
  gap: 16px;
}

.archive-entry-date {
  color: var(--muted-color);
  font-family: var(--font-mono);
  font-size: 0.8125em;
  line-height: 1.6;
  white-space: nowrap;
}

.archive-entry-title {
  color: var(--text-strong-color);
  font-weight: 700;
  line-height: 1.5;
}

.archive-entry-excerpt {
  display: -webkit-box;
  overflow: hidden;
  margin: 6px 0 0;
  color: var(--text-color);
  font-size: 0.875em;
  line-height: 1.65;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.archive-entry-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.archive-entry-tag {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border: 1px solid rgba(54, 124, 147, 0.16);
  border-radius: 999px;
  background: rgba(54, 124, 147, 0.08);
  color: var(--link-color);
  font-size: 0.75em;
  font-weight: 700;
  line-height: 1.3;
  padding: 2px 8px;
}

.archive-empty {
  margin: 0;
  padding: 16px 18px;
  border: 1px dashed var(--line-color);
  border-radius: var(--control-radius);
  background: rgba(255, 255, 255, 0.38);
  color: var(--muted-color);
  list-style: none;
}

.guestbook {
  display: grid;
  gap: 16px;
}

.guestbook-copy {
  position: relative;
  display: grid;
  min-height: 132px;
  padding: 16px 18px;
  border: 1px solid var(--line-color);
  border-radius: var(--control-radius);
  background: var(--card-bg-color);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.guestbook-compose-button {
  align-self: end;
  justify-self: end;
  margin-top: 18px;
}

.guestbook-public-note {
  margin: 12px 0 0;
  border-left: 2px solid rgba(54, 124, 147, 0.28);
  color: var(--muted-color);
  font-size: 0.86em;
  line-height: 1.7;
  padding: 2px 0 2px 11px;
}

.guestbook-copy p:last-child,
.guestbook-status,
.guestbook-empty,
.guestbook-item p {
  margin-bottom: 0;
}

.guestbook-form {
  display: grid;
  gap: 12px;
  padding: 18px;
  border: 1px solid var(--soft-line-color);
  border-radius: var(--control-radius);
  background: rgba(255, 255, 255, 0.5);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.74);
}

.guestbook-form.is-expanded {
  animation: guestbook-form-enter 260ms var(--motion-enter) both;
}

.guestbook-field {
  display: grid;
  gap: 6px;
}

.guestbook-field label,
.guestbook-label-row {
  color: var(--text-strong-color);
  font-size: 0.875em;
  font-weight: 700;
  line-height: 1.4;
}

.guestbook-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.guestbook-counter {
  color: var(--muted-color);
  font-weight: 400;
}

.guestbook-counter[data-tone="error"],
.guestbook-status[data-tone="error"] {
  color: #a33a35;
}

.guestbook-field input,
.guestbook-field textarea {
  width: 100%;
  border: 1px solid var(--line-color);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.8);
  color: var(--text-color);
  font: inherit;
  line-height: 1.6;
  outline: none;
  padding: 8px 10px;
  transition: border-color 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.guestbook-field textarea {
  min-height: 112px;
  resize: vertical;
}

.guestbook-field input:focus,
.guestbook-field textarea:focus {
  border-color: rgba(54, 124, 147, 0.52);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 0 0 4px rgba(54, 124, 147, 0.1);
}

.guestbook-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.guestbook-status {
  color: var(--muted-color);
  font-size: 0.8125em;
  line-height: 1.5;
}

.guestbook-status[data-tone="success"] {
  color: #2f6f55;
}

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

.guestbook-empty,
.guestbook-item {
  padding: 14px 16px;
  border: 1px solid var(--soft-line-color);
  border-radius: var(--control-radius);
  background: rgba(255, 255, 255, 0.42);
}

.guestbook-item {
  position: relative;
  overflow: hidden;
}

.guestbook-item::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  border-radius: var(--control-radius) 0 0 var(--control-radius);
  background: linear-gradient(to bottom, rgba(54, 124, 147, 0.62), rgba(54, 124, 147, 0.06));
  content: "";
}

.guestbook-item-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 6px;
}

.guestbook-item-head strong {
  min-width: 0;
  color: var(--text-strong-color);
  overflow-wrap: anywhere;
}

.guestbook-item-head time {
  flex: 0 0 auto;
  color: var(--muted-color);
  font-size: 0.75em;
}

@keyframes guestbook-form-enter {
  from {
    opacity: 0;
    transform: translate3d(0, -6px, 0);
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

.admin-guestbook {
  display: grid;
  gap: 18px;
}

.admin-guestbook-head,
.admin-actions,
.admin-message-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.admin-guestbook-head {
  justify-content: space-between;
}

.admin-guestbook-head .editor-page-title {
  margin-bottom: 0;
  text-align: left;
}

.admin-token-form,
.admin-message-card {
  display: grid;
  gap: 12px;
  padding: 18px;
  border: 1px solid var(--soft-line-color);
  border-radius: var(--control-radius);
  background: rgba(255, 255, 255, 0.5);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.74);
}

.admin-message-list {
  display: grid;
  gap: 12px;
}

.admin-tabs {
  display: inline-flex;
  width: fit-content;
  padding: 3px;
  border: 1px solid var(--soft-line-color);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.48);
}

.admin-tab {
  appearance: none;
  min-height: 32px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted-color);
  cursor: pointer;
  font: inherit;
  font-size: 0.8125em;
  line-height: 1.4;
  padding: 5px 16px;
}

.admin-tab.is-active {
  background: rgba(255, 255, 255, 0.82);
  color: var(--text-strong-color);
  box-shadow: 0 6px 16px rgba(54, 82, 104, 0.1);
}

.admin-panel {
  display: grid;
  gap: 12px;
}

.admin-visitor-summary {
  color: var(--muted-color);
  font-size: 0.875em;
}

.admin-visitor-list {
  display: grid;
  gap: 12px;
}

.admin-message-card {
  position: relative;
  overflow: hidden;
}

.admin-message-card::before,
.admin-visitor-card::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  border-radius: var(--control-radius) 0 0 var(--control-radius);
  background: linear-gradient(to bottom, rgba(54, 124, 147, 0.68), rgba(54, 124, 147, 0.08));
  content: "";
}

.admin-visitor-card {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 8px;
  padding: 16px 18px;
  border: 1px solid var(--soft-line-color);
  border-radius: var(--control-radius);
  background: rgba(255, 255, 255, 0.5);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.74);
}

.admin-visitor-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.admin-visitor-head strong {
  color: var(--text-strong-color);
  font-family: var(--font-mono);
  font-size: 0.9375em;
  overflow-wrap: anywhere;
}

.admin-visitor-head span {
  color: var(--muted-color);
  font-size: 0.8125em;
}

.admin-visitor-ua {
  margin: 0;
  color: var(--text-color);
  font-family: var(--font-mono);
  font-size: 0.75em;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.admin-message-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  color: var(--muted-color);
  font-size: 0.75em;
  line-height: 1.5;
}

.admin-message-grid {
  display: grid;
  grid-template-columns: minmax(160px, 0.35fr) minmax(0, 1fr);
  gap: 12px;
}

.admin-danger {
  border-color: rgba(163, 58, 53, 0.32);
  color: #8e302c;
}

.admin-danger:hover {
  border-color: rgba(163, 58, 53, 0.54);
  color: #6e211e;
}

.btn,
.editor-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  appearance: none;
  min-height: 38px;
  border: 1px solid rgba(54, 124, 147, 0.32);
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.88), rgba(232, 244, 248, 0.72)),
    #fff;
  color: var(--link-hover-color);
  cursor: pointer;
  font: inherit;
  font-size: 0.875em;
  line-height: 1.4;
  padding: 6px 20px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.86), 0 8px 20px rgba(54, 124, 147, 0.12);
  transition: transform 160ms var(--motion-enter), background-color 180ms ease, border-color 180ms ease, color 180ms ease, box-shadow 220ms var(--motion-enter);
}

.btn:hover,
.editor-btn:hover {
  border-color: rgba(54, 124, 147, 0.56);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(218, 239, 246, 0.84)),
    #fff;
  color: var(--theme-color);
  text-decoration: none;
}

.btn:active,
.editor-btn:active {
  transform: translateY(1px) scale(0.98);
}

.btn:disabled,
.editor-btn:disabled {
  cursor: not-allowed;
  opacity: 0.56;
  transform: none;
}

.editor-btn.secondary {
  background: rgba(255, 255, 255, 0.6);
  color: var(--text-color);
}

.footer {
  color: var(--muted-color);
  font-size: 0.875em;
  padding: 20px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  max-width: 1160px;
  margin: 0 auto;
  padding-left: 252px;
  text-align: center;
}

.home-page .footer-inner {
  flex-direction: column;
  gap: 6px;
}

.footer-line {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.visitor-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: #999;
  font-size: 1em;
  font-weight: 400;
  line-height: 1.4;
}

.visitor-icon {
  position: relative;
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
}

.visitor-icon::before,
.visitor-icon::after {
  position: absolute;
  left: 50%;
  background: currentColor;
  content: "";
  transform: translateX(-50%);
}

.visitor-icon::before {
  top: 1px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.visitor-icon::after {
  bottom: 1px;
  width: 15px;
  height: 7px;
  border-radius: 8px 8px 2px 2px;
  clip-path: polygon(23% 0, 77% 0, 100% 100%, 0 100%);
}

.back-to-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 10;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.54);
  border-radius: 50%;
  background: rgba(23, 33, 46, 0.76);
  color: #fff;
  font-size: 18px;
  line-height: 1;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  box-shadow: 0 12px 30px rgba(23, 33, 46, 0.22);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: opacity 200ms ease, transform 220ms var(--motion-enter), background-color 180ms ease;
}

.back-to-top.is-visible {
  opacity: 0.85;
  pointer-events: auto;
  transform: translateY(0);
}

.back-to-top.is-suspended {
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
}

.back-to-top:hover {
  color: #fff;
  opacity: 1;
}

.back-to-top.is-visible:focus-visible {
  outline: 3px solid rgba(54, 124, 147, 0.42);
  outline-offset: 3px;
  opacity: 1;
}

.editor-layout {
  max-width: 1180px;
}

.editor-main {
  width: calc(100% - 252px);
  padding-left: 12px;
}

.editor-page-shell {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--glass-border);
  border-radius: var(--surface-radius);
  background: var(--content-bg-color);
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px) saturate(1.35);
  -webkit-backdrop-filter: blur(22px) saturate(1.35);
  padding: 28px;
}

.editor-page-title {
  margin: 0 0 16px;
  color: var(--text-strong-color);
  font-size: 1.5em;
  font-weight: 400;
  text-align: center;
}

.blog-editor-mode {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr) minmax(0, 1fr);
  min-height: 560px;
  border: 1px solid var(--line-color);
  border-radius: var(--control-radius);
  background: rgba(255, 255, 255, 0.62);
  color: var(--text-color);
  overflow: hidden;
}

.editor-pane {
  min-width: 0;
  display: flex;
  flex-direction: column;
  border-left: 1px solid var(--line-color);
}

.editor-pane-left {
  border-left: 0;
}

.editor-pane-head {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line-color);
}

.editor-pane-title {
  margin: 0;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line-color);
  color: var(--muted-color);
  font-size: 0.875em;
}

.editor-note-list {
  margin: 0;
  padding: 8px;
  list-style: none;
}

.editor-note-item {
  margin: 0;
  padding: 6px 8px;
  color: var(--muted-color);
  font-size: 0.875em;
}

.editor-note-item.is-active {
  border-radius: 8px;
  background: var(--card-bg-color);
  color: var(--text-color);
}

.md-title-input {
  width: 100%;
  border: 1px solid var(--line-color);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.8);
  color: var(--text-color);
  padding: 6px 8px;
  font: inherit;
}

.md-input {
  width: 100%;
  min-height: 0;
  flex: 1;
  padding: 12px;
  border: 0;
  border-top: 1px solid var(--line-color);
  background: rgba(255, 255, 255, 0.76);
  color: var(--text-color);
  font: 14px/1.65 var(--font-mono);
  resize: vertical;
}

.md-preview {
  min-height: 0;
  flex: 1;
  padding: 12px;
  border-top: 1px solid var(--line-color);
  color: var(--text-color);
  overflow-y: auto;
}

.md-preview :first-child {
  margin-top: 0;
}

.editor-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.publish-status {
  margin-top: 10px;
  color: var(--muted-color);
}

.site-shell {
  display: flex;
  justify-content: space-between;
  width: calc(100% - 20px);
  max-width: 1160px;
  margin: 12px auto 0;
}

.site-shell .sidebar {
  position: relative;
  overflow: hidden;
  width: 240px;
  flex: 0 0 240px;
  border: 1px solid var(--glass-border);
  border-radius: var(--surface-radius);
  background: var(--content-bg-color);
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px) saturate(1.35);
  -webkit-backdrop-filter: blur(22px) saturate(1.35);
  padding: 24px 20px;
  text-align: center;
}

.site-shell .site-name {
  margin: 0 0 14px;
  color: var(--text-strong-color);
  font-weight: 700;
}

.site-shell .site-name a,
.site-shell .sidebar-nav a {
  border-bottom: 0;
}

.site-shell .sidebar-nav {
  display: grid;
  gap: 4px;
}

.site-shell .sidebar-nav a {
  padding: 4px 8px;
  font-size: 0.8125em;
}

.site-shell .sidebar-nav a:hover {
  background: var(--card-bg-color);
}

.site-shell .content {
  position: relative;
  overflow: hidden;
  width: calc(100% - 252px);
  min-width: 0;
  margin-left: 12px;
  border: 1px solid var(--glass-border);
  border-radius: var(--surface-radius);
  background: var(--content-bg-color);
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px) saturate(1.35);
  -webkit-backdrop-filter: blur(22px) saturate(1.35);
  padding: 40px;
}

.site-shell .section {
  margin: 0;
}

.site-shell .footer {
  padding-bottom: 0;
}

.article-content .meta {
  margin: 0 0 8px;
  text-align: center;
}

.article-content .article-title {
  margin-bottom: 40px;
  text-align: center;
}

.home-page .column,
.home-page .post-block {
  animation: page-rise 520ms var(--motion-enter) both;
}

.home-page .post-block {
  animation-delay: 80ms;
}

.home-page .post-header {
  animation: hero-rise 620ms var(--motion-enter) 120ms both;
}

.home-page [data-reveal] {
  opacity: 0;
  transform: translate3d(0, 14px, 0);
  transition: opacity 460ms var(--motion-enter), transform 460ms var(--motion-enter);
}

.home-page [data-reveal].is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

@keyframes page-rise {
  from {
    opacity: 0;
    transform: translate3d(0, 12px, 0);
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes hero-rise {
  from {
    opacity: 0;
    transform: translate3d(0, 10px, 0);
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@media (hover: hover) and (pointer: fine) {
  .header:hover,
  .sidebar-inner:hover,
  .site-search-card:hover,
  .account-links-card:hover,
  .post-block:hover {
    border-color: rgba(255, 255, 255, 0.88);
    box-shadow: var(--shadow-lifted);
  }

  .menu-item a:hover,
  .site-shell .sidebar-nav a:hover {
    transform: translateX(3px);
  }

  .site-search-result:hover,
  .project-list > li:hover,
  .case-study-nav a:hover,
  .blog-list .blog-item:hover {
    border-color: rgba(54, 124, 147, 0.32);
    background: rgba(255, 255, 255, 0.72);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.86), 0 14px 34px rgba(54, 82, 104, 0.12);
    transform: translate3d(0, -3px, 0);
  }

  .account-link:hover,
  .account-link:focus-visible {
    border-color: rgba(255, 255, 255, 0.56);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.38), 0 12px 24px rgba(37, 55, 72, 0.16);
    transform: translateY(-2px);
  }

  .btn:hover,
  .editor-btn:hover,
  .back-to-top:hover {
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 12px 26px rgba(54, 124, 147, 0.18);
    transform: translateY(-1px);
  }

  .btn:disabled:hover,
  .editor-btn:disabled:hover {
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.86), 0 8px 20px rgba(54, 124, 147, 0.12);
    transform: none;
  }
}

@media (min-width: 1600px) {
  .main,
  .footer-inner,
  .site-shell {
    max-width: none;
    width: 73%;
  }
}

@media (max-width: 991px) {
  .headband {
    display: none;
  }

  .main,
  .site-shell,
  .editor-layout {
    display: block;
    width: auto;
    margin: 0;
    padding: 10px;
  }

  .home-page .main {
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }

  .home-page .header {
    order: 1;
  }

  .home-page .site-search-card {
    order: 2;
  }

  .home-page .main-inner {
    order: 3;
  }

  .home-page .sidebar {
    order: 4;
  }

  .home-page .account-links-card {
    order: 5;
  }

  .column,
  .main-inner,
  .editor-main,
  .site-shell .sidebar,
  .site-shell .content {
    width: auto;
    margin-left: 0;
    padding-left: 0;
  }

  .site-shell .sidebar,
  .site-shell .content,
  .main-inner {
    margin: 10px 0;
  }

  .sidebar {
    position: static;
  }

  .sidebar-inner {
    max-height: none;
  }

  .site-search-card {
    margin: 10px 0;
  }

  .account-links-card {
    margin: 10px 0;
  }

  .site-nav .menu {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding: 10px;
  }

  .menu-item a {
    padding: 4px 12px;
  }

  .post-block,
  .site-shell .content,
  .editor-page-shell {
    padding: 24px;
  }

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

  .section-heading-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .section-heading-row p {
    max-width: none;
    text-align: left;
  }

  .header,
  .sidebar-inner,
  .site-search-card,
  .account-links-card,
  .post-block,
  .legacy-post-shell,
  .editor-page-shell,
  .site-shell .sidebar,
  .site-shell .content {
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(14px) saturate(1.18);
    -webkit-backdrop-filter: blur(14px) saturate(1.18);
  }

  .footer-inner {
    padding-left: 0;
  }
}

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

  body::before {
    background-size: 56px 56px;
    opacity: 0.45;
  }

  .post-block,
  .site-shell .content,
  .editor-page-shell {
    padding: 16px;
  }

  .post-header {
    margin-bottom: 34px;
    padding-top: 8px;
  }

  .post-title,
  .article-title {
    font-size: 1.55rem;
  }

  .project-list > li,
  .blog-list .blog-item,
  .guestbook-form,
  .guestbook-empty,
  .guestbook-item {
    padding: 14px 15px;
  }

  .project-card-head,
  .project-card-actions {
    align-items: stretch;
    flex-direction: column;
    gap: 8px;
  }

  .project-status {
    align-self: flex-start;
  }

  .project-card-meta,
  .case-facts,
  .case-flow div,
  .code-tour-item,
  .verification-grid {
    grid-template-columns: 1fr;
  }

  .identity-hero {
    gap: 14px;
    margin-bottom: 24px;
  }

  .identity-copy {
    order: 1;
  }

  .identity-actions {
    order: 2;
    align-items: stretch;
    flex-direction: column;
  }

  .identity-hero h2 {
    font-size: 1.72rem;
    line-height: 1.32;
  }

  .identity-hero p {
    line-height: 1.68;
  }

  .identity-actions .btn,
  .identity-actions a {
    justify-content: center;
    width: 100%;
    text-align: center;
  }

  .route-grid {
    grid-template-columns: 1fr;
  }

  .route-card {
    min-height: 0;
  }

  .case-flow div {
    gap: 4px;
  }

  .archive-filters {
    gap: 7px;
  }

  .archive-filter {
    min-height: 30px;
    padding: 4px 11px;
  }

  .archive-entry {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .archive-entry-date {
    font-size: 0.75em;
  }

  .archive-entry-excerpt {
    -webkit-line-clamp: 3;
  }

  .guestbook-actions,
  .guestbook-item-head,
  .admin-guestbook-head,
  .admin-actions,
  .admin-message-actions {
    align-items: stretch;
    flex-direction: column;
    gap: 6px;
  }

  .admin-message-grid {
    grid-template-columns: 1fr;
  }

  .xhs-image {
    min-height: min(70vh, 520px);
  }

  .xhs-gallery-button {
    width: 48px;
    height: 48px;
  }

  .xhs-gallery-button::before {
    width: 10px;
    height: 10px;
    border-width: 3px 3px 0 0;
  }

  .blog-editor-mode {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .editor-pane-left {
    display: none;
  }

  .editor-pane {
    border-left: 0;
    border-top: 1px solid var(--line-color);
  }

  .editor-pane:first-child {
    border-top: 0;
  }

  .footer-dot {
    display: none;
  }

  .footer-inner {
    display: block;
  }

  .back-to-top {
    right: calc(12px + env(safe-area-inset-right, 0px));
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    display: grid;
    width: 44px;
    height: 44px;
    font-size: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .home-page [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
