:root {
    --bg-url: url('/static/images/bg_blur.jpg');
    --top-bg-url: url('/static/images/bg.png');
}

* {
    padding: 0;
    margin: 0;

    user-select: none; /* 禁用选中 */
    -webkit-user-select: none; /* Safari */
    -moz-user-select: none;    /* Firefox */
    -ms-user-select: none;     /* IE10+ */

    scroll-behavior: smooth;
}

body {
    display: flex;
    flex-direction: column;

    background-image: var(--bg-url);
    background-repeat: no-repeat; /* 不重复背景图像 */
    background-size: cover; /* 背景图像覆盖整个容器 */
    background-attachment: fixed; /* 背景固定 */
    background-position: center; /* 背景居中 */

    overflow-x: hidden;
    /* 背景遮蔽加mix color：添加一个深色遮罩层通过混合模式叠加到背景图上 */
    /* background-color: #6a82fbaa;
    backdrop-filter: blur(32px); */
    position: relative;
}
body::before {
    content: '';
    position: fixed;
    z-index: 0;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    background: rgba(25, 25, 35, 0.52);
    mix-blend-mode: multiply;
    /* 保证在背景图之上内容之下 */
}
body > * {
    position: relative;
    z-index: 1;

    overflow-x: hidden;
    overflow-y: hidden;
}

/* 禁用 */
@media (min-width: 99999999px) {
::-webkit-scrollbar {
    width: 6px;  /* 垂直滚动条的宽度 */
    height: 6px; /* 水平滚动条的高度 */
  }
  
  /* 设置滚动条轨道的透明背景 */
  ::-webkit-scrollbar-track {
    background-color: transparent;  /* 轨道背景完全透明 */
  }
  
  /* 设置滚动条滑块的透明度 */
  ::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.3);  /* 滑块颜色，带有透明度 */
    border-radius: 10px;  /* 滑块圆角 */
  }
  
  /* 滑块在悬停时的样式 */
  ::-webkit-scrollbar-thumb:hover {
    background-color: rgba(0, 0, 0, 0.5);  /* 悬停时，滑块变得更明显 */
  }
}

::selection {
    background-color: transparent; /* 选中背景颜色 */
}

#top {
    width: 100vw;
    font-size: 22px;
    font-weight: bold;
    color: rgba(240, 255, 255, 0.897);

    background: 
        linear-gradient(rgba(25, 25, 35, 0.52), rgba(25, 25, 35, 0.52)),
        var(--top-bg-url);
    /* backdrop-filter: invert(1) grayscale(1);
    -webkit-backdrop-filter: invert(1) grayscale(1); */
    height: 100vh;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    overflow-x: hidden;

    box-sizing: border-box;
}

#mainMenu {
    padding-left: 7.5%;

    display: flex;
    flex-direction: column;

    align-items: start;
    gap: 16px;
}

@keyframes glitch-animation {
    0% {
        color: white;
        text-shadow: 1px 1px 3px rgba(255, 200, 200, 0.5), -1px -1px 3px rgba(200, 200, 255, 0.5);
        transform: translate(0, 0);
    }
    10% {
        color: #ff7f50; /* 柔和的珊瑚色 */
        text-shadow: 2px 2px 4px rgba(255, 215, 215, 0.6), -2px -2px 4px rgba(180, 210, 255, 0.6);
        transform: translate(-2px, -2px);
    }
    20% {
        color: #98fb98; /* 柔和的淡绿色 */
        text-shadow: -2px -2px 3px rgba(255, 255, 220, 0.6), 2px 2px 3px rgba(173, 216, 230, 0.6);
        transform: translate(2px, 2px);
    }
    30% {
        color: #ffb6c1; /* 淡粉色 */
        text-shadow: 1px 1px 3px rgba(255, 182, 182, 0.5), -1px -1px 3px rgba(240, 230, 255, 0.5);
        transform: translate(-2px, 3px);
    }
    40% {
        color: #dda0dd; /* 淡紫色 */
        text-shadow: 2px 2px 5px rgba(255, 250, 250, 0.6), -2px -2px 5px rgba(200, 255, 255, 0.5);
        transform: translate(1px, -2px);
    }
    50% {
        color: #b0e0e6; /* 淡蓝色 */
        text-shadow: -1px 1px 3px rgba(255, 240, 240, 0.7), 1px -1px 3px rgba(180, 230, 255, 0.7);
        transform: translate(0, 0);
    }
    60% {
        color: #fffacd; /* 柔和的淡黄色 */
        text-shadow: 1px -1px 3px rgba(255, 250, 220, 0.5), -1px 1px 3px rgba(225, 255, 250, 0.5);
        transform: translate(-3px, 2px);
    }
    70% {
        color: #faebd7; /* 米白色 */
        text-shadow: 2px 2px 4px rgba(255, 240, 240, 0.6), -2px -2px 4px rgba(210, 230, 255, 0.5);
        transform: translate(3px, -3px);
    }
    80% {
        color: #d3d3d3; /* 淡灰色 */
        text-shadow: -2px 2px 4px rgba(230, 230, 230, 0.6), 2px -2px 4px rgba(180, 180, 255, 0.6);
        transform: translate(0, 2px);
    }
    90% {
        color: #add8e6; /* 淡天蓝色 */
        text-shadow: 1px 1px 4px rgba(200, 255, 255, 0.7), -1px -1px 4px rgba(220, 240, 255, 0.6);
        transform: translate(-2px, -1px);
    }
    100% {
        color: white;
        text-shadow: 1px 1px 3px rgba(255, 200, 200, 0.5), -1px -1px 3px rgba(200, 200, 255, 0.5);
        transform: translate(0, 0);
    }
}

@keyframes glitch-animation-active {
    0% {
        transform: translate(0, 0) rotate(0deg) skew(0deg, 0deg);
    }
    10% {
        transform: translate(-150px, -40px) rotate(10deg) skew(5deg, 5deg);
    }
    20% {
        transform: translate(200px, 150px) rotate(-30deg) skew(-10deg, 10deg);
    }
    30% {
        transform: translate(-200px, 30px) rotate(15deg) skew(20deg, -10deg);
    }
    40% {
        transform: translate(100px, -200px) rotate(-40deg) skew(-15deg, -5deg);
    }
    50% {
        transform: translate(0, 0) rotate(0deg) skew(0deg, 0deg);
    }
    60% {
        transform: translate(-150px, 50px) rotate(20deg) skew(25deg, -30deg);
    }
    70% {
        transform: translate(80px, -180px) rotate(-50deg) skew(-5deg, 15deg);
    }
    80% {
        transform: translate(150px, 80px) rotate(40deg) skew(10deg, 5deg);
    }
    90% {
        transform: translate(-120px, -60px) rotate(-25deg) skew(0deg, -25deg);
    }
    100% {
        transform: translate(0, 0) rotate(0deg) skew(0deg, 0deg);
    }
}

#mainMenu h1 {
    margin-top: 30vh;

    font-size: 48px;

    color: rgba(255, 255, 255, 0.825);
    background: linear-gradient(90deg, rgb(10, 10, 10), rgb(23,23,32));
    background-clip: text;

    /* font-family: 'Courier New', Courier, monospace; */
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;

    letter-spacing: 6px;

    text-shadow:                                        /* 渐变阴影 */
                4px 4px 12px rgba(0, 255, 0, 0.5),
                5px 5px 15px rgba(0, 255, 255, 0.5),
                6px 6px 18px rgba(0, 0, 255, 0.5),
                7px 7px 20px rgba(75, 0, 130, 0.5);
    
    animation: glitch-animation 0.6s infinite;
}

#mainMenu h1:active {
    animation: glitch-animation-active 0.5s cubic-bezier(0.25, 0.5, 0.75, 1.25) infinite;
}

#top hr {
    height: 2px;
    padding: 0;
    margin: 16px 0;
    background-color: transparent;
    border: 0 none;
    overflow: hidden;
    box-sizing: content-box;
    max-width: 50%;
}

.tranBtn {
    margin-top: auto;
    font-weight: bolder;
    background-color: transparent;
    border: 0px solid transparent;
    color: rgba(245, 245, 245, 0.75);

    font-size: 30px;
}

.tranBtn:hover {
    cursor: pointer;
    color: rgba(255, 255, 255, 0.95); /* 鼠标悬停时改变文字颜色 */

    text-shadow: 0 10px 30px rgba(255, 255, 255, 0.95), 
              0 4px 10px rgba(0, 0, 0, 0.1);

    transition: color 0.4s ease, text-shadow 0.4s ease
}

#content {
    padding: 0 1em 0 1em;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

#postCategory
{
    margin-left: 2vh;
}

#postCategory span {
    margin: 24px 0px 12px 3%;
    color: #ffffff;
    font-size: 20px;
    font-weight: bolder;
    background-color: rgba(226, 226, 226, 0.658);
    /* padding: 12px 16px 12px 16px;
    border-radius: 32px; */
    display: inline-block;
    background-color: transparent;
}

#postArea {
    padding: 1% 1% 2% 3%;
    display: flex;
    flex-direction: row; /* 垂直排列 */
    gap: 1.5vh; /* 设置行间距 */
    flex-wrap: wrap;
}

.mode-panel button {
    font-size: 180%;
}

#bottom {
    font-weight: bolder;
    font-size: 14px;
    text-align: center;
    padding-bottom: 32px;
    
    bottom: 0;
    left: 0;
    width: 100%;
    /* margin-top: 2.5%; */
    margin-top: 32px;

    font-weight: bold;
    color: rgba(240, 255, 255, 0.75);
}

@keyframes colorFade {
    0% { background-color: #ff5733; }
    50% { background-color: #33c1ff; }
    100% { background-color: #85ff33; }
}

@keyframes gradientAnimation {
    0% {
      background-image: linear-gradient(to right, #ff7e5f, #feb47b);
    }
    50% {
      background-image: linear-gradient(to right, #6a82fb, #fc5c7d);
    }
    100% {
      background-image: linear-gradient(to right, #ff7e5f, #feb47b);
    }
}

#postCategory a {
    text-decoration: none;
    color: inherit; 
    border: none;
    background: none;
    outline: none;
    display: inline-block;
    padding: 0; margin: 0;
}

.roundBtn {
    border-radius: 32px;
    background-color: rgb(207, 207, 207);
    /* 背景高斯模糊 */
    /* backdrop-filter: blur(6px); */
    will-change: backdrop-filter;
    transform: translateZ(0); /* 强制开启硬件加速 */
    border: 1px;
    min-height: 8.5vh;
    min-width: 9vw;

    font-size: 21px;

    /* animation: colorChange 3s infinite; */

    padding: 16px;

    color: rgba(255, 255, 255, 0.863);
    box-shadow: 2px 4px 32px 10px rgba(0, 0, 0, 0.2);

    transition: background-color 0.4s ease, box-shadow 0.4s ease;
}

.roundBtn:hover {
    cursor: pointer;
    background-color: rgb(126, 126, 126);
    box-shadow: 2px 4px 36px 12px rgba(255, 255, 255, 0.2);
    outline: 4px solid #f8f8f8f6;
    /* 
    border: 2px solid #f8f8f8; */
    
    transition: background-color 0.4s ease, box-shadow 0.4s ease, outline 0.10s ease;
}

/* @media (max-width: 768px) {
    .roundBtn {
        min-width: 25vw;
    }
} */