344 lines
8.3 KiB
CSS
344 lines
8.3 KiB
CSS
:root {
|
|
font-family: "Microsoft YaHei UI", "PingFang SC", "Noto Sans CJK SC", system-ui, sans-serif;
|
|
color: #132238;
|
|
background: #eef3fb;
|
|
font-synthesis: none;
|
|
text-rendering: optimizeLegibility;
|
|
}
|
|
|
|
* { box-sizing: border-box; }
|
|
|
|
html,
|
|
body,
|
|
#app {
|
|
width: 100%;
|
|
height: 100%;
|
|
margin: 0;
|
|
overflow: hidden;
|
|
}
|
|
|
|
button,
|
|
textarea,
|
|
input { font: inherit; }
|
|
|
|
button { cursor: pointer; }
|
|
button:disabled { cursor: not-allowed; opacity: .55; }
|
|
|
|
.consultation-shell {
|
|
width: 100%;
|
|
height: 100%;
|
|
min-width: 760px;
|
|
min-height: 540px;
|
|
background: #eef3fb;
|
|
}
|
|
|
|
.chat-panel {
|
|
display: grid;
|
|
grid-template-rows: 74px minmax(0, 1fr) auto;
|
|
width: 100%;
|
|
height: 100%;
|
|
background: #f7f9fd;
|
|
}
|
|
|
|
.chat-header {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 14px;
|
|
padding: 12px 20px;
|
|
border-bottom: 1px solid #d7dfef;
|
|
background: rgba(255, 255, 255, .96);
|
|
}
|
|
|
|
.patient-avatar {
|
|
display: grid;
|
|
place-items: center;
|
|
width: 44px;
|
|
height: 44px;
|
|
border-radius: 14px;
|
|
color: #fff;
|
|
background: #5267df;
|
|
font-size: 18px;
|
|
font-weight: 700;
|
|
}
|
|
|
|
.chat-heading { min-width: 0; flex: 1; }
|
|
.chat-heading h1 { margin: 0; font-size: 18px; line-height: 1.4; }
|
|
.chat-heading p {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 7px;
|
|
margin: 3px 0 0;
|
|
color: #71809a;
|
|
font-size: 12px;
|
|
}
|
|
|
|
.connection-dot {
|
|
width: 7px;
|
|
height: 7px;
|
|
border-radius: 50%;
|
|
background: #a3adbd;
|
|
}
|
|
.connection-dot--online { background: #24a77c; box-shadow: 0 0 0 3px rgba(36, 167, 124, .12); }
|
|
|
|
.primary-action,
|
|
.send-button,
|
|
.capture-button {
|
|
border: 1px solid #5166df;
|
|
border-radius: 9px;
|
|
color: #fff;
|
|
background: #5267df;
|
|
font-weight: 600;
|
|
}
|
|
.secondary-action {
|
|
padding: 9px 13px;
|
|
border: 1px solid #c8d2e7;
|
|
border-radius: 9px;
|
|
color: #43526b;
|
|
background: #fff;
|
|
font-weight: 600;
|
|
}
|
|
.secondary-action:hover { border-color: #7385e9; color: #4055ca; background: #f5f7ff; }
|
|
.primary-action { display: flex; gap: 8px; align-items: center; padding: 10px 16px; }
|
|
.primary-action:hover,
|
|
.send-button:hover,
|
|
.capture-button:hover { background: #4055ca; }
|
|
|
|
.message-list {
|
|
overflow-y: auto;
|
|
padding: 18px max(24px, calc((100% - 920px) / 2));
|
|
background:
|
|
radial-gradient(circle at 12% 16%, rgba(82, 103, 223, .055), transparent 25%),
|
|
#f3f6fb;
|
|
}
|
|
|
|
.load-more {
|
|
display: block;
|
|
margin: 0 auto 18px;
|
|
padding: 6px 12px;
|
|
border: 1px solid #d6deed;
|
|
border-radius: 999px;
|
|
color: #66758e;
|
|
background: #fff;
|
|
font-size: 12px;
|
|
}
|
|
|
|
.empty-chat {
|
|
display: grid;
|
|
justify-items: center;
|
|
margin-top: min(16vh, 110px);
|
|
color: #7c89a0;
|
|
text-align: center;
|
|
}
|
|
.empty-chat__icon {
|
|
display: grid;
|
|
place-items: center;
|
|
width: 62px;
|
|
height: 62px;
|
|
margin-bottom: 12px;
|
|
border: 1px solid #d2daeb;
|
|
border-radius: 20px;
|
|
color: #5267df;
|
|
background: #fff;
|
|
font-weight: 800;
|
|
}
|
|
.empty-chat h2 { margin: 0; color: #34425a; font-size: 17px; }
|
|
.empty-chat p { margin: 7px 0; font-size: 13px; }
|
|
|
|
.message-row {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: flex-start;
|
|
margin: 12px 0;
|
|
}
|
|
.message-row--mine { align-items: flex-end; }
|
|
.message-meta { margin: 0 8px 5px; color: #8995a9; font-size: 11px; }
|
|
.message-bubble {
|
|
max-width: min(72%, 620px);
|
|
padding: 10px 13px;
|
|
border: 1px solid #d8e0ed;
|
|
border-radius: 5px 15px 15px 15px;
|
|
background: #fff;
|
|
box-shadow: 0 4px 14px rgba(29, 47, 80, .05);
|
|
line-height: 1.6;
|
|
word-break: break-word;
|
|
}
|
|
.message-row--mine .message-bubble {
|
|
border-color: #5267df;
|
|
border-radius: 15px 5px 15px 15px;
|
|
color: #fff;
|
|
background: #5267df;
|
|
}
|
|
.message-bubble p { margin: 0; white-space: pre-wrap; }
|
|
.message-image,
|
|
.message-video { display: block; max-width: 360px; max-height: 280px; border-radius: 9px; }
|
|
.message-file { display: flex; align-items: center; gap: 8px; color: inherit; text-decoration: none; }
|
|
.message-bubble audio { max-width: 320px; }
|
|
|
|
.composer {
|
|
padding: 10px 18px 14px;
|
|
border-top: 1px solid #d7dfef;
|
|
background: #fff;
|
|
}
|
|
.composer-toolbar {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
min-height: 30px;
|
|
color: #8a96a9;
|
|
font-size: 11px;
|
|
}
|
|
.composer-toolbar button {
|
|
padding: 5px 9px;
|
|
border: 0;
|
|
border-radius: 7px;
|
|
color: #5267df;
|
|
background: #eef1ff;
|
|
font-size: 12px;
|
|
}
|
|
.composer-row { display: grid; grid-template-columns: minmax(0, 1fr) 86px; gap: 12px; }
|
|
.composer textarea {
|
|
width: 100%;
|
|
min-height: 68px;
|
|
max-height: 150px;
|
|
padding: 10px 12px;
|
|
resize: vertical;
|
|
border: 1px solid #ced8ea;
|
|
border-radius: 10px;
|
|
outline: none;
|
|
color: #15233a;
|
|
background: #fbfcff;
|
|
line-height: 1.5;
|
|
}
|
|
.composer textarea:focus { border-color: #6678ed; box-shadow: 0 0 0 3px rgba(82, 103, 223, .11); }
|
|
.send-button { align-self: end; height: 40px; }
|
|
|
|
.inline-notice {
|
|
margin-bottom: 7px;
|
|
color: #3f6f62;
|
|
font-size: 12px;
|
|
}
|
|
.inline-notice--error { color: #c14455; }
|
|
|
|
.video-layer {
|
|
position: relative;
|
|
width: 100%;
|
|
height: 100%;
|
|
min-height: 420px;
|
|
overflow: hidden;
|
|
color: #f7f8fa;
|
|
background:
|
|
radial-gradient(circle at 50% 35%, rgba(60, 86, 130, .28), transparent 38%),
|
|
#090d14;
|
|
}
|
|
.video-layer--overlay { position: fixed; z-index: 1000; inset: 0; }
|
|
|
|
.call-kit,
|
|
.video-layer :is(.TUICallKit-desktop, .TUICallKit-mobile, #tuicallkit-id) {
|
|
width: 100% !important;
|
|
height: 100% !important;
|
|
max-width: none !important;
|
|
max-height: none !important;
|
|
}
|
|
|
|
.status-card {
|
|
position: absolute;
|
|
inset: 50% auto auto 50%;
|
|
display: grid;
|
|
grid-template-columns: 12px minmax(0, 1fr);
|
|
gap: 18px;
|
|
width: min(520px, calc(100% - 48px));
|
|
padding: 30px 32px;
|
|
transform: translate(-50%, -50%);
|
|
border: 1px solid rgba(255, 255, 255, .1);
|
|
border-radius: 20px;
|
|
background: rgba(19, 25, 32, .92);
|
|
box-shadow: 0 24px 70px rgba(0, 0, 0, .32);
|
|
}
|
|
.eyebrow { margin: 0 0 12px; color: #a3afbf; font-size: 12px; font-weight: 700; letter-spacing: .12em; }
|
|
.status-card h2 { margin: 0; font-size: clamp(22px, 3.2vw, 34px); font-weight: 600; line-height: 1.25; }
|
|
.status-hint { margin: 14px 0 0; color: #9aa5b1; font-size: 14px; }
|
|
.status-dot {
|
|
width: 10px;
|
|
height: 10px;
|
|
margin-top: 5px;
|
|
border-radius: 50%;
|
|
background: #77818c;
|
|
box-shadow: 0 0 0 5px rgba(119, 129, 140, .12);
|
|
}
|
|
.status-dot--starting,
|
|
.status-dot--live { background: #52c99a; box-shadow: 0 0 0 5px rgba(82, 201, 154, .14); }
|
|
.status-dot--error { background: #f26d6d; box-shadow: 0 0 0 5px rgba(242, 109, 109, .14); }
|
|
.live-status {
|
|
position: absolute;
|
|
z-index: 20;
|
|
top: 18px;
|
|
left: 50%;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
padding: 9px 14px;
|
|
transform: translateX(-50%);
|
|
border: 1px solid rgba(255, 255, 255, .1);
|
|
border-radius: 999px;
|
|
background: rgba(11, 15, 20, .8);
|
|
font-size: 13px;
|
|
}
|
|
.live-status .status-dot { width: 7px; height: 7px; margin: 0; box-shadow: none; }
|
|
|
|
.video-actions {
|
|
position: absolute;
|
|
z-index: 40;
|
|
right: 22px;
|
|
bottom: 24px;
|
|
display: flex;
|
|
gap: 10px;
|
|
}
|
|
.video-actions button { padding: 10px 15px; border-radius: 10px; font-weight: 600; }
|
|
.recording-status {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
padding: 10px 15px;
|
|
border: 1px solid rgba(255, 255, 255, .24);
|
|
border-radius: 10px;
|
|
color: #fff;
|
|
background: rgba(22, 29, 39, .88);
|
|
font-size: 13px;
|
|
font-weight: 600;
|
|
}
|
|
.recording-status--active { border-color: rgba(244, 99, 115, .64); background: rgba(126, 35, 50, .9); }
|
|
.recording-status--error { border-color: rgba(242, 109, 109, .56); color: #ffe4e7; background: rgba(100, 31, 40, .88); }
|
|
.recording-indicator {
|
|
width: 9px;
|
|
height: 9px;
|
|
border-radius: 50%;
|
|
background: #f46373;
|
|
box-shadow: 0 0 0 4px rgba(244, 99, 115, .16);
|
|
}
|
|
.recording-status--active .recording-indicator { animation: recording-pulse 1.25s ease-in-out infinite; }
|
|
@keyframes recording-pulse {
|
|
50% { box-shadow: 0 0 0 8px rgba(244, 99, 115, .04); opacity: .72; }
|
|
}
|
|
.hangup-button { border: 1px solid #b44755; color: #fff; background: rgba(161, 47, 61, .9); }
|
|
.hangup-button:hover { background: #be394d; }
|
|
.video-notice {
|
|
position: absolute;
|
|
z-index: 40;
|
|
left: 22px;
|
|
bottom: 26px;
|
|
max-width: calc(100% - 420px);
|
|
padding: 9px 12px;
|
|
border: 1px solid rgba(82, 201, 154, .35);
|
|
border-radius: 9px;
|
|
color: #d9f8eb;
|
|
background: rgba(20, 78, 62, .84);
|
|
font-size: 13px;
|
|
}
|
|
.video-notice--error { border-color: rgba(242, 109, 109, .4); color: #ffe4e7; background: rgba(100, 31, 40, .88); }
|
|
|
|
@media (max-width: 820px) {
|
|
.consultation-shell { min-width: 620px; }
|
|
.message-list { padding-inline: 18px; }
|
|
.message-bubble { max-width: 82%; }
|
|
}
|