145 lines
2.8 KiB
CSS
145 lines
2.8 KiB
CSS
|
html, body {
|
||
|
margin: 0;
|
||
|
padding: 0;
|
||
|
height: 100%;
|
||
|
font-family: 'Orbitron', sans-serif;
|
||
|
background: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
|
||
|
color: #fff;
|
||
|
}
|
||
|
|
||
|
#chat-widget {
|
||
|
position: absolute;
|
||
|
top: 0;
|
||
|
left: 0;
|
||
|
right: 0;
|
||
|
bottom: 0;
|
||
|
display: flex;
|
||
|
flex-direction: column;
|
||
|
z-index: 1000;
|
||
|
background: rgba(255, 255, 255, 0.05);
|
||
|
backdrop-filter: blur(10px);
|
||
|
border-radius: 15px;
|
||
|
margin: 20px;
|
||
|
box-shadow: 0 0 20px rgba(0, 255, 255, 0.2);
|
||
|
}
|
||
|
|
||
|
.top_info {
|
||
|
font-size: 14px;
|
||
|
font-family: 'Orbitron', sans-serif;
|
||
|
color: #00f0ff;
|
||
|
line-height: 48px;
|
||
|
text-align: left;
|
||
|
padding: 0 20px;
|
||
|
margin: 10px 20px 0 20px; /* 与 chat-widget 的 padding 对齐 */
|
||
|
background: rgba(255, 255, 255, 0.05);
|
||
|
border: 1px solid rgba(0, 255, 255, 0.2);
|
||
|
box-shadow: 0 0 10px rgba(0, 255, 255, 0.1);
|
||
|
border-radius: 10px;
|
||
|
backdrop-filter: blur(6px);
|
||
|
overflow: hidden;
|
||
|
white-space: nowrap;
|
||
|
text-overflow: ellipsis;
|
||
|
}
|
||
|
|
||
|
.top_info_text {
|
||
|
font-size: 15px;
|
||
|
font-weight: bold;
|
||
|
color: #00ffff;
|
||
|
}
|
||
|
|
||
|
|
||
|
#chat-container {
|
||
|
display: flex;
|
||
|
flex-direction: column;
|
||
|
flex: 1;
|
||
|
overflow: hidden;
|
||
|
}
|
||
|
|
||
|
#messages {
|
||
|
flex: 1;
|
||
|
padding: 10px;
|
||
|
overflow-y: auto;
|
||
|
}
|
||
|
|
||
|
.message {
|
||
|
display: flex;
|
||
|
margin-bottom: 10px;
|
||
|
}
|
||
|
|
||
|
.message.receiver-message {
|
||
|
justify-content: flex-start;
|
||
|
padding-right: 30%;
|
||
|
margin-right: auto;
|
||
|
}
|
||
|
|
||
|
.message.sender-message {
|
||
|
justify-content: flex-end;
|
||
|
padding-left: 30%;
|
||
|
margin-left: auto;
|
||
|
}
|
||
|
|
||
|
.message-content {
|
||
|
flex: 0 1 auto;
|
||
|
}
|
||
|
|
||
|
.message-bubble {
|
||
|
border-radius: 10px;
|
||
|
padding: 12px 16px;
|
||
|
font-size: 15px;
|
||
|
background: rgba(255, 255, 255, 0.1);
|
||
|
color: #e0e0e0;
|
||
|
box-shadow: 0 0 8px rgba(0, 255, 255, 0.3);
|
||
|
word-break: break-word;
|
||
|
white-space: pre-wrap;
|
||
|
text-align: left;
|
||
|
}
|
||
|
|
||
|
.message.sender-message .message-bubble {
|
||
|
text-align: right;
|
||
|
background: linear-gradient(135deg, #00c6ff, #0072ff);
|
||
|
color: white;
|
||
|
box-shadow: 0 0 10px rgba(0, 114, 255, 0.7);
|
||
|
}
|
||
|
|
||
|
#status-indicator {
|
||
|
height: 20px;
|
||
|
text-align: center;
|
||
|
color: #aaa;
|
||
|
font-size: 14px;
|
||
|
}
|
||
|
|
||
|
#input-area {
|
||
|
display: flex;
|
||
|
align-items: center;
|
||
|
padding: 10px;
|
||
|
border-top: 1px solid rgba(255, 255, 255, 0.2);
|
||
|
background-color: rgba(255, 255, 255, 0.05);
|
||
|
backdrop-filter: blur(8px);
|
||
|
}
|
||
|
|
||
|
#input-area button {
|
||
|
background: none;
|
||
|
border: none;
|
||
|
cursor: pointer;
|
||
|
margin-right: 10px;
|
||
|
}
|
||
|
|
||
|
#input-area img {
|
||
|
width: 25px;
|
||
|
height: 25px;
|
||
|
filter: drop-shadow(0 0 5px #00ffff);
|
||
|
}
|
||
|
|
||
|
#message-input {
|
||
|
flex: 1;
|
||
|
padding: 8px;
|
||
|
border: 1px solid #00c6ff;
|
||
|
border-radius: 5px;
|
||
|
background-color: rgba(0, 0, 0, 0.4);
|
||
|
color: white;
|
||
|
}
|
||
|
|
||
|
#message-input:disabled {
|
||
|
background-color: #444;
|
||
|
}
|