/* 基础样式与动画 */
@keyframes user-img {
    0% {
        box-shadow: 0px 0px 0px 0px #6799fe
    }

    50% {
        box-shadow: 0px 0px 100px 10px #6799fe
    }

    100% {
        box-shadow: 0px 0px 0px 0px #6799fe
    }
}

@font-face {
    font-family: "OPPOSans-L";
    font-weight: 1 999;
    src: url("../fonts/OPPOSans-L.ttf")
}

/* 基础设置 - 使用相对单位 */
html {
    font-size: 16px;
}

html,
body,
.main {
    position: relative;
    width: 100%;
    height: 100%;
    padding: 0;
    margin: 0;
    overflow-y: hidden;
    overflow-x: auto;
    font-family: "OPPOSans-L"
}

.container {
    position: absolute;
    top: 0;
    width: 100%;
    height: auto;
    transition: all .3s ease;
}

.section {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    width: 100%;
    height: 100vh;
    color: #fff
}

/* 个人信息区域样式 */
.section.self {
    background: url("https://oss.qing630.com/homepage/background.png");
    background-size: cover; /* 改为cover以适应不同屏幕 */
    background-position: center;
    background-repeat: no-repeat
}

.section.self .user-img {
    width: 16rem; /* 使用rem单位 */
    height: 16rem;
    border: 4px solid #6799fe;
    border-radius: 50%;
    animation: user-img 5s;
    animation-iteration-count: infinite;
    animation-timing-function: linear
}

.section.self .title {
    font-size: 2.25rem;
    margin: 0.75rem
}

.section.self .sub-title {
    font-size: 1.5rem;
    margin: 0.75rem
}

.section.self .text {
    font-size: 1.5rem;
    margin: 0.75rem
}

.section .contain {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    width: 80%;
    height: 80%
}

.section .contain .down-link {
    position: absolute;
    bottom: 0;
    width: 3rem;
    height: 3rem;
    transition: all .5s
}

.section .contain .down-link .down-img {
    width: 100%;
    height: 100%
}

.section .contain .down-link:hover {
    opacity: .6
}

/* 媒体查询 - 适配不同屏幕尺寸 */
/* 平板设备 */
@media (max-width: 768px) {
    html {
        font-size: 14px;
    }
    
    .section.self .user-img {
        width: 14rem;
        height: 14rem;
    }
}

/* 手机设备 */
@media (max-width: 480px) {
    html {
        font-size: 12px;
    }
    
    .section.self .user-img {
        width: 12rem;
        height: 12rem;
    }
    
    .section.self .title {
        font-size: 2rem;
    }
    
    .section.self .sub-title,
    .section.self .text {
        font-size: 1.25rem;
        text-align: center;
        padding: 0 1rem;
    }
}

/* 小屏手机 */
@media (max-width: 320px) {
    html {
        font-size: 10px;
    }
}
