/*加重描述strong*/
.markdown-section strong {
    color: rgb(239, 112, 96);
  }
  
  .app-nav {
    position: fixed;
    margin: 0;
    /*padding: 10px 50px 10px 0;*/
    padding: 10px 0 10px 0;
    /*上、右、下、左*/
    width: calc(100% - 325px);
    /* background-color: #fff; */
    height: 55px;
    border-bottom: 1px solid #eee;
  }
  
  /*.github-corner{
        position: absolute;
        z-index: 999999;
        top: 0;
      }*/
  
  .markdown-section code {
    border-radius: 2px;
    font-family: "Helvetica Neue", Helvetica, "Hiragino Sans GB",
      "Microsoft YaHei", Arial, sans-serif;
    font-size: 16px !important;
    margin: 0 2px;
    padding: 3px 5px;
    white-space: nowrap;
    border: 1px solid #282c34;
    color: rgb(184, 101, 208);
  }
  
  .markdown-section > div > img,
  .markdown-section pre {
    box-shadow: 2px 2px 20px 6px rgb(255, 255, 255) !important;
  }
  
  .markdown-section a:not(:hover) {
    text-decoration: none;
  }
  
  /*侧边栏*/
  .sidebar {
    padding-top: 6px;
  }
  
  aside.sidebar ul li {
    margin: 0;
    position: relative;
  }
  
  aside.sidebar ul li ul {
    margin: 6px 0;
  }
  
  aside.sidebar ul li p {
    padding-left: 22px;
    font-size: 18px;
    font-weight: normal;
  }
  
  aside.sidebar ul li a {
    line-height: 35px;
    font-size: 14px;
    padding: 3px 0 3px 22px;
  }
  
  aside.sidebar ul li.active > a {
    font-size: 16px !important;
  }
  
  aside.sidebar ul li.active > a:before {
    content: "" !important;
    position: absolute !important;
    margin: 0 !important;
    width: 10px !important;
    height: 10px !important;
    top: 15px !important;
    left: 0px !important;
    border-radius: 50% !important;
    background-color: #fed24a !important;
    box-shadow: 0 0 0 3px rgba(254, 210, 74, 0.4) !important;
  }
  
  /*以上调侧边栏*/
  
  h1 span {
    display: inline-block;
    background: rgb(66, 185, 131);
    color: #ffffff;
    padding: 10px 16px;
    border-radius: 5px;
    box-shadow: 1px 1px 3px black;
  }
  
  /*代码块背景*/
  p code {
    background-color: rgb(255, 255, 255) !important;
  }
  
  .markdown-section p.tip,
  .markdown-section tr:nth-child(1n) {
    font-size: 16px !important;
  }
  
  .markdown-section h1 {
    margin: 3rem 0 2rem 0;
  }
  
  .markdown-section h2 {
    margin: 2rem 0 1rem;
  }
  
  img,
  pre {
    border-radius: 5px;
  }
  
  /*添加代码块复制按钮样式*/
  .docsify-copy-code-button {
    background: #00a1d6 !important;
    color: #ffffff !important;
    font-size: 13px !important;
  }
  
  ::after {
    color: #9da2fd !important;
    font-size: 13px !important;
  }
  
  .markdown-section > p {
    font-size: 16px !important;
  }
  
  /*代码块头部图标 start*/
  .markdown-section pre:before {
    content: "";
    display: block;
    background: url(https://gitee.com/wugenqiang/PictureBed/raw/master/images01/20200716201955.png);
    height: 30px;
    background-size: 40px;
    background-repeat: no-repeat;
    background-color: #1c1c1c;
    background-position: 10px 10px;
  }
  
  /*代码块头部图标 end*/
  
  .markdown-section pre > code {
    color: #c0c3c1 !important;
    font-family: "Inconsolata", consolas, "PingFang SC", "Microsoft YaHei",
      monospace !important;
    background-color: #212121 !important;
    font-size: 15px !important;
    white-space: pre !important;
    line-height: 1.5 !important;
    -moz-tab-size: 4 !important;
    -o-tab-size: 4 !important;
    tab-size: 4 !important;
    /* border-radius: .3em; */
  }
  
  ol,
  ul,
  li {
    line-height: 27px !important;
    font-size: 16px !important;
  }
  
  @media (min-width: 600px) {
    .markdown-section pre > code {
      font-size: 15px !important;
      letter-spacing: 1.1px !important;
    }
  }
  
  @media (max-width: 600px) {
    .markdown-section pre > code {
      padding-top: 5px;
      padding-bottom: 5px;
      padding-left: 16px !important;
    }
  
    pre:after {
      content: "" !important;
    }
  }
  
  section.cover h1 {
    margin: 0;
  }
  
  pre {
    background-color: #212121 !important;
  }
  
  @media (min-width: 600px) {
    pre code {
      /*box-shadow: 2px 1px 20px 2px #aaa;*/
      /*border-radius: 10px !important;*/
      padding-left: 20px !important;
    }
  }
  
  @media (max-width: 600px) {
    pre {
      padding-left: 3px !important;
      padding-right: 3px !important;
      margin-left: -20px !important;
      margin-right: -20px !important;
      box-shadow: 0px 0px 20px 0px #f7f7f7 !important;
    }
  
    /*代码块复制按钮默认隐藏*/
    .docsify-copy-code-button {
      display: none;
    }
  
    .advertisement {
      display: none;
    }
  }
  
  .markdown-section pre {
    padding-left: 0 !important;
    padding-right: 0px !important;
  }
  
  .markdown-section {
    margin: 0 3.2% !important;
  }
  
  /*修改代码块代码颜色显示*/
  .token.directive.keyword {
    color: #4faee2 !important;
  }
  
  .token.keyword {
    color: #c678dd !important;
  }
  
  .token.comment {
    color: #737c8b !important;
  }
  
  .token.tag {
    color: #a589ad !important;
  }
  
  .token.attr-name {
    color: #de916c !important;
  }
  
  .token.attr-value {
    color: #4faee2 !important;
  }
  
  .token.macro.property {
    color: #4faee2 !important;
  }
  
  .token.function {
    color: #e6b456 !important;
  }
  
  .token.string {
    color: #98b755 !important;
  }
  
  .token.punctuation {
    color: #c0c3c1 !important;
  }
  
  .token.number {
    color: #c0c3c1 !important;
  }
  
  a.section-link {
    font-size: 0.9rem !important;
  }
  
  .advertisement {
    position: fixed;
    right: 20px;
    top: 100px;
    width: 110px;
    box-shadow: -1px 0 2px 0px #c5ebda;
    padding: 10px;
    z-index: 99;
    background-color: #fff;
    text-align: center;
  }
  
  .advertisement p,
  h4 {
    margin: 0;
    padding: 0;
  }
  
  .advertisement .Tencent_code h4 {
    font-size: 15px;
    color: #25a46a;
    margin-bottom: 10px;
  }
  
  /*滚动条样式 start*/
  /* 滚动条宽度 */
  ::-webkit-scrollbar {
    width: 5px;
  }
  
  /* 滚动条颜色 */
  ::-webkit-scrollbar-thumb {
    background: #33a9dc;
    background-image: linear-gradient(#6ecd56, #33a9dc, #cb6196, #c16290);
    border-radius: 2em;
  }

/* 骨架屏 - 完全匹配真实布局 */
.loading-skeleton {
  width: 100%;
  height: 100vh;
  background: #fff;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
}

/* 骨架屏头部也需要响应式 */
.skeleton-app-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 55px;
  background-color: #fff;
  border-bottom: 1px solid #eee;
  z-index: 10000;
  transition: all 0.3s ease;
}

.skeleton-nav-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
  height: 100%;
  /* 默认全宽 */
  max-width: 100%;
  transition: all 0.3s ease;
}

/* 如果需要匹配侧边栏状态 */
body:not(.close) .skeleton-nav-content {
  max-width: calc(100% - 300px);
  margin-left: 300px;
}

.skeleton-logo-area {
  width: 120px;
  height: 24px;
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
  border-radius: 4px;
}

.skeleton-nav-items {
  display: flex;
  gap: 20px;
}

.skeleton-nav-item {
  width: 60px;
  height: 20px;
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
  border-radius: 4px;
}

/* 骨架屏主内容 - 匹配封面页 */
.skeleton-main-content {
  padding-top: 55px; /* 为固定头部留出空间 */
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.skeleton-cover {
  text-align: center;
  max-width: 600px;
}

.skeleton-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
  margin: 0 auto 30px;
}

.skeleton-title {
  width: 200px;
  height: 40px;
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
  border-radius: 4px;
  margin: 0 auto 20px;
}

.skeleton-subtitle {
  width: 300px;
  height: 20px;
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
  border-radius: 4px;
  margin: 0 auto 40px;
}

.skeleton-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
}

.skeleton-button {
  width: 100px;
  height: 40px;
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
  border-radius: 20px;
}

@keyframes loading {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* 响应式适配 */
@media (max-width: 768px) {
  .skeleton-nav-content {
    max-width: 100%;
    padding: 10px 15px;
  }
  
  .skeleton-nav-items {
    display: none;
  }
  
  .skeleton-buttons {
    flex-direction: column;
    align-items: center;
  }
}

/* 初始状态隐藏导航栏，避免白屏 */
.app-nav {
  position: fixed;
  margin: 0;
  padding: 10px 20px 10px 0;
  height: 55px;
  background-color: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid rgba(238, 238, 238, 0.3);
  backdrop-filter: blur(5px);
  box-sizing: border-box;
  /* 默认状态：侧边栏收起或封面页 */
  left: 0;
  right: 0;
  width: 100%;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 侧边栏展开时 */
body:not(.close) .app-nav {
  left: 300px; /* 侧边栏宽度 */
  width: calc(100% - 300px);
}

/* 侧边栏收起时 */
body.close .app-nav {
  left: 0;
  width: 100%;
}

/* 导航栏内容区域限制宽度 */
.app-nav > * {
  max-width: calc(100% - 325px);
  margin-left: auto;
  margin-right: auto;
}

/* 页面加载完成后显示 */
body.ready .app-nav {
  opacity: 1;
  visibility: visible;
}