#network {
    width: 100%;
    height: 600px;
}
.button:hover {
    background-color: rgba(180, 206, 89, 0.5);
}
.clickable-word {
    cursor: pointer; /* 将鼠标指针变为点击时的手形图标，表示这是一个可点击的元素 */
    margin-right: 5px; /* 单词之间添加一些右边距，以便它们不会紧挨着彼此 */
    padding: 2px 5px; /* 添加一些内边距使得单词容易点击 */
    border-radius: 5px; /* 给单词添加圆角边框，让它们看起来更友好 */
    color: rgb(242, 240, 237);
    font-size: 20px; /* 设置字体大小为20 */
}

.clickable-word:hover {
    background-color: #6df261; /* 鼠标悬浮时改变背景颜色，提高用户交互体验 */
}

.selected {
    background-color: #007bff; /* 选中单词后的背景颜色 */
    color: white; /* 选中单词的文字颜色 */
}
.entry {
    font-size: 20px;
}
.lemmalist {
    max-height: 500px; /* 设置最大高度 */
    overflow-y: auto; /* 当内容超出最大高度时，添加垂直滚动条 */
     /* 可选：添加边框以使滚动区域更明显 */
}
.lemmalist-lemma {
    /*加粗*/
    font-size: 24px;
    font-weight: bold;
}
.lemmalist-pos{
    /*斜体*/
    font-style: italic;
}
.lemmalist li {
    cursor: pointer; /* 使鼠标悬停时显示为手型光标 */
    padding: 10px; /* 添加一些内边距，使元素更大 */
    transition: background-color 0.3s ease; /* 平滑过渡背景颜色变化 */
}

.lemmalist li:hover {
    background-color: #f0f0f0; /* 鼠标悬停时背景颜色变化 */
    color: #007bff; /* 鼠标悬停时文本颜色变化 */
}
.tooltip {
    position: relative;
    display: inline-block;
    cursor: pointer;
}
.tooltip .tooltiptext {
    visibility: hidden;
    width: 500px;
    background-color: #f6f6f6;
    color: #000;
    text-align: center;
    border-radius: 5px;
    padding: 5px;
    position: absolute;
    z-index: 1;
    bottom: 125%; /* Adjust as needed */
    left: 50%;
    margin-left: -60px; /* Adjust as needed */
    box-shadow: 0 0 5px rgba(0,0,0,0.1);
}
.tooltip .tooltiptext::after {
    content: "";
    position: absolute;
    top: 100%; /* At the bottom of the tooltip */
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #f6f6f6 transparent transparent transparent;
}
.tooltip:hover .tooltiptext {
    visibility: visible;
}
.highlight {
    color: #ff4500; /* Use a color that makes the text stand out */
    font-weight: bold;
}
/* 覆盖原有伪元素样式 */
#search form:before {
    content: none !important; /* 移除伪元素内容 */
}
/* 鼠标悬停mic和camera时，光标变为指针 */
#mic:hover, #camera:hover {
    cursor: pointer;
}

/* 设置遮罩窗体的初始样式 */
#uploadSection {
    display: none;
    position: absolute;
    width: 85%;
    max-width: 400px; /* 限制最大宽度 */
    height: 0;
    overflow: hidden;
    background-color: rgba(255, 255, 255, 1);  /* 遮罩效果 */
    border: 1px solid #ddd;
    transition: height 0.5s ease; /* 平滑过渡效果 */
}

/* 动画展开效果 */
#uploadSection.open {
    height: 300px;
}

/* 图片上传区域的内容样式 */
#uploadSection label, #uploadSection input {
    margin: 10px;
}	
.networkoverlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
}

.networkoverlay-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    padding: 20px;
    border-radius: 5px;
    width: 75%;
    height: 85vh;
    overflow: auto;
}

.close-btn {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close-btn:hover {
    color: #000;
}

/* 设置遮罩窗体样式 */
.settings-overlay {
    display: none;  /* 初始状态隐藏 */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
}

.settings-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    width: 400px;
    height: 600px; /* 增加高度 */
    overflow-y: auto;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.display-mode {
    margin-bottom: 30px;
}

.display-mode label {
    display: flex;
    align-items: center;
    margin: 15px 0;
    font-size: 16px;
    color: #444;
    cursor: pointer;
    flex-direction: row;
    justify-content: flex-start;
    gap: 10px;
}

.manual-options {
    padding: 15px;
    background-color: #f5f5f5;
    border-radius: 8px;
    margin-top: 15px;
}

.manual-options label {
    display: flex;
    align-items: center;
    padding: 12px;
    margin: 8px 0;
    background-color: white;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s;
    flex-direction: row;
    justify-content: flex-start;
    gap: 10px;
}

input[type="radio"],
input[type="checkbox"] {
    margin-right: 10px;
    width: 16px;
    height: 16px;
    cursor: pointer;
}
.manual-options label:hover {
    background-color: #e9e9e9;
}

input[type="radio"],
input[type="checkbox"] {
    margin-right: 10px;
}
.settings-content input[type="radio"],
.settings-content input[type="checkbox"] {
    appearance: auto;
    -webkit-appearance: auto;
    -moz-appearance: auto;
    opacity: 1;
    width: 16px;
    height: 16px;
    margin-right: 10px;
    vertical-align: middle;
    cursor: pointer;
    position: static;
    float: none;
    order: -1;
}

.settings-content input[type="radio"]:checked,
.settings-content input[type="checkbox"]:checked {
    background-color: #4CAF50;
    border-color: #4CAF50;
}
.settings-content h2 {
    margin-bottom: 20px;
    color: #333;
}

.settings-options {
    margin-bottom: 20px;
}

.settings-options label {
    display: block;
    margin: 15px 0;
    font-size: 16px;
    color: #444;
}

.settings-options input[type="checkbox"] {
    margin-right: 10px;
}

#contentElements label {
    display: block;
    margin: 10px 0;
    padding: 10px;
    background-color: #f5f5f5;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s;
}

#contentElements label:hover {
    background-color: #e9e9e9;
}

.close-settings-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    color: #999;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s;
}

.close-settings-btn:hover {
    color: #333;
}

#saveSettings {
    width: 100%;
    padding: 12px;
    margin-top: 20px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s;
}

#saveSettings:hover {
    background-color: #45a049;
}
/* ... existing styles ... */

/* 覆盖词典小精灵对话框按钮样式 */
.chat-overlay .close-chat {
border: none !important;
outline: none !important;
box-shadow: none !important;
padding: 5px !important;
background: none !important;
color: #333 !important; /* 改为深灰色 */
font-size: 24px !important;
font-weight: bold !important;
transition: opacity 0.3s !important;
}

.chat-overlay .close-chat:hover {
opacity: 0.8 !important;
color: #000 !important; /* 悬停时改为黑色 */
}

.chat-overlay .send-message {
border: none !important;
outline: none !important;
box-shadow: none !important;
background-color: #4a90e2 !important;
color: white !important;
padding: 8px 16px !important;
height: 40px !important;
line-height: 24px !important;
transition: background-color 0.3s !important;
}

.chat-overlay .send-message:hover {
background-color: #357abd !important;
}

.chat-overlay .send-message:focus {
outline: none !important;
box-shadow: none !important;
}            