/* 基本重置和容器 */
#ltc-chat-container {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    border: 2px solid #66ccff;
    border-radius: 15px;
    overflow: hidden;
    width: 90%;
    max-width: 600px;
    margin: 20px auto;
    display: flex;
    flex-direction: column;
    height: 70vh;
    max-height: 600px;
    background-color: #ffffff;
    color: #333333;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* 深色模式支持 */
@media (prefers-color-scheme: dark) {
    #ltc-chat-container {
        background-color: #1e1e1e;
        color: #f0f0f0;
        border-color: #4a90e2; /* 稍微调整深色模式下的边框 */
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    }
    #ltc-chat-header {
        background-color: #2a2a2a;
    }
    #ltc-chat-messages {
        background-color: #252526;
    }
    .ltc-user-message {
        background-color: #2b4c6f;
    }
    .ltc-ai-message, .ltc-lyric-message {
        background-color: #2d2d2d;
    }
    #ltc-chat-input-container {
        background-color: #333333;
    }
    #ltc-user-input {
        background-color: #404040;
        color: #ffffff;
        border: 1px solid #555556;
    }
    #ltc-send-button {
        background-color: #4a90e2;
        color: white;
        border: 1px solid #5a9ced;
    }
    #ltc-send-button:hover {
        background-color: #3a7bc8;
    }
    .ltc-modal-content {
        background-color: #2d2d2d;
        color: #ffffff;
    }
    .ltc-close {
        color: #aaa;
    }
    .ltc-close:hover,
    .ltc-close:focus {
        color: #fff;
    }
}


/* 标题栏 */
#ltc-chat-header {
    background-color: #e6f7ff;
    padding: 15px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #cce6ff;
}

#ltc-chat-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 15px;
    object-fit: cover; /* 确保图片适应容器 */
}

#ltc-chat-title {
    margin: 0;
    font-size: 1.5em;
    color: #66ccff;
}

/* 消息区域 */
#ltc-chat-messages {
    flex-grow: 1;
    overflow-y: auto;
    padding: 15px;
    background-color: #f9f9f9;
    display: flex;
    flex-direction: column;
}

.ltc-message {
    max-width: 80%;
    padding: 10px 15px;
    margin-bottom: 15px;
    border-radius: 18px;
    word-wrap: break-word;
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.ltc-user-message {
    align-self: flex-end;
    background-color: #cce6ff;
    color: #000;
}

.ltc-ai-message, .ltc-lyric-message {
    align-self: flex-start;
    background-color: #e0e0e0;
    color: #000;
}

/* 输入区域 */
#ltc-chat-input-container {
    display: flex;
    padding: 10px;
    background-color: #f0f0f0;
    border-top: 1px solid #ddd;
}

#ltc-user-input {
    flex-grow: 1;
    padding: 10px 15px;
    border: 1px solid #ccc;
    border-radius: 20px;
    outline: none;
    font-size: 1em;
    color: #66ccff; /* 输入框文字颜色 */
    background-color: #ffffff;
}

#ltc-send-button {
    margin-left: 10px;
    padding: 10px 20px;
    border: none;
    border-radius: 20px;
    background-color: #66ccff;
    color: white;
    cursor: pointer;
    font-size: 1em;
    transition: background-color 0.3s;
}

#ltc-send-button:hover {
    background-color: #4db8ff;
}

/* 弹窗样式 */
.ltc-modal {
    display: block; /* 默认显示 */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
}

.ltc-modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    border-radius: 10px;
    width: 80%;
    max-width: 500px;
    text-align: center;
    position: relative;
    color: #333;
}

.ltc-close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    position: absolute;
    top: 10px;
    right: 15px;
    cursor: pointer;
}

.ltc-close:hover,
.ltc-close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}



