:root {
  --black-main: #000000;
  --white-main: #ffffff;
  /* You can customize the theme color here */
  --primary-color: #3c7fb1;
  --secondary-color: #d8e1e7;
  --aero-grad: linear-gradient(to bottom,
  color-mix(in srgb, var(--secondary-color), white 60%) 0%,
  var(--secondary-color) 50%,
  color-mix(in srgb, var(--secondary-color), black 10%) 51%,
  var(--secondary-color) 100%);
  /* You can customize the background image here */
  --bg-image: url(/image/bg.jpg);
}

body {
  font-family: "Segoe UI", sans-serif;
  color: #000000;
  margin: 0 auto;
  background-image: var(--bg-image);
  background-size: cover;
  background-attachment: fixed;
}

.container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  max-width: 960px;
  margin: auto;
  padding: 0 20px;
}

.card {
  background: rgba(60, 127, 177, 0.3);
  box-sizing: border-box;
  box-shadow: inset 0 0 20px rgba(60, 127, 177, 0.8), 0 0 0 1px #ffffff, 0 0 0 1.5px #000000, 3px 3px 10px rgba(0, 0, 0, 0.6);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
}

.button-bar {
  background: var(--aero-grad);
  box-shadow: inset 0 0 0 1px #ffffff, 0 0 0 0.5px #000000, 3px 3px 10px rgba(from #000000 r g b/0.6);
  box-sizing: border-box;
  overflow: hidden;
}

.button,
.page-number::before,
.extend::before {
  display: block;
  position: relative;
  border: none;
  outline: none;
  cursor: pointer;
  background: var(--aero-grad);
  box-shadow: inset 0 0 0 1px #ffffff, 0 0 0 0.5px #000000, 3px 3px 10px rgba(from #000000 r g b/0.6);
  box-sizing: border-box;
}

.button::after,
.page-number::after,
.extend::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, #aaddfa 0%, #aaddfa 50%, color-mix(in srgb, #aaddfa, black 10%) 51%, #aaddfa 80%);
  box-shadow: inset 0 0 0 2px #aaddfa, 0 0 3px #aaddfa;
  transition: all 0.2s;
  opacity: 0;
}

.button:hover::after,
.page-number:not(.current):hover::after,
.extend:hover::after {
  opacity: 1;
}

.button:active::after,
.button.active,
.page-number:not(.current):active:after,
.extend:active::after {
  opacity: 1;
  box-shadow: inset 0 5px 5px rgba(0, 0, 0, 0.4);
}

.main-layout {
  flex: 1;
}

.mobile-menu-btn, .sidebar-mask {
  display: none;
}

.widget {
  width: 100%;
  margin-top: 20px;
  border-radius: 3px;
}

.page-nav {
  margin-top: 30px;
  justify-content: right;
}

.page-number,
.extend {
  position: relative;
  z-index: 1;
  height: 30px;
  width: 30px;
  border-radius: 50%;
  text-decoration: none;
  color: #000000;
  margin: 0 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.page-number::before,
.extend::before {
  content: "";
  position: absolute;
  z-index: -2;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: inherit;
}

.page-number::after,
.extend::after {
  position: absolute;
  z-index: -1;
  border-radius: inherit;
}

.current {
  top: 1px;
}

.current::before {
  box-shadow: inset 0 5px 5px rgba(0, 0, 0, 0.4), 0 0 0 0.5px #000000;
  /* 3px 3px 10px rgba(from $black-main r g b / 0.6); */
}

.page-nav .space {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  margin: 0 5px;
  color: #000000;
}

.tag-none-link {
  color: #3c7fb1;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: all 0.2s ease;
}

.tag-none-link:hover {
  border-bottom-color: #3c7fb1;
}

@font-face {
  font-family: "pixelFont";
  src: url("/font/pixel.woff") format("woff");
}
.header {
  position: sticky;
  top: 0;
  z-index: 3;
}

header {
  width: 100%;
  height: 80px;
  padding-right: 60px;
  border-radius: 0 0 0 15px;
  overflow: hidden;
  position: relative;
  top: 0;
}

.blog-title {
  font-family: pixelFont;
  position: relative;
  text-align: right;
  font-style: italic;
  font-size: 22px;
  text-shadow: 0 0 10px #ffffff, 0 0 10px #ffffff, 0 0 10px #ffffff, 0 0 10px #ffffff, 0 0 10px #ffffff, 0 0 10px #ffffff;
}

nav {
  position: relative;
  border-top: none;
  border-radius: 15px;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 30px;
  margin-left: 360px;
  top: -15px;
  left: 12px;
}

.nav-links {
  list-style: none;
  padding: 0;
  display: flex;
  box-sizing: border-box;
  height: 100%;
}

.nav-links li {
  display: flex;
  box-sizing: border-box;
  height: 100%;
}

.nav-links li a {
  position: relative;
  box-sizing: border-box;
  height: 100%;
  gap: 8px;
  font-size: 14px;
  line-height: 12px;
  text-decoration: none;
  padding: 0 20px;
  color: #000000;
  box-shadow: inset 0 0 0 1px #ffffff;
  border-right: 1px solid #000000;
  text-shadow: 0 1px 0 #ffffff;
}

.nav-text {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 5px;
}

.icon {
  width: 24px;
}

.link-home {
  border-left: 1px solid #333;
}

.post-list {
  margin-top: 20px;
}

.post-item {
  display: flex;
  align-items: stretch;
  gap: 10px;
  padding: 10px;
  border-radius: 3px;
  position: relative;
  margin-bottom: 20px;
}

.post-cover {
  width: 40%;
  flex-shrink: 0;
  padding: 10px 0;
}

.post-cover img {
  width: 100%;
  box-shadow: 0 0 0 0.5px #000000, 0 0 0 1.5px #ffffff;
}

.post-info {
  display: flex;
  flex: 1;
  flex-direction: column;
}

.post-full {
  margin-top: 20px;
  padding: 10px;
  border-radius: 3px;
  position: relative;
  margin-bottom: 20px;
}

.post-title {
  position: relative;
  font-size: 24px;
  text-shadow: 0 0 10px #ffffff, 0 0 10px #ffffff, 0 0 10px #ffffff, 0 0 10px #ffffff, 0 0 10px #ffffff, 0 0 10px #ffffff;
}

.post-meta {
  position: relative;
  text-shadow: 0 0 10px #ffffff, 0 0 10px #ffffff, 0 0 10px #ffffff, 0 0 10px #ffffff, 0 0 10px #ffffff, 0 0 10px #ffffff;
  padding: 5px 0;
}

.post-excerpt {
  position: relative;
  padding: 10px;
  background-color: #ffffff;
  box-shadow: 0 0 0 0.5px #000000, 0 0 0 1.5px #ffffff;
}

.post-content {
  position: relative;
  padding: 10px;
  background-color: #ffffff;
  box-shadow: 0 0 0 0.5px #000000, 0 0 0 1.5px #ffffff;
}

.rm-link {
  position: relative;
  width: 120px;
  height: 30px;
  display: flex;
  align-self: flex-end;
  margin-top: auto;
  align-items: center;
  justify-content: center;
  border-radius: 15px;
  margin-bottom: -15px;
  text-decoration: none;
  color: #000000;
  text-shadow: 0 1px 0 #ffffff;
  transition: all 0.2s;
  overflow: hidden;
}

.rm-link::after {
  border-radius: inherit;
}

.rm-link:active {
  top: 1px;
}

.read-more {
  font-size: 15px;
  position: relative;
  z-index: 2;
}

.article-title {
  display: block;
  padding: 20px 0;
  font-size: 30px;
}

.year-group {
  padding: 10px;
  border-radius: 3px;
  margin: 20px 0;
}

.year-header {
  font-size: 24px;
  text-shadow: 0 0 10px #ffffff, 0 0 10px #ffffff, 0 0 10px #ffffff, 0 0 10px #ffffff, 0 0 10px #ffffff, 0 0 10px #ffffff;
  padding: 10px 0;
}

.archive-list {
  padding: 10px;
  background-color: #ffffff;
  box-shadow: 0 0 0 0.5px #000000, 0 0 0 1.5px #ffffff;
}

.archive-item {
  padding: 5px 0;
  width: 100%;
}

.archive-title {
  margin-left: 5px;
  color: #3c7fb1;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: all 0.2s;
}

.archive-title:hover {
  border-bottom-color: #3c7fb1;
}

footer {
  border-radius: 15px 15px 0 0;
  margin-bottom: 0;
  height: 80px;
  display: flex;
}

.copyright {
  width: 100%;
  align-items: center;
  text-align: center;
  text-shadow: 0 0 10px #ffffff, 0 0 10px #ffffff, 0 0 10px #ffffff, 0 0 10px #ffffff, 0 0 10px #ffffff, 0 0 10px #ffffff;
}

.post-content h1,
.post-content h2,
.post-content h3,
.post-content h4,
.post-content h5,
.post-content h6 {
  margin-top: 1.5em;
  margin-bottom: 0.8em;
  font-weight: 700;
  line-height: 1.3;
}

.post-content p {
  margin-bottom: 1.5em;
  text-align: justify;
}

.post-content a {
  color: #3c7fb1;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: all 0.2s ease;
}

.post-content a:hover {
  border-bottom-color: #3c7fb1;
}

.post-content strong {
  font-weight: 700;
  color: #000;
}

.post-content em {
  font-style: italic;
}

.post-content del {
  color: #999;
  text-decoration: line-through;
}

.post-content ul,
.post-content ol {
  margin-bottom: 1.5em;
  padding-left: 2em;
}

.post-content li {
  margin-bottom: 0.5em;
  line-height: 1.8;
}

.post-content li ul,
.post-content li ol {
  margin-top: 0.5em;
  margin-bottom: 0;
}

.post-content blockquote {
  margin: 0 0 1.5em 0;
  padding: 10px 20px;
  border-left: 4px solid #dfe2e5;
  background-color: #f8f9fa;
  color: #6a737d;
}

.post-content blockquote p {
  margin: 0;
}

.post-content img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 1.5em auto;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.post-content table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.5em;
  display: block;
  overflow-x: auto;
}

.post-content th,
.post-content td {
  border: 1px solid #dfe2e5;
  padding: 6px 13px;
}

.post-content th {
  background-color: #f6f8fa;
  font-weight: 700;
}

.post-content tr:nth-child(2n) {
  background-color: #f8f9fa;
}

.post-content :not(pre) > code {
  background-color: rgba(27, 31, 35, 0.05);
  color: #3c7fb1;
  padding: 0.2em 0.4em;
  border-radius: 3px;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, Courier, monospace;
  font-size: 85%;
}

.post-content pre,
.post-content .highlight {
  background-color: #fafafa;
  padding: 5px;
  margin: 0;
  border-radius: 3px;
  overflow-x: auto;
  line-height: 1.45;
  font-family: Consolas, monospace;
  font-size: 14px;
}

.post-content .highlight table {
  margin: 0;
  border: none;
  display: table;
}

.post-content .highlight td,
.post-content .highlight th {
  border: none;
  padding: 0;
}

.post-content .highlight .gutter {
  color: #999;
  text-align: right;
  border-right: 1px solid #eee;
}

.markdown-body .mjx-chtml {
  outline: 0;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
}

@media screen and (max-width: 768px) {
  * {
    -webkit-tap-highlight-color: transparent;
  }
  .main-layout {
    display: block;
  }
  header {
    border-radius: 0;
  }
  nav {
    margin-left: 0;
    left: 0;
  }
  .nav-links li a {
    padding: 0 10px;
  }
  aside {
    position: fixed;
    top: 0;
    left: 0;
    width: 260px;
    height: 100vh;
    background-image: var(--bg-image);
    background-size: cover;
    z-index: 100;
    padding: 20px;
    overflow-y: auto;
    box-shadow: 2px 0 8px rgba(0, 0, 0, 0.15);
    transform: translateX(-100%);
    transition: transform 0.3s ease-in-out;
  }
  aside.open {
    transform: translateX(0);
  }
  .post-item {
    flex-direction: column;
    gap: 0;
  }
  .post-cover {
    width: 100%;
  }
}