:root{
    --bg-color: #232324;  /*背景颜色*/
    --text-color: #c8e4ff;  /*字体颜色*/
    --main-color: #158bb8;  /*鸢尾蓝*/
}

@font-face{
    font-family: 'Luoxblack';
    src: url('FangZhengFangSong-GBK-1.ttf') format('truetype');
}

@font-face {
    font-family: 'Kai';
    src: url('FangZhengKaiTi-GBK-1.ttf') format('truetype');
}

body {
    text-align: center;
    background: linear-gradient(-45deg, #1a1a1a, #1d2934, #242323, #281949);
    background-size: 200% 200%;
    animation: BG 10s ease infinite;
    color: var(--text-color);
    font-family: 'Luoxblack';
    margin: 5px;
    min-height: 100vh; /*保证背景铺满屏幕*/
}

@keyframes BG {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.menu{
    position: sticky;  /*粘性定位*/
    top: 0;  /*设置菜单紧贴网页顶端*/
    height: 75px;
    background-color: rgba(51, 52, 54, 0);  /*rgba可以设置透明度*/
    backdrop-filter: blur(5px);  /* 模糊效果 */
    display: flex;
    justify-content: center;
    align-items: center; 
    padding: 0 5px; /*防贴边 上下-左右*/
    border-radius: 10px;
    box-shadow: 5px 5px 5px rgba(0,0,0,0.5); 
}

.icon1{
    position:absolute;  /*脱离文档流，把头像踢出flex队列，让按钮更居中*/
    left: 0px;
    max-block-size: 100px;  /*头像破鼎*/
    align-self: flex-start;
    border-radius: 50px;  /*把头像变圆，神启动！*/
    box-shadow: 0 5px 5px rgba(0,0,0,0.5);
}

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

.btn-item{
    display: inline-block;
    position: relative;  /*让里面的伪元素以它为基准定位*/
    text-decoration: none;  /*去掉下划线*/
    border-radius: 8px;
    overflow: hidden;  /*防止彩色溢出*/
    padding: 1.8px;
}

.btn-item::before{
    content:"";  /*没有这个不会显示伪元素*/
    position: absolute;
    top: 0; left: 0;

    width:400%; height: 100%;
    background: linear-gradient(100deg, #65ff98, #ffd900, #ae70ff, #2093ff, #00ffb3); /*闭环色*/
    background-size: 25% 100%;
    z-index: -1;
    animation: radium 0.75s linear infinite;
    animation-play-state: paused;
}

.btn-item:hover::before{
    animation-play-state: running;
}

.btn-item span{
    display: block;
    background: #232323;
    color: #ccc;
    padding: 7px 20px;
    border-radius: 7px;
}

@keyframes radium{
    0%{
        transform: translateX(0%);
    }
    100%{
        transform: translateX(-25%);
    }
}

html {
    scroll-behavior: smooth;
    scroll-snap-type: y mandatory;  /*竖直吸附*/
}

.main-page, .page, .page1{
    min-height: 100vh;
    scroll-snap-align: start;  /*滚动吸附到页顶*/
    display: flex;
    justify-content: center;
    align-items: center;
}

.page1{
    justify-content: space-around;
}

.main-page{
    min-height: 90vh;
}

.wxjb{
    position: absolute;
    bottom: 0;
    font-family: 'Kai';
}

.text1 {
    height: 80vh; /*占据屏幕高度的80%*/
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: var(--text-color);
}

.text1 h1 {
    font-family: "Hiragino Sans GB";
    font-size: 3rem; /* 大标题 */
    margin-bottom: 10px;
    letter-spacing: 3px;
}

.text1 span{
    color: var(--main-color);
    letter-spacing: 0;
}

.text1 p {
    font-size: 1.2rem;
    color: #ccc;
}

.text2{
    display: flex;
    flex-flow: column wrap;
    max-width: 500px;
    font-size: 1.3rem;
}

.text2 p{
    line-height: 2.0;
}

.shi h2, .reshi h2{
    max-width: 250px;
}

.shi p{
    font-size: 2.0rem;
    max-width: 180px;
}

.reshi p{
    font-size: 2.0rem;
    line-height: 1.0;
    text-align: justify;
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background-color: var(--bg-color);
}

::-webkit-scrollbar-thumb {
    background: var(--main-color);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #116f94;
}