@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 }
}

@keyframes show-skill {
    0% { transform: translateX(-10%); opacity: 0 }
    100% { transform: translateX(0%); opacity: 1 }
}

@keyframes time-line-top {
    0% { transform: translateY(-25%); opacity: 0 }
    100% { transform: translateY(0%); opacity: 1 }
}

@keyframes time-line-bottom {
    0% { transform: translateY(25%); opacity: 0 }
    100% { transform: translateY(0%); opacity: 1 }
}

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

/* 基础样式重置：移除强制最小宽高，避免横向滚动 */
html, body, .main {
    position: relative;
    width: 100%;
    height: 100%;
    padding: 0;
    margin: 0;
    overflow: hidden; /* 禁止整体滚动 */
    font-family: "OPPOSans-L"
}

/* 容器居中，不强制固定宽度 */
.container {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: auto;
    transition: all .3s ease;
    margin: 0 auto; /* 水平居中 */
}

/* 所有区块占满屏幕，居中内容 */
.section {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100vw; /* 占满屏幕宽度 */
    height: 100vh; /* 占满屏幕高度 */
    color: #fff;
    position: relative;
}

/* 首页背景图：完整覆盖屏幕，不拉伸 */
.section.self {
    background: url("../images/background.png") no-repeat center center;
    background-size: cover; /* 覆盖屏幕且保持比例 */
}

/* 核心：首页内容容器（头像+文字）居中对齐 */
.section.self .contain {
    display: flex;
    flex-direction: column; /* 垂直排列 */
    align-items: center; /* 水平居中 */
    justify-content: center; /* 垂直居中 */
    text-align: center; /* 文字居中 */
    width: 100%;
}

/* 头像：固定尺寸256px，不缩放 */
.section.self .user-img {
    width: 256px;
    height: 256px;
    border: 4px solid #6799fe;
    border-radius: 50%;
    animation: user-img 5s linear infinite;
    /* 禁止缩放 */
    min-width: 256px;
    min-height: 256px;
}

/* 文字样式：保持原有大小，在头像下方居中 */
.section.self .title {
    font-size: 36px;
    margin: 12px 0;
}

.section.self .sub-title {
    font-size: 24px;
    margin: 8px 0;
}

.section.self .text {
    font-size: 24px;
    margin: 8px 0 20px 0;
}

/* 技能区块样式（保持原有） */
.section.skill {
    background: url("../images/skill.png") no-repeat center center;
    background-size: cover;
}

.section.skill .skill-pane {
    padding-left: 200px;
    width: 100%
}

.section.skill .skill-pane p:nth-child(2) { margin-left: 6px }
.section.skill .skill-pane p:nth-child(3) { margin-left: 9px }
.section.skill .skill-pane p:nth-child(4) { margin-left: 12px }
.section.skill .skill-pane p:nth-child(5) { margin-left: 15px }
.section.skill .skill-pane p:nth-child(6) { margin-left: 18px }
.section.skill .skill-pane p:nth-child(7) { margin-left: 21px }
.section.skill .skill-pane p:nth-child(8) { margin-left: 24px }
.section.skill .skill-pane p:nth-child(9) { margin-left: 27px }
.section.skill .skill-pane p:nth-child(10) { margin-left: 30px }
.section.skill .skill-pane p:nth-child(11) { margin-left: 33px }
.section.skill .skill-pane p:nth-child(12) { margin-left: 36px }
.section.skill .skill-pane p:nth-child(13) { margin-left: 39px }
.section.skill .skill-pane p:nth-child(14) { margin-left: 42px }
.section.skill .skill-pane p:nth-child(15) { margin-left: 45px }
.section.skill .skill-pane p:nth-child(16) { margin-left: 48px }
.section.skill .skill-pane p:nth-child(17) { margin-left: 51px }
.section.skill .skill-pane p:nth-child(18) { margin-left: 54px }
.section.skill .skill-pane p:nth-child(19) { margin-left: 57px }
.section.skill .skill-pane p:nth-child(20) { margin-left: 60px }

.section.skill .skill-pane p {
    font-size: 28px;
    margin: 12px 0;
    opacity: 0
}

.section.skill .skill-pane p.title { font-size: 36px }
.section.skill .skill-pane .hr {
    width: 450px;
    border: none;
    border-bottom: 1px solid #fff
}

.section.skill .skill-font {
    position: absolute;
    top: -64px;
    right: -64px;
    width: 256px;
    height: 256px
}

/* 技能动画（保持原有） */
.section.skill .skill-animation p:nth-child(1) { animation: show-skill 1s .2s forwards }
.section.skill .skill-animation p:nth-child(2) { animation: show-skill 1s .4s forwards }
.section.skill .skill-animation p:nth-child(3) { animation: show-skill 1s .6s forwards }
.section.skill .skill-animation p:nth-child(4) { animation: show-skill 1s .8s forwards }
.section.skill .skill-animation p:nth-child(5) { animation: show-skill 1s 1s forwards }
.section.skill .skill-animation p:nth-child(6) { animation: show-skill 1s 1.2s forwards }
.section.skill .skill-animation p:nth-child(7) { animation: show-skill 1s 1.4s forwards }
.section.skill .skill-animation p:nth-child(8) { animation: show-skill 1s 1.6s forwards }
.section.skill .skill-animation p:nth-child(9) { animation: show-skill 1s 1.8s forwards }
.section.skill .skill-animation p:nth-child(10) { animation: show-skill 1s 2s forwards }
.section.skill .skill-animation p:nth-child(11) { animation: show-skill 1s 2.2s forwards }
.section.skill .skill-animation p:nth-child(12) { animation: show-skill 1s 2.4s forwards }
.section.skill .skill-animation p:nth-child(13) { animation: show-skill 1s 2.6s forwards }
.section.skill .skill-animation p:nth-child(14) { animation: show-skill 1s 2.8s forwards }
.section.skill .skill-animation p:nth-child(15) { animation: show-skill 1s 3s forwards }
.section.skill .skill-animation p:nth-child(16) { animation: show-skill 1s 3.2s forwards }
.section.skill .skill-animation p:nth-child(17) { animation: show-skill 1s 3.4s forwards }
.section.skill .skill-animation p:nth-child(18) { animation: show-skill 1s 3.6s forwards }
.section.skill .skill-animation p:nth-child(19) { animation: show-skill 1s 3.8s forwards }
.section.skill .skill-animation p:nth-child(20) { animation: show-skill 1s 4s forwards }

/* 时间线区块（保持原有） */
.section.time-line {
    background: url("../images/time-line.jpg") no-repeat center center;
    background-size: cover;
}

.section.time-line ul {
    display: flex;
    width: 100%;
    height: 80%;
    position: relative
}

.section.time-line ul::before {
    content: " ";
    position: absolute;
    top: 50%;
    width: 100%;
    height: 2px;
    background: linear-gradient(45deg, #ff0000 0%, #ffb600 11%, #fff600 22%, #a5ff00 33%, #00a9ff 44%, #0400ff 55%, #8a00fc 66%, #ff00e9 77%, #ff0059 88%, #ff0000 100%)
}

.section.time-line ul li { width: 100%; height: 100% }

.section.time-line ul li .time-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    width: 400px;
    height: 250px;
    color: #000;
    background-color: #fff;
    border-radius: 16px;
    box-shadow: 5px 5px 10px rgba(0, 0, 0, .5);
    opacity: 0
}

.section.time-line ul li .time-card::before {
    content: " ";
    position: absolute;
    right: calc(50% - 32px);
    border-width: 32px;
    border-style: solid;
    border-color: transparent
}

.section.time-line ul li .time-card p {
    font-size: 18px;
    margin: 4px 0
}

.section.time-line ul li .time-card p.title {
    font-size: 32px;
    margin-bottom: 8px
}

.section.time-line ul li:nth-child(odd) .time-card::before {
    border-top-color: #fff;
    bottom: -64px
}

.section.time-line ul li:nth-child(even) .time-card::before {
    border-bottom-color: #fff;
    top: -64px
}

.section.time-line ul li:nth-child(2n) .time-card { position: absolute; bottom: 0 }

/* 时间线动画（保持原有） */
.section.time-line .time-line-animation>li:nth-child(1) .time-card { animation: time-line-top 1s .5s forwards }
.section.time-line .time-line-animation>li:nth-child(2) .time-card { animation: time-line-bottom 1s 1s forwards }
.section.time-line .time-line-animation>li:nth-child(3) .time-card { animation: time-line-top 1s 1.5s forwards }

/* 爱好区块（保持原有） */
.section.hobby {
    background: url("../images/hobby.png") no-repeat center center;
    background-size: cover;
}

.section.hobby .contain {
    flex-direction: row;
    justify-content: space-around
}

.section.hobby .hobby-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 280px;
    height: 450px;
    padding: 64px;
    border-radius: 32px
}

.section.hobby .hobby-card.left { background-color: rgba(255, 194, 204, .7) }
.section.hobby .hobby-card.left .art { border: 4px solid #f3add1 }
.section.hobby .hobby-card.mid { background-color: rgba(149, 255, 184, .7) }
.section.hobby .hobby-card.mid .art { border: 4px solid #caf9d1 }
.section.hobby .hobby-card.right { background-color: rgba(106, 178, 255, .7) }
.section.hobby .hobby-card.right .art { border: 4px solid #8ab4e9 }

.section.hobby .hobby-card .art {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    margin-bottom: 32px
}

.section.hobby .hobby-card p {
    text-align: center;
    margin: 4px 0
}

.section.hobby .hobby-card p.title { font-size: 28px }
.section.hobby .hobby-card p.sub-title { font-size: 22px }

/* 联系区块（修改为横向排列） */
.section.contact {
    background: url("../images/contact.jpg") no-repeat center center;
    background-size: cover;
    color: #000
}

.section.contact .title { 
    font-size: 64px;
    margin-bottom: 40px;
}

.section.contact .contact-pane {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    padding: 40px 20px;
    background-color: rgba(255, 255, 255, .5);
    border-radius: 4px;
}

.section.contact .contact-pane .contact-item {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 25%;
    padding: 20px;
    font-size: 20px;
    text-align: center;
}

.section.contact .contact-pane .contact-item a { 
    width: 100px; 
    height: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.section.contact .contact-pane .contact-item img {
    width: 100px;
    height: 100px;
    border-radius: 16px;
    object-fit: contain;
}

.section.contact .footer p {
    font-size: 24px;
    color: #fff;
    text-align: center;
    margin-top: 40px;
}

/* 通用容器样式 */
.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: 48px;
    height: 48px;
    transition: all .5s
}

.section .contain .down-link .down-img { width: 48px; height: 48px }
.section .contain .down-link:hover { opacity: .6 }

/* 右侧导航点 */
.controls {
    position: absolute;
    top: 50%;
    right: 20px;
    transform: translateY(-50%)
}

.controls ul { list-style: none }

.controls li {
    width: 12px;
    height: 12px;
    border: 1px solid #fff;
    cursor: pointer;
    border-radius: 50%;
    transition: all .5s;
    margin-top: 16px
}

.controls li.active { background-color: #fff }