
*{
    margin:auto;
    padding:0;
    box-sizing: border-box;
}
body {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: url(s/all2.0.jpg);
    background-attachment: fixed;
    background-size: 51.4%;
    background-position: center;
    background-repeat: repeat;
    margin: 0;
    padding: 0;
    height: auto;
    min-height: 100vh;
    padding-bottom: 120px;
}

.main{
    width:1200px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    background-color:rgba(0, 0, 0, 0.4);
    position: relative;
    margin-top: 60px;
}

.nav {
    width: 100%;
    margin: 0;
    height: 60px;
    background-color: rgba(0, 0, 0, 0.5);
    position: fixed;
    top: 0;
    z-index: 100;
    padding-left: 20px;
    display: flex;
    justify-content:space-between;
    align-items: center;
}
.nav ul {
    width: 40%;
    display: flex;
    justify-content: flex-start;
    padding: 0;
    margin: 0;
}
.nav ul li {
    display: flex;
    width: 100%;
    float: none;
    line-height: 60px;
    min-width: 100px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.nav ul li:hover {
    background-color: rgba(0, 0, 0, 0.7);
}
.nav ul li a {
    text-decoration: none;
    color:antiquewhite;
    flex-shrink: 0;
}
.nav-title {
    font-family: 'FancyFont', 'Brush Script MT', cursive;
    color:aliceblue;
    font-size: 24px;
    position: relative;
    margin-right: 100px;
    
}/*以上导航栏*/


.begin{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}
#start-button {
    font-size: 6em;
    background-color: rgba(0, 0, 0, 0.3);
    color: #fff;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    text-decoration: none;
}
#start-button:hover {
    box-shadow: 0 0 10px white, 0 0 20px white;
    border-color: aliceblue;
}
.hidden {
    display: none;
}/*begin*/


.slider {
    width: 1200px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    border: 14px dashed #d0e9b9;
}
.slider .imgs img {
    width: 1030px;
    height: auto;
    margin-bottom: 10px;
    display: none;
}
.navi {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 1200px; /* 与 main 宽度一致 */
    display: flex;
    justify-content: space-between;
    pointer-events: none; /* 防止按钮遮挡图片交互 */
}
.prev,
.next {
    cursor: pointer;
    padding: 18px;
    color: azure;
    font-weight: bold;
    font-size: 18px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
    background-color: rgba(0, 0, 0, 0.5);
    pointer-events: auto; /* 恢复按钮点击事件 */
    margin: 0 28px;
}
.next {
    border-radius: 3px 0 0 3px;
}
.prev:hover,
.next:hover {
    background-color: rgba(0, 0, 0, 0.8);
}/*轮播图*/


.story{
    width: 1100px;
    height: auto;
    margin: 30px auto;
    margin-top: 80px;
    background-color: rgba(0, 0, 0, 0.5);   
}
.st{
    background: url(s/b1.jpg);
    background-repeat: no-repeat;
    background-size: 1080px auto;
    background-position: center;
}
.sto h1{
    width: 500px;
    color: antiquewhite;
    background-color: rgba(0, 0, 0, 0.6);
    font-size: 40px;
    text-align: center;
    margin-bottom: 0;
}
.st p{
    width: 1100px;
    color: #201d1d;
    font-size: 20px;
    text-indent: 2em;
    line-height: 1.6;
    padding: 30px 90px;
}/*故事介绍*/


.footer{
    width:100%;
    height:60px;
    line-height: 60px;
    background-color: rgba(40, 41, 35, 0.204);
    text-align: center;
    clear: both;
    position: absolute;
    bottom: 0;
}/*底部*/


.sleep img{
    width: 950px;
    height:auto;
}
.wd{
    width: 1200px;
    margin: 0 auto;
    margin-top: 4px;
    height: 60px;
    background-color:  rgba(0, 0, 0, 0.4);
}
.wd ul{
    width:1200px;
    display: flex;
    justify-content: space-between;
    list-style: none;
}
.wd li{
    width:434px;
    height:60px;
    line-height: 60px;
    text-align: center;
}
.wd li:hover{
    background-color:rgba(0, 0, 0, 0.6);
}
.wd li a{
    text-decoration: none;
    color:#f0f0f0;
}
iframe {
    width: 100%;
    min-height: 700px;
    border: 10px dashed #d0e9b9;
}/*内联框架*/


.ju {
    margin-top: 10px;
    background: linear-gradient(to right, rgba(234, 245, 32, 0.156), rgba(234, 158, 192, 0.195));
    width: 1200px;
    padding: 40px;
    text-align: center;
    font-size: 20px;
    margin-bottom: 20px;
}

.jul {
    margin-top: 50px;
    width: 48%;
    height: auto;
    font-size: 20px;
    background-color: rgba(164, 142, 44, 0.3);
    float: left;
    box-sizing: border-box; 
    padding: 10px;
}

.jum {
    margin-top: 50px;
    width: 4px;
    height: 84%;
    background-color: #404000;
    float: left; 
    margin: 0 1%; 
}

.jur {
    margin-top: 50px;
    width: 48%;
    height: auto;
    font-size: 20px;
    background-color: rgba(0, 16, 115, 0.12);
    float: right;
    box-sizing: border-box; 
    padding: 10px; 
}/*剧情*/



.timephoto{
    width: 550px;
    margin-top:200px;
}
.timephoto img{
    width: 100%;
    object-fit: contain;
}
.timeline {
    position: relative;
    max-width: 1000px;
    margin:0 auto;
    padding: 50px 0;
    background-color: rgba(0, 0, 0, 0.337);
    margin-top: 2px;
}

.timeline::before {
    content: "";
    position: absolute;
    width: 6px;
    background-color: #404040;
    top: 16px;
    bottom: 18px;
    left: 50%;
    margin-left: -2px;
}

.timeline-item {
    display: flex;
    align-items: center;
    margin-bottom: 80px;
    transition: transform 0.5s ease;
}

.timeline-item:hover {
    transform: scale(1.2);
}

.timeline-content {
    width: calc(70% - 25px);
    background-color: rgba(240, 240, 209, 0.6);
    padding: 15px;
    border-radius: 6px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.text-content {
    width: 50%;
    padding-right: 30px;
    padding-left: 30px;
}

.timeline-content h3 {
    margin-top: 0;
    color: #333;
}

.timeline-content p {
    margin-bottom: 10px;
    color: #404000;
}

.timeline-img {
    width: 46%;
    height: auto;
    border-radius: 6px;
    object-fit: contain;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .timeline-content {
        flex-direction: column;
    }
    .text-content {
        width: 100%;
        padding-right: 0;
        margin-bottom: 15px;
    }
    .timeline-img {
        width: 100%;
    }
}/*时间轴*/

