/* 移动端基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    background:
        radial-gradient(circle at 20% 30%, rgba(0, 122, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(88, 86, 214, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(255, 45, 85, 0.06) 0%, transparent 50%),
        linear-gradient(135deg, #f8f9fa 0%, #e9ecef 40%, #f8f9fa 100%);
    color: #1d1d1f;
    overflow: hidden;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 1px,
            rgba(0, 122, 255, 0.02) 1px,
            rgba(0, 122, 255, 0.02) 2px
        );
    pointer-events: none;
    z-index: 1;
}

.mobile-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    margin: 0 auto;
    position: relative;
    z-index: 2;
    box-shadow:
        0 0 60px rgba(0, 0, 0, 0.1),
        0 10px 40px rgba(0, 0, 0, 0.08);
}

/* 顶部导航栏 */
.mobile-header {
    height: 56px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 249, 250, 0.95) 100%);
    backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    border-bottom: 1px solid rgba(229, 229, 231, 0.6);
    position: relative;
    z-index: 100;
    box-shadow:
        0 2px 20px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.back-btn, .menu-btn, .action-btn {
    background:
        linear-gradient(135deg, rgba(0, 122, 255, 0.1) 0%, rgba(88, 86, 214, 0.08) 100%);
    border: 1px solid rgba(0, 122, 255, 0.2);
    padding: 8px;
    border-radius: 6px;
    cursor: pointer;
    color: #2C5282;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.back-btn::before, .menu-btn::before, .action-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 122, 255, 0.2), rgba(88, 86, 214, 0.15));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.back-btn:hover, .menu-btn:hover, .action-btn:hover {
    transform: scale(1.05);
    box-shadow:
        0 4px 16px rgba(0, 122, 255, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    border-color: rgba(0, 122, 255, 0.4);
}

.back-btn:hover::before, .menu-btn:hover::before, .action-btn:hover::before {
    opacity: 1;
}

.back-btn:active, .menu-btn:active, .action-btn:active {
    transform: scale(0.95);
}

.header-title {
    font-size: 17px;
    font-weight: 600;
    color: #1d1d1f;
}

/* 主要内容区域 */
.mobile-main {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    background: transparent;
    position: relative;
}

.page {
    display: none;
    min-height: 100%;
}

.page.active {
    display: block;
}

.page-header {
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 249, 250, 0.95) 100%);
    backdrop-filter: blur(20px);
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(229, 229, 231, 0.6);
    position: sticky;
    top: 0;
    z-index: 50;
    box-shadow:
        0 2px 20px rgba(0, 0, 0, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.page-header h2 {
    font-size: 22px;
    font-weight: 800;
    background: linear-gradient(135deg, #1d1d1f 0%, #48484a 50%, #1d1d1f 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    letter-spacing: -0.3px;
}

/* 悬浮按钮 */
.fab-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background:
        linear-gradient(135deg, #2C5282 0%, #4A5568 50%, #2C5282 100%);
    border: none;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    box-shadow:
        0 8px 32px rgba(0, 122, 255, 0.4),
        0 4px 16px rgba(0, 122, 255, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.fab-btn::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(255, 255, 255, 0.2) 50%,
        transparent 70%
    );
    transform: rotate(45deg);
    transition: all 0.6s;
    opacity: 0;
}

.fab-btn:hover {
    transform: scale(1.1) translateY(-2px);
    box-shadow:
        0 16px 48px rgba(0, 122, 255, 0.5),
        0 8px 24px rgba(0, 122, 255, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.fab-btn:hover::before {
    animation: shimmer 0.6s ease-in-out;
}

.fab-btn:active {
    transform: scale(0.95);
}

@keyframes shimmer {
    0% {
        transform: rotate(45deg) translateY(-100%);
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        transform: rotate(45deg) translateY(100%);
        opacity: 0;
    }
}

/* 事件卡片样式 */
.events-container {
    padding: 16px;
}

.event-card {
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 249, 250, 0.95) 100%);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 16px;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.12),
        0 2px 8px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 2px solid rgba(229, 229, 231, 0.6);
    position: relative;
    overflow: hidden;
}

.event-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(0, 122, 255, 0.4) 50%,
        transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.event-card:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow:
        0 16px 64px rgba(0, 0, 0, 0.15),
        0 8px 24px rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(0, 122, 255, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    border-color: rgba(0, 122, 255, 0.3);
}

.event-card:hover::before {
    opacity: 1;
}

.event-card.active {
    border-color: #2C5282;
    background:
        linear-gradient(135deg, rgba(0, 122, 255, 0.05) 0%, rgba(255, 255, 255, 0.98) 100%);
    box-shadow:
        0 8px 32px rgba(0, 122, 255, 0.2),
        0 2px 8px rgba(0, 122, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.event-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.event-header h3 {
    font-size: 20px;
    font-weight: 700;
    background: linear-gradient(135deg, #1d1d1f 0%, #48484a 50%, #1d1d1f 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    flex: 1;
    letter-spacing: -0.2px;
    position: relative;
}

.event-status {
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
    border: 1px solid transparent;
}

.event-status::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: statusShimmer 3s infinite;
}

@keyframes statusShimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

.event-status.active {
    background:
        linear-gradient(135deg, #34c759 0%, #32d74b 50%, #34c759 100%);
    color: white;
    border-color: rgba(52, 199, 89, 0.3);
    box-shadow:
        0 4px 12px rgba(52, 199, 89, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.event-status.closed {
    background:
        linear-gradient(135deg, #8e8e93 0%, #636366 50%, #8e8e93 100%);
    color: white;
    border-color: rgba(142, 142, 147, 0.3);
    box-shadow:
        0 4px 12px rgba(142, 142, 147, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.event-info {
    margin-bottom: 16px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    color: #6e6e73;
    font-size: 14px;
    background: rgba(248, 249, 250, 0.8);
    padding: 8px 12px;
    border-radius: 6px;
    border: 1px solid rgba(229, 229, 231, 0.6);
    transition: all 0.3s ease;
}

.info-item:hover {
    background: rgba(242, 242, 247, 0.9);
    border-color: rgba(0, 122, 255, 0.2);
    transform: translateX(2px);
}

.info-item svg {
    color: #2C5282;
    flex-shrink: 0;
}

.event-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid rgba(229, 229, 231, 0.6);
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-label {
    font-size: 12px;
    color: #6e6e73;
    margin-bottom: 4px;
}

.stat-value {
    font-size: 24px;
    font-weight: 800;
    background: linear-gradient(135deg, #2C5282 0%, #4A5568 50%, #2C5282 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    animation: countUp 0.8s ease-out;
}

.stat-triage {
    display: flex;
    align-items: center;
    gap: 8px;
}

.triage-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.triage-dot.black {
    background: #1d1d1f;
}

.triage-dot.red {
    background: #ff3b30;
}

.triage-dot.yellow {
    background: #ffcc00;
}

.triage-dot.green {
    background: #34c759;
}

/* 创建表单样式 */
.create-form {
    padding: 16px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #1d1d1f;
    font-size: 14px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    font-size: 16px;
    background: white;
    color: #212529;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #2C5282;
    box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.1);
    transform: translateY(-1px);
}

.form-group input::placeholder,
.form-group select::placeholder,
.form-group textarea::placeholder {
    color: #adb5bd;
}

.submit-btn {
    width: 100%;
    padding: 16px 24px;
    background:
        linear-gradient(135deg, #2C5282 0%, #4A5568 50%, #2C5282 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    box-shadow:
        0 8px 32px rgba(0, 122, 255, 0.4),
        0 4px 16px rgba(0, 122, 255, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow:
        0 16px 48px rgba(0, 122, 255, 0.5),
        0 8px 24px rgba(0, 122, 255, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.submit-btn:hover::before {
    left: 100%;
}

.submit-btn:active {
    transform: translateY(0) scale(0.98);
}

/* 事件详情样式 */
.event-detail-content {
    padding: 16px;
}

.detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.detail-header h3 {
    font-size: 22px;
    font-weight: 700;
    color: #1d1d1f;
}

.detail-info {
    background: #FFFFFF;
    border-radius: 6px;
    padding: 16px;
    margin-bottom: 20px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #f2f2f7;
}

.info-row:last-child {
    border-bottom: none;
}

.info-row .label {
    font-weight: 500;
    color: #6e6e73;
}

.info-row .value {
    color: #1d1d1f;
    text-align: right;
    max-width: 60%;
}

.quick-actions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.action-card {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 6px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.action-card:hover {
    background: #F7FAFC;
    transform: translateY(-2px);
}

.action-card svg {
    color: #2C5282;
}

.action-card span {
    font-size: 12px;
    color: #1d1d1f;
    font-weight: 500;
}

/* 患者列表样式 */
.filter-bar {
    background: #FFFFFF;
    padding: 16px;
    border-bottom: 1px solid #E2E8F0;
}

.filter-group {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.filter-chip {
    padding: 8px 16px;
    border: 1px solid #d1d1d6;
    border-radius: 20px;
    background: #FFFFFF;
    color: #6e6e73;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
}

.filter-chip.active {
    background: #2C5282;
    color: white;
    border-color: #2C5282;
}

.patients-container {
    padding: 16px;
    padding-bottom: 80px;
}

.patient-card {
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 249, 250, 0.95) 100%);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 16px;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.12),
        0 2px 8px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 2px solid rgba(229, 229, 231, 0.6);
    position: relative;
    overflow: hidden;
}

.patient-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: linear-gradient(180deg, #007AFF, #4A5568);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.patient-card:hover {
    transform: translateY(-4px) scale(1.01);
    box-shadow:
        0 16px 64px rgba(0, 0, 0, 0.15),
        0 8px 24px rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(0, 122, 255, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    border-color: rgba(0, 122, 255, 0.3);
}

.patient-card:hover::before {
    opacity: 1;
}

.patient-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.patient-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background:
        linear-gradient(135deg, #2C5282 0%, #4A5568 50%, #2C5282 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 20px;
    position: relative;
    box-shadow:
        0 4px 16px rgba(0, 122, 255, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.patient-avatar::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, #007AFF, #4A5568);
    border-radius: 50%;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.patient-card:hover .patient-avatar::before {
    opacity: 0.3;
}

.patient-info {
    flex: 1;
}

.patient-info h4 {
    font-size: 18px;
    font-weight: 700;
    background: linear-gradient(135deg, #1d1d1f 0%, #48484a 50%, #1d1d1f 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 4px;
    letter-spacing: -0.2px;
}

.patient-id {
    font-size: 12px;
    color: #6e6e73;
    background: rgba(248, 249, 250, 0.8);
    padding: 2px 8px;
    border-radius: 8px;
    border: 1px solid rgba(229, 229, 231, 0.6);
    display: inline-block;
}

.triage-status {
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
    border: 1px solid transparent;
    transition: all 0.3s ease;
}

.triage-status::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: statusShimmer 3s infinite;
}

.triage-status.red {
    background:
        linear-gradient(135deg, #ff3b30 0%, #d70015 50%, #ff3b30 100%);
    color: white;
    border-color: rgba(255, 59, 48, 0.3);
    box-shadow:
        0 4px 12px rgba(255, 59, 48, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.triage-status.yellow {
    background:
        linear-gradient(135deg, #ffcc00 0%, #ff9500 50%, #ffcc00 100%);
    color: white;
    border-color: rgba(255, 204, 0, 0.3);
    box-shadow:
        0 4px 12px rgba(255, 204, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.triage-status.green {
    background:
        linear-gradient(135deg, #34c759 0%, #30d158 50%, #34c759 100%);
    color: white;
    border-color: rgba(52, 199, 89, 0.3);
    box-shadow:
        0 4px 12px rgba(52, 199, 89, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.triage-status.black {
    background:
        linear-gradient(135deg, #1d1d1f 0%, #636366 50%, #1d1d1f 100%);
    color: white;
    border-color: rgba(29, 29, 31, 0.3);
    box-shadow:
        0 4px 12px rgba(29, 29, 31, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.patient-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.detail-item {
    font-size: 13px;
    color: #6e6e73;
}

/* 悬浮操作按钮 */
.floating-actions {
    position: fixed;
    bottom: 80px;
    right: 16px;
    z-index: 90;
}

/* 底部导航 */
.mobile-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 85px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 249, 250, 0.95) 100%);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(229, 229, 231, 0.6);
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 8px 0 8px;
    position: relative;
    z-index: 100;
    box-shadow:
        0 -4px 24px rgba(0, 0, 0, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 14px 24px;
    border: none;
    background: none;
    cursor: pointer;
    border-radius: 12px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    color: #6e6e73;
    position: relative;
    overflow: hidden;
    min-width: 80px;
}

.nav-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        linear-gradient(135deg, rgba(0, 122, 255, 0.12) 0%, rgba(88, 86, 214, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 12px;
}

.nav-item.active {
    color: #007AFF;
    background:
        linear-gradient(135deg, rgba(0, 122, 255, 0.18) 0%, rgba(88, 86, 214, 0.12) 100%);
    box-shadow:
        0 6px 20px rgba(0, 122, 255, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
    transform: translateY(-3px);
}

.nav-item.active::before {
    opacity: 1;
}

.nav-item.active::after {
    content: '';
    position: absolute;
    top: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    background: #007AFF;
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(0, 122, 255, 0.6);
}

.nav-item:hover:not(.active) {
    background: rgba(242, 242, 247, 0.9);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.nav-item:hover:not(.active)::before {
    opacity: 0.6;
}

.nav-item svg {
    width: 22px;
    height: 22px;
    transition: all 0.3s ease;
}

.nav-item.active svg {
    stroke: #007AFF;
    filter: drop-shadow(0 2px 4px rgba(0, 122, 255, 0.3));
}

.nav-item span {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.2px;
    transition: all 0.3s ease;
}

.nav-item.active span {
    color: #007AFF;
    font-weight: 700;
}

/* 响应式调整 */
@media (max-width: 320px) {
    .quick-actions {
        grid-template-columns: repeat(2, 1fr);
    }

    .stat-triage {
        flex-wrap: wrap;
        gap: 4px;
    }
}

/* 转诊列表样式 */
.transfers-container {
    padding: 16px;
    padding-bottom: 80px;
}

.transfer-card {
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 249, 250, 0.95) 100%);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 16px;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.12),
        0 2px 8px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 2px solid rgba(229, 229, 231, 0.6);
    position: relative;
    overflow: hidden;
}

.transfer-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(0, 122, 255, 0.4) 50%,
        transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.transfer-card:hover {
    transform: translateY(-4px) scale(1.01);
    box-shadow:
        0 16px 64px rgba(0, 0, 0, 0.15),
        0 8px 24px rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(0, 122, 255, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    border-color: rgba(0, 122, 255, 0.3);
}

.transfer-card:hover::before {
    opacity: 1;
}

.transfer-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}

.transfer-info h4 {
    font-size: 18px;
    font-weight: 700;
    background: linear-gradient(135deg, #1d1d1f 0%, #48484a 50%, #1d1d1f 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 4px;
    letter-spacing: -0.2px;
}

.transfer-id {
    font-size: 12px;
    color: #6e6e73;
    background: rgba(248, 249, 250, 0.8);
    padding: 2px 8px;
    border-radius: 8px;
    border: 1px solid rgba(229, 229, 231, 0.6);
    display: inline-block;
}

.transfer-route {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    padding: 16px;
    background: rgba(248, 249, 250, 0.6);
    border-radius: 8px;
    border: 1px solid rgba(229, 229, 231, 0.4);
}

.route-point {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    flex: 1;
}

.point-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background:
        linear-gradient(135deg, #2C5282 0%, #4A5568 50%, #2C5282 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow:
        0 4px 16px rgba(0, 122, 255, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.route-point.destination .point-icon {
    background:
        linear-gradient(135deg, #34c759 0%, #30d158 50%, #34c759 100%);
    box-shadow:
        0 4px 16px rgba(52, 199, 89, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.point-info {
    text-align: center;
}

.point-name {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #1d1d1f;
    margin-bottom: 2px;
}

.point-time {
    font-size: 11px;
    color: #6e6e73;
}

.route-line {
    color: #6e6e73;
    flex-shrink: 0;
}

.transfer-details {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin: 20px 0;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: rgba(248, 249, 250, 0.8);
    border-radius: 12px;
    border: 1px solid rgba(229, 229, 231, 0.6);
}

.detail-label {
    font-size: 14px;
    color: #6e6e73;
    font-weight: 500;
}

.detail-value {
    font-size: 15px;
    font-weight: 600;
    color: #1d1d1f;
    text-align: right;
    max-width: 60%;
    word-wrap: break-word;
}

/* 转诊状态样式 */
.transfer-status {
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
    border: 1px solid transparent;
    transition: all 0.3s ease;
}

.transfer-status::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: statusShimmer 3s infinite;
}

.transfer-status.transferring {
    background:
        linear-gradient(135deg, #2C5282 0%, #4A5568 50%, #2C5282 100%);
    color: white;
    border-color: rgba(0, 122, 255, 0.3);
    box-shadow:
        0 4px 12px rgba(0, 122, 255, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.transfer-status.completed {
    background:
        linear-gradient(135deg, #34c759 0%, #30d158 50%, #34c759 100%);
    color: white;
    border-color: rgba(52, 199, 89, 0.3);
    box-shadow:
        0 4px 12px rgba(52, 199, 89, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.transfer-status.pending {
    background:
        linear-gradient(135deg, #ff9500 0%, #ffcc00 50%, #ff9500 100%);
    color: white;
    border-color: rgba(255, 149, 0, 0.3);
    box-shadow:
        0 4px 12px rgba(255, 149, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* 转诊详情样式 */
.transfer-detail-content {
    padding: 16px;
}

.detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.detail-header h3 {
    font-size: 20px;
    font-weight: 700;
    background: linear-gradient(135deg, #1d1d1f 0%, #48484a 50%, #1d1d1f 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    flex: 1;
}

.transfer-timeline {
    margin-bottom: 24px;
}

.timeline-item {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
    position: relative;
}

.timeline-item:last-child::before {
    display: none;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 23px;
    top: 40px;
    bottom: -20px;
    width: 2px;
    background: linear-gradient(180deg, #e5e5e7 0%, transparent 100%);
}

.timeline-item.completed::before {
    background: linear-gradient(180deg, #34c759 0%, #e5e5e7 100%);
}

.timeline-item.active::before {
    background: linear-gradient(180deg, #007AFF 0%, transparent 100%);
}

.timeline-marker {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
    z-index: 2;
}

.timeline-item.completed .timeline-marker {
    background:
        linear-gradient(135deg, #34c759 0%, #30d158 50%, #34c759 100%);
    color: white;
    box-shadow:
        0 4px 12px rgba(52, 199, 89, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.timeline-item.active .timeline-marker {
    background:
        linear-gradient(135deg, #2C5282 0%, #4A5568 50%, #2C5282 100%);
    color: white;
    box-shadow:
        0 4px 12px rgba(0, 122, 255, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.timeline-item.pending .timeline-marker {
    background: #F7FAFC;
    border: 2px solid #e5e5e7;
    color: #6e6e73;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
    position: relative;
}

.pulse-dot::before {
    content: '';
    position: absolute;
    top: -6px;
    left: -6px;
    right: -6px;
    bottom: -6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    animation: pulse 2s infinite;
}

.pending-dot {
    width: 8px;
    height: 8px;
    background: #6e6e73;
    border-radius: 50%;
}

.timeline-content {
    flex: 1;
    padding-top: 4px;
}

.timeline-content h4 {
    font-size: 16px;
    font-weight: 600;
    color: #1d1d1f;
    margin-bottom: 4px;
}

.timeline-content p {
    font-size: 14px;
    color: #6e6e73;
    margin-bottom: 8px;
}

.live-location {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #2C5282;
    font-weight: 500;
}

.live-location svg {
    animation: pulse 2s infinite;
}

.transfer-info-sections {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 24px;
}

.info-section {
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 249, 250, 0.95) 100%);
    backdrop-filter: blur(20px);
    border-radius: 8px;
    padding: 16px;
    border: 1px solid rgba(229, 229, 231, 0.6);
    box-shadow:
        0 4px 16px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.info-section h4 {
    font-size: 16px;
    font-weight: 600;
    color: #1d1d1f;
    margin-bottom: 12px;
    background: linear-gradient(135deg, #1d1d1f 0%, #48484a 50%, #1d1d1f 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.info-grid .info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid rgba(229, 229, 231, 0.4);
}

.info-grid .info-item:last-child {
    border-bottom: none;
}

.info-grid .info-item .label {
    font-size: 14px;
    color: #6e6e73;
    font-weight: 500;
}

.info-grid .info-item .value {
    font-size: 14px;
    color: #1d1d1f;
    font-weight: 600;
    text-align: right;
    max-width: 60%;
}

/* 患者列表紧凑版 */
.patient-list-compact {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.patient-item-compact {
    display: flex;
    align-items: center;
    gap: 12px;
}

.patient-avatar-compact {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 14px;
    position: relative;
    box-shadow:
        0 2px 8px rgba(0, 122, 255, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.patient-avatar-compact.red {
    background:
        linear-gradient(135deg, #ff3b30 0%, #d70015 50%, #ff3b30 100%);
}

.patient-avatar-compact.yellow {
    background:
        linear-gradient(135deg, #ffcc00 0%, #ff9500 50%, #ffcc00 100%);
}

.patient-avatar-compact.green {
    background:
        linear-gradient(135deg, #34c759 0%, #30d158 50%, #34c759 100%);
}

.patient-avatar-compact.black {
    background:
        linear-gradient(135deg, #1d1d1f 0%, #636366 50%, #1d1d1f 100%);
}

.patient-info-compact {
    flex: 1;
}

.patient-info-compact h5 {
    font-size: 15px;
    font-weight: 600;
    color: #1d1d1f;
    margin-bottom: 2px;
}

.patient-info-compact span {
    font-size: 12px;
    color: #6e6e73;
}

.view-more {
    text-align: center;
    padding: 12px;
    background: rgba(0, 122, 255, 0.1);
    border-radius: 6px;
    margin-top: 8px;
    border: 1px solid rgba(0, 122, 255, 0.2);
}

.view-more span {
    font-size: 13px;
    color: #2C5282;
    font-weight: 600;
}

/* 医护人员列表 */
.medical-staff {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.staff-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.staff-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background:
        linear-gradient(135deg, #4A5568 0%, #AF52DE 50%, #4A5568 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 14px;
    box-shadow:
        0 2px 8px rgba(88, 86, 214, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.staff-info h5 {
    font-size: 15px;
    font-weight: 600;
    color: #1d1d1f;
    margin-bottom: 2px;
}

.staff-info span {
    font-size: 12px;
    color: #6e6e73;
}

/* 转诊操作按钮 */
.transfer-actions {
    display: flex;
    gap: 12px;
    position: sticky;
    bottom: 0;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 249, 250, 0.95) 100%);
    backdrop-filter: blur(20px);
    padding: 16px;
    margin: 0 -16px -16px;
    border-top: 1px solid rgba(229, 229, 231, 0.6);
    box-shadow: 0 -2px 20px rgba(0, 0, 0, 0.08);
}

.action-btn-primary,
.action-btn-secondary {
    flex: 1;
    padding: 14px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: none;
    position: relative;
    overflow: hidden;
}

.action-btn-primary {
    background:
        linear-gradient(135deg, #2C5282 0%, #4A5568 50%, #2C5282 100%);
    color: white;
    box-shadow:
        0 4px 16px rgba(0, 122, 255, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.action-btn-secondary {
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(248, 249, 250, 0.8) 100%);
    color: #2C5282;
    border: 1px solid rgba(0, 122, 255, 0.3);
    box-shadow:
        0 2px 8px rgba(0, 122, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.action-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow:
        0 8px 24px rgba(0, 122, 255, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.action-btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow:
        0 4px 16px rgba(0, 122, 255, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.action-btn-primary:active,
.action-btn-secondary:active {
    transform: translateY(0) scale(0.98);
}

/* 空状态样式 */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
}

.empty-icon {
    width: 80px;
    height: 80px;
    background: rgba(248, 249, 250, 0.8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    box-shadow:
        0 4px 16px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.empty-state h3 {
    font-size: 18px;
    font-weight: 600;
    color: #1d1d1f;
    margin-bottom: 8px;
}

.empty-state p {
    font-size: 14px;
    color: #6e6e73;
    margin-bottom: 20px;
    max-width: 280px;
    line-height: 1.4;
}

/* 医院信息样式 */
.hospital-info {
    background:
        linear-gradient(135deg, rgba(248, 249, 250, 0.8) 0%, rgba(242, 242, 247, 0.6) 100%);
    border-radius: 6px;
    padding: 16px;
    border: 1px solid rgba(229, 229, 231, 0.4);
}

.hospital-name {
    font-size: 16px;
    font-weight: 600;
    color: #1d1d1f;
    margin-bottom: 8px;
}

.hospital-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.hospital-level,
.hospital-address,
.hospital-distance,
.hospital-beds {
    font-size: 13px;
    color: #6e6e73;
}

.hospital-level {
    display: inline-block;
    background:
        linear-gradient(135deg, #007AFF 0%, #4A5568 100%);
    color: white;
    padding: 2px 8px;
    border-radius: 6px;
    font-weight: 500;
    width: fit-content;
}

/* 转诊选择页面样式 */
.transfer-content {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.selection-header {
    background: #FFFFFF;
    border-radius: 6px;
    padding: 16px;
    border: 1px solid #E2E8F0;
}

.selection-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.selected-count {
    font-size: 14px;
    color: #1d1d1f;
}

.selected-count strong {
    color: #2C5282;
    font-weight: 700;
}

.select-all-btn {
    background: #2C5282;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
}

.filter-chips {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.chip {
    padding: 6px 12px;
    border: 1px solid #d1d1d6;
    border-radius: 8px;
    background: #FFFFFF;
    color: #6e6e73;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.chip.active {
    background: #2C5282;
    color: white;
    border-color: #2C5282;
}

/* 患者选择列表 */
.patient-selection-list {
    background: #FFFFFF;
    border-radius: 6px;
    border: 1px solid #E2E8F0;
    max-height: 300px;
    overflow-y: auto;
}

.patient-selection-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    border-bottom: 1px solid #f2f2f7;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.patient-selection-item:hover {
    background: #f8f8f8;
}

.patient-selection-item:last-child {
    border-bottom: none;
}

.selection-checkbox {
    flex-shrink: 0;
}

.selection-checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: #2C5282;
}

.selection-patient-info {
    flex: 1;
}

.selection-patient-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.selection-patient-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #2C5282;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
    flex-shrink: 0;
}

.selection-patient-details h4 {
    font-size: 16px;
    font-weight: 600;
    color: #1d1d1f;
    margin-bottom: 2px;
}

.selection-patient-meta {
    font-size: 12px;
    color: #6e6e73;
}

.selection-triage-status {
    padding: 4px 8px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    margin-left: auto;
}

.selection-triage-status.red {
    background: #ffe5e5;
    color: #d70015;
}

.selection-triage-status.yellow {
    background: #fff8e1;
    color: #ff8c00;
}

.selection-patient-condition {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
}

.selection-injury {
    color: #6e6e73;
}

.selection-ti-score {
    color: #fbbf24;
    font-weight: 600;
}

/* 医院选择 */
.hospital-selection h3 {
    font-size: 18px;
    font-weight: 600;
    color: #1d1d1f;
    margin-bottom: 12px;
}

.hospital-cards {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.hospital-selection-card {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 6px;
    padding: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.hospital-selection-card:hover {
    border-color: #2C5282;
    background: #f8f8ff;
}

.hospital-selection-card.selected {
    border-color: #2C5282;
    background: #f0f8ff;
    box-shadow: 0 0 0 2px rgba(0, 122, 255, 0.2);
}

.hospital-selection-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
}

.hospital-selection-info h4 {
    font-size: 16px;
    font-weight: 600;
    color: #1d1d1f;
    margin-bottom: 4px;
}

.hospital-selection-level {
    font-size: 12px;
    color: #6e6e73;
    background: #F7FAFC;
    padding: 2px 6px;
    border-radius: 6px;
}

.hospital-selection-status {
    padding: 4px 8px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 500;
}

.hospital-selection-status.available {
    background: #e8f5e8;
    color: #2e7d32;
}

.hospital-selection-status.busy {
    background: #fff8e1;
    color: #ff8f00;
}

.hospital-selection-stats {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6e6e73;
}

.hospital-selection-beds {
    font-weight: 500;
}

/* 转诊设置 */
.transfer-settings h3 {
    font-size: 18px;
    font-weight: 600;
    color: #1d1d1f;
    margin-bottom: 12px;
}

.settings-form {
    background: #FFFFFF;
    border-radius: 6px;
    padding: 16px;
    border: 1px solid #E2E8F0;
}

.settings-form .form-group {
    margin-bottom: 16px;
}

.settings-form .form-group:last-child {
    margin-bottom: 0;
}

.settings-form label {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    font-weight: 500;
    color: #1d1d1f;
}

.settings-form input,
.settings-form select,
.settings-form textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d1d1d6;
    border-radius: 8px;
    font-size: 14px;
    background: #FFFFFF;
    transition: border-color 0.2s ease;
}

.settings-form input:focus,
.settings-form select:focus,
.settings-form textarea:focus {
    outline: none;
    border-color: #2C5282;
}

.settings-form textarea {
    resize: vertical;
    min-height: 60px;
}

/* 转诊操作 */
.transfer-actions {
    position: sticky;
    bottom: 0;
    background: #FFFFFF;
    padding: 16px;
    border-top: 1px solid #e5e5e7;
    margin: 0 -16px -16px;
}

.confirm-btn {
    width: 100%;
    padding: 14px;
    background: #2C5282;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.confirm-btn:hover {
    background: #0056cc;
}

.confirm-btn:active {
    transform: scale(0.98);
}

/* 动画效果 */
@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes countUp {
    0% {
        transform: translateY(10px);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.page.active {
    animation: slideInRight 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.patient-card {
    animation: fadeIn 0.6s ease-out backwards;
}

.patient-card:nth-child(1) { animation-delay: 0.1s; }
.patient-card:nth-child(2) { animation-delay: 0.2s; }
.patient-card:nth-child(3) { animation-delay: 0.3s; }

.event-card {
    animation: slideInUp 0.6s ease-out backwards;
}

.event-card:nth-child(1) { animation-delay: 0.1s; }
.event-card:nth-child(2) { animation-delay: 0.2s; }

.patient-selection-item {
    animation: fadeIn 0.4s ease-out;
}

.hospital-selection-card {
    animation: fadeIn 0.4s ease-out;
}

/* 滚动条优化 */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: rgba(248, 249, 250, 0.4);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb {
    background:
        linear-gradient(135deg, rgba(0, 122, 255, 0.3) 0%, rgba(88, 86, 214, 0.2) 100%);
    border-radius: 3px;
    transition: all 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background:
        linear-gradient(135deg, rgba(0, 122, 255, 0.5) 0%, rgba(88, 86, 214, 0.4) 100%);
}

/* 选择文本样式 */
::selection {
    background: rgba(0, 122, 255, 0.3);
    color: #1d1d1f;
}

::-moz-selection {
    background: rgba(0, 122, 255, 0.3);
    color: #1d1d1f;
}

/* 触摸反馈 */
@media (hover: none) {
    .event-card:active,
    .patient-card:active,
    .action-card:active {
        transform: scale(0.98);
        transition: transform 0.1s ease;
    }
}

/* 转诊增强功能样式 */

/* 转诊统计概览 */
.transfer-overview {
    padding: 16px;
    margin-bottom: 16px;
}

.overview-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.overview-card {
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 249, 250, 0.95) 100%);
    backdrop-filter: blur(20px);
    border-radius: 8px;
    padding: 16px 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(229, 229, 231, 0.6);
    box-shadow:
        0 4px 16px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.overview-card.urgent {
    border-color: rgba(255, 59, 48, 0.3);
    background:
        linear-gradient(135deg, rgba(255, 59, 48, 0.05) 0%, rgba(255, 255, 255, 0.98) 100%);
}

.overview-card.processing {
    border-color: rgba(0, 122, 255, 0.3);
    background:
        linear-gradient(135deg, rgba(0, 122, 255, 0.05) 0%, rgba(255, 255, 255, 0.98) 100%);
}

.overview-card.completed {
    border-color: rgba(52, 199, 89, 0.3);
    background:
        linear-gradient(135deg, rgba(52, 199, 89, 0.05) 0%, rgba(255, 255, 255, 0.98) 100%);
}

.overview-card:hover {
    transform: translateY(-2px);
    box-shadow:
        0 8px 24px rgba(0, 0, 0, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.card-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.overview-card.urgent .card-icon {
    background:
        linear-gradient(135deg, #ff3b30 0%, #d70015 50%, #ff3b30 100%);
}

.overview-card.processing .card-icon {
    background:
        linear-gradient(135deg, #2C5282 0%, #4A5568 50%, #2C5282 100%);
}

.overview-card.completed .card-icon {
    background:
        linear-gradient(135deg, #34c759 0%, #30d158 50%, #34c759 100%);
}

.card-content {
    text-align: center;
}

.card-value {
    display: block;
    font-size: 20px;
    font-weight: 800;
    color: #1d1d1f;
    margin-bottom: 2px;
}

.card-label {
    font-size: 11px;
    color: #6e6e73;
    font-weight: 500;
}

/* 医院状态概览 */
.hospital-status-overview {
    margin-bottom: 16px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 16px 12px;
}

.section-header h3 {
    font-size: 16px;
    font-weight: 600;
    color: #1d1d1f;
}

.view-all-btn {
    background: none;
    border: none;
    color: #2C5282;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 8px;
    transition: background-color 0.2s ease;
}

.view-all-btn:hover {
    background: rgba(0, 122, 255, 0.1);
}

.hospital-status-scroll {
    display: flex;
    gap: 12px;
    padding: 0 16px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
}

.hospital-status-scroll::-webkit-scrollbar {
    display: none;
}

.hospital-status-item {
    flex-shrink: 0;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 249, 250, 0.95) 100%);
    backdrop-filter: blur(20px);
    border-radius: 8px;
    padding: 12px 16px;
    border: 1px solid rgba(229, 229, 231, 0.6);
    box-shadow:
        0 4px 16px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    scroll-snap-align: start;
    min-width: 160px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.hospital-status-item.available {
    border-left: 3px solid #34c759;
}

.hospital-status-item.busy {
    border-left: 3px solid #ff9500;
}

.hospital-status-item:hover {
    transform: translateY(-2px);
    box-shadow:
        0 8px 24px rgba(0, 0, 0, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.status-indicator {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.hospital-status-item.available .status-indicator {
    background: #34c759;
}

.hospital-status-item.busy .status-indicator {
    background: #ff9500;
}

.hospital-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-bottom: 4px;
}

.hospital-name {
    font-size: 13px;
    font-weight: 600;
    color: #1d1d1f;
}

.hospital-beds {
    font-size: 11px;
    color: #6e6e73;
}

.hospital-distance {
    font-size: 11px;
    color: #2C5282;
    font-weight: 500;
}

/* 筛选控件 */
.filter-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-select {
    padding: 6px 12px;
    border: 1px solid #d1d1d6;
    border-radius: 6px;
    background: white;
    font-size: 12px;
    color: #1d1d1f;
    cursor: pointer;
}

/* 医院状态页面样式 */
.hospital-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    padding: 16px;
    margin-bottom: 16px;
}

.stat-card {
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 249, 250, 0.95) 100%);
    backdrop-filter: blur(20px);
    border-radius: 8px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid rgba(229, 229, 231, 0.6);
    box-shadow:
        0 4px 16px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.stat-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.stat-icon.available {
    background:
        linear-gradient(135deg, #34c759 0%, #30d158 50%, #34c759 100%);
}

.stat-icon.busy {
    background:
        linear-gradient(135deg, #ff9500 0%, #ffcc00 50%, #ff9500 100%);
}

.stat-icon.total {
    background:
        linear-gradient(135deg, #4A5568 0%, #AF52DE 50%, #4A5568 100%);
}

.stat-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.stat-value {
    font-size: 18px;
    font-weight: 800;
    color: #1d1d1f;
}

.stat-label {
    font-size: 11px;
    color: #6e6e73;
    font-weight: 500;
}

.hospitals-container {
    padding: 0 16px;
    padding-bottom: 80px;
}

.hospital-card-mobile {
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 249, 250, 0.95) 100%);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 16px;
    border: 2px solid rgba(229, 229, 231, 0.6);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.12),
        0 2px 8px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.hospital-card-mobile.available {
    border-left: 4px solid #34c759;
}

.hospital-card-mobile.busy {
    border-left: 4px solid #ff9500;
}

.hospital-card-mobile:hover {
    transform: translateY(-4px);
    box-shadow:
        0 16px 64px rgba(0, 0, 0, 0.15),
        0 8px 24px rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(0, 122, 255, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.hospital-header-mobile {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}

.hospital-info-mobile h3 {
    font-size: 18px;
    font-weight: 700;
    background: linear-gradient(135deg, #1d1d1f 0%, #48484a 50%, #1d1d1f 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 4px;
}

.hospital-level {
    font-size: 12px;
    color: #6e6e73;
    background: rgba(248, 249, 250, 0.8);
    padding: 2px 8px;
    border-radius: 6px;
    border: 1px solid rgba(229, 229, 231, 0.6);
    display: inline-block;
}

.hospital-status-mobile {
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
    border: 1px solid transparent;
}

.hospital-status-mobile.available {
    background:
        linear-gradient(135deg, #34c759 0%, #30d158 50%, #34c759 100%);
    color: white;
    border-color: rgba(52, 199, 89, 0.3);
    box-shadow:
        0 4px 12px rgba(52, 199, 89, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.hospital-status-mobile.busy {
    background:
        linear-gradient(135deg, #ff9500 0%, #ffcc00 50%, #ff9500 100%);
    color: white;
    border-color: rgba(255, 149, 0, 0.3);
    box-shadow:
        0 4px 12px rgba(255, 149, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.hospital-stats-mobile {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 16px;
}

.hospital-stat-item {
    text-align: center;
}

.hospital-stat-item .label {
    display: block;
    font-size: 11px;
    color: #6e6e73;
    margin-bottom: 4px;
}

.hospital-stat-item .value {
    font-size: 13px;
    font-weight: 600;
    color: #1d1d1f;
}

.hospital-stat-item.highlight .value {
    color: #34c759;
    font-size: 14px;
}

.hospital-stat-item.warning .value {
    color: #ff9500;
}

.hospital-contact-mobile {
    display: flex;
    gap: 12px;
}

.contact-btn, .navigate-btn {
    flex: 1;
    padding: 10px;
    border-radius: 6px;
    border: none;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.3s ease;
}

.contact-btn {
    background:
        linear-gradient(135deg, #2C5282 0%, #4A5568 50%, #2C5282 100%);
    color: white;
    box-shadow:
        0 4px 16px rgba(0, 122, 255, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.navigate-btn {
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(248, 249, 250, 0.8) 100%);
    color: #2C5282;
    border: 1px solid rgba(0, 122, 255, 0.3);
    box-shadow:
        0 2px 8px rgba(0, 122, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.contact-btn:hover, .navigate-btn:hover {
    transform: translateY(-2px);
}

/* 转诊统计页面样式 */
.stats-content {
    padding: 16px;
    padding-bottom: 80px;
}

.today-stats {
    margin-bottom: 24px;
}

.today-stats h3 {
    font-size: 16px;
    font-weight: 600;
    color: #1d1d1f;
    margin-bottom: 12px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.stat-item.today {
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 249, 250, 0.95) 100%);
    backdrop-filter: blur(20px);
    border-radius: 8px;
    padding: 16px;
    text-align: center;
    border: 1px solid rgba(229, 229, 231, 0.6);
    box-shadow:
        0 4px 16px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.stat-item.today .stat-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background:
        linear-gradient(135deg, #2C5282 0%, #4A5568 50%, #2C5282 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 8px;
}

.stat-number {
    display: block;
    font-size: 18px;
    font-weight: 800;
    background: linear-gradient(135deg, #2C5282 0%, #4A5568 50%, #2C5282 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 2px;
}

.stat-desc {
    font-size: 11px;
    color: #6e6e73;
}

.trend-section {
    margin-bottom: 24px;
}

.trend-section h3 {
    font-size: 16px;
    font-weight: 600;
    color: #1d1d1f;
    margin-bottom: 12px;
}

.trend-chart {
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 249, 250, 0.95) 100%);
    backdrop-filter: blur(20px);
    border-radius: 8px;
    padding: 16px;
    border: 1px solid rgba(229, 229, 231, 0.6);
    box-shadow:
        0 4px 16px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.chart-bars {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    height: 120px;
    gap: 8px;
}

.bar-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.bar-label {
    font-size: 10px;
    color: #6e6e73;
    font-weight: 500;
}

.bar-container {
    flex: 1;
    background: rgba(242, 242, 247, 0.5);
    border-radius: 4px 4px 0 0;
    position: relative;
    min-height: 8px;
    display: flex;
    align-items: flex-end;
    width: 100%;
}

.bar-fill {
    width: 100%;
    background:
        linear-gradient(135deg, #2C5282 0%, #4A5568 50%, #2C5282 100%);
    border-radius: 4px 4px 0 0;
    transition: height 0.5s ease;
}

.bar-fill.today {
    background:
        linear-gradient(135deg, #34c759 0%, #30d158 50%, #34c759 100%);
}

.bar-value {
    font-size: 10px;
    color: #1d1d1f;
    font-weight: 600;
}

.hospital-distribution {
    margin-bottom: 24px;
}

.hospital-distribution h3 {
    font-size: 16px;
    font-weight: 600;
    color: #1d1d1f;
    margin-bottom: 12px;
}

.distribution-items {
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 249, 250, 0.95) 100%);
    backdrop-filter: blur(20px);
    border-radius: 8px;
    padding: 16px;
    border: 1px solid rgba(229, 229, 231, 0.6);
    box-shadow:
        0 4px 16px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.distribution-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.distribution-item:last-child {
    margin-bottom: 0;
}

.hospital-name {
    font-size: 13px;
    color: #1d1d1f;
    font-weight: 500;
    min-width: 100px;
}

.progress-bar {
    flex: 1;
    height: 8px;
    background: rgba(242, 242, 247, 0.8);
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background:
        linear-gradient(135deg, #2C5282 0%, #4A5568 50%, #2C5282 100%);
    border-radius: 4px;
    transition: width 0.5s ease;
}

.percentage {
    font-size: 12px;
    color: #1d1d1f;
    font-weight: 600;
    min-width: 30px;
    text-align: right;
}

/* 头部操作按钮 */
.header-actions {
    display: flex;
    gap: 8px;
}

.refresh-btn, .export-btn {
    background:
        linear-gradient(135deg, rgba(0, 122, 255, 0.1) 0%, rgba(88, 86, 214, 0.08) 100%);
    border: 1px solid rgba(0, 122, 255, 0.2);
    padding: 8px;
    border-radius: 6px;
    cursor: pointer;
    color: #2C5282;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    align-items: center;
    justify-content: center;
}

.refresh-btn:hover, .export-btn:hover {
    transform: scale(1.05);
    box-shadow:
        0 4px 16px rgba(0, 122, 255, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    border-color: rgba(0, 122, 255, 0.4);
}

/* 增强转诊详情页面样式 */

.detail-header-enhanced {
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 249, 250, 0.95) 100%);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 16px;
    border: 1px solid rgba(229, 229, 231, 0.6);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.12),
        0 2px 8px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.detail-title-section {
    flex: 1;
}

.detail-title-section h3 {
    font-size: 20px;
    font-weight: 700;
    background: linear-gradient(135deg, #1d1d1f 0%, #48484a 50%, #1d1d1f 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 4px;
}

.transfer-id-badge {
    font-size: 12px;
    color: #6e6e73;
    background: rgba(248, 249, 250, 0.8);
    padding: 3px 8px;
    border-radius: 8px;
    border: 1px solid rgba(229, 229, 231, 0.6);
    display: inline-block;
    font-weight: 500;
}

.detail-status-section {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

.progress-circle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: conic-gradient(#007AFF 0deg, #007AFF calc(var(--progress) * 3.6deg), rgba(242, 242, 247, 0.5) calc(var(--progress) * 3.6deg));
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.progress-circle::before {
    content: '';
    position: absolute;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 249, 250, 0.95) 100%);
    backdrop-filter: blur(20px);
}

.progress-text {
    font-size: 11px;
    font-weight: 700;
    color: #2C5282;
    position: relative;
    z-index: 1;
}

.detail-overview-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 16px;
}

.overview-card-small {
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 249, 250, 0.95) 100%);
    backdrop-filter: blur(20px);
    border-radius: 8px;
    padding: 12px;
    border: 1px solid rgba(229, 229, 231, 0.6);
    box-shadow:
        0 4px 16px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    gap: 8px;
}

.card-icon-small {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background:
        linear-gradient(135deg, #2C5282 0%, #4A5568 50%, #2C5282 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.card-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.card-label {
    font-size: 10px;
    color: #6e6e73;
    font-weight: 500;
}

.card-value {
    font-size: 12px;
    color: #1d1d1f;
    font-weight: 600;
}

.real-time-location-panel {
    background:
        linear-gradient(135deg, rgba(0, 122, 255, 0.05) 0%, rgba(255, 255, 255, 0.98) 100%);
    backdrop-filter: blur(20px);
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 16px;
    border: 1px solid rgba(0, 122, 255, 0.2);
    box-shadow:
        0 4px 16px rgba(0, 122, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.panel-title {
    font-size: 14px;
    font-weight: 600;
    color: #1d1d1f;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.location-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.location-address {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #1d1d1f;
    font-weight: 500;
}

.location-status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: #6e6e73;
}

.status-dot.pulse {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #34c759;
    animation: pulse 2s infinite;
}

/* 患者编辑页面样式 */
.patient-edit-container {
    padding: 16px;
    background: #EDF2F7;
    min-height: calc(100vh - 120px);
    overflow-y: auto;
}

.edit-section {
    background: white;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    border: 1px solid rgba(209, 209, 214, 0.3);
    transition: all 0.3s ease;
}

.edit-section:hover {
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.12);
    border-color: rgba(209, 209, 214, 0.5);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-bottom: 1px solid #E2E8F0;
}

.section-header h3 {
    font-size: 16px;
    font-weight: 600;
    color: #1d1d1f;
}

.patient-id-display {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
}

.id-label {
    color: #6e6e73;
}

.id-value {
    color: #2C5282;
    font-weight: 600;
    font-family: 'SF Mono', 'Monaco', monospace;
}

.save-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #34c759 0%, #30d158 100%);
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    color: white;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(52, 199, 89, 0.3);
}

.save-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(52, 199, 89, 0.4);
}

.save-btn svg {
    width: 16px;
    height: 16px;
}

/* 患者表单样式 */
.patient-form {
    padding: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    font-size: 14px;
    font-weight: 600;
    color: #1d1d1f;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px 16px;
    border: 1px solid #E2E8F0;
    border-radius: 6px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: white;
    color: #1d1d1f;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #2C5282;
    box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
    font-family: inherit;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.anonymous-toggle,
.scan-btn {
    position: absolute;
    right: 12px;
    background: rgba(0, 122, 255, 0.1);
    border: 1px solid rgba(0, 122, 255, 0.2);
    border-radius: 8px;
    padding: 6px 8px;
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.anonymous-toggle:hover,
.scan-btn:hover {
    background: rgba(0, 122, 255, 0.15);
}

.anonymous-toggle.active {
    background: #2C5282;
    color: white;
    border-color: #2C5282;
}

.anonymous-toggle svg,
.scan-btn svg {
    width: 14px;
    height: 14px;
}

.anonymous-toggle span,
.scan-btn span {
    font-size: 12px;
    font-weight: 500;
}

.input-wrapper input {
    padding-right: 80px;
}

/* 检伤分类选择器 */
.triage-selector {
    display: flex;
    align-items: center;
    gap: 12px;
}

.triage-label {
    font-size: 12px;
    font-weight: 600;
    color: #6e6e73;
}

.triage-options {
    display: flex;
    gap: 8px;
}

.triage-option {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px 10px;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 12px;
    font-weight: 500;
}

.triage-option:hover {
    border-color: #2C5282;
    background: rgba(0, 122, 255, 0.05);
}

.triage-option.selected {
    border-color: #2C5282;
    background: rgba(0, 122, 255, 0.1);
    color: #2C5282;
}

.triage-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

.triage-dot.black { background: #1d1d1f; }
.triage-dot.red { background: #ff3b30; }
.triage-dot.yellow { background: #ff9500; }
.triage-dot.green { background: #34c759; }

/* 受伤部位选择 */
.injury-parts {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.injury-part-btn {
    padding: 8px 12px;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
    color: #1d1d1f;
}

.injury-part-btn:hover {
    border-color: #2C5282;
    background: rgba(0, 122, 255, 0.05);
}

.injury-part-btn.selected {
    border-color: #2C5282;
    background: #2C5282;
    color: white;
}

.injury-part-btn.custom {
    border-color: #34c759;
    color: #34c759;
    display: flex;
    align-items: center;
    gap: 4px;
}

.injury-part-btn.custom:hover {
    background: rgba(52, 199, 89, 0.05);
}

/* 生命体征 */
.vital-signs {
    margin-bottom: 20px;
}

.vital-signs h4 {
    font-size: 14px;
    font-weight: 600;
    color: #1d1d1f;
    margin-bottom: 12px;
}

.vitals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.vital-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: #EDF2F7;
    padding: 12px;
    border-radius: 6px;
    border: 1px solid #E2E8F0;
    transition: all 0.3s ease;
}

.vital-item:hover {
    border-color: #2C5282;
    background: #f0f8ff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 122, 255, 0.1);
}

.vital-item label {
    font-size: 13px;
    font-weight: 600;
    color: #495057;
    display: flex;
    align-items: center;
    gap: 4px;
}

.vital-item label::before {
    content: '';
    width: 3px;
    height: 3px;
    background: #2C5282;
    border-radius: 50%;
}

.vital-input-group {
    display: flex;
    align-items: center;
    gap: 8px;
    background: white;
    padding: 8px;
    border-radius: 8px;
    border: 1px solid #dee2e6;
    transition: all 0.3s ease;
}

.vital-input-group:focus-within {
    border-color: #2C5282;
    box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.1);
}

.vital-input-group input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 14px;
    color: #212529;
    background: transparent;
    padding: 2px;
}

.vital-input-group input::placeholder {
    color: #adb5bd;
}

.vital-input-group span {
    font-weight: 700;
    color: #6c757d;
    font-size: 14px;
    padding: 0 4px;
}

/* 现场处理措施 */
.treatment-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.treatment-btn {
    padding: 8px 12px;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
    color: #1d1d1f;
    display: flex;
    align-items: center;
    gap: 4px;
}

.treatment-btn:hover {
    border-color: #ff9500;
    background: rgba(255, 149, 0, 0.05);
}

.treatment-btn.selected {
    border-color: #ff9500;
    background: #ff9500;
    color: white;
}

.treatment-btn.custom {
    border-color: #34c759;
    color: #34c759;
}

.treatment-btn.custom:hover {
    background: rgba(52, 199, 89, 0.05);
}

/* 用药记录 */
.medication-records {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.medication-item {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #EDF2F7;
    padding: 12px;
    border-radius: 6px;
    border: 1px solid #E2E8F0;
    transition: all 0.3s ease;
    animation: slideInUp 0.3s ease;
}

.medication-item:hover {
    border-color: #34c759;
    background: #f0fff4;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(52, 199, 89, 0.1);
}

.medication-name,
.medication-dosage {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    font-size: 14px;
    background: white;
    transition: all 0.3s ease;
}

.medication-name:focus,
.medication-dosage:focus {
    outline: none;
    border-color: #34c759;
    box-shadow: 0 0 0 3px rgba(52, 199, 89, 0.1);
}

.medication-name::placeholder,
.medication-dosage::placeholder {
    color: #adb5bd;
}

.medication-dosage {
    flex: 0.5;
}

.remove-btn {
    background: rgba(255, 59, 48, 0.1);
    border: 1px solid rgba(255, 59, 48, 0.2);
    border-radius: 8px;
    padding: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #ff3b30;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
}

.remove-btn:hover {
    background: rgba(255, 59, 48, 0.15);
    border-color: rgba(255, 59, 48, 0.4);
    transform: scale(1.05);
}

.remove-btn:active {
    transform: scale(0.95);
}

.add-medication-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 16px;
    border: 2px dashed #2C5282;
    border-radius: 6px;
    background: linear-gradient(135deg, rgba(0, 122, 255, 0.02) 0%, rgba(0, 122, 255, 0.05) 100%);
    cursor: pointer;
    transition: all 0.3s ease;
    color: #2C5282;
    font-weight: 500;
    font-size: 14px;
    width: 100%;
}

.add-medication-btn:hover {
    border-color: #0056b3;
    background: linear-gradient(135deg, rgba(0, 122, 255, 0.05) 0%, rgba(0, 122, 255, 0.1) 100%);
    color: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 122, 255, 0.15);
}

.add-medication-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(0, 122, 255, 0.1);
}

.add-medication-btn svg {
    transition: all 0.3s ease;
}

.add-medication-btn:hover svg {
    transform: rotate(90deg);
}

/* 无名氏患者卡片样式 */
.patient-card.anonymous {
    border: 2px dashed #ff9500;
    background: linear-gradient(135deg, rgba(255, 149, 0, 0.05) 0%, rgba(255, 149, 0, 0.02) 100%);
}

.patient-card.anonymous:hover {
    border-color: #ff9500;
    background: linear-gradient(135deg, rgba(255, 149, 0, 0.1) 0%, rgba(255, 149, 0, 0.05) 100%);
}

.anonymous-avatar {
    background: linear-gradient(135deg, #ff9500 0%, #ff6b00 100%) !important;
    color: white;
    font-size: 18px;
    font-weight: bold;
}

.anonymous-badge {
    display: inline-block;
    background: rgba(255, 149, 0, 0.1);
    color: #ff9500;
    font-size: 10px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 4px;
    margin-top: 4px;
}

/* Toast动画 */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translate(-50%, 20px);
    }
    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

@keyframes slideDown {
    from {
        opacity: 1;
        transform: translate(-50%, 0);
    }
    to {
        opacity: 0;
        transform: translate(-50%, 20px);
    }
}

/* 空状态样式 */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
    color: #6e6e73;
}

.empty-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 16px;
    opacity: 0.6;
}

.empty-state h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #6e6e73;
}

.empty-state p {
    font-size: 14px;
    color: #8e8e93;
    line-height: 1.4;
}

/* 表单布局优化 */
.patient-edit-form .triage-section,
.patient-edit-form .info-section,
.patient-edit-form .vital-signs-section {
    margin-bottom: 30px;
    position: relative;
}

.patient-edit-form .triage-section::after,
.patient-edit-form .info-section::after,
.patient-edit-form .vital-signs-section::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 20px;
    right: 20px;
    height: 1px;
    background: linear-gradient(90deg, transparent, #e9ecef 20%, #e9ecef 80%, transparent);
}

/* 表单区块标题美化 */
.section-title {
    background: linear-gradient(135deg, #2C5282 0%, #1A365D 100%);
    color: white;
    padding: 15px 20px;
    border-radius: 15px 15px 0 0;
    margin: -20px -20px 20px -20px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 2px 8px rgba(0, 122, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.section-title::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 60px;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1));
}

.section-title-icon {
    width: 24px;
    height: 24px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

/* 表单容器美化 */
.form-container {
    background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: all 0.3s ease;
    margin-bottom: 25px;
}

.form-container:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

/* 提交按钮区域美化 */
.form-actions {
    background: linear-gradient(145deg, #f8f9fa 0%, #ffffff 100%);
    padding: 20px;
    margin: 30px -20px -20px -20px;
    border-top: 1px solid #e9ecef;
    display: flex;
    gap: 12px;
    position: sticky;
    bottom: 0;
    border-radius: 0 0 16px 16px;
    backdrop-filter: blur(10px);
}

.submit-btn {
    width: 50%;
    padding: 16px 24px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.submit-btn.primary {
    background: linear-gradient(135deg, #2C5282 0%, #1A365D 100%);
    color: white;
    box-shadow: 0 4px 16px rgba(0, 122, 255, 0.3);
}

.submit-btn.primary:hover {
    background: linear-gradient(135deg, #0056CC 0%, #003d99 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 122, 255, 0.4);
}

.submit-btn.primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(0, 122, 255, 0.3);
}

.submit-btn.secondary {
    background: white;
    color: #6c757d;
    border: 2px solid #e9ecef;
}

.submit-btn.secondary:hover {
    background: #EDF2F7;
    border-color: #dee2e6;
    color: #495057;
}

/* 表单分组容器 */
.form-group {
    background: white;
    border-radius: 6px;
    padding: 16px;
    margin-bottom: 16px;
    border: 1px solid #f1f3f4;
    transition: all 0.3s ease;
}

.form-group:hover {
    border-color: #e8f0fe;
    box-shadow: 0 2px 8px rgba(0, 122, 255, 0.05);
}

/* 输入框统一美化 */
.form-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    font-size: 15px;
    transition: all 0.3s ease;
    background: white;
}

.form-input:focus {
    outline: none;
    border-color: #2C5282;
    box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.1);
    transform: translateY(-1px);
}

.form-input::placeholder {
    color: #adb5bd;
    font-size: 14px;
}

/* 响应式优化 */
@media (max-width: 375px) {
    .form-row {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .triage-options {
        flex-wrap: wrap;
    }

    .vitals-grid {
        grid-template-columns: 1fr;
    }

    .treatment-actions {
        justify-content: center;
    }

    .medication-item {
        flex-direction: column;
        align-items: stretch;
    }

    .medication-dosage {
        flex: 1;
    }

    .form-actions {
        position: relative;
        margin-top: 20px;
    }

    .submit-btn {
        padding: 14px 20px;
        font-size: 15px;
    }

    .section-title {
        padding: 12px 16px;
        margin: -16px -16px 16px -16px;
        font-size: 15px;
    }
}

/* 转诊编辑页面样式 */
.transfer-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.transfer-actions .action-btn.edit {
    background: rgba(0, 122, 255, 0.1);
    border: 1px solid rgba(0, 122, 255, 0.2);
    color: #2C5282;
    padding: 6px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.transfer-actions .action-btn.edit:hover {
    background: rgba(0, 122, 255, 0.2);
    border-color: #2C5282;
    transform: scale(1.05);
}

.transfer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.transfer-header .transfer-info {
    flex: 1;
    cursor: pointer;
}

/* 患者选择器样式增强 */
.patient-list {
    max-height: 400px;
    overflow-y: auto;
}

.patient-option {
    padding: 15px 20px;
    border-bottom: 1px solid #f1f3f4;
    cursor: pointer;
    transition: all 0.3s ease;
}

.patient-option:hover {
    background-color: #f8f9fa;
}

.patient-option:last-child {
    border-bottom: none;
}

.patient-name {
    font-weight: 600;
    color: #1d1d1f;
    margin-bottom: 5px;
}

.patient-details {
    font-size: 14px;
    color: #6c757d;
}

.triage-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 4px;
}

.triage-dot.black { background: #000000; }
.triage-dot.red { background: #E53E3E; }
.triage-dot.yellow { background: #D69E2E; }
.triage-dot.green { background: #2F855A; }

/* 转诊卡片点击区域优化 */
.transfer-card {
    transition: all 0.3s ease;
}

.transfer-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

/* 模态框样式 */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.3s ease;
}

.modal {
    background: white;
    border-radius: 6px;
    width: 90%;
    max-width: 400px;
    max-height: 80%;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    animation: slideUp 0.3s ease;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    border-bottom: 1px solid #E2E8F0;
}

.modal-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.close-btn {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #6c757d;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.close-btn:hover {
    background: #EDF2F7;
    color: #495057;
}

.modal-content {
    padding: 0;
    max-height: 400px;
    overflow-y: auto;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* OA风格特定样式 */
.oa-header {
    background: linear-gradient(135deg, #2C5282 0%, #4A5568 100%);
    border-bottom: 3px solid #1A365D;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.oa-card {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-left: 4px solid #2C5282;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
}

.oa-card:hover {
    border-left-color: #4A5568;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.oa-button {
    background: #2C5282;
    color: #FFFFFF;
    border: 1px solid #2C5282;
    border-radius: 4px;
    padding: 8px 16px;
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.oa-button:hover {
    background: #4A5568;
    border-color: #4A5568;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.oa-button:active {
    transform: translateY(1px);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.oa-button-secondary {
    background: #FFFFFF;
    color: #2C5282;
    border: 1px solid #E2E8F0;
}

.oa-button-secondary:hover {
    background: #F7FAFC;
    border-color: #2C5282;
}

.oa-input {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 4px;
    padding: 8px 12px;
    font-size: 14px;
    color: #1A202C;
    transition: all 0.2s ease;
}

.oa-input:focus {
    outline: none;
    border-color: #2C5282;
    box-shadow: 0 0 0 3px rgba(44, 82, 130, 0.1);
}

.oa-table {
    width: 100%;
    border-collapse: collapse;
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
}

.oa-table th {
    background: #F7FAFC;
    color: #1A202C;
    font-weight: 600;
    text-align: left;
    padding: 12px;
    border-bottom: 2px solid #E2E8F0;
}

.oa-table td {
    padding: 12px;
    border-bottom: 1px solid #F1F5F9;
    color: #4A5568;
}

.oa-table tr:hover {
    background: #F7FAFC;
}

.oa-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.oa-badge.primary {
    background: rgba(44, 82, 130, 0.1);
    color: #2C5282;
    border: 1px solid rgba(44, 82, 130, 0.2);
}

.oa-badge.success {
    background: rgba(47, 133, 90, 0.1);
    color: #2F855A;
    border: 1px solid rgba(47, 133, 90, 0.2);
}

.oa-badge.warning {
    background: rgba(214, 158, 46, 0.1);
    color: #D69E2E;
    border: 1px solid rgba(214, 158, 46, 0.2);
}

.oa-badge.danger {
    background: rgba(229, 62, 62, 0.1);
    color: #E53E3E;
    border: 1px solid rgba(229, 62, 62, 0.2);
}

.oa-sidebar {
    background: #F7FAFC;
    border-right: 1px solid #E2E8F0;
    box-shadow: 2px 0 4px rgba(0, 0, 0, 0.05);
}

.oa-sidebar-item {
    padding: 12px 16px;
    color: #4A5568;
    border-bottom: 1px solid #F1F5F9;
    cursor: pointer;
    transition: all 0.2s ease;
}

.oa-sidebar-item:hover {
    background: #EDF2F7;
    color: #2C5282;
    border-left: 3px solid #2C5282;
}

.oa-sidebar-item.active {
    background: #EDF2F7;
    color: #2C5282;
    border-left: 3px solid #2C5282;
    font-weight: 600;
}

.oa-toolbar {
    background: #FFFFFF;
    border-bottom: 1px solid #E2E8F0;
    padding: 8px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.oa-breadcrumb {
    display: flex;
    align-items: center;
    color: #718096;
    font-size: 14px;
}

.oa-breadcrumb a {
    color: #2C5282;
    text-decoration: none;
    transition: color 0.2s ease;
}

.oa-breadcrumb a:hover {
    color: #4A5568;
}

.oa-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, #E2E8F0 20%, #E2E8F0 80%, transparent);
    margin: 16px 0;
}

/* 让现有组件采用OA风格 */
.page {
    background: #F7FAFC;
}

.page-header {
    background: #FFFFFF;
    border-bottom: 1px solid #E2E8F0;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.event-card, .patient-card, .transfer-card {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-left: 4px solid #2C5282;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
    margin-bottom: 12px;
}

.event-card:hover, .patient-card:hover, .transfer-card:hover {
    border-left-color: #4A5568;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.fab-btn {
    background: #2C5282;
    color: #FFFFFF;
    border: 1px solid #2C5282;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
}

.fab-btn:hover {
    background: #4A5568;
    border-color: #4A5568;
    transform: scale(1.05);
}

.action-btn {
    background: #FFFFFF;
    color: #2C5282;
    border: 1px solid #E2E8F0;
    padding: 6px 12px;
    font-size: 12px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.action-btn:hover {
    background: #F7FAFC;
    border-color: #2C5282;
}

.submit-btn {
    background: #2C5282;
    color: #FFFFFF;
    border: 1px solid #2C5282;
    border-radius: 4px;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.submit-btn:hover {
    background: #4A5568;
    border-color: #4A5568;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.submit-btn.secondary {
    background: #FFFFFF;
    color: #2C5282;
    border: 1px solid #E2E8F0;
}

.submit-btn.secondary:hover {
    background: #F7FAFC;
    border-color: #2C5282;
}

.form-input {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 4px;
    padding: 8px 12px;
    font-size: 14px;
    color: #1A202C;
    transition: all 0.2s ease;
}

.form-input:focus {
    outline: none;
    border-color: #2C5282;
    box-shadow: 0 0 0 3px rgba(44, 82, 130, 0.1);
}

.filter-chip {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: rgba(44, 82, 130, 0.1);
    color: #2C5282;
    border: 1px solid rgba(44, 82, 130, 0.2);
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-chip.active {
    background: rgba(44, 82, 130, 0.2);
    color: #2C5282;
    border: 1px solid rgba(44, 82, 130, 0.4);
}

.filter-chip:hover {
    background: rgba(44, 82, 130, 0.15);
}

/* 转诊成功页面样式 */
.success-info {
    padding: 20px;
    text-align: center;
}

.success-info h3 {
    font-size: 20px;
    font-weight: 600;
    color: #1d1d1f;
    margin-bottom: 20px;
}

.status-pending {
    color: #FF9500;
    font-weight: 600;
}

.next-steps {
    margin-top: 30px;
    padding: 0 20px;
}

.next-steps h4 {
    font-size: 16px;
    font-weight: 600;
    color: #1d1d1f;
    margin-bottom: 16px;
    text-align: center;
}

.steps-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.step-item {
    display: flex;
    align-items: center;
    padding: 16px;
    background: rgba(248, 249, 250, 0.8);
    border-radius: 12px;
    border: 1px solid rgba(229, 229, 231, 0.6);
}

.step-item.active {
    background: rgba(52, 199, 89, 0.1);
    border-color: rgba(52, 199, 89, 0.3);
}

.step-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 600;
    margin-right: 16px;
    flex-shrink: 0;
}

.step-item.active .step-icon {
    background: rgba(52, 199, 89, 0.2);
    color: #34C759;
}

.step-icon.loading {
    background: rgba(255, 149, 0, 0.2);
    color: #FF9500;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.step-text {
    flex: 1;
}

.step-title {
    font-size: 14px;
    font-weight: 600;
    color: #1d1d1f;
    margin-bottom: 2px;
}

.step-desc {
    font-size: 12px;
    color: #6e6e73;
}

/* 事件卡片操作按钮样式 */
.event-actions {
    padding: 12px 16px;
    border-top: 1px solid rgba(229, 229, 231, 0.6);
    display: flex;
    justify-content: center;
}

.event-action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 12px;
    background: rgba(0, 122, 255, 0.1);
    border: 1px solid rgba(0, 122, 255, 0.2);
    border-radius: 8px;
    color: #007AFF;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.event-action-btn:hover {
    background: rgba(0, 122, 255, 0.15);
    transform: scale(1.02);
}

.event-action-btn svg {
    width: 14px;
    height: 14px;
}