1643 lines
44 KiB
PHP
1643 lines
44 KiB
PHP
<!DOCTYPE html>
|
||
<html lang="zh-CN">
|
||
<head>
|
||
<meta charset="UTF-8">
|
||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||
<meta name="csrf-token" content="{{ csrf_token() }}">
|
||
<title>@yield('title', '病例回访提醒系统')</title>
|
||
|
||
<link rel="preconnect" href="https://fonts.googleapis.com">
|
||
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
||
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap" rel="stylesheet">
|
||
|
||
<style>
|
||
:root {
|
||
--color-bg: #f8fafc;
|
||
--color-bg-secondary: #ffffff;
|
||
--color-bg-card: #ffffff;
|
||
--color-bg-hover: #f1f5f9;
|
||
--color-text: #1e293b;
|
||
--color-text-secondary: #64748b;
|
||
--color-text-muted: #94a3b8;
|
||
--color-primary: #6366f1;
|
||
--color-primary-light: #eef2ff;
|
||
--color-primary-hover: #4f46e5;
|
||
--color-success: #10b981;
|
||
--color-success-light: #ecfdf5;
|
||
--color-warning: #f59e0b;
|
||
--color-warning-light: #fffbeb;
|
||
--color-danger: #ef4444;
|
||
--color-danger-light: #fef2f2;
|
||
--color-border: #e2e8f0;
|
||
--color-border-light: #f1f5f9;
|
||
--radius: 16px;
|
||
--radius-sm: 10px;
|
||
--shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
|
||
--shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
|
||
--shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
|
||
}
|
||
|
||
* {
|
||
margin: 0;
|
||
padding: 0;
|
||
box-sizing: border-box;
|
||
}
|
||
|
||
body {
|
||
font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
|
||
background: var(--color-bg);
|
||
color: var(--color-text);
|
||
min-height: 100vh;
|
||
line-height: 1.6;
|
||
}
|
||
|
||
.app-container {
|
||
display: flex;
|
||
min-height: 100vh;
|
||
}
|
||
|
||
/* 侧边栏 */
|
||
.sidebar {
|
||
width: 280px;
|
||
background: var(--color-bg-secondary);
|
||
border-right: 1px solid var(--color-border);
|
||
padding: 28px 20px;
|
||
position: fixed;
|
||
top: 0;
|
||
left: 0;
|
||
height: 100vh;
|
||
overflow-y: auto;
|
||
box-shadow: var(--shadow-sm);
|
||
display: flex;
|
||
flex-direction: column;
|
||
}
|
||
|
||
.logo {
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 14px;
|
||
padding: 12px 16px;
|
||
margin-bottom: 36px;
|
||
}
|
||
|
||
.logo-icon {
|
||
width: 48px;
|
||
height: 48px;
|
||
background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
|
||
border-radius: 14px;
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
font-size: 24px;
|
||
box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
|
||
}
|
||
|
||
.logo-text {
|
||
font-size: 20px;
|
||
font-weight: 700;
|
||
background: linear-gradient(135deg, #6366f1, #8b5cf6);
|
||
-webkit-background-clip: text;
|
||
-webkit-text-fill-color: transparent;
|
||
background-clip: text;
|
||
}
|
||
|
||
.nav-menu {
|
||
display: flex;
|
||
flex-direction: column;
|
||
gap: 6px;
|
||
}
|
||
|
||
.nav-item {
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 14px;
|
||
padding: 14px 18px;
|
||
color: var(--color-text-secondary);
|
||
text-decoration: none;
|
||
border-radius: var(--radius-sm);
|
||
transition: all 0.2s ease;
|
||
font-weight: 500;
|
||
font-size: 15px;
|
||
}
|
||
|
||
.nav-item:hover {
|
||
background: var(--color-bg-hover);
|
||
color: var(--color-text);
|
||
}
|
||
|
||
.nav-item.active {
|
||
background: var(--color-primary-light);
|
||
color: var(--color-primary);
|
||
}
|
||
|
||
.nav-item svg {
|
||
width: 22px;
|
||
height: 22px;
|
||
flex-shrink: 0;
|
||
}
|
||
|
||
.nav-badge {
|
||
margin-left: auto;
|
||
background: var(--color-danger);
|
||
color: white;
|
||
font-size: 11px;
|
||
font-weight: 600;
|
||
padding: 3px 10px;
|
||
border-radius: 20px;
|
||
min-width: 24px;
|
||
text-align: center;
|
||
}
|
||
|
||
/* 用户区域 */
|
||
.user-section {
|
||
margin-top: auto;
|
||
padding-top: 20px;
|
||
border-top: 1px solid var(--color-border);
|
||
}
|
||
|
||
.user-info {
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 12px;
|
||
padding: 12px 16px;
|
||
margin-bottom: 12px;
|
||
background: var(--color-bg-hover);
|
||
border-radius: var(--radius-sm);
|
||
}
|
||
|
||
.user-avatar {
|
||
width: 40px;
|
||
height: 40px;
|
||
background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
|
||
border-radius: 50%;
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
color: white;
|
||
font-weight: 600;
|
||
font-size: 16px;
|
||
flex-shrink: 0;
|
||
}
|
||
|
||
.user-details {
|
||
flex: 1;
|
||
min-width: 0;
|
||
}
|
||
|
||
.user-name {
|
||
font-weight: 600;
|
||
font-size: 14px;
|
||
color: var(--color-text);
|
||
white-space: nowrap;
|
||
overflow: hidden;
|
||
text-overflow: ellipsis;
|
||
}
|
||
|
||
.user-email {
|
||
font-size: 12px;
|
||
color: var(--color-text-muted);
|
||
white-space: nowrap;
|
||
overflow: hidden;
|
||
text-overflow: ellipsis;
|
||
}
|
||
|
||
.logout-btn {
|
||
width: 100%;
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
gap: 8px;
|
||
padding: 12px 18px;
|
||
background: transparent;
|
||
border: 1px solid var(--color-border);
|
||
border-radius: var(--radius-sm);
|
||
color: var(--color-text-secondary);
|
||
font-size: 14px;
|
||
font-weight: 500;
|
||
cursor: pointer;
|
||
transition: all 0.2s ease;
|
||
}
|
||
|
||
.logout-btn:hover {
|
||
background: var(--color-danger-light);
|
||
border-color: var(--color-danger);
|
||
color: var(--color-danger);
|
||
}
|
||
|
||
.logout-btn svg {
|
||
width: 18px;
|
||
height: 18px;
|
||
}
|
||
|
||
/* 主内容区 */
|
||
.main-content {
|
||
flex: 1;
|
||
margin-left: 280px;
|
||
padding: 36px 48px;
|
||
min-height: 100vh;
|
||
}
|
||
|
||
.page-header {
|
||
margin-bottom: 36px;
|
||
}
|
||
|
||
.page-title {
|
||
font-size: 32px;
|
||
font-weight: 700;
|
||
margin-bottom: 8px;
|
||
color: var(--color-text);
|
||
letter-spacing: -0.5px;
|
||
}
|
||
|
||
.page-subtitle {
|
||
color: var(--color-text-secondary);
|
||
font-size: 16px;
|
||
}
|
||
|
||
/* 卡片 */
|
||
.card {
|
||
background: var(--color-bg-card);
|
||
border-radius: var(--radius);
|
||
border: 1px solid var(--color-border);
|
||
padding: 28px;
|
||
margin-bottom: 24px;
|
||
box-shadow: var(--shadow-sm);
|
||
}
|
||
|
||
.card-header {
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: space-between;
|
||
margin-bottom: 24px;
|
||
}
|
||
|
||
.card-title {
|
||
font-size: 18px;
|
||
font-weight: 600;
|
||
color: var(--color-text);
|
||
}
|
||
|
||
/* 按钮 */
|
||
.btn {
|
||
display: inline-flex;
|
||
align-items: center;
|
||
gap: 8px;
|
||
padding: 12px 22px;
|
||
border: none;
|
||
border-radius: var(--radius-sm);
|
||
font-size: 14px;
|
||
font-weight: 600;
|
||
cursor: pointer;
|
||
transition: all 0.2s ease;
|
||
text-decoration: none;
|
||
font-family: inherit;
|
||
}
|
||
|
||
.btn-primary {
|
||
background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
|
||
color: white;
|
||
box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
|
||
}
|
||
|
||
.btn-primary:hover {
|
||
transform: translateY(-2px);
|
||
box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
|
||
}
|
||
|
||
.btn-success {
|
||
background: linear-gradient(135deg, #10b981 0%, #059669 100%);
|
||
color: white;
|
||
box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
|
||
}
|
||
|
||
.btn-success:hover {
|
||
transform: translateY(-2px);
|
||
box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
|
||
}
|
||
|
||
.btn-warning {
|
||
background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
|
||
color: white;
|
||
}
|
||
|
||
.btn-danger {
|
||
background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
|
||
color: white;
|
||
}
|
||
|
||
.btn-outline {
|
||
background: var(--color-bg-secondary);
|
||
border: 1px solid var(--color-border);
|
||
color: var(--color-text-secondary);
|
||
}
|
||
|
||
.btn-outline:hover {
|
||
background: var(--color-bg-hover);
|
||
border-color: var(--color-text-muted);
|
||
color: var(--color-text);
|
||
}
|
||
|
||
.btn-sm {
|
||
padding: 8px 16px;
|
||
font-size: 13px;
|
||
}
|
||
|
||
.btn svg {
|
||
width: 18px;
|
||
height: 18px;
|
||
}
|
||
|
||
/* 表格 */
|
||
.table-container {
|
||
overflow-x: auto;
|
||
}
|
||
|
||
table {
|
||
width: 100%;
|
||
border-collapse: collapse;
|
||
}
|
||
|
||
th, td {
|
||
padding: 16px 18px;
|
||
text-align: left;
|
||
border-bottom: 1px solid var(--color-border-light);
|
||
}
|
||
|
||
th {
|
||
color: var(--color-text-secondary);
|
||
font-weight: 600;
|
||
font-size: 12px;
|
||
text-transform: uppercase;
|
||
letter-spacing: 0.5px;
|
||
background: var(--color-bg);
|
||
}
|
||
|
||
tr:hover td {
|
||
background: var(--color-bg-hover);
|
||
}
|
||
|
||
/* 标签 */
|
||
.badge {
|
||
display: inline-flex;
|
||
align-items: center;
|
||
padding: 6px 14px;
|
||
border-radius: 20px;
|
||
font-size: 12px;
|
||
font-weight: 600;
|
||
}
|
||
|
||
.badge-danger {
|
||
background: var(--color-danger-light);
|
||
color: var(--color-danger);
|
||
}
|
||
|
||
.badge-warning {
|
||
background: var(--color-warning-light);
|
||
color: var(--color-warning);
|
||
}
|
||
|
||
.badge-success {
|
||
background: var(--color-success-light);
|
||
color: var(--color-success);
|
||
}
|
||
|
||
.badge-info {
|
||
background: var(--color-primary-light);
|
||
color: var(--color-primary);
|
||
}
|
||
|
||
/* 表单 */
|
||
.form-group {
|
||
margin-bottom: 24px;
|
||
}
|
||
|
||
.form-label {
|
||
display: block;
|
||
margin-bottom: 8px;
|
||
font-weight: 600;
|
||
color: var(--color-text);
|
||
font-size: 14px;
|
||
}
|
||
|
||
.form-control {
|
||
width: 100%;
|
||
padding: 14px 18px;
|
||
background: var(--color-bg);
|
||
border: 1px solid var(--color-border);
|
||
border-radius: var(--radius-sm);
|
||
color: var(--color-text);
|
||
font-size: 15px;
|
||
font-family: inherit;
|
||
transition: all 0.2s ease;
|
||
}
|
||
|
||
.form-control:focus {
|
||
outline: none;
|
||
border-color: var(--color-primary);
|
||
box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
|
||
}
|
||
|
||
.form-control::placeholder {
|
||
color: var(--color-text-muted);
|
||
}
|
||
|
||
/* 文件上传 */
|
||
.file-upload {
|
||
border: 2px dashed var(--color-border);
|
||
border-radius: var(--radius);
|
||
padding: 56px 24px;
|
||
text-align: center;
|
||
cursor: pointer;
|
||
transition: all 0.2s ease;
|
||
background: var(--color-bg);
|
||
}
|
||
|
||
.file-upload:hover {
|
||
border-color: var(--color-primary);
|
||
background: var(--color-primary-light);
|
||
}
|
||
|
||
.file-upload.dragover {
|
||
border-color: var(--color-primary);
|
||
background: var(--color-primary-light);
|
||
}
|
||
|
||
.file-upload-icon {
|
||
width: 64px;
|
||
height: 64px;
|
||
margin: 0 auto 20px;
|
||
color: var(--color-text-muted);
|
||
}
|
||
|
||
.file-upload-text {
|
||
color: var(--color-text);
|
||
margin-bottom: 8px;
|
||
font-weight: 500;
|
||
}
|
||
|
||
.file-upload-hint {
|
||
color: var(--color-text-muted);
|
||
font-size: 14px;
|
||
}
|
||
|
||
.file-upload input[type="file"] {
|
||
display: none;
|
||
}
|
||
|
||
/* 统计卡片 */
|
||
.stats-grid {
|
||
display: grid;
|
||
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
|
||
gap: 20px;
|
||
margin-bottom: 36px;
|
||
}
|
||
|
||
.stat-card {
|
||
background: var(--color-bg-card);
|
||
border: 1px solid var(--color-border);
|
||
border-radius: var(--radius);
|
||
padding: 24px 28px;
|
||
transition: all 0.2s ease;
|
||
text-decoration: none;
|
||
color: inherit;
|
||
}
|
||
|
||
.stat-card:hover {
|
||
transform: translateY(-4px);
|
||
box-shadow: var(--shadow-lg);
|
||
}
|
||
|
||
.stat-card.active {
|
||
border-color: var(--color-primary);
|
||
background: var(--color-primary-light);
|
||
}
|
||
|
||
.stat-value {
|
||
font-size: 36px;
|
||
font-weight: 700;
|
||
margin-bottom: 6px;
|
||
letter-spacing: -1px;
|
||
}
|
||
|
||
.stat-label {
|
||
color: var(--color-text-secondary);
|
||
font-size: 14px;
|
||
font-weight: 500;
|
||
}
|
||
|
||
.stat-card.danger .stat-value { color: var(--color-danger); }
|
||
.stat-card.warning .stat-value { color: var(--color-warning); }
|
||
.stat-card.success .stat-value { color: var(--color-success); }
|
||
.stat-card.info .stat-value { color: var(--color-primary); }
|
||
|
||
/* 提示消息 */
|
||
.alert {
|
||
padding: 18px 24px;
|
||
border-radius: var(--radius-sm);
|
||
margin-bottom: 24px;
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 14px;
|
||
}
|
||
|
||
.alert-success {
|
||
background: var(--color-success-light);
|
||
border: 1px solid var(--color-success);
|
||
color: var(--color-success);
|
||
}
|
||
|
||
.alert-error {
|
||
background: var(--color-danger-light);
|
||
border: 1px solid var(--color-danger);
|
||
color: var(--color-danger);
|
||
}
|
||
|
||
/* 空状态 */
|
||
.empty-state {
|
||
text-align: center;
|
||
padding: 72px 24px;
|
||
color: var(--color-text-muted);
|
||
}
|
||
|
||
.empty-state svg {
|
||
width: 80px;
|
||
height: 80px;
|
||
margin-bottom: 24px;
|
||
opacity: 0.5;
|
||
}
|
||
|
||
.empty-state-title {
|
||
font-size: 20px;
|
||
font-weight: 600;
|
||
color: var(--color-text);
|
||
margin-bottom: 8px;
|
||
}
|
||
|
||
/* 筛选标签 */
|
||
.filter-tabs {
|
||
display: flex;
|
||
gap: 10px;
|
||
margin-bottom: 28px;
|
||
flex-wrap: wrap;
|
||
}
|
||
|
||
.filter-tab {
|
||
padding: 10px 22px;
|
||
border-radius: 24px;
|
||
background: var(--color-bg-secondary);
|
||
border: 1px solid var(--color-border);
|
||
color: var(--color-text-secondary);
|
||
font-size: 14px;
|
||
font-weight: 500;
|
||
cursor: pointer;
|
||
transition: all 0.2s ease;
|
||
text-decoration: none;
|
||
}
|
||
|
||
.filter-tab:hover {
|
||
background: var(--color-bg-hover);
|
||
color: var(--color-text);
|
||
}
|
||
|
||
.filter-tab.active {
|
||
background: var(--color-primary);
|
||
border-color: var(--color-primary);
|
||
color: white;
|
||
}
|
||
|
||
|
||
/* 搜索框 */
|
||
.search-box {
|
||
position: relative;
|
||
max-width: 360px;
|
||
}
|
||
|
||
.search-box input {
|
||
padding-left: 48px;
|
||
}
|
||
|
||
.search-box svg {
|
||
position: absolute;
|
||
left: 16px;
|
||
top: 50%;
|
||
transform: translateY(-50%);
|
||
width: 20px;
|
||
height: 20px;
|
||
color: var(--color-text-muted);
|
||
}
|
||
|
||
/* 操作按钮组 */
|
||
.action-buttons {
|
||
display: flex;
|
||
gap: 10px;
|
||
}
|
||
|
||
/* 患者卡片 */
|
||
.patient-card {
|
||
background: var(--color-bg-card);
|
||
border: 1px solid var(--color-border);
|
||
border-radius: var(--radius);
|
||
padding: 24px;
|
||
margin-bottom: 20px;
|
||
transition: all 0.2s ease;
|
||
box-shadow: var(--shadow-sm);
|
||
}
|
||
|
||
.patient-card:hover {
|
||
border-color: var(--color-primary);
|
||
box-shadow: var(--shadow);
|
||
}
|
||
|
||
.patient-card-header {
|
||
display: flex;
|
||
justify-content: space-between;
|
||
align-items: flex-start;
|
||
margin-bottom: 20px;
|
||
}
|
||
|
||
.patient-name {
|
||
font-size: 20px;
|
||
font-weight: 700;
|
||
margin-bottom: 6px;
|
||
color: var(--color-text);
|
||
}
|
||
|
||
.patient-meta {
|
||
color: var(--color-text-secondary);
|
||
font-size: 14px;
|
||
}
|
||
|
||
.patient-card-body {
|
||
display: grid;
|
||
grid-template-columns: repeat(2, 1fr);
|
||
gap: 16px;
|
||
margin-bottom: 20px;
|
||
}
|
||
|
||
.patient-info-item {
|
||
font-size: 14px;
|
||
}
|
||
|
||
.patient-info-label {
|
||
color: var(--color-text-muted);
|
||
margin-bottom: 4px;
|
||
font-size: 12px;
|
||
text-transform: uppercase;
|
||
letter-spacing: 0.5px;
|
||
}
|
||
|
||
.patient-info-value {
|
||
color: var(--color-text);
|
||
font-weight: 500;
|
||
}
|
||
|
||
.patient-card-footer {
|
||
display: flex;
|
||
justify-content: space-between;
|
||
align-items: center;
|
||
padding-top: 20px;
|
||
border-top: 1px solid var(--color-border-light);
|
||
}
|
||
|
||
/* 响应式 */
|
||
@media (max-width: 1024px) {
|
||
.sidebar {
|
||
width: 80px;
|
||
padding: 24px 12px;
|
||
}
|
||
|
||
.logo-text, .nav-item span, .nav-badge {
|
||
display: none;
|
||
}
|
||
|
||
.logo {
|
||
justify-content: center;
|
||
padding: 8px;
|
||
}
|
||
|
||
.nav-item {
|
||
justify-content: center;
|
||
padding: 14px;
|
||
}
|
||
|
||
.main-content {
|
||
margin-left: 80px;
|
||
padding: 28px 24px;
|
||
}
|
||
}
|
||
|
||
/* 注意:768px 以下的侧边栏样式在下方移动端适配部分定义 */
|
||
|
||
/* 动画 */
|
||
@keyframes fadeIn {
|
||
from { opacity: 0; transform: translateY(10px); }
|
||
to { opacity: 1; transform: translateY(0); }
|
||
}
|
||
|
||
.fade-in {
|
||
animation: fadeIn 0.3s ease;
|
||
}
|
||
|
||
/* 进度条样式 */
|
||
.progress-bar {
|
||
width: 80px;
|
||
height: 8px;
|
||
background: var(--color-border);
|
||
border-radius: 4px;
|
||
overflow: hidden;
|
||
}
|
||
|
||
.progress-bar-fill {
|
||
height: 100%;
|
||
background: linear-gradient(90deg, var(--color-success), #34d399);
|
||
border-radius: 4px;
|
||
transition: width 0.3s ease;
|
||
}
|
||
|
||
/* 自定义分页样式 */
|
||
.custom-pagination {
|
||
display: flex;
|
||
justify-content: space-between;
|
||
align-items: center;
|
||
margin-top: 28px;
|
||
padding-top: 20px;
|
||
border-top: 1px solid var(--color-border-light);
|
||
flex-wrap: wrap;
|
||
gap: 16px;
|
||
}
|
||
|
||
.pagination-info {
|
||
color: var(--color-text-secondary);
|
||
font-size: 14px;
|
||
}
|
||
|
||
.pagination-links {
|
||
display: flex;
|
||
gap: 6px;
|
||
align-items: center;
|
||
}
|
||
|
||
.pagination-btn {
|
||
display: inline-flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
min-width: 38px;
|
||
height: 38px;
|
||
padding: 0 12px;
|
||
border-radius: var(--radius-sm);
|
||
background: var(--color-bg-secondary);
|
||
border: 1px solid var(--color-border);
|
||
color: var(--color-text-secondary);
|
||
text-decoration: none;
|
||
font-size: 14px;
|
||
font-weight: 500;
|
||
transition: all 0.2s ease;
|
||
}
|
||
|
||
.pagination-btn:hover:not(.disabled):not(.active) {
|
||
background: var(--color-bg-hover);
|
||
border-color: var(--color-text-muted);
|
||
color: var(--color-text);
|
||
}
|
||
|
||
.pagination-btn.active {
|
||
background: var(--color-primary);
|
||
border-color: var(--color-primary);
|
||
color: white;
|
||
}
|
||
|
||
.pagination-btn.disabled {
|
||
opacity: 0.4;
|
||
cursor: not-allowed;
|
||
}
|
||
|
||
.pagination-btn svg {
|
||
flex-shrink: 0;
|
||
}
|
||
|
||
/* 随访提醒卡片 - 三列布局 */
|
||
.reminder-grid {
|
||
display: grid;
|
||
grid-template-columns: repeat(3, 1fr);
|
||
gap: 20px;
|
||
}
|
||
|
||
.reminder-card {
|
||
background: var(--color-bg-card);
|
||
border: 1px solid var(--color-border);
|
||
border-radius: var(--radius);
|
||
padding: 20px;
|
||
transition: all 0.2s ease;
|
||
box-shadow: var(--shadow-sm);
|
||
display: flex;
|
||
flex-direction: column;
|
||
}
|
||
|
||
.reminder-card:hover {
|
||
border-color: var(--color-primary);
|
||
box-shadow: var(--shadow);
|
||
transform: translateY(-2px);
|
||
}
|
||
|
||
.reminder-card-header {
|
||
display: flex;
|
||
justify-content: space-between;
|
||
align-items: flex-start;
|
||
margin-bottom: 14px;
|
||
}
|
||
|
||
.reminder-patient-info {
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 12px;
|
||
}
|
||
|
||
.reminder-avatar {
|
||
width: 44px;
|
||
height: 44px;
|
||
border-radius: 12px;
|
||
background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
|
||
color: white;
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
font-size: 18px;
|
||
font-weight: 600;
|
||
}
|
||
|
||
.reminder-name {
|
||
font-size: 17px;
|
||
font-weight: 700;
|
||
color: var(--color-text);
|
||
margin-bottom: 2px;
|
||
}
|
||
|
||
.reminder-meta {
|
||
font-size: 13px;
|
||
color: var(--color-text-secondary);
|
||
}
|
||
|
||
.reminder-diagnosis {
|
||
display: flex;
|
||
gap: 8px;
|
||
margin-bottom: 16px;
|
||
flex-wrap: wrap;
|
||
}
|
||
|
||
.diagnosis-tag {
|
||
padding: 4px 10px;
|
||
border-radius: 6px;
|
||
font-size: 12px;
|
||
font-weight: 500;
|
||
background: var(--color-primary-light);
|
||
color: var(--color-primary);
|
||
}
|
||
|
||
.follow-up-tag {
|
||
padding: 4px 10px;
|
||
border-radius: 6px;
|
||
font-size: 12px;
|
||
font-weight: 500;
|
||
background: var(--color-bg-hover);
|
||
color: var(--color-text-secondary);
|
||
}
|
||
|
||
.reminder-details {
|
||
display: flex;
|
||
flex-direction: column;
|
||
gap: 10px;
|
||
margin-bottom: 16px;
|
||
flex: 1;
|
||
}
|
||
|
||
.detail-row {
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 8px;
|
||
font-size: 13px;
|
||
}
|
||
|
||
.detail-icon {
|
||
width: 20px;
|
||
text-align: center;
|
||
flex-shrink: 0;
|
||
}
|
||
|
||
.detail-label {
|
||
color: var(--color-text-muted);
|
||
width: 60px;
|
||
flex-shrink: 0;
|
||
}
|
||
|
||
.detail-value {
|
||
color: var(--color-text);
|
||
font-weight: 500;
|
||
flex: 1;
|
||
min-width: 0;
|
||
}
|
||
|
||
.text-truncate {
|
||
white-space: nowrap;
|
||
overflow: hidden;
|
||
text-overflow: ellipsis;
|
||
}
|
||
|
||
.remark-text {
|
||
color: var(--color-warning) !important;
|
||
font-weight: 600 !important;
|
||
}
|
||
|
||
.reminder-progress {
|
||
margin-bottom: 16px;
|
||
padding-top: 12px;
|
||
border-top: 1px solid var(--color-border-light);
|
||
}
|
||
|
||
.progress-header {
|
||
display: flex;
|
||
justify-content: space-between;
|
||
font-size: 12px;
|
||
color: var(--color-text-secondary);
|
||
margin-bottom: 8px;
|
||
}
|
||
|
||
.progress-track {
|
||
height: 6px;
|
||
background: var(--color-border);
|
||
border-radius: 3px;
|
||
overflow: hidden;
|
||
}
|
||
|
||
.progress-fill {
|
||
height: 100%;
|
||
background: linear-gradient(90deg, var(--color-success), #34d399);
|
||
border-radius: 3px;
|
||
transition: width 0.3s ease;
|
||
}
|
||
|
||
.reminder-actions {
|
||
display: flex;
|
||
gap: 10px;
|
||
justify-content: flex-end;
|
||
}
|
||
|
||
.action-form {
|
||
display: inline;
|
||
}
|
||
|
||
.action-btn {
|
||
display: inline-flex;
|
||
align-items: center;
|
||
gap: 6px;
|
||
padding: 8px 14px;
|
||
border-radius: 8px;
|
||
font-size: 13px;
|
||
font-weight: 500;
|
||
cursor: pointer;
|
||
transition: all 0.2s ease;
|
||
text-decoration: none;
|
||
border: none;
|
||
font-family: inherit;
|
||
}
|
||
|
||
.action-call {
|
||
background: var(--color-bg-hover);
|
||
color: var(--color-text-secondary);
|
||
border: 1px solid var(--color-border);
|
||
}
|
||
|
||
.action-call:hover {
|
||
background: var(--color-primary-light);
|
||
color: var(--color-primary);
|
||
border-color: var(--color-primary);
|
||
}
|
||
|
||
.action-complete {
|
||
background: linear-gradient(135deg, #10b981 0%, #059669 100%);
|
||
color: white;
|
||
box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
|
||
}
|
||
|
||
.action-complete:hover {
|
||
transform: translateY(-1px);
|
||
box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
|
||
}
|
||
|
||
/* 响应式 - 中等屏幕 (2列) */
|
||
@media (max-width: 1400px) {
|
||
.reminder-grid {
|
||
grid-template-columns: repeat(2, 1fr);
|
||
gap: 16px;
|
||
}
|
||
}
|
||
|
||
/* 响应式 - 小屏幕 (1列) */
|
||
@media (max-width: 900px) {
|
||
.reminder-grid {
|
||
grid-template-columns: 1fr;
|
||
}
|
||
}
|
||
|
||
/* ==================== 移动端适配 ==================== */
|
||
|
||
/* 移动端头部 */
|
||
.mobile-header {
|
||
display: none;
|
||
position: fixed;
|
||
top: 0;
|
||
left: 0;
|
||
right: 0;
|
||
height: 60px;
|
||
background: var(--color-bg-secondary);
|
||
border-bottom: 1px solid var(--color-border);
|
||
z-index: 1000;
|
||
padding: 0 16px;
|
||
align-items: center;
|
||
justify-content: space-between;
|
||
box-shadow: var(--shadow-sm);
|
||
}
|
||
|
||
.mobile-logo {
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 10px;
|
||
}
|
||
|
||
.mobile-logo-icon {
|
||
width: 36px;
|
||
height: 36px;
|
||
background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
|
||
border-radius: 10px;
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
font-size: 18px;
|
||
}
|
||
|
||
.mobile-logo-text {
|
||
font-size: 16px;
|
||
font-weight: 700;
|
||
background: linear-gradient(135deg, #6366f1, #8b5cf6);
|
||
-webkit-background-clip: text;
|
||
-webkit-text-fill-color: transparent;
|
||
background-clip: text;
|
||
}
|
||
|
||
.menu-toggle {
|
||
width: 44px;
|
||
height: 44px;
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
background: transparent;
|
||
border: none;
|
||
cursor: pointer;
|
||
border-radius: 10px;
|
||
transition: all 0.2s;
|
||
}
|
||
|
||
.menu-toggle:hover {
|
||
background: var(--color-bg-hover);
|
||
}
|
||
|
||
.menu-toggle svg {
|
||
width: 24px;
|
||
height: 24px;
|
||
stroke: var(--color-text);
|
||
}
|
||
|
||
/* 遮罩层 - 默认隐藏,移动端显示 */
|
||
.sidebar-overlay {
|
||
display: none;
|
||
}
|
||
|
||
/* 移动端响应式 */
|
||
@media (max-width: 768px) {
|
||
.mobile-header {
|
||
display: flex;
|
||
}
|
||
|
||
.sidebar-overlay {
|
||
display: block;
|
||
position: fixed;
|
||
top: 0;
|
||
left: 0;
|
||
right: 0;
|
||
bottom: 0;
|
||
background: rgba(0, 0, 0, 0.5);
|
||
z-index: 1001;
|
||
opacity: 0;
|
||
pointer-events: none;
|
||
transition: opacity 0.3s ease;
|
||
}
|
||
|
||
.sidebar-overlay.active {
|
||
opacity: 1;
|
||
pointer-events: auto;
|
||
}
|
||
|
||
.sidebar {
|
||
transform: translateX(-100%);
|
||
transition: transform 0.3s ease;
|
||
z-index: 1002;
|
||
width: 280px !important;
|
||
top: 0;
|
||
left: 0;
|
||
height: 100vh;
|
||
box-shadow: none;
|
||
display: flex !important;
|
||
padding: 28px 20px !important;
|
||
}
|
||
|
||
.sidebar .logo-text,
|
||
.sidebar .nav-item span,
|
||
.sidebar .nav-badge {
|
||
display: inline !important;
|
||
}
|
||
|
||
.sidebar .logo {
|
||
justify-content: flex-start !important;
|
||
}
|
||
|
||
.sidebar .nav-item {
|
||
justify-content: flex-start !important;
|
||
}
|
||
|
||
.sidebar.active {
|
||
transform: translateX(0);
|
||
box-shadow: 4px 0 24px rgba(0, 0, 0, 0.15);
|
||
}
|
||
|
||
.main-content {
|
||
margin-left: 0;
|
||
padding: 76px 16px 24px;
|
||
}
|
||
|
||
.page-header {
|
||
margin-bottom: 20px;
|
||
}
|
||
|
||
.page-title {
|
||
font-size: 24px;
|
||
}
|
||
|
||
.page-subtitle {
|
||
font-size: 14px;
|
||
}
|
||
|
||
/* 卡片适配 */
|
||
.card {
|
||
padding: 20px;
|
||
border-radius: 12px;
|
||
}
|
||
|
||
/* 统计卡片 */
|
||
.stats-grid {
|
||
grid-template-columns: repeat(2, 1fr);
|
||
gap: 12px;
|
||
}
|
||
|
||
.stat-card {
|
||
padding: 16px;
|
||
}
|
||
|
||
.stat-number {
|
||
font-size: 24px;
|
||
}
|
||
|
||
.stat-label {
|
||
font-size: 12px;
|
||
}
|
||
|
||
/* 筛选按钮 */
|
||
.filter-tabs {
|
||
flex-wrap: wrap;
|
||
gap: 8px;
|
||
}
|
||
|
||
.filter-tab {
|
||
padding: 8px 14px;
|
||
font-size: 13px;
|
||
}
|
||
|
||
/* 患者卡片 */
|
||
.reminder-card {
|
||
padding: 16px;
|
||
}
|
||
|
||
.reminder-header {
|
||
flex-direction: column;
|
||
align-items: flex-start;
|
||
gap: 12px;
|
||
}
|
||
|
||
.status-badge {
|
||
font-size: 11px;
|
||
padding: 4px 10px;
|
||
}
|
||
|
||
.patient-avatar {
|
||
width: 44px;
|
||
height: 44px;
|
||
font-size: 16px;
|
||
}
|
||
|
||
.patient-name {
|
||
font-size: 16px;
|
||
}
|
||
|
||
.patient-tags {
|
||
flex-wrap: wrap;
|
||
}
|
||
|
||
.reminder-details {
|
||
gap: 8px;
|
||
}
|
||
|
||
.detail-row {
|
||
font-size: 12px;
|
||
}
|
||
|
||
.detail-label {
|
||
width: 50px;
|
||
}
|
||
|
||
/* 操作按钮 */
|
||
.reminder-actions {
|
||
flex-direction: column;
|
||
}
|
||
|
||
.action-btn {
|
||
width: 100%;
|
||
justify-content: center;
|
||
padding: 12px;
|
||
}
|
||
|
||
/* 表格适配 */
|
||
.table-wrapper {
|
||
overflow-x: auto;
|
||
-webkit-overflow-scrolling: touch;
|
||
}
|
||
|
||
.table {
|
||
min-width: 600px;
|
||
}
|
||
|
||
.table th,
|
||
.table td {
|
||
padding: 12px 10px;
|
||
font-size: 13px;
|
||
}
|
||
|
||
/* 分页适配 */
|
||
.pagination {
|
||
flex-wrap: wrap;
|
||
justify-content: center;
|
||
}
|
||
|
||
/* 表单适配 */
|
||
.form-group {
|
||
margin-bottom: 16px;
|
||
}
|
||
|
||
.form-label {
|
||
font-size: 13px;
|
||
}
|
||
|
||
.form-control {
|
||
padding: 12px 14px;
|
||
font-size: 15px;
|
||
}
|
||
|
||
.btn {
|
||
padding: 12px 20px;
|
||
font-size: 14px;
|
||
}
|
||
|
||
/* 提示框适配 */
|
||
.alert {
|
||
padding: 12px 16px;
|
||
font-size: 13px;
|
||
border-radius: 10px;
|
||
}
|
||
|
||
/* 用户区域适配 */
|
||
.user-section {
|
||
padding-top: 16px;
|
||
}
|
||
|
||
.user-info {
|
||
padding: 10px 12px;
|
||
}
|
||
|
||
.user-avatar {
|
||
width: 36px;
|
||
height: 36px;
|
||
font-size: 14px;
|
||
}
|
||
|
||
.user-name {
|
||
font-size: 13px;
|
||
}
|
||
|
||
.user-email {
|
||
font-size: 11px;
|
||
}
|
||
|
||
.logout-btn {
|
||
padding: 10px 14px;
|
||
font-size: 13px;
|
||
}
|
||
|
||
/* 导入页面适配 */
|
||
.file-upload {
|
||
padding: 40px 20px;
|
||
}
|
||
|
||
.file-upload-icon {
|
||
width: 48px;
|
||
height: 48px;
|
||
}
|
||
|
||
.file-upload-text {
|
||
font-size: 14px;
|
||
}
|
||
|
||
.file-upload-hint {
|
||
font-size: 12px;
|
||
}
|
||
|
||
/* 卡片头部适配 */
|
||
.card-header {
|
||
flex-direction: column;
|
||
align-items: stretch;
|
||
gap: 12px;
|
||
}
|
||
|
||
.card-header .btn,
|
||
.card-header .btn-outline {
|
||
width: 100%;
|
||
justify-content: center;
|
||
}
|
||
|
||
/* 搜索框适配 */
|
||
.search-box {
|
||
max-width: 100%;
|
||
width: 100%;
|
||
}
|
||
|
||
.search-box input {
|
||
width: 100%;
|
||
}
|
||
|
||
/* 操作按钮组适配 */
|
||
.action-buttons {
|
||
flex-direction: column;
|
||
width: 100%;
|
||
}
|
||
|
||
.action-buttons .btn {
|
||
width: 100%;
|
||
justify-content: center;
|
||
}
|
||
|
||
/* 表格容器适配 */
|
||
.table-container {
|
||
overflow-x: auto;
|
||
-webkit-overflow-scrolling: touch;
|
||
margin: 0 -20px;
|
||
padding: 0 20px;
|
||
}
|
||
|
||
table {
|
||
min-width: 500px;
|
||
}
|
||
|
||
table th,
|
||
table td {
|
||
padding: 10px 8px;
|
||
font-size: 12px;
|
||
}
|
||
|
||
/* 患者列表页 3列变1列 */
|
||
.patient-cards-grid {
|
||
grid-template-columns: 1fr !important;
|
||
}
|
||
|
||
/* 随访规则卡片适配 */
|
||
.card > div[style*="grid"] {
|
||
grid-template-columns: 1fr !important;
|
||
}
|
||
|
||
/* 空状态适配 */
|
||
.empty-state svg {
|
||
width: 60px;
|
||
height: 60px;
|
||
}
|
||
|
||
.empty-state-title {
|
||
font-size: 16px;
|
||
}
|
||
|
||
.empty-state p {
|
||
font-size: 13px;
|
||
}
|
||
}
|
||
|
||
/* 超小屏幕适配 */
|
||
@media (max-width: 380px) {
|
||
.stats-grid {
|
||
grid-template-columns: 1fr;
|
||
}
|
||
|
||
.mobile-header {
|
||
padding: 0 12px;
|
||
}
|
||
|
||
.main-content {
|
||
padding: 70px 12px 20px;
|
||
}
|
||
|
||
.page-title {
|
||
font-size: 20px;
|
||
}
|
||
|
||
.filter-tabs {
|
||
gap: 6px;
|
||
}
|
||
|
||
.filter-tab {
|
||
padding: 6px 12px;
|
||
font-size: 12px;
|
||
}
|
||
}
|
||
</style>
|
||
</head>
|
||
<body>
|
||
<div class="app-container">
|
||
<!-- 移动端头部 -->
|
||
<header class="mobile-header">
|
||
<div class="mobile-logo">
|
||
<div class="mobile-logo-icon">🏥</div>
|
||
<span class="mobile-logo-text">回访提醒</span>
|
||
</div>
|
||
<button class="menu-toggle" id="menuToggle" type="button">
|
||
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
|
||
<line x1="3" y1="6" x2="21" y2="6"/>
|
||
<line x1="3" y1="12" x2="21" y2="12"/>
|
||
<line x1="3" y1="18" x2="21" y2="18"/>
|
||
</svg>
|
||
</button>
|
||
</header>
|
||
|
||
<!-- 遮罩层 -->
|
||
<div class="sidebar-overlay" id="sidebarOverlay"></div>
|
||
|
||
<aside class="sidebar" id="sidebar">
|
||
<div class="logo">
|
||
<div class="logo-icon">🏥</div>
|
||
<span class="logo-text">回访提醒</span>
|
||
</div>
|
||
|
||
<nav class="nav-menu">
|
||
<a href="{{ route('patients.reminders') }}" class="nav-item {{ request()->routeIs('patients.reminders') ? 'active' : '' }}">
|
||
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
|
||
<path d="M12 22c5.523 0 10-4.477 10-10S17.523 2 12 2 2 6.477 2 12s4.477 10 10 10z"/>
|
||
<path d="M12 6v6l4 2"/>
|
||
</svg>
|
||
<span>随访提醒</span>
|
||
@php
|
||
$overdueCount = \App\Models\Patient::where('user_id', Auth::id())->get()->filter(function($p) {
|
||
return !$p->isCompleted() && $p->getNextFollowUpDate()?->lt(\Carbon\Carbon::today());
|
||
})->count();
|
||
@endphp
|
||
@if($overdueCount > 0)
|
||
<span class="nav-badge">{{ $overdueCount }}</span>
|
||
@endif
|
||
</a>
|
||
|
||
<a href="{{ route('patients.index') }}" class="nav-item {{ request()->routeIs('patients.index') ? 'active' : '' }}">
|
||
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
|
||
<path d="M17 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2"/>
|
||
<circle cx="9" cy="7" r="4"/>
|
||
<path d="M23 21v-2a4 4 0 0 0-3-3.87"/>
|
||
<path d="M16 3.13a4 4 0 0 1 0 7.75"/>
|
||
</svg>
|
||
<span>患者列表</span>
|
||
</a>
|
||
|
||
<a href="{{ route('patients.import') }}" class="nav-item {{ request()->routeIs('patients.import') ? 'active' : '' }}">
|
||
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
|
||
<path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/>
|
||
<polyline points="17 8 12 3 7 8"/>
|
||
<line x1="12" y1="3" x2="12" y2="15"/>
|
||
</svg>
|
||
<span>导入数据</span>
|
||
</a>
|
||
</nav>
|
||
|
||
<!-- 用户信息区域 -->
|
||
<div class="user-section">
|
||
<div class="user-info">
|
||
<div class="user-avatar">
|
||
{{ mb_substr(Auth::user()->name, 0, 1) }}
|
||
</div>
|
||
<div class="user-details">
|
||
<div class="user-name">{{ Auth::user()->name }}</div>
|
||
<div class="user-email">{{ Auth::user()->email }}</div>
|
||
</div>
|
||
</div>
|
||
<form action="{{ route('logout') }}" method="POST">
|
||
@csrf
|
||
<button type="submit" class="logout-btn">
|
||
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
|
||
<path d="M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4"/>
|
||
<polyline points="16 17 21 12 16 7"/>
|
||
<line x1="21" y1="12" x2="9" y2="12"/>
|
||
</svg>
|
||
退出登录
|
||
</button>
|
||
</form>
|
||
</div>
|
||
</aside>
|
||
|
||
<main class="main-content">
|
||
@if(session('success'))
|
||
<div class="alert alert-success fade-in">
|
||
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" width="20" height="20">
|
||
<path d="M22 11.08V12a10 10 0 1 1-5.93-9.14"/>
|
||
<polyline points="22 4 12 14.01 9 11.01"/>
|
||
</svg>
|
||
{{ session('success') }}
|
||
</div>
|
||
@endif
|
||
|
||
@if($errors->any())
|
||
<div class="alert alert-error fade-in">
|
||
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" width="20" height="20">
|
||
<circle cx="12" cy="12" r="10"/>
|
||
<line x1="15" y1="9" x2="9" y2="15"/>
|
||
<line x1="9" y1="9" x2="15" y2="15"/>
|
||
</svg>
|
||
<div>
|
||
@foreach($errors->all() as $error)
|
||
<div>{{ $error }}</div>
|
||
@endforeach
|
||
</div>
|
||
</div>
|
||
@endif
|
||
|
||
@yield('content')
|
||
</main>
|
||
</div>
|
||
|
||
<script>
|
||
document.addEventListener('DOMContentLoaded', function() {
|
||
const menuToggle = document.getElementById('menuToggle');
|
||
const sidebar = document.getElementById('sidebar');
|
||
const overlay = document.getElementById('sidebarOverlay');
|
||
|
||
// 切换侧边栏
|
||
if (menuToggle) {
|
||
menuToggle.addEventListener('click', function(e) {
|
||
e.preventDefault();
|
||
e.stopPropagation();
|
||
sidebar.classList.toggle('active');
|
||
overlay.classList.toggle('active');
|
||
document.body.style.overflow = sidebar.classList.contains('active') ? 'hidden' : '';
|
||
});
|
||
}
|
||
|
||
// 点击遮罩层关闭
|
||
if (overlay) {
|
||
overlay.addEventListener('click', function() {
|
||
sidebar.classList.remove('active');
|
||
overlay.classList.remove('active');
|
||
document.body.style.overflow = '';
|
||
});
|
||
}
|
||
|
||
// 点击导航链接后自动关闭侧边栏(移动端)
|
||
document.querySelectorAll('.nav-item').forEach(function(item) {
|
||
item.addEventListener('click', function() {
|
||
if (window.innerWidth <= 768) {
|
||
sidebar.classList.remove('active');
|
||
overlay.classList.remove('active');
|
||
document.body.style.overflow = '';
|
||
}
|
||
});
|
||
});
|
||
|
||
// 窗口大小改变时重置侧边栏状态
|
||
window.addEventListener('resize', function() {
|
||
if (window.innerWidth > 768) {
|
||
sidebar.classList.remove('active');
|
||
overlay.classList.remove('active');
|
||
document.body.style.overflow = '';
|
||
}
|
||
});
|
||
});
|
||
</script>
|
||
</body>
|
||
</html>
|