mirror of
https://github.com/hicccc77/WeFlow.git
synced 2026-03-25 15:25:50 +00:00
531 lines
9.2 KiB
SCSS
531 lines
9.2 KiB
SCSS
// 加载和错误状态
|
|
.loading-container,
|
|
.error-container {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
justify-content: center;
|
|
height: 100%;
|
|
min-height: 400px;
|
|
gap: 16px;
|
|
color: var(--text-secondary);
|
|
|
|
.spin {
|
|
animation: spin 1s linear infinite;
|
|
}
|
|
|
|
p.loading-status {
|
|
margin: 0;
|
|
font-size: 14px;
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
.progress-bar-wrapper {
|
|
width: 300px;
|
|
height: 8px;
|
|
background: var(--bg-tertiary);
|
|
border-radius: 999px;
|
|
overflow: hidden;
|
|
position: relative;
|
|
border: 1px solid var(--border-color);
|
|
}
|
|
|
|
.progress-bar-fill {
|
|
position: absolute;
|
|
left: 0;
|
|
top: 0;
|
|
height: 100%;
|
|
background: var(--primary-gradient);
|
|
transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
|
|
box-shadow: 0 0 10px rgba(139, 115, 85, 0.3);
|
|
}
|
|
|
|
.progress-percent {
|
|
font-size: 12px;
|
|
font-weight: 600;
|
|
color: var(--primary);
|
|
}
|
|
|
|
.error-actions {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
}
|
|
}
|
|
|
|
.page-header {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 12px;
|
|
margin-bottom: 16px;
|
|
|
|
h1 {
|
|
margin: 0;
|
|
}
|
|
|
|
.header-actions {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
}
|
|
}
|
|
|
|
@keyframes spin {
|
|
from {
|
|
transform: rotate(0deg);
|
|
}
|
|
|
|
to {
|
|
transform: rotate(360deg);
|
|
}
|
|
}
|
|
|
|
// 统计卡片
|
|
.stats-overview {
|
|
display: grid;
|
|
grid-template-columns: repeat(4, 1fr);
|
|
gap: 16px;
|
|
margin-bottom: 24px;
|
|
}
|
|
|
|
.stat-card {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 16px;
|
|
padding: 20px;
|
|
background: var(--card-bg);
|
|
border-radius: 12px;
|
|
border: 1px solid var(--border-color);
|
|
|
|
.stat-icon {
|
|
width: 48px;
|
|
height: 48px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
background: var(--primary-light);
|
|
border-radius: 12px;
|
|
color: var(--primary);
|
|
}
|
|
|
|
.stat-info {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 4px;
|
|
|
|
.stat-value {
|
|
font-size: 24px;
|
|
font-weight: 600;
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
.stat-label {
|
|
font-size: 13px;
|
|
color: var(--text-tertiary);
|
|
}
|
|
}
|
|
}
|
|
|
|
.time-range {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
padding: 12px 16px;
|
|
background: var(--bg-tertiary);
|
|
border-radius: 8px;
|
|
margin-bottom: 24px;
|
|
font-size: 13px;
|
|
color: var(--text-secondary);
|
|
|
|
svg {
|
|
color: var(--text-tertiary);
|
|
}
|
|
}
|
|
|
|
.charts-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(2, 1fr);
|
|
gap: 16px;
|
|
margin-bottom: 24px;
|
|
}
|
|
|
|
.chart-card {
|
|
background: var(--card-bg);
|
|
border-radius: 12px;
|
|
border: 1px solid var(--border-color);
|
|
padding: 20px;
|
|
|
|
&.wide {
|
|
grid-column: span 2;
|
|
}
|
|
|
|
h3 {
|
|
font-size: 15px;
|
|
font-weight: 500;
|
|
color: var(--text-primary);
|
|
margin: 0 0 16px;
|
|
}
|
|
}
|
|
|
|
.rankings-list {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 8px;
|
|
}
|
|
|
|
.ranking-item {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12px;
|
|
padding: 12px 16px;
|
|
background: var(--bg-primary);
|
|
border-radius: 8px;
|
|
transition: background 0.2s;
|
|
|
|
&:hover {
|
|
background: var(--bg-tertiary);
|
|
}
|
|
|
|
.rank {
|
|
width: 28px;
|
|
height: 28px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
background: var(--bg-tertiary);
|
|
border-radius: 8px;
|
|
font-size: 13px;
|
|
font-weight: 600;
|
|
color: var(--text-secondary);
|
|
flex-shrink: 0;
|
|
|
|
&.top {
|
|
background: var(--primary);
|
|
color: white;
|
|
}
|
|
}
|
|
|
|
.contact-avatar {
|
|
width: 40px;
|
|
height: 40px;
|
|
flex-shrink: 0;
|
|
position: relative;
|
|
|
|
img {
|
|
width: 100%;
|
|
height: 100%;
|
|
border-radius: 50%;
|
|
object-fit: cover;
|
|
}
|
|
|
|
.avatar-placeholder {
|
|
width: 100%;
|
|
height: 100%;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
background: var(--bg-tertiary);
|
|
border-radius: 50%;
|
|
color: var(--text-tertiary);
|
|
}
|
|
|
|
.medal {
|
|
position: absolute;
|
|
right: -4px;
|
|
bottom: -4px;
|
|
width: 18px;
|
|
height: 18px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
border-radius: 50%;
|
|
border: 2px solid var(--bg-primary);
|
|
|
|
&.medal-1 {
|
|
background: linear-gradient(135deg, #ffd700, #ffb800);
|
|
color: #fff;
|
|
box-shadow: 0 2px 4px rgba(255, 184, 0, 0.4);
|
|
}
|
|
|
|
&.medal-2 {
|
|
background: linear-gradient(135deg, #c0c0c0, #a8a8a8);
|
|
color: #fff;
|
|
box-shadow: 0 2px 4px rgba(168, 168, 168, 0.4);
|
|
}
|
|
|
|
&.medal-3 {
|
|
background: linear-gradient(135deg, #cd7f32, #b87333);
|
|
color: #fff;
|
|
box-shadow: 0 2px 4px rgba(184, 115, 51, 0.4);
|
|
}
|
|
|
|
svg {
|
|
width: 10px;
|
|
height: 10px;
|
|
}
|
|
}
|
|
}
|
|
|
|
.contact-info {
|
|
flex: 1;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 2px;
|
|
min-width: 0;
|
|
|
|
.contact-name {
|
|
font-size: 14px;
|
|
font-weight: 500;
|
|
color: var(--text-primary);
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.contact-stats {
|
|
font-size: 12px;
|
|
color: var(--text-tertiary);
|
|
}
|
|
}
|
|
|
|
.message-count {
|
|
font-size: 14px;
|
|
font-weight: 500;
|
|
color: var(--primary);
|
|
flex-shrink: 0;
|
|
}
|
|
}
|
|
|
|
// 响应式
|
|
@media (max-width: 1200px) {
|
|
.stats-overview {
|
|
grid-template-columns: repeat(2, 1fr);
|
|
}
|
|
}
|
|
|
|
@media (max-width: 800px) {
|
|
.stats-overview {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
|
|
.charts-grid {
|
|
grid-template-columns: 1fr;
|
|
|
|
.chart-card.wide {
|
|
grid-column: span 1;
|
|
}
|
|
}
|
|
}
|
|
|
|
// 排除好友弹窗
|
|
.exclude-modal-overlay {
|
|
position: fixed;
|
|
inset: 0;
|
|
background: rgba(0, 0, 0, 0.45);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
z-index: 1000;
|
|
backdrop-filter: blur(4px);
|
|
}
|
|
|
|
.exclude-modal {
|
|
width: 560px;
|
|
max-width: calc(100vw - 48px);
|
|
background: var(--card-bg);
|
|
border-radius: 16px;
|
|
border: 1px solid var(--border-color);
|
|
padding: 20px;
|
|
box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
|
|
|
|
.exclude-modal-header {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
margin-bottom: 12px;
|
|
|
|
h3 {
|
|
margin: 0;
|
|
font-size: 16px;
|
|
color: var(--text-primary);
|
|
}
|
|
}
|
|
|
|
.modal-close {
|
|
width: 32px;
|
|
height: 32px;
|
|
border-radius: 50%;
|
|
border: none;
|
|
background: var(--bg-tertiary);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
cursor: pointer;
|
|
color: var(--text-secondary);
|
|
transition: all 0.15s;
|
|
|
|
&:hover {
|
|
background: var(--bg-hover);
|
|
color: var(--text-primary);
|
|
}
|
|
}
|
|
|
|
.exclude-modal-search {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
padding: 8px 12px;
|
|
border-radius: 10px;
|
|
border: 1px solid var(--border-color);
|
|
background: var(--bg-primary);
|
|
margin-bottom: 12px;
|
|
color: var(--text-tertiary);
|
|
|
|
input {
|
|
flex: 1;
|
|
border: none;
|
|
outline: none;
|
|
background: transparent;
|
|
color: var(--text-primary);
|
|
font-size: 13px;
|
|
}
|
|
|
|
.clear-search {
|
|
background: none;
|
|
border: none;
|
|
cursor: pointer;
|
|
color: var(--text-tertiary);
|
|
padding: 2px;
|
|
|
|
&:hover {
|
|
color: var(--text-primary);
|
|
}
|
|
}
|
|
}
|
|
|
|
.exclude-modal-body {
|
|
max-height: 420px;
|
|
overflow: auto;
|
|
padding-right: 4px;
|
|
}
|
|
|
|
.exclude-loading,
|
|
.exclude-error,
|
|
.exclude-empty {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 8px;
|
|
color: var(--text-secondary);
|
|
padding: 24px 0;
|
|
font-size: 13px;
|
|
}
|
|
|
|
.exclude-list {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 6px;
|
|
}
|
|
|
|
.exclude-item {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12px;
|
|
padding: 8px 10px;
|
|
border-radius: 10px;
|
|
cursor: pointer;
|
|
border: 1px solid transparent;
|
|
transition: all 0.15s;
|
|
background: var(--bg-primary);
|
|
|
|
&:hover {
|
|
background: var(--bg-tertiary);
|
|
}
|
|
|
|
&.active {
|
|
border-color: rgba(7, 193, 96, 0.4);
|
|
background: rgba(7, 193, 96, 0.08);
|
|
}
|
|
|
|
input {
|
|
margin: 0;
|
|
}
|
|
}
|
|
|
|
.exclude-avatar {
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.exclude-info {
|
|
display: flex;
|
|
flex-direction: column;
|
|
min-width: 0;
|
|
gap: 2px;
|
|
}
|
|
|
|
.exclude-name {
|
|
font-size: 14px;
|
|
color: var(--text-primary);
|
|
font-weight: 500;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.exclude-username {
|
|
font-size: 12px;
|
|
color: var(--text-tertiary);
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.exclude-modal-footer {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
margin-top: 16px;
|
|
}
|
|
|
|
.exclude-footer-left {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12px;
|
|
}
|
|
|
|
.exclude-count {
|
|
font-size: 12px;
|
|
color: var(--text-tertiary);
|
|
}
|
|
|
|
.btn-text {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 4px;
|
|
background: none;
|
|
border: none;
|
|
cursor: pointer;
|
|
font-size: 12px;
|
|
color: var(--text-secondary);
|
|
padding: 4px 8px;
|
|
border-radius: 6px;
|
|
transition: all 0.15s;
|
|
|
|
&:hover {
|
|
color: var(--primary);
|
|
background: var(--primary-light);
|
|
}
|
|
|
|
&:disabled {
|
|
opacity: 0.5;
|
|
cursor: not-allowed;
|
|
}
|
|
}
|
|
|
|
.exclude-actions {
|
|
display: flex;
|
|
gap: 8px;
|
|
}
|
|
}
|