* {
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
}

body {
    background: rgb(43, 47, 78);
    min-height: 1500px;
    transition: background-color 0.5s ease;
}
.layout-lock {
    width: 1240px;
    margin: 0 auto;
    overflow-x: auto;
    background: inherit;
}
.content {
    padding: 2rem;
    font-family: system-ui;
    max-width: 900px;
    margin: 0 auto;
    /*background: rgba(225, 225, 225, 0.7);*/
    color: rgb(169, 169, 182);
    border-radius: 1rem;
    backdrop-filter: blur(5px);
}
.content h1 {
    font-size: 3rem;
}
.content p,.About p,.Contact p {
    font-style: italic;
    background-color: rgba(126, 126, 126, 0.2);
    width: fit-content;
}
.About,.Contact {
    padding: 2rem;
    font-family: system-ui;
    max-width: 900px;
    margin: 0 auto;
}
.content h1,.About h1,.Contact h1 {
    font-size: 3rem;
    border-bottom: 5px solid rgb(25, 8, 67);
}
#myVideo {
    display: block;
    max-width: 900px;
    margin:0 50px 0 50px;
    border: 5px solid rgb(25, 8, 67);
    border-radius: 1rem;
}
section {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    overflow-x: auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

section::before {
    content: '';
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 100px;
    background: linear-gradient(to top,rgb(52, 57, 104), transparent);
    z-index: 10000;
}

section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgb(38, 41, 71);
    mix-blend-mode: color;
    z-index: 10000;
}

section img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

#text {
    position: relative;
    flex-wrap: nowrap;
    z-index: 1;
    color: #f2f8f7f7;
    font-size: 6rem;
}

#road {
    z-index: 2;
}

/* ===== 功能2：错位叠放画廊区域  ===== */
.image-container {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 35px 45px;
    max-width: 100px;
    padding: 0 20px;
    margin-bottom: 20px;
}

.image-box {
    position: relative;
    display: block;
    width: 100px;
    height: 100px;
    border-radius: 28px;
    overflow: hidden;
    text-decoration: none;
    transition: all 0.35s ease;
    box-shadow: 0 20px 30px -12px rgba(0, 0, 0, 0.25);
    background: #fff;
}

/* 旋转偏移 */
.box-1 {
    transform: rotate(-3deg) translateY(8px);
    z-index: 5;
}

.box-2 {
    transform: rotate(4deg) translateY(-10px) translateX(6px);
    z-index: 4;
}

.box-3 {
    transform: rotate(-5deg) translateY(12px) translateX(-8px);
    z-index: 6;
}

.box-4 {
    transform: rotate(2deg) translateY(-5px) translateX(12px);
    z-index: 3;
}

.image-box img {
    width: 100%;
    height: 100%;
    object-fit: bottom;
    display: block;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
    opacity: 0;
    pointer-events: none;
}

.overlay p {
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 12px 20px;
    border-radius: 60px;
    font-weight: 500;
}

.image-box:hover .overlay {
    opacity: 1;
    background: rgba(0, 0, 0, 0.25);
}

/* 响应式微调 */
@media (max-width: 850px) {
    .image-box {
        width: 240px;
    }

    .image-box img {
        height: 260px;
    }

    .box-1,
    .box-2,
    .box-3,
    .box-4 {
        transform: rotate(0deg) translateY(0px);
    }

    .box-1 {
        transform: rotate(-2deg) translateY(5px);
    }

    .box-2 {
        transform: rotate(3deg) translateY(-5px);
    }
}

.navbar{
    display:flex;
    justify-content: space-between;
    align-items: center;
    background-color: rgb(222, 222, 228);
    padding: 10px 20px;
    width: 100%;
    margin: 0 auto;
    margin-bottom: 30px;
    box-sizing: border-box;
    position: sticky;
    z-index: 1000;
}
.navbar h1{
    float: none;
    font-size: 1.2rem;
    color: rgb(126, 126, 128);
}
.navbar nav a{
    margin-left: 20px;
    text-decoration: none;
    color: rgb(52, 57, 104);
}
.navbar nav a:hover{
    text-decoration: underline;
}

article{
    width: 1000px;
    margin: 0 auto;
    float: left;
}
#a-wrapper {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

#a-wrapper a {
    background:  rgb(69, 32, 255);
    color: white;
    padding: 0.5rem 1.8rem;
    border-radius: 15px;
    text-decoration: none;
    font-weight: bold;
    transition: 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

#a-wrapper a:hover {
    background:  rgb(230, 220, 255);
    color: rgb(52, 57, 104);
}


aside{
    background-color: rgb(188, 181, 206);
    width: 150px;
    float: right;
    margin-top: 10px;
    margin-right: 60px;
    border-top: 6px solid rgb(25, 8, 67);
    border-bottom: 6px solid rgb(25, 8, 67);
}
aside p{
    font-size: 10px;
}
footer{
    background-color: lightgray;
    clear: both;
}
/* 返回顶部火箭 */
.pointer {
    position: fixed;
    right: 50px;
    transform: translate(-3%);
    bottom: 75px;
    height: 46px;
    width: 51px;
    overflow: hidden;
    z-index: 1000;
    transition: ease-in-out 3.5s, ease-out 3s
}

.pointer div {
    width: 45px;
    height: 40px;
    position: absolute;
    transition: all .5s;
    border-radius: 15px;
    background: aliceblue;
    display: flex;
    align-items: center;
    justify-content: center
}

#pointer1 {
    top: 0;
    left: 0
}

#pointer2 {
    top: 49px;
    left: 0
}

.pointer:hover #pointer1 {
    top: -49px
}

.pointer:hover #pointer2 {
    top: 0
}

.pointer i {
    font-size: 22px;
    display: inline-block;
    line-height: 40px;
    width: 100%;
    text-align: center;
    margin: 2% 0;
    font-weight: 800
}

#pointer1 i {
    font-size: 30px
}

#pointer {
    display: none
}