.myModal {
    font-family: DongJing;
    width: 100vw;
    height: 320px;
    position: fixed;
    bottom: -320px;
    left: 0;
    opacity: 0;
    transition: all 1s;
}

.myModal.show {
    bottom: 40px;
    opacity: 1;
}

.myModal>.title {
    text-align: center;
    font-size: 32px;
    margin-bottom: 10px;
    color: pink;
}

.myModal>.sub_title {
    text-align: center;
    font-size: 14px;
    margin-bottom: 10px;
    color: rgba(255, 192, 203, 0.8);
}

.myInput {
    font-size: 16px;
    flex: 1;
    height: 48px;
    border-radius: 8px;
    background: rgba(239, 175, 186, 0.6);
    border-color: pink;
    outline: none;
    color: white;
    box-sizing: border-box;
    padding: 0 6px
}

.myButton {
    background: pink;
    width: 60px;
    height: 48px;
    text-align: center;
    line-height: 48px;
    color: white;
    border: none;
    border-radius: 8px;
    margin-left: 20px;
    font-size: 16px;
    padding: 0;
}

.texts {
    width: 80vw;
    height: 180px;
    /* background-color: gray; */
    margin: 20px auto 0;
    overflow-y: auto;
    overflow-x: hidden;
}

.texts {
    font-size: 18px;
    color: white;
}

.message {
    max-width: 80%;
    width: max-content;
    position: relative;
    margin: auto;
    border-radius: 8px;
    padding: 4px;
    margin-bottom: 10px;
}

.message.my {
    background: pink;
}

.message.other {
    background-color: rgb(94, 148, 13);
}

.my-message {
    max-width: 80%;
}

.other-message {
    max-width: 80%;
}


.special_text {
    color: pink;
}


.important_text {
    font-weight: bold;
    font-size: 24px;

}


/* 花束弹窗 */
.flowerModal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

.flowerModal.show {
    opacity: 1;
    pointer-events: auto;
}

.flowerModal-content {
    background: rgba(20, 20, 20, 0.85);
    border-radius: 25px;
    padding: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 100px rgba(0, 0, 0, 0.3);
    text-align: center;
    max-width: 700px;
    width: 85vw;
    min-width: 320px;
    max-height: 80vh;
    border: 2px solid rgba(255, 255, 255, 0.1);
    position: relative;
    transform: scale(0.8);
    transition: transform 0.5s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 25px;
    box-sizing: border-box;
}

.flowerModal.show .flowerModal-content {
    transform: scale(1);
}

/* 花束视频 */
.flower-video {
    width: 100%;
    max-width: 100%;
    height: auto;
    max-height: 300px;
    border-radius: 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    display: block;
    object-fit: contain;
    margin: 0;
}

/* 文字 */
.flower-text {
    font-size: 18px;
    color: #ffffff;
    font-weight: bold;
    margin: 0 0 25px 0;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.8);
    font-family: DongJing;
    animation: textGlow 2s ease-in-out infinite;
}

/* 关闭按钮 */
.flower-close-btn {
    background: linear-gradient(135deg, #ff6b9d, #ff8fab);
    color: white;
    border: none;
    border-radius: 25px;
    padding: 12px 35px;
    font-size: 18px;
    font-family: DongJing;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(255, 107, 157, 0.4);
    transition: all 0.3s ease;
    font-weight: bold;
}

.flower-close-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 157, 0.6);
}

.flower-close-btn:active {
    transform: translateY(0);
}

/* 动画 */
@keyframes textGlow {
    0%, 100% {
        text-shadow: 2px 2px 4px rgba(255, 192, 203, 0.5);
    }
    50% {
        text-shadow: 2px 2px 8px rgba(255, 192, 203, 0.8), 0 0 15px rgba(255, 192, 203, 0.5);
    }
}

/* 表白弹窗样式 */
.loveModal {
    font-family: DongJing;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

.loveModal.show {
    opacity: 1;
    pointer-events: auto;
}

.loveModal-content {
    background: rgba(20, 20, 30, 0.95);
    border-radius: 25px;
    padding: 20px;
    box-sizing: border-box;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 100px rgba(255, 192, 203, 0.3);
    text-align: center;
    max-width: 700px;
    width: 85vw;
    min-width: 320px;
    max-height: 80vh;
    border: 2px solid rgba(255, 255, 255, 0.15);
    transform: scale(0.8);
    transition: transform 0.5s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 25px;
}

.loveModal.show .loveModal-content {
    transform: scale(1);
}

/* 标题 */
.loveModal-name {
    font-size: 32px;
    color: #fff;
    margin: 0;
    font-weight: bold;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8), 0 0 20px rgba(255, 192, 203, 0.6);
    letter-spacing: 1px;
}

/* 视频容器 */
.love-video-container {
    position: relative;
    width: 100%;
    margin: 0;
}

/* 表白弹窗视频 */
.love-video {
    width: 100%;
    max-width: 100%;
    height: auto;
    max-height: 300px;
    border-radius: 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    display: block;
    object-fit: contain;
}

/* 问题文字 - 覆盖在视频下方 */
.loveModal-question {
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 24px;
    color: #fff;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.9), 0 0 20px rgba(255, 192, 203, 0.6);
    font-weight: 500;
    margin: 0;
    z-index: 2;
    /* background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent); */
    padding: 15px 20px;
    width: 100%;
    box-sizing: border-box;
}

.loveModal-buttons {
    display: flex;
    justify-content: center;
    gap: 25px;
    flex-wrap: nowrap;
    width: 100%;
    margin-top: 10px;
}

.loveModal-button {
    border: none;
    border-radius: 25px;
    /* padding: 12px 40px; */
    font-size: 20px;
    font-family: DongJing;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: bold;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 50%;
}

.loveModal-button-yes {
    background: linear-gradient(135deg, #ff6b9d, #ff8fab, #ff69b4);
    background-size: 200% 200%;
    color: white;
    box-shadow: 0 6px 20px rgba(255, 107, 157, 0.5), 0 0 30px rgba(255, 107, 157, 0.3);
    /* padding: 16px 55px; */
    font-size: 24px;
    position: relative;
    overflow: hidden;
    animation: buttonGlow 2s ease-in-out infinite;
    width: 70%;
}

.loveModal-button-yes::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.loveModal-button-yes:hover::before {
    left: 100%;
}

.loveModal-button-yes:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(255, 107, 157, 0.7), 0 0 40px rgba(255, 107, 157, 0.4);
    animation: buttonPulse 0.6s ease-in-out infinite;
}

.loveModal-button-yes:active {
    transform: translateY(-1px) scale(1.02);
}

.heart-icon {
    display: inline-block;
    font-size: 22px;
    margin-right: 8px;
    animation: heartBeat 1.2s ease-in-out infinite;
    filter: drop-shadow(0 2px 4px rgba(255, 107, 157, 0.5));
}

@keyframes buttonGlow {
    0%, 100% {
        box-shadow: 0 6px 20px rgba(255, 107, 157, 0.5), 0 0 30px rgba(255, 107, 157, 0.3);
    }
    50% {
        box-shadow: 0 6px 25px rgba(255, 107, 157, 0.7), 0 0 40px rgba(255, 107, 157, 0.5);
    }
}

@keyframes buttonPulse {
    0%, 100% {
        transform: translateY(-3px) scale(1.05);
    }
    50% {
        transform: translateY(-3px) scale(1.08);
    }
}

@keyframes heartBeat {
    0%, 100% {
        transform: scale(1);
    }
    25% {
        transform: scale(1.15);
    }
    50% {
        transform: scale(1);
    }
    75% {
        transform: scale(1.1);
    }
}

.loveModal-button-no {
    background: linear-gradient(135deg, #95a5a6, #7f8c8d);
    color: white;
    box-shadow: 0 4px 15px rgba(127, 140, 141, 0.4);
    position: relative;
    will-change: transform;
    user-select: none;
    /* padding: 10px 30px; */
    font-size: 18px;
    width: 30%;
}

.loveModal-button-no:hover {
    box-shadow: 0 6px 20px rgba(127, 140, 141, 0.6);
}

.loveModal-button-no:active {
    opacity: 0.8;
}

.heart-broken {
    display: inline-block;
    font-size: 20px;
    margin-right: 5px;
    animation: heartBreak 1s ease-in-out infinite;
}

@keyframes heartBreak {
    0%, 100% {
        transform: scale(1) rotate(0deg);
    }
    25% {
        transform: scale(0.9) rotate(-5deg);
    }
    75% {
        transform: scale(0.9) rotate(5deg);
    }
}