@import url("https://at.alicdn.com/t/c/font_4608180_ti4f2zylm5.css");

:root {
  --bg: #dce2f1;
  --panel: #ffffff;
  --panel-soft: #f4f7fd;
  --text: #182033;
  --muted: #6b7280;
  --line: rgba(124, 139, 166, 0.16);
  --primary: #657be5;
  --primary-2: #6f88ff;
  --shadow: 0 10px 24px rgba(76, 88, 120, 0.12);
  --radius: 10px;
  --container: 1408px;
}

@font-face {
  font-family: "AlphaLiteRefIcon";
  src: url("https://at.alicdn.com/t/c/font_4608180_ti4f2zylm5.woff2?t=1775786640034") format("woff2"),
    url("https://at.alicdn.com/t/c/font_4608180_ti4f2zylm5.woff?t=1775786640034") format("woff");
  font-display: swap;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  height: 100%;
  scroll-behavior: smooth;
}

body {
  min-height: 100%;
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  letter-spacing: 0;
  overflow-x: hidden;
}

body.sidebar-open {
  overflow: hidden;
}

body.dark {
  --bg: #1f2937;
  --panel: #374151;
  --panel-soft: rgba(255, 255, 255, 0.08);
  --text: #e5e7eb;
  --muted: #cbd5e1;
  --line: rgba(255, 255, 255, 0.12);
  --shadow: none;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease, transform 0.2s ease, background-color 0.2s ease;
}

a:hover {
  color: var(--primary);
}

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

button,
input,
textarea {
  font: inherit;
}

button {
  border: 0;
  background: transparent;
  cursor: pointer;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  color: var(--text);
  background: var(--panel-soft);
  border-radius: 6px;
  outline: 0;
}

input:focus,
textarea:focus {
  border-color: rgba(101, 123, 229, 0.45);
  box-shadow: 0 0 0 3px rgba(101, 123, 229, 0.12);
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

p {
  margin: 0;
  color: #203656;
}

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

.container {
  width: min(100%, var(--container));
  margin: 0 auto;
  padding: 0 1.25rem;
}

.site-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-header {
  padding: 1.35rem 0 2.15rem;
}

.header-inner {
  display: flex;
  align-items: center;
  min-height: 42px;
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
}

.brand-logo {
  display: block;
  width: auto;
  height: 36px;
}

.brand-logo-dark,
.dark .brand-logo-light {
  display: none;
}

.dark .brand-logo-dark {
  display: block;
}

.brand-text {
  font-weight: 800;
  font-size: 24px;
  line-height: 1;
}

.header-spacer,
.flex-fill {
  flex: 1 1 auto;
}

.header-nav {
  display: none;
  align-items: center;
  gap: 20px;
}

.header-nav a,
.nav-list a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}

.nav-symbol {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-width: 18px;
  height: 18px;
  color: inherit;
}

.nav-symbol svg,
.quick-link-icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.2;
}

.nav-symbol .icon-fallback,
.quick-link-icon .icon-fallback {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 5px;
  color: #fff;
  background: var(--primary);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.icon-button {
  width: 2.1875rem;
  height: 2.1875rem;
  margin-left: 1rem;
  border-radius: 5rem;
  background: rgb(0 0 0 / 10%);
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.sidebar-toggle {
  display: none;
}

.dark .icon-button {
  background: #4b5563;
}

.al-ref-icon {
  font-family: "AlphaLiteRefIcon" !important;
  font-size: 22px;
  font-style: normal;
  line-height: 1;
  display: block;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.iconfont {
  font-family: "AlphaLiteRefIcon" !important;
  font-style: normal;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.al-ref-moon::before {
  content: "\e8db";
}

.al-ref-sun {
  display: none;
}

.al-ref-sun::before {
  content: "\e601";
}

.al-ref-expand::before {
  content: "\e64e";
}

.al-ref-home::before {
  content: "\e7dc";
}

.icon-home::before {
  content: "\e7dc";
}

.al-ref-list-alt::before {
  content: "\e7fe";
}

.icon-list-alt::before {
  content: "\e7fe";
}

.al-ref-contact::before {
  content: "\e77e";
}

.icon-contact::before {
  content: "\e77e";
}

.al-ref-edit::before {
  content: "\e7a5";
}

.icon-edit::before {
  content: "\e7a5";
}

.al-nav-ref-icon {
  width: 18px;
  height: 18px;
  font-size: 18px;
  line-height: 18px;
  vertical-align: bottom;
}

.dark .al-ref-moon {
  display: none;
}

.dark .al-ref-sun {
  display: block;
  color: #ffd400;
}

.icon-moon,
.icon-sun,
.icon-menu,
.icon-expand,
.icon-search,
.icon-arrow-up {
  width: 18px;
  height: 18px;
  display: inline-block;
  position: relative;
}

.icon-moon::before {
  content: "";
  position: absolute;
  inset: 2px 3px 2px 2px;
  border-radius: 50%;
  box-shadow: 5px 0 0 0 currentColor;
}

.icon-sun {
  display: none;
}

.icon-sun::before {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 -7px 0 -5px currentColor, 0 7px 0 -5px currentColor, 7px 0 0 -5px currentColor, -7px 0 0 -5px currentColor;
}

.dark .icon-moon {
  display: none;
}

.dark .icon-sun {
  display: inline-block;
  color: #fde68a;
}

.icon-menu::before,
.icon-menu::after,
.icon-expand::before,
.icon-expand::after,
.icon-search::before,
.icon-search::after,
.icon-arrow-up::before,
.icon-arrow-up::after {
  content: "";
  position: absolute;
  display: block;
}

.icon-menu::before {
  left: 2px;
  top: 4px;
  width: 14px;
  height: 2px;
  background: currentColor;
  box-shadow: 0 5px 0 currentColor, 0 10px 0 currentColor;
}

.icon-expand::before {
  inset: 3px;
  border: 2px solid currentColor;
  border-radius: 3px;
}

.icon-expand::after {
  right: 0;
  top: 0;
  width: 8px;
  height: 8px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
}

.icon-search::before {
  width: 10px;
  height: 10px;
  top: 2px;
  left: 2px;
  border: 2px solid currentColor;
  border-radius: 50%;
}

.icon-search::after {
  width: 8px;
  height: 2px;
  right: 1px;
  bottom: 3px;
  background: currentColor;
  transform: rotate(45deg);
  border-radius: 2px;
}

.icon-arrow-up::before {
  width: 10px;
  height: 10px;
  left: 4px;
  top: 3px;
  border-left: 2px solid currentColor;
  border-top: 2px solid currentColor;
  transform: rotate(45deg);
}

.icon-arrow-up::after {
  width: 2px;
  height: 14px;
  left: 8px;
  top: 4px;
  background: currentColor;
  border-radius: 2px;
}

.main-area {
  flex: 1 0 auto;
}

.switch-nav-overlay {
  display: none;
}

.row {
  display: flex;
  flex-flow: row nowrap;
  gap: 1.4rem;
}

.nva-sidebar {
  flex: 0 0 23%;
  max-width: 23%;
}

.list-homes,
.column-big {
  flex: 1 1 auto;
  max-width: 54%;
}

.side-home {
  flex: 0 0 23%;
  max-width: 23%;
}

.no-rightbar .list-homes,
.no-rightbar .column-big,
.enlarge-on .list-homes,
.enlarge-on .column-big {
  max-width: 76%;
}

.no-rightbar .side-home,
.enlarge-on .nva-sidebar,
.enlarge-on .side-home {
  display: none;
}

.enlarge-on .list-homes,
.enlarge-on .column-big {
  max-width: 920px;
  margin: 0 auto;
}

.sticky {
  position: sticky;
  top: 1rem;
}

#aside .sticky,
.widget,
.list-diary,
.article,
.comment-module,
.comment-list,
.empty-card {
  background: var(--panel);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

#aside .sticky {
  padding: 1.25rem;
}

.nav-list {
  margin: 0 0 1rem;
}

.nav-list li {
  min-height: 38px;
  display: flex;
  align-items: center;
  padding: 0 16px;
  border-radius: 8px;
  margin-bottom: 0.45rem;
}

.nav-list li.active,
.nav-list li:hover {
  background: var(--panel-soft);
}

.nav-list a {
  width: 100%;
  gap: 12px;
}

.nav-list .nav-symbol {
  min-width: 20px;
}

.information-statistics,
.site-search {
  padding-top: 1.15rem;
  border-top: 1px solid var(--line);
}

.stats-container {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  padding: 10px;
  background: var(--panel-soft);
  border-radius: var(--radius);
}

.stats-box {
  padding: 10px 6px 9px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  text-align: center;
}

.dark .stats-box {
  background: rgba(0, 0, 0, 0.16);
}

.stats-box strong {
  display: block;
  font-size: 20px;
  line-height: 1.1;
}

.stats-box span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.quick-link-container {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 1rem 0;
}

.quick-link-item {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  color: var(--primary);
  background: var(--panel-soft);
}

.quick-link-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.site-search form {
  position: relative;
}

.site-search input {
  height: 40px;
  padding: 0 50px 0 14px;
}

.site-search button {
  position: absolute;
  top: 0;
  right: 0;
  width: 44px;
  height: 40px;
  border-radius: 0 6px 6px 0;
  color: #fff;
  background: linear-gradient(90deg, var(--primary-2), var(--primary));
}

.list-home {
  display: grid;
  gap: 1.25rem;
}

.home-slider {
  margin-bottom: 1.25rem;
}

.home-slider-frame {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: var(--panel);
  aspect-ratio: 21 / 9;
}

.home-slider-track {
  height: 100%;
  display: flex;
  transform: translateX(calc(var(--active-index, 0) * -100%));
  transition: transform 0.45s ease;
}

.home-slide {
  position: relative;
  flex: 0 0 100%;
  min-width: 0;
}

.home-slide-link {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.home-slide-link img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 0.55s ease;
}

.home-slide-link:hover img {
  transform: scale(1.035);
}

.home-slide-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.05) 24%, rgba(15, 23, 42, 0.68) 100%);
  pointer-events: none;
}

.home-slide-copy {
  position: absolute;
  left: 1.35rem;
  right: 1.35rem;
  bottom: 1.25rem;
  z-index: 1;
  max-width: min(560px, calc(100% - 2.7rem));
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.28);
}

.home-slide-copy h2 {
  margin: 0;
  color: #fff;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.32;
  word-break: break-word;
}

.home-slide-copy p {
  margin-top: 0.45rem;
  color: rgba(255, 255, 255, 0.88);
  font-size: 14px;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.home-slider-arrow {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: #fff;
  background: rgba(15, 23, 42, 0.28);
  backdrop-filter: blur(4px);
  transform: translateY(-50%);
  opacity: 0;
}

.home-slider-frame:hover .home-slider-arrow,
.home-slider-frame:focus-within .home-slider-arrow {
  opacity: 1;
}

.home-slider-prev {
  left: 14px;
}

.home-slider-next {
  right: 14px;
}

.home-slider-arrow::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 9px;
  height: 9px;
  border-top: 2px solid currentColor;
  border-left: 2px solid currentColor;
}

.home-slider-prev::before {
  transform: translate(-35%, -50%) rotate(-45deg);
}

.home-slider-next::before {
  transform: translate(-65%, -50%) rotate(135deg);
}

.home-slider-dots {
  position: absolute;
  left: 50%;
  bottom: 14px;
  z-index: 2;
  display: flex;
  gap: 8px;
  transform: translateX(-50%);
}

.home-slider-dots button {
  width: 22px;
  height: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.52);
  transition: width 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

.home-slider-dots button.is-active {
  width: 32px;
  background: #fff;
}

.list-diary,
.article,
.comment-module,
.comment-list,
.empty-card {
  padding: 1.5rem;
}

.d-flex,
.list-avatar {
  display: flex;
  align-items: center;
}

.avatar,
.comment-user-info .avatar img {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  object-fit: cover;
}

.list-header {
  margin-left: 12px;
  min-width: 0;
}

.list-top-frame,
.list-meta,
.list-footer,
.list-url,
.comment-info,
.card-meta-bottom {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

.list-top-frame {
  gap: 8px;
}

.list-name {
  font-weight: 700;
}

.list-meta,
.card-meta-bottom {
  gap: 12px;
  color: var(--muted);
  font-size: 13px;
}

.edit-link,
.log-topflg {
  display: inline-flex;
  align-items: center;
  min-height: 21px;
  padding: 1px 7px;
  border-radius: 5px;
  color: #fff;
  background: #ef4444;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
}

.edit-link {
  background: var(--primary);
}

.list-content {
  margin-top: 1.05rem;
}

.list-title-row,
.post-title-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 0.65rem;
}

.diaryopentitle {
  display: inline-block;
  margin-bottom: 0;
  color: #2563eb;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.45;
  word-break: break-word;
}

.article .diaryopentitle,
.post-title {
  margin: 0 0 1rem;
  color: var(--text);
  font-size: 28px;
  font-weight: 800;
  line-height: 1.35;
}

.article .post-title-row {
  margin-bottom: 1rem;
}

.list-contract {
  color: #203656;
}

.list-contract p,
.essay-list-body p {
  margin-bottom: 1rem;
}

.list-contract img:not(.emoji-img) {
  display: none;
}

.list-image {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 1rem;
}

.list-image-body {
  display: block;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 8px;
  background: var(--panel-soft);
}

.list-image-body img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.list-image-body:hover img {
  transform: scale(1.04);
}

.list-footer {
  margin-top: 0.95rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--line);
  gap: 12px;
}

.list-url {
  gap: 12px;
}

.attachcontent-text,
.tag-text {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 3px 10px;
  border-radius: 6px;
  color: var(--text);
  background: transparent;
  font-size: 13px;
  color: var(--muted);
}

.tag-text {
  color: var(--primary);
  background: var(--panel-soft);
}

.attachcontent-text:hover,
.tag-text:hover,
.quick-link-item:hover,
.nav-list li:hover {
  transform: translateY(-1px);
}

.essay-list-body {
  color: #203656;
  word-break: break-word;
}

.essay-list-body img {
  border-radius: 10px;
  margin: 1rem 0;
}

.essay-list-body h2,
.essay-list-body h3,
.essay-list-body h4 {
  margin: 1.4rem 0 0.7rem;
  line-height: 1.35;
  font-weight: 800;
}

.essay-list-body blockquote {
  margin: 1rem 0;
  padding: 1rem;
  border-left: 4px solid var(--primary);
  border-radius: 0 8px 8px 0;
  background: var(--panel-soft);
}

.essay-list-body pre {
  overflow: auto;
  padding: 1rem;
  border-radius: 8px;
  background: #111827;
  color: #e5e7eb;
}

.post-cover {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
}

.page-header {
  margin-bottom: 1rem;
}

.article-author .avatar {
  width: 24px;
  height: 24px;
  margin-right: 6px;
  border-radius: 50%;
}

.neighbor-log {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}

.neighbor-log div {
  padding: 1rem;
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.neighbor-log span {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.neighbor-log a,
.neighbor-log em {
  display: block;
  margin-top: 4px;
  font-style: normal;
  font-weight: 700;
}

.widget {
  margin-bottom: 1.5rem;
  overflow: hidden;
}

.widget-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
  padding: 0 1.25rem;
  border-bottom: 1px solid var(--line);
}

.widget-title h3 {
  margin: 0;
  font-size: 16px;
}

.window-dots {
  display: inline-flex;
  gap: 8px;
}

.window-dots i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #f87171;
}

.window-dots i:nth-child(2) {
  background: #fbbf24;
}

.window-dots i:nth-child(3) {
  background: #4ade80;
}

.profile-card {
  padding: 1.1rem;
  text-align: center;
}

.profile-card img {
  width: 100%;
  aspect-ratio: 16 / 11;
  object-fit: cover;
  background: linear-gradient(145deg, #ffffff, #eaf2ff);
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.09);
}

.profile-card p {
  margin-top: 0.95rem;
  color: var(--muted);
}

.comment-mini-list,
.category-list {
  padding: 1rem 1.25rem 1.25rem;
}

.comment-mini-list li + li,
.category-list li + li {
  margin-top: 10px;
}

.comment-mini-list a {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.comment-mini-list img {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  object-fit: cover;
}

.comment-mini-list span {
  min-width: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.comment-mini-list strong {
  display: block;
  color: var(--text);
}

.category-list a {
  display: block;
  padding: 8px 10px;
  border-radius: 6px;
  background: var(--panel-soft);
}

.comment-module,
.comment-list {
  margin-top: 1.5rem;
}

.title-h3 {
  margin: 0 0 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--line);
  font-size: 18px;
  font-weight: 800;
}

.commentform textarea {
  min-height: 128px;
  padding: 12px 14px;
  resize: vertical;
}

.comment-info {
  gap: 10px;
  margin-top: 12px;
}

.comment-info input {
  flex: 1 1 170px;
  height: 42px;
  padding: 0 12px;
}

.comment-info #comment_submit {
  flex: 0 0 auto;
  width: auto;
  padding: 0 18px;
  color: #fff;
  border: 0;
  background: linear-gradient(90deg, var(--primary-2), var(--primary));
}

.verify-code {
  width: 92px;
  height: 42px;
  border-radius: 6px;
  object-fit: cover;
  cursor: pointer;
}

.cancel-reply {
  margin-top: 10px;
  color: var(--primary);
  font-size: 14px;
}

.comment-list > ul,
.comment-children-list {
  display: grid;
  gap: 1rem;
}

.comment {
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
}

.comment-children {
  margin-left: 2rem;
  background: rgba(255, 255, 255, 0.52);
}

.dark .comment-children {
  background: rgba(0, 0, 0, 0.14);
}

.comment-user-info {
  display: flex;
  gap: 10px;
}

.comment-user-info .avatar {
  flex: 0 0 40px;
}

.comment-user-info .avatar img {
  width: 40px;
  height: 40px;
}

.user-meta {
  flex: 1;
}

.meta-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

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

.comment-replay-btn {
  color: var(--primary);
  font-size: 13px;
}

.comment-content-wrapper {
  margin-top: 0.75rem;
}

.comment-content {
  color: var(--text);
  word-break: break-word;
}

.pagenavi-bottom {
  margin-top: 1.5rem;
  text-align: center;
}

.pagenavi-bottom a,
.pagenavi-bottom span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  margin: 0 3px;
  padding: 0 12px;
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.pagenavi-bottom a {
  color: #fff;
  background: linear-gradient(90deg, var(--primary-2), var(--primary));
}

.site-footer {
  margin-top: 2.4rem;
  padding: 1.2rem 0 2rem;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px 18px;
  color: var(--muted);
  font-size: 14px;
}

.scroll-top {
  position: fixed;
  right: 30px;
  bottom: 100px;
  z-index: 90;
  width: 42px;
  height: 42px;
  display: none;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  color: var(--text);
  background: rgba(0, 0, 0, 0.12);
  backdrop-filter: blur(6px);
}

.scroll-top.show {
  display: flex;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 10001;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(15, 23, 42, 0.76);
  backdrop-filter: blur(4px);
}

.lightbox img {
  max-width: min(100%, 1100px);
  max-height: calc(100vh - 48px);
  border-radius: 10px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
}

.empty-card {
  text-align: center;
}

.empty-card h2,
.error-page h1 {
  margin: 0 0 0.5rem;
}

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

.error-page {
  text-align: center;
}

.error-code {
  font-size: 88px;
  line-height: 1;
  color: var(--primary);
  font-weight: 900;
}

.primary-link {
  display: inline-flex;
  margin-top: 1rem;
  padding: 9px 18px;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(90deg, var(--primary-2), var(--primary));
}

@media (max-width: 1100px) {
  .header-nav {
    display: none;
  }

  .nva-sidebar {
    flex-basis: 28%;
    max-width: 28%;
  }

  .list-homes,
  .column-big {
    max-width: 72%;
  }

  .side-home {
    display: none;
  }
}

@media (max-width: 768px) {
  .site-header {
    padding: 20px 0;
  }

  .brand-logo {
    height: 34px;
  }

  .brand-text {
    max-width: 42vw;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 18px;
  }

  .layout-toggle {
    display: none;
  }

  .sidebar-toggle {
    display: inline-flex;
  }

  .row {
    display: block;
  }

  .list-homes,
  .column-big,
  .no-rightbar .list-homes,
  .no-rightbar .column-big {
    width: 100%;
    max-width: none;
  }

  .home-slider-frame {
    aspect-ratio: 16 / 9;
  }

  .home-slide-copy {
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    max-width: calc(100% - 2rem);
  }

  .home-slide-copy h2 {
    font-size: 18px;
  }

  .home-slide-copy p {
    font-size: 13px;
    -webkit-line-clamp: 1;
  }

  .home-slider-arrow {
    display: none;
  }

  .nva-sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 10000;
    width: min(84vw, 320px);
    max-width: none;
    padding: 1rem;
    background: var(--panel);
    overflow-y: auto;
    transform: translateX(-105%);
    transition: transform 0.25s ease;
  }

  .nva-sidebar.active {
    transform: translateX(0);
  }

  #aside .sticky {
    position: static;
    padding: 0;
    box-shadow: none;
  }

  .switch-nav-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    background: rgba(15, 23, 42, 0.22);
    backdrop-filter: blur(2px);
  }

  .switch-nav-overlay.active {
    display: block;
  }

  .list-diary,
  .article,
  .comment-module,
  .comment-list,
  .empty-card {
    padding: 1.25rem;
  }

  .article .diaryopentitle,
  .post-title {
    font-size: 22px;
  }

  .neighbor-log {
    grid-template-columns: 1fr;
  }

  .comment-children {
    margin-left: 0.75rem;
  }

  .footer-inner {
    padding-bottom: 1rem;
  }
}

@media (max-width: 480px) {
  .icon-button {
    width: 34px;
    height: 34px;
    margin-left: 8px;
  }

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

  .list-footer,
  .list-url,
  .comment-info {
    align-items: stretch;
  }

  .comment-info #comment_submit,
  .comment-info input {
    width: 100%;
    flex-basis: 100%;
  }

  .scroll-top {
    right: 16px;
    bottom: 24px;
  }
}
