
body {
    margin: 0;
    font-family: sans-serif;
    background: linear-gradient(180deg,#00111a 0%, #051428 100%);
    color: #fff;
    text-align: center;
}

.hidden {
    display: none;
}

/* 调整按钮位置 */
#wish-actions {
    bottom: 20px;
    right: 20px;
}


/* 浮动的愿望操作按钮容器 */
#wish-actions {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 100;
    transition: all 0.3s ease;
}


/* 单个操作按钮样式 */
.wish-action-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff9a9e, #fad0c4);
    border: none;
    color: white;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

/* 按钮悬停效果 */
.wish-action-btn:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    background: linear-gradient(135deg, #a1c4fd, #c2e9fb);
}

/* 按钮按下效果 */
.wish-action-btn:active {
    transform: translateY(-2px) scale(1.05);
}



/* 浮动动画效果 */
@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
    100% {
        transform: translateY(0px);
    }
}

/* 为按钮添加轻微的浮动动画 */
#wish-actions .wish-action-btn {
    animation: float 3s ease-in-out infinite;
}

/* 为第二个按钮添加延迟动画 */
#wish-actions .wish-action-btn:nth-child(2) {
    animation-delay: 0.5s;
}

/* ----------- 许愿弹框开始 ----------- */
.modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    padding: 30px;
    z-index: 1000;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    min-width: 300px;
    max-width: 500px;
}

.wish-modal h2 {
    margin-top: 0;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.wish-modal input,
.wish-modal textarea {
    display: block;
    width: 100%;
    margin: 15px auto;
    padding: 12px 15px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.85);
    color: #333;
    font-size: 16px;
    box-sizing: border-box;
    transition: all 0.3s ease;
}

.wish-modal input:focus,
.wish-modal textarea:focus {
    outline: none;
    border-color: #ff9a9e;
    box-shadow: 0 0 0 3px rgba(255, 154, 158, 0.3);
    background: #fff;
}

.wish-modal textarea {
    min-height: 120px;
    resize: vertical;
}

.wish-modal label {
    display: block;
    text-align: left;
    margin-bottom: 5px;
    color: #fff;
    font-weight: 500;
}

.wish-modal button {
    padding: 12px 30px;
    border: none;
    border-radius: 25px;
    background: linear-gradient(45deg, #ff9a9e, #fad0c4);
    color: white;
    font-weight: bold;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    margin-top: 10px;
}

.wish-modal button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.wish-modal button:active {
    transform: translateY(0);
}
/* ----------- 许愿弹框结束 ----------- */


/* ----------- 找回弹框开始 ----------- */


/* 找回愿望表单样式 */
.retrieve-modal {
    margin: 20px auto;
    padding: 25px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    max-width: 500px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.retrieve-modal h2 {
    margin-top: 0;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.retrieve-modal input {
    display: block;
    width: 100%;
    margin: 15px auto;
    padding: 12px 15px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.85);
    color: #333;
    font-size: 16px;
    box-sizing: border-box;
    transition: all 0.3s ease;
}

.retrieve-modal input:focus {
    outline: none;
    border-color: #ff9a9e;
    box-shadow: 0 0 0 3px rgba(255, 154, 158, 0.3);
    background: #fff;
}

.retrieve-modal label {
    display: block;
    text-align: left;
    margin-bottom: 5px;
    color: #fff;
    font-weight: 500;
}

.retrieve-modal button {
    padding: 12px 30px;
    border: none;
    border-radius: 25px;
    background: linear-gradient(45deg, #ff9a9e, #fad0c4);
    /* 修改为与许愿弹窗相同的渐变色 */
    color: white;
    font-weight: bold;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    margin-top: 10px;
}

.retrieve-modal button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.retrieve-modal button:active {
    transform: translateY(0);
}


/* 找回愿望弹窗中的列表容器 */
#retrieve-list {
    max-height: 400px;
    overflow-y: auto;
    padding-right: 10px;
    margin: 10px 0;
}

/* 优化滚动条样式 */
#retrieve-list::-webkit-scrollbar {
    width: 8px;
}

#retrieve-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

#retrieve-list::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

#retrieve-list::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}



/* 愿望展示区域样式 */
.wish-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: left;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.wish-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.wish-card h3 {
    margin: 0 0 15px 0;
    color: #e91e63;
    font-size: 18px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.wish-content {
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    margin: 15px 0;
    min-height: 60px;
}

.wish-content p {
    margin: 0;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.wish-meta {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: #666;
    margin: 10px 0;
}

.wish-date {
    font-style: italic;
}

.wish-status {
    font-weight: bold;
    padding: 3px 8px;
    border-radius: 10px;
    background-color: #e0e0e0;
}

.wish-card .wish-status {
    background-color: #c8e6c9;
    color: #388e3c;
}

.wish-card.wish-inactive .wish-status {
    background-color: #ffcdd2;
    color: #c62828;
}

.wish-stats {
    font-size: 14px;
    color: #f44336;
    font-weight: bold;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed #eee;
    display: flex;
    justify-content: space-between;
}

/* ----------- 找回弹框结束 ----------- */



/* ----------- 举报弹框开始 ----------- */

.report-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    padding: 30px;
    z-index: 1000;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    min-width: 300px;
    max-width: 500px;
}

.report-modal h3 {
    margin-top: 0;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    font-size: 24px;
    text-align: center;
}

.report-modal textarea {
    display: block;
    width: 100%;
    margin: 15px auto;
    padding: 12px 15px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.85);
    color: #333;
    font-size: 16px;
    box-sizing: border-box;
    transition: all 0.3s ease;
    min-height: 120px;
    resize: vertical;
}

.report-modal textarea:focus {
    outline: none;
    border-color: #ff9a9e;
    box-shadow: 0 0 0 3px rgba(255, 154, 158, 0.3);
    background: #fff;
}

.report-modal label {
    display: block;
    text-align: left;
    margin-bottom: 5px;
    color: #fff;
    font-weight: 500;
}

.report-modal .modal-actions {
    margin-top: 20px;
    text-align: center;
}

.report-modal button {
    padding: 12px 30px;
    border: none;
    border-radius: 25px;
    background: linear-gradient(45deg, #ff9a9e, #fad0c4);
    color: white;
    font-weight: bold;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    margin: 0 10px;
}

.report-modal button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.report-modal button:active {
    transform: translateY(0);
}

/* ----------- 举报弹框结束 ----------- */




/* --------------qq登录按钮开始-------------- */

.qq-login-btn {
    /* 移除固定定位，使用flex容器中的相对定位 */
    position: relative;
    z-index: 1000;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 14px;
}

.qq-login-btn:hover {
    transform: scale(1.1);
}

.qq-login-btn img {
    height: 100%;
}

/* --------------qq登录按钮结束-------------- */

/* 音乐开始 */


#musicControlBtn.music-icon {
    color: white;
    font-size: 20px;
}

#musicControlBtn.playing {
    background: linear-gradient(135deg, #a1c4fd, #c2e9fb);
    animation: rotate 5s linear infinite !important; /* 持续旋转动画 */
}

/* 旋转动画 */
@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}



/* 音乐结束 */


/* 手机端适配 (屏幕宽度 <= 768px) */
@media (max-width: 768px) {
    /* 进一步增大浮动操作按钮 */
    .wish-action-btn {
        width: 40px;
        height: 40px;
        font-size: 25px;
    }


    /* 调整按钮位置 */
    #wish-actions {
        bottom: 20px;
        right: 20px;
    }

    /* 增大弹窗内按钮 */
    .wish-modal button,
    .retrieve-modal button,
    #report-modal button {
        padding: 15px 35px;
        font-size: 18px;
        border-radius: 30px;
    }

    /* 增大表单元素 */
    .wish-modal input,
    .wish-modal textarea,
    .retrieve-modal input,
    #report-modal textarea {
        padding: 15px 18px;
        font-size: 18px;
    }

    /* 增大弹窗标题 */
    .wish-modal h2,
    .retrieve-modal h2,
    #report-modal h3 {
        font-size: 24px;
    }

    /* 调整找回愿望列表 */
    #retrieve-list {
        max-height: 350px;
    }

    .wish-text {
        font-size: 16px;
    }

    .wish-author {
        font-size: 14px;
    }

    .wish-stats {
        font-size: 14px;
    }

    .hover-actions button {
        padding: 8px 15px;
        font-size: 14px;
    }

    /* 调整愿望卡片 */
    .wish-card {
        padding: 25px;
        margin-bottom: 25px;
    }

    .wish-card h3 {
        font-size: 20px;
    }

    .wish-content {
        font-size: 18px;
    }

    .wish-meta {
        font-size: 16px;
    }




}