* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

@font-face {
    font-family: "ys";
    src: url(原神.ttf);
}

body {
    background-color: #f5f5f5;
    overflow-x: hidden;
    color: #fff;
    font-family: "ys", sans-serif;
}

/* 顶部标题区域 */
.header {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh;
    max-width: 100%;
    margin: 0 auto;
    position: relative;
    transition: all 0.4s ease;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    background-image: url("https://i.postimg.cc/vH1D8kLX/image.png");
    background-size: cover;
}

.header h1 {
    font-size: 3.2rem;
    
}
.header li{
    list-style: none;
    margin-top: 10px;
    font-size: 1.3rem;
    max-width: 800px;
    margin: 25px auto 5px;
    color: #e0e0e0;
    text-align: center;
    align-items: center;
}
.header ul {
    padding-bottom: 15px;
}

/* 内容区 */
.ys-lvtu {
    width: 100%;
    display: flex;
    flex-direction: column;
    padding: 20px;
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto;
}

.box {
    display: flex;
    height: 260px;
    position: relative;
    transition: all 0.4s ease;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.box>img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
    opacity: 0.85;
}

#img1 {
    transform-origin: left;
}

#img2 {
    transform-origin: right;
}

.box:hover #img1 {
    transform: scale(1.05);
    opacity: 1;
}

.box:hover #img2 {
    transform: scale(1.05);
    opacity: 1;
}

.hidden-1 {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* background: linear-gradient(transparent 20%, rgba(0, 0, 0, 0.7)); */
    opacity: 0;
    transition: opacity 0.4s ease;
    display: flex;
    justify-content: center;
    align-items: center;
}

.box:hover .hidden-1 {
    opacity: 1;
}

.hidden-2,
.hidden-4 {
    position: absolute;
    height: 95%;
    width: auto;
    top: 5%;
    object-fit: contain;
}

.hidden-2 {
    right: 30px;
}

.hidden-4 {
    left: 30px;
}

.hidden-3 {
    font-size: 3rem;
    color: #fff;
    text-align: center;
    position: relative;
    padding: 15px 30px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 2;
}

.hidden-3:hover {
    transform: translateY(-5px);
}

.hidden-3::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -15px;
    width: 40%;
    height: 3px;
    background-color: #fff;
    border-radius: 5px;
    transform: translateX(-50%);
    transition: all 0.3s ease;
}

.hidden-3:hover::after {
    width: 60%;
    background-color: #ffc107;
}

.img5 {
    width: 40px;
    height: 40px;
    filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.8));
}

/* 二级界面样式 - 已修复滚动问题 */
.lvtu2 {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #ffffff49;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.lvtu2.active {
    opacity: 1;
    visibility: visible;
}

.lvtu2 .container {
    display: flex;
    flex-direction: column;
    width: 90%;
    max-width: 1000px;
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
    height: 90vh;
}

.title-section {
    background: #ffffff49;
    padding: 20px 30px;
    display: flex;
    align-items: center;
    gap: 25px;
    border-bottom: 2px solid #000;
}

.region-icon {
    width: 60px;
    height: 60px;
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.6));
    
}
.region-icon-left{
    background-image: url(https://i.postimg.cc/XqJXFHRN/mihoyo.png);
}
.region-title {
    font-size: 2.5rem;
    color: #000;
    flex: 1;
    text-align: center;
}

.content-section {
    flex: 1;
    overflow-y: auto;
    padding: 25px;
    background: #fff;
}

.guo {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.lvtu-jt {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.lvtu-jt:hover {
    background:#ffffff49;
    transform: translateY(-5px);
}

.lvtu-jt h2 {
    font-size: 1.8rem;
    color: #000;
    margin-bottom: 12px;
    border-bottom: 2px solid rgba(255, 193, 7, 0.3);
    padding-bottom: 8px;
}

.lvtu-jt span {
    display: block;
    font-size: 1.1rem;
    color: #000;
    line-height: 1.6;
    margin-bottom: 15px;
}

.lvtu-jt img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    margin-top: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
}

.close-btn {
    position: absolute;
    top: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: #fff;
    border: none;
    border-radius: 50%;
    color: #000;
    font-size: 1.8rem;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
    z-index: 1001;
}

.close-btn:hover {
    transform: rotate(90deg) scale(1.1);
    background: pink;
    border: 1px dashed rgb(233, 127, 144);
}



@media (max-width: 768px) {
    .box {
        height: 200px;
    }

    .hidden-3 {
        font-size: 2rem;
        padding: 10px 20px;
    }

    .hidden-2,
    .hidden-4 {
        height: 70%;
    }

    .lvtu2 .container {
        width: 95%;
    }

    .title-section {
        padding: 15px 20px;
    }

    .region-title {
        font-size: 2rem;
    }

    .region-icon {
        width: 40px;
        height: 40px;
    }
}

/* 滚动条美化 */
.content-section::-webkit-scrollbar {
    width: 10px;
}

.content-section::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
}

.content-section::-webkit-scrollbar-thumb {
    background: linear-gradient(#d1ccbf, #ff9800);
    border-radius: 10px;
}

.content-section::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(#e6dccd, #ff5722);
}