/* 老神仙随身助手 CSS */
#masterChatBtn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #c9961a, #e6b840);
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(201, 150, 26, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    cursor: pointer;
    z-index: 1000;
    transition: transform 0.3s;
}
#masterChatBtn:hover {
    transform: scale(1.1);
}
#masterChatBtn::after {
    content: "随身老神仙";
    position: absolute;
    bottom: -20px;
    font-size: 12px;
    color: #c9961a;
    font-weight: bold;
    white-space: nowrap;
}

#masterChatWindow {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 350px;
    height: 500px;
    background: rgba(20, 15, 25, 0.95);
    border: 1px solid rgba(201, 150, 26, 0.5);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
    display: none;
    flex-direction: column;
    z-index: 1000;
    backdrop-filter: blur(10px);
    overflow: hidden;
}

#masterChatHeader {
    background: rgba(201, 150, 26, 0.2);
    padding: 15px;
    border-bottom: 1px solid rgba(201, 150, 26, 0.3);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
#masterChatHeader .title {
    color: #ffd700;
    font-family: 'Ma Shan Zheng', serif;
    font-size: 1.2rem;
}
#closeChatBtn {
    color: #fff;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
}

#masterChatBody {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.chat-msg {
    max-width: 80%;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 0.9rem;
    line-height: 1.4;
}
.chat-master {
    align-self: flex-start;
    background: rgba(201, 150, 26, 0.15);
    border: 1px solid rgba(201, 150, 26, 0.3);
    color: #fff;
}
.chat-user {
    align-self: flex-end;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

#masterChatInputArea {
    display: flex;
    padding: 10px;
    background: rgba(0, 0, 0, 0.3);
    border-top: 1px solid rgba(201, 150, 26, 0.3);
}
#masterChatInput {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(201, 150, 26, 0.3);
    color: #fff;
    padding: 10px;
    border-radius: 6px;
    outline: none;
}
#masterChatSend {
    background: #c9961a;
    color: #1a1a1a;
    border: none;
    padding: 0 15px;
    margin-left: 10px;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
}

/* 老神仙冒泡气泡 */
#masterChatBubble {
    position: fixed;
    bottom: 95px;
    right: 20px;
    background: rgba(255, 255, 255, 0.95);
    color: #1a1a1a;
    padding: 8px 14px;
    border-radius: 12px;
    border-bottom-right-radius: 2px;
    font-size: 0.85rem;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    z-index: 999;
    cursor: pointer;
    opacity: 0;
    transform: translateY(10px) scale(0.9);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    pointer-events: none;
}
#masterChatBubble.show {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}
