
#canvas-container {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

#lanternCanvas {
    width: 100vw;
    height: 100vh;
    display: block;
}

#hover-ui {
    position: absolute;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    border-radius: 10px;
    padding: 15px;
    min-width: 200px;
    max-width: 300px;
    z-index: 1000;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    /* 添加以下属性确保内容可见 */
    color: white;
}

#hover-ui.hidden {
    display: none;
}

.hover-content {
    color: white;
}

.wish-detail {
    margin-bottom: 10px;
}

.wish-text {
    font-size: 14px;
    line-height: 1.4;
    margin-bottom: 8px;
    word-wrap: break-word;
    color: white;
}

.wish-author {
    font-size: 12px;
    color: #ffcc00;
    text-align: right;
    font-style: italic;
    color: #ffcc00;
}

.hover-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.hover-actions button {
    padding: 5px 10px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.2s ease;
}


.hover-actions button:hover {
    transform: scale(1.05);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.top-right-controls {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    gap: 10px;
    z-index: 1000;
}
.language-switcher {
    position: static;
    top: auto;
    right: auto;
}

.lang-dropdown {
    background: #ff9a9e;
    position: relative;
    display: inline-block;
}

.lang-selected {
    background: #ff9a9e;
    border: 2px solid #ffffff;
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
    min-width: 80px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.lang-dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 5px;
    z-index: 1;
    min-width: 80px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.lang-dropdown-content .lang-btn {
    display: block;
    width: 100%;
    text-align: left;
    background: rgba(0, 0, 0, 0.8);
    border: none;
    border-radius: 0;
    color: white;
    padding: 8px 10px;
    cursor: pointer;
    font-size: 14px;
}

.lang-dropdown-content .lang-btn:hover {
    background: #ff9a9e;
}

.lang-dropdown:hover .lang-dropdown-content {
    display: block;
}

.lang-dropdown:hover .lang-selected {
    border-color: rgba(255, 255, 255, 0.8);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.lang-btn {
    background: transparent;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.lang-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

/* 手机端适配 (屏幕宽度 <= 768px) */
@media (max-width: 768px) {

    /* 调整悬停UI */
    #hover-ui {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        background: rgba(0, 0, 0, 0.9);
        backdrop-filter: blur(10px);
        border-radius: 15px 15px 0 0;
        padding: 20px;
        z-index: 1000;
        box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.3);
        border: 1px solid rgba(255, 255, 255, 0.1);
        color: white;
        box-sizing: border-box;
        max-height: 70vh;
        overflow-y: auto;
        transform: translateY(100%);
        transition: transform 0.3s ease;
        min-width: unset;
        max-width: unset;
    }

    /* 显示状态 */
    #hover-ui:not(.hidden) {
        transform: translateY(0);
    }

    /* 隐藏状态 */
    #hover-ui.hidden {
        display: block !important;
        transform: translateY(100%);
    }

}
