@import url(https://cdn.jsdelivr.net/gh/BNDong/Cnblogs-Theme-SimpleMemory@v2.1.7/dist/simpleMemory.css);

#home,#main{
    padding: 0 !important;
}


/* SimpleMemory 主题顶部进度条：彩虹流动 */
#top-progress-bar {
  background: linear-gradient(
    90deg,
    #ff0000,
    #ff7700,
    #ffdd00,
    #88dd00,
    #00ddaa,
    #0088ff,
    #5544ff,
    #aa22ff,
    #ff2288
  ) !important;
  background-size: 120% 100% !important;
  /* 彩虹循环平移动画 */
  animation: rainbowMove 3.5s linear infinite !important;
  /* 进度条粗细 */
  height: 3px !important;
}

/* 控制彩虹背景持续向右滚动 */
@keyframes rainbowMove {
  0% { background-position: 0% 0; }
  100% { background-position: 120% 0; }
}


/* 页面底层背景 */
html, body {
    background-attachment: fixed !important;
    background: linear-gradient(135deg, #b9d3ff 0%, #dcebff 100%) !important;
    min-height: 100%;
}
/* 统一卡片渐变阴影：正文、版权、评论 */
#main, .post, #content, article, .day,
#articleSuffix, .comment_textarea, #tbCommentBody, #tbCommentBodyPreview {
    background: linear-gradient(135deg, #a6c5ff 0%, #c0d9ff 100%) !important;
    box-shadow: 0 3px 16px rgba(60, 100, 170, 0.2) !important;
}

/* 文章目录背景颜色 */
#articleDirectory {
    background: linear-gradient(135deg, #bfd4ff 0%, #d7e8ff 100%) !important;
    border-radius: 10px !important;
    box-shadow: 0 3px 16px rgba(60, 100, 170, 0.2) !important;
    border: 1px solid rgba(120, 160, 220, 0.35) !important;
}

/* ========== 双层3D旋转立方体 【外层容器】 ========== */
.cube-wrap {
  width: 120px;        /* 立方体整体占用宽度 */
  height: 120px;       /* 立方体整体占用高度 */
  position: fixed;     /* 固定悬浮，不会跟着页面滚动跑 */
  right: 90px;         /* 距离页面右侧边距离，越大越靠左 */
  bottom: 220px;       /* 距离页面底部距离，数值越大位置越靠上 */
  z-index: 999;        /* 层级，数字大不容易被其他元素盖住 */
  perspective: 600px;   /* 3D透视景深，越小立体感越强、变形越夸张 */
}

/* ========== 立方体本体容器 ========== */
.cube-box {
  width: 120px;
  height: 120px;
  position: relative;
  transform-style: preserve-3d; /* 开启3D空间，必须要有，不然不是立体 */
  transform: rotateX(-30deg) rotateY(-30deg); /* 初始倾斜角度，改角度换观察方向 */
  /* 动画：名称 时长 匀速 无限循环；20s=转一圈时间，改数字控制快慢 */
  animation: cubeRotate linear 20s infinite;
}

/* 旋转动画关键帧 */
@keyframes cubeRotate {
  from { transform: rotateX(0deg)  rotateY(0deg); }
  to   { transform: rotateX(360deg) rotateY(360deg); }
}

/* ========== 外层大立方体六个面 ========== */
.cube-box .out {
  position: absolute;
  width: 120px;        /* 单一面的宽，和整体尺寸保持一致 */
  height: 120px;       /* 单一面的高 */
  opacity: 0.8;        /* 透明度：1=完全不透明，0=透明 */
  transition: transform .4s; /* 鼠标悬浮炸开的过渡时间，0.4秒，越大越顺滑慢 */
}
.cube-box .pic {
  width: 120px;
  height: 120px;
  object-fit: cover;  /* 图片自动裁切填满，防止拉伸变形 */
}
/* 六个面的定位：translateZ 就是向外伸出去的距离，等于边长一半 */
.cube-box .out_front  { transform: rotateY(0deg)   translateZ(60px); }
.cube-box .out_back   { transform: translateZ(-60px) rotateY(180deg); }
.cube-box .out_left   { transform: rotateY(-90deg) translateZ(60px); }
.cube-box .out_right  { transform: rotateY(90deg)  translateZ(60px); }
.cube-box .out_top    { transform: rotateX(90deg)  translateZ(60px); }
.cube-box .out_bottom { transform: rotateX(-90deg) translateZ(60px); }

/* ========== 内层小立方体 ========== */
.cube-box .in {
  display: block;
  width: 60px;         /* 内层小方块单一面宽 */
  height: 60px;        /* 内层小方块单一面高 */
  position: absolute;
  top: 30px;           /* 居中偏移，等于外层一半 - 内层一半 */
  left: 30px;
}
.cube-box .in_pic {
  width: 60px;
  height: 60px;
  object-fit: cover;
}
.cube-box .in_front  { transform: rotateY(0deg)   translateZ(30px); }
.cube-box .in_back   { transform: translateZ(-30px) rotateY(180deg); }
.cube-box .in_left   { transform: rotateY(-90deg) translateZ(30px); }
.cube-box .in_right  { transform: rotateY(90deg)  translateZ(30px); }
.cube-box .in_top    { transform: rotateX(90deg)  translateZ(30px); }
.cube-box .in_bottom { transform: rotateX(-90deg) translateZ(30px); }

/* ========== 鼠标悬浮：外层炸开效果 ========== */
/* translateZ 改成 120，就是向外推到两倍距离，改这个控制炸开幅度 */
.cube-box:hover .out_front  { transform: rotateY(0deg)   translateZ(120px); }
.cube-box:hover .out_back   { transform: translateZ(-120px) rotateY(180deg); }
.cube-box:hover .out_left   { transform: rotateY(-90deg) translateZ(120px); }
.cube-box:hover .out_right  { transform: rotateY(90deg)  translateZ(120px); }
.cube-box:hover .out_top    { transform: rotateX(90deg)  translateZ(120px); }
.cube-box:hover .out_bottom { transform: rotateX(-90deg) translateZ(120px); }



/* ========== 【新增】统一文章标题字体：已访问与未访问一致 ========== */
.postTitle a:link,
.postTitle a:visited {
  font-family: Open Sans, Microsoft Jhenghei, Microsoft Yahei, sans-serif !important;
}



/* ========== 【新增】文章页右侧模块：公告 / 日历 / 搜索 / 常用链接 ========== */
#aspPanel {
  position: fixed;
  right: 5px;
  top: 0;
  z-index: 5;
  width: 230px;
  max-height: 75vh;
  overflow-y: auto;
  font-size: 13px;
  line-height: 1.7;
  color: #33507a;
  scrollbar-width: thin;
  display: none;
}
/* 只在文章页显示：文章页有 #cnblogs_post_body，首页没有（纯 CSS，不依赖 JS） */
body:has(#cnblogs_post_body) #aspPanel {
  display: block;
  position: fixed;
  top: 150px;
  right: 5px;
  margin: 0;
  max-width: 90vw;
}
#aspPanel .asp-box {
  background: linear-gradient(135deg, #bfd4ff 0%, #d7e8ff 100%) !important;
  border: 1px solid rgba(120, 160, 220, 0.35);
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 18px;
  box-shadow: 0 3px 16px rgba(60, 100, 170, 0.2) !important;
}
#aspPanel .asp-box h3 {
  margin: 0 0 10px;
  padding: 0 0 8px;
  font-size: 14px;
  font-weight: 600;
  color: #2f4b73;
  border-bottom: 1px solid rgba(120, 160, 220, 0.35);
}
#aspPanel .asp-profile-inner {
  background: rgba(255, 255, 255, 0.45);
  border: 1px solid rgba(120, 160, 220, 0.3);
  border-radius: 8px;
  padding: 10px 12px;
}
#aspPanel .asp-profile p { margin: 1px 0; color: #33507a; }
#aspPanel .asp-profile a,
#aspPanel .asp-links a { color: #3a5f96; text-decoration: none; }
#aspPanel .asp-profile a:hover,
#aspPanel .asp-links a:hover { color: #1f4e9c; }
#aspPanel .asp-follow {
  display: inline-block;
  margin-top: 6px;
  color: #3a5f96 !important;
}
#aspPanel .asp-cal-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  color: #2f4b73;
}
#aspPanel .asp-cal-title a { color: #3a5f96; text-decoration: none; padding: 0 4px; }
#aspPanel .asp-cal-title a:hover { color: #1f4e9c; }
#aspPanel table.asp-cal { width: 100%; border-collapse: collapse; text-align: center; }
#aspPanel table.asp-cal th,
#aspPanel table.asp-cal td { padding: 3px 0; font-weight: 400; }
#aspPanel table.asp-cal th { color: #5b7aa8; }
#aspPanel table.asp-cal td a { color: #33507a; text-decoration: underline; }
#aspPanel table.asp-cal td.asp-today a { color: #1f4e9c; font-weight: 600; }
#aspPanel .asp-search { display: flex; gap: 8px; }
#aspPanel .asp-search input {
  flex: 1;
  min-width: 0;
  background: rgba(255, 255, 255, 0.6);
  color: #33507a;
  border: 1px solid rgba(120, 160, 220, 0.5);
  border-radius: 16px;
  padding: 5px 12px;
  outline: none;
}
#aspPanel .asp-search button {
  background: rgba(255, 255, 255, 0.6);
  color: #2f4b73;
  border: 1px solid rgba(120, 160, 220, 0.5);
  border-radius: 16px;
  padding: 5px 14px;
  cursor: pointer;
}
#aspPanel .asp-search button:hover { background: rgba(255, 255, 255, 0.85); }
#aspPanel .asp-links a { display: block; padding: 2px 0; }
@media (max-width: 900px) { #aspPanel { display: none !important; } }



/* ========== 【新增】滚动条隐藏 ========== */
html {
  scrollbar-width: none;           /* Firefox */
  -ms-overflow-style: none;        /* IE/Edge */
}
html::-webkit-scrollbar {
  display: none;                   /* Chrome / Safari / Edge */
}



