* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', sans-serif;
    background-color: #f5f5f5;
    overflow-x: hidden;
}

img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.page {
    width: 100vw;
    min-height: 100vh;
    position: relative;
}

#cover {
    width: 100vw;
    height: auto;
}

/* 封面页样式 */
.cover-content {
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cover-content img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 启动页样式 */
.start-content {
    width: 100vw;
    height: 100vh;
}

.text-box {
    background-color: rgba(255, 255, 255, 0.9);
    padding: 30px;
    border-radius: 15px;
    max-width: 80%;
    text-align: center;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

.text-box p {
    color: #666;
    margin-bottom: 15px;
    line-height: 1.5;
}

#enter-btn {
    border: none;
    cursor: pointer;
}

#enter-btn:hover {
    background-color: #45a049;
}

/* 长图展示页样式 */
.scroll-content {
    min-width: 100%;
    height: 100vh;
    overflow-x: hidden;
    overflow-y: scroll;
    position: relative;
    display: flex;
    flex-direction: column;
}

.ver-scroll {
    display: flex;
    position: relative;
}

.long-image {
    height: auto;
    width: 100vw;
    object-fit: cover;
}

.long-image-second {
    position: absolute;
    right: 13vw;
    top: 0;
    z-index: 10;
}


@keyframes breathing {
    0% {
        opacity: 0.5;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(2.5);
    }

    100% {
        opacity: 0.5;
        transform: scale(0.9);
    }
}

.dianji-btn {
    width: 60px;
    height: 60px;
    margin-top: 30vw;
    animation: breathing 2s infinite ease-in-out;
    opacity: 1;
    transform: rotate(90deg) !important;
}

.long-image-second-01 {
    width: 27vw;
    height: auto;
    object-fit: cover;
    margin-right: 16vw;
    margin-top: 21vw;
    opacity: 1;
}

.long-image-second-02 {
    width: 72vw;
    height: auto;
    object-fit: cover;
    margin-top: 32vw;
    opacity: 0;
    transition: opacity 0.3s;
}


#living-room {
    position: absolute;
    right: -0;
    bottom: 0;
    width: 100vh;
    height: 100vw;
    transform: rotate(90deg);
}

/* 客厅祝福语页样式 */
.living-room-content {
    width: 103vw;
    height: 35vw;
    display: flex;
    align-items: end;
    justify-content: flex-start;
    background: url('./images/17-1.png');
    background-size: contain;
    background-repeat: no-repeat;
    gap: 10px;
    padding: 4.68vw 6.25vw;
    margin-top: 17vw;
    /* transform: rotate(90deg); */
    position: relative;
}

.living-room-content-inner {
    display: flex;
    align-items: end;
    justify-content: flex-start;
    gap: 10px;
    width: calc(103vw - 13vw);
    padding: 5px 30px;
    position: relative;
}

#blessing-input {
    padding: 10px;
    border: 1px solid #0E77A5;
    border-radius: 5px;
    font-size: 16px;
    margin-top: 100px;
    padding-right: 50px;
    width: 100%;
    height: calc(5.31vw + 2px);
    min-height: 38px;
    line-height: calc(5.31vw + 2px);
}

#submit-blessing {
    color: #fff;
    padding: 2px 5px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
    height: 5.31vw;
    min-height: 34px;
    line-height: 5.31vw;
    background-color: red;
    position: absolute;
    width: 6vw;
    min-width: 50px;
    right: 32px;
    bottom: 7px;
}

#submit-blessing:hover {
    background-color: transparent;
}

/* 弹幕样式 */
#danmaku-container {
    position: relative;
    width: 100vh;
    height: 32vw;
    padding-top: 10vw;
    /* overflow: hidden; */
    /* transform: rotate(90deg); */
}

.danmaku {
    position: absolute;
    white-space: nowrap;
    font-size: 16px;
    color: #0E77A5;
    font-weight: bold;
    animation: danmaku-move 8s linear;
    border: 1px solid #0E77A5;
    border-radius: 16px;
    background-color: #f9ecca;
    padding: 2px 20px;
}

.share-icon {
    width: 27vw;
    height: auto;
    position: fixed;
    top: 60px;
    right: -30px;
    transform: rotate(90deg);
    opacity: 0;
}

.scroll-tip {
    width: 27vw;
    height: auto;
    position: fixed;
    bottom: 60px;
    left: -30px;
    opacity: 0;
}

#music-btn {
    width: 30px;
    height: 30px;
    margin-top: 20vw;
    animation: breathing 2s infinite ease-in-out;
    opacity: 1;
    transform: rotate(90deg) !important;
    position: fixed;
    bottom: 50px;
    right: 20px;
    z-index: 10;
}

@keyframes danmaku-move {
    from {
        transform: translateX(250%);
    }

    to {
        transform: translateX(-250%);
    }
}