/* 健康档案弹窗样式 */
.health-archive-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 9999;
    display: none; /* 默认隐藏 */
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.health-archive-overlay.show {
    display: flex;
    opacity: 1;
}

.health-archive-modal {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 24px;
    width: 90%;
    max-width: 400px;
    padding: 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.health-archive-overlay.show .health-archive-modal {
    transform: scale(1);
}

.modal-close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.05);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #666;
    transition: all 0.2s ease;
}

.modal-close-btn:hover {
    background: rgba(0, 0, 0, 0.1);
    color: #333;
}

.modal-title {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.modal-subtitle {
    font-size: 14px;
    color: #666;
    margin-bottom: 24px;
}

.qr-code-container {
    width: 200px;
    height: 200px;
    background: #fff;
    border-radius: 12px;
    padding: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qr-code-container canvas,
.qr-code-container img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain;
    display: block;
}

.scan-hint {
    font-size: 13px;
    color: #888;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.scan-hint svg {
    width: 16px;
    height: 16px;
}

.online-view-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #7B6BD6 0%, #9B8BE6 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(123, 107, 214, 0.3);
}

.online-view-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(123, 107, 214, 0.4);
}

.online-view-btn:active {
    transform: translateY(0);
}
