/*
 * 胡诌八扯 · 博客园 CodingLife 皮肤覆盖样式
 * 博客地址：https://www.cnblogs.com/YCDxh
 */

:root {
  --theme-primary: #9273b5;
  --theme-primary-dark: #6f5688;
  --theme-accent: #d487ad;
  --theme-lilac: #d9cbea;
  --theme-pink: #efc7dc;
  --theme-text: #4c3f5c;
  --theme-muted: #8b7a99;
  --theme-border: rgba(196, 181, 253, 0.34);
  --theme-surface: rgba(255, 248, 255, 0.8);
  --theme-surface-solid: #fff8ff;
  --theme-code: #2b2138;
  --theme-radius: 20px;
  --theme-shadow: 0 18px 50px rgba(111, 86, 136, 0.12);
  --button-start: #e6dbf2;
  --button-end: #f4dce9;
  --button-hover-start: #dacbea;
  --button-hover-end: #edcfe0;
  --button-text: #604e6e;
  --theme-transition: 180ms ease;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 0;
  color: var(--theme-text);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.75;
}

a {
  color: var(--theme-primary);
  text-decoration: none;
  transition: color var(--theme-transition), opacity var(--theme-transition);
}

a:hover,
a:focus-visible {
  color: var(--theme-accent);
}

::selection {
  color: #fff;
  background: var(--theme-primary);
}

/* 页面容器 */
#home {
  width: min(1180px, calc(100% - 40px));
  margin: 32px auto;
  background: transparent;
}

#header,
#mainContent .forFlow > .day,
#mainContent .forFlow > .post,
#sideBar #sidebar_news,
#sideBar .sidebar-block,
#sideBar #blog-calendar,
#footer {
  border: 1px solid var(--theme-border);
  border-radius: var(--theme-radius);
  background: var(--theme-surface);
  box-shadow: var(--theme-shadow);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

/* 页头 */
#header {
  position: relative;
  overflow: hidden;
  margin-bottom: 24px;
  padding: 46px 48px 0;
}

#header::before {
  position: absolute;
  top: -90px;
  right: -70px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(216, 180, 254, 0.38), rgba(249, 168, 212, 0.28));
  content: "";
  pointer-events: none;
}

#blogTitle {
  position: relative;
  z-index: 1;
  display: grid;
  height: auto;
  margin: 0 0 30px;
  padding: 0;
  grid-template-columns: minmax(220px, 0.65fr) minmax(460px, 1.35fr);
  align-items: center;
  gap: 10px 42px;
}

#blogTitle > #lnkBlogLogo {
  display: none;
}

#blogTitle > h1,
#blogTitle > h2 {
  margin: 0;
}

#blogTitle > h1 a,
#blogTitle .headermaintitle {
  color: var(--theme-text);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  text-shadow: none;
}

#blogTitle > h1 {
  grid-column: 1;
  grid-row: 1;
  align-self: end;
}

#blogTitle > h1::after {
  margin-left: 9px;
  color: var(--theme-accent);
  content: "✦";
  font-size: 0.48em;
  vertical-align: top;
}

#blogTitle > h2 {
  margin-top: 8px;
  color: var(--theme-muted);
  font-size: 1rem;
  font-weight: 400;
  grid-column: 1;
  grid-row: 2;
  align-self: start;
}

#blogTitle > h2:empty {
  display: none;
}

.header-about {
  position: relative;
  overflow: hidden;
  padding: 22px 24px;
  border: 1px solid rgba(255, 255, 255, 0.64);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(255, 250, 255, 0.78), rgba(250, 232, 255, 0.62));
  box-shadow: 0 16px 38px rgba(111, 86, 136, 0.13);
  backdrop-filter: blur(18px) saturate(135%);
  -webkit-backdrop-filter: blur(18px) saturate(135%);
  grid-column: 2;
  grid-row: 1 / span 2;
}

.header-about::after {
  position: absolute;
  right: -38px;
  bottom: -58px;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(244, 114, 182, 0.22), transparent 68%);
  content: "";
  pointer-events: none;
}

.header-about__eyebrow {
  margin-bottom: 5px;
  color: var(--theme-primary);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.18em;
}

#blogTitle .header-about__title {
  display: block;
  margin: 0;
  color: var(--theme-text);
  font-size: 18px;
  font-weight: 750;
  line-height: 1.45;
}

.header-about__intro {
  max-width: 660px;
  margin: 7px 0 12px;
  color: #6b5b7a;
  font-size: 13px;
  line-height: 1.7;
}

.header-about__meta {
  display: flex;
  margin-bottom: 13px;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.header-about__meta span {
  display: inline-flex;
  min-height: 28px;
  padding: 3px 10px;
  border: 1px solid rgba(146, 115, 181, 0.2);
  border-radius: 999px;
  color: #5b456b;
  background: rgba(255, 255, 255, 0.52);
  align-items: center;
  font-size: 12px;
  font-weight: 600;
}

.header-about__stack {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.header-about__stack-label {
  flex: 0 0 auto;
  padding-top: 4px;
  color: var(--theme-muted);
  font-size: 12px;
  font-weight: 700;
}

.header-about__stack ul {
  display: flex;
  margin: 0;
  padding: 0;
  list-style: none;
  flex-wrap: wrap;
  gap: 6px;
}

.header-about__stack li {
  margin: 0;
  padding: 3px 9px;
  border-radius: 8px;
  color: var(--theme-primary-dark);
  background: linear-gradient(135deg, rgba(216, 180, 254, 0.28), rgba(251, 207, 232, 0.34));
  font-size: 11px;
  font-weight: 650;
  transition: transform 140ms ease, box-shadow 140ms ease;
  will-change: transform;
}

#navigator {
  position: relative;
  z-index: 1;
  height: auto;
  margin: 0 -48px;
  padding: 0 48px;
  border: 0;
  border-top: 1px solid var(--theme-border);
  background: rgba(253, 244, 255, 0.7);
}

#navList {
  display: flex;
  min-height: 54px;
  margin: 0;
  padding: 0;
  list-style: none !important;
  align-items: center;
  gap: 6px;
}

#navList li {
  float: none;
  margin: 0;
  padding: 0;
  list-style: none !important;
}

#navList li::marker,
#navList li::before,
#navList li::after {
  display: none;
  content: "";
}

#navList a {
  display: inline-flex;
  height: 38px;
  padding: 0 14px;
  border-radius: 10px;
  color: #5b456b;
  align-items: center;
  font-size: 14px;
  font-weight: 600;
}

#navList a:hover,
#navList a:focus-visible {
  color: var(--theme-primary);
  background: rgba(216, 180, 254, 0.22);
}

.blogStats {
  color: var(--theme-muted);
  font-size: 13px;
}

/* 主体布局 */
#main {
  display: grid;
  width: 100%;
  min-height: 0;
  margin: 0;
  grid-template-columns: minmax(0, 1fr) 286px;
  gap: 24px;
}

#mainContent {
  float: none;
  width: auto;
  margin: 0;
}

#mainContent .forFlow {
  float: none;
  width: auto;
  margin: 0;
}

#sideBar {
  float: none;
  width: auto;
  margin: 0;
  color: var(--theme-text);
}

/* 首页文章卡片 */
#mainContent .forFlow > .day,
#mainContent .forFlow > .post {
  overflow: hidden;
  margin: 0 0 22px;
  padding: 30px 34px;
}

.dayTitle {
  display: inline-flex;
  float: none;
  min-width: 0;
  height: auto;
  margin: 0 0 18px;
  padding: 5px 12px;
  border: 0;
  border-radius: 999px;
  color: var(--theme-primary);
  background: linear-gradient(135deg, rgba(216, 180, 254, 0.3), rgba(251, 207, 232, 0.34));
  font-size: 13px;
  line-height: 1.5;
}

.postTitle {
  margin: 0 0 14px;
  padding: 0;
  border: 0;
  font-size: clamp(1.28rem, 3vw, 1.65rem);
  line-height: 1.35;
}

.postTitle a,
.postTitle2 {
  color: var(--theme-text);
  font-weight: 750;
}

.postTitle a:hover,
.postTitle2:hover {
  color: var(--theme-primary);
}

/* 链接流光下划线 */
#navList a,
.postTitle a,
#sideBar li > a {
  position: relative;
}

#navList a::after,
.postTitle a::after,
#sideBar li > a::after {
  position: absolute;
  right: 8px;
  bottom: 3px;
  left: 8px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--theme-lilac), var(--theme-accent));
  content: "";
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 220ms ease;
  pointer-events: none;
}

.postTitle a::after,
#sideBar li > a::after {
  right: 0;
  bottom: -3px;
  left: 0;
}

#navList a:hover::after,
#navList a:focus-visible::after,
.postTitle a:hover::after,
.postTitle a:focus-visible::after,
#sideBar li > a:hover::after,
#sideBar li > a:focus-visible::after {
  transform: scaleX(1);
}

.postCon,
.c_b_p_desc {
  color: #6b5b7a;
  font-size: 15px;
  line-height: 1.8;
}

.c_b_p_desc_readmore {
  display: inline-flex;
  margin-left: 6px;
  font-weight: 600;
}

.postDesc {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px dashed var(--theme-border);
  color: var(--theme-muted);
  font-size: 13px;
}

.postSeparator {
  display: none;
}

/* 正文 */
#cnblogs_post_body {
  color: var(--theme-text);
  font-size: 16px;
  line-height: 1.9;
}

#cnblogs_post_body h1,
#cnblogs_post_body h2,
#cnblogs_post_body h3,
#cnblogs_post_body h4 {
  color: #3b2d4a;
  font-weight: 750;
  line-height: 1.4;
  scroll-margin-top: 72px;
}

#cnblogs_post_body h2 {
  margin-top: 2.2em;
  padding-bottom: 0.45em;
  border-bottom: 1px solid var(--theme-border);
}

#cnblogs_post_body img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.12);
}

#cnblogs_post_body blockquote {
  margin: 1.5em 0;
  padding: 14px 18px;
  border: 0;
  border-left: 4px solid var(--theme-primary);
  border-radius: 0 10px 10px 0;
  color: #6b5b7a;
  background: rgba(250, 232, 255, 0.58);
}

#cnblogs_post_body code:not([class]) {
  padding: 0.15em 0.38em;
  border-radius: 5px;
  color: #be185d;
  background: #fdf2f8;
  font-family: "Cascadia Code", Consolas, monospace;
  font-size: 0.9em;
}

#cnblogs_post_body pre,
.cnblogs-markdown .hljs {
  overflow-x: auto;
  margin: 1.5em 0;
  padding: 18px 20px !important;
  border: 0 !important;
  border-radius: 12px !important;
  color: #e2e8f0;
  background: var(--theme-code) !important;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.18);
}

#cnblogs_post_body table {
  display: block;
  overflow-x: auto;
  width: 100%;
  border-collapse: collapse;
}

#cnblogs_post_body th,
#cnblogs_post_body td {
  padding: 10px 14px;
  border: 1px solid var(--theme-border);
}

#cnblogs_post_body th {
  background: #fff8ff;
}

/* 侧边栏 */
#sideBar #sidebar_news,
#sideBar .sidebar-block,
#sideBar #blog-calendar {
  overflow: hidden;
  margin: 0 0 18px;
  padding: 20px;
}

#sideBar .sidebar-block:not(:has(*)) {
  display: none;
}

#sideBar .sidebar-block > div,
#sideBar .sidebar-block > div > div {
  border: 0;
  background: transparent;
  box-shadow: none;
}

#sideBar h3,
#sideBar .catListTitle,
#sideBarMain .newsItem h3 {
  margin: 0 0 14px;
  padding: 0 0 10px;
  border: 0;
  border-bottom: 1px solid var(--theme-border);
  color: var(--theme-text);
  background: transparent;
  font-size: 15px;
  font-weight: 700;
}

#sideBar ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

#sideBar li {
  margin: 8px 0;
  line-height: 1.6;
}

#sideBar a {
  color: #6b5b7a;
}

#sideBar a:hover {
  color: var(--theme-primary);
}

.blog-profile {
  text-align: center;
}

.blog-profile__avatar {
  position: relative;
  display: grid;
  width: 78px;
  height: 78px;
  margin: 6px auto 14px;
  border: 3px solid rgba(255, 255, 255, 0.78);
  border-radius: 50%;
  color: #604e6e;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.72), rgba(235, 218, 244, 0.78)),
    linear-gradient(135deg, var(--button-start), var(--button-end));
  box-shadow:
    0 12px 28px rgba(111, 86, 136, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.82);
  place-items: center;
  font-size: 28px;
  font-weight: 800;
  text-shadow: 0 2px 8px rgba(146, 115, 181, 0.16);
  transition: transform 160ms ease, box-shadow 160ms ease;
  will-change: transform;
}

.blog-profile__avatar::before {
  position: absolute;
  top: -8px;
  right: -4px;
  display: grid;
  width: 25px;
  height: 25px;
  border: 2px solid rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  color: #9a789b;
  background: #f5ddea;
  box-shadow: 0 5px 12px rgba(111, 86, 136, 0.14);
  content: "♡";
  place-items: center;
  font-size: 14px;
}

.blog-profile__avatar::after {
  position: absolute;
  bottom: 1px;
  left: -7px;
  color: #b8a0d0;
  content: "✦";
  font-size: 19px;
  text-shadow: 0 3px 10px rgba(146, 115, 181, 0.22);
}

.blog-profile__name {
  margin: 0;
  font-size: 18px;
}

.blog-profile__bio {
  margin: 11px 0 16px;
  padding: 9px 10px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 10px;
  color: #6b5b7a;
  background: rgba(255, 255, 255, 0.34);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

#profile_block {
  display: none !important;
}

.blog-profile__links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.blog-profile__links a {
  padding: 7px 4px;
  border-radius: 9px;
  color: var(--button-text) !important;
  background: linear-gradient(135deg, rgba(230, 219, 242, 0.76), rgba(244, 220, 233, 0.78));
  font-size: 13px;
  font-weight: 600;
}

.blog-profile__links a:hover {
  color: #594765 !important;
  background: linear-gradient(135deg, var(--button-hover-start), var(--button-hover-end));
  box-shadow: 0 7px 16px rgba(111, 86, 136, 0.12);
}

/* 搜索、分页、页脚 */
#widget_my_zzk {
  display: flex;
  width: 100%;
  margin: 0;
  align-items: stretch;
  gap: 8px;
  font-size: 0;
}

#q,
#zzk_search_input {
  flex: 1 1 auto;
  width: auto;
  min-width: 0;
  height: 38px;
  padding: 0 11px;
  border: 1px solid var(--theme-border);
  border-radius: 10px;
  color: var(--theme-text);
  background: rgba(255, 255, 255, 0.3);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  outline: none;
  font-family: inherit;
  font-size: 13px;
}

#q:focus,
#zzk_search_input:focus {
  border-color: var(--theme-primary);
  background: rgba(255, 255, 255, 0.46);
  box-shadow: 0 0 0 3px rgba(146, 115, 181, 0.12);
}

#btnZzk,
#zzk_search_button {
  flex: 0 0 auto;
  width: auto;
  height: 38px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 10px;
  color: var(--button-text);
  background: linear-gradient(135deg, var(--button-start), var(--button-end));
  box-shadow: 0 8px 18px rgba(111, 86, 136, 0.12);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  cursor: pointer;
  font-family: inherit;
  font-size: 13px;
  transition: background var(--theme-transition), transform var(--theme-transition);
}

#btnZzk:hover,
#zzk_search_button:hover {
  background: linear-gradient(135deg, var(--button-hover-start), var(--button-hover-end));
  transform: translateY(-1px);
}

#homepage_top_pager {
  display: none !important;
}

.pagination-enhanced .topicListFooter {
  display: none !important;
}

.blog-pagination {
  display: flex;
  margin: 30px 0 6px;
  padding: 21px 24px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 22px;
  color: var(--theme-text);
  background:
    linear-gradient(135deg, rgba(255, 251, 255, 0.95), rgba(242, 230, 248, 0.92));
  box-shadow:
    0 20px 48px rgba(111, 86, 136, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(22px) saturate(140%);
  -webkit-backdrop-filter: blur(22px) saturate(140%);
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

.blog-pagination a,
.blog-pagination__current,
.blog-pagination__status {
  display: inline-flex;
  min-width: 46px;
  min-height: 46px;
  padding: 8px 16px;
  border: 1px solid rgba(205, 188, 221, 0.42);
  border-radius: 15px;
  color: var(--button-text);
  background: linear-gradient(135deg, rgba(230, 219, 242, 0.74), rgba(244, 220, 233, 0.76));
  box-shadow:
    0 8px 20px rgba(111, 86, 136, 0.09),
    inset 0 1px 0 rgba(255, 255, 255, 0.78);
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 650;
  transition: transform var(--theme-transition), box-shadow var(--theme-transition), background var(--theme-transition);
}

.blog-pagination a:hover {
  color: #594765;
  border-color: rgba(193, 171, 210, 0.42);
  background: linear-gradient(135deg, var(--button-hover-start), var(--button-hover-end));
  box-shadow: 0 10px 22px rgba(111, 86, 136, 0.13);
  transform: translateY(-2px);
}

.blog-pagination__current {
  color: #594765;
  border-color: rgba(193, 171, 210, 0.46);
  background: linear-gradient(135deg, #d9cbea, #efc7dc);
  box-shadow: 0 9px 22px rgba(111, 86, 136, 0.13);
  font-weight: 700;
}

.blog-pagination__status {
  min-width: 138px;
  margin-right: 6px;
  color: #75637f;
  border-color: rgba(205, 188, 221, 0.34);
  background: linear-gradient(135deg, rgba(244, 238, 249, 0.82), rgba(249, 232, 241, 0.84));
  font-size: 14px;
}

.blog-pagination__ellipsis {
  color: var(--theme-muted);
}

#footer {
  height: auto;
  margin: 24px 0 0;
  padding: 24px;
  color: var(--theme-muted);
  text-align: center;
  font-size: 13px;
}

/* 交互增强 */
#reading-progress {
  position: fixed;
  z-index: 10000;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  transform: scaleX(0);
  transform-origin: left center;
  background: linear-gradient(90deg, var(--theme-lilac), var(--theme-primary), var(--theme-accent), var(--theme-pink));
  pointer-events: none;
}

#back-to-top {
  position: fixed;
  z-index: 9999;
  right: 24px;
  bottom: 24px;
  display: grid;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 14px;
  opacity: 0;
  color: var(--button-text);
  background: linear-gradient(135deg, var(--button-start), var(--button-end));
  box-shadow: 0 10px 24px rgba(111, 86, 136, 0.16);
  transform: translateY(12px);
  transition: opacity var(--theme-transition), transform var(--theme-transition);
  pointer-events: none;
  cursor: pointer;
  place-items: center;
  font-size: 22px;
}

#back-to-top.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.click-firework {
  position: absolute;
  z-index: 10001;
  transform: translate(-50%, -50%);
  will-change: left, top, opacity;
  user-select: none;
  pointer-events: none;
}

/* 鼠标靠近卡片时的淡紫粉聚光 */
#mainContent .forFlow > .day,
#mainContent .forFlow > .post,
#sideBar #sidebar_news,
#sideBar .sidebar-block,
#sideBar #blog-calendar,
.header-about,
.blog-pagination {
  position: relative;
  isolation: isolate;
}

#mainContent .forFlow > .day::before,
#mainContent .forFlow > .post::before,
#sideBar #sidebar_news::before,
#sideBar .sidebar-block::before,
#sideBar #blog-calendar::before,
.header-about::before,
.blog-pagination::before {
  position: absolute;
  z-index: 0;
  inset: 0;
  border-radius: inherit;
  opacity: 0;
  background:
    radial-gradient(
      145px circle at var(--pointer-x, 50%) var(--pointer-y, 50%),
      rgba(249, 168, 212, 0.28),
      rgba(216, 180, 254, 0.15) 42%,
      transparent 78%
    );
  content: "";
  transition: opacity 220ms ease;
  pointer-events: none;
}

#mainContent .forFlow > .day.is-pointer-over::before,
#mainContent .forFlow > .post.is-pointer-over::before,
#sideBar #sidebar_news.is-pointer-over::before,
#sideBar .sidebar-block.is-pointer-over::before,
#sideBar #blog-calendar.is-pointer-over::before,
.header-about.is-pointer-over::before,
.blog-pagination.is-pointer-over::before {
  opacity: 1;
}

.cursor-trail {
  position: absolute;
  z-index: 10000;
  width: var(--trail-size, 5px);
  height: var(--trail-size, 5px);
  border-radius: 50%;
  background: var(--trail-color, var(--theme-pink));
  box-shadow: 0 0 8px var(--trail-color, var(--theme-pink));
  transform: translate(-50%, -50%);
  animation: cursor-trail-fade 620ms ease-out forwards;
  pointer-events: none;
}

@keyframes cursor-trail-fade {
  from {
    opacity: 0.86;
    transform: translate(-50%, -50%) scale(1);
  }
  to {
    opacity: 0;
    transform: translate(
      calc(-50% + var(--trail-x, 0px)),
      calc(-50% + var(--trail-y, 8px))
    ) scale(0.15);
  }
}

/* 响应式 */
@media (max-width: 900px) {
  #home {
    width: min(100% - 24px, 760px);
    margin: 18px auto;
  }

  #main {
    grid-template-columns: 1fr;
  }

  #blogTitle {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  #blogTitle > h1,
  #blogTitle > h2,
  .header-about {
    grid-column: 1;
  }

  #blogTitle > h1 {
    grid-row: 1;
  }

  #blogTitle > h2 {
    grid-row: 2;
  }

  .header-about {
    grid-row: 3;
  }

  #sideBar {
    display: block;
  }
}

@media (max-width: 600px) {
  #home {
    width: calc(100% - 16px);
    margin: 8px auto;
  }

  #header {
    padding: 30px 20px 0;
    border-radius: 14px;
  }

  .header-about {
    padding: 18px;
    border-radius: 14px;
  }

  .header-about__stack {
    display: block;
  }

  .header-about__stack-label {
    display: block;
    margin-bottom: 6px;
    padding: 0;
  }

  #navigator {
    overflow-x: auto;
    margin: 0 -20px;
    padding: 0 14px;
  }

  #navList {
    width: max-content;
  }

  #mainContent .forFlow > .day,
  #mainContent .forFlow > .post {
    padding: 22px 18px;
    border-radius: 14px;
  }

  #sideBar #sidebar_news,
  #sideBar .sidebar-block,
  #sideBar #blog-calendar {
    border-radius: 14px;
  }

  .blog-pagination {
    padding: 17px 12px;
  }

  .blog-pagination__status {
    width: 100%;
    margin: 0 0 2px;
    border: 0;
  }

  #back-to-top {
    right: 14px;
    bottom: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
