﻿/* CSS Document */
/*
编写者：享健丽科技
时间：2025年7月10日
*/
.translate-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: #f5f6fa;
}

.chat-container-trans {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
}

.input-area-trans {
    padding: 20px;
    background: white;
    display: flex;
    /*gap: 10px;*/
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
}

/*去掉输入边框变粗的样式*/
input:focus {
    border-color: #ccc;
    outline: none;
}

#prompt-input-trans {
    flex: 1;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 10px 0 0 10px;
    font-size: 16px;
}

.trans-message {
    background: #eef2ff;  /*#ecf0f1;*/
    margin-right: auto;
    text-align:left;
}

#trans-btn {
    padding: 10px 20px;
    background: #3498db;
    border: none;
    border-radius: 8px;
    color: white;
    cursor: pointer;
    margin: 0 10px;
    min-width: 80px;
}

#trans-btn:hover {
    background: #2980b9;
}

#trans-btn:disabled {
    background-color: #adb5bd;
    cursor: not-allowed;
}

.hidden {
    display: none;
}


.language-selector {
    position: relative;
    margin-right:10px;
}

.selector-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
    height: 100%;
    background: #4a90e2;
    border: none;
    border-radius: 0 10px 10px 0;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 120px;
}

.selector-btn:hover {
    background: #3a7bc8;
}

.selector-btn:active {
    background: #2a6ab0;
}

.selector-btn i {
    margin-left: 8px;
    transition: transform 0.3s ease;
}



/* 下拉列表使其向上展开 */
.language-dropdown {
    position: absolute;
    bottom: calc(100% + 10px); /* 在按钮上方10px处 */
    right: 0;
    width: 100%;
    background: white;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px); /* 初始向下偏移 */
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 10;
    max-height: 300px;
    overflow-y: auto;
}

.language-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.language-option {
    padding: 15px 20px;
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: background 0.2s;
}

.language-option:hover {
    background: #f5f8ff;
}

.language-option.active {
    background: #eaf2ff;
    color: #4a90e2;

}