@charset "UTF-8";
:root {
  --black-main: #000000;
  --white-main: #f2f6f8;
  /* You can customize the theme color here */
  --primary-color: #3c7fb1;
  --highlight-color: #aaddfa;
  --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);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 75px;
}

body {
  font-family: "Segoe UI", sans-serif;
  color: var(--black-main);
  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(from var(--primary-color) r g b/0.3);
  box-sizing: border-box;
  box-shadow: inset 0 0 20px rgba(from var(--primary-color) r g b/0.8), 0 0 0 1px var(--white-main), 0 0 0 1.5px var(--black-main), 3px 3px 10px rgba(from var(--black-main) r g b/0.6);
  backdrop-filter: blur(2px);
}

.button-bar {
  background: var(--aero-grad);
  box-shadow: inset 0 0 0 1px var(--white-main), 0 0 0 0.5px var(--black-main), 3px 3px 10px rgba(from var(--black-main) 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 var(--white-main), 0 0 0 0.5px var(--black-main), 3px 3px 10px rgba(from var(--black-main) 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, var(--highlight-color) 0%, var(--highlight-color) 50%, color-mix(in srgb, var(--highlight-color), black 10%) 51%, var(--highlight-color) 80%);
  box-shadow: inset 0 0 0 2px var(--highlight-color), 0 0 3px var(--highlight-color);
  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 {
  display: grid;
  flex: 1;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2.5fr);
  gap: 20px;
}

.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: var(--black-main);
  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 var(--black-main);
  /* 3px 3px 10px rgba(from var(--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: var(--black-main);
}

.tag-none-link {
  color: var(--primary-color);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: all 0.2s ease;
}

.tag-none-link:hover {
  border-bottom-color: var(--primary-color);
}

.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 {
  position: relative;
  text-align: right;
  /* font-style: italic; */
  font-size: 20px;
  text-shadow: 0 0 10px var(--white-main), 0 0 10px var(--white-main), 0 0 10px var(--white-main), 0 0 10px var(--white-main), 0 0 10px var(--white-main), 0 0 10px var(--white-main);
}

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: var(--black-main);
  box-shadow: inset 0 0 0 1px var(--white-main);
  border-right: 1px solid var(--black-main);
  text-shadow: 0 1px 0 var(--white-main);
}

.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 var(--black-main), 0 0 0 1.5px var(--white-main);
}

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

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

.post-title {
  position: relative;
  font-size: 24px;
  text-shadow: 0 0 10px var(--white-main), 0 0 10px var(--white-main), 0 0 10px var(--white-main), 0 0 10px var(--white-main), 0 0 10px var(--white-main), 0 0 10px var(--white-main);
}

.post-meta {
  position: relative;
  text-shadow: 0 0 10px var(--white-main), 0 0 10px var(--white-main), 0 0 10px var(--white-main), 0 0 10px var(--white-main), 0 0 10px var(--white-main), 0 0 10px var(--white-main);
  padding: 6px 0 12px 0;
  font-size: 13.5px;
}

/* 首页文章摘要背景优化 */
.post-excerpt {
  position: relative;
  padding: 14px 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94) 0%, rgba(240, 246, 250, 0.88) 100%);
  backdrop-filter: blur(6px);
  border-radius: 5px;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.06), 0 0 0 1px rgba(255, 255, 255, 0.8), 0 0 0 1.5px rgba(0, 0, 0, 0.12), 0 2px 6px rgba(0, 0, 0, 0.05);
  line-height: 1.6;
}

/* 正文内容区域背景优化：通透微光玻璃内衬，契合 Frutiger Aero 风格 */
.post-content {
  position: relative;
  padding: 24px 28px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, rgba(242, 247, 251, 0.91) 100%);
  backdrop-filter: blur(8px);
  border-radius: 6px;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(255, 255, 255, 0.9), 0 0 0 1.5px rgba(0, 0, 0, 0.15), 0 3px 12px rgba(0, 0, 0, 0.08);
}

.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: var(--black-main);
  text-shadow: 0 1px 0 var(--white-main);
  transition: all 0.2s;
  overflow: hidden;
}

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

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

.read-more {
  position: relative;
  z-index: 2;
}

.article-title {
  display: block;
  padding: 16px 0 6px 0;
  font-size: 28px;
  line-height: 1.3;
}

/* ── 侧边栏 TOC ─────────────────────────────────────── */
#pjax-toc {
  position: sticky;
  top: 310px;
  z-index: 3;
}

.sidebar-toc-widget {
  margin-top: 14px;
  border-radius: 6px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(8px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.8), 0 0 0 0.5px var(--black-main), 0 2px 8px rgba(0, 0, 0, 0.1);
  max-height: calc(100vh - 330px);
  display: flex;
  flex-direction: column;
}

.sidebar-toc-header {
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 700;
  color: var(--black-main);
  background: var(--aero-grad);
  border-bottom: 1px solid rgba(0, 0, 0, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  gap: 6px;
  user-select: none;
}

.sidebar-toc-content {
  padding: 10px 12px;
  max-height: 55vh;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(60, 127, 177, 0.4) transparent;
}

.sidebar-toc-content::-webkit-scrollbar {
  width: 4px;
}

.sidebar-toc-content::-webkit-scrollbar-thumb {
  background: rgba(60, 127, 177, 0.4);
  border-radius: 2px;
}

.post-toc {
  padding-left: 0;
  margin: 0;
  list-style: none;
}

.post-toc ol {
  padding-left: 14px;
  margin: 2px 0;
  list-style: none;
}

.post-toc-item {
  margin: 2px 0;
  line-height: 1.5;
  font-size: 12.5px;
}

.post-toc-link {
  color: var(--black-main);
  text-decoration: none;
  display: block;
  padding: 3px 8px;
  border-radius: 4px;
  transition: all 0.18s ease;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.post-toc-link:hover,
.post-toc-link.active {
  background: var(--highlight-color);
  color: #0b3b60;
  text-shadow: 0 0 2px white;
  box-shadow: inset 0 0 0 1px white, 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* 不蒜子阅读量样式 */
.busuanzi-wrap {
  opacity: 0.75;
  font-size: 12px;
}

/* 上一篇/下一篇导航卡片 - 独立样式，不继承 .button */
.post-nav {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  margin-top: 25px;
  padding-top: 16px;
  border-top: 1px dashed rgba(255, 255, 255, 0.6);
}

.post-nav-item {
  flex: 1;
  min-width: 0;
}

/* 有文章时：通透毛玻璃悬停卡片 */
a.post-nav-link {
  display: flex;
  flex-direction: column;
  padding: 12px 16px;
  text-decoration: none;
  color: var(--black-main);
  border-radius: 6px;
  height: 100%;
  box-sizing: border-box;
  background: rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(4px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.6), 0 0 0 1.5px rgba(0, 0, 0, 0.15), 0 2px 6px rgba(0, 0, 0, 0.08);
  transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

a.post-nav-link:hover {
  background: rgba(170, 221, 250, 0.5);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 0 0 1px rgba(255, 255, 255, 0.8), 0 0 0 1.5px rgba(60, 127, 177, 0.4), 0 0 10px rgba(170, 221, 250, 0.5), 0 3px 8px rgba(0, 0, 0, 0.1);
  transform: translateY(-1px);
}

a.post-nav-link:active {
  transform: translateY(0);
  background: rgba(170, 221, 250, 0.65);
}

/* 无文章时：半透明禁用占位 */
.post-nav-link--disabled {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  border-radius: 6px;
  height: 100%;
  box-sizing: border-box;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.4);
  cursor: default;
  opacity: 0.55;
}

.post-nav-label {
  font-size: 12px;
  opacity: 0.8;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

.post-nav-next .post-nav-label {
  justify-content: flex-end;
}

.post-nav-next .post-nav-title {
  text-align: right;
}

.post-nav-title {
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #0e3e63;
}

.avatar-widget {
  position: sticky;
  z-index: 4;
  top: -5px;
  background: none;
  border: none;
  box-shadow: none;
  width: 20%;
}

.avatar-bg {
  background: var(--aero-grad);
  backdrop-filter: blur(3px);
  margin-top: -30px;
  margin-left: -10px;
  box-sizing: border-box;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  box-shadow: 0 0 0 1px var(--white-main), 0 0 0 1.5px var(--black-main), 3px 3px 10px rgba(from var(--black-main) r g b/0.6);
}

.profile-img {
  width: 110px;
  box-sizing: border-box;
  position: relative;
  top: 5px;
  left: 5px;
  border-radius: 50%;
  border: 1px solid var(--white-main);
}

.profile-link {
  position: relative;
  display: inline-flex;
  height: 40px;
  width: 40px;
  padding: 8px;
  margin: 6px;
  border-radius: 20px;
}

.profile-icon {
  position: relative;
  width: 100%;
  z-index: 2;
}

.profile-link::after {
  border-radius: 20px;
}

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

.profile {
  padding-top: 10px;
  padding-left: 100px;
  height: 80px;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  font-size: larger;
}

.about {
  margin-top: 10px;
  padding: 10px;
}

.profile-widget {
  position: relative;
  margin-top: -90px;
  text-shadow: 0 0 10px var(--white-main), 0 0 10px var(--white-main), 0 0 10px var(--white-main), 0 0 10px var(--white-main), 0 0 10px var(--white-main), 0 0 10px var(--white-main);
  text-align: center;
}

.music-widget {
  position: sticky;
  top: 140px;
  background: var(--white-main);
  box-sizing: border-box;
  box-shadow: inset 0 0 30px color-mix(in srgb, var(--primary-color), white 50%), 0 0 0 0.5px var(--black-main), 3px 3px 10px rgba(from var(--black-main) r g b/0.6);
  border-radius: 20% 80% 20% 80%/50% 30% 50% 40%;
  padding: 15px;
}

.music-widget::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(from var(--white-main) r g b/0.8) 0%, rgba(from var(--black-main) r g b/0.1) 100%);
  border-radius: 20% 80% 20% 80%/50% 30% 50% 30%;
  pointer-events: none;
}

.player-content {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.album-art {
  width: 60px;
  height: 60px;
  flex-shrink: 0;
  margin-left: 20px;
  margin-bottom: 10px;
  position: relative;
  background-size: cover;
  background-position: center;
}

.song-info {
  width: 100%;
  display: flex;
  align-items: center;
  margin-bottom: 10px;
  min-width: 0;
}

.info-bg {
  background-color: var(--primary-color);
  box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.5), 0 0 0 0.5px var(--black-main), 0 0 0 1.5px var(--white-main);
  border-radius: 3px;
}

.title-bar {
  flex: 1;
  width: 0;
  min-width: 0;
  overflow: hidden;
  margin-left: 10px;
  border-radius: 10px;
}

.song-title {
  font-size: 14px;
  color: var(--white-main);
  text-shadow: 0 3px 3px var(--black-main);
  display: inline-block;
  white-space: nowrap;
  animation: marquee 8s linear infinite;
}

@keyframes marquee {
  0% {
    transform: translateX(0%);
  }
  20% {
    transform: translateX(0%);
  }
  80% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(-100%);
  }
}
.progress-container {
  width: 90%;
  height: 6px;
  border-radius: 3px;
  margin-bottom: 12px;
  margin-left: 16px;
  box-shadow: inset 0 2px 3px rgba(0, 0, 0, 0.5), 0 0 0 0.5px var(--black-main), 0 0 0 1.5px var(--white-main);
}

.progress-bar {
  width: 0%;
  height: 100%;
  background: linear-gradient(to bottom, var(--secondary-color) 0%, var(--primary-color) 50%, var(--secondary-color) 100%);
  border-radius: 3px;
  transition: width 0.1s linear;
}

.controls {
  position: relative;
  margin-left: -60px;
  margin-bottom: -20px;
  display: flex;
  gap: 15px;
  align-items: center;
}

.ctrl-btn {
  border-radius: 50%;
  width: 35px;
  height: 35px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.1s;
  overflow: hidden;
}

.ctrl-btn span {
  position: relative;
  z-index: 2;
}

.play-btn {
  width: 50px;
  height: 50px;
  border-radius: 70% 30% 70% 30%/70% 30% 70% 30%;
  font-size: 18px;
  overflow: hidden;
}

.play-btn span {
  position: relative;
  z-index: 2;
}

.ctrl-btn:active {
  top: 1px;
}

.play-btn:active {
  top: 1px;
}

.ctrl-btn::after {
  border-radius: inherit;
}

.play-btn::after {
  border-radius: inherit;
}

.friend-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.friend-card {
  position: relative;
  box-sizing: border-box;
  padding: 20px 16px 16px;
  border-radius: 3px;
  text-align: center;
  background: rgba(from var(--primary-color) r g b/0.2);
  box-shadow: inset 0 0 20px rgba(from var(--primary-color) r g b/0.5), 0 0 0 1px var(--white-main), 0 0 0 1.5px var(--black-main), 3px 3px 10px rgba(from var(--black-main) r g b/0.6);
  backdrop-filter: blur(3px);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.friend-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(to top, var(--highlight-color) 0%, var(--highlight-color) 50%, color-mix(in srgb, var(--highlight-color), black 10%) 51%, var(--highlight-color) 80%);
  box-shadow: inset 0 0 0 2px var(--highlight-color), 0 0 5px var(--highlight-color);
  transition: opacity 0.2s;
  opacity: 0;
  pointer-events: none;
}
.friend-card:hover {
  transform: translateY(-2px);
}
.friend-card:hover::after {
  opacity: 1;
}
.friend-card:active {
  top: 1px;
}
.friend-card:active::after {
  opacity: 1;
  box-shadow: inset 0 5px 5px rgba(0, 0, 0, 0.4);
}

.friend-card a {
  position: relative;
  z-index: 1;
  text-decoration: none;
  display: block;
}

.friend-card img {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--aero-grad);
  box-shadow: 0 0 0 1px var(--white-main), 0 0 0 1.5px var(--black-main), 3px 3px 10px rgba(from var(--black-main) r g b/0.6);
  padding: 3px;
  transition: transform 0.3s ease;
}

.friend-card:hover img {
  transform: scale(1.05);
}

.friend-card .name {
  display: block;
  margin-top: 12px;
  font-weight: bold;
  font-size: 16px;
  color: var(--black-main);
  text-decoration: none;
  text-shadow: 0 0 10px var(--white-main), 0 0 10px var(--white-main), 0 0 10px var(--white-main), 0 0 10px var(--white-main), 0 0 10px var(--white-main), 0 0 10px var(--white-main);
}

.friend-card .desc {
  font-size: 13px;
  color: var(--black-main);
  margin-top: 6px;
  text-shadow: 0 0 10px var(--white-main), 0 0 10px var(--white-main), 0 0 10px var(--white-main), 0 0 10px var(--white-main), 0 0 10px var(--white-main), 0 0 10px var(--white-main);
}

@media (max-width: 768px) {
  .friend-list {
    grid-template-columns: 1fr;
  }
  .friend-card {
    display: flex;
    align-items: center;
    text-align: left;
    padding: 12px 16px;
  }
  .friend-card a {
    display: flex;
    align-items: center;
    width: 100%;
  }
  .friend-card img {
    width: 48px;
    height: 48px;
    margin-right: 12px;
    flex-shrink: 0;
  }
  .friend-card .info {
    display: flex;
    flex-direction: column;
    flex: 1;
  }
  .friend-card .name {
    margin-top: 0;
    font-size: 14px;
  }
  .friend-card .desc {
    margin-top: 2px;
    font-size: 12px;
  }
}
.year-group {
  padding: 10px;
  border-radius: 3px;
  margin: 20px 0;
}

.year-header {
  font-size: 24px;
  text-shadow: 0 0 10px var(--white-main), 0 0 10px var(--white-main), 0 0 10px var(--white-main), 0 0 10px var(--white-main), 0 0 10px var(--white-main), 0 0 10px var(--white-main);
  padding: 10px 0;
}

.archive-list {
  padding: 10px;
  background-color: var(--white-main);
  box-shadow: 0 0 0 0.5px var(--black-main), 0 0 0 1.5px var(--white-main);
}

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

.archive-title {
  margin-left: 5px;
  color: var(--primary-color);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: all 0.2s;
}

.archive-title:hover {
  border-bottom-color: var(--primary-color);
}

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

.copyright {
  width: 100%;
  align-items: center;
  text-align: center;
  font-size: 13px;
  line-height: 1.6;
  text-shadow: 0 0 10px var(--white-main), 0 0 10px var(--white-main), 0 0 10px var(--white-main), 0 0 10px var(--white-main), 0 0 10px var(--white-main), 0 0 10px var(--white-main);
}

.copyright p {
  margin: 4px 0;
}

.copyright a {
  color: var(--black-main);
  text-decoration: none;
  transition: color 0.2s ease;
}

.copyright a:hover {
  color: var(--primary-color);
  text-shadow: 0 0 4px var(--highlight-color);
}

.busuanzi-site {
  font-size: 12px;
  opacity: 0.7;
  margin: 2px 0 0 0;
}

.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: var(--primary-color);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: all 0.2s ease;
}

.post-content a:hover {
  border-bottom-color: var(--primary-color);
}

.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: var(--primary-color);
  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;
  }
  .mobile-menu-btn {
    position: fixed;
    top: 100px;
    left: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    font-size: 18px;
    cursor: pointer;
    border-radius: 0 15px 15px 0;
    overflow: hidden;
    margin: 10px 0;
  }
  .mobile-menu-btn::after {
    border-radius: inherit;
  }
  .menu-icon {
    z-index: 12;
  }
  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);
  }
  .sidebar-mask {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
  }
  .sidebar-mask.open {
    opacity: 1;
    visibility: visible;
  }
  .post-item {
    flex-direction: column;
    gap: 0;
  }
  .post-cover {
    width: 100%;
  }
  .post-content {
    padding: 16px 14px;
  }
  .post-nav {
    flex-direction: column;
    gap: 10px;
  }
  .post-nav-next .post-nav-label {
    justify-content: flex-start;
  }
  .post-nav-next .post-nav-title {
    text-align: left;
  }
  .search-dialog {
    max-width: 95vw;
  }
  #pjax-toc {
    position: static;
  }
  .sidebar-toc-widget {
    position: static;
    max-height: none;
    overflow: visible;
  }
  .sidebar-toc-content {
    max-height: 200px;
  }
}
.post-content .hbe-input-label-default::before {
  background: var(--primary-color);
}
.post-content .hbe-input-label-default::after {
  background: var(--primary-color);
}
.post-content .hbe-input-label-content-default {
  color: var(--white-main);
  font-family: "Segoe UI", sans-serif;
}
.post-content .hbe-input-field-default:focus + .hbe-input-label-default .hbe-input-label-content-default,
.post-content .hbe-input--filled .hbe-input-label-default .hbe-input-label-content-default {
  color: var(--primary-color);
}
.post-content .hbe-input-field-default {
  color: var(--black-main);
  font-family: "Segoe UI", sans-serif;
}
.post-content .hbe-button {
  position: relative;
  border: none;
  outline: none;
  cursor: pointer;
  background: var(--aero-grad);
  box-shadow: inset 0 0 0 1px var(--white-main), 0 0 0 0.5px var(--black-main), 3px 3px 10px rgba(from var(--black-main) r g b/0.6);
  box-sizing: border-box;
  border-radius: 15px;
  font-family: "Segoe UI", sans-serif;
  font-size: 14px;
  font-weight: normal;
  color: var(--black-main);
  text-shadow: 0 1px 0 var(--white-main);
  padding: 0 24px;
  width: auto;
  height: 30px;
  line-height: 30px;
  text-indent: 0;
  text-align: center;
  margin: 1em auto;
  display: inline-block;
}
.post-content .hbe-button::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: inherit;
  background: linear-gradient(to top, var(--highlight-color) 0%, var(--highlight-color) 50%, color-mix(in srgb, var(--highlight-color), black 10%) 51%, var(--highlight-color) 80%);
  box-shadow: inset 0 0 0 2px var(--highlight-color), 0 0 3px var(--highlight-color);
  transition: opacity 0.2s;
  opacity: 0;
  pointer-events: none;
}
.post-content .hbe-button:hover, .post-content .hbe-button:focus {
  background: var(--aero-grad);
  box-shadow: inset 0 0 0 1px var(--white-main), 0 0 0 0.5px var(--black-main), 3px 3px 10px rgba(from var(--black-main) r g b/0.6);
  outline: none;
}
.post-content .hbe-button:hover::after, .post-content .hbe-button:focus::after {
  opacity: 1;
}
.post-content .hbe-button:active {
  top: 1px;
}
.post-content .hbe-button:active::after {
  opacity: 1;
  box-shadow: inset 0 5px 5px rgba(0, 0, 0, 0.4);
}
.post-content .hbe-button[aria-busy=true]::after {
  content: "";
  display: inline-block;
  margin-left: 0.5em;
  width: 0.9em;
  height: 0.9em;
  vertical-align: -0.15em;
  border: 2px solid var(--black-main);
  border-right-color: transparent;
  border-radius: 50%;
  background: none;
  box-shadow: none;
  position: static;
  animation: hbe-spin 0.7s linear infinite;
}
.post-content .hbe-button[disabled], .post-content .hbe-button[aria-busy=true] {
  cursor: progress;
  opacity: 0.7;
}
.post-content .hbe-error {
  font-family: "Segoe UI", sans-serif;
  text-shadow: 0 0 10px var(--white-main), 0 0 10px var(--white-main), 0 0 10px var(--white-main), 0 0 10px var(--white-main), 0 0 10px var(--white-main), 0 0 10px var(--white-main);
}
.post-content .hbe-error:not(:empty) {
  background: transparent;
  color: #b00020;
}

/* Frutiger Aero Code Block & Copy Button */
.highlight-wrap {
  position: relative;
  margin: 1.5em 0;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px var(--white-main), 0 0 0 0.5px var(--black-main), 0 3px 10px rgba(0, 0, 0, 0.12);
  background: #fafafa;
}

.code-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 30px;
  padding: 0 12px;
  background: var(--aero-grad);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 1px 2px rgba(0, 0, 0, 0.08);
  border-bottom: 1px solid rgba(0, 0, 0, 0.15);
  user-select: none;
}

.code-header-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.code-dots {
  display: flex;
  gap: 5px;
}

.code-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.8), 0 0 1px rgba(0, 0, 0, 0.3);
}

.code-dot-red {
  background: radial-gradient(circle at 3px 3px, #ff9999, #e0443e);
}

.code-dot-yellow {
  background: radial-gradient(circle at 3px 3px, #ffeaa7, #dea123);
}

.code-dot-green {
  background: radial-gradient(circle at 3px 3px, #a8e6cf, #1abc9c);
}

.code-lang {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #31526d;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.8);
  font-family: "Segoe UI", sans-serif;
}

.code-copy-btn {
  border: none;
  outline: none;
  cursor: pointer;
  font-family: "Segoe UI", sans-serif;
  font-size: 12px;
  padding: 2px 10px;
  height: 22px;
  border-radius: 11px;
  background: var(--aero-grad);
  color: var(--black-main);
  box-shadow: inset 0 0 0 1px var(--white-main), 0 0 0 0.5px var(--black-main), 0 1px 3px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  gap: 4px;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.code-copy-btn span {
  position: relative;
  z-index: 2;
}

.code-copy-btn:hover {
  background: var(--highlight-color);
  box-shadow: inset 0 0 0 1px #fff, 0 0 4px var(--highlight-color);
}

.code-copy-btn:active {
  top: 1px;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

.code-copy-btn.copied {
  background: #d4edda;
  color: #155724;
  border-color: #c3e6cb;
  box-shadow: inset 0 0 0 1px #fff, 0 0 4px #28a745;
}

/* 覆盖原始 pre 与 highlight 的外边距以融入容器 */
.highlight-wrap .highlight,
.highlight-wrap pre {
  margin: 0 !important;
  border-radius: 0 0 6px 6px !important;
  background-color: #fcfcfc !important;
}

/* Frutiger Aero Local Search Dialog */
.search-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
}

.search-modal.active {
  display: flex;
}

.search-mask {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 25, 40, 0.45);
  backdrop-filter: blur(4px);
  transition: opacity 0.25s ease;
}

.search-dialog {
  position: relative;
  width: 100%;
  max-width: 620px;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  border-radius: 8px;
  overflow: hidden;
  z-index: 2;
  animation: searchPop 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes searchPop {
  from {
    opacity: 0;
    transform: scale(0.96) translateY(-10px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}
.search-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 16px;
  background: var(--aero-grad);
  border-bottom: 1px solid rgba(0, 0, 0, 0.15);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.search-header-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--black-main);
  display: flex;
  align-items: center;
  gap: 6px;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.8);
}

.search-close-btn {
  border: none;
  background: none;
  font-size: 18px;
  cursor: pointer;
  color: var(--black-main);
  padding: 2px 6px;
  border-radius: 4px;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.search-close-btn:hover {
  background: rgba(235, 87, 87, 0.2);
  color: #c0392b;
}

.search-input-wrap {
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.7);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  position: relative;
  display: flex;
  align-items: center;
}

.search-input-icon {
  position: absolute;
  left: 28px;
  font-size: 16px;
  color: var(--primary-color);
}

.search-input {
  width: 100%;
  height: 38px;
  padding: 0 16px 0 38px;
  border-radius: 19px;
  border: 1px solid rgba(0, 0, 0, 0.25);
  background: #ffffff;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(255, 255, 255, 0.8);
  font-family: "Segoe UI", sans-serif;
  font-size: 14px;
  outline: none;
  box-sizing: border-box;
  transition: all 0.2s ease;
}

.search-input:focus {
  border-color: var(--primary-color);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1), 0 0 8px rgba(60, 127, 177, 0.5);
}

.search-results-wrap {
  flex: 1;
  overflow-y: auto;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.9);
  max-height: calc(80vh - 160px);
}

.search-empty {
  text-align: center;
  padding: 30px 10px;
  color: #666;
  font-size: 14px;
}

.search-result-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.search-result-item {
  padding: 10px 14px;
  margin-bottom: 8px;
  border-radius: 6px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  transition: all 0.2s ease;
}

.search-result-item:hover {
  background: #ffffff;
  border-color: var(--primary-color);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.8), 0 0 8px rgba(60, 127, 177, 0.3);
  transform: translateY(-1px);
}

.search-result-title {
  font-size: 15px;
  font-weight: 700;
  color: #124b75;
  text-decoration: none;
  display: block;
  margin-bottom: 4px;
}

.search-result-title:hover {
  color: var(--primary-color);
}

.search-result-content {
  font-size: 12.5px;
  color: #4a5568;
  line-height: 1.5;
  word-break: break-all;
}

.search-result-item mark {
  background: #fff3cd;
  color: #856404;
  padding: 1px 3px;
  border-radius: 2px;
  font-weight: 600;
}

.search-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 16px;
  background: var(--aero-grad);
  font-size: 12px;
  color: #555;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.search-key-hints kbd {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid #ccc;
  border-radius: 3px;
  padding: 1px 4px;
  font-size: 10px;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.2);
}