627 lines
12 KiB
CSS
Executable File
627 lines
12 KiB
CSS
Executable File
/* 筛选区域样式 */
|
|
.receive_filter {
|
|
margin: 20px 0;
|
|
padding: 20px;
|
|
background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
|
|
border-radius: 12px;
|
|
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
|
|
border: 1px solid #e2e8f0;
|
|
}
|
|
|
|
.filter_header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
margin-bottom: 20px;
|
|
padding-bottom: 12px;
|
|
border-bottom: 2px solid #e2e8f0;
|
|
}
|
|
|
|
.filter_title {
|
|
margin: 0;
|
|
font-size: 1.2em;
|
|
color: #1e293b;
|
|
font-weight: 600;
|
|
display: flex;
|
|
align-items: center;
|
|
}
|
|
|
|
.filter_title::before {
|
|
content: "🔍";
|
|
margin-right: 8px;
|
|
font-size: 1.1em;
|
|
}
|
|
|
|
.filter_actions {
|
|
display: flex;
|
|
gap: 10px;
|
|
}
|
|
|
|
.filter_form {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
|
|
gap: 20px;
|
|
align-items: end;
|
|
}
|
|
|
|
.filter_group {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 8px;
|
|
}
|
|
|
|
.filter_label {
|
|
font-size: 0.9em;
|
|
font-weight: 500;
|
|
color: #374151;
|
|
margin-bottom: 4px;
|
|
}
|
|
|
|
.filter_select {
|
|
padding: 12px 16px;
|
|
border: 2px solid #e2e8f0;
|
|
border-radius: 8px;
|
|
font-size: 14px;
|
|
background: white;
|
|
color: #374151;
|
|
outline: none;
|
|
transition: all 0.3s ease;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.filter_select:hover {
|
|
border-color: #cbd5e1;
|
|
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
|
|
}
|
|
|
|
.filter_select:focus {
|
|
border-color: #4f46e5;
|
|
box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
|
|
}
|
|
|
|
.receive_btn_clear {
|
|
background: linear-gradient(135deg, #f59e0b, #d97706);
|
|
color: white;
|
|
border: none;
|
|
padding: 8px 16px;
|
|
border-radius: 6px;
|
|
font-size: 0.9em;
|
|
text-decoration: none;
|
|
transition: all 0.3s ease;
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
}
|
|
|
|
.receive_btn_clear::before {
|
|
content: "✕";
|
|
font-size: 0.8em;
|
|
}
|
|
|
|
.receive_btn_clear:hover {
|
|
background: linear-gradient(135deg, #d97706, #b45309);
|
|
transform: translateY(-1px);
|
|
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
|
|
text-decoration: none;
|
|
color: white;
|
|
}
|
|
|
|
.receive_btn_primary {
|
|
background: linear-gradient(135deg, #4f46e5, #3b82f6);
|
|
color: white;
|
|
border: none;
|
|
padding: 12px 24px;
|
|
border-radius: 8px;
|
|
font-size: 14px;
|
|
font-weight: 500;
|
|
cursor: pointer;
|
|
transition: all 0.3s ease;
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
justify-content: center;
|
|
}
|
|
|
|
.receive_btn_primary::before {
|
|
content: "✓";
|
|
font-size: 0.9em;
|
|
}
|
|
|
|
.receive_btn_primary:hover {
|
|
background: linear-gradient(135deg, #3b82f6, #2563eb);
|
|
transform: translateY(-2px);
|
|
box-shadow: 0 6px 12px rgba(79, 70, 229, 0.3);
|
|
}
|
|
|
|
.receive_btn_warning {
|
|
background: linear-gradient(135deg, #ef4444, #dc2626);
|
|
color: white;
|
|
border: none;
|
|
padding: 8px 16px;
|
|
border-radius: 6px;
|
|
font-size: 0.9em;
|
|
cursor: pointer;
|
|
transition: all 0.3s ease;
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
}
|
|
|
|
.receive_btn_warning::before {
|
|
content: "⚠";
|
|
font-size: 0.9em;
|
|
}
|
|
|
|
.receive_btn_warning:hover {
|
|
background: linear-gradient(135deg, #dc2626, #b91c1c);
|
|
transform: translateY(-1px);
|
|
box-shadow: 0 4px 8px rgba(239, 68, 68, 0.3);
|
|
}
|
|
|
|
/* 统计卡片网格布局 */
|
|
.stats_section {
|
|
margin: 20px 0;
|
|
}
|
|
|
|
.stats_section_title {
|
|
font-size: 1.1em;
|
|
color: #374151;
|
|
margin-bottom: 15px;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.stats_grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
|
|
gap: 12px;
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
.stats_card {
|
|
background: linear-gradient(135deg, #f8fafc, #e2e8f0);
|
|
padding: 12px 16px;
|
|
border-radius: 8px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
text-align: center;
|
|
transition: all 0.3s ease;
|
|
border: 2px solid transparent;
|
|
text-decoration: none;
|
|
color: inherit;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.stats_card:hover {
|
|
transform: translateY(-2px);
|
|
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
|
|
text-decoration: none;
|
|
color: inherit;
|
|
}
|
|
|
|
.stats_card.active {
|
|
border-color: currentColor;
|
|
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
|
|
}
|
|
|
|
.stats_card_label {
|
|
font-size: 0.9em;
|
|
color: #6b7280;
|
|
margin-bottom: 4px;
|
|
}
|
|
|
|
.stats_card_value {
|
|
font-size: 1.4em;
|
|
font-weight: bold;
|
|
color: #1f2937;
|
|
}
|
|
|
|
/* 设备类型颜色 */
|
|
.stats_card.device-type-摄像头 {
|
|
background: linear-gradient(135deg, #dbeafe, #bfdbfe);
|
|
border-color: #3b82f6;
|
|
}
|
|
|
|
.stats_card.device-type-摄像头 .stats_card_value {
|
|
color: #1d4ed8;
|
|
}
|
|
|
|
.stats_card.device-type-一键报警 {
|
|
background: linear-gradient(135deg, #fed7aa, #fdba74);
|
|
border-color: #f59e0b;
|
|
}
|
|
|
|
.stats_card.device-type-一键报警 .stats_card_value {
|
|
color: #d97706;
|
|
}
|
|
|
|
.stats_card.device-type-紫色 {
|
|
background: linear-gradient(135deg, #e9d5ff, #c4b5fd);
|
|
border-color: #8b5cf6;
|
|
}
|
|
|
|
.stats_card.device-type-紫色 .stats_card_value {
|
|
color: #7c3aed;
|
|
}
|
|
|
|
.stats_card.device-type-绿色 {
|
|
background: linear-gradient(135deg, #dcfce7, #bbf7d0);
|
|
border-color: #22c55e;
|
|
}
|
|
|
|
.stats_card.device-type-绿色 .stats_card_value {
|
|
color: #16a34a;
|
|
}
|
|
|
|
.stats_card.device-type-灰色 {
|
|
background: linear-gradient(135deg, #f3f4f6, #e5e7eb);
|
|
border-color: #6b7280;
|
|
}
|
|
|
|
.stats_card.device-type-灰色 .stats_card_value {
|
|
color: #4b5563;
|
|
}
|
|
|
|
/* 项目类型颜色 */
|
|
.stats_card[class*="project-type-"] {
|
|
background: linear-gradient(135deg, #fef3c7, #fde68a);
|
|
border-color: #f59e0b;
|
|
}
|
|
|
|
.stats_card[class*="project-type-"] .stats_card_value {
|
|
color: #d97706;
|
|
}
|
|
|
|
/* 统计卡片样式 */
|
|
.receive_stats {
|
|
margin: 20px 0;
|
|
padding: 20px;
|
|
background: #fff;
|
|
border-radius: 10px;
|
|
box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
|
|
}
|
|
|
|
.stats_item {
|
|
display: flex;
|
|
align-items: center;
|
|
margin-bottom: 20px;
|
|
padding: 15px;
|
|
background: linear-gradient(135deg, #6366f1, #4f46e5);
|
|
border-radius: 8px;
|
|
color: white;
|
|
}
|
|
|
|
.stats_label {
|
|
font-size: 1.1em;
|
|
opacity: 0.9;
|
|
}
|
|
|
|
.stats_value {
|
|
font-size: 1.8em;
|
|
font-weight: bold;
|
|
margin-left: auto;
|
|
}
|
|
|
|
.receive_btn {
|
|
padding: 8px 16px;
|
|
border: none;
|
|
border-radius: 6px;
|
|
cursor: pointer;
|
|
transition: all 0.3s ease;
|
|
font-size: 14px;
|
|
font-weight: 500;
|
|
}
|
|
|
|
.receive_btn_warning {
|
|
background-color: #ff9800;
|
|
color: white;
|
|
}
|
|
|
|
.receive_btn_warning:hover {
|
|
background-color: #ffc772;
|
|
color: white;
|
|
}
|
|
|
|
.receive_btn_secondary {
|
|
background-color: #008cff;
|
|
color: white;
|
|
text-decoration: none;
|
|
text-align: center;
|
|
}
|
|
|
|
.receive_btn_secondary:hover {
|
|
background-color: #43abff;
|
|
text-decoration: none;
|
|
color: white;
|
|
}
|
|
|
|
.receive_btn_primary {
|
|
background-color: #4CAF50;
|
|
color: white;
|
|
}
|
|
|
|
|
|
|
|
.modal {
|
|
display: none;
|
|
position: fixed;
|
|
top: 0;
|
|
left: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
background-color: rgba(0, 0, 0, 0.5);
|
|
z-index: 1000;
|
|
backdrop-filter: blur(5px);
|
|
}
|
|
|
|
.modal-content {
|
|
background-color: #fff;
|
|
margin: 15vh auto;
|
|
padding: 25px;
|
|
width: 90%;
|
|
max-width: 400px;
|
|
border-radius: 12px;
|
|
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
|
|
animation: modalSlideIn 0.3s ease-out;
|
|
}
|
|
|
|
.modal-body {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
gap: 15px;
|
|
margin: 20px 0;
|
|
}
|
|
|
|
.modal-icon {
|
|
width: 48px;
|
|
height: 48px;
|
|
border-radius: 50%;
|
|
background-position: center;
|
|
background-repeat: no-repeat;
|
|
background-size: 24px;
|
|
}
|
|
|
|
.modal-icon.warning {
|
|
background-color: #fff3e0;
|
|
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23ff5722' d='M12 2L1 21h22M12 6l7.53 13H4.47M11 10v4h2v-4m-2 6v2h2v-2'/%3E%3C/svg%3E");
|
|
}
|
|
|
|
.modal-icon.info {
|
|
background-color: #e8f5e9;
|
|
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%234CAF50' d='M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-6h2v6zm0-8h-2V7h2v2z'/%3E%3C/svg%3E");
|
|
}
|
|
|
|
.modal-buttons {
|
|
display: flex;
|
|
justify-content: flex-end;
|
|
gap: 12px;
|
|
margin-top: 20px;
|
|
}
|
|
|
|
@keyframes modalSlideIn {
|
|
from {
|
|
transform: translateY(-30px);
|
|
opacity: 0;
|
|
}
|
|
to {
|
|
transform: translateY(0);
|
|
opacity: 1;
|
|
}
|
|
}
|
|
|
|
/* 分页样式 */
|
|
.receive_pagination {
|
|
margin: 25px 0;
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
gap: 15px;
|
|
}
|
|
|
|
.page_link {
|
|
padding: 8px 16px;
|
|
background: #f1f5f9;
|
|
border-radius: 6px;
|
|
text-decoration: none;
|
|
color: #475569;
|
|
transition: all 0.3s;
|
|
}
|
|
|
|
.page_link:hover {
|
|
background: #e2e8f0;
|
|
color: #1e293b;
|
|
}
|
|
|
|
.per_page_select {
|
|
padding: 8px;
|
|
border-radius: 6px;
|
|
border: 1px solid #e2e8f0;
|
|
outline: none;
|
|
}
|
|
|
|
.receive_card {
|
|
background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
|
|
border-radius: 12px;
|
|
padding: 16px;
|
|
margin-bottom: 16px;
|
|
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
|
|
transition: transform 0.2s, box-shadow 0.2s;
|
|
text-decoration: none;
|
|
color: inherit;
|
|
border: 1px solid #e9ecef;
|
|
}
|
|
|
|
.receive_card:hover {
|
|
transform: translateY(-2px);
|
|
box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
|
|
}
|
|
|
|
.receive_card_header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
margin-bottom: 12px;
|
|
padding-bottom: 8px;
|
|
border-bottom: 1px solid #e9ecef;
|
|
}
|
|
|
|
.receive_card_title {
|
|
font-weight: 600;
|
|
color: #2c3e50;
|
|
}
|
|
|
|
.receive_card_duration {
|
|
color: #6c757d;
|
|
font-size: 0.9em;
|
|
}
|
|
|
|
.receive_card_content {
|
|
display: grid;
|
|
gap: 8px;
|
|
}
|
|
|
|
.receive_card_item {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
padding: 4px 0;
|
|
}
|
|
|
|
.receive_card_label {
|
|
color: #6c757d;
|
|
font-size: 0.9em;
|
|
}
|
|
|
|
.receive_card_value {
|
|
color: #2c3e50;
|
|
font-weight: 500;
|
|
}
|
|
|
|
.receive_card_value[data-device-type="摄像头"] {
|
|
background-color: #e3f2fd;
|
|
color: #1976d2;
|
|
padding: 4px 8px;
|
|
border-radius: 4px;
|
|
}
|
|
|
|
.receive_card_value[data-device-type="紫色"] {
|
|
background-color: #f3e5f5;
|
|
color: #7b1fa2;
|
|
padding: 4px 8px;
|
|
border-radius: 4px;
|
|
}
|
|
|
|
.receive_card_value[data-device-type="绿色"] {
|
|
background-color: #e8f5e9;
|
|
color: #388e3c;
|
|
padding: 4px 8px;
|
|
border-radius: 4px;
|
|
}
|
|
|
|
.receive_card_value[data-device-type="一键报警"] {
|
|
background-color: #fff3e0;
|
|
color: #f57c00;
|
|
padding: 4px 8px;
|
|
border-radius: 4px;
|
|
}
|
|
|
|
.receive_card_value[data-device-type="灰色"] {
|
|
background-color: #f5f5f5;
|
|
color: #616161;
|
|
padding: 4px 8px;
|
|
border-radius: 4px;
|
|
}
|
|
|
|
/* 移动端适配 */
|
|
@media (max-width: 768px) {
|
|
.receive_btn {
|
|
width: 100%;
|
|
padding: 12px 16px;
|
|
}
|
|
|
|
.modal-content {
|
|
margin: 10vh auto;
|
|
padding: 20px;
|
|
}
|
|
|
|
.receive_card {
|
|
background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
|
|
padding: 20px;
|
|
}
|
|
|
|
.receive_card_header {
|
|
margin-bottom: 16px;
|
|
}
|
|
|
|
.receive_card_title {
|
|
font-size: 1.1em;
|
|
}
|
|
|
|
.receive_card_content {
|
|
gap: 12px;
|
|
}
|
|
|
|
.receive_card_item {
|
|
padding: 6px 0;
|
|
}
|
|
|
|
/* 筛选区域在移动端的适配 */
|
|
.filter_header {
|
|
flex-direction: column;
|
|
gap: 12px;
|
|
align-items: flex-start;
|
|
}
|
|
|
|
.filter_title {
|
|
font-size: 1.1em;
|
|
}
|
|
|
|
.filter_form {
|
|
grid-template-columns: 1fr;
|
|
gap: 16px;
|
|
}
|
|
|
|
.filter_group {
|
|
gap: 6px;
|
|
}
|
|
|
|
.filter_select {
|
|
padding: 10px 14px;
|
|
font-size: 16px; /* 防止移动端自动缩放 */
|
|
}
|
|
|
|
.receive_btn_primary {
|
|
padding: 14px 20px;
|
|
font-size: 16px;
|
|
width: 100%;
|
|
margin-top: 8px;
|
|
}
|
|
|
|
.receive_btn_clear {
|
|
padding: 10px 16px;
|
|
font-size: 0.9em;
|
|
align-self: stretch;
|
|
}
|
|
.stats_grid {
|
|
grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
|
|
gap: 8px;
|
|
}
|
|
|
|
.stats_card {
|
|
padding: 10px 12px;
|
|
}
|
|
|
|
.stats_card_label {
|
|
font-size: 0.8em;
|
|
}
|
|
|
|
.stats_card_value {
|
|
font-size: 1.2em;
|
|
}
|
|
|
|
.stats_section_title {
|
|
font-size: 1em;
|
|
margin-bottom: 12px;
|
|
}
|
|
} |