#blackhole-container {
    display: none;
    position: fixed;
    top: 0%;
    left: 10%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 300px;
    opacity: 0;
    transition: opacity 1.5s ease-in;
    z-index: 10000;
    pointer-events: none;
}

#blackhole-container.visible {
    opacity: 1;
    pointer-events: auto;
}

.blackhole {
    position: relative;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.blackhole-core {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: radial-gradient(circle, #FFD700 0%, #FFA500 30%, #FF8C00 60%, rgba(255, 140, 0, 0.8) 100%);
    border-radius: 50%;
    box-shadow: 
        0 0 40px 15px rgba(255, 215, 0, 0.6),
        0 0 60px 20px rgba(255, 165, 0, 0.5),
        inset 0 0 40px rgba(255, 255, 0, 0.3);
    z-index: 3;
    transition: transform 0.3s ease;
}

.blackhole:hover .blackhole-core {
    transform: translate(-50%, -50%) scale(1.1);
    box-shadow: 
        0 0 50px 20px rgba(255, 215, 0, 0.8),
        0 0 80px 30px rgba(255, 165, 0, 0.7),
        inset 0 0 40px rgba(255, 255, 0, 0.5);
}

.galaxy-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    border: 2px solid transparent;
}

.ring-1 {
    width: 120px;
    height: 120px;
    background: conic-gradient(
        from 0deg,
        transparent 0%,
        rgba(255, 182, 193, 0.6) 25%,
        rgba(255, 105, 180, 0.8) 50%,
        rgba(255, 182, 193, 0.6) 75%,
        transparent 100%
    );
    animation: rotate 8s linear infinite;
    filter: blur(3px);
}

.ring-2 {
    width: 160px;
    height: 160px;
    background: conic-gradient(
        from 180deg,
        transparent 0%,
        rgba(255, 192, 203, 0.5) 25%,
        rgba(255, 160, 122, 0.7) 50%,
        rgba(255, 192, 203, 0.5) 75%,
        transparent 100%
    );
    animation: rotate 12s linear infinite reverse;
    filter: blur(4px);
}

.ring-3 {
    width: 220px;
    height: 200px;
    background: conic-gradient(
        from 90deg,
        transparent 0%,
        rgba(255, 218, 185, 0.4) 25%,
        rgba(255, 200, 124, 0.6) 50%,
        rgba(255, 218, 185, 0.4) 75%,
        transparent 100%
    );
    animation: rotate 16s linear infinite;
    filter: blur(5px);
}

.ring-4 {
    width: 280px;
    height: 250px;
    background: conic-gradient(
        from 270deg,
        transparent 0%,
        rgba(255, 228, 196, 0.3) 25%,
        rgba(255, 239, 213, 0.5) 50%,
        rgba(255, 228, 196, 0.3) 75%,
        transparent 100%
    );
    animation: rotate 20s linear infinite reverse;
    filter: blur(6px);
}

.stars {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.star {
    position: absolute;
    width: 2px;
    height: 2px;
    background: #FFD700;
    border-radius: 50%;
    animation: twinkle 3s ease-in-out infinite;
    box-shadow: 0 0 4px #FFA500;
}

.star:nth-child(1) { top: 20%; left: 30%; animation-delay: 0s; }
.star:nth-child(2) { top: 40%; left: 70%; animation-delay: 0.5s; }
.star:nth-child(3) { top: 60%; left: 20%; animation-delay: 1s; }
.star:nth-child(4) { top: 80%; left: 60%; animation-delay: 1.5s; }
.star:nth-child(5) { top: 30%; left: 80%; animation-delay: 2s; }
.star:nth-child(6) { top: 70%; left: 40%; animation-delay: 2.5s; }

@keyframes rotate {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

@keyframes twinkle {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.5);
    }
}

#message-input-area {
    position: fixed;
    top: calc(25% + 180px);
    left: 10%;
    transform: translateX(-50%);
    width: 400px;
    max-width: 90vw;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
    z-index: 9999;
}

#message-input-area.active {
    opacity: 1;
    pointer-events: auto;
}

#messageInput {
    width: 100%;
    min-height: 40px;
    max-height: 72px;
    padding: 12px 15px;
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    color: #FF6B9D;
    font-size: 16px;
    font-family: '微软雅黑', '宋体', sans-serif;
    resize: none;
    overflow-y: auto;
    box-sizing: border-box;
    transition: all 0.3s ease;
    line-height: 1.6;
    scrollbar-width: none;
}

#messageInput::-webkit-scrollbar {
    display: none;
}

#messageInput.active {
    border-bottom: 2px solid rgba(255, 182, 193, 0.5);
}

#messageInput:focus {
    outline: none;
    border-bottom-color: rgba(255, 105, 180, 0.8);
}

#messageInput::placeholder {
    color: transparent;
}

.cursor-blink {
    display: inline-block;
    width: 2px;
    height: 20px;
    background: rgba(255, 105, 180, 0.8);
    animation: blink 1s step-end infinite;
    vertical-align: middle;
    margin-left: 2px;
}

@keyframes blink {
    0%, 50% {
        opacity: 1;
    }
    51%, 100% {
        opacity: 0;
    }
}

@keyframes breathe {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        background: rgba(255, 182, 193, 0.3);
        color: rgba(255, 105, 180, 0.8);
        border-color: rgba(255, 105, 180, 0.5);
    }
    50% {
        transform: translate(-50%, -50%) scale(1.2);
        background: rgba(255, 192, 203, 0.5);
        color: rgba(255, 20, 147, 1);
        border-color: rgba(255, 105, 180, 0.8);
        box-shadow: 0 0 25px rgba(255, 105, 180, 0.8);
    }
}

#submitMessageBtn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    padding: 0;
    background: rgba(255, 182, 193, 0.3);
    color: rgba(255, 105, 180, 0.8);
    border: 2px solid rgba(255, 105, 180, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0;
    pointer-events: none;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

#submitMessageBtn svg {
    width: 20px;
    height: 20px;
    transform: rotate(-45deg);
}

#submitMessageBtn.visible {
    opacity: 1;
    pointer-events: auto;
    animation: breathe 2s ease-in-out infinite;
}

#submitMessageBtn:hover {
    background: rgba(255, 182, 193, 0.5);
    color: rgba(255, 20, 147, 1);
    border-color: rgba(255, 105, 180, 0.8);
    box-shadow: 0 0 20px rgba(255, 105, 180, 0.6);
    transform: translate(-50%, -50%) scale(1.1);
}

#submitMessageBtn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    transform: translate(-50%, -50%);
}

#messageStatusText {
    margin-top: 10px;
    color: #FF6B9D;
    font-size: 13px;
    text-align: center;
    min-height: 20px;
    transition: all 0.3s ease;
}
