* {
    box-sizing: border-box;
}
html {
    height: 100%;
}
body {
    min-height: 100%;
}

/* 全局透明度变量（可被页面内 :root 覆盖） */
:root {
  /* 变量与页面/位置映射说明：
     --glass-alpha-container → .article-container / .card-widget
       示例页面：blogs/ai-help.html、blogs/cherrystudio.html、blogs/bili-grabber.html、blogs/index.html
     --glass-alpha-page      → #page
       示例页面：首页 index.html 的主内容区域（若其他页面存在 #page，同样受控）
     --glass-alpha-aside     → #aside_content .card-widget（侧栏卡片：作者信息/公告/站点信息等）
       示例页面：首页 index.html
     --glass-alpha-list      → .blog-item（“最新文章”列表条目）
       示例页面：首页 index.html
     --glass-alpha-list-hover→ .blog-item:hover（列表条目悬停态）
       示例页面：首页 index.html
     --glass-alpha-card      → .blog-card（博客列表卡片，内联样式里）
       示例页面：博客列表页 blogs/index.html
  */
  --glass-alpha-container: 0.5;
  --glass-alpha-page: 0.24;
  --glass-alpha-aside: 0.22;
  --glass-alpha-list: 0.30;
  --glass-alpha-list-hover: 0.42;
  --glass-alpha-card: 0.30;
}

h1, h2, h3, h4, h5, h6 {
    position: relative;
    margin: 1rem 0 .7rem;
    color: #344c67;
    font-weight: 700
}
hr:before {
    position: absolute;
    top: -10px;
    left: 5%;
    z-index: 1;
    color: #49b1f5;
    content: '\f0c4';
    font: normal normal normal 14px/1 FontAwesome;
    font-size: 20px;
    transition: all 1s ease-in-out;
}
hr {
    position: relative;
    margin: 2rem auto;
    width: calc(100% - 4px);
    border: 2px dashed #a4d8fa;
    background: #fff;
}
hr {
    box-sizing: content-box;
    height: 0;
    overflow: visible;
}
 li, span, p {
    cursor: url(https://cdn.jsdelivr.net/gh/honjun/cdn@1.6/img/cursor/texto.cur),auto;
}
a {
    background-color: transparent;
    cursor: url(https://cdn.jsdelivr.net/gh/honjun/cdn@1.6/img/cursor/ayuda.cur),auto;
}
strong{
    color: #FF0066;
}
#body-wrap {
    position: relative;
    display: box;
    display: flex;
    box-flex: 1;
    flex: 1 auto;
    -webkit-box-orient: vertical;
    flex-direction: column;
    transition: all .5s;
}
#nav.not_index_bg {
    height: 20rem;
}
#nav {
    position: relative;
    margin-top: -2rem;
    width: 100%;
    background-color: #49b1f5;
    background-attachment: local;
    background-position: center;
    background-size: cover;
}
#page_site-info {
    position: absolute;
    top: 10rem;
    width: 100%;
}
#site-title {
    color: #eee;
    text-align: center;
    text-shadow: 0.1rem 0.1rem 0.2rem rgba(0, 0, 0, .15);
    line-height: 1.5;
    font-weight: 700;
    font-size: 1.3rem;
    animation: titlescale 1s;
}
main {
    display: block;
}

#content-outer {
    -webkit-box-flex: 1;
    -moz-box-flex: 1;
    -o-box-flex: 1;
    box-flex: 1;
    -webkit-flex: 1 auto;
    -ms-flex: 1 auto;
    flex: 1 auto;
}
h1 {
    font-size: 2em;
    margin: .67em 0;
}
.layout_page {
    display: flex;
    -webkit-box-align: start;
    align-items: flex-start;
    margin: 0 auto;
    padding: 0 5px;
    max-width: 1400px;
}

#page{
    margin-top: 10px;
    width: 75%;
    border-radius: 3px;
    background: #fff;
    box-shadow: 0 4px 8px 6px rgba(7, 17, 27, .06);
    transition: all .3s;
}
#page{
    padding: 20px 44px 44px;
}

#aside_content {
    width: 25%;
}
#aside_content .card-widget {
    overflow: hidden;
    margin: 10px 0;
    border-radius: 3px;
    background: #fff;
    -webkit-box-shadow: 0 4px 8px 6px rgba(7, 17, 27, .06);
    box-shadow: 0 4px 8px 6px rgba(7, 17, 27, .06);
    -webkit-transition: all .3s;
    -moz-transition: all .3s;
    -o-transition: all .3s;
    -ms-transition: all .3s;
    transition: all .3s;
}
#aside_content .card-content {
    padding: 1rem 1.2rem;
}

.skillbar {
    position: relative;
    display: block;
    max-width: 360px;
    margin: 15px 10px;
    background: #eee;
    height: 30px;
    border-radius: 35px;
    -moz-border-radius: 35px;
    -webkit-border-radius: 35px;
    -webkit-transition: 0.4s linear;
    -moz-transition: 0.4s linear;
    -o-transition: 0.4s linear;
    transition: 0.4s linear;
    -webkit-transition-property: width, background-color;
    -moz-transition-property: width, background-color;
    -o-transition-property: width, background-color;
    transition-property: width, background-color;
}

.skillbar .skillbar-title {
    position: absolute;
    top: 0;
    left: 0;
    width: 110px;
    font-size: 0.9rem;
    color: #ffffff;
    border-radius: 35px;
    -webkit-border-radius: 35px;
    -moz-border-radius: 35px;
}
.skillbar .skillbar-title span {
    display: block;
    background: rgba(0, 0, 0, 0.15);
    padding: 0 20px;
    height: 30px;
    line-height: 30px;
    border-radius: 35px;
    -webkit-border-radius: 35px;
    -moz-border-radius: 35px;
}
.skillbar .skill-bar-percent {
    position: absolute;
    right: 10px;
    top: 0;
    font-size: 12px;
    height: 30px;
    line-height: 30px;
    color: #ffffff;
    color: rgba(0, 0, 0, 0.5);
}

.tool a {
    color: #FF0066;
}

.is-center {
    text-align: center;
}

#aside_content .card-info img {
    display: inline-block;
    padding: 5px;
    width: 120px;
    height: 120px;
    border-radius: 70px;
    vertical-align: top;
    transition: all .3s;
}
img {
    max-width: 100%;
    transition: all .2s;
}
.avatar-img {
    animation: avatar_turn_around 2s linear infinite;
}
#aside_content .card-info .author-info__name {
    font-weight: 500;
    font-size: 1.1rem;
}
aside_content .card-info .author-info__description {
    margin-top: -.3rem;
}
#aside_content .card-info .card-info-social-icons {
    margin: .3rem 0 -.3rem;
}
#aside_content .card-info .card-info-social-icons .social-icon {
    margin: 0 .5rem;
    color: #4c4948;
    font-size: 1.5rem;
}

#aside_content .item-headline {
    font-size: .8rem;
}
#aside_content .item-headline span {
    margin-left: .5rem;
}

#aside_content .card-webinfo .webinfo {
    padding: .2rem 1rem;
}
#aside_content .card-webinfo .webinfo .webinfo-item {
    display: block;
    padding: 4px 0 0;
}
#aside_content .card-webinfo .webinfo .webinfo-item div:first-child {
    display: inline-block;
}
#aside_content .card-webinfo .webinfo .webinfo-item div:last-child {
    display: inline-block;
    float: right;
}
#footer {
    position: relative;
    margin-top: 1rem;
    background-attachment: local;
    background-position: bottom;
    background-size: cover;
}
#footer-wrap {
    position: relative;
    padding: 2rem 1rem;
    text-align: center;
}


#footer, .layout_page, .layout_post {
    -webkit-animation: main 1s;
    -moz-animation: main 1s;
    -o-animation: main 1s;
    -ms-animation: main 1s;
    animation: main 1s;
}

@media screen and (min-width: 768px){
    #site-title {
        font-size: 2rem;
    }

}

@media screen and (max-width: 768px){
    .layout_page {
        padding: 0 5px !important;
    }
    #page {
        margin: 0;
        padding: 1.8rem 1.3rem;
        /* 使用玻璃态半透明，避免遮挡移动端背景平铺 */
        background: rgba(255, 255, 255, var(--glass-alpha-page, 0.24));
    }
    /* 侧栏卡片在移动端也保持半透明以露出背景 */
    #aside_content .card-widget {
        background: rgba(255, 255, 255, var(--glass-alpha-aside, 0.22));
    }
}

@media screen and (max-width: 900px){
    #page{
        width: 100% !important;
    }
    #aside_content{
        width: 100% !important;
    }
    .layout_page {
        -webkit-box-orient: vertical;
        -moz-box-orient: vertical;
        -o-box-orient: vertical;
        -webkit-flex-direction: column;
        -ms-flex-direction: column;
        flex-direction: column;
    }
}



@media screen and (min-width: 900px){
    #aside_content .card-widget {
        margin-right: 15px;
    }
}

::-webkit-scrollbar {
    width: 2px;
    height: 2px
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(to right, #FF0066 0%, #FF00CC 100%); width: 85%
}

::-webkit-scrollbar-track {
    background-color: transparent
}


.snowbox, #snowbox { pointer-events: none !important; }

.article-container, .card-widget {
  /* 使用 CSS 变量控制不透明度，页面可覆盖 --glass-alpha-container */
  background: rgba(255, 255, 255, var(--glass-alpha-container, 0.24));
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  padding: 1em;
  border-radius: 12px;
  margin-bottom: 1em;
  box-shadow: 0 6px 16px rgba(0,0,0,0.16);
}

.blog-list {
  list-style: none;
  padding: 0;
}

.blog-item {
  border-bottom: 1px solid rgba(255,255,255,0.2);
  padding: 1em 0;
}

.blog-item h3 {
  margin: 0 0 0.5em;
  font-size: 1.2em;
}

.blog-item.pinned h3::before {
  content: "📌 ";
  color: gold;
}

.blog-item .tag {
  background: #007acc;
  padding: 0.2em 0.5em;
  border-radius: 4px;
  font-size: 0.8em;
  margin-right: 0.5em;
}

.blog-item .date {
  font-size: 0.8em;
  color: #ccc;
}

.more-link {
  display: inline-block;
  margin-top: 1em;
  color: #4db8ff;
  text-decoration: underline;
}

  
.blog-list {
    list-style: none;
    padding: 0;
    margin-top: 1em;
    display: flex;
    flex-direction: column;
    gap: 1.2em;
  }
  
  .blog-item {
    background-color: rgba(255, 255, 255, 0.8);
    border-left: 4px solid #ccc;
    padding: 1em 1.2em;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
  }
  
  .blog-item:hover {
    background-color: rgba(255, 255, 255, 0.95);
    transform: translateY(-2px);
  }
  
  .blog-item h3 {
    margin: 0 0 0.4em;
    font-size: 1.3em;
  }
  
  .blog-item p {
    margin: 0.4em 0 0.6em;
    line-height: 1.6;
    font-size: 0.95em;
    color: #444;
  }
  
  .blog-item .tag,
  .blog-item .date {
    font-size: 0.85em;
    margin-right: 1em;
    color: #888;
  }
  
  .blog-item.pinned {
    border-left: 4px solid #007aff;
    background-color: rgba(245, 250, 255, 0.9);
  }

  body {
    position: relative;
    min-height: 100%;
    margin: 0;
    padding: 2em;
    font-size: 14px;
    line-height: 2;
    font-family: '微软雅黑', Lato, Helvetica Neue, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, PingFang SC, Hiragino Sans GB, Microsoft YaHei, sans-serif;
    color: #333;
    /* 背景图片由 /static/js/bg.js 动态设置，避免重复加载 */
    /* background: url('../img/img1.webp') no-repeat center center fixed; */
    /* background-color: red; */
    /* background-size: cover; */
}


/* 半透明毛玻璃效果：主要内容区域（文章） */
  #page {
    margin-top: 10px;
    width: 75%;
    padding: 20px 44px 44px;
    border-radius: 12px;
    /* 使用 CSS 变量控制不透明度，页面可覆盖 --glass-alpha-page */
    background: rgba(255, 255, 255, var(--glass-alpha-page, 0.24));
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
  }
  
  /* 半透明毛玻璃效果：侧边卡片（作者信息、公告、站点信息等） */
  #aside_content .card-widget {
    /* 使用 CSS 变量控制不透明度，页面可覆盖 --glass-alpha-aside */
    background: rgba(255, 255, 255, var(--glass-alpha-aside, 0.22));
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    transition: all 0.3s;
  }
  
  /* 半透明毛玻璃效果：每篇博客文章列表 */
  .blog-item {
    /* 使用 CSS 变量控制不透明度，页面可覆盖 --glass-alpha-list */
    background-color: rgba(255, 255, 255, var(--glass-alpha-list, 0.30));
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-left: 4px solid #ccc;
    padding: 1em 1.2em;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
  }
  
  .blog-item:hover {
    background-color: rgba(255, 255, 255, var(--glass-alpha-list-hover, 0.42));
    transform: translateY(-2px);
  }

/* ===== 侧边音乐播放器（与侧栏卡片风格一致） ===== */
#aside_content .card-player {
  background: rgba(255, 255, 255, var(--glass-alpha-aside, 0.22));
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  transition: all 0.3s;
}

.card-player .card-content {
  padding: 0.8rem 1rem;
}

.card-player .player-mini {
  display: flex;
  align-items: center;
  gap: 10px;
}

.card-player .player-cover {
  width: 56px;
  height: 56px;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.card-player .player-info { flex: 1; min-width: 0; }
.card-player .player-text { display: flex; flex-direction: column; line-height: 1.2; margin-bottom: 6px; }
.card-player .player-song { font-weight: 600; color: #344c67; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-player .player-artist { font-size: 12px; color: #777; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.card-player .player-controls { display: flex; align-items: center; gap: 6px; margin: 6px 0; }
.card-player .btn {
  border: 1px solid rgba(0,0,0,0.08);
  background: #fff;
  border-radius: 6px;
  padding: 4px 8px;
  cursor: pointer;
  transition: all .2s;
}
.card-player .btn:hover { background: #49b1f5; color: #fff; border-color: #49b1f5; }
.card-player .btn:disabled { opacity: .5; cursor: not-allowed; }

.card-player .player-progress {
  margin-top: 4px;
  padding: 8px 0; /* 扩大可点击/拖拽热区 */
  touch-action: none; /* 允许自定义手势，避免默认滚动干扰 */
  cursor: pointer;
  user-select: none;
  position: relative;
  z-index: 10; /* 确保不被歌词等区域遮挡 */
  pointer-events: auto;
}
.card-player .player-progress .bar {
  position: relative;
  height: 6px;
  background: rgba(0,0,0,0.08);
  border-radius: 4px;
  overflow: hidden;
  touch-action: none; /* 允许自定义手势，禁止浏览器默认触摸滚动干扰 */
  cursor: pointer;
  user-select: none;
  z-index: 10;
}
.card-player .player-progress .bar-inner {
  position: absolute; top: 0; left: 0; height: 100%; width: 0;
  background: linear-gradient(90deg, #49b1f5, #4db8ff);
  pointer-events: none; /* 不拦截点击/拖拽事件，事件交给外层 bar 处理 */
}
.card-player .player-progress .time {
  display: flex; justify-content: flex-end; gap: 6px;
  font-size: 12px; color: #666; margin-top: 4px;
}

.card-player .player-volume { display: flex; align-items: center; gap: 6px; margin-top: 6px; }
.card-player .player-volume .volume-range { width: 100%; }

@media screen and (max-width: 900px){
  #aside_content .card-player { margin-top: .6rem; }
}

/* 移除文字阴影，保持文本清晰锐利，避免视觉疲劳 */
  
/* ====== 扩展：播放器展开面板（队列 / 歌词） ====== */
.card-player .player-panel { margin-top: 8px; }
.card-player .panel-tabs { display: flex; gap: 8px; margin-bottom: 8px; }
.card-player .panel-tabs .tab-btn {
  border: 1px solid rgba(0,0,0,0.08);
  background: #fff;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  cursor: pointer;
}
.card-player .panel-tabs .tab-btn.active { background: #49b1f5; color: #fff; border-color: #49b1f5; }

.card-player .panel-body { border: 1px dashed rgba(0,0,0,0.08); border-radius: 8px; padding: 8px; }
.card-player .queue-list { list-style: none; margin: 0; padding: 0; max-height: 160px; overflow: auto; }
.card-player .queue-item { padding: 6px 8px; border-radius: 6px; cursor: pointer; transition: background .2s; }
.card-player .queue-item:hover { background: rgba(0,0,0,0.05); }
.card-player .queue-item.active { background: rgba(73,177,245,0.15); color: #0a62a5; }

.card-player .lyrics-area { max-height: 180px; overflow: hidden; margin-top: 6px; }
.card-player .lyrics-area { position: relative; z-index: 1; }
.card-player .lyrics-area .lrc-scroll { max-height: 180px; overflow: auto; scroll-behavior: smooth; }
.card-player .lyrics-area .lrc-line { padding: 4px 0; color: #555; }
.card-player .lyrics-area .lrc-line.active { color: #0b6cff; font-weight: 600; }
.card-player .lyrics-area .lrc-empty { color: #888; font-size: 12px; }
/* 纯文本歌词样式（无时间戳时使用） */
.card-player .lyrics-area .lrc-plain { 
  font-size: 13px; 
  line-height: 1.6; 
  color: #555; 
  max-height: 180px; 
  overflow: auto; 
  white-space: pre-wrap;
}

.card-player .panel-lyrics { max-height: 180px; overflow: hidden; }
.card-player .panel-lyrics .lrc-scroll { max-height: 180px; overflow: auto; scroll-behavior: smooth; }
.card-player .panel-lyrics .lrc-line { padding: 4px 0; color: #555; }
.card-player .panel-lyrics .lrc-line.active { color: #0b6cff; font-weight: 600; }
.card-player .panel-lyrics .lrc-empty { color: #888; font-size: 12px; }
/* 纯文本歌词样式（无时间戳时使用） */
.card-player .panel-lyrics .lrc-plain { 
  font-size: 13px; 
  line-height: 1.6; 
  color: #555; 
  max-height: 180px; 
  overflow: auto; 
}

/* ====== 无侧栏页面：底部固定迷你栏 ====== */
.card-player.mp-fixed-bottom {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 12px;
  width: min(680px, 96%);
  z-index: 999;
}

@media screen and (max-width: 600px){
  .card-player .player-cover { width: 46px; height: 46px; }
  .card-player .player-controls .btn { padding: 3px 6px; }
}

/* ====== 自定义侧栏音乐播放器（替代 APlayer） ====== */
#music-card { margin-top: 14px; }
#music-card .card-content {
  padding: 12px;
  background: rgba(255,255,255, var(--glass-alpha-card, 0.65));
  backdrop-filter: saturate(150%) blur(10px);
  -webkit-backdrop-filter: saturate(150%) blur(10px);
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.24);
}
#music-card .mp-header { display: flex; align-items: center; gap: 12px; }
#music-card .mp-cover { width: 96px; height: 96px; border-radius: 10px; object-fit: cover; }
#music-card .mp-title { font-size: 16px; font-weight: 700; color: #222; }
#music-card .mp-artist { font-size: 13px; color: #666; margin-top: 4px; }

#music-card .mp-controls { display: flex; gap: 10px; margin: 10px 0 6px; }
#music-card .mp-btn { 
  padding: 6px 10px; border-radius: 8px; border: 1px solid rgba(0,0,0,0.08);
  background: #fff; cursor: pointer; transition: .2s; font-size: 14px;
}
#music-card .mp-btn:hover { background: #f7fbff; border-color: #49b1f5; }

#music-card .mp-progress { display: flex; align-items: center; gap: 10px; }
#music-card .mp-time { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: #555; font-size: 12px; }
#music-card .mp-bar-wrap { flex: 1; padding: 10px 0; cursor: pointer; position: relative; touch-action: none; z-index: 100; user-select: none; pointer-events: auto; }
#music-card .mp-bar-bg { width: 100%; height: 8px; border-radius: 6px; background: rgba(0,0,0,0.1); overflow: hidden; pointer-events: auto; }
#music-card .mp-bar-inner { height: 100%; width: 0%; background: #49b1f5; border-radius: 6px; pointer-events: none; }

#music-card .mp-lrc { height: 140px; overflow: auto; margin-top: 8px; border-radius: 8px; padding: 6px 8px; background: rgba(255,255,255,0.6); }
#music-card .mp-lrc-inner { scroll-behavior: smooth; }
#music-card .mp-lrc-inner p { color: #555; padding: 3px 0; margin: 0; font-size: 14px; }
#music-card .mp-lrc-inner p.on { color: #0b6cff; font-weight: 700; }

#music-card .mp-list { margin-top: 8px; max-height: 320px; overflow: auto; padding-left: 0; }
#music-card .mp-list li { list-style: none; padding: 8px 10px; border-radius: 8px; margin-bottom: 6px; background: rgba(255,255,255,0.7); cursor: pointer; }
#music-card .mp-list li.on { background: rgba(73,177,245,0.15); color: #0b6cff; font-weight: 600; }

/* 音量条 */
#music-card .mp-volume { display: flex; align-items: center; gap: 10px; margin-top: 6px; }
#music-card .mp-vol-label { color: #555; font-size: 14px; width: 18px; text-align: center; }
#music-card .mp-vol-wrap { flex: 1; padding: 8px 0; position: relative; cursor: pointer; touch-action: none; user-select: none; z-index: 10; }
#music-card .mp-vol-bg { width: 100%; height: 6px; background: rgba(0,0,0,0.1); border-radius: 6px; overflow: hidden; pointer-events: none; }
#music-card .mp-vol-inner { height: 100%; width: 0%; background: linear-gradient(90deg, #49b1f5, #4db8ff); border-radius: 6px; pointer-events: none; }

@media screen and (max-width: 600px){
#music-card .mp-cover { width: 64px; height: 64px; }
}

/* ===== 顶部导航（玻璃态，移动端折叠） ===== */
.site-header { position: sticky; top: 0; z-index: 1000; padding: 8px 0; }
.site-header .nav-inner {
max-width: 1400px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between;
padding: 10px 14px; border-radius: 12px; box-shadow: 0 4px 12px rgba(0,0,0,0.10);
background: rgba(255,255,255, var(--glass-alpha-card, 0.35));
-webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.site-header .brand { font-weight: 700; color: #0b6cff; text-decoration: none; }
.site-header .site-nav { display: flex; gap: 12px; align-items: center; }
.site-header .site-nav a {
color: #344c67; text-decoration: none; padding: 6px 10px; border-radius: 8px; transition: background .2s, color .2s;
}
.site-header .site-nav a:hover { background: rgba(73,177,245,0.15); color: #0a62a5; }

/* 汉堡按钮（默认隐藏，移动端显示） */
.site-header .nav-toggle { display: none; }
.site-header .nav-toggle-btn { display: none; width: 36px; height: 32px; border-radius: 8px; cursor: pointer; position: relative; }
.site-header .nav-toggle-btn span,
.site-header .nav-toggle-btn span::before,
.site-header .nav-toggle-btn span::after {
position: absolute; left: 8px; right: 8px; height: 2px; background: #344c67; content: ""; transition: transform .2s ease, opacity .2s ease; top: 50%;
}
.site-header .nav-toggle-btn span::before { transform: translateY(-8px); }
.site-header .nav-toggle-btn span::after { transform: translateY(8px); }

/* 移动端：折叠菜单 */
@media (max-width: 768px){
.site-header .site-nav { display: none; position: absolute; right: 12px; left: 12px; top: 58px; flex-direction: column; gap: 8px; padding: 10px; border-radius: 10px;
background: rgba(255,255,255, var(--glass-alpha-card, 0.45));
-webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: 0 6px 16px rgba(0,0,0,0.12);
}
.site-header .nav-toggle-btn { display: inline-block; background: rgba(255,255,255,0.8); box-shadow: 0 2px 8px rgba(0,0,0,0.08); }
/* 复选框选中 → 展开导航 */
.site-header .nav-toggle:checked + .nav-toggle-btn + .site-nav { display: flex; }
/* 选中时汉堡动画为 X */
.site-header .nav-toggle:checked + .nav-toggle-btn span { background: transparent; }
.site-header .nav-toggle:checked + .nav-toggle-btn span::before { transform: rotate(45deg); }
.site-header .nav-toggle:checked + .nav-toggle-btn span::after { transform: rotate(-45deg); }
}
