Files
video_socket-server/client/public/styles/style.css

915 lines
18 KiB
CSS
Raw Normal View History

2026-04-29 15:18:30 +08:00
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');
body {
font-family: 'Inter', sans-serif;
background: #0f172a;
overflow: hidden;
}
.bg-grid {
background-image:
linear-gradient(rgba(99, 102, 241, 0.1) 1px, transparent 1px),
linear-gradient(90deg, rgba(99, 102, 241, 0.1) 1px, transparent 1px);
background-size: 40px 40px;
}
@keyframes gridMove {
0% { transform: translate(0, 0); }
100% { transform: translate(20px, 20px); }
}
.glass {
background: rgba(30, 41, 59, 0.7);
backdrop-filter: blur(12px);
-webkit-backdrop-filter: blur(12px);
border: 1px solid rgba(255, 255, 255, 0.1);
}
.glass-strong {
background: rgba(15, 23, 42, 0.9);
backdrop-filter: blur(20px);
-webkit-backdrop-filter: blur(20px);
}
.control-btn {
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.control-btn:hover {
transform: translateY(-2px);
box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3);
}
.end-call-pulse {
animation: pulse-red 2s infinite;
}
@keyframes pulse-red {
0%, 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
50% { box-shadow: 0 0 0 15px rgba(239, 68, 68, 0); }
}
.chat-bubble {
animation: messageSlide 0.3s ease-out;
margin-bottom: 12px;
}
@keyframes messageSlide {
from { opacity: 0; transform: translateX(-10px); }
to { opacity: 1; transform: translateX(0); }
}
/* 消息样式 */
.message-header {
display: flex;
align-items: center;
gap: 8px;
margin-bottom: 4px;
}
.message-header img {
width: 24px;
height: 24px;
border-radius: 50%;
object-fit: cover;
}
.message-sender {
font-size: 12px;
font-weight: 500;
}
.message-time {
font-size: 12px;
color: #94a3b8;
}
.message-content {
padding: 8px 16px;
border-radius: 8px;
font-size: 14px;
max-width: 70%;
}
/* 系统消息 */
.message-system .message-sender {
color: #60a5fa;
}
.message-system .message-content {
background-color: rgba(30, 64, 175, 0.3);
color: #ffffff;
}
/* 对方消息 */
.message-other .message-sender {
color: #a5b4fc;
}
.message-other .message-content {
background-color: #1e293b;
color: #ffffff;
border-top-left-radius: 0;
}
/* 自己的消息 */
.message-self {
display: flex;
flex-direction: column;
align-items: flex-end;
}
.message-self .message-header {
flex-direction: row-reverse;
}
.message-self .message-sender {
color: #4ade80;
}
.message-self .message-content {
background-color: #4f46e5;
color: #ffffff;
border-top-right-radius: 0;
}
/* 图片消息样式 */
.message-image-container {
display: flex;
flex-direction: column;
gap: 8px;
}
.message-image {
max-width: 200px;
max-height: 200px;
border-radius: 8px;
object-fit: cover;
}
.message-image-name {
font-size: 12px;
color: rgba(255, 255, 255, 0.7);
text-align: center;
}
.message-text {
word-wrap: break-word;
}
.custom-scrollbar::-webkit-scrollbar {
width: 6px;
}
.custom-scrollbar::-webkit-scrollbar-track {
background: rgba(255, 255, 255, 0.05);
}
.custom-scrollbar::-webkit-scrollbar-thumb {
background: rgba(255, 255, 255, 0.2);
border-radius: 3px;
}
.audio-wave {
display: flex;
align-items: center;
gap: 3px;
height: 20px;
}
.audio-wave span {
width: 3px;
background: #10b981;
border-radius: 2px;
animation: wave 1s ease-in-out infinite;
}
.audio-wave span:nth-child(1) { animation-delay: 0s; height: 40%; }
.audio-wave span:nth-child(2) { animation-delay: 0.1s; height: 70%; }
.audio-wave span:nth-child(3) { animation-delay: 0.2s; height: 100%; }
.audio-wave span:nth-child(4) { animation-delay: 0.3s; height: 60%; }
.audio-wave span:nth-child(5) { animation-delay: 0.4s; height: 30%; }
@keyframes wave {
0%, 100% { transform: scaleY(0.5); }
50% { transform: scaleY(1); }
}
.video-fade-in {
animation: videoFadeIn 0.5s ease-out;
}
@keyframes videoFadeIn {
from { opacity: 0; transform: scale(1.05); }
to { opacity: 1; transform: scale(1); }
}
/* 数据绑定标记 - 开发调试时显示
[data-field]::after {
content: attr(data-field);
position: absolute;
top: -18px;
right: 0;
background: #f59e0b;
color: #000;
font-size: 9px;
padding: 1px 4px;
border-radius: 3px;
opacity: 0;
transition: opacity 0.2s;
pointer-events: none;
z-index: 1000;
white-space: nowrap;
}
[data-field]:hover::after { opacity: 1; }
[data-field] { position: relative; }*/
/* 分辨率选项样式 */
.resolution-option {
color: rgba(255, 255, 255, 0.8);
cursor: pointer;
transition: all 0.2s;
}
.resolution-option:hover {
color: white;
}
.resolution-option.active {
background: rgba(99, 102, 241, 0.3);
color: white;
}
.resolution-option.active::before {
content: '\f00c';
font-family: 'Font Awesome 6 Free';
font-weight: 900;
font-size: 10px;
margin-right: 6px;
color: #818cf8;
}
/* 更多选项菜单动画 */
#moreOptionsMenu {
animation: menuFadeIn 0.15s ease-out;
}
@keyframes menuFadeIn {
from { opacity: 0; transform: translateX(-50%) translateY(8px); }
to { opacity: 1; transform: translateX(-50%) translateY(0); }
}
2026-05-25 17:39:57 +08:00
.recordings-page {
overflow: hidden;
}
.recordings-shell {
padding: 24px;
display: flex;
flex-direction: column;
gap: 16px;
}
.recordings-toolbar {
2026-05-25 21:57:58 +08:00
position: relative;
z-index: 50;
2026-05-25 17:39:57 +08:00
min-height: 76px;
border-radius: 16px;
padding: 14px;
display: grid;
2026-05-25 21:57:58 +08:00
grid-template-columns: repeat(3, minmax(112px, max-content)) minmax(220px, 1fr) 152px;
2026-05-25 17:39:57 +08:00
align-items: center;
gap: 12px;
}
.recordings-stat {
min-width: 112px;
padding: 6px 10px;
}
.recordings-stat-value {
display: block;
font-size: 20px;
line-height: 1.1;
font-weight: 700;
color: #ffffff;
}
.recordings-stat-label {
display: block;
margin-top: 4px;
font-size: 12px;
color: #94a3b8;
}
.recordings-search,
.recordings-input {
height: 42px;
border-radius: 12px;
border: 1px solid rgba(255, 255, 255, 0.12);
background: rgba(15, 23, 42, 0.58);
color: #ffffff;
}
.recordings-search {
display: flex;
align-items: center;
gap: 10px;
padding: 0 14px;
}
.recordings-search input {
width: 100%;
min-width: 0;
border: 0;
outline: 0;
background: transparent;
color: #ffffff;
font-size: 14px;
}
.recordings-search input::placeholder,
.recordings-input::placeholder {
color: #64748b;
}
2026-05-25 21:57:58 +08:00
.recordings-format-filter {
position: relative;
z-index: 20;
min-width: 152px;
2026-05-25 17:39:57 +08:00
}
2026-05-25 21:57:58 +08:00
.recordings-select-native {
position: absolute;
inset: 0;
width: 100%;
height: 42px;
opacity: 0;
pointer-events: none;
}
.recordings-filter-trigger {
width: 100%;
height: 42px;
padding: 0 12px 0 14px;
border: 1px solid rgba(129, 140, 248, 0.45);
border-radius: 12px;
background: linear-gradient(180deg, rgba(30, 41, 59, 0.96), rgba(15, 23, 42, 0.94));
color: #e5e7eb;
display: flex;
align-items: center;
justify-content: space-between;
gap: 10px;
font-size: 14px;
font-weight: 700;
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 10px 24px rgba(2, 6, 23, 0.24);
}
.recordings-filter-trigger i {
color: #c7d2fe;
font-size: 12px;
transition: transform 0.2s ease;
}
.recordings-filter-trigger:hover,
.recordings-format-filter.is-open .recordings-filter-trigger {
border-color: rgba(165, 180, 252, 0.9);
background: linear-gradient(180deg, rgba(49, 46, 129, 0.72), rgba(30, 41, 59, 0.96));
}
.recordings-filter-trigger:focus-visible {
border-color: rgba(129, 140, 248, 0.95);
box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}
.recordings-format-filter.is-open .recordings-filter-trigger i {
transform: rotate(180deg);
}
.recordings-filter-menu {
position: absolute;
top: calc(100% + 8px);
right: 0;
left: 0;
z-index: 40;
padding: 6px;
border: 1px solid rgba(148, 163, 184, 0.18);
border-radius: 14px;
background: rgba(15, 23, 42, 0.98);
box-shadow: 0 18px 40px rgba(2, 6, 23, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.recordings-filter-option {
position: relative;
width: 100%;
min-height: 50px;
padding: 8px 34px 8px 10px;
border: 0;
border-radius: 10px;
background: transparent;
color: #e2e8f0;
display: flex;
flex-direction: column;
align-items: flex-start;
justify-content: center;
gap: 2px;
text-align: left;
cursor: pointer;
transition: background 0.18s, color 0.18s;
}
.recordings-filter-option span {
font-size: 14px;
font-weight: 700;
}
.recordings-filter-option small {
color: #64748b;
font-size: 11px;
line-height: 1;
}
.recordings-filter-option:hover,
.recordings-filter-option.is-active {
background: rgba(79, 70, 229, 0.22);
color: #ffffff;
}
.recordings-filter-option.is-active::after {
content: "\f00c";
position: absolute;
top: 50%;
right: 12px;
transform: translateY(-50%);
color: #a5b4fc;
font-family: "Font Awesome 6 Free";
font-size: 12px;
font-weight: 900;
2026-05-25 17:39:57 +08:00
}
.recordings-content {
min-height: 0;
flex: 1;
display: grid;
grid-template-columns: 280px minmax(420px, 1fr) 360px;
gap: 16px;
}
.recordings-upload,
.recordings-list,
.recordings-preview {
min-height: 0;
border-radius: 16px;
}
.recordings-upload {
padding: 18px;
}
.recordings-list {
padding: 0;
display: flex;
flex-direction: column;
overflow: hidden;
}
.recordings-list-head {
min-height: 72px;
padding: 18px;
display: flex;
align-items: center;
justify-content: space-between;
gap: 12px;
border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.recordings-preview {
padding: 16px;
display: flex;
flex-direction: column;
gap: 16px;
overflow: hidden;
}
.recordings-dropzone {
min-height: 132px;
border-radius: 14px;
border: 1px dashed rgba(129, 140, 248, 0.55);
background: rgba(79, 70, 229, 0.08);
color: #c7d2fe;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
gap: 10px;
text-align: center;
cursor: pointer;
transition: background 0.2s, border-color 0.2s;
}
.recordings-dropzone:hover {
background: rgba(79, 70, 229, 0.16);
border-color: rgba(165, 180, 252, 0.8);
}
.recordings-label {
display: block;
margin-bottom: 8px;
font-size: 12px;
color: #94a3b8;
}
.recordings-input {
width: 100%;
padding: 0 12px;
outline: 0;
}
.recordings-input:focus,
.recordings-search:focus-within {
border-color: rgba(129, 140, 248, 0.9);
box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.22);
}
.recordings-primary-btn,
.recordings-secondary-btn,
.recordings-text-btn,
.recordings-icon-btn {
border: 0;
outline: 0;
cursor: pointer;
transition: transform 0.2s, background 0.2s, color 0.2s, border-color 0.2s;
}
.recordings-primary-btn,
.recordings-secondary-btn {
min-height: 42px;
border-radius: 12px;
display: inline-flex;
align-items: center;
justify-content: center;
gap: 8px;
font-size: 14px;
font-weight: 600;
}
.recordings-primary-btn {
width: 100%;
background: #4f46e5;
color: #ffffff;
}
.recordings-primary-btn:hover {
background: #4338ca;
}
.recordings-primary-btn:disabled {
opacity: 0.55;
cursor: wait;
}
.recordings-secondary-btn {
width: 100%;
background: rgba(255, 255, 255, 0.08);
color: #e2e8f0;
border: 1px solid rgba(255, 255, 255, 0.1);
}
.recordings-secondary-btn:hover {
background: rgba(255, 255, 255, 0.14);
}
.recordings-text-btn {
display: inline-flex;
align-items: center;
gap: 8px;
color: #c7d2fe;
background: transparent;
font-size: 13px;
}
.recordings-icon-btn {
width: 38px;
height: 38px;
border-radius: 11px;
display: inline-flex;
align-items: center;
justify-content: center;
color: #cbd5e1;
background: rgba(255, 255, 255, 0.06);
}
.recordings-icon-btn:hover {
transform: translateY(-1px);
color: #ffffff;
background: rgba(255, 255, 255, 0.12);
}
.recordings-danger {
color: #fca5a5;
}
.recordings-danger:hover {
color: #ffffff;
background: rgba(239, 68, 68, 0.75);
}
.recordings-table-wrap {
flex: 1;
min-height: 0;
overflow: auto;
}
.recordings-table {
width: 100%;
border-collapse: collapse;
table-layout: fixed;
}
.recordings-table th,
.recordings-table td {
padding: 13px 14px;
border-bottom: 1px solid rgba(255, 255, 255, 0.08);
text-align: left;
vertical-align: middle;
}
.recordings-table th {
position: sticky;
top: 0;
z-index: 1;
background: rgba(15, 23, 42, 0.95);
color: #94a3b8;
font-size: 12px;
font-weight: 600;
}
2026-05-25 21:57:58 +08:00
.recordings-table th:nth-child(1) { width: 28%; }
.recordings-table th:nth-child(2) { width: 12%; }
.recordings-table th:nth-child(3) { width: 15%; }
.recordings-table th:nth-child(4) { width: 8%; }
.recordings-table th:nth-child(5) { width: 9%; }
.recordings-table th:nth-child(6) { width: 14%; }
.recordings-table th:nth-child(7) { width: 14%; }
2026-05-25 17:39:57 +08:00
.recordings-table tbody tr {
transition: background 0.2s;
}
.recordings-table tbody tr:hover,
.recordings-row-active {
background: rgba(99, 102, 241, 0.14);
}
.recordings-file-cell {
max-width: 100%;
display: flex;
align-items: center;
gap: 10px;
border: 0;
background: transparent;
color: inherit;
text-align: left;
cursor: pointer;
}
.recordings-file-icon {
flex: 0 0 auto;
width: 46px;
height: 30px;
border-radius: 8px;
display: inline-flex;
align-items: center;
justify-content: center;
background: rgba(16, 185, 129, 0.16);
color: #6ee7b7;
font-size: 11px;
font-weight: 700;
}
.recordings-file-name,
.recordings-file-sub {
display: block;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.recordings-file-name {
color: #ffffff;
font-size: 14px;
font-weight: 600;
}
.recordings-file-sub {
margin-top: 3px;
color: #64748b;
font-size: 12px;
}
.recordings-actions {
display: flex;
align-items: center;
gap: 6px;
}
.recordings-empty {
flex: 1;
min-height: 260px;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
gap: 14px;
color: #94a3b8;
}
.recordings-preview-video {
position: relative;
aspect-ratio: 16 / 9;
border-radius: 14px;
overflow: hidden;
background: #020617;
border: 1px solid rgba(255, 255, 255, 0.1);
}
.recordings-preview-video video {
width: 100%;
height: 100%;
object-fit: contain;
}
.recordings-preview-placeholder {
position: absolute;
inset: 0;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
gap: 10px;
color: #94a3b8;
background: linear-gradient(135deg, rgba(49, 46, 129, 0.55), rgba(8, 47, 73, 0.45));
}
.recordings-preview-meta {
min-height: 0;
overflow: auto;
}
.recordings-preview-meta h2 {
margin-bottom: 14px;
font-size: 17px;
font-weight: 700;
word-break: break-word;
}
.recordings-detail-row {
display: flex;
justify-content: space-between;
gap: 16px;
padding: 10px 0;
border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.recordings-detail-row span {
color: #94a3b8;
}
.recordings-detail-row strong {
color: #e2e8f0;
font-weight: 600;
text-align: right;
word-break: break-all;
}
2026-05-25 21:57:58 +08:00
.recordings-people-section {
padding: 12px 0;
border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.recordings-people-title {
margin-bottom: 10px;
color: #94a3b8;
font-size: 13px;
font-weight: 600;
}
.recordings-person {
display: flex;
align-items: center;
gap: 10px;
padding: 8px 0;
}
.recordings-person img {
width: 34px;
height: 34px;
border-radius: 999px;
object-fit: cover;
background: rgba(255, 255, 255, 0.08);
}
.recordings-person strong,
.recordings-person span {
display: block;
max-width: 230px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.recordings-person strong {
color: #ffffff;
font-size: 13px;
}
.recordings-person span,
.recordings-person-empty {
color: #64748b;
font-size: 12px;
}
2026-05-25 17:39:57 +08:00
.recordings-preview-actions {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 10px;
margin-top: 16px;
}
.recordings-dialog {
width: min(440px, calc(100vw - 32px));
border-radius: 18px;
padding: 22px;
}
.recordings-notification {
position: fixed;
top: 82px;
left: 50%;
transform: translate(-50%, -16px);
z-index: 60;
min-height: 44px;
padding: 0 18px;
border-radius: 999px;
display: flex;
align-items: center;
gap: 10px;
color: #ffffff;
opacity: 0;
pointer-events: none;
transition: opacity 0.2s, transform 0.2s;
}
.recordings-notification-visible {
opacity: 1;
transform: translate(-50%, 0);
}
.recordings-notification-error i {
color: #f87171;
}
@media (max-width: 1180px) {
.recordings-content {
grid-template-columns: 260px minmax(420px, 1fr);
}
.recordings-preview {
grid-column: 1 / -1;
min-height: 360px;
display: grid;
grid-template-columns: minmax(360px, 0.8fr) 1fr;
}
}
@media (max-width: 860px) {
.recordings-page {
overflow: auto;
}
.recordings-shell {
padding: 14px;
overflow: visible;
}
.recordings-toolbar {
grid-template-columns: 1fr 1fr;
}
.recordings-search,
2026-05-25 21:57:58 +08:00
.recordings-format-filter {
2026-05-25 17:39:57 +08:00
grid-column: 1 / -1;
}
.recordings-content,
.recordings-preview {
display: flex;
flex-direction: column;
}
.recordings-list,
.recordings-upload,
.recordings-preview {
flex: none;
}
.recordings-table {
2026-05-25 21:57:58 +08:00
min-width: 920px;
2026-05-25 17:39:57 +08:00
}
}