[data-static-mobile-page] {
  display: none;
}

[data-static-desktop-page] {
  display: block;
}

.archive-static-page {
  background: #f8f9fc;
}

.archive-static-page,
.archive-static-page * {
  box-sizing: border-box;
}

.archive-static-page .wrapper {
  width: min(1200px, calc(100% - 40px));
  margin-right: auto;
  margin-left: auto;
}

.archive-page-main {
  min-height: 60vh;
  padding-top: 138px;
  padding-bottom: 48px;
  background: #f8f9fc;
}

body:has(.archive-category-page) header > section,
body:has(.archive-tag-page) header > section {
  border-color: rgba(239, 245, 255, .95) !important;
  background: rgba(255, 255, 255, .92) !important;
  box-shadow: 0 10px 28px rgba(15, 23, 42, .08);
}

body:has(.archive-category-page) header > section > section > section:first-child,
body:has(.archive-tag-page) header > section > section > section:first-child {
  border-color: #eff5ff !important;
}

body:has(.archive-category-page) header .menu-transparent-color,
body:has(.archive-category-page) header .header-buttons .n-button,
body:has(.archive-category-page) header .header-buttons .cursor-pointer,
body:has(.archive-tag-page) header .menu-transparent-color,
body:has(.archive-tag-page) header .header-buttons .n-button,
body:has(.archive-tag-page) header .header-buttons .cursor-pointer {
  color: #62748e !important;
}

body:has(.archive-category-page) header a:hover .menu-transparent-color,
body:has(.archive-category-page) header .menu-transparent-color:hover,
body:has(.archive-category-page) header .color-main,
body:has(.archive-tag-page) header a:hover .menu-transparent-color,
body:has(.archive-tag-page) header .menu-transparent-color:hover,
body:has(.archive-tag-page) header .color-main {
  color: var(--salong-color-primary, #008efb) !important;
}

.archive-crumb {
  position: relative;
  z-index: 5;
  width: 100%;
  padding: 20px 0;
  background: #fff;
  border-bottom: 1px solid var(--salong-color-border, #eff5ff);
}

.archive-crumb-inner {
  display: flex;
  gap: 6px;
  align-items: center;
  min-height: 24px;
  color: var(--salong-color-meta, #62748e);
  font-size: 13px;
}

.archive-crumb-link {
  display: inline-flex;
  gap: 4px;
  align-items: center;
  min-width: 0;
  color: inherit;
  text-decoration: none;
  transition: color .2s ease;
}

.archive-crumb-link:hover,
.archive-crumb-link[aria-current="page"] {
  color: var(--salong-color-primary, #008efb);
}

.archive-crumb-separator {
  color: #9aa7b9;
}

.archive-shell {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-top: 20px;
}

.archive-taxonomy-card {
  padding: 20px;
  background: #fff;
}

.archive-taxonomy-heading {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
}

.archive-taxonomy-heading h1 {
  margin: 0;
  color: var(--salong-color-title, #0f172a);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
}

.archive-taxonomy-count {
  flex: 0 0 auto;
  color: var(--salong-color-meta, #62748e);
  font-size: 13px;
  line-height: 1.4;
}

.archive-taxonomy-card p {
  margin: 12px 0 0;
  padding-top: 12px;
  border-top: 1px solid var(--salong-color-border, #eff5ff);
  color: var(--salong-color-text, #334155);
  font-size: 14px;
  line-height: 1.8;
}

.archive-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 30%);
  gap: 20px;
  align-items: start;
}

.archive-main-column,
.archive-list-region {
  min-width: 0;
}

.archive-list-region,
.archive-post-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.archive-post-card {
  display: flex;
  gap: 12px;
  align-items: center;
  min-width: 0;
  padding: 12px;
  overflow: hidden;
  background: #fff;
  transition: box-shadow .25s ease, border-color .25s ease, transform .25s ease;
}

.archive-post-card:hover {
  border-color: color-mix(in srgb, var(--salong-color-primary, #008efb) 45%, #eff5ff);
  box-shadow: 0 10px 28px rgba(15, 23, 42, .08);
  transform: translateY(-1px);
}

.archive-post-thumb {
  position: relative;
  flex: 0 0 32%;
  min-width: 220px;
  overflow: hidden;
  border-radius: var(--module-radius, 6px);
  background: #eff5ff;
  aspect-ratio: 600 / 338;
}

.archive-post-thumb img,
.archive-hot-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .8s ease;
}

.archive-post-card:hover .archive-post-thumb img,
.archive-hot-item:hover .archive-hot-thumb img {
  transform: scale(1.08);
}

.archive-post-content {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.archive-post-content h2 {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.55;
}

.archive-post-content h2 a {
  display: -webkit-box;
  overflow: hidden;
  color: var(--salong-color-title, #0f172a);
  text-decoration: none;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  transition: color .2s ease;
}

.archive-post-content h2 a:hover {
  color: var(--salong-color-primary, #008efb);
}

.archive-post-excerpt {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: var(--salong-color-text, #334155);
  font-size: 13px;
  line-height: 1.7;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.archive-post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  align-items: center;
  min-width: 0;
  margin-top: auto;
  font-size: 12px;
  line-height: 1.4;
}

.archive-post-meta-item {
  display: inline-flex;
  gap: 4px;
  align-items: center;
  min-width: 0;
  white-space: nowrap;
}

.archive-post-meta-item a {
  color: inherit;
  text-decoration: none;
}

.archive-post-meta-item a:hover {
  color: var(--salong-color-primary, #008efb);
}

.archive-post-meta-spacer {
  flex: 1 1 auto;
}

.archive-empty {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  justify-content: center;
  min-height: 220px;
  padding: 48px 24px;
  color: #62748e;
  text-align: center;
  background: #fff;
}

.archive-empty strong {
  color: var(--salong-color-title, #0f172a);
  font-size: 15px;
}

.archive-empty span,
.archive-sidebar-empty {
  color: #9aa7b9;
  font-size: 13px;
}

.archive-pagination-card {
  display: flex;
  justify-content: center;
  padding: 16px;
  background: #fff;
}

.cms-pagination,
.cms-pagination ul,
.cms-pagination .pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
  font-size: 13px;
  list-style: none;
}

.cms-pagination a,
.cms-pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 30px;
  height: 30px;
  padding: 0 9px;
  color: #62748e;
  border: 1px solid #eff5ff;
  border-radius: 3px;
  background: #fff;
  text-decoration: none;
  transition: color .2s ease, border-color .2s ease, background .2s ease;
}

.cms-pagination a:hover,
.cms-pagination .active span,
.cms-pagination .active a,
.cms-pagination span.current {
  color: var(--salong-color-primary, #008efb);
  border-color: var(--salong-color-primary, #008efb);
}

.cms-pagination .disabled span {
  color: #9aa7b9;
  background: #f8fafc;
}

.archive-sidebar {
  position: sticky;
  top: 96px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
}

@media (min-width: 768px) {
  .archive-static-page .nested-container {
    align-items: stretch !important;
    overflow: visible !important;
  }

  .archive-static-page .nested-container > section.h-full {
    align-self: stretch;
    height: auto !important;
    overflow: visible !important;
  }

  .archive-static-page .nested-container > section.h-full > aside {
    height: 100% !important;
  }

  .archive-static-page .nested-container > section.h-full .n-affix {
    position: sticky;
    top: 96px;
    transform: none !important;
    overflow: visible !important;
    max-height: none !important;
  }

  .archive-static-page .nested-container > section.h-full .n-affix > section {
    max-width: 100%;
  }
}

.archive-sidebar-card {
  overflow: hidden;
  background: #fff;
}

.archive-sidebar-title {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  min-height: 46px;
  padding: 0 20px;
  border-bottom: 1px solid var(--salong-color-border, #eff5ff);
}

.archive-sidebar-title h3 {
  margin: 0;
  color: var(--salong-color-title, #0f172a);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
}

.archive-daily-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  padding: 20px;
  text-align: center;
}

.archive-daily-body p {
  width: 100%;
  margin: 0;
  color: var(--salong-color-text, #334155);
  font-size: 14px;
  line-height: 1.8;
}

.archive-daily-body span {
  color: var(--salong-color-meta, #62748e);
  font-size: 13px;
}

.archive-daily-body img {
  width: 136px;
  max-width: 100%;
  height: auto;
  border-radius: 4px;
}

.archive-hot-title nav {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  color: var(--salong-color-meta, #62748e);
  font-size: 12px;
  white-space: nowrap;
}

.archive-hot-title nav button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 30px;
  height: 24px;
  padding: 0 8px;
  color: inherit;
  font: inherit;
  border: 1px solid transparent;
  border-radius: 3px;
  background: transparent;
  cursor: pointer;
  transition: color .2s ease;
}

.archive-hot-title nav .is-active {
  color: var(--salong-color-primary, #008efb);
  border-color: var(--salong-color-primary, #008efb);
}

.archive-hot-title nav button:hover {
  color: var(--salong-color-primary, #008efb);
}

.archive-hot-title nav button:disabled {
  color: #62748e;
  cursor: default;
  opacity: 1;
}

.archive-hot-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 12px 12px 24px;
}

.archive-hot-item {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--salong-color-border, #eff5ff);
  border-radius: var(--module-radius, 6px);
  background: #fff;
  transition: box-shadow .25s ease, border-color .25s ease;
}

.archive-hot-item:hover {
  border-color: color-mix(in srgb, var(--salong-color-primary, #008efb) 40%, #eff5ff);
  box-shadow: 0 8px 20px rgba(15, 23, 42, .07);
}

.archive-hot-thumb {
  display: block;
  overflow: hidden;
  background: #eff5ff;
  aspect-ratio: 20 / 13;
}

.archive-hot-content {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  padding: 10px;
}

.archive-hot-content h4 {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.55;
}

.archive-hot-content h4 a {
  display: -webkit-box;
  overflow: hidden;
  color: var(--salong-color-title, #0f172a);
  text-decoration: none;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.archive-hot-content h4 a:hover {
  color: var(--salong-color-primary, #008efb);
}

.archive-hot-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
  min-width: 0;
  font-size: 11px;
  line-height: 1.35;
}

.archive-hot-meta span {
  display: inline-flex;
  gap: 3px;
  align-items: center;
  min-width: 0;
}

.archive-sidebar-empty {
  padding: 24px;
  text-align: center;
}

.archive-sidebar-more {
  color: var(--salong-color-meta, #62748e);
  font-size: 12px;
}

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

.archive-tag-cloud a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 14px;
  color: var(--salong-color-text, #334155);
  border: 1px solid var(--salong-color-border, #eff5ff);
  border-radius: 16px;
  background: #f8fafc;
  font-size: 13px;
  line-height: 1.4;
  text-decoration: none;
  transition: color .2s ease, border-color .2s ease, background .2s ease;
}

.archive-tag-cloud a:hover,
.archive-tag-cloud a.is-current {
  color: #fff;
  border-color: var(--salong-color-primary, #008efb);
  background: var(--salong-color-primary, #008efb);
}

.archive-related-tags {
  background: #fff;
}

@media (max-width: 1024px) {
  .archive-layout {
    grid-template-columns: minmax(0, 1fr) 280px;
  }

  .archive-post-thumb {
    min-width: 190px;
  }

  .archive-hot-title {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    padding-top: 10px;
    padding-bottom: 10px;
  }
}

@media (max-width: 900px) {
  .archive-page-main {
    padding-top: 82px;
  }
}

@media (max-width: 767.98px) {
  [data-static-desktop-page] {
    display: none !important;
  }

  [data-static-mobile-page] {
    display: block !important;
  }

  .archive-static-page .wrapper {
    width: min(100% - 24px, 680px);
  }

  .archive-page-main {
    padding-top: 82px;
    padding-bottom: 32px;
  }

  .archive-crumb {
    padding: 14px 0;
  }

  .archive-crumb-inner {
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none;
  }

  .archive-crumb-inner::-webkit-scrollbar {
    display: none;
  }

  .archive-shell {
    gap: 14px;
    padding-top: 14px;
  }

  .archive-taxonomy-card {
    padding: 16px;
  }

  .archive-taxonomy-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .archive-layout {
    display: flex;
    flex-direction: column;
    gap: 14px;
  }

  .archive-post-card {
    align-items: stretch;
    flex-direction: column;
    gap: 12px;
    padding: 12px;
  }

  .archive-post-thumb {
    flex: none;
    width: 100%;
    min-width: 0;
  }

  .archive-post-content h2 {
    font-size: 15px;
  }

  .archive-post-meta {
    gap: 6px 9px;
  }

  .archive-post-meta-spacer {
    display: none;
  }

  .archive-sidebar {
    position: static;
    gap: 14px;
  }

  .archive-daily-body img {
    width: 120px;
  }

  .archive-hot-title {
    align-items: center;
    flex-direction: row;
    padding-right: 14px;
    padding-left: 14px;
  }

  .archive-hot-title nav {
    gap: 8px;
  }
}

@media (max-width: 479.98px) {
  .archive-hot-title {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
  }

  .archive-hot-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 10px;
  }

  .archive-hot-content {
    padding: 8px;
  }

  .cms-pagination,
  .cms-pagination ul,
  .cms-pagination .pagination {
    gap: 6px;
  }
}

@media (min-width: 768px) {
  [data-static-desktop-page] {
    display: block !important;
  }

  [data-static-mobile-page] {
    display: none !important;
  }

  [data-static-desktop-page] [id^="sidebar-"] {
    align-self: stretch;
    height: auto !important;
    position: relative;
    overflow: visible !important;
  }

  [data-static-desktop-page] [id^="sidebar-"] > aside {
    height: 100% !important;
  }

  [data-static-desktop-page] [id^="sidebar-"] .n-affix {
    position: sticky;
    top: 96px;
    max-height: none !important;
    overflow: visible !important;
    transform: none !important;
  }

  [data-static-desktop-page] [id^="sidebar-"] .n-affix > section {
    max-width: 100%;
  }

  [data-static-desktop-page] [id^="sidebar-"] .module-radius > .module-bg:has(+ .pt-3) {
    border-bottom-left-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
  }

  [data-static-desktop-page] [id^="sidebar-"] .module-radius > .module-bg + .pt-3 {
    box-sizing: border-box;
    padding: 12px 12px 32px !important;
    border-right: 1px solid var(--salong-color-border, #EFF5FF);
    border-bottom: 1px solid var(--salong-color-border, #EFF5FF);
    border-left: 1px solid var(--salong-color-border, #EFF5FF);
    border-bottom-right-radius: var(--module-radius, 6px);
    border-bottom-left-radius: var(--module-radius, 6px);
    background: var(--salong-bg-module, #fff);
  }

  [data-static-desktop-page] footer {
    position: relative;
    z-index: 30;
  }
}
